@inploi/plugin-chatbot 3.30.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/index.js +3 -43
- package/cdn/style.css +1 -1
- package/dist/chatbot-body-2c87c7e2.cjs +1 -0
- package/dist/chatbot-body-c80bdc34.js +4012 -0
- package/dist/chatbot.api.d.ts +2 -2
- package/dist/chatbot.constants.d.ts +2 -7
- package/dist/chatbot.d.ts +23 -13
- package/dist/chatbot.dom.d.ts +1 -1
- package/dist/chatbot.utils.d.ts +1 -1
- package/dist/components/chatbot.d.ts +3 -1
- package/dist/components/status-bar.d.ts +3 -1
- package/dist/i18n.d.ts +271 -0
- package/dist/index-a2c09edd.js +3535 -0
- package/dist/index-dc676e56.cjs +5 -0
- package/dist/interpreter.d.ts +3 -1
- package/dist/plugin-chatbot.cjs +1 -1
- package/dist/plugin-chatbot.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +9 -10
- package/dist/chatbot-body-59b9e18a.js +0 -3951
- package/dist/chatbot-body-7ee64297.cjs +0 -1
- package/dist/index-13d4c822.js +0 -4682
- package/dist/index-d064cfc7.cjs +0 -45
|
@@ -0,0 +1,3535 @@
|
|
|
1
|
+
var Hr = Object.defineProperty;
|
|
2
|
+
var Lr = (t, e, a) => e in t ? Hr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
|
|
3
|
+
var Be = (t, e, a) => (Lr(t, typeof e != "symbol" ? e + "" : e, a), a);
|
|
4
|
+
import { createPlugin as Br } from "@inploi/sdk";
|
|
5
|
+
var zt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
6
|
+
function Rr(t) {
|
|
7
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
8
|
+
}
|
|
9
|
+
var Ur = Array.isArray, Se = Ur, Vr = typeof zt == "object" && zt && zt.Object === Object && zt, Kr = Vr, qr = Kr, Wr = typeof self == "object" && self && self.Object === Object && self, Gr = qr || Wr || Function("return this")(), Ce = Gr, Yr = Ce, Xr = Yr.Symbol, Ee = Xr, Re = Ee, Na = Object.prototype, Zr = Na.hasOwnProperty, Jr = Na.toString, vt = Re ? Re.toStringTag : void 0;
|
|
10
|
+
function Qr(t) {
|
|
11
|
+
var e = Zr.call(t, vt), a = t[vt];
|
|
12
|
+
try {
|
|
13
|
+
t[vt] = void 0;
|
|
14
|
+
var r = !0;
|
|
15
|
+
} catch {
|
|
16
|
+
}
|
|
17
|
+
var o = Jr.call(t);
|
|
18
|
+
return r && (e ? t[vt] = a : delete t[vt]), o;
|
|
19
|
+
}
|
|
20
|
+
var ti = Qr, ei = Object.prototype, ai = ei.toString;
|
|
21
|
+
function ri(t) {
|
|
22
|
+
return ai.call(t);
|
|
23
|
+
}
|
|
24
|
+
var ii = ri, Ue = Ee, oi = ti, ni = ii, si = "[object Null]", ci = "[object Undefined]", Ve = Ue ? Ue.toStringTag : void 0;
|
|
25
|
+
function li(t) {
|
|
26
|
+
return t == null ? t === void 0 ? ci : si : Ve && Ve in Object(t) ? oi(t) : ni(t);
|
|
27
|
+
}
|
|
28
|
+
var Ma = li;
|
|
29
|
+
function di(t) {
|
|
30
|
+
return t != null && typeof t == "object";
|
|
31
|
+
}
|
|
32
|
+
var ui = di, pi = Ma, hi = ui, fi = "[object Symbol]";
|
|
33
|
+
function wi(t) {
|
|
34
|
+
return typeof t == "symbol" || hi(t) && pi(t) == fi;
|
|
35
|
+
}
|
|
36
|
+
var Pe = wi, gi = Se, bi = Pe, vi = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, _i = /^\w*$/;
|
|
37
|
+
function mi(t, e) {
|
|
38
|
+
if (gi(t))
|
|
39
|
+
return !1;
|
|
40
|
+
var a = typeof t;
|
|
41
|
+
return a == "number" || a == "symbol" || a == "boolean" || t == null || bi(t) ? !0 : _i.test(t) || !vi.test(t) || e != null && t in Object(e);
|
|
42
|
+
}
|
|
43
|
+
var yi = mi;
|
|
44
|
+
function xi(t) {
|
|
45
|
+
var e = typeof t;
|
|
46
|
+
return t != null && (e == "object" || e == "function");
|
|
47
|
+
}
|
|
48
|
+
var Fa = xi, ki = Ma, $i = Fa, Si = "[object AsyncFunction]", Ci = "[object Function]", Ei = "[object GeneratorFunction]", Pi = "[object Proxy]";
|
|
49
|
+
function Oi(t) {
|
|
50
|
+
if (!$i(t))
|
|
51
|
+
return !1;
|
|
52
|
+
var e = ki(t);
|
|
53
|
+
return e == Ci || e == Ei || e == Si || e == Pi;
|
|
54
|
+
}
|
|
55
|
+
var Ii = Oi, Ti = Ce, ji = Ti["__core-js_shared__"], zi = ji, Qt = zi, Ke = function() {
|
|
56
|
+
var t = /[^.]+$/.exec(Qt && Qt.keys && Qt.keys.IE_PROTO || "");
|
|
57
|
+
return t ? "Symbol(src)_1." + t : "";
|
|
58
|
+
}();
|
|
59
|
+
function Di(t) {
|
|
60
|
+
return !!Ke && Ke in t;
|
|
61
|
+
}
|
|
62
|
+
var Ai = Di, Ni = Function.prototype, Mi = Ni.toString;
|
|
63
|
+
function Fi(t) {
|
|
64
|
+
if (t != null) {
|
|
65
|
+
try {
|
|
66
|
+
return Mi.call(t);
|
|
67
|
+
} catch {
|
|
68
|
+
}
|
|
69
|
+
try {
|
|
70
|
+
return t + "";
|
|
71
|
+
} catch {
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return "";
|
|
75
|
+
}
|
|
76
|
+
var Hi = Fi, Li = Ii, Bi = Ai, Ri = Fa, Ui = Hi, Vi = /[\\^$.*+?()[\]{}|]/g, Ki = /^\[object .+?Constructor\]$/, qi = Function.prototype, Wi = Object.prototype, Gi = qi.toString, Yi = Wi.hasOwnProperty, Xi = RegExp(
|
|
77
|
+
"^" + Gi.call(Yi).replace(Vi, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
78
|
+
);
|
|
79
|
+
function Zi(t) {
|
|
80
|
+
if (!Ri(t) || Bi(t))
|
|
81
|
+
return !1;
|
|
82
|
+
var e = Li(t) ? Xi : Ki;
|
|
83
|
+
return e.test(Ui(t));
|
|
84
|
+
}
|
|
85
|
+
var Ji = Zi;
|
|
86
|
+
function Qi(t, e) {
|
|
87
|
+
return t == null ? void 0 : t[e];
|
|
88
|
+
}
|
|
89
|
+
var to = Qi, eo = Ji, ao = to;
|
|
90
|
+
function ro(t, e) {
|
|
91
|
+
var a = ao(t, e);
|
|
92
|
+
return eo(a) ? a : void 0;
|
|
93
|
+
}
|
|
94
|
+
var Ha = ro, io = Ha, oo = io(Object, "create"), Wt = oo, qe = Wt;
|
|
95
|
+
function no() {
|
|
96
|
+
this.__data__ = qe ? qe(null) : {}, this.size = 0;
|
|
97
|
+
}
|
|
98
|
+
var so = no;
|
|
99
|
+
function co(t) {
|
|
100
|
+
var e = this.has(t) && delete this.__data__[t];
|
|
101
|
+
return this.size -= e ? 1 : 0, e;
|
|
102
|
+
}
|
|
103
|
+
var lo = co, uo = Wt, po = "__lodash_hash_undefined__", ho = Object.prototype, fo = ho.hasOwnProperty;
|
|
104
|
+
function wo(t) {
|
|
105
|
+
var e = this.__data__;
|
|
106
|
+
if (uo) {
|
|
107
|
+
var a = e[t];
|
|
108
|
+
return a === po ? void 0 : a;
|
|
109
|
+
}
|
|
110
|
+
return fo.call(e, t) ? e[t] : void 0;
|
|
111
|
+
}
|
|
112
|
+
var go = wo, bo = Wt, vo = Object.prototype, _o = vo.hasOwnProperty;
|
|
113
|
+
function mo(t) {
|
|
114
|
+
var e = this.__data__;
|
|
115
|
+
return bo ? e[t] !== void 0 : _o.call(e, t);
|
|
116
|
+
}
|
|
117
|
+
var yo = mo, xo = Wt, ko = "__lodash_hash_undefined__";
|
|
118
|
+
function $o(t, e) {
|
|
119
|
+
var a = this.__data__;
|
|
120
|
+
return this.size += this.has(t) ? 0 : 1, a[t] = xo && e === void 0 ? ko : e, this;
|
|
121
|
+
}
|
|
122
|
+
var So = $o, Co = so, Eo = lo, Po = go, Oo = yo, Io = So;
|
|
123
|
+
function pt(t) {
|
|
124
|
+
var e = -1, a = t == null ? 0 : t.length;
|
|
125
|
+
for (this.clear(); ++e < a; ) {
|
|
126
|
+
var r = t[e];
|
|
127
|
+
this.set(r[0], r[1]);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
pt.prototype.clear = Co;
|
|
131
|
+
pt.prototype.delete = Eo;
|
|
132
|
+
pt.prototype.get = Po;
|
|
133
|
+
pt.prototype.has = Oo;
|
|
134
|
+
pt.prototype.set = Io;
|
|
135
|
+
var To = pt;
|
|
136
|
+
function jo() {
|
|
137
|
+
this.__data__ = [], this.size = 0;
|
|
138
|
+
}
|
|
139
|
+
var zo = jo;
|
|
140
|
+
function Do(t, e) {
|
|
141
|
+
return t === e || t !== t && e !== e;
|
|
142
|
+
}
|
|
143
|
+
var Ao = Do, No = Ao;
|
|
144
|
+
function Mo(t, e) {
|
|
145
|
+
for (var a = t.length; a--; )
|
|
146
|
+
if (No(t[a][0], e))
|
|
147
|
+
return a;
|
|
148
|
+
return -1;
|
|
149
|
+
}
|
|
150
|
+
var Gt = Mo, Fo = Gt, Ho = Array.prototype, Lo = Ho.splice;
|
|
151
|
+
function Bo(t) {
|
|
152
|
+
var e = this.__data__, a = Fo(e, t);
|
|
153
|
+
if (a < 0)
|
|
154
|
+
return !1;
|
|
155
|
+
var r = e.length - 1;
|
|
156
|
+
return a == r ? e.pop() : Lo.call(e, a, 1), --this.size, !0;
|
|
157
|
+
}
|
|
158
|
+
var Ro = Bo, Uo = Gt;
|
|
159
|
+
function Vo(t) {
|
|
160
|
+
var e = this.__data__, a = Uo(e, t);
|
|
161
|
+
return a < 0 ? void 0 : e[a][1];
|
|
162
|
+
}
|
|
163
|
+
var Ko = Vo, qo = Gt;
|
|
164
|
+
function Wo(t) {
|
|
165
|
+
return qo(this.__data__, t) > -1;
|
|
166
|
+
}
|
|
167
|
+
var Go = Wo, Yo = Gt;
|
|
168
|
+
function Xo(t, e) {
|
|
169
|
+
var a = this.__data__, r = Yo(a, t);
|
|
170
|
+
return r < 0 ? (++this.size, a.push([t, e])) : a[r][1] = e, this;
|
|
171
|
+
}
|
|
172
|
+
var Zo = Xo, Jo = zo, Qo = Ro, tn = Ko, en = Go, an = Zo;
|
|
173
|
+
function ht(t) {
|
|
174
|
+
var e = -1, a = t == null ? 0 : t.length;
|
|
175
|
+
for (this.clear(); ++e < a; ) {
|
|
176
|
+
var r = t[e];
|
|
177
|
+
this.set(r[0], r[1]);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
ht.prototype.clear = Jo;
|
|
181
|
+
ht.prototype.delete = Qo;
|
|
182
|
+
ht.prototype.get = tn;
|
|
183
|
+
ht.prototype.has = en;
|
|
184
|
+
ht.prototype.set = an;
|
|
185
|
+
var rn = ht, on = Ha, nn = Ce, sn = on(nn, "Map"), cn = sn, We = To, ln = rn, dn = cn;
|
|
186
|
+
function un() {
|
|
187
|
+
this.size = 0, this.__data__ = {
|
|
188
|
+
hash: new We(),
|
|
189
|
+
map: new (dn || ln)(),
|
|
190
|
+
string: new We()
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
var pn = un;
|
|
194
|
+
function hn(t) {
|
|
195
|
+
var e = typeof t;
|
|
196
|
+
return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
|
|
197
|
+
}
|
|
198
|
+
var fn = hn, wn = fn;
|
|
199
|
+
function gn(t, e) {
|
|
200
|
+
var a = t.__data__;
|
|
201
|
+
return wn(e) ? a[typeof e == "string" ? "string" : "hash"] : a.map;
|
|
202
|
+
}
|
|
203
|
+
var Yt = gn, bn = Yt;
|
|
204
|
+
function vn(t) {
|
|
205
|
+
var e = bn(this, t).delete(t);
|
|
206
|
+
return this.size -= e ? 1 : 0, e;
|
|
207
|
+
}
|
|
208
|
+
var _n = vn, mn = Yt;
|
|
209
|
+
function yn(t) {
|
|
210
|
+
return mn(this, t).get(t);
|
|
211
|
+
}
|
|
212
|
+
var xn = yn, kn = Yt;
|
|
213
|
+
function $n(t) {
|
|
214
|
+
return kn(this, t).has(t);
|
|
215
|
+
}
|
|
216
|
+
var Sn = $n, Cn = Yt;
|
|
217
|
+
function En(t, e) {
|
|
218
|
+
var a = Cn(this, t), r = a.size;
|
|
219
|
+
return a.set(t, e), this.size += a.size == r ? 0 : 1, this;
|
|
220
|
+
}
|
|
221
|
+
var Pn = En, On = pn, In = _n, Tn = xn, jn = Sn, zn = Pn;
|
|
222
|
+
function ft(t) {
|
|
223
|
+
var e = -1, a = t == null ? 0 : t.length;
|
|
224
|
+
for (this.clear(); ++e < a; ) {
|
|
225
|
+
var r = t[e];
|
|
226
|
+
this.set(r[0], r[1]);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
ft.prototype.clear = On;
|
|
230
|
+
ft.prototype.delete = In;
|
|
231
|
+
ft.prototype.get = Tn;
|
|
232
|
+
ft.prototype.has = jn;
|
|
233
|
+
ft.prototype.set = zn;
|
|
234
|
+
var Dn = ft, La = Dn, An = "Expected a function";
|
|
235
|
+
function Oe(t, e) {
|
|
236
|
+
if (typeof t != "function" || e != null && typeof e != "function")
|
|
237
|
+
throw new TypeError(An);
|
|
238
|
+
var a = function() {
|
|
239
|
+
var r = arguments, o = e ? e.apply(this, r) : r[0], i = a.cache;
|
|
240
|
+
if (i.has(o))
|
|
241
|
+
return i.get(o);
|
|
242
|
+
var n = t.apply(this, r);
|
|
243
|
+
return a.cache = i.set(o, n) || i, n;
|
|
244
|
+
};
|
|
245
|
+
return a.cache = new (Oe.Cache || La)(), a;
|
|
246
|
+
}
|
|
247
|
+
Oe.Cache = La;
|
|
248
|
+
var Nn = Oe, Mn = Nn, Fn = 500;
|
|
249
|
+
function Hn(t) {
|
|
250
|
+
var e = Mn(t, function(r) {
|
|
251
|
+
return a.size === Fn && a.clear(), r;
|
|
252
|
+
}), a = e.cache;
|
|
253
|
+
return e;
|
|
254
|
+
}
|
|
255
|
+
var Ln = Hn, Bn = Ln, Rn = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Un = /\\(\\)?/g, Vn = Bn(function(t) {
|
|
256
|
+
var e = [];
|
|
257
|
+
return t.charCodeAt(0) === 46 && e.push(""), t.replace(Rn, function(a, r, o, i) {
|
|
258
|
+
e.push(o ? i.replace(Un, "$1") : r || a);
|
|
259
|
+
}), e;
|
|
260
|
+
}), Kn = Vn;
|
|
261
|
+
function qn(t, e) {
|
|
262
|
+
for (var a = -1, r = t == null ? 0 : t.length, o = Array(r); ++a < r; )
|
|
263
|
+
o[a] = e(t[a], a, t);
|
|
264
|
+
return o;
|
|
265
|
+
}
|
|
266
|
+
var Wn = qn, Ge = Ee, Gn = Wn, Yn = Se, Xn = Pe, Zn = 1 / 0, Ye = Ge ? Ge.prototype : void 0, Xe = Ye ? Ye.toString : void 0;
|
|
267
|
+
function Ba(t) {
|
|
268
|
+
if (typeof t == "string")
|
|
269
|
+
return t;
|
|
270
|
+
if (Yn(t))
|
|
271
|
+
return Gn(t, Ba) + "";
|
|
272
|
+
if (Xn(t))
|
|
273
|
+
return Xe ? Xe.call(t) : "";
|
|
274
|
+
var e = t + "";
|
|
275
|
+
return e == "0" && 1 / t == -Zn ? "-0" : e;
|
|
276
|
+
}
|
|
277
|
+
var Jn = Ba, Qn = Jn;
|
|
278
|
+
function ts(t) {
|
|
279
|
+
return t == null ? "" : Qn(t);
|
|
280
|
+
}
|
|
281
|
+
var es = ts, as = Se, rs = yi, is = Kn, os = es;
|
|
282
|
+
function ns(t, e) {
|
|
283
|
+
return as(t) ? t : rs(t, e) ? [t] : is(os(t));
|
|
284
|
+
}
|
|
285
|
+
var ss = ns, cs = Pe, ls = 1 / 0;
|
|
286
|
+
function ds(t) {
|
|
287
|
+
if (typeof t == "string" || cs(t))
|
|
288
|
+
return t;
|
|
289
|
+
var e = t + "";
|
|
290
|
+
return e == "0" && 1 / t == -ls ? "-0" : e;
|
|
291
|
+
}
|
|
292
|
+
var us = ds, ps = ss, hs = us;
|
|
293
|
+
function fs(t, e) {
|
|
294
|
+
e = ps(e, t);
|
|
295
|
+
for (var a = 0, r = e.length; t != null && a < r; )
|
|
296
|
+
t = t[hs(e[a++])];
|
|
297
|
+
return a && a == r ? t : void 0;
|
|
298
|
+
}
|
|
299
|
+
var ws = fs, gs = ws;
|
|
300
|
+
function bs(t, e, a) {
|
|
301
|
+
var r = t == null ? void 0 : gs(t, e);
|
|
302
|
+
return r === void 0 ? a : r;
|
|
303
|
+
}
|
|
304
|
+
var vs = bs;
|
|
305
|
+
const _s = /* @__PURE__ */ Rr(vs);
|
|
306
|
+
var Pt, w, Ra, Ua, rt, Ze, Va, de, Ka, st = {}, qa = [], ms = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Xt = Array.isArray;
|
|
307
|
+
function R(t, e) {
|
|
308
|
+
for (var a in e)
|
|
309
|
+
t[a] = e[a];
|
|
310
|
+
return t;
|
|
311
|
+
}
|
|
312
|
+
function Wa(t) {
|
|
313
|
+
var e = t.parentNode;
|
|
314
|
+
e && e.removeChild(t);
|
|
315
|
+
}
|
|
316
|
+
function A(t, e, a) {
|
|
317
|
+
var r, o, i, n = {};
|
|
318
|
+
for (i in e)
|
|
319
|
+
i == "key" ? r = e[i] : i == "ref" ? o = e[i] : n[i] = e[i];
|
|
320
|
+
if (arguments.length > 2 && (n.children = arguments.length > 3 ? Pt.call(arguments, 2) : a), typeof t == "function" && t.defaultProps != null)
|
|
321
|
+
for (i in t.defaultProps)
|
|
322
|
+
n[i] === void 0 && (n[i] = t.defaultProps[i]);
|
|
323
|
+
return xt(t, n, r, o, null);
|
|
324
|
+
}
|
|
325
|
+
function xt(t, e, a, r, o) {
|
|
326
|
+
var i = { type: t, props: e, key: a, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: o ?? ++Ra };
|
|
327
|
+
return o == null && w.vnode != null && w.vnode(i), i;
|
|
328
|
+
}
|
|
329
|
+
function ys() {
|
|
330
|
+
return { current: null };
|
|
331
|
+
}
|
|
332
|
+
function M(t) {
|
|
333
|
+
return t.children;
|
|
334
|
+
}
|
|
335
|
+
function H(t, e) {
|
|
336
|
+
this.props = t, this.context = e;
|
|
337
|
+
}
|
|
338
|
+
function Lt(t, e) {
|
|
339
|
+
if (e == null)
|
|
340
|
+
return t.__ ? Lt(t.__, t.__.__k.indexOf(t) + 1) : null;
|
|
341
|
+
for (var a; e < t.__k.length; e++)
|
|
342
|
+
if ((a = t.__k[e]) != null && a.__e != null)
|
|
343
|
+
return a.__e;
|
|
344
|
+
return typeof t.type == "function" ? Lt(t) : null;
|
|
345
|
+
}
|
|
346
|
+
function Ga(t) {
|
|
347
|
+
var e, a;
|
|
348
|
+
if ((t = t.__) != null && t.__c != null) {
|
|
349
|
+
for (t.__e = t.__c.base = null, e = 0; e < t.__k.length; e++)
|
|
350
|
+
if ((a = t.__k[e]) != null && a.__e != null) {
|
|
351
|
+
t.__e = t.__c.base = a.__e;
|
|
352
|
+
break;
|
|
353
|
+
}
|
|
354
|
+
return Ga(t);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
function ue(t) {
|
|
358
|
+
(!t.__d && (t.__d = !0) && rt.push(t) && !Bt.__r++ || Ze !== w.debounceRendering) && ((Ze = w.debounceRendering) || Va)(Bt);
|
|
359
|
+
}
|
|
360
|
+
function Bt() {
|
|
361
|
+
var t, e, a, r, o, i, n, c, l;
|
|
362
|
+
for (rt.sort(de); t = rt.shift(); )
|
|
363
|
+
t.__d && (e = rt.length, r = void 0, o = void 0, i = void 0, c = (n = (a = t).__v).__e, (l = a.__P) && (r = [], o = [], (i = R({}, n)).__v = n.__v + 1, Ie(l, n, i, a.__n, l.ownerSVGElement !== void 0, n.__h != null ? [c] : null, r, c ?? Lt(n), n.__h, o), Ja(r, n, o), n.__e != c && Ga(n)), rt.length > e && rt.sort(de));
|
|
364
|
+
Bt.__r = 0;
|
|
365
|
+
}
|
|
366
|
+
function Ya(t, e, a, r, o, i, n, c, l, d, u) {
|
|
367
|
+
var s, h, g, p, b, m, v, $, N, F, j = 0, z = r && r.__k || qa, Q = z.length, tt = Q, O = e.length;
|
|
368
|
+
for (a.__k = [], s = 0; s < O; s++)
|
|
369
|
+
(p = a.__k[s] = (p = e[s]) == null || typeof p == "boolean" || typeof p == "function" ? null : typeof p == "string" || typeof p == "number" || typeof p == "bigint" ? xt(null, p, null, null, p) : Xt(p) ? xt(M, { children: p }, null, null, null) : p.__b > 0 ? xt(p.type, p.props, p.key, p.ref ? p.ref : null, p.__v) : p) != null && (p.__ = a, p.__b = a.__b + 1, ($ = xs(p, z, v = s + j, tt)) === -1 ? g = st : (g = z[$] || st, z[$] = void 0, tt--), Ie(t, p, g, o, i, n, c, l, d, u), b = p.__e, (h = p.ref) && g.ref != h && (g.ref && Te(g.ref, null, p), u.push(h, p.__c || b, p)), b != null && (m == null && (m = b), F = !(N = g === st || g.__v === null) && $ === v, N ? $ == -1 && j-- : $ !== v && ($ === v + 1 ? (j++, F = !0) : $ > v ? tt > O - v ? (j += $ - v, F = !0) : j-- : j = $ < v && $ == v - 1 ? $ - v : 0), v = s + j, F = F || $ == s && !N, typeof p.type != "function" || $ === v && g.__k !== p.__k ? typeof p.type == "function" || F ? p.__d !== void 0 ? (l = p.__d, p.__d = void 0) : l = b.nextSibling : l = Za(t, b, l) : l = Xa(p, l, t), typeof a.type == "function" && (a.__d = l)));
|
|
370
|
+
for (a.__e = m, s = Q; s--; )
|
|
371
|
+
z[s] != null && (typeof a.type == "function" && z[s].__e != null && z[s].__e == a.__d && (a.__d = z[s].__e.nextSibling), Qa(z[s], z[s]));
|
|
372
|
+
}
|
|
373
|
+
function Xa(t, e, a) {
|
|
374
|
+
for (var r, o = t.__k, i = 0; o && i < o.length; i++)
|
|
375
|
+
(r = o[i]) && (r.__ = t, e = typeof r.type == "function" ? Xa(r, e, a) : Za(a, r.__e, e));
|
|
376
|
+
return e;
|
|
377
|
+
}
|
|
378
|
+
function U(t, e) {
|
|
379
|
+
return e = e || [], t == null || typeof t == "boolean" || (Xt(t) ? t.some(function(a) {
|
|
380
|
+
U(a, e);
|
|
381
|
+
}) : e.push(t)), e;
|
|
382
|
+
}
|
|
383
|
+
function Za(t, e, a) {
|
|
384
|
+
return a == null || a.parentNode !== t ? t.insertBefore(e, null) : e == a && e.parentNode != null || t.insertBefore(e, a), e.nextSibling;
|
|
385
|
+
}
|
|
386
|
+
function xs(t, e, a, r) {
|
|
387
|
+
var o = t.key, i = t.type, n = a - 1, c = a + 1, l = e[a];
|
|
388
|
+
if (l === null || l && o == l.key && i === l.type)
|
|
389
|
+
return a;
|
|
390
|
+
if (r > (l != null ? 1 : 0))
|
|
391
|
+
for (; n >= 0 || c < e.length; ) {
|
|
392
|
+
if (n >= 0) {
|
|
393
|
+
if ((l = e[n]) && o == l.key && i === l.type)
|
|
394
|
+
return n;
|
|
395
|
+
n--;
|
|
396
|
+
}
|
|
397
|
+
if (c < e.length) {
|
|
398
|
+
if ((l = e[c]) && o == l.key && i === l.type)
|
|
399
|
+
return c;
|
|
400
|
+
c++;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
return -1;
|
|
404
|
+
}
|
|
405
|
+
function ks(t, e, a, r, o) {
|
|
406
|
+
var i;
|
|
407
|
+
for (i in a)
|
|
408
|
+
i === "children" || i === "key" || i in e || Rt(t, i, null, a[i], r);
|
|
409
|
+
for (i in e)
|
|
410
|
+
o && typeof e[i] != "function" || i === "children" || i === "key" || i === "value" || i === "checked" || a[i] === e[i] || Rt(t, i, e[i], a[i], r);
|
|
411
|
+
}
|
|
412
|
+
function Je(t, e, a) {
|
|
413
|
+
e[0] === "-" ? t.setProperty(e, a ?? "") : t[e] = a == null ? "" : typeof a != "number" || ms.test(e) ? a : a + "px";
|
|
414
|
+
}
|
|
415
|
+
function Rt(t, e, a, r, o) {
|
|
416
|
+
var i;
|
|
417
|
+
t:
|
|
418
|
+
if (e === "style")
|
|
419
|
+
if (typeof a == "string")
|
|
420
|
+
t.style.cssText = a;
|
|
421
|
+
else {
|
|
422
|
+
if (typeof r == "string" && (t.style.cssText = r = ""), r)
|
|
423
|
+
for (e in r)
|
|
424
|
+
a && e in a || Je(t.style, e, "");
|
|
425
|
+
if (a)
|
|
426
|
+
for (e in a)
|
|
427
|
+
r && a[e] === r[e] || Je(t.style, e, a[e]);
|
|
428
|
+
}
|
|
429
|
+
else if (e[0] === "o" && e[1] === "n")
|
|
430
|
+
i = e !== (e = e.replace(/Capture$/, "")), e = e.toLowerCase() in t ? e.toLowerCase().slice(2) : e.slice(2), t.l || (t.l = {}), t.l[e + i] = a, a ? r || t.addEventListener(e, i ? ta : Qe, i) : t.removeEventListener(e, i ? ta : Qe, i);
|
|
431
|
+
else if (e !== "dangerouslySetInnerHTML") {
|
|
432
|
+
if (o)
|
|
433
|
+
e = e.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
434
|
+
else if (e !== "width" && e !== "height" && e !== "href" && e !== "list" && e !== "form" && e !== "tabIndex" && e !== "download" && e !== "rowSpan" && e !== "colSpan" && e in t)
|
|
435
|
+
try {
|
|
436
|
+
t[e] = a ?? "";
|
|
437
|
+
break t;
|
|
438
|
+
} catch {
|
|
439
|
+
}
|
|
440
|
+
typeof a == "function" || (a == null || a === !1 && e[4] !== "-" ? t.removeAttribute(e) : t.setAttribute(e, a));
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
function Qe(t) {
|
|
444
|
+
return this.l[t.type + !1](w.event ? w.event(t) : t);
|
|
445
|
+
}
|
|
446
|
+
function ta(t) {
|
|
447
|
+
return this.l[t.type + !0](w.event ? w.event(t) : t);
|
|
448
|
+
}
|
|
449
|
+
function Ie(t, e, a, r, o, i, n, c, l, d) {
|
|
450
|
+
var u, s, h, g, p, b, m, v, $, N, F, j, z, Q, tt, O = e.type;
|
|
451
|
+
if (e.constructor !== void 0)
|
|
452
|
+
return null;
|
|
453
|
+
a.__h != null && (l = a.__h, c = e.__e = a.__e, e.__h = null, i = [c]), (u = w.__b) && u(e);
|
|
454
|
+
try {
|
|
455
|
+
t:
|
|
456
|
+
if (typeof O == "function") {
|
|
457
|
+
if (v = e.props, $ = (u = O.contextType) && r[u.__c], N = u ? $ ? $.props.value : u.__ : r, a.__c ? m = (s = e.__c = a.__c).__ = s.__E : ("prototype" in O && O.prototype.render ? e.__c = s = new O(v, N) : (e.__c = s = new H(v, N), s.constructor = O, s.render = Ss), $ && $.sub(s), s.props = v, s.state || (s.state = {}), s.context = N, s.__n = r, h = s.__d = !0, s.__h = [], s._sb = []), s.__s == null && (s.__s = s.state), O.getDerivedStateFromProps != null && (s.__s == s.state && (s.__s = R({}, s.__s)), R(s.__s, O.getDerivedStateFromProps(v, s.__s))), g = s.props, p = s.state, s.__v = e, h)
|
|
458
|
+
O.getDerivedStateFromProps == null && s.componentWillMount != null && s.componentWillMount(), s.componentDidMount != null && s.__h.push(s.componentDidMount);
|
|
459
|
+
else {
|
|
460
|
+
if (O.getDerivedStateFromProps == null && v !== g && s.componentWillReceiveProps != null && s.componentWillReceiveProps(v, N), !s.__e && (s.shouldComponentUpdate != null && s.shouldComponentUpdate(v, s.__s, N) === !1 || e.__v === a.__v)) {
|
|
461
|
+
for (e.__v !== a.__v && (s.props = v, s.state = s.__s, s.__d = !1), e.__e = a.__e, e.__k = a.__k, e.__k.forEach(function(jt) {
|
|
462
|
+
jt && (jt.__ = e);
|
|
463
|
+
}), F = 0; F < s._sb.length; F++)
|
|
464
|
+
s.__h.push(s._sb[F]);
|
|
465
|
+
s._sb = [], s.__h.length && n.push(s);
|
|
466
|
+
break t;
|
|
467
|
+
}
|
|
468
|
+
s.componentWillUpdate != null && s.componentWillUpdate(v, s.__s, N), s.componentDidUpdate != null && s.__h.push(function() {
|
|
469
|
+
s.componentDidUpdate(g, p, b);
|
|
470
|
+
});
|
|
471
|
+
}
|
|
472
|
+
if (s.context = N, s.props = v, s.__P = t, s.__e = !1, j = w.__r, z = 0, "prototype" in O && O.prototype.render) {
|
|
473
|
+
for (s.state = s.__s, s.__d = !1, j && j(e), u = s.render(s.props, s.state, s.context), Q = 0; Q < s._sb.length; Q++)
|
|
474
|
+
s.__h.push(s._sb[Q]);
|
|
475
|
+
s._sb = [];
|
|
476
|
+
} else
|
|
477
|
+
do
|
|
478
|
+
s.__d = !1, j && j(e), u = s.render(s.props, s.state, s.context), s.state = s.__s;
|
|
479
|
+
while (s.__d && ++z < 25);
|
|
480
|
+
s.state = s.__s, s.getChildContext != null && (r = R(R({}, r), s.getChildContext())), h || s.getSnapshotBeforeUpdate == null || (b = s.getSnapshotBeforeUpdate(g, p)), Ya(t, Xt(tt = u != null && u.type === M && u.key == null ? u.props.children : u) ? tt : [tt], e, a, r, o, i, n, c, l, d), s.base = e.__e, e.__h = null, s.__h.length && n.push(s), m && (s.__E = s.__ = null);
|
|
481
|
+
} else
|
|
482
|
+
i == null && e.__v === a.__v ? (e.__k = a.__k, e.__e = a.__e) : e.__e = $s(a.__e, e, a, r, o, i, n, l, d);
|
|
483
|
+
(u = w.diffed) && u(e);
|
|
484
|
+
} catch (jt) {
|
|
485
|
+
e.__v = null, (l || i != null) && (e.__e = c, e.__h = !!l, i[i.indexOf(c)] = null), w.__e(jt, e, a);
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
function Ja(t, e, a) {
|
|
489
|
+
for (var r = 0; r < a.length; r++)
|
|
490
|
+
Te(a[r], a[++r], a[++r]);
|
|
491
|
+
w.__c && w.__c(e, t), t.some(function(o) {
|
|
492
|
+
try {
|
|
493
|
+
t = o.__h, o.__h = [], t.some(function(i) {
|
|
494
|
+
i.call(o);
|
|
495
|
+
});
|
|
496
|
+
} catch (i) {
|
|
497
|
+
w.__e(i, o.__v);
|
|
498
|
+
}
|
|
499
|
+
});
|
|
500
|
+
}
|
|
501
|
+
function $s(t, e, a, r, o, i, n, c, l) {
|
|
502
|
+
var d, u, s, h = a.props, g = e.props, p = e.type, b = 0;
|
|
503
|
+
if (p === "svg" && (o = !0), i != null) {
|
|
504
|
+
for (; b < i.length; b++)
|
|
505
|
+
if ((d = i[b]) && "setAttribute" in d == !!p && (p ? d.localName === p : d.nodeType === 3)) {
|
|
506
|
+
t = d, i[b] = null;
|
|
507
|
+
break;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
if (t == null) {
|
|
511
|
+
if (p === null)
|
|
512
|
+
return document.createTextNode(g);
|
|
513
|
+
t = o ? document.createElementNS("http://www.w3.org/2000/svg", p) : document.createElement(p, g.is && g), i = null, c = !1;
|
|
514
|
+
}
|
|
515
|
+
if (p === null)
|
|
516
|
+
h === g || c && t.data === g || (t.data = g);
|
|
517
|
+
else {
|
|
518
|
+
if (i = i && Pt.call(t.childNodes), u = (h = a.props || st).dangerouslySetInnerHTML, s = g.dangerouslySetInnerHTML, !c) {
|
|
519
|
+
if (i != null)
|
|
520
|
+
for (h = {}, b = 0; b < t.attributes.length; b++)
|
|
521
|
+
h[t.attributes[b].name] = t.attributes[b].value;
|
|
522
|
+
(s || u) && (s && (u && s.__html == u.__html || s.__html === t.innerHTML) || (t.innerHTML = s && s.__html || ""));
|
|
523
|
+
}
|
|
524
|
+
if (ks(t, g, h, o, c), s)
|
|
525
|
+
e.__k = [];
|
|
526
|
+
else if (Ya(t, Xt(b = e.props.children) ? b : [b], e, a, r, o && p !== "foreignObject", i, n, i ? i[0] : a.__k && Lt(a, 0), c, l), i != null)
|
|
527
|
+
for (b = i.length; b--; )
|
|
528
|
+
i[b] != null && Wa(i[b]);
|
|
529
|
+
c || ("value" in g && (b = g.value) !== void 0 && (b !== t.value || p === "progress" && !b || p === "option" && b !== h.value) && Rt(t, "value", b, h.value, !1), "checked" in g && (b = g.checked) !== void 0 && b !== t.checked && Rt(t, "checked", b, h.checked, !1));
|
|
530
|
+
}
|
|
531
|
+
return t;
|
|
532
|
+
}
|
|
533
|
+
function Te(t, e, a) {
|
|
534
|
+
try {
|
|
535
|
+
typeof t == "function" ? t(e) : t.current = e;
|
|
536
|
+
} catch (r) {
|
|
537
|
+
w.__e(r, a);
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
function Qa(t, e, a) {
|
|
541
|
+
var r, o;
|
|
542
|
+
if (w.unmount && w.unmount(t), (r = t.ref) && (r.current && r.current !== t.__e || Te(r, null, e)), (r = t.__c) != null) {
|
|
543
|
+
if (r.componentWillUnmount)
|
|
544
|
+
try {
|
|
545
|
+
r.componentWillUnmount();
|
|
546
|
+
} catch (i) {
|
|
547
|
+
w.__e(i, e);
|
|
548
|
+
}
|
|
549
|
+
r.base = r.__P = null, t.__c = void 0;
|
|
550
|
+
}
|
|
551
|
+
if (r = t.__k)
|
|
552
|
+
for (o = 0; o < r.length; o++)
|
|
553
|
+
r[o] && Qa(r[o], e, a || typeof t.type != "function");
|
|
554
|
+
a || t.__e == null || Wa(t.__e), t.__ = t.__e = t.__d = void 0;
|
|
555
|
+
}
|
|
556
|
+
function Ss(t, e, a) {
|
|
557
|
+
return this.constructor(t, a);
|
|
558
|
+
}
|
|
559
|
+
function dt(t, e, a) {
|
|
560
|
+
var r, o, i, n;
|
|
561
|
+
w.__ && w.__(t, e), o = (r = typeof a == "function") ? null : a && a.__k || e.__k, i = [], n = [], Ie(e, t = (!r && a || e).__k = A(M, null, [t]), o || st, st, e.ownerSVGElement !== void 0, !r && a ? [a] : o ? null : e.firstChild ? Pt.call(e.childNodes) : null, i, !r && a ? a : o ? o.__e : e.firstChild, r, n), Ja(i, t, n);
|
|
562
|
+
}
|
|
563
|
+
function tr(t, e) {
|
|
564
|
+
dt(t, e, tr);
|
|
565
|
+
}
|
|
566
|
+
function Cs(t, e, a) {
|
|
567
|
+
var r, o, i, n, c = R({}, t.props);
|
|
568
|
+
for (i in t.type && t.type.defaultProps && (n = t.type.defaultProps), e)
|
|
569
|
+
i == "key" ? r = e[i] : i == "ref" ? o = e[i] : c[i] = e[i] === void 0 && n !== void 0 ? n[i] : e[i];
|
|
570
|
+
return arguments.length > 2 && (c.children = arguments.length > 3 ? Pt.call(arguments, 2) : a), xt(t.type, c, r || t.key, o || t.ref, null);
|
|
571
|
+
}
|
|
572
|
+
function er(t, e) {
|
|
573
|
+
var a = { __c: e = "__cC" + Ka++, __: t, Consumer: function(r, o) {
|
|
574
|
+
return r.children(o);
|
|
575
|
+
}, Provider: function(r) {
|
|
576
|
+
var o, i;
|
|
577
|
+
return this.getChildContext || (o = [], (i = {})[e] = this, this.getChildContext = function() {
|
|
578
|
+
return i;
|
|
579
|
+
}, this.shouldComponentUpdate = function(n) {
|
|
580
|
+
this.props.value !== n.value && o.some(function(c) {
|
|
581
|
+
c.__e = !0, ue(c);
|
|
582
|
+
});
|
|
583
|
+
}, this.sub = function(n) {
|
|
584
|
+
o.push(n);
|
|
585
|
+
var c = n.componentWillUnmount;
|
|
586
|
+
n.componentWillUnmount = function() {
|
|
587
|
+
o.splice(o.indexOf(n), 1), c && c.call(n);
|
|
588
|
+
};
|
|
589
|
+
}), r.children;
|
|
590
|
+
} };
|
|
591
|
+
return a.Provider.__ = a.Consumer.contextType = a;
|
|
592
|
+
}
|
|
593
|
+
Pt = qa.slice, w = { __e: function(t, e, a, r) {
|
|
594
|
+
for (var o, i, n; e = e.__; )
|
|
595
|
+
if ((o = e.__c) && !o.__)
|
|
596
|
+
try {
|
|
597
|
+
if ((i = o.constructor) && i.getDerivedStateFromError != null && (o.setState(i.getDerivedStateFromError(t)), n = o.__d), o.componentDidCatch != null && (o.componentDidCatch(t, r || {}), n = o.__d), n)
|
|
598
|
+
return o.__E = o;
|
|
599
|
+
} catch (c) {
|
|
600
|
+
t = c;
|
|
601
|
+
}
|
|
602
|
+
throw t;
|
|
603
|
+
} }, Ra = 0, Ua = function(t) {
|
|
604
|
+
return t != null && t.constructor === void 0;
|
|
605
|
+
}, H.prototype.setState = function(t, e) {
|
|
606
|
+
var a;
|
|
607
|
+
a = this.__s != null && this.__s !== this.state ? this.__s : this.__s = R({}, this.state), typeof t == "function" && (t = t(R({}, a), this.props)), t && R(a, t), t != null && this.__v && (e && this._sb.push(e), ue(this));
|
|
608
|
+
}, H.prototype.forceUpdate = function(t) {
|
|
609
|
+
this.__v && (this.__e = !0, t && this.__h.push(t), ue(this));
|
|
610
|
+
}, H.prototype.render = M, rt = [], Va = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, de = function(t, e) {
|
|
611
|
+
return t.__v.__b - e.__v.__b;
|
|
612
|
+
}, Bt.__r = 0, Ka = 0;
|
|
613
|
+
var je = class extends Error {
|
|
614
|
+
/**
|
|
615
|
+
* Creates a Valibot error with useful information.
|
|
616
|
+
*
|
|
617
|
+
* @param issues The error issues.
|
|
618
|
+
*/
|
|
619
|
+
constructor(e) {
|
|
620
|
+
super(e[0].message);
|
|
621
|
+
Be(this, "issues");
|
|
622
|
+
this.name = "ValiError", this.issues = e;
|
|
623
|
+
}
|
|
624
|
+
};
|
|
625
|
+
function ar(t, e) {
|
|
626
|
+
return {
|
|
627
|
+
...t,
|
|
628
|
+
_parse(a, r) {
|
|
629
|
+
return t._parse(e(a), r);
|
|
630
|
+
}
|
|
631
|
+
};
|
|
632
|
+
}
|
|
633
|
+
function Ot(t) {
|
|
634
|
+
return { issues: t };
|
|
635
|
+
}
|
|
636
|
+
function I(t) {
|
|
637
|
+
return { output: t };
|
|
638
|
+
}
|
|
639
|
+
function Es(t, e) {
|
|
640
|
+
return {
|
|
641
|
+
reason: t == null ? void 0 : t.reason,
|
|
642
|
+
validation: e.validation,
|
|
643
|
+
origin: (t == null ? void 0 : t.origin) || "value",
|
|
644
|
+
message: e.message,
|
|
645
|
+
input: e.input,
|
|
646
|
+
path: e.path,
|
|
647
|
+
abortEarly: t == null ? void 0 : t.abortEarly,
|
|
648
|
+
abortPipeEarly: t == null ? void 0 : t.abortPipeEarly,
|
|
649
|
+
skipPipe: t == null ? void 0 : t.skipPipe
|
|
650
|
+
};
|
|
651
|
+
}
|
|
652
|
+
function Ps(t, e) {
|
|
653
|
+
return {
|
|
654
|
+
reason: e,
|
|
655
|
+
origin: t == null ? void 0 : t.origin,
|
|
656
|
+
abortEarly: t == null ? void 0 : t.abortEarly,
|
|
657
|
+
abortPipeEarly: t == null ? void 0 : t.abortPipeEarly,
|
|
658
|
+
skipPipe: t == null ? void 0 : t.skipPipe
|
|
659
|
+
};
|
|
660
|
+
}
|
|
661
|
+
function X(t, e, a, r) {
|
|
662
|
+
if (!e || !e.length || a != null && a.skipPipe)
|
|
663
|
+
return I(t);
|
|
664
|
+
let o, i, n = t;
|
|
665
|
+
for (const c of e) {
|
|
666
|
+
const l = c._parse(n);
|
|
667
|
+
if (l.issues) {
|
|
668
|
+
o = o || Ps(a, r);
|
|
669
|
+
for (const d of l.issues) {
|
|
670
|
+
const u = Es(o, d);
|
|
671
|
+
i ? i.push(u) : i = [u];
|
|
672
|
+
}
|
|
673
|
+
if (o.abortEarly || o.abortPipeEarly)
|
|
674
|
+
break;
|
|
675
|
+
} else
|
|
676
|
+
n = l.output;
|
|
677
|
+
}
|
|
678
|
+
return i ? Ot(i) : I(n);
|
|
679
|
+
}
|
|
680
|
+
function G(t, e) {
|
|
681
|
+
return Array.isArray(t) ? [void 0, t] : [t, e];
|
|
682
|
+
}
|
|
683
|
+
function rr(t) {
|
|
684
|
+
return typeof t == "function" ? t() : t;
|
|
685
|
+
}
|
|
686
|
+
function Z(t, e, a, r) {
|
|
687
|
+
return Ot([
|
|
688
|
+
{
|
|
689
|
+
validation: t,
|
|
690
|
+
message: rr(e),
|
|
691
|
+
input: a,
|
|
692
|
+
requirement: r
|
|
693
|
+
}
|
|
694
|
+
]);
|
|
695
|
+
}
|
|
696
|
+
function ir(t, e, a) {
|
|
697
|
+
if (!t || typeof t == "object" && !Array.isArray(t)) {
|
|
698
|
+
const [i, n] = G(e, a);
|
|
699
|
+
return [t, i, n];
|
|
700
|
+
}
|
|
701
|
+
const [r, o] = G(
|
|
702
|
+
t,
|
|
703
|
+
e
|
|
704
|
+
);
|
|
705
|
+
return [void 0, r, o];
|
|
706
|
+
}
|
|
707
|
+
function V(t, e, a, r, o, i) {
|
|
708
|
+
return {
|
|
709
|
+
issues: [
|
|
710
|
+
{
|
|
711
|
+
reason: e,
|
|
712
|
+
validation: a,
|
|
713
|
+
origin: (t == null ? void 0 : t.origin) || "value",
|
|
714
|
+
message: rr(r),
|
|
715
|
+
input: o,
|
|
716
|
+
issues: i,
|
|
717
|
+
abortEarly: t == null ? void 0 : t.abortEarly,
|
|
718
|
+
abortPipeEarly: t == null ? void 0 : t.abortPipeEarly,
|
|
719
|
+
skipPipe: t == null ? void 0 : t.skipPipe
|
|
720
|
+
}
|
|
721
|
+
]
|
|
722
|
+
};
|
|
723
|
+
}
|
|
724
|
+
function or(t) {
|
|
725
|
+
return typeof t.default == "function" ? t.default() : t.default;
|
|
726
|
+
}
|
|
727
|
+
function Os(t) {
|
|
728
|
+
return {
|
|
729
|
+
type: "any",
|
|
730
|
+
async: !1,
|
|
731
|
+
pipe: t,
|
|
732
|
+
_parse(e, a) {
|
|
733
|
+
return X(e, this.pipe, a, "any");
|
|
734
|
+
}
|
|
735
|
+
};
|
|
736
|
+
}
|
|
737
|
+
function Is(t, e, a) {
|
|
738
|
+
const [r = "Invalid type", o] = G(e, a);
|
|
739
|
+
return {
|
|
740
|
+
type: "array",
|
|
741
|
+
async: !1,
|
|
742
|
+
item: t,
|
|
743
|
+
message: r,
|
|
744
|
+
pipe: o,
|
|
745
|
+
_parse(i, n) {
|
|
746
|
+
if (!Array.isArray(i))
|
|
747
|
+
return V(n, "type", "array", this.message, i);
|
|
748
|
+
let c;
|
|
749
|
+
const l = [];
|
|
750
|
+
for (let d = 0; d < i.length; d++) {
|
|
751
|
+
const u = i[d], s = this.item._parse(u, n);
|
|
752
|
+
if (s.issues) {
|
|
753
|
+
const h = {
|
|
754
|
+
type: "array",
|
|
755
|
+
input: i,
|
|
756
|
+
key: d,
|
|
757
|
+
value: u
|
|
758
|
+
};
|
|
759
|
+
for (const g of s.issues)
|
|
760
|
+
g.path ? g.path.unshift(h) : g.path = [h], c == null || c.push(g);
|
|
761
|
+
if (c || (c = s.issues), n != null && n.abortEarly)
|
|
762
|
+
break;
|
|
763
|
+
} else
|
|
764
|
+
l.push(s.output);
|
|
765
|
+
}
|
|
766
|
+
return c ? Ot(c) : X(l, this.pipe, n, "array");
|
|
767
|
+
}
|
|
768
|
+
};
|
|
769
|
+
}
|
|
770
|
+
function Ts(t, e) {
|
|
771
|
+
const [a = "Invalid type", r] = G(t, e);
|
|
772
|
+
return {
|
|
773
|
+
type: "boolean",
|
|
774
|
+
async: !1,
|
|
775
|
+
message: a,
|
|
776
|
+
pipe: r,
|
|
777
|
+
_parse(o, i) {
|
|
778
|
+
return typeof o != "boolean" ? V(i, "type", "boolean", this.message, o) : X(o, this.pipe, i, "boolean");
|
|
779
|
+
}
|
|
780
|
+
};
|
|
781
|
+
}
|
|
782
|
+
function ea(t, e = "Invalid type") {
|
|
783
|
+
return {
|
|
784
|
+
type: "literal",
|
|
785
|
+
async: !1,
|
|
786
|
+
literal: t,
|
|
787
|
+
message: e,
|
|
788
|
+
_parse(a, r) {
|
|
789
|
+
return a !== this.literal ? V(r, "type", "literal", this.message, a) : I(a);
|
|
790
|
+
}
|
|
791
|
+
};
|
|
792
|
+
}
|
|
793
|
+
function js(t, e) {
|
|
794
|
+
return {
|
|
795
|
+
type: "nullable",
|
|
796
|
+
async: !1,
|
|
797
|
+
wrapped: t,
|
|
798
|
+
default: e,
|
|
799
|
+
_parse(a, r) {
|
|
800
|
+
if (a === null) {
|
|
801
|
+
const o = or(this);
|
|
802
|
+
if (o === void 0)
|
|
803
|
+
return I(a);
|
|
804
|
+
a = o;
|
|
805
|
+
}
|
|
806
|
+
return this.wrapped._parse(a, r);
|
|
807
|
+
}
|
|
808
|
+
};
|
|
809
|
+
}
|
|
810
|
+
function aa(t, e) {
|
|
811
|
+
const [a = "Invalid type", r] = G(t, e);
|
|
812
|
+
return {
|
|
813
|
+
type: "number",
|
|
814
|
+
async: !1,
|
|
815
|
+
message: a,
|
|
816
|
+
pipe: r,
|
|
817
|
+
_parse(o, i) {
|
|
818
|
+
return typeof o != "number" || isNaN(o) ? V(i, "type", "number", this.message, o) : X(o, this.pipe, i, "number");
|
|
819
|
+
}
|
|
820
|
+
};
|
|
821
|
+
}
|
|
822
|
+
function it(t, e, a, r) {
|
|
823
|
+
const [o, i = "Invalid type", n] = ir(e, a, r);
|
|
824
|
+
let c;
|
|
825
|
+
return {
|
|
826
|
+
type: "object",
|
|
827
|
+
async: !1,
|
|
828
|
+
entries: t,
|
|
829
|
+
rest: o,
|
|
830
|
+
message: i,
|
|
831
|
+
pipe: n,
|
|
832
|
+
_parse(l, d) {
|
|
833
|
+
if (!l || typeof l != "object")
|
|
834
|
+
return V(d, "type", "object", this.message, l);
|
|
835
|
+
c = c || Object.entries(this.entries);
|
|
836
|
+
let u;
|
|
837
|
+
const s = {};
|
|
838
|
+
for (const [h, g] of c) {
|
|
839
|
+
const p = l[h], b = g._parse(p, d);
|
|
840
|
+
if (b.issues) {
|
|
841
|
+
const m = {
|
|
842
|
+
type: "object",
|
|
843
|
+
input: l,
|
|
844
|
+
key: h,
|
|
845
|
+
value: p
|
|
846
|
+
};
|
|
847
|
+
for (const v of b.issues)
|
|
848
|
+
v.path ? v.path.unshift(m) : v.path = [m], u == null || u.push(v);
|
|
849
|
+
if (u || (u = b.issues), d != null && d.abortEarly)
|
|
850
|
+
break;
|
|
851
|
+
} else
|
|
852
|
+
(b.output !== void 0 || h in l) && (s[h] = b.output);
|
|
853
|
+
}
|
|
854
|
+
if (this.rest && !(d != null && d.abortEarly && u)) {
|
|
855
|
+
for (const h in l)
|
|
856
|
+
if (!(h in this.entries)) {
|
|
857
|
+
const g = l[h], p = this.rest._parse(g, d);
|
|
858
|
+
if (p.issues) {
|
|
859
|
+
const b = {
|
|
860
|
+
type: "object",
|
|
861
|
+
input: l,
|
|
862
|
+
key: h,
|
|
863
|
+
value: g
|
|
864
|
+
};
|
|
865
|
+
for (const m of p.issues)
|
|
866
|
+
m.path ? m.path.unshift(b) : m.path = [b], u == null || u.push(m);
|
|
867
|
+
if (u || (u = p.issues), d != null && d.abortEarly)
|
|
868
|
+
break;
|
|
869
|
+
} else
|
|
870
|
+
s[h] = p.output;
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
return u ? Ot(u) : X(
|
|
874
|
+
s,
|
|
875
|
+
this.pipe,
|
|
876
|
+
d,
|
|
877
|
+
"object"
|
|
878
|
+
);
|
|
879
|
+
}
|
|
880
|
+
};
|
|
881
|
+
}
|
|
882
|
+
function nr(t, e) {
|
|
883
|
+
return {
|
|
884
|
+
type: "optional",
|
|
885
|
+
async: !1,
|
|
886
|
+
wrapped: t,
|
|
887
|
+
default: e,
|
|
888
|
+
_parse(a, r) {
|
|
889
|
+
if (a === void 0) {
|
|
890
|
+
const o = or(this);
|
|
891
|
+
if (o === void 0)
|
|
892
|
+
return I(a);
|
|
893
|
+
a = o;
|
|
894
|
+
}
|
|
895
|
+
return this.wrapped._parse(a, r);
|
|
896
|
+
}
|
|
897
|
+
};
|
|
898
|
+
}
|
|
899
|
+
function Cl(t, e = "Invalid type") {
|
|
900
|
+
return {
|
|
901
|
+
type: "picklist",
|
|
902
|
+
async: !1,
|
|
903
|
+
options: t,
|
|
904
|
+
message: e,
|
|
905
|
+
_parse(a, r) {
|
|
906
|
+
return this.options.includes(a) ? I(a) : V(r, "type", "picklist", this.message, a);
|
|
907
|
+
}
|
|
908
|
+
};
|
|
909
|
+
}
|
|
910
|
+
function ct(t, e) {
|
|
911
|
+
const [a = "Invalid type", r] = G(t, e);
|
|
912
|
+
return {
|
|
913
|
+
type: "string",
|
|
914
|
+
async: !1,
|
|
915
|
+
message: a,
|
|
916
|
+
pipe: r,
|
|
917
|
+
_parse(o, i) {
|
|
918
|
+
return typeof o != "string" ? V(i, "type", "string", this.message, o) : X(o, this.pipe, i, "string");
|
|
919
|
+
}
|
|
920
|
+
};
|
|
921
|
+
}
|
|
922
|
+
function zs(t, e, a, r) {
|
|
923
|
+
if (typeof e == "object" && !Array.isArray(e)) {
|
|
924
|
+
const [n, c] = G(a, r);
|
|
925
|
+
return [t, e, n, c];
|
|
926
|
+
}
|
|
927
|
+
const [o, i] = G(
|
|
928
|
+
e,
|
|
929
|
+
a
|
|
930
|
+
);
|
|
931
|
+
return [ct(), t, o, i];
|
|
932
|
+
}
|
|
933
|
+
var Ds = ["__proto__", "prototype", "constructor"];
|
|
934
|
+
function As(t, e, a, r) {
|
|
935
|
+
const [o, i, n = "Invalid type", c] = zs(t, e, a, r);
|
|
936
|
+
return {
|
|
937
|
+
type: "record",
|
|
938
|
+
async: !1,
|
|
939
|
+
key: o,
|
|
940
|
+
value: i,
|
|
941
|
+
message: n,
|
|
942
|
+
pipe: c,
|
|
943
|
+
_parse(l, d) {
|
|
944
|
+
if (!l || typeof l != "object")
|
|
945
|
+
return V(d, "type", "record", this.message, l);
|
|
946
|
+
let u;
|
|
947
|
+
const s = {};
|
|
948
|
+
for (const [h, g] of Object.entries(l))
|
|
949
|
+
if (!Ds.includes(h)) {
|
|
950
|
+
let p;
|
|
951
|
+
const b = this.key._parse(h, {
|
|
952
|
+
origin: "key",
|
|
953
|
+
abortEarly: d == null ? void 0 : d.abortEarly,
|
|
954
|
+
abortPipeEarly: d == null ? void 0 : d.abortPipeEarly,
|
|
955
|
+
skipPipe: d == null ? void 0 : d.skipPipe
|
|
956
|
+
});
|
|
957
|
+
if (b.issues) {
|
|
958
|
+
p = {
|
|
959
|
+
type: "record",
|
|
960
|
+
input: l,
|
|
961
|
+
key: h,
|
|
962
|
+
value: g
|
|
963
|
+
};
|
|
964
|
+
for (const v of b.issues)
|
|
965
|
+
v.path = [p], u == null || u.push(v);
|
|
966
|
+
if (u || (u = b.issues), d != null && d.abortEarly)
|
|
967
|
+
break;
|
|
968
|
+
}
|
|
969
|
+
const m = this.value._parse(g, d);
|
|
970
|
+
if (m.issues) {
|
|
971
|
+
p = p || {
|
|
972
|
+
type: "record",
|
|
973
|
+
input: l,
|
|
974
|
+
key: h,
|
|
975
|
+
value: g
|
|
976
|
+
};
|
|
977
|
+
for (const v of m.issues)
|
|
978
|
+
v.path ? v.path.unshift(p) : v.path = [p], u == null || u.push(v);
|
|
979
|
+
if (u || (u = m.issues), d != null && d.abortEarly)
|
|
980
|
+
break;
|
|
981
|
+
}
|
|
982
|
+
!b.issues && !m.issues && (s[b.output] = m.output);
|
|
983
|
+
}
|
|
984
|
+
return u ? Ot(u) : X(
|
|
985
|
+
s,
|
|
986
|
+
this.pipe,
|
|
987
|
+
d,
|
|
988
|
+
"record"
|
|
989
|
+
);
|
|
990
|
+
}
|
|
991
|
+
};
|
|
992
|
+
}
|
|
993
|
+
function Ns(t, e = "Invalid type") {
|
|
994
|
+
return {
|
|
995
|
+
type: "union",
|
|
996
|
+
async: !1,
|
|
997
|
+
options: t,
|
|
998
|
+
message: e,
|
|
999
|
+
_parse(a, r) {
|
|
1000
|
+
let o, i;
|
|
1001
|
+
for (const n of this.options) {
|
|
1002
|
+
const c = n._parse(a, r);
|
|
1003
|
+
if (c.issues)
|
|
1004
|
+
if (o)
|
|
1005
|
+
for (const l of c.issues)
|
|
1006
|
+
o.push(l);
|
|
1007
|
+
else
|
|
1008
|
+
o = c.issues;
|
|
1009
|
+
else {
|
|
1010
|
+
i = [c.output];
|
|
1011
|
+
break;
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
return i ? I(i[0]) : V(r, "type", "union", this.message, a, o);
|
|
1015
|
+
}
|
|
1016
|
+
};
|
|
1017
|
+
}
|
|
1018
|
+
function ra(t, e, a) {
|
|
1019
|
+
const r = t._parse(e, a);
|
|
1020
|
+
if (r.issues)
|
|
1021
|
+
throw new je(r.issues);
|
|
1022
|
+
return r.output;
|
|
1023
|
+
}
|
|
1024
|
+
async function El(t, e, a) {
|
|
1025
|
+
const r = await t._parse(e, a);
|
|
1026
|
+
if (r.issues)
|
|
1027
|
+
throw new je(r.issues);
|
|
1028
|
+
return r.output;
|
|
1029
|
+
}
|
|
1030
|
+
function Pl(t, e, a, r) {
|
|
1031
|
+
const [o, i, n] = ir(e, a, r);
|
|
1032
|
+
return it(
|
|
1033
|
+
Object.entries(t.entries).reduce(
|
|
1034
|
+
(c, [l, d]) => ({
|
|
1035
|
+
...c,
|
|
1036
|
+
[l]: nr(d)
|
|
1037
|
+
}),
|
|
1038
|
+
{}
|
|
1039
|
+
),
|
|
1040
|
+
o,
|
|
1041
|
+
i,
|
|
1042
|
+
n
|
|
1043
|
+
);
|
|
1044
|
+
}
|
|
1045
|
+
function Ol(t, e, a) {
|
|
1046
|
+
const r = t._parse(e, a);
|
|
1047
|
+
return r.issues ? {
|
|
1048
|
+
success: !1,
|
|
1049
|
+
error: new je(r.issues),
|
|
1050
|
+
issues: r.issues
|
|
1051
|
+
} : {
|
|
1052
|
+
success: !0,
|
|
1053
|
+
data: r.output,
|
|
1054
|
+
output: r.output
|
|
1055
|
+
};
|
|
1056
|
+
}
|
|
1057
|
+
function Il(t, e, a) {
|
|
1058
|
+
return {
|
|
1059
|
+
...t,
|
|
1060
|
+
_parse(r, o) {
|
|
1061
|
+
const i = t._parse(r, o);
|
|
1062
|
+
if (i.issues)
|
|
1063
|
+
return i;
|
|
1064
|
+
const n = e(i.output);
|
|
1065
|
+
return a && !Array.isArray(a) ? a._parse(n, o) : X(n, a, o, typeof n);
|
|
1066
|
+
}
|
|
1067
|
+
};
|
|
1068
|
+
}
|
|
1069
|
+
var Ms = /^[\w+-]+(?:\.[\w+-]+)*@[\da-z]+(?:[.-][\da-z]+)*\.[a-z]{2,}$/iu;
|
|
1070
|
+
function Tl(t, e = "Invalid input") {
|
|
1071
|
+
return {
|
|
1072
|
+
type: "custom",
|
|
1073
|
+
async: !1,
|
|
1074
|
+
message: e,
|
|
1075
|
+
requirement: t,
|
|
1076
|
+
_parse(a) {
|
|
1077
|
+
return this.requirement(a) ? I(a) : Z(this.type, this.message, a, this.requirement);
|
|
1078
|
+
}
|
|
1079
|
+
};
|
|
1080
|
+
}
|
|
1081
|
+
function jl(t = "Invalid email") {
|
|
1082
|
+
return {
|
|
1083
|
+
type: "email",
|
|
1084
|
+
async: !1,
|
|
1085
|
+
message: t,
|
|
1086
|
+
requirement: Ms,
|
|
1087
|
+
_parse(e) {
|
|
1088
|
+
return this.requirement.test(e) ? I(e) : Z(this.type, this.message, e, this.requirement);
|
|
1089
|
+
}
|
|
1090
|
+
};
|
|
1091
|
+
}
|
|
1092
|
+
function zl(t, e = "Invalid length") {
|
|
1093
|
+
return {
|
|
1094
|
+
type: "max_length",
|
|
1095
|
+
async: !1,
|
|
1096
|
+
message: e,
|
|
1097
|
+
requirement: t,
|
|
1098
|
+
_parse(a) {
|
|
1099
|
+
return a.length > this.requirement ? Z(this.type, this.message, a, this.requirement) : I(a);
|
|
1100
|
+
}
|
|
1101
|
+
};
|
|
1102
|
+
}
|
|
1103
|
+
function Dl(t, e = "Invalid value") {
|
|
1104
|
+
return {
|
|
1105
|
+
type: "max_value",
|
|
1106
|
+
async: !1,
|
|
1107
|
+
message: e,
|
|
1108
|
+
requirement: t,
|
|
1109
|
+
_parse(a) {
|
|
1110
|
+
return a > this.requirement ? Z(this.type, this.message, a, this.requirement) : I(a);
|
|
1111
|
+
}
|
|
1112
|
+
};
|
|
1113
|
+
}
|
|
1114
|
+
function Al(t, e = "Invalid length") {
|
|
1115
|
+
return {
|
|
1116
|
+
type: "min_length",
|
|
1117
|
+
async: !1,
|
|
1118
|
+
message: e,
|
|
1119
|
+
requirement: t,
|
|
1120
|
+
_parse(a) {
|
|
1121
|
+
return a.length < this.requirement ? Z(this.type, this.message, a, this.requirement) : I(a);
|
|
1122
|
+
}
|
|
1123
|
+
};
|
|
1124
|
+
}
|
|
1125
|
+
function Nl(t, e = "Invalid value") {
|
|
1126
|
+
return {
|
|
1127
|
+
type: "min_value",
|
|
1128
|
+
async: !1,
|
|
1129
|
+
message: e,
|
|
1130
|
+
requirement: t,
|
|
1131
|
+
_parse(a) {
|
|
1132
|
+
return a < this.requirement ? Z(this.type, this.message, a, this.requirement) : I(a);
|
|
1133
|
+
}
|
|
1134
|
+
};
|
|
1135
|
+
}
|
|
1136
|
+
function Ml(t, e = "Invalid regex") {
|
|
1137
|
+
return {
|
|
1138
|
+
type: "regex",
|
|
1139
|
+
async: !1,
|
|
1140
|
+
message: e,
|
|
1141
|
+
requirement: t,
|
|
1142
|
+
_parse(a) {
|
|
1143
|
+
return this.requirement.test(a) ? I(a) : Z(this.type, this.message, a, this.requirement);
|
|
1144
|
+
}
|
|
1145
|
+
};
|
|
1146
|
+
}
|
|
1147
|
+
function Fl(t = "Invalid URL") {
|
|
1148
|
+
return {
|
|
1149
|
+
type: "url",
|
|
1150
|
+
async: !1,
|
|
1151
|
+
message: t,
|
|
1152
|
+
requirement(e) {
|
|
1153
|
+
try {
|
|
1154
|
+
return new URL(e), !0;
|
|
1155
|
+
} catch {
|
|
1156
|
+
return !1;
|
|
1157
|
+
}
|
|
1158
|
+
},
|
|
1159
|
+
_parse(e) {
|
|
1160
|
+
return this.requirement(e) ? I(e) : Z(this.type, this.message, e, this.requirement);
|
|
1161
|
+
}
|
|
1162
|
+
};
|
|
1163
|
+
}
|
|
1164
|
+
function sr(t) {
|
|
1165
|
+
var e, a, r = "";
|
|
1166
|
+
if (typeof t == "string" || typeof t == "number")
|
|
1167
|
+
r += t;
|
|
1168
|
+
else if (typeof t == "object")
|
|
1169
|
+
if (Array.isArray(t))
|
|
1170
|
+
for (e = 0; e < t.length; e++)
|
|
1171
|
+
t[e] && (a = sr(t[e])) && (r && (r += " "), r += a);
|
|
1172
|
+
else
|
|
1173
|
+
for (e in t)
|
|
1174
|
+
t[e] && (r && (r += " "), r += e);
|
|
1175
|
+
return r;
|
|
1176
|
+
}
|
|
1177
|
+
function cr() {
|
|
1178
|
+
for (var t, e, a = 0, r = ""; a < arguments.length; )
|
|
1179
|
+
(t = arguments[a++]) && (e = sr(t)) && (r && (r += " "), r += e);
|
|
1180
|
+
return r;
|
|
1181
|
+
}
|
|
1182
|
+
const ia = (t) => typeof t == "boolean" ? "".concat(t) : t === 0 ? "0" : t, oa = cr, Fs = (t, e) => (a) => {
|
|
1183
|
+
var r;
|
|
1184
|
+
if ((e == null ? void 0 : e.variants) == null)
|
|
1185
|
+
return oa(t, a == null ? void 0 : a.class, a == null ? void 0 : a.className);
|
|
1186
|
+
const { variants: o, defaultVariants: i } = e, n = Object.keys(o).map((d) => {
|
|
1187
|
+
const u = a == null ? void 0 : a[d], s = i == null ? void 0 : i[d];
|
|
1188
|
+
if (u === null)
|
|
1189
|
+
return null;
|
|
1190
|
+
const h = ia(u) || ia(s);
|
|
1191
|
+
return o[d][h];
|
|
1192
|
+
}), c = a && Object.entries(a).reduce((d, u) => {
|
|
1193
|
+
let [s, h] = u;
|
|
1194
|
+
return h === void 0 || (d[s] = h), d;
|
|
1195
|
+
}, {}), l = e == null || (r = e.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((d, u) => {
|
|
1196
|
+
let { class: s, className: h, ...g } = u;
|
|
1197
|
+
return Object.entries(g).every((p) => {
|
|
1198
|
+
let [b, m] = p;
|
|
1199
|
+
return Array.isArray(m) ? m.includes({
|
|
1200
|
+
...i,
|
|
1201
|
+
...c
|
|
1202
|
+
}[b]) : {
|
|
1203
|
+
...i,
|
|
1204
|
+
...c
|
|
1205
|
+
}[b] === m;
|
|
1206
|
+
}) ? [
|
|
1207
|
+
...d,
|
|
1208
|
+
s,
|
|
1209
|
+
h
|
|
1210
|
+
] : d;
|
|
1211
|
+
}, []);
|
|
1212
|
+
return oa(t, n, l, a == null ? void 0 : a.class, a == null ? void 0 : a.className);
|
|
1213
|
+
};
|
|
1214
|
+
var Y, y, te, na, ut = 0, lr = [], Nt = [], sa = w.__b, ca = w.__r, la = w.diffed, da = w.__c, ua = w.unmount;
|
|
1215
|
+
function wt(t, e) {
|
|
1216
|
+
w.__h && w.__h(y, t, ut || e), ut = 0;
|
|
1217
|
+
var a = y.__H || (y.__H = { __: [], __h: [] });
|
|
1218
|
+
return t >= a.__.length && a.__.push({ __V: Nt }), a.__[t];
|
|
1219
|
+
}
|
|
1220
|
+
function dr(t) {
|
|
1221
|
+
return ut = 1, ur(fr, t);
|
|
1222
|
+
}
|
|
1223
|
+
function ur(t, e, a) {
|
|
1224
|
+
var r = wt(Y++, 2);
|
|
1225
|
+
if (r.t = t, !r.__c && (r.__ = [a ? a(e) : fr(void 0, e), function(c) {
|
|
1226
|
+
var l = r.__N ? r.__N[0] : r.__[0], d = r.t(l, c);
|
|
1227
|
+
l !== d && (r.__N = [d, r.__[1]], r.__c.setState({}));
|
|
1228
|
+
}], r.__c = y, !y.u)) {
|
|
1229
|
+
var o = function(c, l, d) {
|
|
1230
|
+
if (!r.__c.__H)
|
|
1231
|
+
return !0;
|
|
1232
|
+
var u = r.__c.__H.__.filter(function(h) {
|
|
1233
|
+
return h.__c;
|
|
1234
|
+
});
|
|
1235
|
+
if (u.every(function(h) {
|
|
1236
|
+
return !h.__N;
|
|
1237
|
+
}))
|
|
1238
|
+
return !i || i.call(this, c, l, d);
|
|
1239
|
+
var s = !1;
|
|
1240
|
+
return u.forEach(function(h) {
|
|
1241
|
+
if (h.__N) {
|
|
1242
|
+
var g = h.__[0];
|
|
1243
|
+
h.__ = h.__N, h.__N = void 0, g !== h.__[0] && (s = !0);
|
|
1244
|
+
}
|
|
1245
|
+
}), !(!s && r.__c.props === c) && (!i || i.call(this, c, l, d));
|
|
1246
|
+
};
|
|
1247
|
+
y.u = !0;
|
|
1248
|
+
var i = y.shouldComponentUpdate, n = y.componentWillUpdate;
|
|
1249
|
+
y.componentWillUpdate = function(c, l, d) {
|
|
1250
|
+
if (this.__e) {
|
|
1251
|
+
var u = i;
|
|
1252
|
+
i = void 0, o(c, l, d), i = u;
|
|
1253
|
+
}
|
|
1254
|
+
n && n.call(this, c, l, d);
|
|
1255
|
+
}, y.shouldComponentUpdate = o;
|
|
1256
|
+
}
|
|
1257
|
+
return r.__N || r.__;
|
|
1258
|
+
}
|
|
1259
|
+
function pr(t, e) {
|
|
1260
|
+
var a = wt(Y++, 3);
|
|
1261
|
+
!w.__s && De(a.__H, e) && (a.__ = t, a.i = e, y.__H.__h.push(a));
|
|
1262
|
+
}
|
|
1263
|
+
function It(t, e) {
|
|
1264
|
+
var a = wt(Y++, 4);
|
|
1265
|
+
!w.__s && De(a.__H, e) && (a.__ = t, a.i = e, y.__h.push(a));
|
|
1266
|
+
}
|
|
1267
|
+
function ze(t) {
|
|
1268
|
+
return ut = 5, gt(function() {
|
|
1269
|
+
return { current: t };
|
|
1270
|
+
}, []);
|
|
1271
|
+
}
|
|
1272
|
+
function Hs(t, e, a) {
|
|
1273
|
+
ut = 6, It(function() {
|
|
1274
|
+
return typeof t == "function" ? (t(e()), function() {
|
|
1275
|
+
return t(null);
|
|
1276
|
+
}) : t ? (t.current = e(), function() {
|
|
1277
|
+
return t.current = null;
|
|
1278
|
+
}) : void 0;
|
|
1279
|
+
}, a == null ? a : a.concat(t));
|
|
1280
|
+
}
|
|
1281
|
+
function gt(t, e) {
|
|
1282
|
+
var a = wt(Y++, 7);
|
|
1283
|
+
return De(a.__H, e) ? (a.__V = t(), a.i = e, a.__h = t, a.__V) : a.__;
|
|
1284
|
+
}
|
|
1285
|
+
function Ls(t, e) {
|
|
1286
|
+
return ut = 8, gt(function() {
|
|
1287
|
+
return t;
|
|
1288
|
+
}, e);
|
|
1289
|
+
}
|
|
1290
|
+
function hr(t) {
|
|
1291
|
+
var e = y.context[t.__c], a = wt(Y++, 9);
|
|
1292
|
+
return a.c = t, e ? (a.__ == null && (a.__ = !0, e.sub(y)), e.props.value) : t.__;
|
|
1293
|
+
}
|
|
1294
|
+
function Bs(t, e) {
|
|
1295
|
+
w.useDebugValue && w.useDebugValue(e ? e(t) : t);
|
|
1296
|
+
}
|
|
1297
|
+
function Rs() {
|
|
1298
|
+
var t = wt(Y++, 11);
|
|
1299
|
+
if (!t.__) {
|
|
1300
|
+
for (var e = y.__v; e !== null && !e.__m && e.__ !== null; )
|
|
1301
|
+
e = e.__;
|
|
1302
|
+
var a = e.__m || (e.__m = [0, 0]);
|
|
1303
|
+
t.__ = "P" + a[0] + "-" + a[1]++;
|
|
1304
|
+
}
|
|
1305
|
+
return t.__;
|
|
1306
|
+
}
|
|
1307
|
+
function Us() {
|
|
1308
|
+
for (var t; t = lr.shift(); )
|
|
1309
|
+
if (t.__P && t.__H)
|
|
1310
|
+
try {
|
|
1311
|
+
t.__H.__h.forEach(Mt), t.__H.__h.forEach(pe), t.__H.__h = [];
|
|
1312
|
+
} catch (e) {
|
|
1313
|
+
t.__H.__h = [], w.__e(e, t.__v);
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
w.__b = function(t) {
|
|
1317
|
+
y = null, sa && sa(t);
|
|
1318
|
+
}, w.__r = function(t) {
|
|
1319
|
+
ca && ca(t), Y = 0;
|
|
1320
|
+
var e = (y = t.__c).__H;
|
|
1321
|
+
e && (te === y ? (e.__h = [], y.__h = [], e.__.forEach(function(a) {
|
|
1322
|
+
a.__N && (a.__ = a.__N), a.__V = Nt, a.__N = a.i = void 0;
|
|
1323
|
+
})) : (e.__h.forEach(Mt), e.__h.forEach(pe), e.__h = [], Y = 0)), te = y;
|
|
1324
|
+
}, w.diffed = function(t) {
|
|
1325
|
+
la && la(t);
|
|
1326
|
+
var e = t.__c;
|
|
1327
|
+
e && e.__H && (e.__H.__h.length && (lr.push(e) !== 1 && na === w.requestAnimationFrame || ((na = w.requestAnimationFrame) || Vs)(Us)), e.__H.__.forEach(function(a) {
|
|
1328
|
+
a.i && (a.__H = a.i), a.__V !== Nt && (a.__ = a.__V), a.i = void 0, a.__V = Nt;
|
|
1329
|
+
})), te = y = null;
|
|
1330
|
+
}, w.__c = function(t, e) {
|
|
1331
|
+
e.some(function(a) {
|
|
1332
|
+
try {
|
|
1333
|
+
a.__h.forEach(Mt), a.__h = a.__h.filter(function(r) {
|
|
1334
|
+
return !r.__ || pe(r);
|
|
1335
|
+
});
|
|
1336
|
+
} catch (r) {
|
|
1337
|
+
e.some(function(o) {
|
|
1338
|
+
o.__h && (o.__h = []);
|
|
1339
|
+
}), e = [], w.__e(r, a.__v);
|
|
1340
|
+
}
|
|
1341
|
+
}), da && da(t, e);
|
|
1342
|
+
}, w.unmount = function(t) {
|
|
1343
|
+
ua && ua(t);
|
|
1344
|
+
var e, a = t.__c;
|
|
1345
|
+
a && a.__H && (a.__H.__.forEach(function(r) {
|
|
1346
|
+
try {
|
|
1347
|
+
Mt(r);
|
|
1348
|
+
} catch (o) {
|
|
1349
|
+
e = o;
|
|
1350
|
+
}
|
|
1351
|
+
}), a.__H = void 0, e && w.__e(e, a.__v));
|
|
1352
|
+
};
|
|
1353
|
+
var pa = typeof requestAnimationFrame == "function";
|
|
1354
|
+
function Vs(t) {
|
|
1355
|
+
var e, a = function() {
|
|
1356
|
+
clearTimeout(r), pa && cancelAnimationFrame(e), setTimeout(t);
|
|
1357
|
+
}, r = setTimeout(a, 100);
|
|
1358
|
+
pa && (e = requestAnimationFrame(a));
|
|
1359
|
+
}
|
|
1360
|
+
function Mt(t) {
|
|
1361
|
+
var e = y, a = t.__c;
|
|
1362
|
+
typeof a == "function" && (t.__c = void 0, a()), y = e;
|
|
1363
|
+
}
|
|
1364
|
+
function pe(t) {
|
|
1365
|
+
var e = y;
|
|
1366
|
+
t.__c = t.__(), y = e;
|
|
1367
|
+
}
|
|
1368
|
+
function De(t, e) {
|
|
1369
|
+
return !t || t.length !== e.length || e.some(function(a, r) {
|
|
1370
|
+
return a !== t[r];
|
|
1371
|
+
});
|
|
1372
|
+
}
|
|
1373
|
+
function fr(t, e) {
|
|
1374
|
+
return typeof e == "function" ? e(t) : e;
|
|
1375
|
+
}
|
|
1376
|
+
function wr(t, e) {
|
|
1377
|
+
for (var a in e)
|
|
1378
|
+
t[a] = e[a];
|
|
1379
|
+
return t;
|
|
1380
|
+
}
|
|
1381
|
+
function he(t, e) {
|
|
1382
|
+
for (var a in t)
|
|
1383
|
+
if (a !== "__source" && !(a in e))
|
|
1384
|
+
return !0;
|
|
1385
|
+
for (var r in e)
|
|
1386
|
+
if (r !== "__source" && t[r] !== e[r])
|
|
1387
|
+
return !0;
|
|
1388
|
+
return !1;
|
|
1389
|
+
}
|
|
1390
|
+
function ee(t, e) {
|
|
1391
|
+
return t === e && (t !== 0 || 1 / t == 1 / e) || t != t && e != e;
|
|
1392
|
+
}
|
|
1393
|
+
function fe(t) {
|
|
1394
|
+
this.props = t;
|
|
1395
|
+
}
|
|
1396
|
+
function Ks(t, e) {
|
|
1397
|
+
function a(o) {
|
|
1398
|
+
var i = this.props.ref, n = i == o.ref;
|
|
1399
|
+
return !n && i && (i.call ? i(null) : i.current = null), e ? !e(this.props, o) || !n : he(this.props, o);
|
|
1400
|
+
}
|
|
1401
|
+
function r(o) {
|
|
1402
|
+
return this.shouldComponentUpdate = a, A(t, o);
|
|
1403
|
+
}
|
|
1404
|
+
return r.displayName = "Memo(" + (t.displayName || t.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r;
|
|
1405
|
+
}
|
|
1406
|
+
(fe.prototype = new H()).isPureReactComponent = !0, fe.prototype.shouldComponentUpdate = function(t, e) {
|
|
1407
|
+
return he(this.props, t) || he(this.state, e);
|
|
1408
|
+
};
|
|
1409
|
+
var ha = w.__b;
|
|
1410
|
+
w.__b = function(t) {
|
|
1411
|
+
t.type && t.type.__f && t.ref && (t.props.ref = t.ref, t.ref = null), ha && ha(t);
|
|
1412
|
+
};
|
|
1413
|
+
var qs = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
1414
|
+
function Ws(t) {
|
|
1415
|
+
function e(a) {
|
|
1416
|
+
var r = wr({}, a);
|
|
1417
|
+
return delete r.ref, t(r, a.ref || null);
|
|
1418
|
+
}
|
|
1419
|
+
return e.$$typeof = qs, e.render = e, e.prototype.isReactComponent = e.__f = !0, e.displayName = "ForwardRef(" + (t.displayName || t.name) + ")", e;
|
|
1420
|
+
}
|
|
1421
|
+
var fa = function(t, e) {
|
|
1422
|
+
return t == null ? null : U(U(t).map(e));
|
|
1423
|
+
}, Gs = { map: fa, forEach: fa, count: function(t) {
|
|
1424
|
+
return t ? U(t).length : 0;
|
|
1425
|
+
}, only: function(t) {
|
|
1426
|
+
var e = U(t);
|
|
1427
|
+
if (e.length !== 1)
|
|
1428
|
+
throw "Children.only";
|
|
1429
|
+
return e[0];
|
|
1430
|
+
}, toArray: U }, Ys = w.__e;
|
|
1431
|
+
w.__e = function(t, e, a, r) {
|
|
1432
|
+
if (t.then) {
|
|
1433
|
+
for (var o, i = e; i = i.__; )
|
|
1434
|
+
if ((o = i.__c) && o.__c)
|
|
1435
|
+
return e.__e == null && (e.__e = a.__e, e.__k = a.__k), o.__c(t, e);
|
|
1436
|
+
}
|
|
1437
|
+
Ys(t, e, a, r);
|
|
1438
|
+
};
|
|
1439
|
+
var wa = w.unmount;
|
|
1440
|
+
function gr(t, e, a) {
|
|
1441
|
+
return t && (t.__c && t.__c.__H && (t.__c.__H.__.forEach(function(r) {
|
|
1442
|
+
typeof r.__c == "function" && r.__c();
|
|
1443
|
+
}), t.__c.__H = null), (t = wr({}, t)).__c != null && (t.__c.__P === a && (t.__c.__P = e), t.__c = null), t.__k = t.__k && t.__k.map(function(r) {
|
|
1444
|
+
return gr(r, e, a);
|
|
1445
|
+
})), t;
|
|
1446
|
+
}
|
|
1447
|
+
function br(t, e, a) {
|
|
1448
|
+
return t && (t.__v = null, t.__k = t.__k && t.__k.map(function(r) {
|
|
1449
|
+
return br(r, e, a);
|
|
1450
|
+
}), t.__c && t.__c.__P === e && (t.__e && a.insertBefore(t.__e, t.__d), t.__c.__e = !0, t.__c.__P = a)), t;
|
|
1451
|
+
}
|
|
1452
|
+
function kt() {
|
|
1453
|
+
this.__u = 0, this.t = null, this.__b = null;
|
|
1454
|
+
}
|
|
1455
|
+
function vr(t) {
|
|
1456
|
+
var e = t.__.__c;
|
|
1457
|
+
return e && e.__a && e.__a(t);
|
|
1458
|
+
}
|
|
1459
|
+
function _r(t) {
|
|
1460
|
+
var e, a, r;
|
|
1461
|
+
function o(i) {
|
|
1462
|
+
if (e || (e = t()).then(function(n) {
|
|
1463
|
+
a = n.default || n;
|
|
1464
|
+
}, function(n) {
|
|
1465
|
+
r = n;
|
|
1466
|
+
}), r)
|
|
1467
|
+
throw r;
|
|
1468
|
+
if (!a)
|
|
1469
|
+
throw e;
|
|
1470
|
+
return A(a, i);
|
|
1471
|
+
}
|
|
1472
|
+
return o.displayName = "Lazy", o.__f = !0, o;
|
|
1473
|
+
}
|
|
1474
|
+
function mt() {
|
|
1475
|
+
this.u = null, this.o = null;
|
|
1476
|
+
}
|
|
1477
|
+
w.unmount = function(t) {
|
|
1478
|
+
var e = t.__c;
|
|
1479
|
+
e && e.__R && e.__R(), e && t.__h === !0 && (t.type = null), wa && wa(t);
|
|
1480
|
+
}, (kt.prototype = new H()).__c = function(t, e) {
|
|
1481
|
+
var a = e.__c, r = this;
|
|
1482
|
+
r.t == null && (r.t = []), r.t.push(a);
|
|
1483
|
+
var o = vr(r.__v), i = !1, n = function() {
|
|
1484
|
+
i || (i = !0, a.__R = null, o ? o(c) : c());
|
|
1485
|
+
};
|
|
1486
|
+
a.__R = n;
|
|
1487
|
+
var c = function() {
|
|
1488
|
+
if (!--r.__u) {
|
|
1489
|
+
if (r.state.__a) {
|
|
1490
|
+
var d = r.state.__a;
|
|
1491
|
+
r.__v.__k[0] = br(d, d.__c.__P, d.__c.__O);
|
|
1492
|
+
}
|
|
1493
|
+
var u;
|
|
1494
|
+
for (r.setState({ __a: r.__b = null }); u = r.t.pop(); )
|
|
1495
|
+
u.forceUpdate();
|
|
1496
|
+
}
|
|
1497
|
+
}, l = e.__h === !0;
|
|
1498
|
+
r.__u++ || l || r.setState({ __a: r.__b = r.__v.__k[0] }), t.then(n, n);
|
|
1499
|
+
}, kt.prototype.componentWillUnmount = function() {
|
|
1500
|
+
this.t = [];
|
|
1501
|
+
}, kt.prototype.render = function(t, e) {
|
|
1502
|
+
if (this.__b) {
|
|
1503
|
+
if (this.__v.__k) {
|
|
1504
|
+
var a = document.createElement("div"), r = this.__v.__k[0].__c;
|
|
1505
|
+
this.__v.__k[0] = gr(this.__b, a, r.__O = r.__P);
|
|
1506
|
+
}
|
|
1507
|
+
this.__b = null;
|
|
1508
|
+
}
|
|
1509
|
+
var o = e.__a && A(M, null, t.fallback);
|
|
1510
|
+
return o && (o.__h = null), [A(M, null, e.__a ? null : t.children), o];
|
|
1511
|
+
};
|
|
1512
|
+
var ga = function(t, e, a) {
|
|
1513
|
+
if (++a[1] === a[0] && t.o.delete(e), t.props.revealOrder && (t.props.revealOrder[0] !== "t" || !t.o.size))
|
|
1514
|
+
for (a = t.u; a; ) {
|
|
1515
|
+
for (; a.length > 3; )
|
|
1516
|
+
a.pop()();
|
|
1517
|
+
if (a[1] < a[0])
|
|
1518
|
+
break;
|
|
1519
|
+
t.u = a = a[2];
|
|
1520
|
+
}
|
|
1521
|
+
};
|
|
1522
|
+
function Xs(t) {
|
|
1523
|
+
return this.getChildContext = function() {
|
|
1524
|
+
return t.context;
|
|
1525
|
+
}, t.children;
|
|
1526
|
+
}
|
|
1527
|
+
function Zs(t) {
|
|
1528
|
+
var e = this, a = t.i;
|
|
1529
|
+
e.componentWillUnmount = function() {
|
|
1530
|
+
dt(null, e.l), e.l = null, e.i = null;
|
|
1531
|
+
}, e.i && e.i !== a && e.componentWillUnmount(), t.__v ? (e.l || (e.i = a, e.l = { nodeType: 1, parentNode: a, childNodes: [], appendChild: function(r) {
|
|
1532
|
+
this.childNodes.push(r), e.i.appendChild(r);
|
|
1533
|
+
}, insertBefore: function(r, o) {
|
|
1534
|
+
this.childNodes.push(r), e.i.appendChild(r);
|
|
1535
|
+
}, removeChild: function(r) {
|
|
1536
|
+
this.childNodes.splice(this.childNodes.indexOf(r) >>> 1, 1), e.i.removeChild(r);
|
|
1537
|
+
} }), dt(A(Xs, { context: e.context }, t.__v), e.l)) : e.l && e.componentWillUnmount();
|
|
1538
|
+
}
|
|
1539
|
+
function Js(t, e) {
|
|
1540
|
+
var a = A(Zs, { __v: t, i: e });
|
|
1541
|
+
return a.containerInfo = e, a;
|
|
1542
|
+
}
|
|
1543
|
+
(mt.prototype = new H()).__a = function(t) {
|
|
1544
|
+
var e = this, a = vr(e.__v), r = e.o.get(t);
|
|
1545
|
+
return r[0]++, function(o) {
|
|
1546
|
+
var i = function() {
|
|
1547
|
+
e.props.revealOrder ? (r.push(o), ga(e, t, r)) : o();
|
|
1548
|
+
};
|
|
1549
|
+
a ? a(i) : i();
|
|
1550
|
+
};
|
|
1551
|
+
}, mt.prototype.render = function(t) {
|
|
1552
|
+
this.u = null, this.o = /* @__PURE__ */ new Map();
|
|
1553
|
+
var e = U(t.children);
|
|
1554
|
+
t.revealOrder && t.revealOrder[0] === "b" && e.reverse();
|
|
1555
|
+
for (var a = e.length; a--; )
|
|
1556
|
+
this.o.set(e[a], this.u = [1, 0, this.u]);
|
|
1557
|
+
return t.children;
|
|
1558
|
+
}, mt.prototype.componentDidUpdate = mt.prototype.componentDidMount = function() {
|
|
1559
|
+
var t = this;
|
|
1560
|
+
this.o.forEach(function(e, a) {
|
|
1561
|
+
ga(t, a, e);
|
|
1562
|
+
});
|
|
1563
|
+
};
|
|
1564
|
+
var mr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Qs = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, tc = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, ec = /[A-Z0-9]/g, ac = typeof document < "u", rc = function(t) {
|
|
1565
|
+
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(t);
|
|
1566
|
+
};
|
|
1567
|
+
function ic(t, e, a) {
|
|
1568
|
+
return e.__k == null && (e.textContent = ""), dt(t, e), typeof a == "function" && a(), t ? t.__c : null;
|
|
1569
|
+
}
|
|
1570
|
+
function oc(t, e, a) {
|
|
1571
|
+
return tr(t, e), typeof a == "function" && a(), t ? t.__c : null;
|
|
1572
|
+
}
|
|
1573
|
+
H.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t) {
|
|
1574
|
+
Object.defineProperty(H.prototype, t, { configurable: !0, get: function() {
|
|
1575
|
+
return this["UNSAFE_" + t];
|
|
1576
|
+
}, set: function(e) {
|
|
1577
|
+
Object.defineProperty(this, t, { configurable: !0, writable: !0, value: e });
|
|
1578
|
+
} });
|
|
1579
|
+
});
|
|
1580
|
+
var ba = w.event;
|
|
1581
|
+
function nc() {
|
|
1582
|
+
}
|
|
1583
|
+
function sc() {
|
|
1584
|
+
return this.cancelBubble;
|
|
1585
|
+
}
|
|
1586
|
+
function cc() {
|
|
1587
|
+
return this.defaultPrevented;
|
|
1588
|
+
}
|
|
1589
|
+
w.event = function(t) {
|
|
1590
|
+
return ba && (t = ba(t)), t.persist = nc, t.isPropagationStopped = sc, t.isDefaultPrevented = cc, t.nativeEvent = t;
|
|
1591
|
+
};
|
|
1592
|
+
var Ae, lc = { enumerable: !1, configurable: !0, get: function() {
|
|
1593
|
+
return this.class;
|
|
1594
|
+
} }, va = w.vnode;
|
|
1595
|
+
w.vnode = function(t) {
|
|
1596
|
+
typeof t.type == "string" && function(e) {
|
|
1597
|
+
var a = e.props, r = e.type, o = {};
|
|
1598
|
+
for (var i in a) {
|
|
1599
|
+
var n = a[i];
|
|
1600
|
+
if (!(i === "value" && "defaultValue" in a && n == null || ac && i === "children" && r === "noscript" || i === "class" || i === "className")) {
|
|
1601
|
+
var c = i.toLowerCase();
|
|
1602
|
+
i === "defaultValue" && "value" in a && a.value == null ? i = "value" : i === "download" && n === !0 ? n = "" : c === "ondoubleclick" ? i = "ondblclick" : c !== "onchange" || r !== "input" && r !== "textarea" || rc(a.type) ? c === "onfocus" ? i = "onfocusin" : c === "onblur" ? i = "onfocusout" : tc.test(i) ? i = c : r.indexOf("-") === -1 && Qs.test(i) ? i = i.replace(ec, "-$&").toLowerCase() : n === null && (n = void 0) : c = i = "oninput", c === "oninput" && o[i = c] && (i = "oninputCapture"), o[i] = n;
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1605
|
+
r == "select" && o.multiple && Array.isArray(o.value) && (o.value = U(a.children).forEach(function(l) {
|
|
1606
|
+
l.props.selected = o.value.indexOf(l.props.value) != -1;
|
|
1607
|
+
})), r == "select" && o.defaultValue != null && (o.value = U(a.children).forEach(function(l) {
|
|
1608
|
+
l.props.selected = o.multiple ? o.defaultValue.indexOf(l.props.value) != -1 : o.defaultValue == l.props.value;
|
|
1609
|
+
})), a.class && !a.className ? (o.class = a.class, Object.defineProperty(o, "className", lc)) : (a.className && !a.class || a.class && a.className) && (o.class = o.className = a.className), e.props = o;
|
|
1610
|
+
}(t), t.$$typeof = mr, va && va(t);
|
|
1611
|
+
};
|
|
1612
|
+
var _a = w.__r;
|
|
1613
|
+
w.__r = function(t) {
|
|
1614
|
+
_a && _a(t), Ae = t.__c;
|
|
1615
|
+
};
|
|
1616
|
+
var ma = w.diffed;
|
|
1617
|
+
w.diffed = function(t) {
|
|
1618
|
+
ma && ma(t);
|
|
1619
|
+
var e = t.props, a = t.__e;
|
|
1620
|
+
a != null && t.type === "textarea" && "value" in e && e.value !== a.value && (a.value = e.value == null ? "" : e.value), Ae = null;
|
|
1621
|
+
};
|
|
1622
|
+
var dc = { ReactCurrentDispatcher: { current: { readContext: function(t) {
|
|
1623
|
+
return Ae.__n[t.__c].props.value;
|
|
1624
|
+
} } } };
|
|
1625
|
+
function uc(t) {
|
|
1626
|
+
return A.bind(null, t);
|
|
1627
|
+
}
|
|
1628
|
+
function yr(t) {
|
|
1629
|
+
return !!t && t.$$typeof === mr;
|
|
1630
|
+
}
|
|
1631
|
+
function pc(t) {
|
|
1632
|
+
return yr(t) ? Cs.apply(null, arguments) : t;
|
|
1633
|
+
}
|
|
1634
|
+
function hc(t) {
|
|
1635
|
+
return !!t.__k && (dt(null, t), !0);
|
|
1636
|
+
}
|
|
1637
|
+
function fc(t) {
|
|
1638
|
+
return t && (t.base || t.nodeType === 1 && t) || null;
|
|
1639
|
+
}
|
|
1640
|
+
var wc = function(t, e) {
|
|
1641
|
+
return t(e);
|
|
1642
|
+
}, gc = function(t, e) {
|
|
1643
|
+
return t(e);
|
|
1644
|
+
}, bc = M;
|
|
1645
|
+
function xr(t) {
|
|
1646
|
+
t();
|
|
1647
|
+
}
|
|
1648
|
+
function vc(t) {
|
|
1649
|
+
return t;
|
|
1650
|
+
}
|
|
1651
|
+
function _c() {
|
|
1652
|
+
return [!1, xr];
|
|
1653
|
+
}
|
|
1654
|
+
var mc = It;
|
|
1655
|
+
function yc(t, e) {
|
|
1656
|
+
var a = e(), r = dr({ h: { __: a, v: e } }), o = r[0].h, i = r[1];
|
|
1657
|
+
return It(function() {
|
|
1658
|
+
o.__ = a, o.v = e, ee(o.__, e()) || i({ h: o });
|
|
1659
|
+
}, [t, a, e]), pr(function() {
|
|
1660
|
+
return ee(o.__, o.v()) || i({ h: o }), t(function() {
|
|
1661
|
+
ee(o.__, o.v()) || i({ h: o });
|
|
1662
|
+
});
|
|
1663
|
+
}, [t]), a;
|
|
1664
|
+
}
|
|
1665
|
+
var Hl = { useState: dr, useId: Rs, useReducer: ur, useEffect: pr, useLayoutEffect: It, useInsertionEffect: mc, useTransition: _c, useDeferredValue: vc, useSyncExternalStore: yc, startTransition: xr, useRef: ze, useImperativeHandle: Hs, useMemo: gt, useCallback: Ls, useContext: hr, useDebugValue: Bs, version: "17.0.2", Children: Gs, render: ic, hydrate: oc, unmountComponentAtNode: hc, createPortal: Js, createElement: A, createContext: er, createFactory: uc, cloneElement: pc, createRef: ys, Fragment: M, isValidElement: yr, findDOMNode: fc, Component: H, PureComponent: fe, memo: Ks, forwardRef: Ws, flushSync: gc, unstable_batchedUpdates: wc, StrictMode: bc, Suspense: kt, SuspenseList: mt, lazy: _r, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: dc };
|
|
1666
|
+
const T = Symbol.for("@ts-pattern/matcher"), kr = Symbol.for("@ts-pattern/isVariadic"), Ut = "@ts-pattern/anonymous-select-key", we = (t) => !!(t && typeof t == "object"), Ft = (t) => t && !!t[T], C = (t, e, a) => {
|
|
1667
|
+
if (Ft(t)) {
|
|
1668
|
+
const r = t[T](), { matched: o, selections: i } = r.match(e);
|
|
1669
|
+
return o && i && Object.keys(i).forEach((n) => a(n, i[n])), o;
|
|
1670
|
+
}
|
|
1671
|
+
if (we(t)) {
|
|
1672
|
+
if (!we(e))
|
|
1673
|
+
return !1;
|
|
1674
|
+
if (Array.isArray(t)) {
|
|
1675
|
+
if (!Array.isArray(e))
|
|
1676
|
+
return !1;
|
|
1677
|
+
let r = [], o = [], i = [];
|
|
1678
|
+
for (const n of t.keys()) {
|
|
1679
|
+
const c = t[n];
|
|
1680
|
+
Ft(c) && c[kr] ? i.push(c) : i.length ? o.push(c) : r.push(c);
|
|
1681
|
+
}
|
|
1682
|
+
if (i.length) {
|
|
1683
|
+
if (i.length > 1)
|
|
1684
|
+
throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
|
|
1685
|
+
if (e.length < r.length + o.length)
|
|
1686
|
+
return !1;
|
|
1687
|
+
const n = e.slice(0, r.length), c = o.length === 0 ? [] : e.slice(-o.length), l = e.slice(r.length, o.length === 0 ? 1 / 0 : -o.length);
|
|
1688
|
+
return r.every((d, u) => C(d, n[u], a)) && o.every((d, u) => C(d, c[u], a)) && (i.length === 0 || C(i[0], l, a));
|
|
1689
|
+
}
|
|
1690
|
+
return t.length === e.length && t.every((n, c) => C(n, e[c], a));
|
|
1691
|
+
}
|
|
1692
|
+
return Object.keys(t).every((r) => {
|
|
1693
|
+
const o = t[r];
|
|
1694
|
+
return (r in e || Ft(i = o) && i[T]().matcherType === "optional") && C(o, e[r], a);
|
|
1695
|
+
var i;
|
|
1696
|
+
});
|
|
1697
|
+
}
|
|
1698
|
+
return Object.is(e, t);
|
|
1699
|
+
}, D = (t) => {
|
|
1700
|
+
var e, a, r;
|
|
1701
|
+
return we(t) ? Ft(t) ? (e = (a = (r = t[T]()).getSelectionKeys) == null ? void 0 : a.call(r)) != null ? e : [] : Array.isArray(t) ? St(t, D) : St(Object.values(t), D) : [];
|
|
1702
|
+
}, St = (t, e) => t.reduce((a, r) => a.concat(e(r)), []);
|
|
1703
|
+
function xc(...t) {
|
|
1704
|
+
if (t.length === 1) {
|
|
1705
|
+
const [e] = t;
|
|
1706
|
+
return (a) => C(e, a, () => {
|
|
1707
|
+
});
|
|
1708
|
+
}
|
|
1709
|
+
if (t.length === 2) {
|
|
1710
|
+
const [e, a] = t;
|
|
1711
|
+
return C(e, a, () => {
|
|
1712
|
+
});
|
|
1713
|
+
}
|
|
1714
|
+
throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${t.length}.`);
|
|
1715
|
+
}
|
|
1716
|
+
function P(t) {
|
|
1717
|
+
return Object.assign(t, { optional: () => Ne(t), and: (e) => x(t, e), or: (e) => $r(t, e), select: (e) => e === void 0 ? Ct(t) : Ct(e, t) });
|
|
1718
|
+
}
|
|
1719
|
+
function ge(t) {
|
|
1720
|
+
return Object.assign(((e) => Object.assign(e, { *[Symbol.iterator]() {
|
|
1721
|
+
yield Object.assign(e, { [kr]: !0 });
|
|
1722
|
+
} }))(t), { optional: () => ge(Ne(t)), select: (e) => ge(e === void 0 ? Ct(t) : Ct(e, t)) });
|
|
1723
|
+
}
|
|
1724
|
+
function Ne(t) {
|
|
1725
|
+
return P({ [T]: () => ({ match: (e) => {
|
|
1726
|
+
let a = {};
|
|
1727
|
+
const r = (o, i) => {
|
|
1728
|
+
a[o] = i;
|
|
1729
|
+
};
|
|
1730
|
+
return e === void 0 ? (D(t).forEach((o) => r(o, void 0)), { matched: !0, selections: a }) : { matched: C(t, e, r), selections: a };
|
|
1731
|
+
}, getSelectionKeys: () => D(t), matcherType: "optional" }) });
|
|
1732
|
+
}
|
|
1733
|
+
const kc = (t, e) => {
|
|
1734
|
+
for (const a of t)
|
|
1735
|
+
if (!e(a))
|
|
1736
|
+
return !1;
|
|
1737
|
+
return !0;
|
|
1738
|
+
}, $c = (t, e) => {
|
|
1739
|
+
for (const [a, r] of t.entries())
|
|
1740
|
+
if (!e(r, a))
|
|
1741
|
+
return !1;
|
|
1742
|
+
return !0;
|
|
1743
|
+
};
|
|
1744
|
+
function x(...t) {
|
|
1745
|
+
return P({ [T]: () => ({ match: (e) => {
|
|
1746
|
+
let a = {};
|
|
1747
|
+
const r = (o, i) => {
|
|
1748
|
+
a[o] = i;
|
|
1749
|
+
};
|
|
1750
|
+
return { matched: t.every((o) => C(o, e, r)), selections: a };
|
|
1751
|
+
}, getSelectionKeys: () => St(t, D), matcherType: "and" }) });
|
|
1752
|
+
}
|
|
1753
|
+
function $r(...t) {
|
|
1754
|
+
return P({ [T]: () => ({ match: (e) => {
|
|
1755
|
+
let a = {};
|
|
1756
|
+
const r = (o, i) => {
|
|
1757
|
+
a[o] = i;
|
|
1758
|
+
};
|
|
1759
|
+
return St(t, D).forEach((o) => r(o, void 0)), { matched: t.some((o) => C(o, e, r)), selections: a };
|
|
1760
|
+
}, getSelectionKeys: () => St(t, D), matcherType: "or" }) });
|
|
1761
|
+
}
|
|
1762
|
+
function _(t) {
|
|
1763
|
+
return { [T]: () => ({ match: (e) => ({ matched: !!t(e) }) }) };
|
|
1764
|
+
}
|
|
1765
|
+
function Ct(...t) {
|
|
1766
|
+
const e = typeof t[0] == "string" ? t[0] : void 0, a = t.length === 2 ? t[1] : typeof t[0] == "string" ? void 0 : t[0];
|
|
1767
|
+
return P({ [T]: () => ({ match: (r) => {
|
|
1768
|
+
let o = { [e ?? Ut]: r };
|
|
1769
|
+
return { matched: a === void 0 || C(a, r, (i, n) => {
|
|
1770
|
+
o[i] = n;
|
|
1771
|
+
}), selections: o };
|
|
1772
|
+
}, getSelectionKeys: () => [e ?? Ut].concat(a === void 0 ? [] : D(a)) }) });
|
|
1773
|
+
}
|
|
1774
|
+
function L(t) {
|
|
1775
|
+
return typeof t == "number";
|
|
1776
|
+
}
|
|
1777
|
+
function et(t) {
|
|
1778
|
+
return typeof t == "string";
|
|
1779
|
+
}
|
|
1780
|
+
function K(t) {
|
|
1781
|
+
return typeof t == "bigint";
|
|
1782
|
+
}
|
|
1783
|
+
const Sr = P(_(function(t) {
|
|
1784
|
+
return !0;
|
|
1785
|
+
})), Sc = Sr, at = (t) => Object.assign(P(t), { startsWith: (e) => {
|
|
1786
|
+
return at(x(t, (a = e, _((r) => et(r) && r.startsWith(a)))));
|
|
1787
|
+
var a;
|
|
1788
|
+
}, endsWith: (e) => {
|
|
1789
|
+
return at(x(t, (a = e, _((r) => et(r) && r.endsWith(a)))));
|
|
1790
|
+
var a;
|
|
1791
|
+
}, minLength: (e) => at(x(t, ((a) => _((r) => et(r) && r.length >= a))(e))), maxLength: (e) => at(x(t, ((a) => _((r) => et(r) && r.length <= a))(e))), includes: (e) => {
|
|
1792
|
+
return at(x(t, (a = e, _((r) => et(r) && r.includes(a)))));
|
|
1793
|
+
var a;
|
|
1794
|
+
}, regex: (e) => {
|
|
1795
|
+
return at(x(t, (a = e, _((r) => et(r) && !!r.match(a)))));
|
|
1796
|
+
var a;
|
|
1797
|
+
} }), Cc = at(_(et)), B = (t) => Object.assign(P(t), { between: (e, a) => B(x(t, ((r, o) => _((i) => L(i) && r <= i && o >= i))(e, a))), lt: (e) => B(x(t, ((a) => _((r) => L(r) && r < a))(e))), gt: (e) => B(x(t, ((a) => _((r) => L(r) && r > a))(e))), lte: (e) => B(x(t, ((a) => _((r) => L(r) && r <= a))(e))), gte: (e) => B(x(t, ((a) => _((r) => L(r) && r >= a))(e))), int: () => B(x(t, _((e) => L(e) && Number.isInteger(e)))), finite: () => B(x(t, _((e) => L(e) && Number.isFinite(e)))), positive: () => B(x(t, _((e) => L(e) && e > 0))), negative: () => B(x(t, _((e) => L(e) && e < 0))) }), Ec = B(_(L)), q = (t) => Object.assign(P(t), { between: (e, a) => q(x(t, ((r, o) => _((i) => K(i) && r <= i && o >= i))(e, a))), lt: (e) => q(x(t, ((a) => _((r) => K(r) && r < a))(e))), gt: (e) => q(x(t, ((a) => _((r) => K(r) && r > a))(e))), lte: (e) => q(x(t, ((a) => _((r) => K(r) && r <= a))(e))), gte: (e) => q(x(t, ((a) => _((r) => K(r) && r >= a))(e))), positive: () => q(x(t, _((e) => K(e) && e > 0))), negative: () => q(x(t, _((e) => K(e) && e < 0))) }), Pc = q(_(K)), Oc = P(_(function(t) {
|
|
1798
|
+
return typeof t == "boolean";
|
|
1799
|
+
})), Ic = P(_(function(t) {
|
|
1800
|
+
return typeof t == "symbol";
|
|
1801
|
+
})), Tc = P(_(function(t) {
|
|
1802
|
+
return t == null;
|
|
1803
|
+
}));
|
|
1804
|
+
var nt = { __proto__: null, matcher: T, optional: Ne, array: function(...t) {
|
|
1805
|
+
return ge({ [T]: () => ({ match: (e) => {
|
|
1806
|
+
if (!Array.isArray(e))
|
|
1807
|
+
return { matched: !1 };
|
|
1808
|
+
if (t.length === 0)
|
|
1809
|
+
return { matched: !0 };
|
|
1810
|
+
const a = t[0];
|
|
1811
|
+
let r = {};
|
|
1812
|
+
if (e.length === 0)
|
|
1813
|
+
return D(a).forEach((i) => {
|
|
1814
|
+
r[i] = [];
|
|
1815
|
+
}), { matched: !0, selections: r };
|
|
1816
|
+
const o = (i, n) => {
|
|
1817
|
+
r[i] = (r[i] || []).concat([n]);
|
|
1818
|
+
};
|
|
1819
|
+
return { matched: e.every((i) => C(a, i, o)), selections: r };
|
|
1820
|
+
}, getSelectionKeys: () => t.length === 0 ? [] : D(t[0]) }) });
|
|
1821
|
+
}, set: function(...t) {
|
|
1822
|
+
return P({ [T]: () => ({ match: (e) => {
|
|
1823
|
+
if (!(e instanceof Set))
|
|
1824
|
+
return { matched: !1 };
|
|
1825
|
+
let a = {};
|
|
1826
|
+
if (e.size === 0)
|
|
1827
|
+
return { matched: !0, selections: a };
|
|
1828
|
+
if (t.length === 0)
|
|
1829
|
+
return { matched: !0 };
|
|
1830
|
+
const r = (i, n) => {
|
|
1831
|
+
a[i] = (a[i] || []).concat([n]);
|
|
1832
|
+
}, o = t[0];
|
|
1833
|
+
return { matched: kc(e, (i) => C(o, i, r)), selections: a };
|
|
1834
|
+
}, getSelectionKeys: () => t.length === 0 ? [] : D(t[0]) }) });
|
|
1835
|
+
}, map: function(...t) {
|
|
1836
|
+
return P({ [T]: () => ({ match: (e) => {
|
|
1837
|
+
if (!(e instanceof Map))
|
|
1838
|
+
return { matched: !1 };
|
|
1839
|
+
let a = {};
|
|
1840
|
+
if (e.size === 0)
|
|
1841
|
+
return { matched: !0, selections: a };
|
|
1842
|
+
const r = (c, l) => {
|
|
1843
|
+
a[c] = (a[c] || []).concat([l]);
|
|
1844
|
+
};
|
|
1845
|
+
if (t.length === 0)
|
|
1846
|
+
return { matched: !0 };
|
|
1847
|
+
var o;
|
|
1848
|
+
if (t.length === 1)
|
|
1849
|
+
throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${(o = t[0]) == null ? void 0 : o.toString()}`);
|
|
1850
|
+
const [i, n] = t;
|
|
1851
|
+
return { matched: $c(e, (c, l) => {
|
|
1852
|
+
const d = C(i, l, r), u = C(n, c, r);
|
|
1853
|
+
return d && u;
|
|
1854
|
+
}), selections: a };
|
|
1855
|
+
}, getSelectionKeys: () => t.length === 0 ? [] : [...D(t[0]), ...D(t[1])] }) });
|
|
1856
|
+
}, intersection: x, union: $r, not: function(t) {
|
|
1857
|
+
return P({ [T]: () => ({ match: (e) => ({ matched: !C(t, e, () => {
|
|
1858
|
+
}) }), getSelectionKeys: () => [], matcherType: "not" }) });
|
|
1859
|
+
}, when: _, select: Ct, any: Sr, _: Sc, string: Cc, number: Ec, bigint: Pc, boolean: Oc, symbol: Ic, nullish: Tc, instanceOf: function(t) {
|
|
1860
|
+
return P(_(function(e) {
|
|
1861
|
+
return (a) => a instanceof e;
|
|
1862
|
+
}(t)));
|
|
1863
|
+
}, shape: function(t) {
|
|
1864
|
+
return P(_(xc(t)));
|
|
1865
|
+
} };
|
|
1866
|
+
const be = { matched: !1, value: void 0 };
|
|
1867
|
+
function Me(t) {
|
|
1868
|
+
return new Vt(t, be);
|
|
1869
|
+
}
|
|
1870
|
+
class Vt {
|
|
1871
|
+
constructor(e, a) {
|
|
1872
|
+
this.input = void 0, this.state = void 0, this.input = e, this.state = a;
|
|
1873
|
+
}
|
|
1874
|
+
with(...e) {
|
|
1875
|
+
if (this.state.matched)
|
|
1876
|
+
return this;
|
|
1877
|
+
const a = e[e.length - 1], r = [e[0]];
|
|
1878
|
+
let o;
|
|
1879
|
+
e.length === 3 && typeof e[1] == "function" ? o = e[1] : e.length > 2 && r.push(...e.slice(1, e.length - 1));
|
|
1880
|
+
let i = !1, n = {};
|
|
1881
|
+
const c = (d, u) => {
|
|
1882
|
+
i = !0, n[d] = u;
|
|
1883
|
+
}, l = !r.some((d) => C(d, this.input, c)) || o && !o(this.input) ? be : { matched: !0, value: a(i ? Ut in n ? n[Ut] : n : this.input, this.input) };
|
|
1884
|
+
return new Vt(this.input, l);
|
|
1885
|
+
}
|
|
1886
|
+
when(e, a) {
|
|
1887
|
+
if (this.state.matched)
|
|
1888
|
+
return this;
|
|
1889
|
+
const r = !!e(this.input);
|
|
1890
|
+
return new Vt(this.input, r ? { matched: !0, value: a(this.input, this.input) } : be);
|
|
1891
|
+
}
|
|
1892
|
+
otherwise(e) {
|
|
1893
|
+
return this.state.matched ? this.state.value : e(this.input);
|
|
1894
|
+
}
|
|
1895
|
+
exhaustive() {
|
|
1896
|
+
if (this.state.matched)
|
|
1897
|
+
return this.state.value;
|
|
1898
|
+
let e;
|
|
1899
|
+
try {
|
|
1900
|
+
e = JSON.stringify(this.input);
|
|
1901
|
+
} catch {
|
|
1902
|
+
e = this.input;
|
|
1903
|
+
}
|
|
1904
|
+
throw new Error(`Pattern matching error: no pattern matches value ${e}`);
|
|
1905
|
+
}
|
|
1906
|
+
run() {
|
|
1907
|
+
return this.exhaustive();
|
|
1908
|
+
}
|
|
1909
|
+
returnType() {
|
|
1910
|
+
return this;
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
const jc = ["other", "few", "many", "two", "one", "zero"], ya = ({
|
|
1914
|
+
terms: t,
|
|
1915
|
+
overrides: e,
|
|
1916
|
+
locale: a
|
|
1917
|
+
}) => {
|
|
1918
|
+
const r = new Intl.PluralRules(a);
|
|
1919
|
+
function o(i, n) {
|
|
1920
|
+
const c = (e == null ? void 0 : e[i]) ?? t[i];
|
|
1921
|
+
switch (typeof c) {
|
|
1922
|
+
case "string":
|
|
1923
|
+
return c.replace(/{{(\w+)}}/g, (l, d) => {
|
|
1924
|
+
var u;
|
|
1925
|
+
return ((u = n == null ? void 0 : n[d]) == null ? void 0 : u.toString()) ?? "";
|
|
1926
|
+
});
|
|
1927
|
+
case "object": {
|
|
1928
|
+
if (typeof (n == null ? void 0 : n.count) != "number")
|
|
1929
|
+
throw new Error(`Missing count for translation key “${i.toString()}”`);
|
|
1930
|
+
let l = r.select(n.count);
|
|
1931
|
+
if (!(l in c)) {
|
|
1932
|
+
const d = jc.find((u) => u in c);
|
|
1933
|
+
if (!d)
|
|
1934
|
+
throw new Error(`Missing plural rule for translation key “${i.toString()}”`);
|
|
1935
|
+
l = d;
|
|
1936
|
+
}
|
|
1937
|
+
return c[l].replace(/{{(\w+)}}/g, (d, u) => {
|
|
1938
|
+
var s;
|
|
1939
|
+
return ((s = n == null ? void 0 : n[u]) == null ? void 0 : s.toString()) ?? "";
|
|
1940
|
+
});
|
|
1941
|
+
}
|
|
1942
|
+
default:
|
|
1943
|
+
throw new Error(`Invalid translation value in dictionary for key “${i.toString()}”.`);
|
|
1944
|
+
}
|
|
1945
|
+
}
|
|
1946
|
+
return o;
|
|
1947
|
+
};
|
|
1948
|
+
var zc = 0;
|
|
1949
|
+
function f(t, e, a, r, o, i) {
|
|
1950
|
+
var n, c, l = {};
|
|
1951
|
+
for (c in e)
|
|
1952
|
+
c == "ref" ? n = e[c] : l[c] = e[c];
|
|
1953
|
+
var d = { type: t, props: l, key: a, ref: n, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: --zc, __source: o, __self: i };
|
|
1954
|
+
if (typeof t == "function" && (n = t.defaultProps))
|
|
1955
|
+
for (c in n)
|
|
1956
|
+
l[c] === void 0 && (l[c] = n[c]);
|
|
1957
|
+
return w.vnode && w.vnode(d), d;
|
|
1958
|
+
}
|
|
1959
|
+
const xa = er(null), Dc = (t) => ({
|
|
1960
|
+
TranslationProvider: ({
|
|
1961
|
+
terms: e,
|
|
1962
|
+
children: a,
|
|
1963
|
+
locale: r
|
|
1964
|
+
}) => {
|
|
1965
|
+
const o = gt(() => (console.log("instantiating"), ya({
|
|
1966
|
+
locale: r,
|
|
1967
|
+
terms: t,
|
|
1968
|
+
overrides: e
|
|
1969
|
+
})), [e, r]);
|
|
1970
|
+
return f(xa.Provider, {
|
|
1971
|
+
value: {
|
|
1972
|
+
t: o,
|
|
1973
|
+
locale: r
|
|
1974
|
+
},
|
|
1975
|
+
children: a
|
|
1976
|
+
});
|
|
1977
|
+
},
|
|
1978
|
+
useTranslation: () => {
|
|
1979
|
+
const e = hr(xa);
|
|
1980
|
+
if (e === null)
|
|
1981
|
+
throw new Error("Please wrap useTranslation in a TranslationProvider");
|
|
1982
|
+
return {
|
|
1983
|
+
t: e.t,
|
|
1984
|
+
locale: e.locale
|
|
1985
|
+
};
|
|
1986
|
+
},
|
|
1987
|
+
createTFunction: ({
|
|
1988
|
+
overrides: e,
|
|
1989
|
+
locale: a
|
|
1990
|
+
}) => ya({
|
|
1991
|
+
terms: t,
|
|
1992
|
+
overrides: e,
|
|
1993
|
+
locale: a
|
|
1994
|
+
})
|
|
1995
|
+
}), {
|
|
1996
|
+
TranslationProvider: Ac,
|
|
1997
|
+
useTranslation: Cr,
|
|
1998
|
+
createTFunction: Nc
|
|
1999
|
+
} = Dc({
|
|
2000
|
+
error_heading: "Something unexpected happened",
|
|
2001
|
+
undo: "Undo",
|
|
2002
|
+
send: "Send",
|
|
2003
|
+
skip: "Skip",
|
|
2004
|
+
skipped: "Skipped",
|
|
2005
|
+
submission_redirect_message: "Almost there! Please complete your submission here:",
|
|
2006
|
+
complete_submission: "Complete submission",
|
|
2007
|
+
submission_completed: "Submission completed!",
|
|
2008
|
+
submission_failed: "Failed to submit",
|
|
2009
|
+
maximize: "Maximise",
|
|
2010
|
+
minimize: "Minimise",
|
|
2011
|
+
close_application: "Close application",
|
|
2012
|
+
applying_for: "Applying for “{{title}}”",
|
|
2013
|
+
/** When an application is at an invalid state, the user will get this error. */
|
|
2014
|
+
invalid_state: "Invalid application state",
|
|
2015
|
+
redirect_url_error: "Couldn’t get the redirect URL.",
|
|
2016
|
+
upload_file: {
|
|
2017
|
+
one: "Select file to upload",
|
|
2018
|
+
other: "Select files to upload"
|
|
2019
|
+
},
|
|
2020
|
+
file_max_size: "max {{size}}",
|
|
2021
|
+
file_extensions: "Accepted file extensions",
|
|
2022
|
+
address_error: "Something went wrong! Plase continue manually",
|
|
2023
|
+
address_search: "Type and search for places…",
|
|
2024
|
+
address_manual: "Fill in manually",
|
|
2025
|
+
back: "Back",
|
|
2026
|
+
search: "Search",
|
|
2027
|
+
unknown_error: "An error occurred",
|
|
2028
|
+
validation_max_chars: "Please enter no more than {{count}} characters",
|
|
2029
|
+
validation_min_chars: "Please enter {{count}} or more characters",
|
|
2030
|
+
validation_phone: "Please enter a valid phone number",
|
|
2031
|
+
validation_country_code: "Please select a country code",
|
|
2032
|
+
validation_number: "Please enter a valid number",
|
|
2033
|
+
validation_number_min: "Please enter a number greater than or equal to {{min}}",
|
|
2034
|
+
validation_number_max: "Please enter a number less than or equal to {{max}}",
|
|
2035
|
+
validation_number_decimal_cases: "Please enter a number with at most {{count}} decimal cases",
|
|
2036
|
+
validation_file: "Please select a file",
|
|
2037
|
+
validation_file_ext: "Please only upload {{ext}} files",
|
|
2038
|
+
validation_file_max: {
|
|
2039
|
+
one: "Please only upload one file",
|
|
2040
|
+
other: "Please only upload up to {{count}} files"
|
|
2041
|
+
}
|
|
2042
|
+
});
|
|
2043
|
+
function Er(t, e) {
|
|
2044
|
+
if (!t)
|
|
2045
|
+
throw new Error(e);
|
|
2046
|
+
}
|
|
2047
|
+
function Zt() {
|
|
2048
|
+
throw new Error("Cycle detected");
|
|
2049
|
+
}
|
|
2050
|
+
var Mc = Symbol.for("preact-signals");
|
|
2051
|
+
function Fe() {
|
|
2052
|
+
if (lt > 1)
|
|
2053
|
+
lt--;
|
|
2054
|
+
else {
|
|
2055
|
+
for (var t, e = !1; $t !== void 0; ) {
|
|
2056
|
+
var a = $t;
|
|
2057
|
+
for ($t = void 0, ve++; a !== void 0; ) {
|
|
2058
|
+
var r = a.o;
|
|
2059
|
+
if (a.o = void 0, a.f &= -3, !(8 & a.f) && Or(a))
|
|
2060
|
+
try {
|
|
2061
|
+
a.c();
|
|
2062
|
+
} catch (o) {
|
|
2063
|
+
e || (t = o, e = !0);
|
|
2064
|
+
}
|
|
2065
|
+
a = r;
|
|
2066
|
+
}
|
|
2067
|
+
}
|
|
2068
|
+
if (ve = 0, lt--, e)
|
|
2069
|
+
throw t;
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
var k = void 0, $t = void 0, lt = 0, ve = 0, Kt = 0;
|
|
2073
|
+
function Pr(t) {
|
|
2074
|
+
if (k !== void 0) {
|
|
2075
|
+
var e = t.n;
|
|
2076
|
+
if (e === void 0 || e.t !== k)
|
|
2077
|
+
return e = { i: 0, S: t, p: k.s, n: void 0, t: k, e: void 0, x: void 0, r: e }, k.s !== void 0 && (k.s.n = e), k.s = e, t.n = e, 32 & k.f && t.S(e), e;
|
|
2078
|
+
if (e.i === -1)
|
|
2079
|
+
return e.i = 0, e.n !== void 0 && (e.n.p = e.p, e.p !== void 0 && (e.p.n = e.n), e.p = k.s, e.n = void 0, k.s.n = e, k.s = e), e;
|
|
2080
|
+
}
|
|
2081
|
+
}
|
|
2082
|
+
function E(t) {
|
|
2083
|
+
this.v = t, this.i = 0, this.n = void 0, this.t = void 0;
|
|
2084
|
+
}
|
|
2085
|
+
E.prototype.brand = Mc;
|
|
2086
|
+
E.prototype.h = function() {
|
|
2087
|
+
return !0;
|
|
2088
|
+
};
|
|
2089
|
+
E.prototype.S = function(t) {
|
|
2090
|
+
this.t !== t && t.e === void 0 && (t.x = this.t, this.t !== void 0 && (this.t.e = t), this.t = t);
|
|
2091
|
+
};
|
|
2092
|
+
E.prototype.U = function(t) {
|
|
2093
|
+
if (this.t !== void 0) {
|
|
2094
|
+
var e = t.e, a = t.x;
|
|
2095
|
+
e !== void 0 && (e.x = a, t.e = void 0), a !== void 0 && (a.e = e, t.x = void 0), t === this.t && (this.t = a);
|
|
2096
|
+
}
|
|
2097
|
+
};
|
|
2098
|
+
E.prototype.subscribe = function(t) {
|
|
2099
|
+
var e = this;
|
|
2100
|
+
return Le(function() {
|
|
2101
|
+
var a = e.value, r = 32 & this.f;
|
|
2102
|
+
this.f &= -33;
|
|
2103
|
+
try {
|
|
2104
|
+
t(a);
|
|
2105
|
+
} finally {
|
|
2106
|
+
this.f |= r;
|
|
2107
|
+
}
|
|
2108
|
+
});
|
|
2109
|
+
};
|
|
2110
|
+
E.prototype.valueOf = function() {
|
|
2111
|
+
return this.value;
|
|
2112
|
+
};
|
|
2113
|
+
E.prototype.toString = function() {
|
|
2114
|
+
return this.value + "";
|
|
2115
|
+
};
|
|
2116
|
+
E.prototype.toJSON = function() {
|
|
2117
|
+
return this.value;
|
|
2118
|
+
};
|
|
2119
|
+
E.prototype.peek = function() {
|
|
2120
|
+
return this.v;
|
|
2121
|
+
};
|
|
2122
|
+
Object.defineProperty(E.prototype, "value", { get: function() {
|
|
2123
|
+
var t = Pr(this);
|
|
2124
|
+
return t !== void 0 && (t.i = this.i), this.v;
|
|
2125
|
+
}, set: function(t) {
|
|
2126
|
+
if (k instanceof J && function() {
|
|
2127
|
+
throw new Error("Computed cannot have side-effects");
|
|
2128
|
+
}(), t !== this.v) {
|
|
2129
|
+
ve > 100 && Zt(), this.v = t, this.i++, Kt++, lt++;
|
|
2130
|
+
try {
|
|
2131
|
+
for (var e = this.t; e !== void 0; e = e.x)
|
|
2132
|
+
e.t.N();
|
|
2133
|
+
} finally {
|
|
2134
|
+
Fe();
|
|
2135
|
+
}
|
|
2136
|
+
}
|
|
2137
|
+
} });
|
|
2138
|
+
function Et(t) {
|
|
2139
|
+
return new E(t);
|
|
2140
|
+
}
|
|
2141
|
+
function Or(t) {
|
|
2142
|
+
for (var e = t.s; e !== void 0; e = e.n)
|
|
2143
|
+
if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i)
|
|
2144
|
+
return !0;
|
|
2145
|
+
return !1;
|
|
2146
|
+
}
|
|
2147
|
+
function Ir(t) {
|
|
2148
|
+
for (var e = t.s; e !== void 0; e = e.n) {
|
|
2149
|
+
var a = e.S.n;
|
|
2150
|
+
if (a !== void 0 && (e.r = a), e.S.n = e, e.i = -1, e.n === void 0) {
|
|
2151
|
+
t.s = e;
|
|
2152
|
+
break;
|
|
2153
|
+
}
|
|
2154
|
+
}
|
|
2155
|
+
}
|
|
2156
|
+
function Tr(t) {
|
|
2157
|
+
for (var e = t.s, a = void 0; e !== void 0; ) {
|
|
2158
|
+
var r = e.p;
|
|
2159
|
+
e.i === -1 ? (e.S.U(e), r !== void 0 && (r.n = e.n), e.n !== void 0 && (e.n.p = r)) : a = e, e.S.n = e.r, e.r !== void 0 && (e.r = void 0), e = r;
|
|
2160
|
+
}
|
|
2161
|
+
t.s = a;
|
|
2162
|
+
}
|
|
2163
|
+
function J(t) {
|
|
2164
|
+
E.call(this, void 0), this.x = t, this.s = void 0, this.g = Kt - 1, this.f = 4;
|
|
2165
|
+
}
|
|
2166
|
+
(J.prototype = new E()).h = function() {
|
|
2167
|
+
if (this.f &= -3, 1 & this.f)
|
|
2168
|
+
return !1;
|
|
2169
|
+
if ((36 & this.f) == 32 || (this.f &= -5, this.g === Kt))
|
|
2170
|
+
return !0;
|
|
2171
|
+
if (this.g = Kt, this.f |= 1, this.i > 0 && !Or(this))
|
|
2172
|
+
return this.f &= -2, !0;
|
|
2173
|
+
var t = k;
|
|
2174
|
+
try {
|
|
2175
|
+
Ir(this), k = this;
|
|
2176
|
+
var e = this.x();
|
|
2177
|
+
(16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
|
|
2178
|
+
} catch (a) {
|
|
2179
|
+
this.v = a, this.f |= 16, this.i++;
|
|
2180
|
+
}
|
|
2181
|
+
return k = t, Tr(this), this.f &= -2, !0;
|
|
2182
|
+
};
|
|
2183
|
+
J.prototype.S = function(t) {
|
|
2184
|
+
if (this.t === void 0) {
|
|
2185
|
+
this.f |= 36;
|
|
2186
|
+
for (var e = this.s; e !== void 0; e = e.n)
|
|
2187
|
+
e.S.S(e);
|
|
2188
|
+
}
|
|
2189
|
+
E.prototype.S.call(this, t);
|
|
2190
|
+
};
|
|
2191
|
+
J.prototype.U = function(t) {
|
|
2192
|
+
if (this.t !== void 0 && (E.prototype.U.call(this, t), this.t === void 0)) {
|
|
2193
|
+
this.f &= -33;
|
|
2194
|
+
for (var e = this.s; e !== void 0; e = e.n)
|
|
2195
|
+
e.S.U(e);
|
|
2196
|
+
}
|
|
2197
|
+
};
|
|
2198
|
+
J.prototype.N = function() {
|
|
2199
|
+
if (!(2 & this.f)) {
|
|
2200
|
+
this.f |= 6;
|
|
2201
|
+
for (var t = this.t; t !== void 0; t = t.x)
|
|
2202
|
+
t.t.N();
|
|
2203
|
+
}
|
|
2204
|
+
};
|
|
2205
|
+
J.prototype.peek = function() {
|
|
2206
|
+
if (this.h() || Zt(), 16 & this.f)
|
|
2207
|
+
throw this.v;
|
|
2208
|
+
return this.v;
|
|
2209
|
+
};
|
|
2210
|
+
Object.defineProperty(J.prototype, "value", { get: function() {
|
|
2211
|
+
1 & this.f && Zt();
|
|
2212
|
+
var t = Pr(this);
|
|
2213
|
+
if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f)
|
|
2214
|
+
throw this.v;
|
|
2215
|
+
return this.v;
|
|
2216
|
+
} });
|
|
2217
|
+
function Fc(t) {
|
|
2218
|
+
return new J(t);
|
|
2219
|
+
}
|
|
2220
|
+
function jr(t) {
|
|
2221
|
+
var e = t.u;
|
|
2222
|
+
if (t.u = void 0, typeof e == "function") {
|
|
2223
|
+
lt++;
|
|
2224
|
+
var a = k;
|
|
2225
|
+
k = void 0;
|
|
2226
|
+
try {
|
|
2227
|
+
e();
|
|
2228
|
+
} catch (r) {
|
|
2229
|
+
throw t.f &= -2, t.f |= 8, He(t), r;
|
|
2230
|
+
} finally {
|
|
2231
|
+
k = a, Fe();
|
|
2232
|
+
}
|
|
2233
|
+
}
|
|
2234
|
+
}
|
|
2235
|
+
function He(t) {
|
|
2236
|
+
for (var e = t.s; e !== void 0; e = e.n)
|
|
2237
|
+
e.S.U(e);
|
|
2238
|
+
t.x = void 0, t.s = void 0, jr(t);
|
|
2239
|
+
}
|
|
2240
|
+
function Hc(t) {
|
|
2241
|
+
if (k !== this)
|
|
2242
|
+
throw new Error("Out-of-order effect");
|
|
2243
|
+
Tr(this), k = t, this.f &= -2, 8 & this.f && He(this), Fe();
|
|
2244
|
+
}
|
|
2245
|
+
function Tt(t) {
|
|
2246
|
+
this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
|
|
2247
|
+
}
|
|
2248
|
+
Tt.prototype.c = function() {
|
|
2249
|
+
var t = this.S();
|
|
2250
|
+
try {
|
|
2251
|
+
if (8 & this.f || this.x === void 0)
|
|
2252
|
+
return;
|
|
2253
|
+
var e = this.x();
|
|
2254
|
+
typeof e == "function" && (this.u = e);
|
|
2255
|
+
} finally {
|
|
2256
|
+
t();
|
|
2257
|
+
}
|
|
2258
|
+
};
|
|
2259
|
+
Tt.prototype.S = function() {
|
|
2260
|
+
1 & this.f && Zt(), this.f |= 1, this.f &= -9, jr(this), Ir(this), lt++;
|
|
2261
|
+
var t = k;
|
|
2262
|
+
return k = this, Hc.bind(this, t);
|
|
2263
|
+
};
|
|
2264
|
+
Tt.prototype.N = function() {
|
|
2265
|
+
2 & this.f || (this.f |= 2, this.o = $t, $t = this);
|
|
2266
|
+
};
|
|
2267
|
+
Tt.prototype.d = function() {
|
|
2268
|
+
this.f |= 8, 1 & this.f || He(this);
|
|
2269
|
+
};
|
|
2270
|
+
function Le(t) {
|
|
2271
|
+
var e = new Tt(t);
|
|
2272
|
+
try {
|
|
2273
|
+
e.c();
|
|
2274
|
+
} catch (a) {
|
|
2275
|
+
throw e.d(), a;
|
|
2276
|
+
}
|
|
2277
|
+
return e.d.bind(e);
|
|
2278
|
+
}
|
|
2279
|
+
var ae;
|
|
2280
|
+
function bt(t, e) {
|
|
2281
|
+
w[t] = e.bind(null, w[t] || function() {
|
|
2282
|
+
});
|
|
2283
|
+
}
|
|
2284
|
+
function qt(t) {
|
|
2285
|
+
ae && ae(), ae = t && t.S();
|
|
2286
|
+
}
|
|
2287
|
+
function zr(t) {
|
|
2288
|
+
var e = this, a = t.data, r = Bc(a);
|
|
2289
|
+
r.value = a;
|
|
2290
|
+
var o = gt(function() {
|
|
2291
|
+
for (var i = e.__v; i = i.__; )
|
|
2292
|
+
if (i.__c) {
|
|
2293
|
+
i.__c.__$f |= 4;
|
|
2294
|
+
break;
|
|
2295
|
+
}
|
|
2296
|
+
return e.__$u.c = function() {
|
|
2297
|
+
var n;
|
|
2298
|
+
!Ua(o.peek()) && ((n = e.base) == null ? void 0 : n.nodeType) === 3 ? e.base.data = o.peek() : (e.__$f |= 1, e.setState({}));
|
|
2299
|
+
}, Fc(function() {
|
|
2300
|
+
var n = r.value.value;
|
|
2301
|
+
return n === 0 ? 0 : n === !0 ? "" : n || "";
|
|
2302
|
+
});
|
|
2303
|
+
}, []);
|
|
2304
|
+
return o.value;
|
|
2305
|
+
}
|
|
2306
|
+
zr.displayName = "_st";
|
|
2307
|
+
Object.defineProperties(E.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: zr }, props: { configurable: !0, get: function() {
|
|
2308
|
+
return { data: this };
|
|
2309
|
+
} }, __b: { configurable: !0, value: 1 } });
|
|
2310
|
+
bt("__b", function(t, e) {
|
|
2311
|
+
if (typeof e.type == "string") {
|
|
2312
|
+
var a, r = e.props;
|
|
2313
|
+
for (var o in r)
|
|
2314
|
+
if (o !== "children") {
|
|
2315
|
+
var i = r[o];
|
|
2316
|
+
i instanceof E && (a || (e.__np = a = {}), a[o] = i, r[o] = i.peek());
|
|
2317
|
+
}
|
|
2318
|
+
}
|
|
2319
|
+
t(e);
|
|
2320
|
+
});
|
|
2321
|
+
bt("__r", function(t, e) {
|
|
2322
|
+
qt();
|
|
2323
|
+
var a, r = e.__c;
|
|
2324
|
+
r && (r.__$f &= -2, (a = r.__$u) === void 0 && (r.__$u = a = function(o) {
|
|
2325
|
+
var i;
|
|
2326
|
+
return Le(function() {
|
|
2327
|
+
i = this;
|
|
2328
|
+
}), i.c = function() {
|
|
2329
|
+
r.__$f |= 1, r.setState({});
|
|
2330
|
+
}, i;
|
|
2331
|
+
}())), qt(a), t(e);
|
|
2332
|
+
});
|
|
2333
|
+
bt("__e", function(t, e, a, r) {
|
|
2334
|
+
qt(), t(e, a, r);
|
|
2335
|
+
});
|
|
2336
|
+
bt("diffed", function(t, e) {
|
|
2337
|
+
qt();
|
|
2338
|
+
var a;
|
|
2339
|
+
if (typeof e.type == "string" && (a = e.__e)) {
|
|
2340
|
+
var r = e.__np, o = e.props;
|
|
2341
|
+
if (r) {
|
|
2342
|
+
var i = a.U;
|
|
2343
|
+
if (i)
|
|
2344
|
+
for (var n in i) {
|
|
2345
|
+
var c = i[n];
|
|
2346
|
+
c !== void 0 && !(n in r) && (c.d(), i[n] = void 0);
|
|
2347
|
+
}
|
|
2348
|
+
else
|
|
2349
|
+
a.U = i = {};
|
|
2350
|
+
for (var l in r) {
|
|
2351
|
+
var d = i[l], u = r[l];
|
|
2352
|
+
d === void 0 ? (d = Lc(a, l, u, o), i[l] = d) : d.o(u, o);
|
|
2353
|
+
}
|
|
2354
|
+
}
|
|
2355
|
+
}
|
|
2356
|
+
t(e);
|
|
2357
|
+
});
|
|
2358
|
+
function Lc(t, e, a, r) {
|
|
2359
|
+
var o = e in t && t.ownerSVGElement === void 0, i = Et(a);
|
|
2360
|
+
return { o: function(n, c) {
|
|
2361
|
+
i.value = n, r = c;
|
|
2362
|
+
}, d: Le(function() {
|
|
2363
|
+
var n = i.value.value;
|
|
2364
|
+
r[e] !== n && (r[e] = n, o ? t[e] = n : n ? t.setAttribute(e, n) : t.removeAttribute(e));
|
|
2365
|
+
}) };
|
|
2366
|
+
}
|
|
2367
|
+
bt("unmount", function(t, e) {
|
|
2368
|
+
if (typeof e.type == "string") {
|
|
2369
|
+
var a = e.__e;
|
|
2370
|
+
if (a) {
|
|
2371
|
+
var r = a.U;
|
|
2372
|
+
if (r) {
|
|
2373
|
+
a.U = void 0;
|
|
2374
|
+
for (var o in r) {
|
|
2375
|
+
var i = r[o];
|
|
2376
|
+
i && i.d();
|
|
2377
|
+
}
|
|
2378
|
+
}
|
|
2379
|
+
}
|
|
2380
|
+
} else {
|
|
2381
|
+
var n = e.__c;
|
|
2382
|
+
if (n) {
|
|
2383
|
+
var c = n.__$u;
|
|
2384
|
+
c && (n.__$u = void 0, c.d());
|
|
2385
|
+
}
|
|
2386
|
+
}
|
|
2387
|
+
t(e);
|
|
2388
|
+
});
|
|
2389
|
+
bt("__h", function(t, e, a, r) {
|
|
2390
|
+
(r < 3 || r === 9) && (e.__$f |= 2), t(e, a, r);
|
|
2391
|
+
});
|
|
2392
|
+
H.prototype.shouldComponentUpdate = function(t, e) {
|
|
2393
|
+
var a = this.__$u;
|
|
2394
|
+
if (!(a && a.s !== void 0 || 4 & this.__$f) || 3 & this.__$f)
|
|
2395
|
+
return !0;
|
|
2396
|
+
for (var r in e)
|
|
2397
|
+
return !0;
|
|
2398
|
+
for (var o in t)
|
|
2399
|
+
if (o !== "__source" && t[o] !== this.props[o])
|
|
2400
|
+
return !0;
|
|
2401
|
+
for (var i in this.props)
|
|
2402
|
+
if (!(i in t))
|
|
2403
|
+
return !0;
|
|
2404
|
+
return !1;
|
|
2405
|
+
};
|
|
2406
|
+
function Bc(t) {
|
|
2407
|
+
return gt(function() {
|
|
2408
|
+
return Et(t);
|
|
2409
|
+
}, []);
|
|
2410
|
+
}
|
|
2411
|
+
const _e = (t, e) => e.some((a) => t instanceof a);
|
|
2412
|
+
let ka, $a;
|
|
2413
|
+
function Rc() {
|
|
2414
|
+
return ka || (ka = [
|
|
2415
|
+
IDBDatabase,
|
|
2416
|
+
IDBObjectStore,
|
|
2417
|
+
IDBIndex,
|
|
2418
|
+
IDBCursor,
|
|
2419
|
+
IDBTransaction
|
|
2420
|
+
]);
|
|
2421
|
+
}
|
|
2422
|
+
function Uc() {
|
|
2423
|
+
return $a || ($a = [
|
|
2424
|
+
IDBCursor.prototype.advance,
|
|
2425
|
+
IDBCursor.prototype.continue,
|
|
2426
|
+
IDBCursor.prototype.continuePrimaryKey
|
|
2427
|
+
]);
|
|
2428
|
+
}
|
|
2429
|
+
const me = /* @__PURE__ */ new WeakMap(), re = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap();
|
|
2430
|
+
function Vc(t) {
|
|
2431
|
+
const e = new Promise((a, r) => {
|
|
2432
|
+
const o = () => {
|
|
2433
|
+
t.removeEventListener("success", i), t.removeEventListener("error", n);
|
|
2434
|
+
}, i = () => {
|
|
2435
|
+
a(ot(t.result)), o();
|
|
2436
|
+
}, n = () => {
|
|
2437
|
+
r(t.error), o();
|
|
2438
|
+
};
|
|
2439
|
+
t.addEventListener("success", i), t.addEventListener("error", n);
|
|
2440
|
+
});
|
|
2441
|
+
return Jt.set(e, t), e;
|
|
2442
|
+
}
|
|
2443
|
+
function Kc(t) {
|
|
2444
|
+
if (me.has(t))
|
|
2445
|
+
return;
|
|
2446
|
+
const e = new Promise((a, r) => {
|
|
2447
|
+
const o = () => {
|
|
2448
|
+
t.removeEventListener("complete", i), t.removeEventListener("error", n), t.removeEventListener("abort", n);
|
|
2449
|
+
}, i = () => {
|
|
2450
|
+
a(), o();
|
|
2451
|
+
}, n = () => {
|
|
2452
|
+
r(t.error || new DOMException("AbortError", "AbortError")), o();
|
|
2453
|
+
};
|
|
2454
|
+
t.addEventListener("complete", i), t.addEventListener("error", n), t.addEventListener("abort", n);
|
|
2455
|
+
});
|
|
2456
|
+
me.set(t, e);
|
|
2457
|
+
}
|
|
2458
|
+
let ye = {
|
|
2459
|
+
get(t, e, a) {
|
|
2460
|
+
if (t instanceof IDBTransaction) {
|
|
2461
|
+
if (e === "done")
|
|
2462
|
+
return me.get(t);
|
|
2463
|
+
if (e === "store")
|
|
2464
|
+
return a.objectStoreNames[1] ? void 0 : a.objectStore(a.objectStoreNames[0]);
|
|
2465
|
+
}
|
|
2466
|
+
return ot(t[e]);
|
|
2467
|
+
},
|
|
2468
|
+
set(t, e, a) {
|
|
2469
|
+
return t[e] = a, !0;
|
|
2470
|
+
},
|
|
2471
|
+
has(t, e) {
|
|
2472
|
+
return t instanceof IDBTransaction && (e === "done" || e === "store") ? !0 : e in t;
|
|
2473
|
+
}
|
|
2474
|
+
};
|
|
2475
|
+
function Dr(t) {
|
|
2476
|
+
ye = t(ye);
|
|
2477
|
+
}
|
|
2478
|
+
function qc(t) {
|
|
2479
|
+
return Uc().includes(t) ? function(...e) {
|
|
2480
|
+
return t.apply(xe(this), e), ot(this.request);
|
|
2481
|
+
} : function(...e) {
|
|
2482
|
+
return ot(t.apply(xe(this), e));
|
|
2483
|
+
};
|
|
2484
|
+
}
|
|
2485
|
+
function Wc(t) {
|
|
2486
|
+
return typeof t == "function" ? qc(t) : (t instanceof IDBTransaction && Kc(t), _e(t, Rc()) ? new Proxy(t, ye) : t);
|
|
2487
|
+
}
|
|
2488
|
+
function ot(t) {
|
|
2489
|
+
if (t instanceof IDBRequest)
|
|
2490
|
+
return Vc(t);
|
|
2491
|
+
if (re.has(t))
|
|
2492
|
+
return re.get(t);
|
|
2493
|
+
const e = Wc(t);
|
|
2494
|
+
return e !== t && (re.set(t, e), Jt.set(e, t)), e;
|
|
2495
|
+
}
|
|
2496
|
+
const xe = (t) => Jt.get(t);
|
|
2497
|
+
function Gc(t, e, { blocked: a, upgrade: r, blocking: o, terminated: i } = {}) {
|
|
2498
|
+
const n = indexedDB.open(t, e), c = ot(n);
|
|
2499
|
+
return r && n.addEventListener("upgradeneeded", (l) => {
|
|
2500
|
+
r(ot(n.result), l.oldVersion, l.newVersion, ot(n.transaction), l);
|
|
2501
|
+
}), a && n.addEventListener("blocked", (l) => a(
|
|
2502
|
+
// Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405
|
|
2503
|
+
l.oldVersion,
|
|
2504
|
+
l.newVersion,
|
|
2505
|
+
l
|
|
2506
|
+
)), c.then((l) => {
|
|
2507
|
+
i && l.addEventListener("close", () => i()), o && l.addEventListener("versionchange", (d) => o(d.oldVersion, d.newVersion, d));
|
|
2508
|
+
}).catch(() => {
|
|
2509
|
+
}), c;
|
|
2510
|
+
}
|
|
2511
|
+
const Yc = ["get", "getKey", "getAll", "getAllKeys", "count"], Xc = ["put", "add", "delete", "clear"], ie = /* @__PURE__ */ new Map();
|
|
2512
|
+
function Sa(t, e) {
|
|
2513
|
+
if (!(t instanceof IDBDatabase && !(e in t) && typeof e == "string"))
|
|
2514
|
+
return;
|
|
2515
|
+
if (ie.get(e))
|
|
2516
|
+
return ie.get(e);
|
|
2517
|
+
const a = e.replace(/FromIndex$/, ""), r = e !== a, o = Xc.includes(a);
|
|
2518
|
+
if (
|
|
2519
|
+
// Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
|
|
2520
|
+
!(a in (r ? IDBIndex : IDBObjectStore).prototype) || !(o || Yc.includes(a))
|
|
2521
|
+
)
|
|
2522
|
+
return;
|
|
2523
|
+
const i = async function(n, ...c) {
|
|
2524
|
+
const l = this.transaction(n, o ? "readwrite" : "readonly");
|
|
2525
|
+
let d = l.store;
|
|
2526
|
+
return r && (d = d.index(c.shift())), (await Promise.all([
|
|
2527
|
+
d[a](...c),
|
|
2528
|
+
o && l.done
|
|
2529
|
+
]))[0];
|
|
2530
|
+
};
|
|
2531
|
+
return ie.set(e, i), i;
|
|
2532
|
+
}
|
|
2533
|
+
Dr((t) => ({
|
|
2534
|
+
...t,
|
|
2535
|
+
get: (e, a, r) => Sa(e, a) || t.get(e, a, r),
|
|
2536
|
+
has: (e, a) => !!Sa(e, a) || t.has(e, a)
|
|
2537
|
+
}));
|
|
2538
|
+
const Zc = ["continue", "continuePrimaryKey", "advance"], Ca = {}, ke = /* @__PURE__ */ new WeakMap(), Ar = /* @__PURE__ */ new WeakMap(), Jc = {
|
|
2539
|
+
get(t, e) {
|
|
2540
|
+
if (!Zc.includes(e))
|
|
2541
|
+
return t[e];
|
|
2542
|
+
let a = Ca[e];
|
|
2543
|
+
return a || (a = Ca[e] = function(...r) {
|
|
2544
|
+
ke.set(this, Ar.get(this)[e](...r));
|
|
2545
|
+
}), a;
|
|
2546
|
+
}
|
|
2547
|
+
};
|
|
2548
|
+
async function* Qc(...t) {
|
|
2549
|
+
let e = this;
|
|
2550
|
+
if (e instanceof IDBCursor || (e = await e.openCursor(...t)), !e)
|
|
2551
|
+
return;
|
|
2552
|
+
e = e;
|
|
2553
|
+
const a = new Proxy(e, Jc);
|
|
2554
|
+
for (Ar.set(a, e), Jt.set(a, xe(e)); e; )
|
|
2555
|
+
yield a, e = await (ke.get(a) || e.continue()), ke.delete(a);
|
|
2556
|
+
}
|
|
2557
|
+
function Ea(t, e) {
|
|
2558
|
+
return e === Symbol.asyncIterator && _e(t, [IDBIndex, IDBObjectStore, IDBCursor]) || e === "iterate" && _e(t, [IDBIndex, IDBObjectStore]);
|
|
2559
|
+
}
|
|
2560
|
+
Dr((t) => ({
|
|
2561
|
+
...t,
|
|
2562
|
+
get(e, a, r) {
|
|
2563
|
+
return Ea(e, a) ? Qc : t.get(e, a, r);
|
|
2564
|
+
},
|
|
2565
|
+
has(e, a) {
|
|
2566
|
+
return Ea(e, a) || t.has(e, a);
|
|
2567
|
+
}
|
|
2568
|
+
}));
|
|
2569
|
+
const Ll = (t) => Me(t).with(nt.number.lte(1e3), () => `${Math.round(t)}KB`).with(nt.number.lt(1e3 * 10), () => `${(t / 1e3).toFixed(1)}MB`).otherwise(() => `${Math.round(t / 1e3)}MB`), Bl = (t) => {
|
|
2570
|
+
const e = t.find((a) => a.isHead);
|
|
2571
|
+
if (!e)
|
|
2572
|
+
throw new Error("No head node found");
|
|
2573
|
+
return e;
|
|
2574
|
+
}, Rl = (t) => Object.entries(t).reduce((a, [r, o]) => (a[r] = o.value, a), {}), Ul = (t) => (e) => e ? e.type === t : !1;
|
|
2575
|
+
class Vl extends Error {
|
|
2576
|
+
constructor() {
|
|
2577
|
+
super("Aborted");
|
|
2578
|
+
}
|
|
2579
|
+
}
|
|
2580
|
+
function tl(t, e = 300) {
|
|
2581
|
+
let a;
|
|
2582
|
+
return (...r) => {
|
|
2583
|
+
clearTimeout(a), a = setTimeout(() => {
|
|
2584
|
+
t.apply(this, r);
|
|
2585
|
+
}, e);
|
|
2586
|
+
};
|
|
2587
|
+
}
|
|
2588
|
+
const Kl = (t) => typeof t == "string", el = () => typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID() : Math.random().toString(36).slice(2), Pa = () => ({
|
|
2589
|
+
messages: [],
|
|
2590
|
+
submissions: {},
|
|
2591
|
+
currentInput: null,
|
|
2592
|
+
nodeHistory: [],
|
|
2593
|
+
isFinished: !1,
|
|
2594
|
+
sequence: 0,
|
|
2595
|
+
flowSessionId: el()
|
|
2596
|
+
}), ql = (t) => (
|
|
2597
|
+
/** nativeEvent is a hidden property not exposed by JSX's typings */
|
|
2598
|
+
Me(t).with({
|
|
2599
|
+
nativeEvent: {
|
|
2600
|
+
submitter: nt.select(nt.union(nt.instanceOf(HTMLButtonElement), nt.instanceOf(HTMLInputElement)))
|
|
2601
|
+
}
|
|
2602
|
+
}, (e) => e).otherwise(() => {
|
|
2603
|
+
throw new Error("invalid submitter");
|
|
2604
|
+
})
|
|
2605
|
+
), Oa = typeof window > "u" ? void 0 : Gc("inploi-chatbot", 3, {
|
|
2606
|
+
upgrade(t) {
|
|
2607
|
+
try {
|
|
2608
|
+
t.deleteObjectStore("state");
|
|
2609
|
+
} catch {
|
|
2610
|
+
}
|
|
2611
|
+
t.createObjectStore("state");
|
|
2612
|
+
}
|
|
2613
|
+
}), yt = {
|
|
2614
|
+
getStateData: async (t, e) => {
|
|
2615
|
+
var r;
|
|
2616
|
+
const a = Ia({
|
|
2617
|
+
...t,
|
|
2618
|
+
flowKeys: e
|
|
2619
|
+
});
|
|
2620
|
+
return (r = await Oa) == null ? void 0 : r.get("state", a);
|
|
2621
|
+
},
|
|
2622
|
+
setStateData: tl(async (t) => {
|
|
2623
|
+
var a;
|
|
2624
|
+
const e = Ia(t);
|
|
2625
|
+
return (a = await Oa) == null ? void 0 : a.put("state", t.data, e);
|
|
2626
|
+
}, 1e3)
|
|
2627
|
+
}, Ht = (t, e, a, r = 0) => {
|
|
2628
|
+
if (!e.nextId)
|
|
2629
|
+
return a(e.id, {
|
|
2630
|
+
stepsMade: r,
|
|
2631
|
+
remainingSteps: 0
|
|
2632
|
+
}), {
|
|
2633
|
+
stepsMade: r,
|
|
2634
|
+
remainingSteps: 0
|
|
2635
|
+
};
|
|
2636
|
+
const o = t.find((d) => d.id === e.nextId);
|
|
2637
|
+
if (o === void 0)
|
|
2638
|
+
return {
|
|
2639
|
+
stepsMade: r,
|
|
2640
|
+
remainingSteps: 0
|
|
2641
|
+
};
|
|
2642
|
+
const i = e.type === "if-block" ? e.branchId : void 0, n = t.find((d) => d.id === i), c = e.type.includes("question") ? 1 : 0;
|
|
2643
|
+
if (n) {
|
|
2644
|
+
const d = c + Math.max(Ht(t, o, a, r + c).remainingSteps, Ht(t, n, a, r + c).remainingSteps);
|
|
2645
|
+
return a(e.id, {
|
|
2646
|
+
stepsMade: r,
|
|
2647
|
+
remainingSteps: d
|
|
2648
|
+
}), {
|
|
2649
|
+
stepsMade: r,
|
|
2650
|
+
remainingSteps: d
|
|
2651
|
+
};
|
|
2652
|
+
}
|
|
2653
|
+
const l = c + Ht(t, o, a, r + c).remainingSteps;
|
|
2654
|
+
return a(e.id, {
|
|
2655
|
+
stepsMade: r,
|
|
2656
|
+
remainingSteps: l
|
|
2657
|
+
}), {
|
|
2658
|
+
stepsMade: r,
|
|
2659
|
+
remainingSteps: l
|
|
2660
|
+
};
|
|
2661
|
+
}, al = (t) => {
|
|
2662
|
+
const e = {}, a = t.find((r) => r.isHead);
|
|
2663
|
+
return a && Ht(t, a, (r, o) => {
|
|
2664
|
+
e[r] = o;
|
|
2665
|
+
}), e;
|
|
2666
|
+
}, Ia = (t) => [...t.flowKeys, t.id, t.version].join("/"), W = Et({
|
|
2667
|
+
state: "idle"
|
|
2668
|
+
}), _t = (t) => {
|
|
2669
|
+
const {
|
|
2670
|
+
state: e,
|
|
2671
|
+
flow: a
|
|
2672
|
+
} = W.value;
|
|
2673
|
+
if (e !== "loaded")
|
|
2674
|
+
return;
|
|
2675
|
+
Er(a, "No flow to update");
|
|
2676
|
+
const r = t(a.data);
|
|
2677
|
+
a.data = r, W.value = {
|
|
2678
|
+
state: e,
|
|
2679
|
+
flow: a
|
|
2680
|
+
}, yt.setStateData(a);
|
|
2681
|
+
}, S = {
|
|
2682
|
+
current$: W,
|
|
2683
|
+
viewState$: Et("closed"),
|
|
2684
|
+
inputHeight$: Et(53),
|
|
2685
|
+
startFlow: async ({
|
|
2686
|
+
flow: t,
|
|
2687
|
+
context: e = {},
|
|
2688
|
+
flowKeys: a,
|
|
2689
|
+
title: r,
|
|
2690
|
+
analytics: o,
|
|
2691
|
+
job: i
|
|
2692
|
+
}) => {
|
|
2693
|
+
const c = {
|
|
2694
|
+
data: await yt.getStateData(t, a) ?? Pa(),
|
|
2695
|
+
startedAt: /* @__PURE__ */ new Date(),
|
|
2696
|
+
nodeIdToProgress: al(t.nodes),
|
|
2697
|
+
flowKeys: a,
|
|
2698
|
+
id: t.id,
|
|
2699
|
+
version: t.version,
|
|
2700
|
+
nodes: t.nodes,
|
|
2701
|
+
build: t.build,
|
|
2702
|
+
context: e,
|
|
2703
|
+
title: r,
|
|
2704
|
+
analytics: o,
|
|
2705
|
+
job: i
|
|
2706
|
+
};
|
|
2707
|
+
W.value = {
|
|
2708
|
+
state: "loaded",
|
|
2709
|
+
flow: c
|
|
2710
|
+
}, yt.setStateData(c);
|
|
2711
|
+
},
|
|
2712
|
+
cancelCurrentFlow: () => {
|
|
2713
|
+
W.value = {
|
|
2714
|
+
state: "idle"
|
|
2715
|
+
}, S.viewState$.value = "closed";
|
|
2716
|
+
},
|
|
2717
|
+
markAsFinished: () => _t((t) => ({
|
|
2718
|
+
...t,
|
|
2719
|
+
isFinished: !0
|
|
2720
|
+
})),
|
|
2721
|
+
setCurrentNodeId: (t) => _t((e) => (e.nodeHistory.push(t), e)),
|
|
2722
|
+
restart: () => {
|
|
2723
|
+
const {
|
|
2724
|
+
state: t,
|
|
2725
|
+
flow: e
|
|
2726
|
+
} = W.value;
|
|
2727
|
+
if (t !== "loaded")
|
|
2728
|
+
throw new Error("Flow cannot be restarted: not in valid state");
|
|
2729
|
+
const a = Pa();
|
|
2730
|
+
W.value = {
|
|
2731
|
+
state: t,
|
|
2732
|
+
flow: {
|
|
2733
|
+
...e,
|
|
2734
|
+
data: a,
|
|
2735
|
+
startedAt: /* @__PURE__ */ new Date()
|
|
2736
|
+
}
|
|
2737
|
+
}, yt.setStateData(e);
|
|
2738
|
+
},
|
|
2739
|
+
addMessage: (t, e) => {
|
|
2740
|
+
const a = {
|
|
2741
|
+
...t,
|
|
2742
|
+
groupId: e
|
|
2743
|
+
};
|
|
2744
|
+
return _t((r) => (r.messages.push(a), r));
|
|
2745
|
+
},
|
|
2746
|
+
/** Removes messages from nodeId, all the messages that have the groupId passed, until it reaches one that doesn't */
|
|
2747
|
+
removeMessagesSentByNodeIds: (t) => {
|
|
2748
|
+
const {
|
|
2749
|
+
state: e,
|
|
2750
|
+
flow: a
|
|
2751
|
+
} = W.value;
|
|
2752
|
+
Er(e === "loaded", "Application not loaded");
|
|
2753
|
+
const r = a.data.messages.filter((o) => !o.groupId || !t.includes(o.groupId));
|
|
2754
|
+
a.data.messages = r, yt.setStateData(a);
|
|
2755
|
+
},
|
|
2756
|
+
setSubmission: (t, e) => _t((a) => (e === null ? delete a.submissions[t] : a.submissions[t] = e, a)),
|
|
2757
|
+
setInput: (t) => _t((e) => ({
|
|
2758
|
+
...e,
|
|
2759
|
+
currentInput: t ?? null
|
|
2760
|
+
}))
|
|
2761
|
+
}, rl = ({
|
|
2762
|
+
message: t
|
|
2763
|
+
}) => {
|
|
2764
|
+
const {
|
|
2765
|
+
t: e
|
|
2766
|
+
} = Cr();
|
|
2767
|
+
return f("div", {
|
|
2768
|
+
class: "flex flex-grow flex-col items-center justify-center",
|
|
2769
|
+
children: [f("svg", {
|
|
2770
|
+
class: "text-error-9 h-16 w-16",
|
|
2771
|
+
fill: "none",
|
|
2772
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2773
|
+
"stroke-width": "2",
|
|
2774
|
+
stroke: "currentColor",
|
|
2775
|
+
"stroke-linecap": "round",
|
|
2776
|
+
viewBox: "0 0 96 96",
|
|
2777
|
+
children: [f("path", {
|
|
2778
|
+
d: "M48 79H19.9l-1.3-.3a3 3 0 0 1-1.3-1.3c-.1-.3-.2-.6-.2-1.3l-.1-2.5V48a31 31 0 1 1 31 31Z",
|
|
2779
|
+
fill: "#fff"
|
|
2780
|
+
}), f("path", {
|
|
2781
|
+
d: "M48 79H19.9l-1.3-.3a3 3 0 0 1-1.3-1.3c-.1-.3-.2-.6-.2-1.3l-.1-2.5V48a31 31 0 1 1 31 31Z"
|
|
2782
|
+
}), f("line", {
|
|
2783
|
+
x1: "36.7",
|
|
2784
|
+
y1: "39.3",
|
|
2785
|
+
x2: "44.8",
|
|
2786
|
+
y2: "47.4"
|
|
2787
|
+
}), f("line", {
|
|
2788
|
+
x1: "52.2",
|
|
2789
|
+
y1: "39.3",
|
|
2790
|
+
x2: "60.3",
|
|
2791
|
+
y2: "47.4"
|
|
2792
|
+
}), f("line", {
|
|
2793
|
+
x1: "44.7",
|
|
2794
|
+
y1: "39.2",
|
|
2795
|
+
x2: "36.6",
|
|
2796
|
+
y2: "47.3"
|
|
2797
|
+
}), f("line", {
|
|
2798
|
+
x1: "60.2",
|
|
2799
|
+
y1: "39.2",
|
|
2800
|
+
x2: "52.1",
|
|
2801
|
+
y2: "47.3"
|
|
2802
|
+
}), f("path", {
|
|
2803
|
+
d: "M38 56h19"
|
|
2804
|
+
})]
|
|
2805
|
+
}), f("div", {
|
|
2806
|
+
class: "flex flex-col gap-2 text-center",
|
|
2807
|
+
children: [f("p", {
|
|
2808
|
+
class: "text-error-11 font-bold",
|
|
2809
|
+
children: e("error_heading")
|
|
2810
|
+
}), t && f("p", {
|
|
2811
|
+
class: "text-neutral-9 text-sm",
|
|
2812
|
+
children: t
|
|
2813
|
+
})]
|
|
2814
|
+
})]
|
|
2815
|
+
});
|
|
2816
|
+
}, il = (t) => f("svg", {
|
|
2817
|
+
role: "img",
|
|
2818
|
+
viewBox: "0 0 24 24",
|
|
2819
|
+
...t,
|
|
2820
|
+
children: [f("title", {
|
|
2821
|
+
children: "Loading"
|
|
2822
|
+
}), f("style", {
|
|
2823
|
+
children: "#s1{animation:3s linear infinite forwards s1__to}@keyframes s1__to{0%{transform:translate(12px,0)}66.666667%{transform:translate(12px,0);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}100%{transform:translate(12px,12px)}}#s2{animation:3s linear infinite forwards s2__ts}@keyframes s2__ts{0%{transform:scale(0,0)}70%{transform:scale(0,0);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}100%{transform:scale(1,1)}}#s3{animation:3s linear infinite forwards s3__to}@keyframes s3__to{0%{transform:translate(12px,12px);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}100%,33.333333%{transform:translate(12px,24px)}}#s4{animation:3s linear infinite forwards s4__ts}@keyframes s4__ts{0%{transform:scale(1,1);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}100%,30%{transform:scale(0,0)}}#s5{animation:3s linear infinite forwards s5__to}@keyframes s5__to{0%{transform:translate(12px,0);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}33.333333%{transform:translate(12px,12.045742px);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}100%,66.666667%{transform:translate(12px,24px)}}#s6{animation:3s linear infinite forwards s6__ts}@keyframes s6__ts{0%,100%,63.333333%{transform:scale(0,0)}3.333333%{transform:scale(0,0);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}33.333333%{transform:scale(1,1);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}}#s7{animation:3s linear infinite forwards s7__to}@keyframes s7__to{0%{transform:translate(12px,0)}33.333333%{transform:translate(12px,0);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}66.666667%{transform:translate(12px,12px);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}100%{transform:translate(12px,24px)}}#s8{animation:3s linear infinite forwards s8__ts}@keyframes s8__ts{0%,100%,96.666667%{transform:scale(0,0)}36.666667%{transform:scale(0,0);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}66.666667%{transform:scale(1,1);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}}"
|
|
2824
|
+
}), f("g", {
|
|
2825
|
+
id: "s1",
|
|
2826
|
+
transform: "translate(12,0)",
|
|
2827
|
+
children: f("g", {
|
|
2828
|
+
id: "s2",
|
|
2829
|
+
transform: "scale(0,0)",
|
|
2830
|
+
children: f("circle", {
|
|
2831
|
+
r: "6.5",
|
|
2832
|
+
transform: "translate(0,0)",
|
|
2833
|
+
fill: "currentColor"
|
|
2834
|
+
})
|
|
2835
|
+
})
|
|
2836
|
+
}), f("g", {
|
|
2837
|
+
id: "s3",
|
|
2838
|
+
transform: "translate(12,12)",
|
|
2839
|
+
children: f("g", {
|
|
2840
|
+
id: "s4",
|
|
2841
|
+
transform: "scale(1,1)",
|
|
2842
|
+
children: f("circle", {
|
|
2843
|
+
r: "6.5",
|
|
2844
|
+
transform: "translate(0,0)",
|
|
2845
|
+
fill: "currentColor"
|
|
2846
|
+
})
|
|
2847
|
+
})
|
|
2848
|
+
}), f("g", {
|
|
2849
|
+
id: "s5",
|
|
2850
|
+
transform: "translate(12,0)",
|
|
2851
|
+
children: f("g", {
|
|
2852
|
+
id: "s6",
|
|
2853
|
+
transform: "scale(0,0)",
|
|
2854
|
+
children: f("path", {
|
|
2855
|
+
d: "M6.5,13c3.5899,0,6.5-2.9101,6.5-6.5s-2.9101-6.5-6.5-6.5-6.5,2.91015-6.5,6.5s2.91015,6.5,6.5,6.5Zm0-4C7.88071,9,9,7.88071,9,6.5s-1.11929-2.5-2.5-2.5-2.5,1.11929-2.5,2.5s1.11929,2.5,2.5,2.5Z",
|
|
2856
|
+
transform: "translate(-6.5,-6.5)",
|
|
2857
|
+
"clip-rule": "evenodd",
|
|
2858
|
+
fill: "currentColor",
|
|
2859
|
+
"fill-rule": "evenodd"
|
|
2860
|
+
})
|
|
2861
|
+
})
|
|
2862
|
+
}), f("g", {
|
|
2863
|
+
id: "s7",
|
|
2864
|
+
transform: "translate(12,0)",
|
|
2865
|
+
children: f("g", {
|
|
2866
|
+
id: "s8",
|
|
2867
|
+
transform: "scale(0,0)",
|
|
2868
|
+
children: f("path", {
|
|
2869
|
+
d: "M0,6c0,3.58984,2.91016,6.5,6.5,6.5s6.5-2.91016,6.5-6.5h-4C9,7.38086,7.88086,8.5,6.5,8.5s-2.5-1.11914-2.5-2.5h-4Z",
|
|
2870
|
+
transform: "translate(-6.5,-9.25)",
|
|
2871
|
+
fill: "currentColor"
|
|
2872
|
+
})
|
|
2873
|
+
})
|
|
2874
|
+
})]
|
|
2875
|
+
}), Ta = () => f("div", {
|
|
2876
|
+
class: "flex flex-grow flex-col items-center justify-center",
|
|
2877
|
+
children: f(il, {
|
|
2878
|
+
class: "text-neutral-6 h-8 w-8"
|
|
2879
|
+
})
|
|
2880
|
+
}), ol = (t) => {
|
|
2881
|
+
const a = t / 100, r = 1.3;
|
|
2882
|
+
return t < 0 ? "0%" : t > 100 ? "100%" : `${Math.round((1 - (1 - 0.1) * Math.pow(1 - a, r)) * 100)}%`;
|
|
2883
|
+
}, Dt = ({
|
|
2884
|
+
class: t,
|
|
2885
|
+
children: e,
|
|
2886
|
+
...a
|
|
2887
|
+
}) => f("button", {
|
|
2888
|
+
class: cr("touch-hitbox text-interactive-copy hover:text-interactive-copy-hover active:text-interactive-copy-active hover:bg-interactive-bg-hover active:bg-interactive-bg-active fr relative rounded-full p-2 transition-all", t),
|
|
2889
|
+
...a,
|
|
2890
|
+
children: f("svg", {
|
|
2891
|
+
class: "block",
|
|
2892
|
+
width: "16",
|
|
2893
|
+
height: "16",
|
|
2894
|
+
viewBox: "0 0 16 16",
|
|
2895
|
+
fill: "none",
|
|
2896
|
+
stroke: "currentColor",
|
|
2897
|
+
"stroke-width": "1.5",
|
|
2898
|
+
"stroke-linecap": "round",
|
|
2899
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2900
|
+
children: e
|
|
2901
|
+
})
|
|
2902
|
+
}), nl = () => {
|
|
2903
|
+
if (S.current$.value.state !== "loaded")
|
|
2904
|
+
return null;
|
|
2905
|
+
const t = S.current$.value.flow.nodeIdToProgress, e = S.current$.value.flow.data.nodeHistory.at(-1);
|
|
2906
|
+
if (e === void 0)
|
|
2907
|
+
return null;
|
|
2908
|
+
const a = t[e];
|
|
2909
|
+
if (a === void 0)
|
|
2910
|
+
return null;
|
|
2911
|
+
const r = 100 * (a.stepsMade / (a.remainingSteps + a.stepsMade));
|
|
2912
|
+
return f("div", {
|
|
2913
|
+
class: "bg-accent-3",
|
|
2914
|
+
children: f("div", {
|
|
2915
|
+
style: {
|
|
2916
|
+
width: ol(r)
|
|
2917
|
+
},
|
|
2918
|
+
class: "bg-accent-9 ring-accent-6 relative h-[3px] rounded-full transition-all duration-1000"
|
|
2919
|
+
})
|
|
2920
|
+
});
|
|
2921
|
+
}, sl = ({
|
|
2922
|
+
children: t,
|
|
2923
|
+
params: e
|
|
2924
|
+
}) => {
|
|
2925
|
+
const {
|
|
2926
|
+
t: a
|
|
2927
|
+
} = Cr(), r = S.viewState$;
|
|
2928
|
+
return f(M, {
|
|
2929
|
+
children: f("header", {
|
|
2930
|
+
class: "ring-divider bg-statusbar absolute left-0 right-0 top-0 z-20 mx-auto items-center ring-1 backdrop-blur-md backdrop-saturate-150",
|
|
2931
|
+
children: [f("div", {
|
|
2932
|
+
class: "flex h-[var(--header-height)] gap-2",
|
|
2933
|
+
children: [f("p", {
|
|
2934
|
+
id: "chatbot-status-bar",
|
|
2935
|
+
class: "sr-only",
|
|
2936
|
+
children: t
|
|
2937
|
+
}), f("button", {
|
|
2938
|
+
tabIndex: -1,
|
|
2939
|
+
onClick: () => {
|
|
2940
|
+
r.value === "minimised" ? r.value = "maximised" : r.value = "minimised";
|
|
2941
|
+
},
|
|
2942
|
+
class: "view-switch h-full flex-grow overflow-hidden px-4 py-1",
|
|
2943
|
+
onTouchStart: oe,
|
|
2944
|
+
children: f("p", {
|
|
2945
|
+
"aria-hidden": !0,
|
|
2946
|
+
class: "text-neutral-12 truncate text-sm font-bold tracking-tight",
|
|
2947
|
+
children: t
|
|
2948
|
+
})
|
|
2949
|
+
}), f("div", {
|
|
2950
|
+
class: "flex flex-shrink-0 items-center gap-3 p-1.5",
|
|
2951
|
+
children: [e.feedback ? f("div", {
|
|
2952
|
+
"data-widget": "inploi-feedback",
|
|
2953
|
+
"data-key": "chatbot-header"
|
|
2954
|
+
}) : null, r.value === "minimised" ? f(M, {
|
|
2955
|
+
children: [f(Dt, {
|
|
2956
|
+
class: "view-switch",
|
|
2957
|
+
onTouchStart: oe,
|
|
2958
|
+
"aria-label": a("maximize"),
|
|
2959
|
+
onClick: () => r.value = "maximised",
|
|
2960
|
+
children: f("path", {
|
|
2961
|
+
d: "M12.5 9.5L8 5L3.5 9.5"
|
|
2962
|
+
})
|
|
2963
|
+
}, "minmax"), f(Dt, {
|
|
2964
|
+
"aria-label": a("close_application"),
|
|
2965
|
+
onClick: S.cancelCurrentFlow,
|
|
2966
|
+
children: f("path", {
|
|
2967
|
+
d: "M12.5 6.5L8 11L3.5 6.5"
|
|
2968
|
+
})
|
|
2969
|
+
}, "close")]
|
|
2970
|
+
}) : f(M, {
|
|
2971
|
+
children: [S.current$.value.state === "loaded" && f(Dt, {
|
|
2972
|
+
"aria-label": "Restart",
|
|
2973
|
+
onClick: () => {
|
|
2974
|
+
S.restart();
|
|
2975
|
+
},
|
|
2976
|
+
children: [f("path", {
|
|
2977
|
+
d: "M12 8.5C12 9.29113 11.7654 10.0645 11.3259 10.7223C10.8864 11.3801 10.2616 11.8928 9.53073 12.1955C8.79983 12.4983 7.99556 12.5775 7.21964 12.4231C6.44371 12.2688 5.73098 11.8878 5.17157 11.3284C4.61216 10.769 4.2312 10.0563 4.07686 9.28036C3.92252 8.50444 4.00173 7.70017 4.30448 6.96927C4.60723 6.23836 5.11992 5.61365 5.77772 5.17412C6.43552 4.7346 7.20887 4.5 8 4.5H9"
|
|
2978
|
+
}), f("path", {
|
|
2979
|
+
d: "M8 7L10 4.5L8 2.5"
|
|
2980
|
+
})]
|
|
2981
|
+
}, "restart"), f(Dt, {
|
|
2982
|
+
class: "view-switch",
|
|
2983
|
+
onTouchStart: oe,
|
|
2984
|
+
"aria-label": a("minimize"),
|
|
2985
|
+
onClick: () => r.value = "minimised",
|
|
2986
|
+
children: f("path", {
|
|
2987
|
+
d: "M12.5 6.5L8 11L3.5 6.5"
|
|
2988
|
+
})
|
|
2989
|
+
}, "minmax")]
|
|
2990
|
+
})]
|
|
2991
|
+
})]
|
|
2992
|
+
}), f(nl, {})]
|
|
2993
|
+
})
|
|
2994
|
+
});
|
|
2995
|
+
};
|
|
2996
|
+
function oe() {
|
|
2997
|
+
}
|
|
2998
|
+
const cl = _r(() => import("./chatbot-body-c80bdc34.js").then((t) => t.ChatbotBody)), ja = Fs("selection:bg-accent-4 selection:text-accent-12 fixed bottom-2 left-2 right-2 isolate mx-auto max-h-full max-w-[450px] focus:outline-none [&:has(.view-switch:active)]:scale-[0.98] transition-all duration-1000 ease-expo-out", {
|
|
2999
|
+
variants: {
|
|
3000
|
+
view: {
|
|
3001
|
+
closed: "hidden",
|
|
3002
|
+
minimised: "h-[var(--header-height)] animate-slide-in-bottom",
|
|
3003
|
+
maximised: "h-[var(--content-height)] animate-maximise"
|
|
3004
|
+
}
|
|
3005
|
+
}
|
|
3006
|
+
}), za = "outline-neutral-3 bg-neutral-1 relative flex h-full flex-col overflow-hidden rounded-3xl outline outline-1", ll = ({
|
|
3007
|
+
open: t,
|
|
3008
|
+
...e
|
|
3009
|
+
}) => {
|
|
3010
|
+
const a = ze(null);
|
|
3011
|
+
return It(() => {
|
|
3012
|
+
const r = a.current;
|
|
3013
|
+
r && (t ? r.showModal() : r.close());
|
|
3014
|
+
}, [t]), f("dialog", {
|
|
3015
|
+
ref: a,
|
|
3016
|
+
...e
|
|
3017
|
+
});
|
|
3018
|
+
}, dl = ({
|
|
3019
|
+
logger: t,
|
|
3020
|
+
apiClient: e,
|
|
3021
|
+
analytics: a,
|
|
3022
|
+
params: r
|
|
3023
|
+
}) => {
|
|
3024
|
+
const {
|
|
3025
|
+
state: o,
|
|
3026
|
+
flow: i,
|
|
3027
|
+
error: n
|
|
3028
|
+
} = S.current$.value, c = S.viewState$.value, l = o !== "idle" && c === "maximised", d = ze(null), u = f(sl, {
|
|
3029
|
+
params: r,
|
|
3030
|
+
children: i == null ? void 0 : i.title
|
|
3031
|
+
});
|
|
3032
|
+
return f(Ac, {
|
|
3033
|
+
terms: r.terms,
|
|
3034
|
+
locale: void 0,
|
|
3035
|
+
children: [f(ll, {
|
|
3036
|
+
open: l,
|
|
3037
|
+
onClose: () => S.viewState$.value = "minimised",
|
|
3038
|
+
children: f("div", {
|
|
3039
|
+
ref: d,
|
|
3040
|
+
"aria-modal": "true",
|
|
3041
|
+
role: "dialog",
|
|
3042
|
+
"aria-labelledby": "chatbot-status-bar",
|
|
3043
|
+
class: ja({
|
|
3044
|
+
view: "maximised"
|
|
3045
|
+
}),
|
|
3046
|
+
children: f("div", {
|
|
3047
|
+
class: za,
|
|
3048
|
+
children: [u, Me({
|
|
3049
|
+
state: o,
|
|
3050
|
+
view: c
|
|
3051
|
+
}).with({
|
|
3052
|
+
state: "idle"
|
|
3053
|
+
}, () => null).with({
|
|
3054
|
+
state: "loading"
|
|
3055
|
+
}, () => f(Ta, {}, "loading")).with({
|
|
3056
|
+
state: "loaded"
|
|
3057
|
+
}, () => f(kt, {
|
|
3058
|
+
fallback: f(Ta, {}, "loading"),
|
|
3059
|
+
children: f(cl, {
|
|
3060
|
+
analytics: a,
|
|
3061
|
+
apiClient: e,
|
|
3062
|
+
logger: t
|
|
3063
|
+
})
|
|
3064
|
+
})).with({
|
|
3065
|
+
state: "error"
|
|
3066
|
+
}, () => f(rl, {
|
|
3067
|
+
message: n
|
|
3068
|
+
})).exhaustive()]
|
|
3069
|
+
})
|
|
3070
|
+
})
|
|
3071
|
+
}), c === "minimised" ? f("div", {
|
|
3072
|
+
class: ja({
|
|
3073
|
+
view: "minimised",
|
|
3074
|
+
class: "z-100 isolate"
|
|
3075
|
+
}),
|
|
3076
|
+
children: f("div", {
|
|
3077
|
+
class: za,
|
|
3078
|
+
children: u
|
|
3079
|
+
})
|
|
3080
|
+
}) : null]
|
|
3081
|
+
});
|
|
3082
|
+
}, Nr = it({
|
|
3083
|
+
id: ar(ct(), String),
|
|
3084
|
+
version: aa(),
|
|
3085
|
+
build: aa(),
|
|
3086
|
+
nodes: Is(Os()),
|
|
3087
|
+
context_schema: nr(js(As(ct(), it({
|
|
3088
|
+
required: Ts(),
|
|
3089
|
+
type: Ns([ea("string"), ea("number")])
|
|
3090
|
+
}))))
|
|
3091
|
+
}), ul = it({
|
|
3092
|
+
flow: Nr
|
|
3093
|
+
}), pl = it({
|
|
3094
|
+
company: it({
|
|
3095
|
+
name: ct()
|
|
3096
|
+
}),
|
|
3097
|
+
flow: Nr,
|
|
3098
|
+
job: it({
|
|
3099
|
+
id: ar(ct(), String),
|
|
3100
|
+
title: ct()
|
|
3101
|
+
})
|
|
3102
|
+
}), hl = `[data-widget=inploi-chatbot]{-webkit-touch-callout:none;-moz-user-select:none;-webkit-user-select:none;user-select:none;position:relative;z-index:99999;font-size:16px;font-family:sans-serif;--i-lowest: 0 0% 100%;--i-e-1: 340 100% 99%;--i-e-2: 353 100% 98%;--i-e-3: 351 91% 96%;--i-e-4: 351 100% 93%;--i-e-5: 350 100% 90%;--i-e-6: 351 80% 86%;--i-e-7: 349 68% 81%;--i-e-8: 348 61% 74%;--i-e-9: 348 75% 59%;--i-e-10: 347 70% 55%;--i-e-11: 345 70% 47%;--i-e-12: 344 63% 24%;--header-height: 44px;--content-height:calc(100vh - 64px);--content-height:calc(100svh - 64px)}@media screen and (min-width: 768px){[data-widget=inploi-chatbot]{--content-height: min(640px, calc(100vh - 16px));--content-height: min(640px, calc(100svh - 16px)) }}[data-widget=inploi-chatbot]{--tw-content: "";font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}[data-widget=inploi-chatbot] em{font-style:italic}[data-widget=inploi-chatbot] strong{font-weight:700}[data-widget=inploi-chatbot] *{font-weight:inherit;font-style:inherit;box-sizing:border-box;font-family:inherit;border-style:solid;border-width:0;-webkit-tap-highlight-color:transparent}[data-widget=inploi-chatbot] :before,[data-widget=inploi-chatbot] :after{box-sizing:border-box}[data-widget=inploi-chatbot] :is(ul,ol){list-style:none;padding:0;margin:0}[data-widget=inploi-chatbot] :is(p){margin:0;padding:0}[data-widget=inploi-chatbot] :is(li){margin:0;padding:0;list-style:none}[data-widget=inploi-chatbot] :is(button){margin:0;padding:0;border:unset;background:unset;text-align:unset}[data-widget=inploi-chatbot] *,[data-widget=inploi-chatbot] :before,[data-widget=inploi-chatbot] :after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }[data-widget=inploi-chatbot] ::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }[data-widget=inploi-chatbot] .container{width:100%}@media (min-width: 640px){[data-widget=inploi-chatbot] .container{max-width:640px}}@media (min-width: 768px){[data-widget=inploi-chatbot] .container{max-width:768px}}@media (min-width: 1024px){[data-widget=inploi-chatbot] .container{max-width:1024px}}@media (min-width: 1280px){[data-widget=inploi-chatbot] .container{max-width:1280px}}@media (min-width: 1536px){[data-widget=inploi-chatbot] .container{max-width:1536px}}[data-widget=inploi-chatbot] .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}[data-widget=inploi-chatbot] .visible{visibility:visible}[data-widget=inploi-chatbot] .invisible{visibility:hidden}[data-widget=inploi-chatbot] .collapse{visibility:collapse}[data-widget=inploi-chatbot] .static{position:static}[data-widget=inploi-chatbot] .fixed{position:fixed}[data-widget=inploi-chatbot] .absolute{position:absolute}[data-widget=inploi-chatbot] .relative{position:relative}[data-widget=inploi-chatbot] .sticky{position:sticky}[data-widget=inploi-chatbot] .inset-0{top:0;right:0;bottom:0;left:0}[data-widget=inploi-chatbot] .bottom-0{bottom:0}[data-widget=inploi-chatbot] .bottom-2{bottom:.5rem}[data-widget=inploi-chatbot] .bottom-2\\.5{bottom:.625rem}[data-widget=inploi-chatbot] .left-0{left:0}[data-widget=inploi-chatbot] .left-2{left:.5rem}[data-widget=inploi-chatbot] .right-0{right:0}[data-widget=inploi-chatbot] .right-2{right:.5rem}[data-widget=inploi-chatbot] .top-0{top:0}[data-widget=inploi-chatbot] .isolate{isolation:isolate}[data-widget=inploi-chatbot] .z-20{z-index:20}[data-widget=inploi-chatbot] .z-50{z-index:50}[data-widget=inploi-chatbot] .m-0{margin:0}[data-widget=inploi-chatbot] .mx-auto{margin-left:auto;margin-right:auto}[data-widget=inploi-chatbot] .mb-1{margin-bottom:.25rem}[data-widget=inploi-chatbot] .ml-auto{margin-left:auto}[data-widget=inploi-chatbot] .mt-auto{margin-top:auto}[data-widget=inploi-chatbot] .block{display:block}[data-widget=inploi-chatbot] .inline-block{display:inline-block}[data-widget=inploi-chatbot] .inline{display:inline}[data-widget=inploi-chatbot] .flex{display:flex}[data-widget=inploi-chatbot] .inline-flex{display:inline-flex}[data-widget=inploi-chatbot] .table{display:table}[data-widget=inploi-chatbot] .table-row{display:table-row}[data-widget=inploi-chatbot] .flow-root{display:flow-root}[data-widget=inploi-chatbot] .grid{display:grid}[data-widget=inploi-chatbot] .inline-grid{display:inline-grid}[data-widget=inploi-chatbot] .contents{display:contents}[data-widget=inploi-chatbot] .list-item{display:list-item}[data-widget=inploi-chatbot] .\\!hidden{display:none!important}[data-widget=inploi-chatbot] .hidden{display:none}[data-widget=inploi-chatbot] .h-1{height:.25rem}[data-widget=inploi-chatbot] .h-1\\.5{height:.375rem}[data-widget=inploi-chatbot] .h-16{height:4rem}[data-widget=inploi-chatbot] .h-4{height:1rem}[data-widget=inploi-chatbot] .h-48{height:12rem}[data-widget=inploi-chatbot] .h-8{height:2rem}[data-widget=inploi-chatbot] .h-\\[3px\\]{height:3px}[data-widget=inploi-chatbot] .h-\\[var\\(--content-height\\)\\]{height:var(--content-height)}[data-widget=inploi-chatbot] .h-\\[var\\(--header-height\\)\\]{height:var(--header-height)}[data-widget=inploi-chatbot] .h-full{height:100%}[data-widget=inploi-chatbot] .max-h-\\[calc\\(8lh\\+1rem\\)\\]{max-height:calc(8lh + 1rem)}[data-widget=inploi-chatbot] .max-h-full{max-height:100%}[data-widget=inploi-chatbot] .min-h-\\[36px\\]{min-height:36px}[data-widget=inploi-chatbot] .min-h-\\[calc\\(1lh\\+1rem\\)\\]{min-height:calc(1lh + 1rem)}[data-widget=inploi-chatbot] .w-1{width:.25rem}[data-widget=inploi-chatbot] .w-1\\.5{width:.375rem}[data-widget=inploi-chatbot] .w-16{width:4rem}[data-widget=inploi-chatbot] .w-24{width:6rem}[data-widget=inploi-chatbot] .w-4{width:1rem}[data-widget=inploi-chatbot] .w-64{width:16rem}[data-widget=inploi-chatbot] .w-8{width:2rem}[data-widget=inploi-chatbot] .w-full{width:100%}[data-widget=inploi-chatbot] .min-w-0{min-width:0px}[data-widget=inploi-chatbot] .min-w-\\[2rem\\]{min-width:2rem}[data-widget=inploi-chatbot] .max-w-\\[450px\\]{max-width:450px}[data-widget=inploi-chatbot] .max-w-\\[min\\(100\\%\\,24rem\\)\\]{max-width:min(100%,24rem)}[data-widget=inploi-chatbot] .max-w-\\[var\\(--radix-popover-content-available-width\\)\\]{max-width:var(--radix-popover-content-available-width)}[data-widget=inploi-chatbot] .max-w-full{max-width:100%}[data-widget=inploi-chatbot] .flex-1{flex:1 1 0%}[data-widget=inploi-chatbot] .flex-none{flex:none}[data-widget=inploi-chatbot] .flex-shrink{flex-shrink:1}[data-widget=inploi-chatbot] .flex-shrink-0{flex-shrink:0}[data-widget=inploi-chatbot] .shrink{flex-shrink:1}[data-widget=inploi-chatbot] .flex-grow,[data-widget=inploi-chatbot] .grow{flex-grow:1}[data-widget=inploi-chatbot] .border-collapse{border-collapse:collapse}[data-widget=inploi-chatbot] .translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .scale-75{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}[data-widget=inploi-chatbot] .animate-bounce{animation:bounce 1s infinite}@keyframes bubble-in{0%{transform:translateY(100%) scale(.8);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}[data-widget=inploi-chatbot] .animate-bubble-in{animation:bubble-in .3s cubic-bezier(.34,1.56,.64,1)}@keyframes maximise{0%{transform:translateY(50%) scaleX(.7)}to{transform:translateY(0)}}[data-widget=inploi-chatbot] .animate-maximise{animation:maximise .4s cubic-bezier(.16,1,.3,1)}@keyframes slide-in-bottom{0%{transform:translateY(-100%) scaleX(.82)}to{transform:translateY(0)}}[data-widget=inploi-chatbot] .animate-slide-in-bottom{animation:slide-in-bottom .3s cubic-bezier(.175,.885,.32,1.275)}[data-widget=inploi-chatbot] .cursor-pointer{cursor:pointer}[data-widget=inploi-chatbot] .select-none{-moz-user-select:none;-webkit-user-select:none;user-select:none}[data-widget=inploi-chatbot] .select-text{-moz-user-select:text;-webkit-user-select:text;user-select:text}[data-widget=inploi-chatbot] .resize-y{resize:vertical}[data-widget=inploi-chatbot] .resize{resize:both}[data-widget=inploi-chatbot] .appearance-none{-moz-appearance:none;-webkit-appearance:none;appearance:none}[data-widget=inploi-chatbot] .flex-col{flex-direction:column}[data-widget=inploi-chatbot] .flex-wrap{flex-wrap:wrap}[data-widget=inploi-chatbot] .items-center{align-items:center}[data-widget=inploi-chatbot] .items-stretch{align-items:stretch}[data-widget=inploi-chatbot] .justify-end{justify-content:flex-end}[data-widget=inploi-chatbot] .justify-center{justify-content:center}[data-widget=inploi-chatbot] .gap-0{gap:0px}[data-widget=inploi-chatbot] .gap-1{gap:.25rem}[data-widget=inploi-chatbot] .gap-1\\.5{gap:.375rem}[data-widget=inploi-chatbot] .gap-2{gap:.5rem}[data-widget=inploi-chatbot] .gap-2\\.5{gap:.625rem}[data-widget=inploi-chatbot] .gap-3{gap:.75rem}[data-widget=inploi-chatbot] .gap-4{gap:1rem}[data-widget=inploi-chatbot] .gap-px{gap:1px}[data-widget=inploi-chatbot] .overflow-hidden{overflow:hidden}[data-widget=inploi-chatbot] .overflow-y-auto{overflow-y:auto}[data-widget=inploi-chatbot] .overflow-y-scroll{overflow-y:scroll}[data-widget=inploi-chatbot] .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-widget=inploi-chatbot] .text-ellipsis{text-overflow:ellipsis}[data-widget=inploi-chatbot] .whitespace-nowrap{white-space:nowrap}[data-widget=inploi-chatbot] .break-words{overflow-wrap:break-word}[data-widget=inploi-chatbot] .rounded{border-radius:.25rem}[data-widget=inploi-chatbot] .rounded-2xl{border-radius:1rem}[data-widget=inploi-chatbot] .rounded-3xl{border-radius:1.5rem}[data-widget=inploi-chatbot] .rounded-\\[18px\\]{border-radius:18px}[data-widget=inploi-chatbot] .rounded-full{border-radius:9999px}[data-widget=inploi-chatbot] .rounded-lg{border-radius:.5rem}[data-widget=inploi-chatbot] .rounded-md{border-radius:.375rem}[data-widget=inploi-chatbot] .rounded-xl{border-radius:.75rem}[data-widget=inploi-chatbot] .rounded-b-3xl{border-bottom-right-radius:1.5rem;border-bottom-left-radius:1.5rem}[data-widget=inploi-chatbot] .rounded-l-full{border-top-left-radius:9999px;border-bottom-left-radius:9999px}[data-widget=inploi-chatbot] .rounded-r-full{border-top-right-radius:9999px;border-bottom-right-radius:9999px}[data-widget=inploi-chatbot] .rounded-bl-md{border-bottom-left-radius:.375rem}[data-widget=inploi-chatbot] .rounded-br-md{border-bottom-right-radius:.375rem}[data-widget=inploi-chatbot] .border{border-width:1px}[data-widget=inploi-chatbot] .border-b{border-bottom-width:1px}[data-widget=inploi-chatbot] .border-t{border-top-width:1px}[data-widget=inploi-chatbot] .border-solid{border-style:solid}[data-widget=inploi-chatbot] .border-dashed{border-style:dashed}[data-widget=inploi-chatbot] .border-accent-9{border-color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .border-divider{border-color:var(--i-color-divider)}[data-widget=inploi-chatbot] .border-neutral-5{border-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .border-neutral-8{border-color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .border-transparent{border-color:transparent}[data-widget=inploi-chatbot] .border-b-neutral-3{border-bottom-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .border-b-neutral-5{border-bottom-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .border-b-transparent{border-bottom-color:transparent}[data-widget=inploi-chatbot] .bg-accent-1{background-color:var(--i-color-a-1)}[data-widget=inploi-chatbot] .bg-accent-3{background-color:var(--i-color-a-3)}[data-widget=inploi-chatbot] .bg-accent-9{background-color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .bg-bubble-weak-bg{background-color:var(--i-bubble-weak-bg)}[data-widget=inploi-chatbot] .bg-lowest{background-color:var(--i-color-lowest)}[data-widget=inploi-chatbot] .bg-neutral-1{background-color:var(--i-color-n-1)}[data-widget=inploi-chatbot] .bg-neutral-2{background-color:var(--i-color-n-2)}[data-widget=inploi-chatbot] .bg-neutral-3{background-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .bg-statusbar{background-color:var(--i-status-bar-bg)}[data-widget=inploi-chatbot] .bg-transparent{background-color:transparent}[data-widget=inploi-chatbot] .bg-none{background-image:none}[data-widget=inploi-chatbot] .p-1{padding:.25rem}[data-widget=inploi-chatbot] .p-1\\.5{padding:.375rem}[data-widget=inploi-chatbot] .p-10{padding:2.5rem}[data-widget=inploi-chatbot] .p-11{padding:2.75rem}[data-widget=inploi-chatbot] .p-12{padding:3rem}[data-widget=inploi-chatbot] .p-2{padding:.5rem}[data-widget=inploi-chatbot] .p-2\\.5{padding:.625rem}[data-widget=inploi-chatbot] .p-3{padding:.75rem}[data-widget=inploi-chatbot] .p-4{padding:1rem}[data-widget=inploi-chatbot] .p-5{padding:1.25rem}[data-widget=inploi-chatbot] .p-6{padding:1.5rem}[data-widget=inploi-chatbot] .p-7{padding:1.75rem}[data-widget=inploi-chatbot] .p-8{padding:2rem}[data-widget=inploi-chatbot] .p-9{padding:2.25rem}[data-widget=inploi-chatbot] .px-1{padding-left:.25rem;padding-right:.25rem}[data-widget=inploi-chatbot] .px-1\\.5{padding-left:.375rem;padding-right:.375rem}[data-widget=inploi-chatbot] .px-2{padding-left:.5rem;padding-right:.5rem}[data-widget=inploi-chatbot] .px-2\\.5{padding-left:.625rem;padding-right:.625rem}[data-widget=inploi-chatbot] .px-3{padding-left:.75rem;padding-right:.75rem}[data-widget=inploi-chatbot] .px-4{padding-left:1rem;padding-right:1rem}[data-widget=inploi-chatbot] .px-5{padding-left:1.25rem;padding-right:1.25rem}[data-widget=inploi-chatbot] .py-0{padding-top:0;padding-bottom:0}[data-widget=inploi-chatbot] .py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}[data-widget=inploi-chatbot] .py-1{padding-top:.25rem;padding-bottom:.25rem}[data-widget=inploi-chatbot] .py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}[data-widget=inploi-chatbot] .py-2{padding-top:.5rem;padding-bottom:.5rem}[data-widget=inploi-chatbot] .py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}[data-widget=inploi-chatbot] .py-3{padding-top:.75rem;padding-bottom:.75rem}[data-widget=inploi-chatbot] .py-\\[6px\\]{padding-top:6px;padding-bottom:6px}[data-widget=inploi-chatbot] .pb-2{padding-bottom:.5rem}[data-widget=inploi-chatbot] .pb-6{padding-bottom:1.5rem}[data-widget=inploi-chatbot] .pl-1{padding-left:.25rem}[data-widget=inploi-chatbot] .pl-1\\.5{padding-left:.375rem}[data-widget=inploi-chatbot] .pl-2{padding-left:.5rem}[data-widget=inploi-chatbot] .pl-2\\.5{padding-left:.625rem}[data-widget=inploi-chatbot] .pl-3{padding-left:.75rem}[data-widget=inploi-chatbot] .pl-4{padding-left:1rem}[data-widget=inploi-chatbot] .pr-1{padding-right:.25rem}[data-widget=inploi-chatbot] .pr-16{padding-right:4rem}[data-widget=inploi-chatbot] .pr-2{padding-right:.5rem}[data-widget=inploi-chatbot] .pr-2\\.5{padding-right:.625rem}[data-widget=inploi-chatbot] .pr-3{padding-right:.75rem}[data-widget=inploi-chatbot] .pr-4{padding-right:1rem}[data-widget=inploi-chatbot] .pt-2{padding-top:.5rem}[data-widget=inploi-chatbot] .pt-2\\.5{padding-top:.625rem}[data-widget=inploi-chatbot] .pt-3{padding-top:.75rem}[data-widget=inploi-chatbot] .pt-5{padding-top:1.25rem}[data-widget=inploi-chatbot] .pt-\\[calc\\(var\\(--header-height\\)\\+1rem\\)\\]{padding-top:calc(var(--header-height) + 1rem)}[data-widget=inploi-chatbot] .text-center{text-align:center}[data-widget=inploi-chatbot] .text-right{text-align:right}[data-widget=inploi-chatbot] .text-justify{text-align:justify}[data-widget=inploi-chatbot] .text-\\[10px\\]{font-size:10px}[data-widget=inploi-chatbot] .text-\\[11px\\]{font-size:11px}[data-widget=inploi-chatbot] .text-base{font-size:1rem;line-height:1.5rem}[data-widget=inploi-chatbot] .text-sm{font-size:.875rem;line-height:1.25rem}[data-widget=inploi-chatbot] .text-xs{font-size:.75rem;line-height:1rem}[data-widget=inploi-chatbot] .font-bold{font-weight:700}[data-widget=inploi-chatbot] .font-medium{font-weight:500}[data-widget=inploi-chatbot] .font-semibold{font-weight:600}[data-widget=inploi-chatbot] .uppercase{text-transform:uppercase}[data-widget=inploi-chatbot] .lowercase{text-transform:lowercase}[data-widget=inploi-chatbot] .capitalize{text-transform:capitalize}[data-widget=inploi-chatbot] .italic{font-style:italic}[data-widget=inploi-chatbot] .ordinal{--tw-ordinal: ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}[data-widget=inploi-chatbot] .leading-3{line-height:.75rem}[data-widget=inploi-chatbot] .leading-snug{line-height:1.375}[data-widget=inploi-chatbot] .leading-tight{line-height:1.25}[data-widget=inploi-chatbot] .tracking-\\[-0\\.01em\\]{letter-spacing:-.01em}[data-widget=inploi-chatbot] .tracking-tight{letter-spacing:-.025em}[data-widget=inploi-chatbot] .tracking-wide{letter-spacing:.025em}[data-widget=inploi-chatbot] .tracking-widest{letter-spacing:.1em}[data-widget=inploi-chatbot] .text-\\[\\#4CAF50\\]{--tw-text-opacity: 1;color:rgb(76 175 80 / var(--tw-text-opacity))}[data-widget=inploi-chatbot] .text-\\[\\#FFC107\\]{--tw-text-opacity: 1;color:rgb(255 193 7 / var(--tw-text-opacity))}[data-widget=inploi-chatbot] .text-accent-1{color:var(--i-color-a-1)}[data-widget=inploi-chatbot] .text-accent-10{color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .text-accent-11{color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .text-accent-12{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .text-accent-9{color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .text-error-11{color:var(--i-color-e-11)}[data-widget=inploi-chatbot] .text-error-9{color:var(--i-color-e-9)}[data-widget=inploi-chatbot] .text-interactive-copy{color:var(--i-interactive-copy)}[data-widget=inploi-chatbot] .text-neutral-10{color:var(--i-color-n-10)}[data-widget=inploi-chatbot] .text-neutral-11{color:var(--i-color-n-11)}[data-widget=inploi-chatbot] .text-neutral-12{color:var(--i-color-n-12)}[data-widget=inploi-chatbot] .text-neutral-6{color:var(--i-color-n-6)}[data-widget=inploi-chatbot] .text-neutral-8{color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .text-neutral-9{color:var(--i-color-n-9)}[data-widget=inploi-chatbot] .text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}[data-widget=inploi-chatbot] .underline{text-decoration-line:underline}[data-widget=inploi-chatbot] .no-underline{text-decoration-line:none}[data-widget=inploi-chatbot] .underline-offset-2{text-underline-offset:2px}[data-widget=inploi-chatbot] .underline-offset-4{text-underline-offset:4px}[data-widget=inploi-chatbot] .caret-accent-9{caret-color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .opacity-0{opacity:0}[data-widget=inploi-chatbot] .shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-\\[0_0_0_1px\\]{--tw-shadow: 0 0 0 1px;--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-surface-lg{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 6px 4px 0px oklch(0% 0 0 / .02), 0px 11px 4px 0px oklch(0% 0 0 / .01), 0px 32px 24px -12px oklch(0% 0 0 / .06);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color), 0px 11px 4px 0px var(--tw-shadow-color), 0px 32px 24px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-surface-md{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 6px 4px 0px oklch(0% 0 0 / .02), 0px 6px 4px 0px oklch(0% 0 0 / .01);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-surface-sm{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 4px 4px 0px oklch(0% 0 0 / .02);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 4px 4px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-bubble-strong-shadow{--tw-shadow-color: var(--i-bubble-strong-shadow);--tw-shadow: var(--tw-shadow-colored)}[data-widget=inploi-chatbot] .outline-none{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .outline{outline-style:solid}[data-widget=inploi-chatbot] .outline-1{outline-width:1px}[data-widget=inploi-chatbot] .outline-2{outline-width:2px}[data-widget=inploi-chatbot] .outline-accent-4{outline-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .outline-bubble-weak{outline-color:var(--i-bubble-weak-outline)}[data-widget=inploi-chatbot] .outline-divider{outline-color:var(--i-color-divider)}[data-widget=inploi-chatbot] .outline-neutral-3{outline-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .outline-neutral-6{outline-color:var(--i-color-n-6)}[data-widget=inploi-chatbot] .ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .ring-accent-6{--tw-ring-color: var(--i-color-a-6)}[data-widget=inploi-chatbot] .ring-divider{--tw-ring-color: var(--i-color-divider)}[data-widget=inploi-chatbot] .ring-lowest{--tw-ring-color: var(--i-color-lowest)}[data-widget=inploi-chatbot] .ring-neutral-4{--tw-ring-color: var(--i-color-n-4)}[data-widget=inploi-chatbot] .ring-neutral-5{--tw-ring-color: var(--i-color-n-5)}[data-widget=inploi-chatbot] .ring-transparent{--tw-ring-color: transparent}[data-widget=inploi-chatbot] .ring-offset-\\[1\\.5px\\]{--tw-ring-offset-width: 1.5px}[data-widget=inploi-chatbot] .ring-offset-neutral-1{--tw-ring-offset-color: var(--i-color-n-1)}[data-widget=inploi-chatbot] .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .drop-shadow-\\[0_1\\.5px_var\\(--i-color-n-1\\)\\]{--tw-drop-shadow: drop-shadow(0 1.5px var(--i-color-n-1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .backdrop-blur-md{--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}[data-widget=inploi-chatbot] .backdrop-blur-xl{--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}[data-widget=inploi-chatbot] .backdrop-saturate-150{--tw-backdrop-saturate: saturate(1.5);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}[data-widget=inploi-chatbot] .backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}[data-widget=inploi-chatbot] .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .transition-\\[background\\,color\\,border-color\\,box-shadow\\]{transition-property:background,color,border-color,box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .duration-100{transition-duration:.1s}[data-widget=inploi-chatbot] .duration-1000{transition-duration:1s}[data-widget=inploi-chatbot] .duration-300{transition-duration:.3s}[data-widget=inploi-chatbot] .duration-700{transition-duration:.7s}[data-widget=inploi-chatbot] .ease-expo-out{transition-timing-function:cubic-bezier(.16,1,.3,1)}[data-widget=inploi-chatbot] .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}[data-widget=inploi-chatbot] .will-change-\\[height\\]{will-change:height}[data-widget=inploi-chatbot] .will-change-\\[transform\\,opacity\\]{will-change:transform,opacity}[data-widget=inploi-chatbot] .text-wrap-balance{text-wrap:balance}[data-widget=inploi-chatbot] .fr{outline:none}[data-widget=inploi-chatbot] .fr:focus{outline:none}[data-widget=inploi-chatbot] .fr:focus-visible{outline:none;--tw-ring-offset-width: 1px;--tw-ring-offset-color: var(--i-color-lowest);--tw-ring-opacity: 1;--tw-ring-color: var(--i-color-a-9);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .gutter-stable{scrollbar-gutter:stable}[data-widget=inploi-chatbot] .hide-scrollbars::-webkit-scrollbar{display:none}[data-widget=inploi-chatbot] .hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}[data-widget=inploi-chatbot] .touch-hitbox:before{content:"";position:absolute;display:block;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-height:44px;min-width:44px;z-index:9999}[data-widget=inploi-chatbot] .\\[-webkit-outer-spin-button\\:none\\]{-webkit-outer-spin-button:none}[data-widget=inploi-chatbot] .\\[a-zA-Z0-9-_\\:\\.\\$\\@\\?\\]{a-z-a--z0-9-_:.$@?}[data-widget=inploi-chatbot] .\\[grid-template-columns\\:min-content_1fr\\]{grid-template-columns:min-content 1fr}[data-widget=inploi-chatbot] .\\[text-wrap\\:pretty\\]{text-wrap:pretty}[data-widget=inploi-chatbot] .selection\\:bg-accent-4 *::-moz-selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-accent-4 *::selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-transparent *::-moz-selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:bg-transparent *::selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:text-accent-12 *::-moz-selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .selection\\:text-accent-12 *::selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .selection\\:bg-accent-4::-moz-selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-accent-4::selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-transparent::-moz-selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:bg-transparent::selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:text-accent-12::-moz-selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .selection\\:text-accent-12::selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-10::-moz-placeholder{color:var(--i-color-n-10)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-10::placeholder{color:var(--i-color-n-10)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-8::-moz-placeholder{color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-8::placeholder{color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .first-of-type\\:rounded-l-lg:first-of-type{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}[data-widget=inploi-chatbot] .last-of-type\\:rounded-r-lg:last-of-type{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}[data-widget=inploi-chatbot] .autofill\\:shadow-\\[inset_0_0_0_1000px_hsl\\(210_16\\.7\\%_97\\.6\\%\\)\\]:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px hsl(210 16.7% 97.6%);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:shadow-\\[inset_0_0_0_1000px_hsl\\(210_16\\.7\\%_97\\.6\\%\\)\\]:autofill{--tw-shadow: inset 0 0 0 1000px hsl(210 16.7% 97.6%);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-2\\)\\]:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-2);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-2\\)\\]:autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-2);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:\\[-webkit-text-fill-color\\:var\\(--i-color-a-11\\)\\]:-webkit-autofill{-webkit-text-fill-color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .autofill\\:\\[-webkit-text-fill-color\\:var\\(--i-color-a-11\\)\\]:autofill{-webkit-text-fill-color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .focus-within\\:bg-neutral-5:focus-within{background-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .focus-within\\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .focus-within\\:outline-accent-7:focus-within{outline-color:var(--i-color-a-7)}[data-widget=inploi-chatbot] .hover\\:z-10:hover{z-index:10}[data-widget=inploi-chatbot] .hover\\:scale-\\[1\\.02\\]:hover{--tw-scale-x: 1.02;--tw-scale-y: 1.02;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .hover\\:border-accent-10:hover{border-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .hover\\:border-neutral-5:hover{border-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .hover\\:bg-accent-10:hover{background-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .hover\\:bg-interactive-bg-hover:hover{background-color:var(--i-interactive-bg-hover)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-2:hover{background-color:var(--i-color-n-2)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-3:hover{background-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-4:hover{background-color:var(--i-color-n-4)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-5:hover{background-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .hover\\:text-accent-11:hover{color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .hover\\:text-interactive-copy-hover:hover{color:var(--i-interactive-copy-hover)}[data-widget=inploi-chatbot] .hover\\:text-neutral-12:hover{color:var(--i-color-n-12)}[data-widget=inploi-chatbot] .hover\\:underline:hover{text-decoration-line:underline}[data-widget=inploi-chatbot] .hover\\:ring-accent-8:hover{--tw-ring-color: var(--i-color-a-8)}[data-widget=inploi-chatbot] .focus\\:z-20:focus{z-index:20}[data-widget=inploi-chatbot] .focus\\:bg-neutral-5:focus{background-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .focus\\:shadow-\\[0_0_0_2px\\]:focus{--tw-shadow: 0 0 0 2px;--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .autofill\\:focus\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-1\\)\\]:focus:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-1);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:focus\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-1\\)\\]:focus:autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-1);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .focus-visible\\:bg-neutral-3:focus-visible{background-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .focus-visible\\:outline-2:focus-visible{outline-width:2px}[data-widget=inploi-chatbot] .focus-visible\\:outline-accent-7:focus-visible{outline-color:var(--i-color-a-7)}[data-widget=inploi-chatbot] .focus-visible\\:outline-accent-8:focus-visible{outline-color:var(--i-color-a-8)}[data-widget=inploi-chatbot] .focus-visible\\:ring-4:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}[data-widget=inploi-chatbot] .active\\:scale-\\[\\.97\\]:active{--tw-scale-x: .97;--tw-scale-y: .97;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .active\\:border-submit-bg-active:active{border-color:var(--i-submit-button-bg-active)}[data-widget=inploi-chatbot] .active\\:bg-accent-10:active{background-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .active\\:bg-accent-2:active{background-color:var(--i-color-a-2)}[data-widget=inploi-chatbot] .active\\:bg-interactive-bg-active:active{background-color:var(--i-interactive-bg-active)}[data-widget=inploi-chatbot] .active\\:bg-submit-bg-active:active{background-color:var(--i-submit-button-bg-active)}[data-widget=inploi-chatbot] .active\\:text-accent-10:active{color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .active\\:text-accent-11:active{color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .active\\:text-interactive-copy-active:active{color:var(--i-interactive-copy-active)}[data-widget=inploi-chatbot] .active\\:outline-neutral-8:active{outline-color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .active\\:ring-2:active{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .active\\:ring-accent-7:active{--tw-ring-color: var(--i-color-a-7)}[data-widget=inploi-chatbot] .active\\:ring-offset-2:active{--tw-ring-offset-width: 2px}[data-widget=inploi-chatbot] .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}[data-widget=inploi-chatbot] .disabled\\:opacity-50:disabled{opacity:.5}[data-widget=inploi-chatbot] .peer:checked~.peer-checked\\:bg-accent-2{background-color:var(--i-color-a-2)}[data-widget=inploi-chatbot] .peer:checked~.peer-checked\\:text-accent-9{color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .peer:checked~.peer-checked\\:outline-accent-7{outline-color:var(--i-color-a-7)}[data-widget=inploi-chatbot] .peer:focus-visible~.peer-focus-visible\\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .peer:focus-visible~.peer-focus-visible\\:ring-accent-9{--tw-ring-color: var(--i-color-a-9)}[data-widget=inploi-chatbot] .peer:focus-visible~.peer-focus-visible\\:ring-offset-accent-7{--tw-ring-offset-color: var(--i-color-a-7)}[data-widget=inploi-chatbot] .group[aria-pressed=true] .group-aria-\\[pressed\\=true\\]\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (pointer: coarse){[data-widget=inploi-chatbot] .pointer-coarse\\:touch-hitbox\\:\\:before:before{content:"";position:absolute;display:block;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-height:44px;min-width:44px;z-index:9999}}[data-widget=inploi-chatbot] .\\[\\&\\:has\\(\\+\\*\\>input\\:focus\\)\\]\\:text-neutral-11:has(+*>input:focus){color:var(--i-color-n-11)}[data-widget=inploi-chatbot] .\\[\\&\\:has\\(\\.view-switch\\:active\\)\\]\\:scale-\\[0\\.98\\]:has(.view-switch:active){--tw-scale-x: .98;--tw-scale-y: .98;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes fade-in{0%{opacity:0}to{opacity:1}}[data-widget=inploi-chatbot] dialog::backdrop{animation:fade-in .5s cubic-bezier(.16,1,.3,1) both}[data-widget=inploi-chatbot] dialog::backdrop{background-color:var(--i-overlay-bg)}
|
|
3103
|
+
`, Mr = "inploi-chatbot", Fr = `[data-widget='${Mr}']`, fl = () => ({
|
|
3104
|
+
getOrCreateChatbotElement: () => {
|
|
3105
|
+
const t = document.querySelector(Fr);
|
|
3106
|
+
if (t)
|
|
3107
|
+
return document.body.appendChild(t), t;
|
|
3108
|
+
const e = document.createElement("div");
|
|
3109
|
+
return document.body.appendChild(e), e.dataset.widget = Mr, e;
|
|
3110
|
+
}
|
|
3111
|
+
});
|
|
3112
|
+
var wl = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], gl = {
|
|
3113
|
+
light: {
|
|
3114
|
+
1: [98.8, 0.015],
|
|
3115
|
+
2: [97.8, 0.018],
|
|
3116
|
+
3: [95.8, 0.025],
|
|
3117
|
+
4: [92, 0.04],
|
|
3118
|
+
5: [89, 0.05],
|
|
3119
|
+
6: [85, 0.07],
|
|
3120
|
+
7: [80.5, 0.08],
|
|
3121
|
+
8: [74, 0.11],
|
|
3122
|
+
9: [60, 0.22],
|
|
3123
|
+
10: [56, 0.23],
|
|
3124
|
+
11: [50, 0.19],
|
|
3125
|
+
12: [25, 0.18]
|
|
3126
|
+
},
|
|
3127
|
+
dark: {
|
|
3128
|
+
1: [19, 0.015],
|
|
3129
|
+
2: [21, 0.018],
|
|
3130
|
+
3: [25.5, 0.055],
|
|
3131
|
+
4: [29.3, 0.084],
|
|
3132
|
+
5: [33.5, 0.098],
|
|
3133
|
+
6: [39.05, 0.107],
|
|
3134
|
+
7: [45, 0.11],
|
|
3135
|
+
8: [55, 0.13],
|
|
3136
|
+
9: [60, 0.22],
|
|
3137
|
+
10: [67, 0.18],
|
|
3138
|
+
11: [79.3, 0.12],
|
|
3139
|
+
12: [95, 0.04]
|
|
3140
|
+
}
|
|
3141
|
+
}, bl = (t, e = 1, a) => (r) => {
|
|
3142
|
+
const [o, i] = gl[a][r];
|
|
3143
|
+
return "oklch(" + o + "% " + i * e + " " + t + ")";
|
|
3144
|
+
}, ne = (t) => {
|
|
3145
|
+
const e = bl(t.hue, t.chroma, t.mode);
|
|
3146
|
+
return Object.fromEntries(
|
|
3147
|
+
wl.map((a) => [t.prefix + a, t.transform(e(a))])
|
|
3148
|
+
);
|
|
3149
|
+
}, se = (t) => t, vl = (t) => {
|
|
3150
|
+
const e = Object.keys(t).flatMap((a) => {
|
|
3151
|
+
const r = t[a];
|
|
3152
|
+
return typeof r == "object" && r !== null ? Object.keys(r).map((o) => {
|
|
3153
|
+
const i = r[o];
|
|
3154
|
+
return [`${String(a)}.${o}`, i];
|
|
3155
|
+
}) : [[a, r]];
|
|
3156
|
+
});
|
|
3157
|
+
return Object.fromEntries(e);
|
|
3158
|
+
}, At = (t) => !!t && typeof t == "object" && !Array.isArray(t), $e = (t, ...e) => {
|
|
3159
|
+
if (!e.length)
|
|
3160
|
+
return t;
|
|
3161
|
+
const a = e.shift();
|
|
3162
|
+
if (At(t) && At(a))
|
|
3163
|
+
for (const r in a) {
|
|
3164
|
+
const o = a[r];
|
|
3165
|
+
if (At(o)) {
|
|
3166
|
+
t[r] || Object.assign(t, { [r]: {} });
|
|
3167
|
+
const i = t[r];
|
|
3168
|
+
At(i) && $e(i, o);
|
|
3169
|
+
} else
|
|
3170
|
+
Object.assign(t, { [r]: a[r] });
|
|
3171
|
+
}
|
|
3172
|
+
return $e(t, ...e);
|
|
3173
|
+
}, _l = (t) => {
|
|
3174
|
+
function e(a, r) {
|
|
3175
|
+
const o = [t.prefix, r.toString().replace(/\./g, "-")].join("");
|
|
3176
|
+
return a === "declaration" ? `--${o}` : `var(--${o})`;
|
|
3177
|
+
}
|
|
3178
|
+
return e;
|
|
3179
|
+
}, ml = () => ({
|
|
3180
|
+
core: (t) => ({
|
|
3181
|
+
semantic: (e) => ({
|
|
3182
|
+
component: (a) => ({
|
|
3183
|
+
from: (r) => {
|
|
3184
|
+
const { theme: o, getToken: i } = r, n = (h) => i("reference", h.toString()), c = t({ theme: o }), l = e({ theme: o, core: n, raw: { core: c } }), d = a({
|
|
3185
|
+
theme: o,
|
|
3186
|
+
core: n,
|
|
3187
|
+
semantic: n,
|
|
3188
|
+
raw: { core: c, semantic: l }
|
|
3189
|
+
}), u = vl($e(c, l, d)), s = ([h, g], p) => {
|
|
3190
|
+
const b = [p, h].filter(Boolean).join(".");
|
|
3191
|
+
return typeof g == "object" ? Object.entries(g).flatMap((m) => s(m, b)) : [[r.getToken("declaration", b), g]];
|
|
3192
|
+
};
|
|
3193
|
+
return {
|
|
3194
|
+
values: u,
|
|
3195
|
+
declarations: Object.fromEntries(Object.entries(u).flatMap((h) => s(h))),
|
|
3196
|
+
ref: (h) => i("reference", h.toString())
|
|
3197
|
+
};
|
|
3198
|
+
}
|
|
3199
|
+
})
|
|
3200
|
+
})
|
|
3201
|
+
})
|
|
3202
|
+
});
|
|
3203
|
+
const [ce, le, Da] = ["oklch(0% 0 0)", "oklch(100% 0 0)", "transparent"], yl = ml().core(({
|
|
3204
|
+
theme: t
|
|
3205
|
+
}) => ({
|
|
3206
|
+
color: {
|
|
3207
|
+
black: ce,
|
|
3208
|
+
white: le,
|
|
3209
|
+
lowest: t.mode === "light" ? le : ce,
|
|
3210
|
+
highest: t.mode === "light" ? ce : le,
|
|
3211
|
+
...ne({
|
|
3212
|
+
prefix: "a-",
|
|
3213
|
+
hue: t.hue,
|
|
3214
|
+
chroma: t.chroma,
|
|
3215
|
+
mode: t.mode,
|
|
3216
|
+
transform: se
|
|
3217
|
+
}),
|
|
3218
|
+
...ne({
|
|
3219
|
+
prefix: "n-",
|
|
3220
|
+
hue: t.hue,
|
|
3221
|
+
chroma: 0.05,
|
|
3222
|
+
mode: t.mode,
|
|
3223
|
+
transform: se
|
|
3224
|
+
}),
|
|
3225
|
+
...ne({
|
|
3226
|
+
prefix: "e-",
|
|
3227
|
+
hue: 20,
|
|
3228
|
+
chroma: t.chroma,
|
|
3229
|
+
mode: t.mode,
|
|
3230
|
+
transform: se
|
|
3231
|
+
})
|
|
3232
|
+
},
|
|
3233
|
+
typography: {}
|
|
3234
|
+
})).semantic(({
|
|
3235
|
+
core: t,
|
|
3236
|
+
raw: e,
|
|
3237
|
+
theme: a
|
|
3238
|
+
}) => {
|
|
3239
|
+
const r = (o, i) => e.core.color[o].replace(")", ` / ${i})`);
|
|
3240
|
+
return {
|
|
3241
|
+
"font-family": {
|
|
3242
|
+
body: "inherit",
|
|
3243
|
+
headings: "inherit"
|
|
3244
|
+
},
|
|
3245
|
+
"font-style": {
|
|
3246
|
+
body: "normal",
|
|
3247
|
+
headings: "normal"
|
|
3248
|
+
},
|
|
3249
|
+
"font-weight-body": "normal",
|
|
3250
|
+
"font-weight-headings": "normal",
|
|
3251
|
+
"radius-app": "1.5rem",
|
|
3252
|
+
"radius-interactive": "1.5rem",
|
|
3253
|
+
color: {
|
|
3254
|
+
divider: r("n-8", a.mode === "dark" ? 0.4 : 0.2)
|
|
3255
|
+
},
|
|
3256
|
+
"copy-body": t("color.n-12"),
|
|
3257
|
+
"copy-headings": t("color.n-12"),
|
|
3258
|
+
interactive: {
|
|
3259
|
+
copy: t("color.n-11"),
|
|
3260
|
+
"copy-hover": t("color.n-12"),
|
|
3261
|
+
"copy-active": t("color.n-12"),
|
|
3262
|
+
bg: Da,
|
|
3263
|
+
"bg-hover": r("n-10", 0.4),
|
|
3264
|
+
"bg-active": r("n-10", 0.5)
|
|
3265
|
+
}
|
|
3266
|
+
};
|
|
3267
|
+
}).component(({
|
|
3268
|
+
raw: t,
|
|
3269
|
+
theme: e,
|
|
3270
|
+
semantic: a,
|
|
3271
|
+
core: r
|
|
3272
|
+
}) => {
|
|
3273
|
+
const o = (i, n) => t.core.color[i].replace(")", ` / ${n})`);
|
|
3274
|
+
return {
|
|
3275
|
+
app: {
|
|
3276
|
+
bg: r(e.mode === "dark" ? "color.n-1" : "color.n-2")
|
|
3277
|
+
},
|
|
3278
|
+
overlay: {
|
|
3279
|
+
bg: o("black", 0.4)
|
|
3280
|
+
},
|
|
3281
|
+
bubble: {
|
|
3282
|
+
"weak-bg": r(e.mode === "dark" ? "color.n-3" : "color.lowest"),
|
|
3283
|
+
"weak-outline": a("color.divider"),
|
|
3284
|
+
"strong-shadow": o("a-9", 0.05)
|
|
3285
|
+
},
|
|
3286
|
+
"status-bar": {
|
|
3287
|
+
bg: o("n-2", 0.8),
|
|
3288
|
+
"bg-button": Da,
|
|
3289
|
+
"bg-button-hover": o("n-10", 0.4),
|
|
3290
|
+
"bg-button-active": o("n-10", 0.5)
|
|
3291
|
+
},
|
|
3292
|
+
"submit-button": {
|
|
3293
|
+
"bg-active": r(e.mode === "dark" ? "color.a-8" : "color.a-11")
|
|
3294
|
+
}
|
|
3295
|
+
};
|
|
3296
|
+
}), xl = _l({
|
|
3297
|
+
prefix: "i-"
|
|
3298
|
+
}), kl = (t) => {
|
|
3299
|
+
const e = yl.from({
|
|
3300
|
+
theme: t,
|
|
3301
|
+
getToken: xl
|
|
3302
|
+
}), a = Object.entries(e.declarations).map(([r, o]) => `${r}: ${o};`);
|
|
3303
|
+
return `${Fr} {
|
|
3304
|
+
${a.concat(a).join(`
|
|
3305
|
+
`)}
|
|
3306
|
+
}`;
|
|
3307
|
+
}, Aa = ({
|
|
3308
|
+
context: t,
|
|
3309
|
+
schema: e,
|
|
3310
|
+
logger: a
|
|
3311
|
+
}) => {
|
|
3312
|
+
if (e)
|
|
3313
|
+
for (const r in e) {
|
|
3314
|
+
const o = e[r];
|
|
3315
|
+
if (!o)
|
|
3316
|
+
continue;
|
|
3317
|
+
const i = _s(t, r, null);
|
|
3318
|
+
if (o.required && i === null) {
|
|
3319
|
+
const n = `Configuration error in context: ${r} is required`;
|
|
3320
|
+
throw a.error(n), new Error(n);
|
|
3321
|
+
}
|
|
3322
|
+
switch (o.type) {
|
|
3323
|
+
case "number":
|
|
3324
|
+
if (typeof i != "number")
|
|
3325
|
+
throw new Error(`Configuration error in context: ${r} is not a number`);
|
|
3326
|
+
break;
|
|
3327
|
+
case "string":
|
|
3328
|
+
if (typeof i != "string")
|
|
3329
|
+
throw new Error(`Configuration error in context: ${r} is not a string`);
|
|
3330
|
+
break;
|
|
3331
|
+
default:
|
|
3332
|
+
o.type;
|
|
3333
|
+
}
|
|
3334
|
+
}
|
|
3335
|
+
}, Wl = ({
|
|
3336
|
+
_internal_domManager: t = fl(),
|
|
3337
|
+
theme: e,
|
|
3338
|
+
terms: a,
|
|
3339
|
+
feedback: r
|
|
3340
|
+
}) => Br(({
|
|
3341
|
+
apiClient: o,
|
|
3342
|
+
logger: i,
|
|
3343
|
+
analytics: n
|
|
3344
|
+
}) => {
|
|
3345
|
+
let c = !1;
|
|
3346
|
+
const l = Nc({
|
|
3347
|
+
locale: void 0,
|
|
3348
|
+
overrides: a ?? {}
|
|
3349
|
+
}), d = () => {
|
|
3350
|
+
var h;
|
|
3351
|
+
if (typeof window > "u")
|
|
3352
|
+
return;
|
|
3353
|
+
const u = [A("style", {
|
|
3354
|
+
id: "inploi-chatbot-styles"
|
|
3355
|
+
}, hl), A("style", {
|
|
3356
|
+
id: "inploi-chatbot-theme"
|
|
3357
|
+
}, kl(e))], s = t.getOrCreateChatbotElement();
|
|
3358
|
+
if (dt(A(M, {}, [u, A(dl, {
|
|
3359
|
+
apiClient: o,
|
|
3360
|
+
logger: i,
|
|
3361
|
+
analytics: n,
|
|
3362
|
+
params: {
|
|
3363
|
+
theme: e,
|
|
3364
|
+
terms: a,
|
|
3365
|
+
feedback: r
|
|
3366
|
+
}
|
|
3367
|
+
})]), s), r) {
|
|
3368
|
+
const g = r.plugin({
|
|
3369
|
+
apiClient: o,
|
|
3370
|
+
logger: i,
|
|
3371
|
+
analytics: n
|
|
3372
|
+
}), p = s.querySelector("dialog");
|
|
3373
|
+
if (!p)
|
|
3374
|
+
throw new Error("Couldn't find feedback host");
|
|
3375
|
+
g.render({
|
|
3376
|
+
key: "chatbot-header",
|
|
3377
|
+
size: "sm",
|
|
3378
|
+
theme: {
|
|
3379
|
+
accent: {
|
|
3380
|
+
chroma: e.chroma ?? 1,
|
|
3381
|
+
hue: e.hue
|
|
3382
|
+
},
|
|
3383
|
+
positive: {
|
|
3384
|
+
hue: 180,
|
|
3385
|
+
chroma: 1
|
|
3386
|
+
},
|
|
3387
|
+
negative: {
|
|
3388
|
+
hue: 33,
|
|
3389
|
+
chroma: 1
|
|
3390
|
+
},
|
|
3391
|
+
mode: "light",
|
|
3392
|
+
corners: "rounded",
|
|
3393
|
+
highlights: "stroke"
|
|
3394
|
+
},
|
|
3395
|
+
terms: ((h = r.params) == null ? void 0 : h.terms) ?? {},
|
|
3396
|
+
host: p
|
|
3397
|
+
});
|
|
3398
|
+
}
|
|
3399
|
+
c = !0;
|
|
3400
|
+
};
|
|
3401
|
+
return {
|
|
3402
|
+
/** Optionally eagerly renders the interface ahead of needing the chatbot. */
|
|
3403
|
+
prepare: async () => {
|
|
3404
|
+
if (!(typeof window > "u"))
|
|
3405
|
+
try {
|
|
3406
|
+
if (c)
|
|
3407
|
+
return;
|
|
3408
|
+
d(), i.info("Chatbot plugin prepared");
|
|
3409
|
+
} catch (u) {
|
|
3410
|
+
i.error("Error preparing chatbot plugin", u);
|
|
3411
|
+
}
|
|
3412
|
+
},
|
|
3413
|
+
/** Fetches a flow by job ID.
|
|
3414
|
+
* @param jobId - The job ID to fetch the flow for. This is the job ID according to the **ATS**, and not the inploi job ID.
|
|
3415
|
+
*/
|
|
3416
|
+
fetchFlowByJobId: async (u, s) => {
|
|
3417
|
+
const h = new URLSearchParams({
|
|
3418
|
+
id_type: (s == null ? void 0 : s.idType) === "inploi" ? "internal" : "external"
|
|
3419
|
+
});
|
|
3420
|
+
return o.fetch([`/flow/job/${u}`, h.toString()].filter(Boolean).join("?")).then((g) => {
|
|
3421
|
+
const p = ra(pl, g);
|
|
3422
|
+
return {
|
|
3423
|
+
flow: p.flow,
|
|
3424
|
+
title: l("applying_for", {
|
|
3425
|
+
title: p.job.title
|
|
3426
|
+
}),
|
|
3427
|
+
flowKeys: [p.job.id, ...(s == null ? void 0 : s.flowKeys) ?? []],
|
|
3428
|
+
job: {
|
|
3429
|
+
id: p.job.id,
|
|
3430
|
+
id_type: "external"
|
|
3431
|
+
},
|
|
3432
|
+
...s
|
|
3433
|
+
};
|
|
3434
|
+
});
|
|
3435
|
+
},
|
|
3436
|
+
fetchFlowById: async (u, s) => o.fetch(`/flow/id/${u}`).then((h) => {
|
|
3437
|
+
var p;
|
|
3438
|
+
const g = ra(ul, h);
|
|
3439
|
+
return {
|
|
3440
|
+
flow: g.flow,
|
|
3441
|
+
title: "Chatbot",
|
|
3442
|
+
flowKeys: (s == null ? void 0 : s.flowKeys) ?? [],
|
|
3443
|
+
...s,
|
|
3444
|
+
analytics: {
|
|
3445
|
+
customProperties: {
|
|
3446
|
+
flow_id: g.flow.id,
|
|
3447
|
+
flow_version: g.flow.version,
|
|
3448
|
+
...(p = s == null ? void 0 : s.analytics) == null ? void 0 : p.customProperties
|
|
3449
|
+
}
|
|
3450
|
+
}
|
|
3451
|
+
};
|
|
3452
|
+
}),
|
|
3453
|
+
open: async (u) => {
|
|
3454
|
+
if (!(typeof window > "u"))
|
|
3455
|
+
try {
|
|
3456
|
+
S.cancelCurrentFlow(), S.viewState$.value = "maximised", c || d(), u instanceof Promise ? (S.current$.value = {
|
|
3457
|
+
state: "loading"
|
|
3458
|
+
}, u.then(async (s) => {
|
|
3459
|
+
Aa({
|
|
3460
|
+
context: s.context || {},
|
|
3461
|
+
schema: s.flow.context_schema,
|
|
3462
|
+
logger: i
|
|
3463
|
+
}), S.startFlow(s);
|
|
3464
|
+
}).catch((s) => {
|
|
3465
|
+
const h = s instanceof Error ? s.message : l("unknown_error");
|
|
3466
|
+
S.current$.value = {
|
|
3467
|
+
state: "error",
|
|
3468
|
+
error: h
|
|
3469
|
+
};
|
|
3470
|
+
})) : (Aa({
|
|
3471
|
+
context: u.context || {},
|
|
3472
|
+
schema: u.flow.context_schema,
|
|
3473
|
+
logger: i
|
|
3474
|
+
}), S.startFlow(u));
|
|
3475
|
+
} catch (s) {
|
|
3476
|
+
i.error("Error starting flow", s);
|
|
3477
|
+
}
|
|
3478
|
+
},
|
|
3479
|
+
close: async () => {
|
|
3480
|
+
typeof window > "u" || (S.cancelCurrentFlow(), i.info("Closed flow from an external source"));
|
|
3481
|
+
}
|
|
3482
|
+
};
|
|
3483
|
+
});
|
|
3484
|
+
export {
|
|
3485
|
+
Vl as A,
|
|
3486
|
+
ra as B,
|
|
3487
|
+
Cl as C,
|
|
3488
|
+
Ul as D,
|
|
3489
|
+
Hl as E,
|
|
3490
|
+
gt as F,
|
|
3491
|
+
El as G,
|
|
3492
|
+
Il as H,
|
|
3493
|
+
zl as I,
|
|
3494
|
+
Al as J,
|
|
3495
|
+
As as K,
|
|
3496
|
+
Ts as L,
|
|
3497
|
+
aa as M,
|
|
3498
|
+
Me as N,
|
|
3499
|
+
Nl as O,
|
|
3500
|
+
Dl as P,
|
|
3501
|
+
Tl as Q,
|
|
3502
|
+
Ml as R,
|
|
3503
|
+
jl as S,
|
|
3504
|
+
Fl as T,
|
|
3505
|
+
il as U,
|
|
3506
|
+
je as V,
|
|
3507
|
+
Wl as W,
|
|
3508
|
+
nt as _,
|
|
3509
|
+
Bl as a,
|
|
3510
|
+
Er as b,
|
|
3511
|
+
Rl as c,
|
|
3512
|
+
Rr as d,
|
|
3513
|
+
ze as e,
|
|
3514
|
+
cr as f,
|
|
3515
|
+
_s as g,
|
|
3516
|
+
dr as h,
|
|
3517
|
+
Kl as i,
|
|
3518
|
+
Et as j,
|
|
3519
|
+
Ll as k,
|
|
3520
|
+
Fs as l,
|
|
3521
|
+
it as m,
|
|
3522
|
+
Is as n,
|
|
3523
|
+
f as o,
|
|
3524
|
+
pr as p,
|
|
3525
|
+
nr as q,
|
|
3526
|
+
ct as r,
|
|
3527
|
+
S as s,
|
|
3528
|
+
Pl as t,
|
|
3529
|
+
Cr as u,
|
|
3530
|
+
M as v,
|
|
3531
|
+
Ol as w,
|
|
3532
|
+
Ws as x,
|
|
3533
|
+
It as y,
|
|
3534
|
+
ql as z
|
|
3535
|
+
};
|