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