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