@blinkk/root-cms 1.0.0-rc.1 → 1.0.0-rc.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.js +4 -3
- package/dist/cli.js +43 -22
- package/dist/client.js +55 -43
- package/dist/{client.d.ts → core/client.d.ts} +25 -15
- package/dist/{core.d.ts → core/core.d.ts} +12 -3
- package/dist/{project.d.ts → core/project.d.ts} +1 -1
- package/dist/core.js +84 -43
- package/dist/functions.js +6 -8
- package/dist/plugin.js +10 -12
- package/dist/richtext/richtext.d.ts +65 -0
- package/dist/richtext.js +119 -0
- package/dist/{schema-49de9659.d.ts → schema-710fda8a.d.ts} +16 -1
- package/dist/ui/signin.css +44 -57
- package/dist/ui/signin.js +660 -688
- package/dist/ui/ui.css +97 -44
- package/dist/ui/ui.js +17840 -5600
- package/package.json +17 -4
- /package/dist/{functions.d.ts → core/functions.d.ts} +0 -0
- /package/dist/{plugin.d.ts → core/plugin.d.ts} +0 -0
package/dist/ui/signin.js
CHANGED
|
@@ -1,385 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
(() => {
|
|
3
|
-
// ../../node_modules/.pnpm/preact@10.11.0/node_modules/preact/dist/preact.module.js
|
|
4
|
-
var n;
|
|
5
|
-
var l;
|
|
6
|
-
var u;
|
|
7
|
-
var i;
|
|
8
|
-
var t;
|
|
9
|
-
var o;
|
|
10
|
-
var r;
|
|
11
|
-
var f = {};
|
|
12
|
-
var e = [];
|
|
13
|
-
var c = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
|
|
14
|
-
function s(n2, l2) {
|
|
15
|
-
for (var u2 in l2)
|
|
16
|
-
n2[u2] = l2[u2];
|
|
17
|
-
return n2;
|
|
18
|
-
}
|
|
19
|
-
function a(n2) {
|
|
20
|
-
var l2 = n2.parentNode;
|
|
21
|
-
l2 && l2.removeChild(n2);
|
|
22
|
-
}
|
|
23
|
-
function h(l2, u2, i2) {
|
|
24
|
-
var t2, o3, r2, f2 = {};
|
|
25
|
-
for (r2 in u2)
|
|
26
|
-
"key" == r2 ? t2 = u2[r2] : "ref" == r2 ? o3 = u2[r2] : f2[r2] = u2[r2];
|
|
27
|
-
if (arguments.length > 2 && (f2.children = arguments.length > 3 ? n.call(arguments, 2) : i2), "function" == typeof l2 && null != l2.defaultProps)
|
|
28
|
-
for (r2 in l2.defaultProps)
|
|
29
|
-
void 0 === f2[r2] && (f2[r2] = l2.defaultProps[r2]);
|
|
30
|
-
return v(l2, f2, t2, o3, null);
|
|
31
|
-
}
|
|
32
|
-
function v(n2, i2, t2, o3, r2) {
|
|
33
|
-
var f2 = { type: n2, props: i2, key: t2, ref: o3, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: null == r2 ? ++u : r2 };
|
|
34
|
-
return null == r2 && null != l.vnode && l.vnode(f2), f2;
|
|
35
|
-
}
|
|
36
|
-
function p(n2) {
|
|
37
|
-
return n2.children;
|
|
38
|
-
}
|
|
39
|
-
function d(n2, l2) {
|
|
40
|
-
this.props = n2, this.context = l2;
|
|
41
|
-
}
|
|
42
|
-
function _(n2, l2) {
|
|
43
|
-
if (null == l2)
|
|
44
|
-
return n2.__ ? _(n2.__, n2.__.__k.indexOf(n2) + 1) : null;
|
|
45
|
-
for (var u2; l2 < n2.__k.length; l2++)
|
|
46
|
-
if (null != (u2 = n2.__k[l2]) && null != u2.__e)
|
|
47
|
-
return u2.__e;
|
|
48
|
-
return "function" == typeof n2.type ? _(n2) : null;
|
|
49
|
-
}
|
|
50
|
-
function k(n2) {
|
|
51
|
-
var l2, u2;
|
|
52
|
-
if (null != (n2 = n2.__) && null != n2.__c) {
|
|
53
|
-
for (n2.__e = n2.__c.base = null, l2 = 0; l2 < n2.__k.length; l2++)
|
|
54
|
-
if (null != (u2 = n2.__k[l2]) && null != u2.__e) {
|
|
55
|
-
n2.__e = n2.__c.base = u2.__e;
|
|
56
|
-
break;
|
|
57
|
-
}
|
|
58
|
-
return k(n2);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
function b(n2) {
|
|
62
|
-
(!n2.__d && (n2.__d = true) && t.push(n2) && !g.__r++ || o !== l.debounceRendering) && ((o = l.debounceRendering) || setTimeout)(g);
|
|
63
|
-
}
|
|
64
|
-
function g() {
|
|
65
|
-
for (var n2; g.__r = t.length; )
|
|
66
|
-
n2 = t.sort(function(n3, l2) {
|
|
67
|
-
return n3.__v.__b - l2.__v.__b;
|
|
68
|
-
}), t = [], n2.some(function(n3) {
|
|
69
|
-
var l2, u2, i2, t2, o3, r2;
|
|
70
|
-
n3.__d && (o3 = (t2 = (l2 = n3).__v).__e, (r2 = l2.__P) && (u2 = [], (i2 = s({}, t2)).__v = t2.__v + 1, j(r2, t2, i2, l2.__n, void 0 !== r2.ownerSVGElement, null != t2.__h ? [o3] : null, u2, null == o3 ? _(t2) : o3, t2.__h), z(u2, t2), t2.__e != o3 && k(t2)));
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
function w(n2, l2, u2, i2, t2, o3, r2, c2, s2, a2) {
|
|
74
|
-
var h2, y, d2, k2, b2, g2, w2, x2 = i2 && i2.__k || e, C2 = x2.length;
|
|
75
|
-
for (u2.__k = [], h2 = 0; h2 < l2.length; h2++)
|
|
76
|
-
if (null != (k2 = u2.__k[h2] = null == (k2 = l2[h2]) || "boolean" == typeof k2 ? null : "string" == typeof k2 || "number" == typeof k2 || "bigint" == typeof k2 ? v(null, k2, null, null, k2) : Array.isArray(k2) ? v(p, { children: k2 }, null, null, null) : k2.__b > 0 ? v(k2.type, k2.props, k2.key, k2.ref ? k2.ref : null, k2.__v) : k2)) {
|
|
77
|
-
if (k2.__ = u2, k2.__b = u2.__b + 1, null === (d2 = x2[h2]) || d2 && k2.key == d2.key && k2.type === d2.type)
|
|
78
|
-
x2[h2] = void 0;
|
|
79
|
-
else
|
|
80
|
-
for (y = 0; y < C2; y++) {
|
|
81
|
-
if ((d2 = x2[y]) && k2.key == d2.key && k2.type === d2.type) {
|
|
82
|
-
x2[y] = void 0;
|
|
83
|
-
break;
|
|
84
|
-
}
|
|
85
|
-
d2 = null;
|
|
86
|
-
}
|
|
87
|
-
j(n2, k2, d2 = d2 || f, t2, o3, r2, c2, s2, a2), b2 = k2.__e, (y = k2.ref) && d2.ref != y && (w2 || (w2 = []), d2.ref && w2.push(d2.ref, null, k2), w2.push(y, k2.__c || b2, k2)), null != b2 ? (null == g2 && (g2 = b2), "function" == typeof k2.type && k2.__k === d2.__k ? k2.__d = s2 = m(k2, s2, n2) : s2 = A(n2, k2, d2, x2, b2, s2), "function" == typeof u2.type && (u2.__d = s2)) : s2 && d2.__e == s2 && s2.parentNode != n2 && (s2 = _(d2));
|
|
88
|
-
}
|
|
89
|
-
for (u2.__e = g2, h2 = C2; h2--; )
|
|
90
|
-
null != x2[h2] && ("function" == typeof u2.type && null != x2[h2].__e && x2[h2].__e == u2.__d && (u2.__d = _(i2, h2 + 1)), N(x2[h2], x2[h2]));
|
|
91
|
-
if (w2)
|
|
92
|
-
for (h2 = 0; h2 < w2.length; h2++)
|
|
93
|
-
M(w2[h2], w2[++h2], w2[++h2]);
|
|
94
|
-
}
|
|
95
|
-
function m(n2, l2, u2) {
|
|
96
|
-
for (var i2, t2 = n2.__k, o3 = 0; t2 && o3 < t2.length; o3++)
|
|
97
|
-
(i2 = t2[o3]) && (i2.__ = n2, l2 = "function" == typeof i2.type ? m(i2, l2, u2) : A(u2, i2, i2, t2, i2.__e, l2));
|
|
98
|
-
return l2;
|
|
99
|
-
}
|
|
100
|
-
function x(n2, l2) {
|
|
101
|
-
return l2 = l2 || [], null == n2 || "boolean" == typeof n2 || (Array.isArray(n2) ? n2.some(function(n3) {
|
|
102
|
-
x(n3, l2);
|
|
103
|
-
}) : l2.push(n2)), l2;
|
|
104
|
-
}
|
|
105
|
-
function A(n2, l2, u2, i2, t2, o3) {
|
|
106
|
-
var r2, f2, e2;
|
|
107
|
-
if (void 0 !== l2.__d)
|
|
108
|
-
r2 = l2.__d, l2.__d = void 0;
|
|
109
|
-
else if (null == u2 || t2 != o3 || null == t2.parentNode)
|
|
110
|
-
n:
|
|
111
|
-
if (null == o3 || o3.parentNode !== n2)
|
|
112
|
-
n2.appendChild(t2), r2 = null;
|
|
113
|
-
else {
|
|
114
|
-
for (f2 = o3, e2 = 0; (f2 = f2.nextSibling) && e2 < i2.length; e2 += 2)
|
|
115
|
-
if (f2 == t2)
|
|
116
|
-
break n;
|
|
117
|
-
n2.insertBefore(t2, o3), r2 = o3;
|
|
118
|
-
}
|
|
119
|
-
return void 0 !== r2 ? r2 : t2.nextSibling;
|
|
120
|
-
}
|
|
121
|
-
function C(n2, l2, u2, i2, t2) {
|
|
122
|
-
var o3;
|
|
123
|
-
for (o3 in u2)
|
|
124
|
-
"children" === o3 || "key" === o3 || o3 in l2 || H(n2, o3, null, u2[o3], i2);
|
|
125
|
-
for (o3 in l2)
|
|
126
|
-
t2 && "function" != typeof l2[o3] || "children" === o3 || "key" === o3 || "value" === o3 || "checked" === o3 || u2[o3] === l2[o3] || H(n2, o3, l2[o3], u2[o3], i2);
|
|
127
|
-
}
|
|
128
|
-
function $(n2, l2, u2) {
|
|
129
|
-
"-" === l2[0] ? n2.setProperty(l2, u2) : n2[l2] = null == u2 ? "" : "number" != typeof u2 || c.test(l2) ? u2 : u2 + "px";
|
|
130
|
-
}
|
|
131
|
-
function H(n2, l2, u2, i2, t2) {
|
|
132
|
-
var o3;
|
|
133
|
-
n:
|
|
134
|
-
if ("style" === l2)
|
|
135
|
-
if ("string" == typeof u2)
|
|
136
|
-
n2.style.cssText = u2;
|
|
137
|
-
else {
|
|
138
|
-
if ("string" == typeof i2 && (n2.style.cssText = i2 = ""), i2)
|
|
139
|
-
for (l2 in i2)
|
|
140
|
-
u2 && l2 in u2 || $(n2.style, l2, "");
|
|
141
|
-
if (u2)
|
|
142
|
-
for (l2 in u2)
|
|
143
|
-
i2 && u2[l2] === i2[l2] || $(n2.style, l2, u2[l2]);
|
|
144
|
-
}
|
|
145
|
-
else if ("o" === l2[0] && "n" === l2[1])
|
|
146
|
-
o3 = l2 !== (l2 = l2.replace(/Capture$/, "")), l2 = l2.toLowerCase() in n2 ? l2.toLowerCase().slice(2) : l2.slice(2), n2.l || (n2.l = {}), n2.l[l2 + o3] = u2, u2 ? i2 || n2.addEventListener(l2, o3 ? T : I, o3) : n2.removeEventListener(l2, o3 ? T : I, o3);
|
|
147
|
-
else if ("dangerouslySetInnerHTML" !== l2) {
|
|
148
|
-
if (t2)
|
|
149
|
-
l2 = l2.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
150
|
-
else if ("href" !== l2 && "list" !== l2 && "form" !== l2 && "tabIndex" !== l2 && "download" !== l2 && l2 in n2)
|
|
151
|
-
try {
|
|
152
|
-
n2[l2] = null == u2 ? "" : u2;
|
|
153
|
-
break n;
|
|
154
|
-
} catch (n3) {
|
|
155
|
-
}
|
|
156
|
-
"function" == typeof u2 || (null != u2 && (false !== u2 || "a" === l2[0] && "r" === l2[1]) ? n2.setAttribute(l2, u2) : n2.removeAttribute(l2));
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
function I(n2) {
|
|
160
|
-
this.l[n2.type + false](l.event ? l.event(n2) : n2);
|
|
161
|
-
}
|
|
162
|
-
function T(n2) {
|
|
163
|
-
this.l[n2.type + true](l.event ? l.event(n2) : n2);
|
|
164
|
-
}
|
|
165
|
-
function j(n2, u2, i2, t2, o3, r2, f2, e2, c2) {
|
|
166
|
-
var a2, h2, v2, y, _3, k2, b2, g2, m2, x2, A2, C2, $2, H2 = u2.type;
|
|
167
|
-
if (void 0 !== u2.constructor)
|
|
168
|
-
return null;
|
|
169
|
-
null != i2.__h && (c2 = i2.__h, e2 = u2.__e = i2.__e, u2.__h = null, r2 = [e2]), (a2 = l.__b) && a2(u2);
|
|
170
|
-
try {
|
|
171
|
-
n:
|
|
172
|
-
if ("function" == typeof H2) {
|
|
173
|
-
if (g2 = u2.props, m2 = (a2 = H2.contextType) && t2[a2.__c], x2 = a2 ? m2 ? m2.props.value : a2.__ : t2, i2.__c ? b2 = (h2 = u2.__c = i2.__c).__ = h2.__E : ("prototype" in H2 && H2.prototype.render ? u2.__c = h2 = new H2(g2, x2) : (u2.__c = h2 = new d(g2, x2), h2.constructor = H2, h2.render = O), m2 && m2.sub(h2), h2.props = g2, h2.state || (h2.state = {}), h2.context = x2, h2.__n = t2, v2 = h2.__d = true, h2.__h = []), null == h2.__s && (h2.__s = h2.state), null != H2.getDerivedStateFromProps && (h2.__s == h2.state && (h2.__s = s({}, h2.__s)), s(h2.__s, H2.getDerivedStateFromProps(g2, h2.__s))), y = h2.props, _3 = h2.state, v2)
|
|
174
|
-
null == H2.getDerivedStateFromProps && null != h2.componentWillMount && h2.componentWillMount(), null != h2.componentDidMount && h2.__h.push(h2.componentDidMount);
|
|
175
|
-
else {
|
|
176
|
-
if (null == H2.getDerivedStateFromProps && g2 !== y && null != h2.componentWillReceiveProps && h2.componentWillReceiveProps(g2, x2), !h2.__e && null != h2.shouldComponentUpdate && false === h2.shouldComponentUpdate(g2, h2.__s, x2) || u2.__v === i2.__v) {
|
|
177
|
-
h2.props = g2, h2.state = h2.__s, u2.__v !== i2.__v && (h2.__d = false), h2.__v = u2, u2.__e = i2.__e, u2.__k = i2.__k, u2.__k.forEach(function(n3) {
|
|
178
|
-
n3 && (n3.__ = u2);
|
|
179
|
-
}), h2.__h.length && f2.push(h2);
|
|
180
|
-
break n;
|
|
181
|
-
}
|
|
182
|
-
null != h2.componentWillUpdate && h2.componentWillUpdate(g2, h2.__s, x2), null != h2.componentDidUpdate && h2.__h.push(function() {
|
|
183
|
-
h2.componentDidUpdate(y, _3, k2);
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
if (h2.context = x2, h2.props = g2, h2.__v = u2, h2.__P = n2, A2 = l.__r, C2 = 0, "prototype" in H2 && H2.prototype.render)
|
|
187
|
-
h2.state = h2.__s, h2.__d = false, A2 && A2(u2), a2 = h2.render(h2.props, h2.state, h2.context);
|
|
188
|
-
else
|
|
189
|
-
do {
|
|
190
|
-
h2.__d = false, A2 && A2(u2), a2 = h2.render(h2.props, h2.state, h2.context), h2.state = h2.__s;
|
|
191
|
-
} while (h2.__d && ++C2 < 25);
|
|
192
|
-
h2.state = h2.__s, null != h2.getChildContext && (t2 = s(s({}, t2), h2.getChildContext())), v2 || null == h2.getSnapshotBeforeUpdate || (k2 = h2.getSnapshotBeforeUpdate(y, _3)), $2 = null != a2 && a2.type === p && null == a2.key ? a2.props.children : a2, w(n2, Array.isArray($2) ? $2 : [$2], u2, i2, t2, o3, r2, f2, e2, c2), h2.base = u2.__e, u2.__h = null, h2.__h.length && f2.push(h2), b2 && (h2.__E = h2.__ = null), h2.__e = false;
|
|
193
|
-
} else
|
|
194
|
-
null == r2 && u2.__v === i2.__v ? (u2.__k = i2.__k, u2.__e = i2.__e) : u2.__e = L(i2.__e, u2, i2, t2, o3, r2, f2, c2);
|
|
195
|
-
(a2 = l.diffed) && a2(u2);
|
|
196
|
-
} catch (n3) {
|
|
197
|
-
u2.__v = null, (c2 || null != r2) && (u2.__e = e2, u2.__h = !!c2, r2[r2.indexOf(e2)] = null), l.__e(n3, u2, i2);
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
function z(n2, u2) {
|
|
201
|
-
l.__c && l.__c(u2, n2), n2.some(function(u3) {
|
|
202
|
-
try {
|
|
203
|
-
n2 = u3.__h, u3.__h = [], n2.some(function(n3) {
|
|
204
|
-
n3.call(u3);
|
|
205
|
-
});
|
|
206
|
-
} catch (n3) {
|
|
207
|
-
l.__e(n3, u3.__v);
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
}
|
|
211
|
-
function L(l2, u2, i2, t2, o3, r2, e2, c2) {
|
|
212
|
-
var s2, h2, v2, y = i2.props, p2 = u2.props, d2 = u2.type, k2 = 0;
|
|
213
|
-
if ("svg" === d2 && (o3 = true), null != r2) {
|
|
214
|
-
for (; k2 < r2.length; k2++)
|
|
215
|
-
if ((s2 = r2[k2]) && "setAttribute" in s2 == !!d2 && (d2 ? s2.localName === d2 : 3 === s2.nodeType)) {
|
|
216
|
-
l2 = s2, r2[k2] = null;
|
|
217
|
-
break;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
if (null == l2) {
|
|
221
|
-
if (null === d2)
|
|
222
|
-
return document.createTextNode(p2);
|
|
223
|
-
l2 = o3 ? document.createElementNS("http://www.w3.org/2000/svg", d2) : document.createElement(d2, p2.is && p2), r2 = null, c2 = false;
|
|
224
|
-
}
|
|
225
|
-
if (null === d2)
|
|
226
|
-
y === p2 || c2 && l2.data === p2 || (l2.data = p2);
|
|
227
|
-
else {
|
|
228
|
-
if (r2 = r2 && n.call(l2.childNodes), h2 = (y = i2.props || f).dangerouslySetInnerHTML, v2 = p2.dangerouslySetInnerHTML, !c2) {
|
|
229
|
-
if (null != r2)
|
|
230
|
-
for (y = {}, k2 = 0; k2 < l2.attributes.length; k2++)
|
|
231
|
-
y[l2.attributes[k2].name] = l2.attributes[k2].value;
|
|
232
|
-
(v2 || h2) && (v2 && (h2 && v2.__html == h2.__html || v2.__html === l2.innerHTML) || (l2.innerHTML = v2 && v2.__html || ""));
|
|
233
|
-
}
|
|
234
|
-
if (C(l2, p2, y, o3, c2), v2)
|
|
235
|
-
u2.__k = [];
|
|
236
|
-
else if (k2 = u2.props.children, w(l2, Array.isArray(k2) ? k2 : [k2], u2, i2, t2, o3 && "foreignObject" !== d2, r2, e2, r2 ? r2[0] : i2.__k && _(i2, 0), c2), null != r2)
|
|
237
|
-
for (k2 = r2.length; k2--; )
|
|
238
|
-
null != r2[k2] && a(r2[k2]);
|
|
239
|
-
c2 || ("value" in p2 && void 0 !== (k2 = p2.value) && (k2 !== l2.value || "progress" === d2 && !k2 || "option" === d2 && k2 !== y.value) && H(l2, "value", k2, y.value, false), "checked" in p2 && void 0 !== (k2 = p2.checked) && k2 !== l2.checked && H(l2, "checked", k2, y.checked, false));
|
|
240
|
-
}
|
|
241
|
-
return l2;
|
|
242
|
-
}
|
|
243
|
-
function M(n2, u2, i2) {
|
|
244
|
-
try {
|
|
245
|
-
"function" == typeof n2 ? n2(u2) : n2.current = u2;
|
|
246
|
-
} catch (n3) {
|
|
247
|
-
l.__e(n3, i2);
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
function N(n2, u2, i2) {
|
|
251
|
-
var t2, o3;
|
|
252
|
-
if (l.unmount && l.unmount(n2), (t2 = n2.ref) && (t2.current && t2.current !== n2.__e || M(t2, null, u2)), null != (t2 = n2.__c)) {
|
|
253
|
-
if (t2.componentWillUnmount)
|
|
254
|
-
try {
|
|
255
|
-
t2.componentWillUnmount();
|
|
256
|
-
} catch (n3) {
|
|
257
|
-
l.__e(n3, u2);
|
|
258
|
-
}
|
|
259
|
-
t2.base = t2.__P = null, n2.__c = void 0;
|
|
260
|
-
}
|
|
261
|
-
if (t2 = n2.__k)
|
|
262
|
-
for (o3 = 0; o3 < t2.length; o3++)
|
|
263
|
-
t2[o3] && N(t2[o3], u2, "function" != typeof n2.type);
|
|
264
|
-
i2 || null == n2.__e || a(n2.__e), n2.__ = n2.__e = n2.__d = void 0;
|
|
265
|
-
}
|
|
266
|
-
function O(n2, l2, u2) {
|
|
267
|
-
return this.constructor(n2, u2);
|
|
268
|
-
}
|
|
269
|
-
function P(u2, i2, t2) {
|
|
270
|
-
var o3, r2, e2;
|
|
271
|
-
l.__ && l.__(u2, i2), r2 = (o3 = "function" == typeof t2) ? null : t2 && t2.__k || i2.__k, e2 = [], j(i2, u2 = (!o3 && t2 || i2).__k = h(p, null, [u2]), r2 || f, f, void 0 !== i2.ownerSVGElement, !o3 && t2 ? [t2] : r2 ? null : i2.firstChild ? n.call(i2.childNodes) : null, e2, !o3 && t2 ? t2 : r2 ? r2.__e : i2.firstChild, o3), z(e2, u2);
|
|
272
|
-
}
|
|
273
|
-
n = e.slice, l = { __e: function(n2, l2, u2, i2) {
|
|
274
|
-
for (var t2, o3, r2; l2 = l2.__; )
|
|
275
|
-
if ((t2 = l2.__c) && !t2.__)
|
|
276
|
-
try {
|
|
277
|
-
if ((o3 = t2.constructor) && null != o3.getDerivedStateFromError && (t2.setState(o3.getDerivedStateFromError(n2)), r2 = t2.__d), null != t2.componentDidCatch && (t2.componentDidCatch(n2, i2 || {}), r2 = t2.__d), r2)
|
|
278
|
-
return t2.__E = t2;
|
|
279
|
-
} catch (l3) {
|
|
280
|
-
n2 = l3;
|
|
281
|
-
}
|
|
282
|
-
throw n2;
|
|
283
|
-
} }, u = 0, i = function(n2) {
|
|
284
|
-
return null != n2 && void 0 === n2.constructor;
|
|
285
|
-
}, d.prototype.setState = function(n2, l2) {
|
|
286
|
-
var u2;
|
|
287
|
-
u2 = null != this.__s && this.__s !== this.state ? this.__s : this.__s = s({}, this.state), "function" == typeof n2 && (n2 = n2(s({}, u2), this.props)), n2 && s(u2, n2), null != n2 && this.__v && (l2 && this.__h.push(l2), b(this));
|
|
288
|
-
}, d.prototype.forceUpdate = function(n2) {
|
|
289
|
-
this.__v && (this.__e = true, n2 && this.__h.push(n2), b(this));
|
|
290
|
-
}, d.prototype.render = p, t = [], g.__r = 0, r = 0;
|
|
291
|
-
|
|
292
|
-
// ../../node_modules/.pnpm/@tabler+icons-preact@2.39.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/defaultAttributes.js
|
|
293
|
-
var defaultAttributes = {
|
|
294
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
295
|
-
width: 24,
|
|
296
|
-
height: 24,
|
|
297
|
-
viewBox: "0 0 24 24",
|
|
298
|
-
fill: "none",
|
|
299
|
-
stroke: "currentColor",
|
|
300
|
-
"stroke-width": 2,
|
|
301
|
-
"stroke-linecap": "round",
|
|
302
|
-
"stroke-linejoin": "round"
|
|
303
|
-
};
|
|
304
|
-
|
|
305
|
-
// ../../node_modules/.pnpm/@tabler+icons-preact@2.39.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/createPreactComponent.js
|
|
306
|
-
var __defProp = Object.defineProperty;
|
|
307
|
-
var __defProps = Object.defineProperties;
|
|
308
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
309
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
310
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
311
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
312
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
313
|
-
var __spreadValues = (a2, b2) => {
|
|
314
|
-
for (var prop in b2 || (b2 = {}))
|
|
315
|
-
if (__hasOwnProp.call(b2, prop))
|
|
316
|
-
__defNormalProp(a2, prop, b2[prop]);
|
|
317
|
-
if (__getOwnPropSymbols)
|
|
318
|
-
for (var prop of __getOwnPropSymbols(b2)) {
|
|
319
|
-
if (__propIsEnum.call(b2, prop))
|
|
320
|
-
__defNormalProp(a2, prop, b2[prop]);
|
|
321
|
-
}
|
|
322
|
-
return a2;
|
|
323
|
-
};
|
|
324
|
-
var __spreadProps = (a2, b2) => __defProps(a2, __getOwnPropDescs(b2));
|
|
325
|
-
var __objRest = (source, exclude) => {
|
|
326
|
-
var target = {};
|
|
327
|
-
for (var prop in source)
|
|
328
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
329
|
-
target[prop] = source[prop];
|
|
330
|
-
if (source != null && __getOwnPropSymbols)
|
|
331
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
332
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
333
|
-
target[prop] = source[prop];
|
|
334
|
-
}
|
|
335
|
-
return target;
|
|
336
|
-
};
|
|
337
|
-
var createPreactComponent = (iconName, iconNamePascal, iconNode) => {
|
|
338
|
-
const Component2 = (_a) => {
|
|
339
|
-
var _b = _a, { color = "currentColor", size = 24, stroke = 2, children } = _b, rest = __objRest(_b, ["color", "size", "stroke", "children"]);
|
|
340
|
-
return h(
|
|
341
|
-
"svg",
|
|
342
|
-
__spreadValues(__spreadProps(__spreadValues({}, defaultAttributes), {
|
|
343
|
-
width: size,
|
|
344
|
-
height: size,
|
|
345
|
-
stroke: color,
|
|
346
|
-
"stroke-width": stroke,
|
|
347
|
-
class: `tabler-icon tabler-icon-${iconName}`
|
|
348
|
-
}), rest),
|
|
349
|
-
[...iconNode.map(([tag, attrs]) => h(tag, attrs)), ...x(children)]
|
|
350
|
-
);
|
|
351
|
-
};
|
|
352
|
-
Component2.displayName = `${iconNamePascal}`;
|
|
353
|
-
return Component2;
|
|
354
|
-
};
|
|
355
|
-
|
|
356
|
-
// ../../node_modules/.pnpm/@tabler+icons-preact@2.39.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconSitemap.js
|
|
357
|
-
var IconSitemap = createPreactComponent("sitemap", "IconSitemap", [
|
|
358
|
-
[
|
|
359
|
-
"path",
|
|
360
|
-
{
|
|
361
|
-
d: "M3 15m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",
|
|
362
|
-
key: "svg-0"
|
|
363
|
-
}
|
|
364
|
-
],
|
|
365
|
-
[
|
|
366
|
-
"path",
|
|
367
|
-
{
|
|
368
|
-
d: "M15 15m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",
|
|
369
|
-
key: "svg-1"
|
|
370
|
-
}
|
|
371
|
-
],
|
|
372
|
-
[
|
|
373
|
-
"path",
|
|
374
|
-
{
|
|
375
|
-
d: "M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",
|
|
376
|
-
key: "svg-2"
|
|
377
|
-
}
|
|
378
|
-
],
|
|
379
|
-
["path", { d: "M6 15v-1a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v1", key: "svg-3" }],
|
|
380
|
-
["path", { d: "M12 9l0 3", key: "svg-4" }]
|
|
381
|
-
]);
|
|
382
|
-
|
|
383
3
|
// ../../node_modules/.pnpm/@firebase+util@1.9.3/node_modules/@firebase/util/dist/index.esm2017.js
|
|
384
4
|
var stringToByteArray$1 = function(str) {
|
|
385
5
|
const out = [];
|
|
@@ -1644,7 +1264,7 @@
|
|
|
1644
1264
|
has: (target, prop) => !!getMethod(target, prop) || oldTraps.has(target, prop)
|
|
1645
1265
|
}));
|
|
1646
1266
|
|
|
1647
|
-
// ../../node_modules/.pnpm/@firebase+app@0.9.
|
|
1267
|
+
// ../../node_modules/.pnpm/@firebase+app@0.9.22/node_modules/@firebase/app/dist/esm/index.esm2017.js
|
|
1648
1268
|
var PlatformLoggerServiceImpl = class {
|
|
1649
1269
|
constructor(container) {
|
|
1650
1270
|
this.container = container;
|
|
@@ -1668,7 +1288,7 @@
|
|
|
1668
1288
|
return (component === null || component === void 0 ? void 0 : component.type) === "VERSION";
|
|
1669
1289
|
}
|
|
1670
1290
|
var name$o = "@firebase/app";
|
|
1671
|
-
var version$1 = "0.9.
|
|
1291
|
+
var version$1 = "0.9.22";
|
|
1672
1292
|
var logger = new Logger("@firebase/app");
|
|
1673
1293
|
var name$n = "@firebase/app-compat";
|
|
1674
1294
|
var name$m = "@firebase/analytics-compat";
|
|
@@ -1694,7 +1314,7 @@
|
|
|
1694
1314
|
var name$2 = "@firebase/firestore";
|
|
1695
1315
|
var name$1 = "@firebase/firestore-compat";
|
|
1696
1316
|
var name = "firebase";
|
|
1697
|
-
var version = "10.
|
|
1317
|
+
var version = "10.5.2";
|
|
1698
1318
|
var DEFAULT_ENTRY_NAME2 = "[DEFAULT]";
|
|
1699
1319
|
var PLATFORM_LOG_STRING = {
|
|
1700
1320
|
[name$o]: "fire-core",
|
|
@@ -2169,12 +1789,12 @@
|
|
|
2169
1789
|
}
|
|
2170
1790
|
registerCoreComponents("");
|
|
2171
1791
|
|
|
2172
|
-
// ../../node_modules/.pnpm/firebase@10.
|
|
1792
|
+
// ../../node_modules/.pnpm/firebase@10.5.2/node_modules/firebase/app/dist/esm/index.esm.js
|
|
2173
1793
|
var name2 = "firebase";
|
|
2174
|
-
var version2 = "10.
|
|
1794
|
+
var version2 = "10.5.2";
|
|
2175
1795
|
registerVersion(name2, version2, "app");
|
|
2176
1796
|
|
|
2177
|
-
// ../../node_modules/.pnpm/tslib@2.
|
|
1797
|
+
// ../../node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.mjs
|
|
2178
1798
|
function __rest(s2, e2) {
|
|
2179
1799
|
var t2 = {};
|
|
2180
1800
|
for (var p2 in s2)
|
|
@@ -2188,21 +1808,7 @@
|
|
|
2188
1808
|
return t2;
|
|
2189
1809
|
}
|
|
2190
1810
|
|
|
2191
|
-
// ../../node_modules/.pnpm/@firebase+auth@1.3.
|
|
2192
|
-
function isEnterprise(grecaptcha) {
|
|
2193
|
-
return grecaptcha !== void 0 && grecaptcha.enterprise !== void 0;
|
|
2194
|
-
}
|
|
2195
|
-
var RecaptchaConfig = class {
|
|
2196
|
-
constructor(response) {
|
|
2197
|
-
this.siteKey = "";
|
|
2198
|
-
this.emailPasswordEnabled = false;
|
|
2199
|
-
if (response.recaptchaKey === void 0) {
|
|
2200
|
-
throw new Error("recaptchaKey undefined");
|
|
2201
|
-
}
|
|
2202
|
-
this.siteKey = response.recaptchaKey.split("/")[3];
|
|
2203
|
-
this.emailPasswordEnabled = response.recaptchaEnforcementState.some((enforcementState) => enforcementState.provider === "EMAIL_PASSWORD_PROVIDER" && enforcementState.enforcementState !== "OFF");
|
|
2204
|
-
}
|
|
2205
|
-
};
|
|
1811
|
+
// ../../node_modules/.pnpm/@firebase+auth@1.3.2_@firebase+app@0.9.22/node_modules/@firebase/auth/dist/esm2017/index-94e5f531.js
|
|
2206
1812
|
function _prodErrorMap() {
|
|
2207
1813
|
return {
|
|
2208
1814
|
[
|
|
@@ -2350,6 +1956,12 @@
|
|
|
2350
1956
|
if (typeof self !== "undefined" && "fetch" in self) {
|
|
2351
1957
|
return self.fetch;
|
|
2352
1958
|
}
|
|
1959
|
+
if (typeof globalThis !== "undefined" && globalThis.fetch) {
|
|
1960
|
+
return globalThis.fetch;
|
|
1961
|
+
}
|
|
1962
|
+
if (typeof fetch !== "undefined") {
|
|
1963
|
+
return fetch;
|
|
1964
|
+
}
|
|
2353
1965
|
debugFail("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
|
|
2354
1966
|
}
|
|
2355
1967
|
static headers() {
|
|
@@ -2359,6 +1971,12 @@
|
|
|
2359
1971
|
if (typeof self !== "undefined" && "Headers" in self) {
|
|
2360
1972
|
return self.Headers;
|
|
2361
1973
|
}
|
|
1974
|
+
if (typeof globalThis !== "undefined" && globalThis.Headers) {
|
|
1975
|
+
return globalThis.Headers;
|
|
1976
|
+
}
|
|
1977
|
+
if (typeof Headers !== "undefined") {
|
|
1978
|
+
return Headers;
|
|
1979
|
+
}
|
|
2362
1980
|
debugFail("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
|
|
2363
1981
|
}
|
|
2364
1982
|
static response() {
|
|
@@ -2368,6 +1986,12 @@
|
|
|
2368
1986
|
if (typeof self !== "undefined" && "Response" in self) {
|
|
2369
1987
|
return self.Response;
|
|
2370
1988
|
}
|
|
1989
|
+
if (typeof globalThis !== "undefined" && globalThis.Response) {
|
|
1990
|
+
return globalThis.Response;
|
|
1991
|
+
}
|
|
1992
|
+
if (typeof Response !== "undefined") {
|
|
1993
|
+
return Response;
|
|
1994
|
+
}
|
|
2371
1995
|
debugFail("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
|
|
2372
1996
|
}
|
|
2373
1997
|
};
|
|
@@ -2679,6 +2303,18 @@
|
|
|
2679
2303
|
}
|
|
2680
2304
|
return _emulatorUrl(auth2.config, base);
|
|
2681
2305
|
}
|
|
2306
|
+
function _parseEnforcementState(enforcementStateStr) {
|
|
2307
|
+
switch (enforcementStateStr) {
|
|
2308
|
+
case "ENFORCE":
|
|
2309
|
+
return "ENFORCE";
|
|
2310
|
+
case "AUDIT":
|
|
2311
|
+
return "AUDIT";
|
|
2312
|
+
case "OFF":
|
|
2313
|
+
return "OFF";
|
|
2314
|
+
default:
|
|
2315
|
+
return "ENFORCEMENT_STATE_UNSPECIFIED";
|
|
2316
|
+
}
|
|
2317
|
+
}
|
|
2682
2318
|
var NetworkTimeout = class {
|
|
2683
2319
|
constructor(auth2) {
|
|
2684
2320
|
this.auth = auth2;
|
|
@@ -2711,6 +2347,46 @@
|
|
|
2711
2347
|
error.customData._tokenResponse = response;
|
|
2712
2348
|
return error;
|
|
2713
2349
|
}
|
|
2350
|
+
function isEnterprise(grecaptcha) {
|
|
2351
|
+
return grecaptcha !== void 0 && grecaptcha.enterprise !== void 0;
|
|
2352
|
+
}
|
|
2353
|
+
var RecaptchaConfig = class {
|
|
2354
|
+
constructor(response) {
|
|
2355
|
+
this.siteKey = "";
|
|
2356
|
+
this.recaptchaEnforcementState = [];
|
|
2357
|
+
if (response.recaptchaKey === void 0) {
|
|
2358
|
+
throw new Error("recaptchaKey undefined");
|
|
2359
|
+
}
|
|
2360
|
+
this.siteKey = response.recaptchaKey.split("/")[3];
|
|
2361
|
+
this.recaptchaEnforcementState = response.recaptchaEnforcementState;
|
|
2362
|
+
}
|
|
2363
|
+
/**
|
|
2364
|
+
* Returns the reCAPTCHA Enterprise enforcement state for the given provider.
|
|
2365
|
+
*
|
|
2366
|
+
* @param providerStr - The provider whose enforcement state is to be returned.
|
|
2367
|
+
* @returns The reCAPTCHA Enterprise enforcement state for the given provider.
|
|
2368
|
+
*/
|
|
2369
|
+
getProviderEnforcementState(providerStr) {
|
|
2370
|
+
if (!this.recaptchaEnforcementState || this.recaptchaEnforcementState.length === 0) {
|
|
2371
|
+
return null;
|
|
2372
|
+
}
|
|
2373
|
+
for (const recaptchaEnforcementState of this.recaptchaEnforcementState) {
|
|
2374
|
+
if (recaptchaEnforcementState.provider && recaptchaEnforcementState.provider === providerStr) {
|
|
2375
|
+
return _parseEnforcementState(recaptchaEnforcementState.enforcementState);
|
|
2376
|
+
}
|
|
2377
|
+
}
|
|
2378
|
+
return null;
|
|
2379
|
+
}
|
|
2380
|
+
/**
|
|
2381
|
+
* Returns true if the reCAPTCHA Enterprise enforcement state for the provider is set to ENFORCE or AUDIT.
|
|
2382
|
+
*
|
|
2383
|
+
* @param providerStr - The provider whose enablement state is to be returned.
|
|
2384
|
+
* @returns Whether or not reCAPTCHA Enterprise protection is enabled for the given provider.
|
|
2385
|
+
*/
|
|
2386
|
+
isProviderEnabled(providerStr) {
|
|
2387
|
+
return this.getProviderEnforcementState(providerStr) === "ENFORCE" || this.getProviderEnforcementState(providerStr) === "AUDIT";
|
|
2388
|
+
}
|
|
2389
|
+
};
|
|
2714
2390
|
async function getRecaptchaConfig(auth2, request) {
|
|
2715
2391
|
return _performApiRequest(auth2, "GET", "/v2/recaptchaConfig", _addTidIfNecessary(auth2, request));
|
|
2716
2392
|
}
|
|
@@ -4310,6 +3986,38 @@
|
|
|
4310
3986
|
});
|
|
4311
3987
|
return newRequest;
|
|
4312
3988
|
}
|
|
3989
|
+
async function handleRecaptchaFlow(authInstance, request, actionName, actionMethod) {
|
|
3990
|
+
var _a;
|
|
3991
|
+
if ((_a = authInstance._getRecaptchaConfig()) === null || _a === void 0 ? void 0 : _a.isProviderEnabled(
|
|
3992
|
+
"EMAIL_PASSWORD_PROVIDER"
|
|
3993
|
+
/* RecaptchaProvider.EMAIL_PASSWORD_PROVIDER */
|
|
3994
|
+
)) {
|
|
3995
|
+
const requestWithRecaptcha = await injectRecaptchaFields(
|
|
3996
|
+
authInstance,
|
|
3997
|
+
request,
|
|
3998
|
+
actionName,
|
|
3999
|
+
actionName === "getOobCode"
|
|
4000
|
+
/* RecaptchaActionName.GET_OOB_CODE */
|
|
4001
|
+
);
|
|
4002
|
+
return actionMethod(authInstance, requestWithRecaptcha);
|
|
4003
|
+
} else {
|
|
4004
|
+
return actionMethod(authInstance, request).catch(async (error) => {
|
|
4005
|
+
if (error.code === `auth/${"missing-recaptcha-token"}`) {
|
|
4006
|
+
console.log(`${actionName} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);
|
|
4007
|
+
const requestWithRecaptcha = await injectRecaptchaFields(
|
|
4008
|
+
authInstance,
|
|
4009
|
+
request,
|
|
4010
|
+
actionName,
|
|
4011
|
+
actionName === "getOobCode"
|
|
4012
|
+
/* RecaptchaActionName.GET_OOB_CODE */
|
|
4013
|
+
);
|
|
4014
|
+
return actionMethod(authInstance, requestWithRecaptcha);
|
|
4015
|
+
} else {
|
|
4016
|
+
return Promise.reject(error);
|
|
4017
|
+
}
|
|
4018
|
+
});
|
|
4019
|
+
}
|
|
4020
|
+
}
|
|
4313
4021
|
function initializeAuth(app2, deps) {
|
|
4314
4022
|
const provider = _getProvider(app2, "auth");
|
|
4315
4023
|
if (provider.isInitialized()) {
|
|
@@ -4515,7 +4223,6 @@
|
|
|
4515
4223
|
}
|
|
4516
4224
|
/** @internal */
|
|
4517
4225
|
async _getIdTokenResponse(auth2) {
|
|
4518
|
-
var _a;
|
|
4519
4226
|
switch (this.signInMethod) {
|
|
4520
4227
|
case "password":
|
|
4521
4228
|
const request = {
|
|
@@ -4525,30 +4232,7 @@
|
|
|
4525
4232
|
clientType: "CLIENT_TYPE_WEB"
|
|
4526
4233
|
/* RecaptchaClientType.WEB */
|
|
4527
4234
|
};
|
|
4528
|
-
|
|
4529
|
-
const requestWithRecaptcha = await injectRecaptchaFields(
|
|
4530
|
-
auth2,
|
|
4531
|
-
request,
|
|
4532
|
-
"signInWithPassword"
|
|
4533
|
-
/* RecaptchaActionName.SIGN_IN_WITH_PASSWORD */
|
|
4534
|
-
);
|
|
4535
|
-
return signInWithPassword(auth2, requestWithRecaptcha);
|
|
4536
|
-
} else {
|
|
4537
|
-
return signInWithPassword(auth2, request).catch(async (error) => {
|
|
4538
|
-
if (error.code === `auth/${"missing-recaptcha-token"}`) {
|
|
4539
|
-
console.log("Sign-in with email address and password is protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the sign-in flow.");
|
|
4540
|
-
const requestWithRecaptcha = await injectRecaptchaFields(
|
|
4541
|
-
auth2,
|
|
4542
|
-
request,
|
|
4543
|
-
"signInWithPassword"
|
|
4544
|
-
/* RecaptchaActionName.SIGN_IN_WITH_PASSWORD */
|
|
4545
|
-
);
|
|
4546
|
-
return signInWithPassword(auth2, requestWithRecaptcha);
|
|
4547
|
-
} else {
|
|
4548
|
-
return Promise.reject(error);
|
|
4549
|
-
}
|
|
4550
|
-
});
|
|
4551
|
-
}
|
|
4235
|
+
return handleRecaptchaFlow(auth2, request, "signInWithPassword", signInWithPassword);
|
|
4552
4236
|
case "emailLink":
|
|
4553
4237
|
return signInWithEmailLink$1(auth2, {
|
|
4554
4238
|
email: this._email,
|
|
@@ -7311,244 +6995,528 @@
|
|
|
7311
6995
|
totpVerificationInfo: this.secret._makeTotpVerificationInfo(this.otp)
|
|
7312
6996
|
});
|
|
7313
6997
|
}
|
|
7314
|
-
/** @internal */
|
|
7315
|
-
async _finalizeSignIn(auth2, mfaPendingCredential) {
|
|
7316
|
-
_assert(
|
|
7317
|
-
this.enrollmentId !== void 0 && this.otp !== void 0,
|
|
7318
|
-
auth2,
|
|
7319
|
-
"argument-error"
|
|
7320
|
-
/* AuthErrorCode.ARGUMENT_ERROR */
|
|
7321
|
-
);
|
|
7322
|
-
const totpVerificationInfo = { verificationCode: this.otp };
|
|
7323
|
-
return finalizeSignInTotpMfa(auth2, {
|
|
7324
|
-
mfaPendingCredential,
|
|
7325
|
-
mfaEnrollmentId: this.enrollmentId,
|
|
7326
|
-
totpVerificationInfo
|
|
7327
|
-
});
|
|
6998
|
+
/** @internal */
|
|
6999
|
+
async _finalizeSignIn(auth2, mfaPendingCredential) {
|
|
7000
|
+
_assert(
|
|
7001
|
+
this.enrollmentId !== void 0 && this.otp !== void 0,
|
|
7002
|
+
auth2,
|
|
7003
|
+
"argument-error"
|
|
7004
|
+
/* AuthErrorCode.ARGUMENT_ERROR */
|
|
7005
|
+
);
|
|
7006
|
+
const totpVerificationInfo = { verificationCode: this.otp };
|
|
7007
|
+
return finalizeSignInTotpMfa(auth2, {
|
|
7008
|
+
mfaPendingCredential,
|
|
7009
|
+
mfaEnrollmentId: this.enrollmentId,
|
|
7010
|
+
totpVerificationInfo
|
|
7011
|
+
});
|
|
7012
|
+
}
|
|
7013
|
+
};
|
|
7014
|
+
var TotpSecret = class _TotpSecret {
|
|
7015
|
+
// The public members are declared outside the constructor so the docs can be generated.
|
|
7016
|
+
constructor(secretKey, hashingAlgorithm, codeLength, codeIntervalSeconds, enrollmentCompletionDeadline, sessionInfo, auth2) {
|
|
7017
|
+
this.sessionInfo = sessionInfo;
|
|
7018
|
+
this.auth = auth2;
|
|
7019
|
+
this.secretKey = secretKey;
|
|
7020
|
+
this.hashingAlgorithm = hashingAlgorithm;
|
|
7021
|
+
this.codeLength = codeLength;
|
|
7022
|
+
this.codeIntervalSeconds = codeIntervalSeconds;
|
|
7023
|
+
this.enrollmentCompletionDeadline = enrollmentCompletionDeadline;
|
|
7024
|
+
}
|
|
7025
|
+
/** @internal */
|
|
7026
|
+
static _fromStartTotpMfaEnrollmentResponse(response, auth2) {
|
|
7027
|
+
return new _TotpSecret(response.totpSessionInfo.sharedSecretKey, response.totpSessionInfo.hashingAlgorithm, response.totpSessionInfo.verificationCodeLength, response.totpSessionInfo.periodSec, new Date(response.totpSessionInfo.finalizeEnrollmentTime).toUTCString(), response.totpSessionInfo.sessionInfo, auth2);
|
|
7028
|
+
}
|
|
7029
|
+
/** @internal */
|
|
7030
|
+
_makeTotpVerificationInfo(otp) {
|
|
7031
|
+
return { sessionInfo: this.sessionInfo, verificationCode: otp };
|
|
7032
|
+
}
|
|
7033
|
+
/**
|
|
7034
|
+
* Returns a QR code URL as described in
|
|
7035
|
+
* https://github.com/google/google-authenticator/wiki/Key-Uri-Format
|
|
7036
|
+
* This can be displayed to the user as a QR code to be scanned into a TOTP app like Google Authenticator.
|
|
7037
|
+
* If the optional parameters are unspecified, an accountName of <userEmail> and issuer of <firebaseAppName> are used.
|
|
7038
|
+
*
|
|
7039
|
+
* @param accountName the name of the account/app along with a user identifier.
|
|
7040
|
+
* @param issuer issuer of the TOTP (likely the app name).
|
|
7041
|
+
* @returns A QR code URL string.
|
|
7042
|
+
*/
|
|
7043
|
+
generateQrCodeUrl(accountName, issuer) {
|
|
7044
|
+
var _a;
|
|
7045
|
+
let useDefaults = false;
|
|
7046
|
+
if (_isEmptyString(accountName) || _isEmptyString(issuer)) {
|
|
7047
|
+
useDefaults = true;
|
|
7048
|
+
}
|
|
7049
|
+
if (useDefaults) {
|
|
7050
|
+
if (_isEmptyString(accountName)) {
|
|
7051
|
+
accountName = ((_a = this.auth.currentUser) === null || _a === void 0 ? void 0 : _a.email) || "unknownuser";
|
|
7052
|
+
}
|
|
7053
|
+
if (_isEmptyString(issuer)) {
|
|
7054
|
+
issuer = this.auth.name;
|
|
7055
|
+
}
|
|
7056
|
+
}
|
|
7057
|
+
return `otpauth://totp/${issuer}:${accountName}?secret=${this.secretKey}&issuer=${issuer}&algorithm=${this.hashingAlgorithm}&digits=${this.codeLength}`;
|
|
7058
|
+
}
|
|
7059
|
+
};
|
|
7060
|
+
function _isEmptyString(input) {
|
|
7061
|
+
return typeof input === "undefined" || (input === null || input === void 0 ? void 0 : input.length) === 0;
|
|
7062
|
+
}
|
|
7063
|
+
var name3 = "@firebase/auth";
|
|
7064
|
+
var version3 = "1.3.2";
|
|
7065
|
+
var AuthInterop = class {
|
|
7066
|
+
constructor(auth2) {
|
|
7067
|
+
this.auth = auth2;
|
|
7068
|
+
this.internalListeners = /* @__PURE__ */ new Map();
|
|
7069
|
+
}
|
|
7070
|
+
getUid() {
|
|
7071
|
+
var _a;
|
|
7072
|
+
this.assertAuthConfigured();
|
|
7073
|
+
return ((_a = this.auth.currentUser) === null || _a === void 0 ? void 0 : _a.uid) || null;
|
|
7074
|
+
}
|
|
7075
|
+
async getToken(forceRefresh) {
|
|
7076
|
+
this.assertAuthConfigured();
|
|
7077
|
+
await this.auth._initializationPromise;
|
|
7078
|
+
if (!this.auth.currentUser) {
|
|
7079
|
+
return null;
|
|
7080
|
+
}
|
|
7081
|
+
const accessToken = await this.auth.currentUser.getIdToken(forceRefresh);
|
|
7082
|
+
return { accessToken };
|
|
7083
|
+
}
|
|
7084
|
+
addAuthTokenListener(listener) {
|
|
7085
|
+
this.assertAuthConfigured();
|
|
7086
|
+
if (this.internalListeners.has(listener)) {
|
|
7087
|
+
return;
|
|
7088
|
+
}
|
|
7089
|
+
const unsubscribe = this.auth.onIdTokenChanged((user) => {
|
|
7090
|
+
listener((user === null || user === void 0 ? void 0 : user.stsTokenManager.accessToken) || null);
|
|
7091
|
+
});
|
|
7092
|
+
this.internalListeners.set(listener, unsubscribe);
|
|
7093
|
+
this.updateProactiveRefresh();
|
|
7094
|
+
}
|
|
7095
|
+
removeAuthTokenListener(listener) {
|
|
7096
|
+
this.assertAuthConfigured();
|
|
7097
|
+
const unsubscribe = this.internalListeners.get(listener);
|
|
7098
|
+
if (!unsubscribe) {
|
|
7099
|
+
return;
|
|
7100
|
+
}
|
|
7101
|
+
this.internalListeners.delete(listener);
|
|
7102
|
+
unsubscribe();
|
|
7103
|
+
this.updateProactiveRefresh();
|
|
7104
|
+
}
|
|
7105
|
+
assertAuthConfigured() {
|
|
7106
|
+
_assert(
|
|
7107
|
+
this.auth._initializationPromise,
|
|
7108
|
+
"dependent-sdk-initialized-before-auth"
|
|
7109
|
+
/* AuthErrorCode.DEPENDENT_SDK_INIT_BEFORE_AUTH */
|
|
7110
|
+
);
|
|
7111
|
+
}
|
|
7112
|
+
updateProactiveRefresh() {
|
|
7113
|
+
if (this.internalListeners.size > 0) {
|
|
7114
|
+
this.auth._startProactiveRefresh();
|
|
7115
|
+
} else {
|
|
7116
|
+
this.auth._stopProactiveRefresh();
|
|
7117
|
+
}
|
|
7118
|
+
}
|
|
7119
|
+
};
|
|
7120
|
+
function getVersionForPlatform(clientPlatform) {
|
|
7121
|
+
switch (clientPlatform) {
|
|
7122
|
+
case "Node":
|
|
7123
|
+
return "node";
|
|
7124
|
+
case "ReactNative":
|
|
7125
|
+
return "rn";
|
|
7126
|
+
case "Worker":
|
|
7127
|
+
return "webworker";
|
|
7128
|
+
case "Cordova":
|
|
7129
|
+
return "cordova";
|
|
7130
|
+
default:
|
|
7131
|
+
return void 0;
|
|
7132
|
+
}
|
|
7133
|
+
}
|
|
7134
|
+
function registerAuth(clientPlatform) {
|
|
7135
|
+
_registerComponent(new Component(
|
|
7136
|
+
"auth",
|
|
7137
|
+
(container, { options: deps }) => {
|
|
7138
|
+
const app2 = container.getProvider("app").getImmediate();
|
|
7139
|
+
const heartbeatServiceProvider = container.getProvider("heartbeat");
|
|
7140
|
+
const appCheckServiceProvider = container.getProvider("app-check-internal");
|
|
7141
|
+
const { apiKey, authDomain } = app2.options;
|
|
7142
|
+
_assert(apiKey && !apiKey.includes(":"), "invalid-api-key", { appName: app2.name });
|
|
7143
|
+
const config = {
|
|
7144
|
+
apiKey,
|
|
7145
|
+
authDomain,
|
|
7146
|
+
clientPlatform,
|
|
7147
|
+
apiHost: "identitytoolkit.googleapis.com",
|
|
7148
|
+
tokenApiHost: "securetoken.googleapis.com",
|
|
7149
|
+
apiScheme: "https",
|
|
7150
|
+
sdkClientVersion: _getClientVersion(clientPlatform)
|
|
7151
|
+
};
|
|
7152
|
+
const authInstance = new AuthImpl(app2, heartbeatServiceProvider, appCheckServiceProvider, config);
|
|
7153
|
+
_initializeAuthInstance(authInstance, deps);
|
|
7154
|
+
return authInstance;
|
|
7155
|
+
},
|
|
7156
|
+
"PUBLIC"
|
|
7157
|
+
/* ComponentType.PUBLIC */
|
|
7158
|
+
).setInstantiationMode(
|
|
7159
|
+
"EXPLICIT"
|
|
7160
|
+
/* InstantiationMode.EXPLICIT */
|
|
7161
|
+
).setInstanceCreatedCallback((container, _instanceIdentifier, _instance) => {
|
|
7162
|
+
const authInternalProvider = container.getProvider(
|
|
7163
|
+
"auth-internal"
|
|
7164
|
+
/* _ComponentName.AUTH_INTERNAL */
|
|
7165
|
+
);
|
|
7166
|
+
authInternalProvider.initialize();
|
|
7167
|
+
}));
|
|
7168
|
+
_registerComponent(new Component(
|
|
7169
|
+
"auth-internal",
|
|
7170
|
+
(container) => {
|
|
7171
|
+
const auth2 = _castAuth(container.getProvider(
|
|
7172
|
+
"auth"
|
|
7173
|
+
/* _ComponentName.AUTH */
|
|
7174
|
+
).getImmediate());
|
|
7175
|
+
return ((auth3) => new AuthInterop(auth3))(auth2);
|
|
7176
|
+
},
|
|
7177
|
+
"PRIVATE"
|
|
7178
|
+
/* ComponentType.PRIVATE */
|
|
7179
|
+
).setInstantiationMode(
|
|
7180
|
+
"EXPLICIT"
|
|
7181
|
+
/* InstantiationMode.EXPLICIT */
|
|
7182
|
+
));
|
|
7183
|
+
registerVersion(name3, version3, getVersionForPlatform(clientPlatform));
|
|
7184
|
+
registerVersion(name3, version3, "esm2017");
|
|
7185
|
+
}
|
|
7186
|
+
var DEFAULT_ID_TOKEN_MAX_AGE = 5 * 60;
|
|
7187
|
+
var authIdTokenMaxAge = getExperimentalSetting("authIdTokenMaxAge") || DEFAULT_ID_TOKEN_MAX_AGE;
|
|
7188
|
+
var lastPostedIdToken = null;
|
|
7189
|
+
var mintCookieFactory = (url) => async (user) => {
|
|
7190
|
+
const idTokenResult = user && await user.getIdTokenResult();
|
|
7191
|
+
const idTokenAge = idTokenResult && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(idTokenResult.issuedAtTime)) / 1e3;
|
|
7192
|
+
if (idTokenAge && idTokenAge > authIdTokenMaxAge) {
|
|
7193
|
+
return;
|
|
7194
|
+
}
|
|
7195
|
+
const idToken = idTokenResult === null || idTokenResult === void 0 ? void 0 : idTokenResult.token;
|
|
7196
|
+
if (lastPostedIdToken === idToken) {
|
|
7197
|
+
return;
|
|
7328
7198
|
}
|
|
7199
|
+
lastPostedIdToken = idToken;
|
|
7200
|
+
await fetch(url, {
|
|
7201
|
+
method: idToken ? "POST" : "DELETE",
|
|
7202
|
+
headers: idToken ? {
|
|
7203
|
+
"Authorization": `Bearer ${idToken}`
|
|
7204
|
+
} : {}
|
|
7205
|
+
});
|
|
7329
7206
|
};
|
|
7330
|
-
|
|
7331
|
-
|
|
7332
|
-
|
|
7333
|
-
|
|
7334
|
-
this.auth = auth2;
|
|
7335
|
-
this.secretKey = secretKey;
|
|
7336
|
-
this.hashingAlgorithm = hashingAlgorithm;
|
|
7337
|
-
this.codeLength = codeLength;
|
|
7338
|
-
this.codeIntervalSeconds = codeIntervalSeconds;
|
|
7339
|
-
this.enrollmentCompletionDeadline = enrollmentCompletionDeadline;
|
|
7207
|
+
function getAuth(app2 = getApp()) {
|
|
7208
|
+
const provider = _getProvider(app2, "auth");
|
|
7209
|
+
if (provider.isInitialized()) {
|
|
7210
|
+
return provider.getImmediate();
|
|
7340
7211
|
}
|
|
7341
|
-
|
|
7342
|
-
|
|
7343
|
-
|
|
7212
|
+
const auth2 = initializeAuth(app2, {
|
|
7213
|
+
popupRedirectResolver: browserPopupRedirectResolver,
|
|
7214
|
+
persistence: [
|
|
7215
|
+
indexedDBLocalPersistence,
|
|
7216
|
+
browserLocalPersistence,
|
|
7217
|
+
browserSessionPersistence
|
|
7218
|
+
]
|
|
7219
|
+
});
|
|
7220
|
+
const authTokenSyncUrl = getExperimentalSetting("authTokenSyncURL");
|
|
7221
|
+
if (authTokenSyncUrl) {
|
|
7222
|
+
const mintCookie = mintCookieFactory(authTokenSyncUrl);
|
|
7223
|
+
beforeAuthStateChanged(auth2, mintCookie, () => mintCookie(auth2.currentUser));
|
|
7224
|
+
onIdTokenChanged(auth2, (user) => mintCookie(user));
|
|
7344
7225
|
}
|
|
7345
|
-
|
|
7346
|
-
|
|
7347
|
-
|
|
7226
|
+
const authEmulatorHost = getDefaultEmulatorHost("auth");
|
|
7227
|
+
if (authEmulatorHost) {
|
|
7228
|
+
connectAuthEmulator(auth2, `http://${authEmulatorHost}`);
|
|
7348
7229
|
}
|
|
7349
|
-
|
|
7350
|
-
|
|
7351
|
-
|
|
7352
|
-
|
|
7353
|
-
|
|
7354
|
-
|
|
7355
|
-
|
|
7356
|
-
|
|
7357
|
-
|
|
7358
|
-
|
|
7359
|
-
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
|
|
7363
|
-
|
|
7230
|
+
return auth2;
|
|
7231
|
+
}
|
|
7232
|
+
registerAuth(
|
|
7233
|
+
"Browser"
|
|
7234
|
+
/* ClientPlatform.BROWSER */
|
|
7235
|
+
);
|
|
7236
|
+
|
|
7237
|
+
// ../../node_modules/.pnpm/preact@10.11.0/node_modules/preact/dist/preact.module.js
|
|
7238
|
+
var n;
|
|
7239
|
+
var l;
|
|
7240
|
+
var u;
|
|
7241
|
+
var i;
|
|
7242
|
+
var t;
|
|
7243
|
+
var o;
|
|
7244
|
+
var r;
|
|
7245
|
+
var f = {};
|
|
7246
|
+
var e = [];
|
|
7247
|
+
var c = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
|
|
7248
|
+
function s(n2, l2) {
|
|
7249
|
+
for (var u2 in l2)
|
|
7250
|
+
n2[u2] = l2[u2];
|
|
7251
|
+
return n2;
|
|
7252
|
+
}
|
|
7253
|
+
function a(n2) {
|
|
7254
|
+
var l2 = n2.parentNode;
|
|
7255
|
+
l2 && l2.removeChild(n2);
|
|
7256
|
+
}
|
|
7257
|
+
function h(l2, u2, i2) {
|
|
7258
|
+
var t2, o3, r2, f2 = {};
|
|
7259
|
+
for (r2 in u2)
|
|
7260
|
+
"key" == r2 ? t2 = u2[r2] : "ref" == r2 ? o3 = u2[r2] : f2[r2] = u2[r2];
|
|
7261
|
+
if (arguments.length > 2 && (f2.children = arguments.length > 3 ? n.call(arguments, 2) : i2), "function" == typeof l2 && null != l2.defaultProps)
|
|
7262
|
+
for (r2 in l2.defaultProps)
|
|
7263
|
+
void 0 === f2[r2] && (f2[r2] = l2.defaultProps[r2]);
|
|
7264
|
+
return v(l2, f2, t2, o3, null);
|
|
7265
|
+
}
|
|
7266
|
+
function v(n2, i2, t2, o3, r2) {
|
|
7267
|
+
var f2 = { type: n2, props: i2, key: t2, ref: o3, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: null == r2 ? ++u : r2 };
|
|
7268
|
+
return null == r2 && null != l.vnode && l.vnode(f2), f2;
|
|
7269
|
+
}
|
|
7270
|
+
function p(n2) {
|
|
7271
|
+
return n2.children;
|
|
7272
|
+
}
|
|
7273
|
+
function d(n2, l2) {
|
|
7274
|
+
this.props = n2, this.context = l2;
|
|
7275
|
+
}
|
|
7276
|
+
function _(n2, l2) {
|
|
7277
|
+
if (null == l2)
|
|
7278
|
+
return n2.__ ? _(n2.__, n2.__.__k.indexOf(n2) + 1) : null;
|
|
7279
|
+
for (var u2; l2 < n2.__k.length; l2++)
|
|
7280
|
+
if (null != (u2 = n2.__k[l2]) && null != u2.__e)
|
|
7281
|
+
return u2.__e;
|
|
7282
|
+
return "function" == typeof n2.type ? _(n2) : null;
|
|
7283
|
+
}
|
|
7284
|
+
function k(n2) {
|
|
7285
|
+
var l2, u2;
|
|
7286
|
+
if (null != (n2 = n2.__) && null != n2.__c) {
|
|
7287
|
+
for (n2.__e = n2.__c.base = null, l2 = 0; l2 < n2.__k.length; l2++)
|
|
7288
|
+
if (null != (u2 = n2.__k[l2]) && null != u2.__e) {
|
|
7289
|
+
n2.__e = n2.__c.base = u2.__e;
|
|
7290
|
+
break;
|
|
7291
|
+
}
|
|
7292
|
+
return k(n2);
|
|
7293
|
+
}
|
|
7294
|
+
}
|
|
7295
|
+
function b(n2) {
|
|
7296
|
+
(!n2.__d && (n2.__d = true) && t.push(n2) && !g.__r++ || o !== l.debounceRendering) && ((o = l.debounceRendering) || setTimeout)(g);
|
|
7297
|
+
}
|
|
7298
|
+
function g() {
|
|
7299
|
+
for (var n2; g.__r = t.length; )
|
|
7300
|
+
n2 = t.sort(function(n3, l2) {
|
|
7301
|
+
return n3.__v.__b - l2.__v.__b;
|
|
7302
|
+
}), t = [], n2.some(function(n3) {
|
|
7303
|
+
var l2, u2, i2, t2, o3, r2;
|
|
7304
|
+
n3.__d && (o3 = (t2 = (l2 = n3).__v).__e, (r2 = l2.__P) && (u2 = [], (i2 = s({}, t2)).__v = t2.__v + 1, j(r2, t2, i2, l2.__n, void 0 !== r2.ownerSVGElement, null != t2.__h ? [o3] : null, u2, null == o3 ? _(t2) : o3, t2.__h), z(u2, t2), t2.__e != o3 && k(t2)));
|
|
7305
|
+
});
|
|
7306
|
+
}
|
|
7307
|
+
function w(n2, l2, u2, i2, t2, o3, r2, c2, s2, a2) {
|
|
7308
|
+
var h2, y, d2, k2, b2, g2, w2, x = i2 && i2.__k || e, C2 = x.length;
|
|
7309
|
+
for (u2.__k = [], h2 = 0; h2 < l2.length; h2++)
|
|
7310
|
+
if (null != (k2 = u2.__k[h2] = null == (k2 = l2[h2]) || "boolean" == typeof k2 ? null : "string" == typeof k2 || "number" == typeof k2 || "bigint" == typeof k2 ? v(null, k2, null, null, k2) : Array.isArray(k2) ? v(p, { children: k2 }, null, null, null) : k2.__b > 0 ? v(k2.type, k2.props, k2.key, k2.ref ? k2.ref : null, k2.__v) : k2)) {
|
|
7311
|
+
if (k2.__ = u2, k2.__b = u2.__b + 1, null === (d2 = x[h2]) || d2 && k2.key == d2.key && k2.type === d2.type)
|
|
7312
|
+
x[h2] = void 0;
|
|
7313
|
+
else
|
|
7314
|
+
for (y = 0; y < C2; y++) {
|
|
7315
|
+
if ((d2 = x[y]) && k2.key == d2.key && k2.type === d2.type) {
|
|
7316
|
+
x[y] = void 0;
|
|
7317
|
+
break;
|
|
7318
|
+
}
|
|
7319
|
+
d2 = null;
|
|
7320
|
+
}
|
|
7321
|
+
j(n2, k2, d2 = d2 || f, t2, o3, r2, c2, s2, a2), b2 = k2.__e, (y = k2.ref) && d2.ref != y && (w2 || (w2 = []), d2.ref && w2.push(d2.ref, null, k2), w2.push(y, k2.__c || b2, k2)), null != b2 ? (null == g2 && (g2 = b2), "function" == typeof k2.type && k2.__k === d2.__k ? k2.__d = s2 = m(k2, s2, n2) : s2 = A(n2, k2, d2, x, b2, s2), "function" == typeof u2.type && (u2.__d = s2)) : s2 && d2.__e == s2 && s2.parentNode != n2 && (s2 = _(d2));
|
|
7364
7322
|
}
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
|
|
7323
|
+
for (u2.__e = g2, h2 = C2; h2--; )
|
|
7324
|
+
null != x[h2] && ("function" == typeof u2.type && null != x[h2].__e && x[h2].__e == u2.__d && (u2.__d = _(i2, h2 + 1)), N(x[h2], x[h2]));
|
|
7325
|
+
if (w2)
|
|
7326
|
+
for (h2 = 0; h2 < w2.length; h2++)
|
|
7327
|
+
M(w2[h2], w2[++h2], w2[++h2]);
|
|
7328
|
+
}
|
|
7329
|
+
function m(n2, l2, u2) {
|
|
7330
|
+
for (var i2, t2 = n2.__k, o3 = 0; t2 && o3 < t2.length; o3++)
|
|
7331
|
+
(i2 = t2[o3]) && (i2.__ = n2, l2 = "function" == typeof i2.type ? m(i2, l2, u2) : A(u2, i2, i2, t2, i2.__e, l2));
|
|
7332
|
+
return l2;
|
|
7333
|
+
}
|
|
7334
|
+
function A(n2, l2, u2, i2, t2, o3) {
|
|
7335
|
+
var r2, f2, e2;
|
|
7336
|
+
if (void 0 !== l2.__d)
|
|
7337
|
+
r2 = l2.__d, l2.__d = void 0;
|
|
7338
|
+
else if (null == u2 || t2 != o3 || null == t2.parentNode)
|
|
7339
|
+
n:
|
|
7340
|
+
if (null == o3 || o3.parentNode !== n2)
|
|
7341
|
+
n2.appendChild(t2), r2 = null;
|
|
7342
|
+
else {
|
|
7343
|
+
for (f2 = o3, e2 = 0; (f2 = f2.nextSibling) && e2 < i2.length; e2 += 2)
|
|
7344
|
+
if (f2 == t2)
|
|
7345
|
+
break n;
|
|
7346
|
+
n2.insertBefore(t2, o3), r2 = o3;
|
|
7368
7347
|
}
|
|
7369
|
-
|
|
7370
|
-
|
|
7348
|
+
return void 0 !== r2 ? r2 : t2.nextSibling;
|
|
7349
|
+
}
|
|
7350
|
+
function C(n2, l2, u2, i2, t2) {
|
|
7351
|
+
var o3;
|
|
7352
|
+
for (o3 in u2)
|
|
7353
|
+
"children" === o3 || "key" === o3 || o3 in l2 || H(n2, o3, null, u2[o3], i2);
|
|
7354
|
+
for (o3 in l2)
|
|
7355
|
+
t2 && "function" != typeof l2[o3] || "children" === o3 || "key" === o3 || "value" === o3 || "checked" === o3 || u2[o3] === l2[o3] || H(n2, o3, l2[o3], u2[o3], i2);
|
|
7356
|
+
}
|
|
7357
|
+
function $(n2, l2, u2) {
|
|
7358
|
+
"-" === l2[0] ? n2.setProperty(l2, u2) : n2[l2] = null == u2 ? "" : "number" != typeof u2 || c.test(l2) ? u2 : u2 + "px";
|
|
7359
|
+
}
|
|
7360
|
+
function H(n2, l2, u2, i2, t2) {
|
|
7361
|
+
var o3;
|
|
7362
|
+
n:
|
|
7363
|
+
if ("style" === l2)
|
|
7364
|
+
if ("string" == typeof u2)
|
|
7365
|
+
n2.style.cssText = u2;
|
|
7366
|
+
else {
|
|
7367
|
+
if ("string" == typeof i2 && (n2.style.cssText = i2 = ""), i2)
|
|
7368
|
+
for (l2 in i2)
|
|
7369
|
+
u2 && l2 in u2 || $(n2.style, l2, "");
|
|
7370
|
+
if (u2)
|
|
7371
|
+
for (l2 in u2)
|
|
7372
|
+
i2 && u2[l2] === i2[l2] || $(n2.style, l2, u2[l2]);
|
|
7371
7373
|
}
|
|
7374
|
+
else if ("o" === l2[0] && "n" === l2[1])
|
|
7375
|
+
o3 = l2 !== (l2 = l2.replace(/Capture$/, "")), l2 = l2.toLowerCase() in n2 ? l2.toLowerCase().slice(2) : l2.slice(2), n2.l || (n2.l = {}), n2.l[l2 + o3] = u2, u2 ? i2 || n2.addEventListener(l2, o3 ? T : I, o3) : n2.removeEventListener(l2, o3 ? T : I, o3);
|
|
7376
|
+
else if ("dangerouslySetInnerHTML" !== l2) {
|
|
7377
|
+
if (t2)
|
|
7378
|
+
l2 = l2.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
7379
|
+
else if ("href" !== l2 && "list" !== l2 && "form" !== l2 && "tabIndex" !== l2 && "download" !== l2 && l2 in n2)
|
|
7380
|
+
try {
|
|
7381
|
+
n2[l2] = null == u2 ? "" : u2;
|
|
7382
|
+
break n;
|
|
7383
|
+
} catch (n3) {
|
|
7384
|
+
}
|
|
7385
|
+
"function" == typeof u2 || (null != u2 && (false !== u2 || "a" === l2[0] && "r" === l2[1]) ? n2.setAttribute(l2, u2) : n2.removeAttribute(l2));
|
|
7372
7386
|
}
|
|
7373
|
-
|
|
7387
|
+
}
|
|
7388
|
+
function I(n2) {
|
|
7389
|
+
this.l[n2.type + false](l.event ? l.event(n2) : n2);
|
|
7390
|
+
}
|
|
7391
|
+
function T(n2) {
|
|
7392
|
+
this.l[n2.type + true](l.event ? l.event(n2) : n2);
|
|
7393
|
+
}
|
|
7394
|
+
function j(n2, u2, i2, t2, o3, r2, f2, e2, c2) {
|
|
7395
|
+
var a2, h2, v2, y, _3, k2, b2, g2, m2, x, A2, C2, $2, H2 = u2.type;
|
|
7396
|
+
if (void 0 !== u2.constructor)
|
|
7397
|
+
return null;
|
|
7398
|
+
null != i2.__h && (c2 = i2.__h, e2 = u2.__e = i2.__e, u2.__h = null, r2 = [e2]), (a2 = l.__b) && a2(u2);
|
|
7399
|
+
try {
|
|
7400
|
+
n:
|
|
7401
|
+
if ("function" == typeof H2) {
|
|
7402
|
+
if (g2 = u2.props, m2 = (a2 = H2.contextType) && t2[a2.__c], x = a2 ? m2 ? m2.props.value : a2.__ : t2, i2.__c ? b2 = (h2 = u2.__c = i2.__c).__ = h2.__E : ("prototype" in H2 && H2.prototype.render ? u2.__c = h2 = new H2(g2, x) : (u2.__c = h2 = new d(g2, x), h2.constructor = H2, h2.render = O), m2 && m2.sub(h2), h2.props = g2, h2.state || (h2.state = {}), h2.context = x, h2.__n = t2, v2 = h2.__d = true, h2.__h = []), null == h2.__s && (h2.__s = h2.state), null != H2.getDerivedStateFromProps && (h2.__s == h2.state && (h2.__s = s({}, h2.__s)), s(h2.__s, H2.getDerivedStateFromProps(g2, h2.__s))), y = h2.props, _3 = h2.state, v2)
|
|
7403
|
+
null == H2.getDerivedStateFromProps && null != h2.componentWillMount && h2.componentWillMount(), null != h2.componentDidMount && h2.__h.push(h2.componentDidMount);
|
|
7404
|
+
else {
|
|
7405
|
+
if (null == H2.getDerivedStateFromProps && g2 !== y && null != h2.componentWillReceiveProps && h2.componentWillReceiveProps(g2, x), !h2.__e && null != h2.shouldComponentUpdate && false === h2.shouldComponentUpdate(g2, h2.__s, x) || u2.__v === i2.__v) {
|
|
7406
|
+
h2.props = g2, h2.state = h2.__s, u2.__v !== i2.__v && (h2.__d = false), h2.__v = u2, u2.__e = i2.__e, u2.__k = i2.__k, u2.__k.forEach(function(n3) {
|
|
7407
|
+
n3 && (n3.__ = u2);
|
|
7408
|
+
}), h2.__h.length && f2.push(h2);
|
|
7409
|
+
break n;
|
|
7410
|
+
}
|
|
7411
|
+
null != h2.componentWillUpdate && h2.componentWillUpdate(g2, h2.__s, x), null != h2.componentDidUpdate && h2.__h.push(function() {
|
|
7412
|
+
h2.componentDidUpdate(y, _3, k2);
|
|
7413
|
+
});
|
|
7414
|
+
}
|
|
7415
|
+
if (h2.context = x, h2.props = g2, h2.__v = u2, h2.__P = n2, A2 = l.__r, C2 = 0, "prototype" in H2 && H2.prototype.render)
|
|
7416
|
+
h2.state = h2.__s, h2.__d = false, A2 && A2(u2), a2 = h2.render(h2.props, h2.state, h2.context);
|
|
7417
|
+
else
|
|
7418
|
+
do {
|
|
7419
|
+
h2.__d = false, A2 && A2(u2), a2 = h2.render(h2.props, h2.state, h2.context), h2.state = h2.__s;
|
|
7420
|
+
} while (h2.__d && ++C2 < 25);
|
|
7421
|
+
h2.state = h2.__s, null != h2.getChildContext && (t2 = s(s({}, t2), h2.getChildContext())), v2 || null == h2.getSnapshotBeforeUpdate || (k2 = h2.getSnapshotBeforeUpdate(y, _3)), $2 = null != a2 && a2.type === p && null == a2.key ? a2.props.children : a2, w(n2, Array.isArray($2) ? $2 : [$2], u2, i2, t2, o3, r2, f2, e2, c2), h2.base = u2.__e, u2.__h = null, h2.__h.length && f2.push(h2), b2 && (h2.__E = h2.__ = null), h2.__e = false;
|
|
7422
|
+
} else
|
|
7423
|
+
null == r2 && u2.__v === i2.__v ? (u2.__k = i2.__k, u2.__e = i2.__e) : u2.__e = L(i2.__e, u2, i2, t2, o3, r2, f2, c2);
|
|
7424
|
+
(a2 = l.diffed) && a2(u2);
|
|
7425
|
+
} catch (n3) {
|
|
7426
|
+
u2.__v = null, (c2 || null != r2) && (u2.__e = e2, u2.__h = !!c2, r2[r2.indexOf(e2)] = null), l.__e(n3, u2, i2);
|
|
7374
7427
|
}
|
|
7375
|
-
};
|
|
7376
|
-
function _isEmptyString(input) {
|
|
7377
|
-
return typeof input === "undefined" || (input === null || input === void 0 ? void 0 : input.length) === 0;
|
|
7378
7428
|
}
|
|
7379
|
-
|
|
7380
|
-
|
|
7381
|
-
|
|
7382
|
-
|
|
7383
|
-
|
|
7384
|
-
|
|
7385
|
-
|
|
7386
|
-
|
|
7387
|
-
var _a;
|
|
7388
|
-
this.assertAuthConfigured();
|
|
7389
|
-
return ((_a = this.auth.currentUser) === null || _a === void 0 ? void 0 : _a.uid) || null;
|
|
7390
|
-
}
|
|
7391
|
-
async getToken(forceRefresh) {
|
|
7392
|
-
this.assertAuthConfigured();
|
|
7393
|
-
await this.auth._initializationPromise;
|
|
7394
|
-
if (!this.auth.currentUser) {
|
|
7395
|
-
return null;
|
|
7429
|
+
function z(n2, u2) {
|
|
7430
|
+
l.__c && l.__c(u2, n2), n2.some(function(u3) {
|
|
7431
|
+
try {
|
|
7432
|
+
n2 = u3.__h, u3.__h = [], n2.some(function(n3) {
|
|
7433
|
+
n3.call(u3);
|
|
7434
|
+
});
|
|
7435
|
+
} catch (n3) {
|
|
7436
|
+
l.__e(n3, u3.__v);
|
|
7396
7437
|
}
|
|
7397
|
-
|
|
7398
|
-
|
|
7438
|
+
});
|
|
7439
|
+
}
|
|
7440
|
+
function L(l2, u2, i2, t2, o3, r2, e2, c2) {
|
|
7441
|
+
var s2, h2, v2, y = i2.props, p2 = u2.props, d2 = u2.type, k2 = 0;
|
|
7442
|
+
if ("svg" === d2 && (o3 = true), null != r2) {
|
|
7443
|
+
for (; k2 < r2.length; k2++)
|
|
7444
|
+
if ((s2 = r2[k2]) && "setAttribute" in s2 == !!d2 && (d2 ? s2.localName === d2 : 3 === s2.nodeType)) {
|
|
7445
|
+
l2 = s2, r2[k2] = null;
|
|
7446
|
+
break;
|
|
7447
|
+
}
|
|
7399
7448
|
}
|
|
7400
|
-
|
|
7401
|
-
|
|
7402
|
-
|
|
7403
|
-
|
|
7404
|
-
}
|
|
7405
|
-
const unsubscribe = this.auth.onIdTokenChanged((user) => {
|
|
7406
|
-
listener((user === null || user === void 0 ? void 0 : user.stsTokenManager.accessToken) || null);
|
|
7407
|
-
});
|
|
7408
|
-
this.internalListeners.set(listener, unsubscribe);
|
|
7409
|
-
this.updateProactiveRefresh();
|
|
7449
|
+
if (null == l2) {
|
|
7450
|
+
if (null === d2)
|
|
7451
|
+
return document.createTextNode(p2);
|
|
7452
|
+
l2 = o3 ? document.createElementNS("http://www.w3.org/2000/svg", d2) : document.createElement(d2, p2.is && p2), r2 = null, c2 = false;
|
|
7410
7453
|
}
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
if (!
|
|
7415
|
-
|
|
7454
|
+
if (null === d2)
|
|
7455
|
+
y === p2 || c2 && l2.data === p2 || (l2.data = p2);
|
|
7456
|
+
else {
|
|
7457
|
+
if (r2 = r2 && n.call(l2.childNodes), h2 = (y = i2.props || f).dangerouslySetInnerHTML, v2 = p2.dangerouslySetInnerHTML, !c2) {
|
|
7458
|
+
if (null != r2)
|
|
7459
|
+
for (y = {}, k2 = 0; k2 < l2.attributes.length; k2++)
|
|
7460
|
+
y[l2.attributes[k2].name] = l2.attributes[k2].value;
|
|
7461
|
+
(v2 || h2) && (v2 && (h2 && v2.__html == h2.__html || v2.__html === l2.innerHTML) || (l2.innerHTML = v2 && v2.__html || ""));
|
|
7416
7462
|
}
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
|
|
7420
|
-
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
this.auth._initializationPromise,
|
|
7424
|
-
"dependent-sdk-initialized-before-auth"
|
|
7425
|
-
/* AuthErrorCode.DEPENDENT_SDK_INIT_BEFORE_AUTH */
|
|
7426
|
-
);
|
|
7463
|
+
if (C(l2, p2, y, o3, c2), v2)
|
|
7464
|
+
u2.__k = [];
|
|
7465
|
+
else if (k2 = u2.props.children, w(l2, Array.isArray(k2) ? k2 : [k2], u2, i2, t2, o3 && "foreignObject" !== d2, r2, e2, r2 ? r2[0] : i2.__k && _(i2, 0), c2), null != r2)
|
|
7466
|
+
for (k2 = r2.length; k2--; )
|
|
7467
|
+
null != r2[k2] && a(r2[k2]);
|
|
7468
|
+
c2 || ("value" in p2 && void 0 !== (k2 = p2.value) && (k2 !== l2.value || "progress" === d2 && !k2 || "option" === d2 && k2 !== y.value) && H(l2, "value", k2, y.value, false), "checked" in p2 && void 0 !== (k2 = p2.checked) && k2 !== l2.checked && H(l2, "checked", k2, y.checked, false));
|
|
7427
7469
|
}
|
|
7428
|
-
|
|
7429
|
-
|
|
7430
|
-
|
|
7431
|
-
|
|
7432
|
-
|
|
7433
|
-
|
|
7470
|
+
return l2;
|
|
7471
|
+
}
|
|
7472
|
+
function M(n2, u2, i2) {
|
|
7473
|
+
try {
|
|
7474
|
+
"function" == typeof n2 ? n2(u2) : n2.current = u2;
|
|
7475
|
+
} catch (n3) {
|
|
7476
|
+
l.__e(n3, i2);
|
|
7434
7477
|
}
|
|
7435
|
-
}
|
|
7436
|
-
function
|
|
7437
|
-
|
|
7438
|
-
|
|
7439
|
-
|
|
7440
|
-
|
|
7441
|
-
|
|
7442
|
-
|
|
7443
|
-
|
|
7444
|
-
|
|
7445
|
-
|
|
7446
|
-
default:
|
|
7447
|
-
return void 0;
|
|
7478
|
+
}
|
|
7479
|
+
function N(n2, u2, i2) {
|
|
7480
|
+
var t2, o3;
|
|
7481
|
+
if (l.unmount && l.unmount(n2), (t2 = n2.ref) && (t2.current && t2.current !== n2.__e || M(t2, null, u2)), null != (t2 = n2.__c)) {
|
|
7482
|
+
if (t2.componentWillUnmount)
|
|
7483
|
+
try {
|
|
7484
|
+
t2.componentWillUnmount();
|
|
7485
|
+
} catch (n3) {
|
|
7486
|
+
l.__e(n3, u2);
|
|
7487
|
+
}
|
|
7488
|
+
t2.base = t2.__P = null, n2.__c = void 0;
|
|
7448
7489
|
}
|
|
7490
|
+
if (t2 = n2.__k)
|
|
7491
|
+
for (o3 = 0; o3 < t2.length; o3++)
|
|
7492
|
+
t2[o3] && N(t2[o3], u2, "function" != typeof n2.type);
|
|
7493
|
+
i2 || null == n2.__e || a(n2.__e), n2.__ = n2.__e = n2.__d = void 0;
|
|
7449
7494
|
}
|
|
7450
|
-
function
|
|
7451
|
-
|
|
7452
|
-
"auth",
|
|
7453
|
-
(container, { options: deps }) => {
|
|
7454
|
-
const app2 = container.getProvider("app").getImmediate();
|
|
7455
|
-
const heartbeatServiceProvider = container.getProvider("heartbeat");
|
|
7456
|
-
const appCheckServiceProvider = container.getProvider("app-check-internal");
|
|
7457
|
-
const { apiKey, authDomain } = app2.options;
|
|
7458
|
-
_assert(apiKey && !apiKey.includes(":"), "invalid-api-key", { appName: app2.name });
|
|
7459
|
-
const config = {
|
|
7460
|
-
apiKey,
|
|
7461
|
-
authDomain,
|
|
7462
|
-
clientPlatform,
|
|
7463
|
-
apiHost: "identitytoolkit.googleapis.com",
|
|
7464
|
-
tokenApiHost: "securetoken.googleapis.com",
|
|
7465
|
-
apiScheme: "https",
|
|
7466
|
-
sdkClientVersion: _getClientVersion(clientPlatform)
|
|
7467
|
-
};
|
|
7468
|
-
const authInstance = new AuthImpl(app2, heartbeatServiceProvider, appCheckServiceProvider, config);
|
|
7469
|
-
_initializeAuthInstance(authInstance, deps);
|
|
7470
|
-
return authInstance;
|
|
7471
|
-
},
|
|
7472
|
-
"PUBLIC"
|
|
7473
|
-
/* ComponentType.PUBLIC */
|
|
7474
|
-
).setInstantiationMode(
|
|
7475
|
-
"EXPLICIT"
|
|
7476
|
-
/* InstantiationMode.EXPLICIT */
|
|
7477
|
-
).setInstanceCreatedCallback((container, _instanceIdentifier, _instance) => {
|
|
7478
|
-
const authInternalProvider = container.getProvider(
|
|
7479
|
-
"auth-internal"
|
|
7480
|
-
/* _ComponentName.AUTH_INTERNAL */
|
|
7481
|
-
);
|
|
7482
|
-
authInternalProvider.initialize();
|
|
7483
|
-
}));
|
|
7484
|
-
_registerComponent(new Component(
|
|
7485
|
-
"auth-internal",
|
|
7486
|
-
(container) => {
|
|
7487
|
-
const auth2 = _castAuth(container.getProvider(
|
|
7488
|
-
"auth"
|
|
7489
|
-
/* _ComponentName.AUTH */
|
|
7490
|
-
).getImmediate());
|
|
7491
|
-
return ((auth3) => new AuthInterop(auth3))(auth2);
|
|
7492
|
-
},
|
|
7493
|
-
"PRIVATE"
|
|
7494
|
-
/* ComponentType.PRIVATE */
|
|
7495
|
-
).setInstantiationMode(
|
|
7496
|
-
"EXPLICIT"
|
|
7497
|
-
/* InstantiationMode.EXPLICIT */
|
|
7498
|
-
));
|
|
7499
|
-
registerVersion(name3, version3, getVersionForPlatform(clientPlatform));
|
|
7500
|
-
registerVersion(name3, version3, "esm2017");
|
|
7495
|
+
function O(n2, l2, u2) {
|
|
7496
|
+
return this.constructor(n2, u2);
|
|
7501
7497
|
}
|
|
7502
|
-
|
|
7503
|
-
|
|
7504
|
-
|
|
7505
|
-
var mintCookieFactory = (url) => async (user) => {
|
|
7506
|
-
const idTokenResult = user && await user.getIdTokenResult();
|
|
7507
|
-
const idTokenAge = idTokenResult && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(idTokenResult.issuedAtTime)) / 1e3;
|
|
7508
|
-
if (idTokenAge && idTokenAge > authIdTokenMaxAge) {
|
|
7509
|
-
return;
|
|
7510
|
-
}
|
|
7511
|
-
const idToken = idTokenResult === null || idTokenResult === void 0 ? void 0 : idTokenResult.token;
|
|
7512
|
-
if (lastPostedIdToken === idToken) {
|
|
7513
|
-
return;
|
|
7514
|
-
}
|
|
7515
|
-
lastPostedIdToken = idToken;
|
|
7516
|
-
await fetch(url, {
|
|
7517
|
-
method: idToken ? "POST" : "DELETE",
|
|
7518
|
-
headers: idToken ? {
|
|
7519
|
-
"Authorization": `Bearer ${idToken}`
|
|
7520
|
-
} : {}
|
|
7521
|
-
});
|
|
7522
|
-
};
|
|
7523
|
-
function getAuth(app2 = getApp()) {
|
|
7524
|
-
const provider = _getProvider(app2, "auth");
|
|
7525
|
-
if (provider.isInitialized()) {
|
|
7526
|
-
return provider.getImmediate();
|
|
7527
|
-
}
|
|
7528
|
-
const auth2 = initializeAuth(app2, {
|
|
7529
|
-
popupRedirectResolver: browserPopupRedirectResolver,
|
|
7530
|
-
persistence: [
|
|
7531
|
-
indexedDBLocalPersistence,
|
|
7532
|
-
browserLocalPersistence,
|
|
7533
|
-
browserSessionPersistence
|
|
7534
|
-
]
|
|
7535
|
-
});
|
|
7536
|
-
const authTokenSyncUrl = getExperimentalSetting("authTokenSyncURL");
|
|
7537
|
-
if (authTokenSyncUrl) {
|
|
7538
|
-
const mintCookie = mintCookieFactory(authTokenSyncUrl);
|
|
7539
|
-
beforeAuthStateChanged(auth2, mintCookie, () => mintCookie(auth2.currentUser));
|
|
7540
|
-
onIdTokenChanged(auth2, (user) => mintCookie(user));
|
|
7541
|
-
}
|
|
7542
|
-
const authEmulatorHost = getDefaultEmulatorHost("auth");
|
|
7543
|
-
if (authEmulatorHost) {
|
|
7544
|
-
connectAuthEmulator(auth2, `http://${authEmulatorHost}`);
|
|
7545
|
-
}
|
|
7546
|
-
return auth2;
|
|
7498
|
+
function P(u2, i2, t2) {
|
|
7499
|
+
var o3, r2, e2;
|
|
7500
|
+
l.__ && l.__(u2, i2), r2 = (o3 = "function" == typeof t2) ? null : t2 && t2.__k || i2.__k, e2 = [], j(i2, u2 = (!o3 && t2 || i2).__k = h(p, null, [u2]), r2 || f, f, void 0 !== i2.ownerSVGElement, !o3 && t2 ? [t2] : r2 ? null : i2.firstChild ? n.call(i2.childNodes) : null, e2, !o3 && t2 ? t2 : r2 ? r2.__e : i2.firstChild, o3), z(e2, u2);
|
|
7547
7501
|
}
|
|
7548
|
-
|
|
7549
|
-
|
|
7550
|
-
|
|
7551
|
-
|
|
7502
|
+
n = e.slice, l = { __e: function(n2, l2, u2, i2) {
|
|
7503
|
+
for (var t2, o3, r2; l2 = l2.__; )
|
|
7504
|
+
if ((t2 = l2.__c) && !t2.__)
|
|
7505
|
+
try {
|
|
7506
|
+
if ((o3 = t2.constructor) && null != o3.getDerivedStateFromError && (t2.setState(o3.getDerivedStateFromError(n2)), r2 = t2.__d), null != t2.componentDidCatch && (t2.componentDidCatch(n2, i2 || {}), r2 = t2.__d), r2)
|
|
7507
|
+
return t2.__E = t2;
|
|
7508
|
+
} catch (l3) {
|
|
7509
|
+
n2 = l3;
|
|
7510
|
+
}
|
|
7511
|
+
throw n2;
|
|
7512
|
+
} }, u = 0, i = function(n2) {
|
|
7513
|
+
return null != n2 && void 0 === n2.constructor;
|
|
7514
|
+
}, d.prototype.setState = function(n2, l2) {
|
|
7515
|
+
var u2;
|
|
7516
|
+
u2 = null != this.__s && this.__s !== this.state ? this.__s : this.__s = s({}, this.state), "function" == typeof n2 && (n2 = n2(s({}, u2), this.props)), n2 && s(u2, n2), null != n2 && this.__v && (l2 && this.__h.push(l2), b(this));
|
|
7517
|
+
}, d.prototype.forceUpdate = function(n2) {
|
|
7518
|
+
this.__v && (this.__e = true, n2 && this.__h.push(n2), b(this));
|
|
7519
|
+
}, d.prototype.render = p, t = [], g.__r = 0, r = 0;
|
|
7552
7520
|
|
|
7553
7521
|
// ../../node_modules/.pnpm/preact@10.11.0/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js
|
|
7554
7522
|
var _2 = 0;
|
|
@@ -7565,10 +7533,14 @@
|
|
|
7565
7533
|
|
|
7566
7534
|
// signin/signin.tsx
|
|
7567
7535
|
function SignIn() {
|
|
7568
|
-
|
|
7569
|
-
|
|
7536
|
+
const title = window.__ROOT_CTX.name;
|
|
7537
|
+
return /* @__PURE__ */ o2("div", { className: "signin", children: [
|
|
7538
|
+
/* @__PURE__ */ o2("div", { className: "signin__headline", children: [
|
|
7539
|
+
title && /* @__PURE__ */ o2("h1", { className: "signin__headline__title", children: title }),
|
|
7540
|
+
/* @__PURE__ */ o2("p", { className: "signin__headline__body", children: title ? `Sign in to continue to ${title}` : "Sign in to continue" })
|
|
7541
|
+
] }),
|
|
7570
7542
|
/* @__PURE__ */ o2(SignIn.Button, {})
|
|
7571
|
-
] })
|
|
7543
|
+
] });
|
|
7572
7544
|
}
|
|
7573
7545
|
SignIn.Button = () => {
|
|
7574
7546
|
async function signIn() {
|
|
@@ -8097,7 +8069,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8097
8069
|
* limitations under the License.
|
|
8098
8070
|
*)
|
|
8099
8071
|
|
|
8100
|
-
@firebase/auth/dist/esm2017/index-
|
|
8072
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8101
8073
|
(**
|
|
8102
8074
|
* @license
|
|
8103
8075
|
* Copyright 2021 Google LLC
|
|
@@ -8115,7 +8087,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8115
8087
|
* limitations under the License.
|
|
8116
8088
|
*)
|
|
8117
8089
|
|
|
8118
|
-
@firebase/auth/dist/esm2017/index-
|
|
8090
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8119
8091
|
(**
|
|
8120
8092
|
* @license
|
|
8121
8093
|
* Copyright 2020 Google LLC
|
|
@@ -8133,7 +8105,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8133
8105
|
* limitations under the License.
|
|
8134
8106
|
*)
|
|
8135
8107
|
|
|
8136
|
-
@firebase/auth/dist/esm2017/index-
|
|
8108
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8137
8109
|
(**
|
|
8138
8110
|
* @license
|
|
8139
8111
|
* Copyright 2020 Google LLC
|
|
@@ -8151,7 +8123,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8151
8123
|
* limitations under the License.
|
|
8152
8124
|
*)
|
|
8153
8125
|
|
|
8154
|
-
@firebase/auth/dist/esm2017/index-
|
|
8126
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8155
8127
|
(**
|
|
8156
8128
|
* @license
|
|
8157
8129
|
* Copyright 2020 Google LLC
|
|
@@ -8169,7 +8141,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8169
8141
|
* limitations under the License.
|
|
8170
8142
|
*)
|
|
8171
8143
|
|
|
8172
|
-
@firebase/auth/dist/esm2017/index-
|
|
8144
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8173
8145
|
(**
|
|
8174
8146
|
* @license
|
|
8175
8147
|
* Copyright 2020 Google LLC
|
|
@@ -8187,7 +8159,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8187
8159
|
* limitations under the License.
|
|
8188
8160
|
*)
|
|
8189
8161
|
|
|
8190
|
-
@firebase/auth/dist/esm2017/index-
|
|
8162
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8191
8163
|
(**
|
|
8192
8164
|
* @license
|
|
8193
8165
|
* Copyright 2020 Google LLC
|
|
@@ -8205,7 +8177,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8205
8177
|
* limitations under the License.
|
|
8206
8178
|
*)
|
|
8207
8179
|
|
|
8208
|
-
@firebase/auth/dist/esm2017/index-
|
|
8180
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8209
8181
|
(**
|
|
8210
8182
|
* @license
|
|
8211
8183
|
* Copyright 2020 Google LLC
|
|
@@ -8239,7 +8211,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8239
8211
|
* limitations under the License.
|
|
8240
8212
|
*)
|
|
8241
8213
|
|
|
8242
|
-
@firebase/auth/dist/esm2017/index-
|
|
8214
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8243
8215
|
(**
|
|
8244
8216
|
* @license
|
|
8245
8217
|
* Copyright 2020 Google LLC
|
|
@@ -8289,7 +8261,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8289
8261
|
* limitations under the License.
|
|
8290
8262
|
*)
|
|
8291
8263
|
|
|
8292
|
-
@firebase/auth/dist/esm2017/index-
|
|
8264
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8293
8265
|
(**
|
|
8294
8266
|
* @license
|
|
8295
8267
|
* Copyright 2020 Google LLC
|
|
@@ -8307,7 +8279,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8307
8279
|
* limitations under the License.
|
|
8308
8280
|
*)
|
|
8309
8281
|
|
|
8310
|
-
@firebase/auth/dist/esm2017/index-
|
|
8282
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8311
8283
|
(**
|
|
8312
8284
|
* @license
|
|
8313
8285
|
* Copyright 2020 Google LLC
|
|
@@ -8325,7 +8297,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8325
8297
|
* limitations under the License.
|
|
8326
8298
|
*)
|
|
8327
8299
|
|
|
8328
|
-
@firebase/auth/dist/esm2017/index-
|
|
8300
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8329
8301
|
(**
|
|
8330
8302
|
* @license
|
|
8331
8303
|
* Copyright 2020 Google LLC
|
|
@@ -8343,7 +8315,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8343
8315
|
* limitations under the License.
|
|
8344
8316
|
*)
|
|
8345
8317
|
|
|
8346
|
-
@firebase/auth/dist/esm2017/index-
|
|
8318
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8347
8319
|
(**
|
|
8348
8320
|
* @license
|
|
8349
8321
|
* Copyright 2020 Google LLC
|
|
@@ -8377,7 +8349,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8377
8349
|
* limitations under the License.
|
|
8378
8350
|
*)
|
|
8379
8351
|
|
|
8380
|
-
@firebase/auth/dist/esm2017/index-
|
|
8352
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8381
8353
|
(**
|
|
8382
8354
|
* @license
|
|
8383
8355
|
* Copyright 2020 Google LLC
|
|
@@ -8395,7 +8367,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8395
8367
|
* limitations under the License.
|
|
8396
8368
|
*)
|
|
8397
8369
|
|
|
8398
|
-
@firebase/auth/dist/esm2017/index-
|
|
8370
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8399
8371
|
(**
|
|
8400
8372
|
* @license
|
|
8401
8373
|
* Copyright 2020 Google LLC
|
|
@@ -8413,7 +8385,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8413
8385
|
* limitations under the License.
|
|
8414
8386
|
*)
|
|
8415
8387
|
|
|
8416
|
-
@firebase/auth/dist/esm2017/index-
|
|
8388
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8417
8389
|
(**
|
|
8418
8390
|
* @license
|
|
8419
8391
|
* Copyright 2020 Google LLC
|
|
@@ -8431,7 +8403,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8431
8403
|
* limitations under the License.
|
|
8432
8404
|
*)
|
|
8433
8405
|
|
|
8434
|
-
@firebase/auth/dist/esm2017/index-
|
|
8406
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8435
8407
|
(**
|
|
8436
8408
|
* @license
|
|
8437
8409
|
* Copyright 2020 Google LLC
|
|
@@ -8449,7 +8421,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8449
8421
|
* limitations under the License.
|
|
8450
8422
|
*)
|
|
8451
8423
|
|
|
8452
|
-
@firebase/auth/dist/esm2017/index-
|
|
8424
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8453
8425
|
(**
|
|
8454
8426
|
* @license
|
|
8455
8427
|
* Copyright 2020 Google LLC
|
|
@@ -8467,7 +8439,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8467
8439
|
* limitations under the License.
|
|
8468
8440
|
*)
|
|
8469
8441
|
|
|
8470
|
-
@firebase/auth/dist/esm2017/index-
|
|
8442
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8471
8443
|
(**
|
|
8472
8444
|
* @license
|
|
8473
8445
|
* Copyright 2019 Google LLC
|
|
@@ -8485,7 +8457,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8485
8457
|
* limitations under the License.
|
|
8486
8458
|
*)
|
|
8487
8459
|
|
|
8488
|
-
@firebase/auth/dist/esm2017/index-
|
|
8460
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8489
8461
|
(**
|
|
8490
8462
|
* @license
|
|
8491
8463
|
* Copyright 2019 Google LLC
|
|
@@ -8519,7 +8491,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8519
8491
|
* limitations under the License.
|
|
8520
8492
|
*)
|
|
8521
8493
|
|
|
8522
|
-
@firebase/auth/dist/esm2017/index-
|
|
8494
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8523
8495
|
(**
|
|
8524
8496
|
* @license
|
|
8525
8497
|
* Copyright 2020 Google LLC
|
|
@@ -8537,7 +8509,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8537
8509
|
* limitations under the License.
|
|
8538
8510
|
*)
|
|
8539
8511
|
|
|
8540
|
-
@firebase/auth/dist/esm2017/index-
|
|
8512
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8541
8513
|
(**
|
|
8542
8514
|
* @license
|
|
8543
8515
|
* Copyright 2020 Google LLC
|
|
@@ -8555,7 +8527,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8555
8527
|
* limitations under the License.
|
|
8556
8528
|
*)
|
|
8557
8529
|
|
|
8558
|
-
@firebase/auth/dist/esm2017/index-
|
|
8530
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8559
8531
|
(**
|
|
8560
8532
|
* @license
|
|
8561
8533
|
* Copyright 2020 Google LLC
|
|
@@ -8573,7 +8545,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8573
8545
|
* limitations under the License.
|
|
8574
8546
|
*)
|
|
8575
8547
|
|
|
8576
|
-
@firebase/auth/dist/esm2017/index-
|
|
8548
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8577
8549
|
(**
|
|
8578
8550
|
* @license
|
|
8579
8551
|
* Copyright 2020 Google LLC
|
|
@@ -8591,7 +8563,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8591
8563
|
* limitations under the License.
|
|
8592
8564
|
*)
|
|
8593
8565
|
|
|
8594
|
-
@firebase/auth/dist/esm2017/index-
|
|
8566
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8595
8567
|
(**
|
|
8596
8568
|
* @license
|
|
8597
8569
|
* Copyright 2020 Google LLC
|
|
@@ -8609,7 +8581,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8609
8581
|
* limitations under the License.
|
|
8610
8582
|
*)
|
|
8611
8583
|
|
|
8612
|
-
@firebase/auth/dist/esm2017/index-
|
|
8584
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8613
8585
|
(**
|
|
8614
8586
|
* @license
|
|
8615
8587
|
* Copyright 2020 Google LLC
|
|
@@ -8627,7 +8599,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8627
8599
|
* limitations under the License.
|
|
8628
8600
|
*)
|
|
8629
8601
|
|
|
8630
|
-
@firebase/auth/dist/esm2017/index-
|
|
8602
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8631
8603
|
(**
|
|
8632
8604
|
* @license
|
|
8633
8605
|
* Copyright 2020 Google LLC
|
|
@@ -8645,7 +8617,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8645
8617
|
* limitations under the License.
|
|
8646
8618
|
*)
|
|
8647
8619
|
|
|
8648
|
-
@firebase/auth/dist/esm2017/index-
|
|
8620
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8649
8621
|
(**
|
|
8650
8622
|
* @license
|
|
8651
8623
|
* Copyright 2020 Google LLC
|
|
@@ -8663,7 +8635,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8663
8635
|
* limitations under the License.
|
|
8664
8636
|
*)
|
|
8665
8637
|
|
|
8666
|
-
@firebase/auth/dist/esm2017/index-
|
|
8638
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8667
8639
|
(**
|
|
8668
8640
|
* @license
|
|
8669
8641
|
* Copyright 2020 Google LLC
|
|
@@ -8681,7 +8653,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8681
8653
|
* limitations under the License.
|
|
8682
8654
|
*)
|
|
8683
8655
|
|
|
8684
|
-
@firebase/auth/dist/esm2017/index-
|
|
8656
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8685
8657
|
(**
|
|
8686
8658
|
* @license
|
|
8687
8659
|
* Copyright 2020 Google LLC
|
|
@@ -8699,7 +8671,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8699
8671
|
* limitations under the License.
|
|
8700
8672
|
*)
|
|
8701
8673
|
|
|
8702
|
-
@firebase/auth/dist/esm2017/index-
|
|
8674
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8703
8675
|
(**
|
|
8704
8676
|
* @license
|
|
8705
8677
|
* Copyright 2019 Google LLC
|
|
@@ -8717,7 +8689,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8717
8689
|
* limitations under the License.
|
|
8718
8690
|
*)
|
|
8719
8691
|
|
|
8720
|
-
@firebase/auth/dist/esm2017/index-
|
|
8692
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8721
8693
|
(**
|
|
8722
8694
|
* @license
|
|
8723
8695
|
* Copyright 2020 Google LLC
|
|
@@ -8735,7 +8707,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8735
8707
|
* limitations under the License.
|
|
8736
8708
|
*)
|
|
8737
8709
|
|
|
8738
|
-
@firebase/auth/dist/esm2017/index-
|
|
8710
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8739
8711
|
(**
|
|
8740
8712
|
* @license
|
|
8741
8713
|
* Copyright 2020 Google LLC
|
|
@@ -8753,7 +8725,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8753
8725
|
* limitations under the License.
|
|
8754
8726
|
*)
|
|
8755
8727
|
|
|
8756
|
-
@firebase/auth/dist/esm2017/index-
|
|
8728
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8757
8729
|
(**
|
|
8758
8730
|
* @license
|
|
8759
8731
|
* Copyright 2020 Google LLC
|
|
@@ -8771,7 +8743,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8771
8743
|
* limitations under the License.
|
|
8772
8744
|
*)
|
|
8773
8745
|
|
|
8774
|
-
@firebase/auth/dist/esm2017/index-
|
|
8746
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8775
8747
|
(**
|
|
8776
8748
|
* @license
|
|
8777
8749
|
* Copyright 2020 Google LLC
|
|
@@ -8789,7 +8761,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8789
8761
|
* limitations under the License.
|
|
8790
8762
|
*)
|
|
8791
8763
|
|
|
8792
|
-
@firebase/auth/dist/esm2017/index-
|
|
8764
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8793
8765
|
(**
|
|
8794
8766
|
* @license
|
|
8795
8767
|
* Copyright 2019 Google LLC
|
|
@@ -8839,7 +8811,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8839
8811
|
* limitations under the License.
|
|
8840
8812
|
*)
|
|
8841
8813
|
|
|
8842
|
-
@firebase/auth/dist/esm2017/index-
|
|
8814
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8843
8815
|
(**
|
|
8844
8816
|
* @license
|
|
8845
8817
|
* Copyright 2020 Google LLC
|
|
@@ -8857,7 +8829,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8857
8829
|
* limitations under the License.
|
|
8858
8830
|
*)
|
|
8859
8831
|
|
|
8860
|
-
@firebase/auth/dist/esm2017/index-
|
|
8832
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8861
8833
|
(**
|
|
8862
8834
|
* @license
|
|
8863
8835
|
* Copyright 2020 Google LLC
|
|
@@ -8875,7 +8847,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8875
8847
|
* limitations under the License.
|
|
8876
8848
|
*)
|
|
8877
8849
|
|
|
8878
|
-
@firebase/auth/dist/esm2017/index-
|
|
8850
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8879
8851
|
(**
|
|
8880
8852
|
* @license
|
|
8881
8853
|
* Copyright 2020 Google LLC
|
|
@@ -8893,7 +8865,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8893
8865
|
* limitations under the License.
|
|
8894
8866
|
*)
|
|
8895
8867
|
|
|
8896
|
-
@firebase/auth/dist/esm2017/index-
|
|
8868
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8897
8869
|
(**
|
|
8898
8870
|
* @license
|
|
8899
8871
|
* Copyright 2020 Google LLC
|
|
@@ -8943,7 +8915,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8943
8915
|
* limitations under the License.
|
|
8944
8916
|
*)
|
|
8945
8917
|
|
|
8946
|
-
@firebase/auth/dist/esm2017/index-
|
|
8918
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8947
8919
|
(**
|
|
8948
8920
|
* @license
|
|
8949
8921
|
* Copyright 2020 Google LLC
|
|
@@ -8961,7 +8933,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8961
8933
|
* limitations under the License.
|
|
8962
8934
|
*)
|
|
8963
8935
|
|
|
8964
|
-
@firebase/auth/dist/esm2017/index-
|
|
8936
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8965
8937
|
(**
|
|
8966
8938
|
* @license
|
|
8967
8939
|
* Copyright 2020 Google LLC
|
|
@@ -8979,7 +8951,7 @@ firebase/app/dist/esm/index.esm.js:
|
|
|
8979
8951
|
* limitations under the License.
|
|
8980
8952
|
*)
|
|
8981
8953
|
|
|
8982
|
-
@firebase/auth/dist/esm2017/index-
|
|
8954
|
+
@firebase/auth/dist/esm2017/index-94e5f531.js:
|
|
8983
8955
|
(**
|
|
8984
8956
|
* @license
|
|
8985
8957
|
* Copyright 2020 Google LLC
|