@inploi/plugin-chatbot 14.17.2 → 14.18.0

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