@inploi/plugin-chatbot 14.17.3 → 14.18.1

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