@inploi/plugin-chatbot 14.10.3 → 14.10.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
- import { endpoint as Ti, typed as Na, createPlugin as ja, createTalentBankClient as Ma } from "@inploi/sdk";
1
+ import { endpoint as Pi, typed as ja, createPlugin as Ma, createTalentBankClient as Fa } from "@inploi/sdk";
2
2
  var J;
3
- function Pi(t) {
3
+ function Ii(t) {
4
4
  return { lang: (t == null ? void 0 : t.lang) ?? (J == null ? void 0 : J.lang), message: t == null ? void 0 : t.message, abortEarly: (t == null ? void 0 : t.abortEarly) ?? (J == null ? void 0 : J.abortEarly), abortPipeEarly: (t == null ? void 0 : t.abortPipeEarly) ?? (J == null ? void 0 : J.abortPipeEarly) };
5
5
  }
6
6
  var te;
7
- function Fa(t) {
7
+ function La(t) {
8
8
  return te == null ? void 0 : te.get(t);
9
9
  }
10
10
  var ee;
@@ -12,51 +12,51 @@ function Ba(t) {
12
12
  return ee == null ? void 0 : ee.get(t);
13
13
  }
14
14
  var ie;
15
- function La(t, e) {
15
+ function Ra(t, e) {
16
16
  var i;
17
17
  return (i = ie == null ? void 0 : ie.get(t)) == null ? void 0 : i.get(e);
18
18
  }
19
- function Ii(t) {
19
+ function zi(t) {
20
20
  var i, a;
21
21
  let e = typeof t;
22
22
  return e === "string" ? `"${t}"` : e === "number" || e === "bigint" || e === "boolean" ? `${t}` : e === "object" || e === "function" ? (t && ((a = (i = Object.getPrototypeOf(t)) == null ? void 0 : i.constructor) == null ? void 0 : a.name)) ?? "null" : e;
23
23
  }
24
24
  function V(t, e, i, a, o) {
25
- let n = o && "input" in o ? o.input : i.value, r = (o == null ? void 0 : o.expected) ?? t.expects ?? null, s = (o == null ? void 0 : o.received) ?? Ii(n), c = { kind: t.kind, type: t.type, input: n, expected: r, received: s, message: `Invalid ${e}: ${r ? `Expected ${r} but r` : "R"}eceived ${s}`, requirement: t.requirement, path: o == null ? void 0 : o.path, issues: o == null ? void 0 : o.issues, lang: a.lang, abortEarly: a.abortEarly, abortPipeEarly: a.abortPipeEarly }, d = t.kind === "schema", u = (o == null ? void 0 : o.message) ?? t.message ?? La(t.reference, c.lang) ?? (d ? Ba(c.lang) : null) ?? a.message ?? Fa(c.lang);
26
- u !== void 0 && (c.message = typeof u == "function" ? u(c) : u), d && (i.typed = !1), i.issues ? i.issues.push(c) : i.issues = [c];
25
+ let n = o && "input" in o ? o.input : i.value, r = (o == null ? void 0 : o.expected) ?? t.expects ?? null, s = (o == null ? void 0 : o.received) ?? zi(n), l = { kind: t.kind, type: t.type, input: n, expected: r, received: s, message: `Invalid ${e}: ${r ? `Expected ${r} but r` : "R"}eceived ${s}`, requirement: t.requirement, path: o == null ? void 0 : o.path, issues: o == null ? void 0 : o.issues, lang: a.lang, abortEarly: a.abortEarly, abortPipeEarly: a.abortPipeEarly }, d = t.kind === "schema", u = (o == null ? void 0 : o.message) ?? t.message ?? Ra(t.reference, l.lang) ?? (d ? Ba(l.lang) : null) ?? a.message ?? La(l.lang);
26
+ u !== void 0 && (l.message = typeof u == "function" ? u(l) : u), d && (i.typed = !1), i.issues ? i.issues.push(l) : i.issues = [l];
27
27
  }
28
28
  function F(t) {
29
29
  return { version: 1, vendor: "valibot", validate(e) {
30
- return t["~run"]({ value: e }, Pi());
30
+ return t["~run"]({ value: e }, Ii());
31
31
  } };
32
32
  }
33
- function Ra(t, e) {
33
+ function Ha(t, e) {
34
34
  return Object.hasOwn(t, e) && e !== "__proto__" && e !== "prototype" && e !== "constructor";
35
35
  }
36
- function Ha(t, e) {
36
+ function Ua(t, e) {
37
37
  let i = [...new Set(t)];
38
38
  return i.length > 1 ? `(${i.join(` ${e} `)})` : i[0] ?? "never";
39
39
  }
40
- function zi(t) {
41
- return { kind: "transformation", type: "transform", reference: zi, async: !1, operation: t, "~run"(e) {
40
+ function Ai(t) {
41
+ return { kind: "transformation", type: "transform", reference: Ai, async: !1, operation: t, "~run"(e) {
42
42
  return e.value = this.operation(e.value), e;
43
43
  } };
44
44
  }
45
- function Ua(t, e, i) {
45
+ function Wa(t, e, i) {
46
46
  return typeof t.fallback == "function" ? t.fallback(e, i) : t.fallback;
47
47
  }
48
48
  function Oe(t, e, i) {
49
49
  return typeof t.default == "function" ? t.default(e, i) : t.default;
50
50
  }
51
- function Di() {
52
- return { kind: "schema", type: "any", reference: Di, expects: "any", async: !1, get "~standard"() {
51
+ function Oi() {
52
+ return { kind: "schema", type: "any", reference: Oi, expects: "any", async: !1, get "~standard"() {
53
53
  return F(this);
54
54
  }, "~run"(t) {
55
55
  return t.typed = !0, t;
56
56
  } };
57
57
  }
58
- function Oi(t, e) {
59
- return { kind: "schema", type: "array", reference: Oi, expects: "Array", async: !1, item: t, message: e, get "~standard"() {
58
+ function Di(t, e) {
59
+ return { kind: "schema", type: "array", reference: Di, expects: "Array", async: !1, item: t, message: e, get "~standard"() {
60
60
  return F(this);
61
61
  }, "~run"(i, a) {
62
62
  var n;
@@ -64,39 +64,39 @@ function Oi(t, e) {
64
64
  if (Array.isArray(o)) {
65
65
  i.typed = !0, i.value = [];
66
66
  for (let r = 0; r < o.length; r++) {
67
- let s = o[r], c = this.item["~run"]({ value: s }, a);
68
- if (c.issues) {
67
+ let s = o[r], l = this.item["~run"]({ value: s }, a);
68
+ if (l.issues) {
69
69
  let d = { type: "array", origin: "value", input: o, key: r, value: s };
70
- for (let u of c.issues)
70
+ for (let u of l.issues)
71
71
  u.path ? u.path.unshift(d) : u.path = [d], (n = i.issues) == null || n.push(u);
72
- if (i.issues || (i.issues = c.issues), a.abortEarly) {
72
+ if (i.issues || (i.issues = l.issues), a.abortEarly) {
73
73
  i.typed = !1;
74
74
  break;
75
75
  }
76
76
  }
77
- c.typed || (i.typed = !1), i.value.push(c.value);
77
+ l.typed || (i.typed = !1), i.value.push(l.value);
78
78
  }
79
79
  } else
80
80
  V(this, "type", i, a);
81
81
  return i;
82
82
  } };
83
83
  }
84
- function Ae(t) {
85
- return { kind: "schema", type: "boolean", reference: Ae, expects: "boolean", async: !1, message: t, get "~standard"() {
84
+ function De(t) {
85
+ return { kind: "schema", type: "boolean", reference: De, expects: "boolean", async: !1, message: t, get "~standard"() {
86
86
  return F(this);
87
87
  }, "~run"(e, i) {
88
88
  return typeof e.value == "boolean" ? e.typed = !0 : V(this, "type", e, i), e;
89
89
  } };
90
90
  }
91
91
  function ct(t, e) {
92
- return { kind: "schema", type: "literal", reference: ct, expects: Ii(t), async: !1, literal: t, message: e, get "~standard"() {
92
+ return { kind: "schema", type: "literal", reference: ct, expects: zi(t), async: !1, literal: t, message: e, get "~standard"() {
93
93
  return F(this);
94
94
  }, "~run"(i, a) {
95
95
  return i.value === this.literal ? i.typed = !0 : V(this, "type", i, a), i;
96
96
  } };
97
97
  }
98
- function Ai(t) {
99
- return { kind: "schema", type: "null", reference: Ai, expects: "null", async: !1, message: t, get "~standard"() {
98
+ function Ni(t) {
99
+ return { kind: "schema", type: "null", reference: Ni, expects: "null", async: !1, message: t, get "~standard"() {
100
100
  return F(this);
101
101
  }, "~run"(e, i) {
102
102
  return e.value === null ? e.typed = !0 : V(this, "type", e, i), e;
@@ -109,15 +109,15 @@ function Bt(t, e) {
109
109
  return i.value === null && (this.default !== void 0 && (i.value = Oe(this, i, a)), i.value === null) ? (i.typed = !0, i) : this.wrapped["~run"](i, a);
110
110
  } };
111
111
  }
112
- function Lt(t) {
113
- return { kind: "schema", type: "number", reference: Lt, expects: "number", async: !1, message: t, get "~standard"() {
112
+ function Rt(t) {
113
+ return { kind: "schema", type: "number", reference: Rt, expects: "number", async: !1, message: t, get "~standard"() {
114
114
  return F(this);
115
115
  }, "~run"(e, i) {
116
116
  return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 : V(this, "type", e, i), e;
117
117
  } };
118
118
  }
119
- function P(t, e) {
120
- return { kind: "schema", type: "object", reference: P, expects: "Object", async: !1, entries: t, message: e, get "~standard"() {
119
+ function T(t, e) {
120
+ return { kind: "schema", type: "object", reference: T, expects: "Object", async: !1, entries: t, message: e, get "~standard"() {
121
121
  return F(this);
122
122
  }, "~run"(i, a) {
123
123
  var n;
@@ -127,11 +127,11 @@ function P(t, e) {
127
127
  for (let r in this.entries) {
128
128
  let s = this.entries[r];
129
129
  if (r in o || (s.type === "exact_optional" || s.type === "optional" || s.type === "nullish") && s.default !== void 0) {
130
- let c = r in o ? o[r] : Oe(s), d = s["~run"]({ value: c }, a);
130
+ let l = r in o ? o[r] : Oe(s), d = s["~run"]({ value: l }, a);
131
131
  if (d.issues) {
132
- let u = { type: "object", origin: "value", input: o, key: r, value: c };
133
- for (let l of d.issues)
134
- l.path ? l.path.unshift(u) : l.path = [u], (n = i.issues) == null || n.push(l);
132
+ let u = { type: "object", origin: "value", input: o, key: r, value: l };
133
+ for (let c of d.issues)
134
+ c.path ? c.path.unshift(u) : c.path = [u], (n = i.issues) == null || n.push(c);
135
135
  if (i.issues || (i.issues = d.issues), a.abortEarly) {
136
136
  i.typed = !1;
137
137
  break;
@@ -139,7 +139,7 @@ function P(t, e) {
139
139
  }
140
140
  d.typed || (i.typed = !1), i.value[r] = d.value;
141
141
  } else if (s.fallback !== void 0)
142
- i.value[r] = Ua(s);
142
+ i.value[r] = Wa(s);
143
143
  else if (s.type !== "exact_optional" && s.type !== "optional" && s.type !== "nullish" && (V(this, "key", i, a, { input: void 0, expected: `"${r}"`, path: [{ type: "object", origin: "key", input: o, key: r, value: o[r] }] }), a.abortEarly))
144
144
  break;
145
145
  }
@@ -155,45 +155,45 @@ function M(t, e) {
155
155
  return i.value === void 0 && (this.default !== void 0 && (i.value = Oe(this, i, a)), i.value === void 0) ? (i.typed = !0, i) : this.wrapped["~run"](i, a);
156
156
  } };
157
157
  }
158
- function Ni(t, e, i) {
159
- return { kind: "schema", type: "record", reference: Ni, expects: "Object", async: !1, key: t, value: e, message: i, get "~standard"() {
158
+ function ji(t, e, i) {
159
+ return { kind: "schema", type: "record", reference: ji, expects: "Object", async: !1, key: t, value: e, message: i, get "~standard"() {
160
160
  return F(this);
161
161
  }, "~run"(a, o) {
162
162
  var r, s;
163
163
  let n = a.value;
164
164
  if (n && typeof n == "object") {
165
165
  a.typed = !0, a.value = {};
166
- for (let c in n)
167
- if (Ra(n, c)) {
168
- let d = n[c], u = this.key["~run"]({ value: c }, o);
166
+ for (let l in n)
167
+ if (Ha(n, l)) {
168
+ let d = n[l], u = this.key["~run"]({ value: l }, o);
169
169
  if (u.issues) {
170
- let w = { type: "object", origin: "key", input: n, key: c, value: d };
171
- for (let g of u.issues)
172
- g.path = [w], (r = a.issues) == null || r.push(g);
170
+ let w = { type: "object", origin: "key", input: n, key: l, value: d };
171
+ for (let v of u.issues)
172
+ v.path = [w], (r = a.issues) == null || r.push(v);
173
173
  if (a.issues || (a.issues = u.issues), o.abortEarly) {
174
174
  a.typed = !1;
175
175
  break;
176
176
  }
177
177
  }
178
- let l = this.value["~run"]({ value: d }, o);
179
- if (l.issues) {
180
- let w = { type: "object", origin: "value", input: n, key: c, value: d };
181
- for (let g of l.issues)
182
- g.path ? g.path.unshift(w) : g.path = [w], (s = a.issues) == null || s.push(g);
183
- if (a.issues || (a.issues = l.issues), o.abortEarly) {
178
+ let c = this.value["~run"]({ value: d }, o);
179
+ if (c.issues) {
180
+ let w = { type: "object", origin: "value", input: n, key: l, value: d };
181
+ for (let v of c.issues)
182
+ v.path ? v.path.unshift(w) : v.path = [w], (s = a.issues) == null || s.push(v);
183
+ if (a.issues || (a.issues = c.issues), o.abortEarly) {
184
184
  a.typed = !1;
185
185
  break;
186
186
  }
187
187
  }
188
- (!u.typed || !l.typed) && (a.typed = !1), u.typed && (a.value[u.value] = l.value);
188
+ (!u.typed || !c.typed) && (a.typed = !1), u.typed && (a.value[u.value] = c.value);
189
189
  }
190
190
  } else
191
191
  V(this, "type", a, o);
192
192
  return a;
193
193
  } };
194
194
  }
195
- function L(t) {
196
- return { kind: "schema", type: "string", reference: L, expects: "string", async: !1, message: t, get "~standard"() {
195
+ function R(t) {
196
+ return { kind: "schema", type: "string", reference: R, expects: "string", async: !1, message: t, get "~standard"() {
197
197
  return F(this);
198
198
  }, "~run"(e, i) {
199
199
  return typeof e.value == "string" ? e.typed = !0 : V(this, "type", e, i), e;
@@ -207,21 +207,21 @@ function qe(t) {
207
207
  return e;
208
208
  }
209
209
  function Ne(t, e) {
210
- return { kind: "schema", type: "union", reference: Ne, expects: Ha(t.map((i) => i.expects), "|"), async: !1, options: t, message: e, get "~standard"() {
210
+ return { kind: "schema", type: "union", reference: Ne, expects: Ua(t.map((i) => i.expects), "|"), async: !1, options: t, message: e, get "~standard"() {
211
211
  return F(this);
212
212
  }, "~run"(i, a) {
213
213
  let o, n, r;
214
214
  for (let s of this.options) {
215
- let c = s["~run"]({ value: i.value }, a);
216
- if (c.typed)
217
- if (c.issues)
218
- n ? n.push(c) : n = [c];
215
+ let l = s["~run"]({ value: i.value }, a);
216
+ if (l.typed)
217
+ if (l.issues)
218
+ n ? n.push(l) : n = [l];
219
219
  else {
220
- o = c;
220
+ o = l;
221
221
  break;
222
222
  }
223
223
  else
224
- r ? r.push(c) : r = [c];
224
+ r ? r.push(l) : r = [l];
225
225
  }
226
226
  if (o)
227
227
  return o;
@@ -244,7 +244,7 @@ function St() {
244
244
  return t.typed = !0, t;
245
245
  } };
246
246
  }
247
- function Wa(...t) {
247
+ function Va(...t) {
248
248
  return { ...t[0], pipe: t, get "~standard"() {
249
249
  return F(this);
250
250
  }, "~run"(e, i) {
@@ -259,28 +259,28 @@ function Wa(...t) {
259
259
  return e;
260
260
  } };
261
261
  }
262
- function Zt(t, e, i) {
263
- let a = t["~run"]({ value: e }, Pi(i));
262
+ function Gt(t, e, i) {
263
+ let a = t["~run"]({ value: e }, Ii(i));
264
264
  return { typed: a.typed, success: !a.issues, output: a.value, issues: a.issues };
265
265
  }
266
- var Va = (t) => ({ ok: !0, err: !1, val: t }), Ya = (t) => ({ err: !0, ok: !1, val: t }), je = (t) => t.filter((e) => (e.type === "question-boolean" || e.type === "question-enum") && !!e.data.preApply);
267
- function Ka(t, e, i) {
266
+ var Ya = (t) => ({ ok: !0, err: !1, val: t }), Ka = (t) => ({ err: !0, ok: !1, val: t }), je = (t) => t.filter((e) => (e.type === "question-boolean" || e.type === "question-enum") && !!e.data.preApply);
267
+ function qa(t, e, i) {
268
268
  var r, s;
269
- let a = t.find((c) => c.type === "pre-apply-result");
269
+ let a = t.find((l) => l.type === "pre-apply-result");
270
270
  if (!a)
271
271
  return;
272
272
  let o = (r = e[a.data.participationKey]) == null ? void 0 : r.value, n = {};
273
273
  if (o === !0)
274
- for (let c of je(t)) {
275
- let d = (s = e[c.data.key]) == null ? void 0 : s.value;
276
- Array.isArray(d) && d.length === 1 && (d = d[0]), (typeof d == "boolean" || typeof d == "string") && (n[c.data.key] = d);
274
+ for (let l of je(t)) {
275
+ let d = (s = e[l.data.key]) == null ? void 0 : s.value;
276
+ Array.isArray(d) && d.length === 1 && (d = d[0]), (typeof d == "boolean" || typeof d == "string") && (n[l.data.key] = d);
277
277
  }
278
278
  return { node_id: a.id, flow_session_id: i, participation: o, answers: n };
279
279
  }
280
280
  function _r(t, e) {
281
- let i = Ka(t, e, ""), a = je(t).map((n) => {
282
- let r = n.data.preApply, s = i == null ? void 0 : i.answers[n.data.key], c = n.type === "question-boolean" ? typeof s == "boolean" : n.data.options.some((d) => d.value === s);
283
- return { key: n.data.key, severity: r.severity, message: r.mismatchMessage, matched: c && s === r.expectedValue, valid: c };
281
+ let i = qa(t, e, ""), a = je(t).map((n) => {
282
+ let r = n.data.preApply, s = i == null ? void 0 : i.answers[n.data.key], l = n.type === "question-boolean" ? typeof s == "boolean" : n.data.options.some((d) => d.value === s);
283
+ return { key: n.data.key, severity: r.severity, message: r.mismatchMessage, matched: l && s === r.expectedValue, valid: l };
284
284
  }), o = (i == null ? void 0 : i.participation) === !1 ? "skipped" : (i == null ? void 0 : i.participation) === !0 && a.length > 0 && a.every((n) => n.valid) ? "completed" : "unavailable";
285
285
  return { status: o, hasHardConcerns: o === "completed" ? a.some((n) => !n.matched && n.severity === "hard") : null, hasAdvisoryConcerns: o === "completed" ? a.some((n) => !n.matched && n.severity === "advisory") : null, answers: o === "completed" ? a : [] };
286
286
  }
@@ -294,7 +294,7 @@ var pt = class extends Error {
294
294
  constructor() {
295
295
  super("Aborted");
296
296
  }
297
- }, ji = (t, e) => {
297
+ }, Mi = (t, e) => {
298
298
  if (e.length === 0)
299
299
  return;
300
300
  let i = t;
@@ -311,7 +311,7 @@ var pt = class extends Error {
311
311
  n && (a && !a.has(o) || (i[o] = n.value));
312
312
  }
313
313
  return i;
314
- }, Mi = (t, e) => {
314
+ }, Fi = (t, e) => {
315
315
  let i = new Set(t.flatMap((a) => a.type === "add-submission" ? [a.data.key] : []));
316
316
  return Object.entries(e).some(([a, o]) => o !== void 0 && o.type !== "integration" && !i.has(a));
317
317
  }, kr = ({ key: t, submissions: e }) => {
@@ -324,7 +324,7 @@ var pt = class extends Error {
324
324
  if (t === "$context") {
325
325
  if (!e)
326
326
  return;
327
- let o = ji(a, e);
327
+ let o = Mi(a, e);
328
328
  switch (typeof o) {
329
329
  case "string":
330
330
  return { type: "string", value: o };
@@ -338,58 +338,58 @@ var pt = class extends Error {
338
338
  }
339
339
  }
340
340
  return i[t];
341
- }, qa = (t) => {
341
+ }, Za = (t) => {
342
342
  let e = t.split(".").pop();
343
- return e ? Va(e ? "." + e : "") : Ya("No file extension found");
343
+ return e ? Ya(e ? "." + e : "") : Ka("No file extension found");
344
344
  }, Sr = (t, e) => {
345
345
  if (e.length === 0)
346
346
  return !0;
347
347
  let i = e.map((a) => a.toLowerCase());
348
348
  return t.every((a) => {
349
- let o = qa(a.name);
349
+ let o = Za(a.name);
350
350
  return o.ok && i.includes(o.val.toLowerCase());
351
351
  });
352
- }, Cr = (t) => t <= 1e3 ? `${Math.round(t)}KB` : t < 1e3 * 10 ? `${(t / 1e3).toFixed(1)}MB` : `${Math.round(t / 1e3)}MB`, Er = (t) => typeof t == "string" ? t : `+${t.countryCode} ${t.phoneNumber}`, Za = P({ integration_response: P({ data: P({ redirect_url: L(), message: M(Bt(L())), button_text: M(Bt(L())) }) }) }), Ga = (t) => Zt(Za, t).success, Xa = P({ integration_response: P({ status: M(St()), error: P({ message: L(), data: M(St()) }) }) }), Fi = (t) => Zt(Xa, t).success, Ja = P({ success: ct(!0), integration_response: P({ data: P({ outcome: ct("pending"), message: M(St()) }), error: M(Ai()) }) }), Qa = (t) => {
353
- let e = Zt(Ja, t);
354
- if (!e.success || Ga(t))
352
+ }, Cr = (t) => t <= 1e3 ? `${Math.round(t)}KB` : t < 1e3 * 10 ? `${(t / 1e3).toFixed(1)}MB` : `${Math.round(t / 1e3)}MB`, Er = (t) => typeof t == "string" ? t : `+${t.countryCode} ${t.phoneNumber}`, Ga = T({ integration_response: T({ data: T({ redirect_url: R(), message: M(Bt(R())), button_text: M(Bt(R())) }) }) }), Xa = (t) => Gt(Ga, t).success, Ja = T({ integration_response: T({ status: M(St()), error: T({ message: R(), data: M(St()) }) }) }), Li = (t) => Gt(Ja, t).success, Qa = T({ success: ct(!0), integration_response: T({ data: T({ outcome: ct("pending"), message: M(St()) }), error: M(Ni()) }) }), to = (t) => {
353
+ let e = Gt(Qa, t);
354
+ if (!e.success || Xa(t))
355
355
  return;
356
356
  let { message: i } = e.output.integration_response.data;
357
357
  return typeof i == "string" && i.trim() ? { message: i } : {};
358
358
  };
359
- P({ success: ct(!1), message: M(St()) });
360
- var to = P({ error: ct("Validation failed"), messages: P({}) }), Tr = (t, e) => e === 422 && Zt(to, t).success, Pr = (t, e) => {
361
- if (!Fi(t))
359
+ T({ success: ct(!1), message: M(St()) });
360
+ var eo = T({ error: ct("Validation failed"), messages: T({}) }), Tr = (t, e) => e === 422 && Gt(eo, t).success, Pr = (t, e) => {
361
+ if (!Li(t))
362
362
  return;
363
363
  let i = t.integration_response, a = i.error.data, o = typeof a == "object" && a !== null ? a : {}, n = (h) => typeof o[h] == "string" ? o[h] : void 0, r = (h) => typeof o[h] == "boolean" ? o[h] : void 0, s = (h) => {
364
- let b = o[h];
365
- return Number.isSafeInteger(b) && b >= 0 ? b : void 0;
366
- }, c = (h) => {
367
- let b = n(h), D = b === void 0 ? NaN : Date.parse(b);
368
- return Number.isFinite(D) ? D : void 0;
369
- }, d = typeof i.status == "number" ? i.status : e, u = n("phase"), l = n("verdict"), w = n("code"), g = d === 409 && u === "submit" && l === "confirmed" ? "duplicate" : d === 410 && w === "job_closed" ? "closed" : u === "submit" && l === "unknown" ? "unknown" : void 0;
370
- return { message: i.error.message, status: d, phase: u, providerStatus: s("provider_status"), retryAfterSeconds: s("retry_after_seconds"), retryable: r("retryable"), verdict: l, code: w, reason: n("reason"), maintenanceUntil: c("maintenance_until"), field: n("field"), outcome: g };
371
- }, eo = 3e4, io = 2e4, ao = 6e4, oo = 12e4, no = 6 * 60 * 6e4, Ir = 60 * 6e4, Bi = (t) => {
364
+ let _ = o[h];
365
+ return Number.isSafeInteger(_) && _ >= 0 ? _ : void 0;
366
+ }, l = (h) => {
367
+ let _ = n(h), z = _ === void 0 ? NaN : Date.parse(_);
368
+ return Number.isFinite(z) ? z : void 0;
369
+ }, d = typeof i.status == "number" ? i.status : e, u = n("phase"), c = n("verdict"), w = n("code"), v = d === 409 && u === "submit" && c === "confirmed" ? "duplicate" : d === 410 && w === "job_closed" ? "closed" : u === "submit" && c === "unknown" ? "unknown" : void 0;
370
+ return { message: i.error.message, status: d, phase: u, providerStatus: s("provider_status"), retryAfterSeconds: s("retry_after_seconds"), retryable: r("retryable"), verdict: c, code: w, reason: n("reason"), maintenanceUntil: l("maintenance_until"), field: n("field"), outcome: v };
371
+ }, io = 3e4, ao = 2e4, oo = 6e4, no = 12e4, ro = 6 * 60 * 6e4, Ir = 60 * 6e4, Bi = (t) => {
372
372
  let e = (t == null ? void 0 : t.reason) === "provider_maintenance" ? t.maintenanceUntil : void 0, i = e === void 0 ? 0 : e - Date.now();
373
- return i > 0 && i <= no ? e : void 0;
373
+ return i > 0 && i <= ro ? e : void 0;
374
374
  }, zr = (t) => {
375
375
  if ((t == null ? void 0 : t.reason) !== "provider_maintenance" || t.outcome === "unknown")
376
376
  return;
377
377
  let e = Bi(t);
378
378
  return e === void 0 ? {} : { until: e };
379
- }, Dr = (t, e) => new Intl.DateTimeFormat(e, { hour: "numeric", minute: "2-digit" }).format(t), Or = (t, e) => {
379
+ }, Ar = (t, e) => new Intl.DateTimeFormat(e, { hour: "numeric", minute: "2-digit" }).format(t), Or = (t, e) => {
380
380
  let i = Bi(e);
381
381
  if (i !== void 0)
382
382
  return { waitMs: i - Date.now(), throttles: (t ?? 0) + 1, maintenance: !0 };
383
383
  if (!((e == null ? void 0 : e.reason) === "provider_maintenance" || (e == null ? void 0 : e.retryable) === !0 && (e.providerStatus === 429 || e.providerStatus !== void 0 && e.providerStatus >= 500 || e.phase === "workflow" && e.verdict === "not_submitted")))
384
- return { waitMs: eo };
385
- let a = (t ?? 0) + 1, o = Math.min(a * io, ao), n = (e.retryAfterSeconds ?? 0) * 1e3;
386
- return { waitMs: Math.min(Math.max(o, n), oo), throttles: a };
387
- }, Ar = (t) => (t == null ? void 0 : t.code) === "captcha_failed" && t.verdict === "not_submitted", Nr = (t) => {
388
- if (!Fi(t))
384
+ return { waitMs: io };
385
+ let a = (t ?? 0) + 1, o = Math.min(a * ao, oo), n = (e.retryAfterSeconds ?? 0) * 1e3;
386
+ return { waitMs: Math.min(Math.max(o, n), no), throttles: a };
387
+ }, Dr = (t) => (t == null ? void 0 : t.code) === "captcha_failed" && t.verdict === "not_submitted", Nr = (t) => {
388
+ if (!Li(t))
389
389
  return !1;
390
390
  let e = t.integration_response.error.data;
391
391
  return typeof e == "object" && e !== null && "fallback" in e && e.fallback === "contact";
392
- }, jr = (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", Mr = (t) => (t == null ? void 0 : t.outcome) === "unknown" && t.code === "repeatable_provider_crash", Fr = (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, Br = (t) => {
392
+ }, jr = (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", Mr = (t) => (t == null ? void 0 : t.outcome) === "unknown" && t.code === "repeatable_provider_crash", Fr = (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, Lr = (t) => {
393
393
  if (typeof t != "object" || t === null)
394
394
  return null;
395
395
  let e = t.integration_response;
@@ -402,23 +402,23 @@ var to = P({ error: ct("Validation failed"), messages: P({}) }), Tr = (t, e) =>
402
402
  if (!a && !n)
403
403
  return null;
404
404
  let r = a ? i.data : o.data ?? null;
405
- return { service: i.service ?? "INVALID_SERVICE", response: { status: i.status, payload: r }, ...Qa(t) && { outcome: "pending" } };
406
- }, ro = (t) => {
405
+ return { service: i.service ?? "INVALID_SERVICE", response: { status: i.status, payload: r }, ...to(t) && { outcome: "pending" } };
406
+ }, so = (t) => {
407
407
  if (!/^\d{4}-\d{2}-\d{2}$/.test(t))
408
408
  return !1;
409
409
  let e = /* @__PURE__ */ new Date(`${t}T00:00:00Z`);
410
410
  return Number.isFinite(e.getTime()) && e.toISOString().slice(0, 10) === t;
411
- }, Lr = (t, e) => {
412
- if (!ro(t))
411
+ }, Br = (t, e) => {
412
+ if (!so(t))
413
413
  throw new RangeError("Invalid ISO calendar date");
414
414
  return new Intl.DateTimeFormat(e, { dateStyle: "long", timeZone: "UTC" }).format(/* @__PURE__ */ new Date(`${t}T00:00:00Z`));
415
- }, so = ({ context: t, schema: e, logger: i }) => {
415
+ }, lo = ({ context: t, schema: e, logger: i }) => {
416
416
  if (e)
417
417
  for (let a in e) {
418
418
  let o = e[a];
419
419
  if (!o)
420
420
  continue;
421
- let n = ji(t, a.split("."));
421
+ let n = Mi(t, a.split("."));
422
422
  if (o.required && n == null) {
423
423
  let r = `Configuration error in context: ${a} is required`;
424
424
  throw i.error(r), new Error(r);
@@ -437,30 +437,30 @@ var to = P({ error: ct("Validation failed"), messages: P({}) }), Tr = (t, e) =>
437
437
  o.type;
438
438
  }
439
439
  }
440
- }, Li = Wa(Ne([L(), Lt()]), zi(String)), Ri = P({ id: Li, version: Lt(), build: Lt(), nodes: Oi(Di()), context_schema: M(Bt(Ni(L(), P({ required: Ae(), type: Ne([ct("string"), ct("number")]) })))) }), lo = P({ flow: Ri }), co = P({ company: P({ name: L() }), flow: Ri, job: P({ id: Li, title: L() }), user: M(P({ city: M(L()), country: M(L()), isEU: M(Ae()), continent: M(L()) })) }), uo = (t, e) => ({ id: t.job.id, id_type: (e == null ? void 0 : e.idType) === "internal" && e.id === t.job.id ? "internal" : "external" }), po = Ti({ pathname: "/flow/job/:id", method: "GET", schema: { searchParams: Na(), response: co } }), ho = Ti({ pathname: "/flow/id/:id", method: "GET", schema: { response: lo } }), Tt, f, Hi, Ui, st, Ze, Wi, fe, Vi, ht = {}, Yi = [], fo = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Gt = Array.isArray;
440
+ }, Ri = Va(Ne([R(), Rt()]), Ai(String)), Hi = T({ id: Ri, version: Rt(), build: Rt(), nodes: Di(Oi()), context_schema: M(Bt(ji(R(), T({ required: De(), type: Ne([ct("string"), ct("number")]) })))) }), co = T({ flow: Hi }), uo = T({ company: T({ name: R() }), flow: Hi, job: T({ id: Ri, title: R() }), user: M(T({ city: M(R()), country: M(R()), isEU: M(De()), continent: M(R()) })) }), po = (t, e) => ({ id: t.job.id, id_type: (e == null ? void 0 : e.idType) === "internal" && e.id === t.job.id ? "internal" : "external" }), ho = Pi({ pathname: "/flow/job/:id", method: "GET", schema: { searchParams: ja(), response: uo } }), fo = Pi({ pathname: "/flow/id/:id", method: "GET", schema: { response: co } }), Pt, f, Ui, Wi, st, Ze, Vi, fe, Yi, ht = {}, Ki = [], wo = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Xt = Array.isArray;
441
441
  function Q(t, e) {
442
442
  for (var i in e)
443
443
  t[i] = e[i];
444
444
  return t;
445
445
  }
446
- function Ki(t) {
446
+ function qi(t) {
447
447
  var e = t.parentNode;
448
448
  e && e.removeChild(t);
449
449
  }
450
- function B(t, e, i) {
450
+ function L(t, e, i) {
451
451
  var a, o, n, r = {};
452
452
  for (n in e)
453
453
  n == "key" ? a = e[n] : n == "ref" ? o = e[n] : r[n] = e[n];
454
- if (arguments.length > 2 && (r.children = arguments.length > 3 ? Tt.call(arguments, 2) : i), typeof t == "function" && t.defaultProps != null)
454
+ if (arguments.length > 2 && (r.children = arguments.length > 3 ? Pt.call(arguments, 2) : i), typeof t == "function" && t.defaultProps != null)
455
455
  for (n in t.defaultProps)
456
456
  r[n] === void 0 && (r[n] = t.defaultProps[n]);
457
457
  return xt(t, r, a, o, null);
458
458
  }
459
459
  function xt(t, e, i, a, o) {
460
- var n = { type: t, props: e, key: i, ref: a, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: o ?? ++Hi };
460
+ var n = { type: t, props: e, key: i, ref: a, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: o ?? ++Ui };
461
461
  return o == null && f.vnode != null && f.vnode(n), n;
462
462
  }
463
- function wo() {
463
+ function go() {
464
464
  return { current: null };
465
465
  }
466
466
  function Y(t) {
@@ -469,15 +469,15 @@ function Y(t) {
469
469
  function W(t, e) {
470
470
  this.props = t, this.context = e;
471
471
  }
472
- function Rt(t, e) {
472
+ function Ht(t, e) {
473
473
  if (e == null)
474
- return t.__ ? Rt(t.__, t.__.__k.indexOf(t) + 1) : null;
474
+ return t.__ ? Ht(t.__, t.__.__k.indexOf(t) + 1) : null;
475
475
  for (var i; e < t.__k.length; e++)
476
476
  if ((i = t.__k[e]) != null && i.__e != null)
477
477
  return i.__e;
478
- return typeof t.type == "function" ? Rt(t) : null;
478
+ return typeof t.type == "function" ? Ht(t) : null;
479
479
  }
480
- function qi(t) {
480
+ function Zi(t) {
481
481
  var e, i;
482
482
  if ((t = t.__) != null && t.__c != null) {
483
483
  for (t.__e = t.__c.base = null, e = 0; e < t.__k.length; e++)
@@ -485,68 +485,68 @@ function qi(t) {
485
485
  t.__e = t.__c.base = i.__e;
486
486
  break;
487
487
  }
488
- return qi(t);
488
+ return Zi(t);
489
489
  }
490
490
  }
491
491
  function we(t) {
492
- (!t.__d && (t.__d = !0) && st.push(t) && !Ht.__r++ || Ze !== f.debounceRendering) && ((Ze = f.debounceRendering) || Wi)(Ht);
492
+ (!t.__d && (t.__d = !0) && st.push(t) && !Ut.__r++ || Ze !== f.debounceRendering) && ((Ze = f.debounceRendering) || Vi)(Ut);
493
493
  }
494
- function Ht() {
495
- var t, e, i, a, o, n, r, s, c;
494
+ function Ut() {
495
+ var t, e, i, a, o, n, r, s, l;
496
496
  for (st.sort(fe); t = st.shift(); )
497
- t.__d && (e = st.length, a = void 0, o = void 0, n = void 0, s = (r = (i = t).__v).__e, (c = i.__P) && (a = [], o = [], (n = Q({}, r)).__v = r.__v + 1, Me(c, r, n, i.__n, c.ownerSVGElement !== void 0, r.__h != null ? [s] : null, a, s ?? Rt(r), r.__h, o), Ji(a, r, o), r.__e != s && qi(r)), st.length > e && st.sort(fe));
498
- Ht.__r = 0;
497
+ t.__d && (e = st.length, a = void 0, o = void 0, n = void 0, s = (r = (i = t).__v).__e, (l = i.__P) && (a = [], o = [], (n = Q({}, r)).__v = r.__v + 1, Me(l, r, n, i.__n, l.ownerSVGElement !== void 0, r.__h != null ? [s] : null, a, s ?? Ht(r), r.__h, o), Qi(a, r, o), r.__e != s && Zi(r)), st.length > e && st.sort(fe));
498
+ Ut.__r = 0;
499
499
  }
500
- function Zi(t, e, i, a, o, n, r, s, c, d, u) {
501
- var l, w, g, h, b, D, y, v, _, x, k = 0, I = a && a.__k || Yi, K = I.length, q = K, O = e.length;
502
- for (i.__k = [], l = 0; l < O; l++)
503
- (h = i.__k[l] = (h = e[l]) == null || typeof h == "boolean" || typeof h == "function" ? null : typeof h == "string" || typeof h == "number" || typeof h == "bigint" ? xt(null, h, null, null, h) : Gt(h) ? xt(Y, { children: h }, null, null, null) : h.__b > 0 ? xt(h.type, h.props, h.key, h.ref ? h.ref : null, h.__v) : h) != null && (h.__ = i, h.__b = i.__b + 1, (v = go(h, I, y = l + k, q)) === -1 ? g = ht : (g = I[v] || ht, I[v] = void 0, q--), Me(t, h, g, o, n, r, s, c, d, u), b = h.__e, (w = h.ref) && g.ref != w && (g.ref && Fe(g.ref, null, h), u.push(w, h.__c || b, h)), b != null && (D == null && (D = b), x = !(_ = g === ht || g.__v === null) && v === y, _ ? v == -1 && k-- : v !== y && (v === y + 1 ? (k++, x = !0) : v > y ? q > O - y ? (k += v - y, x = !0) : k-- : k = v < y && v == y - 1 ? v - y : 0), y = l + k, x = x || v == l && !_, typeof h.type != "function" || v === y && g.__k !== h.__k ? typeof h.type == "function" || x ? h.__d !== void 0 ? (c = h.__d, h.__d = void 0) : c = b.nextSibling : c = Xi(t, b, c) : c = Gi(h, c, t), typeof i.type == "function" && (i.__d = c)));
504
- for (i.__e = D, l = K; l--; )
505
- I[l] != null && (typeof i.type == "function" && I[l].__e != null && I[l].__e == i.__d && (i.__d = I[l].__e.nextSibling), Qi(I[l], I[l]));
500
+ function Gi(t, e, i, a, o, n, r, s, l, d, u) {
501
+ var c, w, v, h, _, z, b, g, y, C, P = 0, O = a && a.__k || Ki, K = O.length, q = K, D = e.length;
502
+ for (i.__k = [], c = 0; c < D; c++)
503
+ (h = i.__k[c] = (h = e[c]) == null || typeof h == "boolean" || typeof h == "function" ? null : typeof h == "string" || typeof h == "number" || typeof h == "bigint" ? xt(null, h, null, null, h) : Xt(h) ? xt(Y, { children: h }, null, null, null) : h.__b > 0 ? xt(h.type, h.props, h.key, h.ref ? h.ref : null, h.__v) : h) != null && (h.__ = i, h.__b = i.__b + 1, (g = bo(h, O, b = c + P, q)) === -1 ? v = ht : (v = O[g] || ht, O[g] = void 0, q--), Me(t, h, v, o, n, r, s, l, d, u), _ = h.__e, (w = h.ref) && v.ref != w && (v.ref && Fe(v.ref, null, h), u.push(w, h.__c || _, h)), _ != null && (z == null && (z = _), C = !(y = v === ht || v.__v === null) && g === b, y ? g == -1 && P-- : g !== b && (g === b + 1 ? (P++, C = !0) : g > b ? q > D - b ? (P += g - b, C = !0) : P-- : P = g < b && g == b - 1 ? g - b : 0), b = c + P, C = C || g == c && !y, typeof h.type != "function" || g === b && v.__k !== h.__k ? typeof h.type == "function" || C ? h.__d !== void 0 ? (l = h.__d, h.__d = void 0) : l = _.nextSibling : l = Ji(t, _, l) : l = Xi(h, l, t), typeof i.type == "function" && (i.__d = l)));
504
+ for (i.__e = z, c = K; c--; )
505
+ O[c] != null && (typeof i.type == "function" && O[c].__e != null && O[c].__e == i.__d && (i.__d = O[c].__e.nextSibling), ta(O[c], O[c]));
506
506
  }
507
- function Gi(t, e, i) {
507
+ function Xi(t, e, i) {
508
508
  for (var a, o = t.__k, n = 0; o && n < o.length; n++)
509
- (a = o[n]) && (a.__ = t, e = typeof a.type == "function" ? Gi(a, e, i) : Xi(i, a.__e, e));
509
+ (a = o[n]) && (a.__ = t, e = typeof a.type == "function" ? Xi(a, e, i) : Ji(i, a.__e, e));
510
510
  return e;
511
511
  }
512
512
  function tt(t, e) {
513
- return e = e || [], t == null || typeof t == "boolean" || (Gt(t) ? t.some(function(i) {
513
+ return e = e || [], t == null || typeof t == "boolean" || (Xt(t) ? t.some(function(i) {
514
514
  tt(i, e);
515
515
  }) : e.push(t)), e;
516
516
  }
517
- function Xi(t, e, i) {
517
+ function Ji(t, e, i) {
518
518
  return i == null || i.parentNode !== t ? t.insertBefore(e, null) : e == i && e.parentNode != null || t.insertBefore(e, i), e.nextSibling;
519
519
  }
520
- function go(t, e, i, a) {
521
- var o = t.key, n = t.type, r = i - 1, s = i + 1, c = e[i];
522
- if (c === null || c && o == c.key && n === c.type)
520
+ function bo(t, e, i, a) {
521
+ var o = t.key, n = t.type, r = i - 1, s = i + 1, l = e[i];
522
+ if (l === null || l && o == l.key && n === l.type)
523
523
  return i;
524
- if (a > (c != null ? 1 : 0))
524
+ if (a > (l != null ? 1 : 0))
525
525
  for (; r >= 0 || s < e.length; ) {
526
526
  if (r >= 0) {
527
- if ((c = e[r]) && o == c.key && n === c.type)
527
+ if ((l = e[r]) && o == l.key && n === l.type)
528
528
  return r;
529
529
  r--;
530
530
  }
531
531
  if (s < e.length) {
532
- if ((c = e[s]) && o == c.key && n === c.type)
532
+ if ((l = e[s]) && o == l.key && n === l.type)
533
533
  return s;
534
534
  s++;
535
535
  }
536
536
  }
537
537
  return -1;
538
538
  }
539
- function bo(t, e, i, a, o) {
539
+ function vo(t, e, i, a, o) {
540
540
  var n;
541
541
  for (n in i)
542
- n === "children" || n === "key" || n in e || Ut(t, n, null, i[n], a);
542
+ n === "children" || n === "key" || n in e || Wt(t, n, null, i[n], a);
543
543
  for (n in e)
544
- o && typeof e[n] != "function" || n === "children" || n === "key" || n === "value" || n === "checked" || i[n] === e[n] || Ut(t, n, e[n], i[n], a);
544
+ o && typeof e[n] != "function" || n === "children" || n === "key" || n === "value" || n === "checked" || i[n] === e[n] || Wt(t, n, e[n], i[n], a);
545
545
  }
546
546
  function Ge(t, e, i) {
547
- e[0] === "-" ? t.setProperty(e, i ?? "") : t[e] = i == null ? "" : typeof i != "number" || fo.test(e) ? i : i + "px";
547
+ e[0] === "-" ? t.setProperty(e, i ?? "") : t[e] = i == null ? "" : typeof i != "number" || wo.test(e) ? i : i + "px";
548
548
  }
549
- function Ut(t, e, i, a, o) {
549
+ function Wt(t, e, i, a, o) {
550
550
  var n;
551
551
  t:
552
552
  if (e === "style")
@@ -580,46 +580,46 @@ function Xe(t) {
580
580
  function Je(t) {
581
581
  return this.l[t.type + !0](f.event ? f.event(t) : t);
582
582
  }
583
- function Me(t, e, i, a, o, n, r, s, c, d) {
584
- var u, l, w, g, h, b, D, y, v, _, x, k, I, K, q, O = e.type;
583
+ function Me(t, e, i, a, o, n, r, s, l, d) {
584
+ var u, c, w, v, h, _, z, b, g, y, C, P, O, K, q, D = e.type;
585
585
  if (e.constructor !== void 0)
586
586
  return null;
587
- i.__h != null && (c = i.__h, s = e.__e = i.__e, e.__h = null, n = [s]), (u = f.__b) && u(e);
587
+ i.__h != null && (l = i.__h, s = e.__e = i.__e, e.__h = null, n = [s]), (u = f.__b) && u(e);
588
588
  try {
589
589
  t:
590
- if (typeof O == "function") {
591
- if (y = e.props, v = (u = O.contextType) && a[u.__c], _ = u ? v ? v.props.value : u.__ : a, i.__c ? D = (l = e.__c = i.__c).__ = l.__E : ("prototype" in O && O.prototype.render ? e.__c = l = new O(y, _) : (e.__c = l = new W(y, _), l.constructor = O, l.render = _o), v && v.sub(l), l.props = y, l.state || (l.state = {}), l.context = _, l.__n = a, w = l.__d = !0, l.__h = [], l._sb = []), l.__s == null && (l.__s = l.state), O.getDerivedStateFromProps != null && (l.__s == l.state && (l.__s = Q({}, l.__s)), Q(l.__s, O.getDerivedStateFromProps(y, l.__s))), g = l.props, h = l.state, l.__v = e, w)
592
- O.getDerivedStateFromProps == null && l.componentWillMount != null && l.componentWillMount(), l.componentDidMount != null && l.__h.push(l.componentDidMount);
590
+ if (typeof D == "function") {
591
+ if (b = e.props, g = (u = D.contextType) && a[u.__c], y = u ? g ? g.props.value : u.__ : a, i.__c ? z = (c = e.__c = i.__c).__ = c.__E : ("prototype" in D && D.prototype.render ? e.__c = c = new D(b, y) : (e.__c = c = new W(b, y), c.constructor = D, c.render = mo), g && g.sub(c), c.props = b, c.state || (c.state = {}), c.context = y, c.__n = a, w = c.__d = !0, c.__h = [], c._sb = []), c.__s == null && (c.__s = c.state), D.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = Q({}, c.__s)), Q(c.__s, D.getDerivedStateFromProps(b, c.__s))), v = c.props, h = c.state, c.__v = e, w)
592
+ D.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), c.componentDidMount != null && c.__h.push(c.componentDidMount);
593
593
  else {
594
- if (O.getDerivedStateFromProps == null && y !== g && l.componentWillReceiveProps != null && l.componentWillReceiveProps(y, _), !l.__e && (l.shouldComponentUpdate != null && l.shouldComponentUpdate(y, l.__s, _) === !1 || e.__v === i.__v)) {
595
- for (e.__v !== i.__v && (l.props = y, l.state = l.__s, l.__d = !1), e.__e = i.__e, e.__k = i.__k, e.__k.forEach(function(It) {
596
- It && (It.__ = e);
597
- }), x = 0; x < l._sb.length; x++)
598
- l.__h.push(l._sb[x]);
599
- l._sb = [], l.__h.length && r.push(l);
594
+ if (D.getDerivedStateFromProps == null && b !== v && c.componentWillReceiveProps != null && c.componentWillReceiveProps(b, y), !c.__e && (c.shouldComponentUpdate != null && c.shouldComponentUpdate(b, c.__s, y) === !1 || e.__v === i.__v)) {
595
+ for (e.__v !== i.__v && (c.props = b, c.state = c.__s, c.__d = !1), e.__e = i.__e, e.__k = i.__k, e.__k.forEach(function(zt) {
596
+ zt && (zt.__ = e);
597
+ }), C = 0; C < c._sb.length; C++)
598
+ c.__h.push(c._sb[C]);
599
+ c._sb = [], c.__h.length && r.push(c);
600
600
  break t;
601
601
  }
602
- l.componentWillUpdate != null && l.componentWillUpdate(y, l.__s, _), l.componentDidUpdate != null && l.__h.push(function() {
603
- l.componentDidUpdate(g, h, b);
602
+ c.componentWillUpdate != null && c.componentWillUpdate(b, c.__s, y), c.componentDidUpdate != null && c.__h.push(function() {
603
+ c.componentDidUpdate(v, h, _);
604
604
  });
605
605
  }
606
- if (l.context = _, l.props = y, l.__P = t, l.__e = !1, k = f.__r, I = 0, "prototype" in O && O.prototype.render) {
607
- for (l.state = l.__s, l.__d = !1, k && k(e), u = l.render(l.props, l.state, l.context), K = 0; K < l._sb.length; K++)
608
- l.__h.push(l._sb[K]);
609
- l._sb = [];
606
+ if (c.context = y, c.props = b, c.__P = t, c.__e = !1, P = f.__r, O = 0, "prototype" in D && D.prototype.render) {
607
+ for (c.state = c.__s, c.__d = !1, P && P(e), u = c.render(c.props, c.state, c.context), K = 0; K < c._sb.length; K++)
608
+ c.__h.push(c._sb[K]);
609
+ c._sb = [];
610
610
  } else
611
611
  do
612
- l.__d = !1, k && k(e), u = l.render(l.props, l.state, l.context), l.state = l.__s;
613
- while (l.__d && ++I < 25);
614
- l.state = l.__s, l.getChildContext != null && (a = Q(Q({}, a), l.getChildContext())), w || l.getSnapshotBeforeUpdate == null || (b = l.getSnapshotBeforeUpdate(g, h)), Zi(t, Gt(q = u != null && u.type === Y && u.key == null ? u.props.children : u) ? q : [q], e, i, a, o, n, r, s, c, d), l.base = e.__e, e.__h = null, l.__h.length && r.push(l), D && (l.__E = l.__ = null);
612
+ c.__d = !1, P && P(e), u = c.render(c.props, c.state, c.context), c.state = c.__s;
613
+ while (c.__d && ++O < 25);
614
+ c.state = c.__s, c.getChildContext != null && (a = Q(Q({}, a), c.getChildContext())), w || c.getSnapshotBeforeUpdate == null || (_ = c.getSnapshotBeforeUpdate(v, h)), Gi(t, Xt(q = u != null && u.type === Y && u.key == null ? u.props.children : u) ? q : [q], e, i, a, o, n, r, s, l, d), c.base = e.__e, e.__h = null, c.__h.length && r.push(c), z && (c.__E = c.__ = null);
615
615
  } else
616
- n == null && e.__v === i.__v ? (e.__k = i.__k, e.__e = i.__e) : e.__e = vo(i.__e, e, i, a, o, n, r, c, d);
616
+ n == null && e.__v === i.__v ? (e.__k = i.__k, e.__e = i.__e) : e.__e = _o(i.__e, e, i, a, o, n, r, l, d);
617
617
  (u = f.diffed) && u(e);
618
- } catch (It) {
619
- e.__v = null, (c || n != null) && (e.__e = s, e.__h = !!c, n[n.indexOf(s)] = null), f.__e(It, e, i);
618
+ } catch (zt) {
619
+ e.__v = null, (l || n != null) && (e.__e = s, e.__h = !!l, n[n.indexOf(s)] = null), f.__e(zt, e, i);
620
620
  }
621
621
  }
622
- function Ji(t, e, i) {
622
+ function Qi(t, e, i) {
623
623
  for (var a = 0; a < i.length; a++)
624
624
  Fe(i[a], i[++a], i[++a]);
625
625
  f.__c && f.__c(e, t), t.some(function(o) {
@@ -632,35 +632,35 @@ function Ji(t, e, i) {
632
632
  }
633
633
  });
634
634
  }
635
- function vo(t, e, i, a, o, n, r, s, c) {
636
- var d, u, l, w = i.props, g = e.props, h = e.type, b = 0;
635
+ function _o(t, e, i, a, o, n, r, s, l) {
636
+ var d, u, c, w = i.props, v = e.props, h = e.type, _ = 0;
637
637
  if (h === "svg" && (o = !0), n != null) {
638
- for (; b < n.length; b++)
639
- if ((d = n[b]) && "setAttribute" in d == !!h && (h ? d.localName === h : d.nodeType === 3)) {
640
- t = d, n[b] = null;
638
+ for (; _ < n.length; _++)
639
+ if ((d = n[_]) && "setAttribute" in d == !!h && (h ? d.localName === h : d.nodeType === 3)) {
640
+ t = d, n[_] = null;
641
641
  break;
642
642
  }
643
643
  }
644
644
  if (t == null) {
645
645
  if (h === null)
646
- return document.createTextNode(g);
647
- t = o ? document.createElementNS("http://www.w3.org/2000/svg", h) : document.createElement(h, g.is && g), n = null, s = !1;
646
+ return document.createTextNode(v);
647
+ t = o ? document.createElementNS("http://www.w3.org/2000/svg", h) : document.createElement(h, v.is && v), n = null, s = !1;
648
648
  }
649
649
  if (h === null)
650
- w === g || s && t.data === g || (t.data = g);
650
+ w === v || s && t.data === v || (t.data = v);
651
651
  else {
652
- if (n = n && Tt.call(t.childNodes), u = (w = i.props || ht).dangerouslySetInnerHTML, l = g.dangerouslySetInnerHTML, !s) {
652
+ if (n = n && Pt.call(t.childNodes), u = (w = i.props || ht).dangerouslySetInnerHTML, c = v.dangerouslySetInnerHTML, !s) {
653
653
  if (n != null)
654
- for (w = {}, b = 0; b < t.attributes.length; b++)
655
- w[t.attributes[b].name] = t.attributes[b].value;
656
- (l || u) && (l && (u && l.__html == u.__html || l.__html === t.innerHTML) || (t.innerHTML = l && l.__html || ""));
654
+ for (w = {}, _ = 0; _ < t.attributes.length; _++)
655
+ w[t.attributes[_].name] = t.attributes[_].value;
656
+ (c || u) && (c && (u && c.__html == u.__html || c.__html === t.innerHTML) || (t.innerHTML = c && c.__html || ""));
657
657
  }
658
- if (bo(t, g, w, o, s), l)
658
+ if (vo(t, v, w, o, s), c)
659
659
  e.__k = [];
660
- else if (Zi(t, Gt(b = e.props.children) ? b : [b], e, i, a, o && h !== "foreignObject", n, r, n ? n[0] : i.__k && Rt(i, 0), s, c), n != null)
661
- for (b = n.length; b--; )
662
- n[b] != null && Ki(n[b]);
663
- s || ("value" in g && (b = g.value) !== void 0 && (b !== t.value || h === "progress" && !b || h === "option" && b !== w.value) && Ut(t, "value", b, w.value, !1), "checked" in g && (b = g.checked) !== void 0 && b !== t.checked && Ut(t, "checked", b, w.checked, !1));
660
+ else if (Gi(t, Xt(_ = e.props.children) ? _ : [_], e, i, a, o && h !== "foreignObject", n, r, n ? n[0] : i.__k && Ht(i, 0), s, l), n != null)
661
+ for (_ = n.length; _--; )
662
+ n[_] != null && qi(n[_]);
663
+ s || ("value" in v && (_ = v.value) !== void 0 && (_ !== t.value || h === "progress" && !_ || h === "option" && _ !== w.value) && Wt(t, "value", _, w.value, !1), "checked" in v && (_ = v.checked) !== void 0 && _ !== t.checked && Wt(t, "checked", _, w.checked, !1));
664
664
  }
665
665
  return t;
666
666
  }
@@ -671,7 +671,7 @@ function Fe(t, e, i) {
671
671
  f.__e(a, i);
672
672
  }
673
673
  }
674
- function Qi(t, e, i) {
674
+ function ta(t, e, i) {
675
675
  var a, o;
676
676
  if (f.unmount && f.unmount(t), (a = t.ref) && (a.current && a.current !== t.__e || Fe(a, null, e)), (a = t.__c) != null) {
677
677
  if (a.componentWillUnmount)
@@ -684,27 +684,27 @@ function Qi(t, e, i) {
684
684
  }
685
685
  if (a = t.__k)
686
686
  for (o = 0; o < a.length; o++)
687
- a[o] && Qi(a[o], e, i || typeof t.type != "function");
688
- i || t.__e == null || Ki(t.__e), t.__ = t.__e = t.__d = void 0;
687
+ a[o] && ta(a[o], e, i || typeof t.type != "function");
688
+ i || t.__e == null || qi(t.__e), t.__ = t.__e = t.__d = void 0;
689
689
  }
690
- function _o(t, e, i) {
690
+ function mo(t, e, i) {
691
691
  return this.constructor(t, i);
692
692
  }
693
693
  function dt(t, e, i) {
694
694
  var a, o, n, r;
695
- f.__ && f.__(t, e), o = (a = typeof i == "function") ? null : i && i.__k || e.__k, n = [], r = [], Me(e, t = (!a && i || e).__k = B(Y, null, [t]), o || ht, ht, e.ownerSVGElement !== void 0, !a && i ? [i] : o ? null : e.firstChild ? Tt.call(e.childNodes) : null, n, !a && i ? i : o ? o.__e : e.firstChild, a, r), Ji(n, t, r);
695
+ f.__ && f.__(t, e), o = (a = typeof i == "function") ? null : i && i.__k || e.__k, n = [], r = [], Me(e, t = (!a && i || e).__k = L(Y, null, [t]), o || ht, ht, e.ownerSVGElement !== void 0, !a && i ? [i] : o ? null : e.firstChild ? Pt.call(e.childNodes) : null, n, !a && i ? i : o ? o.__e : e.firstChild, a, r), Qi(n, t, r);
696
696
  }
697
- function ta(t, e) {
698
- dt(t, e, ta);
697
+ function ea(t, e) {
698
+ dt(t, e, ea);
699
699
  }
700
- function mo(t, e, i) {
700
+ function yo(t, e, i) {
701
701
  var a, o, n, r, s = Q({}, t.props);
702
702
  for (n in t.type && t.type.defaultProps && (r = t.type.defaultProps), e)
703
703
  n == "key" ? a = e[n] : n == "ref" ? o = e[n] : s[n] = e[n] === void 0 && r !== void 0 ? r[n] : e[n];
704
- return arguments.length > 2 && (s.children = arguments.length > 3 ? Tt.call(arguments, 2) : i), xt(t.type, s, a || t.key, o || t.ref, null);
704
+ return arguments.length > 2 && (s.children = arguments.length > 3 ? Pt.call(arguments, 2) : i), xt(t.type, s, a || t.key, o || t.ref, null);
705
705
  }
706
- function ea(t, e) {
707
- var i = { __c: e = "__cC" + Vi++, __: t, Consumer: function(a, o) {
706
+ function ia(t, e) {
707
+ var i = { __c: e = "__cC" + Yi++, __: t, Consumer: function(a, o) {
708
708
  return a.children(o);
709
709
  }, Provider: function(a) {
710
710
  var o, n;
@@ -724,7 +724,7 @@ function ea(t, e) {
724
724
  } };
725
725
  return i.Provider.__ = i.Consumer.contextType = i;
726
726
  }
727
- Tt = Yi.slice, f = { __e: function(t, e, i, a) {
727
+ Pt = Ki.slice, f = { __e: function(t, e, i, a) {
728
728
  for (var o, n, r; e = e.__; )
729
729
  if ((o = e.__c) && !o.__)
730
730
  try {
@@ -734,17 +734,17 @@ Tt = Yi.slice, f = { __e: function(t, e, i, a) {
734
734
  t = s;
735
735
  }
736
736
  throw t;
737
- } }, Hi = 0, Ui = function(t) {
737
+ } }, Ui = 0, Wi = function(t) {
738
738
  return t != null && t.constructor === void 0;
739
739
  }, W.prototype.setState = function(t, e) {
740
740
  var i;
741
741
  i = this.__s != null && this.__s !== this.state ? this.__s : this.__s = Q({}, this.state), typeof t == "function" && (t = t(Q({}, i), this.props)), t && Q(i, t), t != null && this.__v && (e && this._sb.push(e), we(this));
742
742
  }, W.prototype.forceUpdate = function(t) {
743
743
  this.__v && (this.__e = !0, t && this.__h.push(t), we(this));
744
- }, W.prototype.render = Y, st = [], Wi = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, fe = function(t, e) {
744
+ }, W.prototype.render = Y, st = [], Vi = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, fe = function(t, e) {
745
745
  return t.__v.__b - e.__v.__b;
746
- }, Ht.__r = 0, Vi = 0;
747
- function ia(t) {
746
+ }, Ut.__r = 0, Yi = 0;
747
+ function aa(t) {
748
748
  var e, i, a = "";
749
749
  if (typeof t == "string" || typeof t == "number")
750
750
  a += t;
@@ -752,65 +752,65 @@ function ia(t) {
752
752
  if (Array.isArray(t)) {
753
753
  var o = t.length;
754
754
  for (e = 0; e < o; e++)
755
- t[e] && (i = ia(t[e])) && (a && (a += " "), a += i);
755
+ t[e] && (i = aa(t[e])) && (a && (a += " "), a += i);
756
756
  } else
757
757
  for (i in t)
758
758
  t[i] && (a && (a += " "), a += i);
759
759
  return a;
760
760
  }
761
- function Be() {
761
+ function Le() {
762
762
  for (var t, e, i = 0, a = "", o = arguments.length; i < o; i++)
763
- (t = arguments[i]) && (e = ia(t)) && (a && (a += " "), a += e);
763
+ (t = arguments[i]) && (e = aa(t)) && (a && (a += " "), a += e);
764
764
  return a;
765
765
  }
766
- const Qe = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, ti = Be, Le = (t, e) => (i) => {
766
+ const Qe = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, ti = Le, Be = (t, e) => (i) => {
767
767
  var a;
768
768
  if ((e == null ? void 0 : e.variants) == null)
769
769
  return ti(t, i == null ? void 0 : i.class, i == null ? void 0 : i.className);
770
770
  const { variants: o, defaultVariants: n } = e, r = Object.keys(o).map((d) => {
771
- const u = i == null ? void 0 : i[d], l = n == null ? void 0 : n[d];
771
+ const u = i == null ? void 0 : i[d], c = n == null ? void 0 : n[d];
772
772
  if (u === null)
773
773
  return null;
774
- const w = Qe(u) || Qe(l);
774
+ const w = Qe(u) || Qe(c);
775
775
  return o[d][w];
776
776
  }), s = i && Object.entries(i).reduce((d, u) => {
777
- let [l, w] = u;
778
- return w === void 0 || (d[l] = w), d;
779
- }, {}), c = e == null || (a = e.compoundVariants) === null || a === void 0 ? void 0 : a.reduce((d, u) => {
780
- let { class: l, className: w, ...g } = u;
781
- return Object.entries(g).every((h) => {
782
- let [b, D] = h;
783
- return Array.isArray(D) ? D.includes({
777
+ let [c, w] = u;
778
+ return w === void 0 || (d[c] = w), d;
779
+ }, {}), l = e == null || (a = e.compoundVariants) === null || a === void 0 ? void 0 : a.reduce((d, u) => {
780
+ let { class: c, className: w, ...v } = u;
781
+ return Object.entries(v).every((h) => {
782
+ let [_, z] = h;
783
+ return Array.isArray(z) ? z.includes({
784
784
  ...n,
785
785
  ...s
786
- }[b]) : {
786
+ }[_]) : {
787
787
  ...n,
788
788
  ...s
789
- }[b] === D;
789
+ }[_] === z;
790
790
  }) ? [
791
791
  ...d,
792
- l,
792
+ c,
793
793
  w
794
794
  ] : d;
795
795
  }, []);
796
- return ti(t, r, c, i == null ? void 0 : i.class, i == null ? void 0 : i.className);
796
+ return ti(t, r, l, i == null ? void 0 : i.class, i == null ? void 0 : i.className);
797
797
  };
798
- var nt, E, ae, ei, wt = 0, aa = [], Ot = [], ii = f.__b, ai = f.__r, oi = f.diffed, ni = f.__c, ri = f.unmount;
798
+ var nt, S, ae, ei, wt = 0, oa = [], Dt = [], ii = f.__b, ai = f.__r, oi = f.diffed, ni = f.__c, ri = f.unmount;
799
799
  function gt(t, e) {
800
- f.__h && f.__h(E, t, wt || e), wt = 0;
801
- var i = E.__H || (E.__H = { __: [], __h: [] });
802
- return t >= i.__.length && i.__.push({ __V: Ot }), i.__[t];
800
+ f.__h && f.__h(S, t, wt || e), wt = 0;
801
+ var i = S.__H || (S.__H = { __: [], __h: [] });
802
+ return t >= i.__.length && i.__.push({ __V: Dt }), i.__[t];
803
803
  }
804
- function oa(t) {
805
- return wt = 1, na(la, t);
804
+ function na(t) {
805
+ return wt = 1, ra(ca, t);
806
806
  }
807
- function na(t, e, i) {
807
+ function ra(t, e, i) {
808
808
  var a = gt(nt++, 2);
809
- if (a.t = t, !a.__c && (a.__ = [i ? i(e) : la(void 0, e), function(s) {
810
- var c = a.__N ? a.__N[0] : a.__[0], d = a.t(c, s);
811
- c !== d && (a.__N = [d, a.__[1]], a.__c.setState({}));
812
- }], a.__c = E, !E.u)) {
813
- var o = function(s, c, d) {
809
+ if (a.t = t, !a.__c && (a.__ = [i ? i(e) : ca(void 0, e), function(s) {
810
+ var l = a.__N ? a.__N[0] : a.__[0], d = a.t(l, s);
811
+ l !== d && (a.__N = [d, a.__[1]], a.__c.setState({}));
812
+ }], a.__c = S, !S.u)) {
813
+ var o = function(s, l, d) {
814
814
  if (!a.__c.__H)
815
815
  return !0;
816
816
  var u = a.__c.__H.__.filter(function(w) {
@@ -819,41 +819,41 @@ function na(t, e, i) {
819
819
  if (u.every(function(w) {
820
820
  return !w.__N;
821
821
  }))
822
- return !n || n.call(this, s, c, d);
823
- var l = !1;
822
+ return !n || n.call(this, s, l, d);
823
+ var c = !1;
824
824
  return u.forEach(function(w) {
825
825
  if (w.__N) {
826
- var g = w.__[0];
827
- w.__ = w.__N, w.__N = void 0, g !== w.__[0] && (l = !0);
826
+ var v = w.__[0];
827
+ w.__ = w.__N, w.__N = void 0, v !== w.__[0] && (c = !0);
828
828
  }
829
- }), !(!l && a.__c.props === s) && (!n || n.call(this, s, c, d));
829
+ }), !(!c && a.__c.props === s) && (!n || n.call(this, s, l, d));
830
830
  };
831
- E.u = !0;
832
- var n = E.shouldComponentUpdate, r = E.componentWillUpdate;
833
- E.componentWillUpdate = function(s, c, d) {
831
+ S.u = !0;
832
+ var n = S.shouldComponentUpdate, r = S.componentWillUpdate;
833
+ S.componentWillUpdate = function(s, l, d) {
834
834
  if (this.__e) {
835
835
  var u = n;
836
- n = void 0, o(s, c, d), n = u;
836
+ n = void 0, o(s, l, d), n = u;
837
837
  }
838
- r && r.call(this, s, c, d);
839
- }, E.shouldComponentUpdate = o;
838
+ r && r.call(this, s, l, d);
839
+ }, S.shouldComponentUpdate = o;
840
840
  }
841
841
  return a.__N || a.__;
842
842
  }
843
- function ra(t, e) {
843
+ function sa(t, e) {
844
844
  var i = gt(nt++, 3);
845
- !f.__s && Re(i.__H, e) && (i.__ = t, i.i = e, E.__H.__h.push(i));
845
+ !f.__s && Re(i.__H, e) && (i.__ = t, i.i = e, S.__H.__h.push(i));
846
846
  }
847
847
  function bt(t, e) {
848
848
  var i = gt(nt++, 4);
849
- !f.__s && Re(i.__H, e) && (i.__ = t, i.i = e, E.__h.push(i));
849
+ !f.__s && Re(i.__H, e) && (i.__ = t, i.i = e, S.__h.push(i));
850
850
  }
851
- function Xt(t) {
851
+ function Ct(t) {
852
852
  return wt = 5, ut(function() {
853
853
  return { current: t };
854
854
  }, []);
855
855
  }
856
- function yo(t, e, i) {
856
+ function xo(t, e, i) {
857
857
  wt = 6, bt(function() {
858
858
  return typeof t == "function" ? (t(e()), function() {
859
859
  return t(null);
@@ -866,55 +866,55 @@ function ut(t, e) {
866
866
  var i = gt(nt++, 7);
867
867
  return Re(i.__H, e) ? (i.__V = t(), i.i = e, i.__h = t, i.__V) : i.__;
868
868
  }
869
- function xo(t, e) {
869
+ function ko(t, e) {
870
870
  return wt = 8, ut(function() {
871
871
  return t;
872
872
  }, e);
873
873
  }
874
- function sa(t) {
875
- var e = E.context[t.__c], i = gt(nt++, 9);
876
- return i.c = t, e ? (i.__ == null && (i.__ = !0, e.sub(E)), e.props.value) : t.__;
874
+ function la(t) {
875
+ var e = S.context[t.__c], i = gt(nt++, 9);
876
+ return i.c = t, e ? (i.__ == null && (i.__ = !0, e.sub(S)), e.props.value) : t.__;
877
877
  }
878
- function ko(t, e) {
878
+ function $o(t, e) {
879
879
  f.useDebugValue && f.useDebugValue(e ? e(t) : t);
880
880
  }
881
- function $o() {
881
+ function So() {
882
882
  var t = gt(nt++, 11);
883
883
  if (!t.__) {
884
- for (var e = E.__v; e !== null && !e.__m && e.__ !== null; )
884
+ for (var e = S.__v; e !== null && !e.__m && e.__ !== null; )
885
885
  e = e.__;
886
886
  var i = e.__m || (e.__m = [0, 0]);
887
887
  t.__ = "P" + i[0] + "-" + i[1]++;
888
888
  }
889
889
  return t.__;
890
890
  }
891
- function So() {
892
- for (var t; t = aa.shift(); )
891
+ function Co() {
892
+ for (var t; t = oa.shift(); )
893
893
  if (t.__P && t.__H)
894
894
  try {
895
- t.__H.__h.forEach(At), t.__H.__h.forEach(ge), t.__H.__h = [];
895
+ t.__H.__h.forEach(Nt), t.__H.__h.forEach(ge), t.__H.__h = [];
896
896
  } catch (e) {
897
897
  t.__H.__h = [], f.__e(e, t.__v);
898
898
  }
899
899
  }
900
900
  f.__b = function(t) {
901
- E = null, ii && ii(t);
901
+ S = null, ii && ii(t);
902
902
  }, f.__r = function(t) {
903
903
  ai && ai(t), nt = 0;
904
- var e = (E = t.__c).__H;
905
- e && (ae === E ? (e.__h = [], E.__h = [], e.__.forEach(function(i) {
906
- i.__N && (i.__ = i.__N), i.__V = Ot, i.__N = i.i = void 0;
907
- })) : (e.__h.forEach(At), e.__h.forEach(ge), e.__h = [], nt = 0)), ae = E;
904
+ var e = (S = t.__c).__H;
905
+ e && (ae === S ? (e.__h = [], S.__h = [], e.__.forEach(function(i) {
906
+ i.__N && (i.__ = i.__N), i.__V = Dt, i.__N = i.i = void 0;
907
+ })) : (e.__h.forEach(Nt), e.__h.forEach(ge), e.__h = [], nt = 0)), ae = S;
908
908
  }, f.diffed = function(t) {
909
909
  oi && oi(t);
910
910
  var e = t.__c;
911
- e && e.__H && (e.__H.__h.length && (aa.push(e) !== 1 && ei === f.requestAnimationFrame || ((ei = f.requestAnimationFrame) || Co)(So)), e.__H.__.forEach(function(i) {
912
- i.i && (i.__H = i.i), i.__V !== Ot && (i.__ = i.__V), i.i = void 0, i.__V = Ot;
913
- })), ae = E = null;
911
+ e && e.__H && (e.__H.__h.length && (oa.push(e) !== 1 && ei === f.requestAnimationFrame || ((ei = f.requestAnimationFrame) || Eo)(Co)), e.__H.__.forEach(function(i) {
912
+ i.i && (i.__H = i.i), i.__V !== Dt && (i.__ = i.__V), i.i = void 0, i.__V = Dt;
913
+ })), ae = S = null;
914
914
  }, f.__c = function(t, e) {
915
915
  e.some(function(i) {
916
916
  try {
917
- i.__h.forEach(At), i.__h = i.__h.filter(function(a) {
917
+ i.__h.forEach(Nt), i.__h = i.__h.filter(function(a) {
918
918
  return !a.__ || ge(a);
919
919
  });
920
920
  } catch (a) {
@@ -928,36 +928,36 @@ f.__b = function(t) {
928
928
  var e, i = t.__c;
929
929
  i && i.__H && (i.__H.__.forEach(function(a) {
930
930
  try {
931
- At(a);
931
+ Nt(a);
932
932
  } catch (o) {
933
933
  e = o;
934
934
  }
935
935
  }), i.__H = void 0, e && f.__e(e, i.__v));
936
936
  };
937
937
  var si = typeof requestAnimationFrame == "function";
938
- function Co(t) {
938
+ function Eo(t) {
939
939
  var e, i = function() {
940
940
  clearTimeout(a), si && cancelAnimationFrame(e), setTimeout(t);
941
941
  }, a = setTimeout(i, 100);
942
942
  si && (e = requestAnimationFrame(i));
943
943
  }
944
- function At(t) {
945
- var e = E, i = t.__c;
946
- typeof i == "function" && (t.__c = void 0, i()), E = e;
944
+ function Nt(t) {
945
+ var e = S, i = t.__c;
946
+ typeof i == "function" && (t.__c = void 0, i()), S = e;
947
947
  }
948
948
  function ge(t) {
949
- var e = E;
950
- t.__c = t.__(), E = e;
949
+ var e = S;
950
+ t.__c = t.__(), S = e;
951
951
  }
952
952
  function Re(t, e) {
953
953
  return !t || t.length !== e.length || e.some(function(i, a) {
954
954
  return i !== t[a];
955
955
  });
956
956
  }
957
- function la(t, e) {
957
+ function ca(t, e) {
958
958
  return typeof e == "function" ? e(t) : e;
959
959
  }
960
- function ca(t, e) {
960
+ function da(t, e) {
961
961
  for (var i in e)
962
962
  t[i] = e[i];
963
963
  return t;
@@ -977,13 +977,13 @@ function oe(t, e) {
977
977
  function ve(t) {
978
978
  this.props = t;
979
979
  }
980
- function Eo(t, e) {
980
+ function To(t, e) {
981
981
  function i(o) {
982
982
  var n = this.props.ref, r = n == o.ref;
983
983
  return !r && n && (n.call ? n(null) : n.current = null), e ? !e(this.props, o) || !r : be(this.props, o);
984
984
  }
985
985
  function a(o) {
986
- return this.shouldComponentUpdate = i, B(t, o);
986
+ return this.shouldComponentUpdate = i, L(t, o);
987
987
  }
988
988
  return a.displayName = "Memo(" + (t.displayName || t.name) + ")", a.prototype.isReactComponent = !0, a.__f = !0, a;
989
989
  }
@@ -994,53 +994,53 @@ var li = f.__b;
994
994
  f.__b = function(t) {
995
995
  t.type && t.type.__f && t.ref && (t.props.ref = t.ref, t.ref = null), li && li(t);
996
996
  };
997
- var To = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
998
- function Po(t) {
997
+ var Po = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
998
+ function Io(t) {
999
999
  function e(i) {
1000
- var a = ca({}, i);
1000
+ var a = da({}, i);
1001
1001
  return delete a.ref, t(a, i.ref || null);
1002
1002
  }
1003
- return e.$$typeof = To, e.render = e, e.prototype.isReactComponent = e.__f = !0, e.displayName = "ForwardRef(" + (t.displayName || t.name) + ")", e;
1003
+ return e.$$typeof = Po, e.render = e, e.prototype.isReactComponent = e.__f = !0, e.displayName = "ForwardRef(" + (t.displayName || t.name) + ")", e;
1004
1004
  }
1005
1005
  var ci = function(t, e) {
1006
1006
  return t == null ? null : tt(tt(t).map(e));
1007
- }, Io = { map: ci, forEach: ci, count: function(t) {
1007
+ }, zo = { map: ci, forEach: ci, count: function(t) {
1008
1008
  return t ? tt(t).length : 0;
1009
1009
  }, only: function(t) {
1010
1010
  var e = tt(t);
1011
1011
  if (e.length !== 1)
1012
1012
  throw "Children.only";
1013
1013
  return e[0];
1014
- }, toArray: tt }, zo = f.__e;
1014
+ }, toArray: tt }, Ao = f.__e;
1015
1015
  f.__e = function(t, e, i, a) {
1016
1016
  if (t.then) {
1017
1017
  for (var o, n = e; n = n.__; )
1018
1018
  if ((o = n.__c) && o.__c)
1019
1019
  return e.__e == null && (e.__e = i.__e, e.__k = i.__k), o.__c(t, e);
1020
1020
  }
1021
- zo(t, e, i, a);
1021
+ Ao(t, e, i, a);
1022
1022
  };
1023
1023
  var di = f.unmount;
1024
- function da(t, e, i) {
1024
+ function ua(t, e, i) {
1025
1025
  return t && (t.__c && t.__c.__H && (t.__c.__H.__.forEach(function(a) {
1026
1026
  typeof a.__c == "function" && a.__c();
1027
- }), t.__c.__H = null), (t = ca({}, t)).__c != null && (t.__c.__P === i && (t.__c.__P = e), t.__c = null), t.__k = t.__k && t.__k.map(function(a) {
1028
- return da(a, e, i);
1027
+ }), t.__c.__H = null), (t = da({}, t)).__c != null && (t.__c.__P === i && (t.__c.__P = e), t.__c = null), t.__k = t.__k && t.__k.map(function(a) {
1028
+ return ua(a, e, i);
1029
1029
  })), t;
1030
1030
  }
1031
- function ua(t, e, i) {
1031
+ function pa(t, e, i) {
1032
1032
  return t && (t.__v = null, t.__k = t.__k && t.__k.map(function(a) {
1033
- return ua(a, e, i);
1033
+ return pa(a, e, i);
1034
1034
  }), t.__c && t.__c.__P === e && (t.__e && i.insertBefore(t.__e, t.__d), t.__c.__e = !0, t.__c.__P = i)), t;
1035
1035
  }
1036
1036
  function kt() {
1037
1037
  this.__u = 0, this.t = null, this.__b = null;
1038
1038
  }
1039
- function pa(t) {
1039
+ function ha(t) {
1040
1040
  var e = t.__.__c;
1041
1041
  return e && e.__a && e.__a(t);
1042
1042
  }
1043
- function ha(t) {
1043
+ function fa(t) {
1044
1044
  var e, i, a;
1045
1045
  function o(n) {
1046
1046
  if (e || (e = t()).then(function(r) {
@@ -1051,7 +1051,7 @@ function ha(t) {
1051
1051
  throw a;
1052
1052
  if (!i)
1053
1053
  throw e;
1054
- return B(i, n);
1054
+ return L(i, n);
1055
1055
  }
1056
1056
  return o.displayName = "Lazy", o.__f = !0, o;
1057
1057
  }
@@ -1064,7 +1064,7 @@ f.unmount = function(t) {
1064
1064
  }, (kt.prototype = new W()).__c = function(t, e) {
1065
1065
  var i = e.__c, a = this;
1066
1066
  a.t == null && (a.t = []), a.t.push(i);
1067
- var o = pa(a.__v), n = !1, r = function() {
1067
+ var o = ha(a.__v), n = !1, r = function() {
1068
1068
  n || (n = !0, i.__R = null, o ? o(s) : s());
1069
1069
  };
1070
1070
  i.__R = r;
@@ -1072,26 +1072,26 @@ f.unmount = function(t) {
1072
1072
  if (!--a.__u) {
1073
1073
  if (a.state.__a) {
1074
1074
  var d = a.state.__a;
1075
- a.__v.__k[0] = ua(d, d.__c.__P, d.__c.__O);
1075
+ a.__v.__k[0] = pa(d, d.__c.__P, d.__c.__O);
1076
1076
  }
1077
1077
  var u;
1078
1078
  for (a.setState({ __a: a.__b = null }); u = a.t.pop(); )
1079
1079
  u.forceUpdate();
1080
1080
  }
1081
- }, c = e.__h === !0;
1082
- a.__u++ || c || a.setState({ __a: a.__b = a.__v.__k[0] }), t.then(r, r);
1081
+ }, l = e.__h === !0;
1082
+ a.__u++ || l || a.setState({ __a: a.__b = a.__v.__k[0] }), t.then(r, r);
1083
1083
  }, kt.prototype.componentWillUnmount = function() {
1084
1084
  this.t = [];
1085
1085
  }, kt.prototype.render = function(t, e) {
1086
1086
  if (this.__b) {
1087
1087
  if (this.__v.__k) {
1088
1088
  var i = document.createElement("div"), a = this.__v.__k[0].__c;
1089
- this.__v.__k[0] = da(this.__b, i, a.__O = a.__P);
1089
+ this.__v.__k[0] = ua(this.__b, i, a.__O = a.__P);
1090
1090
  }
1091
1091
  this.__b = null;
1092
1092
  }
1093
- var o = e.__a && B(Y, null, t.fallback);
1094
- return o && (o.__h = null), [B(Y, null, e.__a ? null : t.children), o];
1093
+ var o = e.__a && L(Y, null, t.fallback);
1094
+ return o && (o.__h = null), [L(Y, null, e.__a ? null : t.children), o];
1095
1095
  };
1096
1096
  var ui = function(t, e, i) {
1097
1097
  if (++i[1] === i[0] && t.o.delete(e), t.props.revealOrder && (t.props.revealOrder[0] !== "t" || !t.o.size))
@@ -1103,12 +1103,12 @@ var ui = function(t, e, i) {
1103
1103
  t.u = i = i[2];
1104
1104
  }
1105
1105
  };
1106
- function Do(t) {
1106
+ function Oo(t) {
1107
1107
  return this.getChildContext = function() {
1108
1108
  return t.context;
1109
1109
  }, t.children;
1110
1110
  }
1111
- function Oo(t) {
1111
+ function Do(t) {
1112
1112
  var e = this, i = t.i;
1113
1113
  e.componentWillUnmount = function() {
1114
1114
  dt(null, e.l), e.l = null, e.i = null;
@@ -1118,14 +1118,14 @@ function Oo(t) {
1118
1118
  this.childNodes.push(a), e.i.appendChild(a);
1119
1119
  }, removeChild: function(a) {
1120
1120
  this.childNodes.splice(this.childNodes.indexOf(a) >>> 1, 1), e.i.removeChild(a);
1121
- } }), dt(B(Do, { context: e.context }, t.__v), e.l)) : e.l && e.componentWillUnmount();
1121
+ } }), dt(L(Oo, { context: e.context }, t.__v), e.l)) : e.l && e.componentWillUnmount();
1122
1122
  }
1123
- function Ao(t, e) {
1124
- var i = B(Oo, { __v: t, i: e });
1123
+ function No(t, e) {
1124
+ var i = L(Do, { __v: t, i: e });
1125
1125
  return i.containerInfo = e, i;
1126
1126
  }
1127
1127
  (yt.prototype = new W()).__a = function(t) {
1128
- var e = this, i = pa(e.__v), a = e.o.get(t);
1128
+ var e = this, i = ha(e.__v), a = e.o.get(t);
1129
1129
  return a[0]++, function(o) {
1130
1130
  var n = function() {
1131
1131
  e.props.revealOrder ? (a.push(o), ui(e, t, a)) : o();
@@ -1145,14 +1145,14 @@ function Ao(t, e) {
1145
1145
  ui(t, i, e);
1146
1146
  });
1147
1147
  };
1148
- var fa = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, No = /^(?: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]/, jo = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Mo = /[A-Z0-9]/g, Fo = typeof document < "u", Bo = function(t) {
1148
+ var wa = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, jo = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, Mo = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Fo = /[A-Z0-9]/g, Lo = typeof document < "u", Bo = function(t) {
1149
1149
  return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(t);
1150
1150
  };
1151
- function Lo(t, e, i) {
1151
+ function Ro(t, e, i) {
1152
1152
  return e.__k == null && (e.textContent = ""), dt(t, e), typeof i == "function" && i(), t ? t.__c : null;
1153
1153
  }
1154
- function Ro(t, e, i) {
1155
- return ta(t, e), typeof i == "function" && i(), t ? t.__c : null;
1154
+ function Ho(t, e, i) {
1155
+ return ea(t, e), typeof i == "function" && i(), t ? t.__c : null;
1156
1156
  }
1157
1157
  W.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t) {
1158
1158
  Object.defineProperty(W.prototype, t, { configurable: !0, get: function() {
@@ -1162,18 +1162,18 @@ W.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveP
1162
1162
  } });
1163
1163
  });
1164
1164
  var pi = f.event;
1165
- function Ho() {
1166
- }
1167
1165
  function Uo() {
1168
- return this.cancelBubble;
1169
1166
  }
1170
1167
  function Wo() {
1168
+ return this.cancelBubble;
1169
+ }
1170
+ function Vo() {
1171
1171
  return this.defaultPrevented;
1172
1172
  }
1173
1173
  f.event = function(t) {
1174
- return pi && (t = pi(t)), t.persist = Ho, t.isPropagationStopped = Uo, t.isDefaultPrevented = Wo, t.nativeEvent = t;
1174
+ return pi && (t = pi(t)), t.persist = Uo, t.isPropagationStopped = Wo, t.isDefaultPrevented = Vo, t.nativeEvent = t;
1175
1175
  };
1176
- var He, Vo = { enumerable: !1, configurable: !0, get: function() {
1176
+ var He, Yo = { enumerable: !1, configurable: !0, get: function() {
1177
1177
  return this.class;
1178
1178
  } }, hi = f.vnode;
1179
1179
  f.vnode = function(t) {
@@ -1181,17 +1181,17 @@ f.vnode = function(t) {
1181
1181
  var i = e.props, a = e.type, o = {};
1182
1182
  for (var n in i) {
1183
1183
  var r = i[n];
1184
- if (!(n === "value" && "defaultValue" in i && r == null || Fo && n === "children" && a === "noscript" || n === "class" || n === "className")) {
1184
+ if (!(n === "value" && "defaultValue" in i && r == null || Lo && n === "children" && a === "noscript" || n === "class" || n === "className")) {
1185
1185
  var s = n.toLowerCase();
1186
- n === "defaultValue" && "value" in i && i.value == null ? n = "value" : n === "download" && r === !0 ? r = "" : s === "ondoubleclick" ? n = "ondblclick" : s !== "onchange" || a !== "input" && a !== "textarea" || Bo(i.type) ? s === "onfocus" ? n = "onfocusin" : s === "onblur" ? n = "onfocusout" : jo.test(n) ? n = s : a.indexOf("-") === -1 && No.test(n) ? n = n.replace(Mo, "-$&").toLowerCase() : r === null && (r = void 0) : s = n = "oninput", s === "oninput" && o[n = s] && (n = "oninputCapture"), o[n] = r;
1186
+ n === "defaultValue" && "value" in i && i.value == null ? n = "value" : n === "download" && r === !0 ? r = "" : s === "ondoubleclick" ? n = "ondblclick" : s !== "onchange" || a !== "input" && a !== "textarea" || Bo(i.type) ? s === "onfocus" ? n = "onfocusin" : s === "onblur" ? n = "onfocusout" : Mo.test(n) ? n = s : a.indexOf("-") === -1 && jo.test(n) ? n = n.replace(Fo, "-$&").toLowerCase() : r === null && (r = void 0) : s = n = "oninput", s === "oninput" && o[n = s] && (n = "oninputCapture"), o[n] = r;
1187
1187
  }
1188
1188
  }
1189
- a == "select" && o.multiple && Array.isArray(o.value) && (o.value = tt(i.children).forEach(function(c) {
1190
- c.props.selected = o.value.indexOf(c.props.value) != -1;
1191
- })), a == "select" && o.defaultValue != null && (o.value = tt(i.children).forEach(function(c) {
1192
- c.props.selected = o.multiple ? o.defaultValue.indexOf(c.props.value) != -1 : o.defaultValue == c.props.value;
1193
- })), i.class && !i.className ? (o.class = i.class, Object.defineProperty(o, "className", Vo)) : (i.className && !i.class || i.class && i.className) && (o.class = o.className = i.className), e.props = o;
1194
- }(t), t.$$typeof = fa, hi && hi(t);
1189
+ a == "select" && o.multiple && Array.isArray(o.value) && (o.value = tt(i.children).forEach(function(l) {
1190
+ l.props.selected = o.value.indexOf(l.props.value) != -1;
1191
+ })), a == "select" && o.defaultValue != null && (o.value = tt(i.children).forEach(function(l) {
1192
+ l.props.selected = o.multiple ? o.defaultValue.indexOf(l.props.value) != -1 : o.defaultValue == l.props.value;
1193
+ })), i.class && !i.className ? (o.class = i.class, Object.defineProperty(o, "className", Yo)) : (i.className && !i.class || i.class && i.className) && (o.class = o.className = i.className), e.props = o;
1194
+ }(t), t.$$typeof = wa, hi && hi(t);
1195
1195
  };
1196
1196
  var fi = f.__r;
1197
1197
  f.__r = function(t) {
@@ -1203,52 +1203,52 @@ f.diffed = function(t) {
1203
1203
  var e = t.props, i = t.__e;
1204
1204
  i != null && t.type === "textarea" && "value" in e && e.value !== i.value && (i.value = e.value == null ? "" : e.value), He = null;
1205
1205
  };
1206
- var Yo = { ReactCurrentDispatcher: { current: { readContext: function(t) {
1206
+ var Ko = { ReactCurrentDispatcher: { current: { readContext: function(t) {
1207
1207
  return He.__n[t.__c].props.value;
1208
1208
  } } } };
1209
- function Ko(t) {
1210
- return B.bind(null, t);
1211
- }
1212
- function wa(t) {
1213
- return !!t && t.$$typeof === fa;
1214
- }
1215
1209
  function qo(t) {
1216
- return wa(t) ? mo.apply(null, arguments) : t;
1210
+ return L.bind(null, t);
1211
+ }
1212
+ function ga(t) {
1213
+ return !!t && t.$$typeof === wa;
1217
1214
  }
1218
1215
  function Zo(t) {
1219
- return !!t.__k && (dt(null, t), !0);
1216
+ return ga(t) ? yo.apply(null, arguments) : t;
1220
1217
  }
1221
1218
  function Go(t) {
1219
+ return !!t.__k && (dt(null, t), !0);
1220
+ }
1221
+ function Xo(t) {
1222
1222
  return t && (t.base || t.nodeType === 1 && t) || null;
1223
1223
  }
1224
- var Xo = function(t, e) {
1224
+ var Jo = function(t, e) {
1225
1225
  return t(e);
1226
- }, Jo = function(t, e) {
1226
+ }, Qo = function(t, e) {
1227
1227
  return t(e);
1228
- }, Qo = Y;
1229
- function ga(t) {
1228
+ }, tn = Y;
1229
+ function ba(t) {
1230
1230
  t();
1231
1231
  }
1232
- function tn(t) {
1232
+ function en(t) {
1233
1233
  return t;
1234
1234
  }
1235
- function en() {
1236
- return [!1, ga];
1235
+ function an() {
1236
+ return [!1, ba];
1237
1237
  }
1238
- var an = bt;
1239
- function on(t, e) {
1240
- var i = e(), a = oa({ h: { __: i, v: e } }), o = a[0].h, n = a[1];
1238
+ var on = bt;
1239
+ function nn(t, e) {
1240
+ var i = e(), a = na({ h: { __: i, v: e } }), o = a[0].h, n = a[1];
1241
1241
  return bt(function() {
1242
1242
  o.__ = i, o.v = e, oe(o.__, e()) || n({ h: o });
1243
- }, [t, i, e]), ra(function() {
1243
+ }, [t, i, e]), sa(function() {
1244
1244
  return oe(o.__, o.v()) || n({ h: o }), t(function() {
1245
1245
  oe(o.__, o.v()) || n({ h: o });
1246
1246
  });
1247
1247
  }, [t]), i;
1248
1248
  }
1249
- var Rr = { useState: oa, useId: $o, useReducer: na, useEffect: ra, useLayoutEffect: bt, useInsertionEffect: an, useTransition: en, useDeferredValue: tn, useSyncExternalStore: on, startTransition: ga, useRef: Xt, useImperativeHandle: yo, useMemo: ut, useCallback: xo, useContext: sa, useDebugValue: ko, version: "17.0.2", Children: Io, render: Lo, hydrate: Ro, unmountComponentAtNode: Zo, createPortal: Ao, createElement: B, createContext: ea, createFactory: Ko, cloneElement: qo, createRef: wo, Fragment: Y, isValidElement: wa, findDOMNode: Go, Component: W, PureComponent: ve, memo: Eo, forwardRef: Po, flushSync: Jo, unstable_batchedUpdates: Xo, StrictMode: Qo, Suspense: kt, SuspenseList: yt, lazy: ha, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Yo };
1250
- const j = Symbol.for("@ts-pattern/matcher"), ba = Symbol.for("@ts-pattern/isVariadic"), Wt = "@ts-pattern/anonymous-select-key", _e = (t) => !!(t && typeof t == "object"), Nt = (t) => t && !!t[j], T = (t, e, i) => {
1251
- if (Nt(t)) {
1249
+ var Rr = { useState: na, useId: So, useReducer: ra, useEffect: sa, useLayoutEffect: bt, useInsertionEffect: on, useTransition: an, useDeferredValue: en, useSyncExternalStore: nn, startTransition: ba, useRef: Ct, useImperativeHandle: xo, useMemo: ut, useCallback: ko, useContext: la, useDebugValue: $o, version: "17.0.2", Children: zo, render: Ro, hydrate: Ho, unmountComponentAtNode: Go, createPortal: No, createElement: L, createContext: ia, createFactory: qo, cloneElement: Zo, createRef: go, Fragment: Y, isValidElement: ga, findDOMNode: Xo, Component: W, PureComponent: ve, memo: To, forwardRef: Io, flushSync: Qo, unstable_batchedUpdates: Jo, StrictMode: tn, Suspense: kt, SuspenseList: yt, lazy: fa, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Ko };
1250
+ const j = Symbol.for("@ts-pattern/matcher"), va = Symbol.for("@ts-pattern/isVariadic"), Vt = "@ts-pattern/anonymous-select-key", _e = (t) => !!(t && typeof t == "object"), jt = (t) => t && !!t[j], E = (t, e, i) => {
1251
+ if (jt(t)) {
1252
1252
  const a = t[j](), { matched: o, selections: n } = a.match(e);
1253
1253
  return o && n && Object.keys(n).forEach((r) => i(r, n[r])), o;
1254
1254
  }
@@ -1261,112 +1261,112 @@ const j = Symbol.for("@ts-pattern/matcher"), ba = Symbol.for("@ts-pattern/isVari
1261
1261
  let a = [], o = [], n = [];
1262
1262
  for (const r of t.keys()) {
1263
1263
  const s = t[r];
1264
- Nt(s) && s[ba] ? n.push(s) : n.length ? o.push(s) : a.push(s);
1264
+ jt(s) && s[va] ? n.push(s) : n.length ? o.push(s) : a.push(s);
1265
1265
  }
1266
1266
  if (n.length) {
1267
1267
  if (n.length > 1)
1268
1268
  throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
1269
1269
  if (e.length < a.length + o.length)
1270
1270
  return !1;
1271
- const r = e.slice(0, a.length), s = o.length === 0 ? [] : e.slice(-o.length), c = e.slice(a.length, o.length === 0 ? 1 / 0 : -o.length);
1272
- return a.every((d, u) => T(d, r[u], i)) && o.every((d, u) => T(d, s[u], i)) && (n.length === 0 || T(n[0], c, i));
1271
+ const r = e.slice(0, a.length), s = o.length === 0 ? [] : e.slice(-o.length), l = e.slice(a.length, o.length === 0 ? 1 / 0 : -o.length);
1272
+ return a.every((d, u) => E(d, r[u], i)) && o.every((d, u) => E(d, s[u], i)) && (n.length === 0 || E(n[0], l, i));
1273
1273
  }
1274
- return t.length === e.length && t.every((r, s) => T(r, e[s], i));
1274
+ return t.length === e.length && t.every((r, s) => E(r, e[s], i));
1275
1275
  }
1276
1276
  return Reflect.ownKeys(t).every((a) => {
1277
1277
  const o = t[a];
1278
- return (a in e || Nt(n = o) && n[j]().matcherType === "optional") && T(o, e[a], i);
1278
+ return (a in e || jt(n = o) && n[j]().matcherType === "optional") && E(o, e[a], i);
1279
1279
  var n;
1280
1280
  });
1281
1281
  }
1282
1282
  return Object.is(e, t);
1283
1283
  }, N = (t) => {
1284
1284
  var e, i, a;
1285
- return _e(t) ? Nt(t) ? (e = (i = (a = t[j]()).getSelectionKeys) == null ? void 0 : i.call(a)) != null ? e : [] : Array.isArray(t) ? Ct(t, N) : Ct(Object.values(t), N) : [];
1286
- }, Ct = (t, e) => t.reduce((i, a) => i.concat(e(a)), []);
1287
- function nn(...t) {
1285
+ return _e(t) ? jt(t) ? (e = (i = (a = t[j]()).getSelectionKeys) == null ? void 0 : i.call(a)) != null ? e : [] : Array.isArray(t) ? Et(t, N) : Et(Object.values(t), N) : [];
1286
+ }, Et = (t, e) => t.reduce((i, a) => i.concat(e(a)), []);
1287
+ function rn(...t) {
1288
1288
  if (t.length === 1) {
1289
1289
  const [e] = t;
1290
- return (i) => T(e, i, () => {
1290
+ return (i) => E(e, i, () => {
1291
1291
  });
1292
1292
  }
1293
1293
  if (t.length === 2) {
1294
1294
  const [e, i] = t;
1295
- return T(e, i, () => {
1295
+ return E(e, i, () => {
1296
1296
  });
1297
1297
  }
1298
1298
  throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${t.length}.`);
1299
1299
  }
1300
- function z(t) {
1301
- return Object.assign(t, { optional: () => Ue(t), and: (e) => C(t, e), or: (e) => va(t, e), select: (e) => e === void 0 ? Et(t) : Et(e, t) });
1300
+ function I(t) {
1301
+ return Object.assign(t, { optional: () => Ue(t), and: (e) => $(t, e), or: (e) => _a(t, e), select: (e) => e === void 0 ? Tt(t) : Tt(e, t) });
1302
1302
  }
1303
1303
  function me(t) {
1304
1304
  return Object.assign(((e) => Object.assign(e, { [Symbol.iterator]() {
1305
1305
  let i = 0;
1306
- const a = [{ value: Object.assign(e, { [ba]: !0 }), done: !1 }, { done: !0, value: void 0 }];
1306
+ const a = [{ value: Object.assign(e, { [va]: !0 }), done: !1 }, { done: !0, value: void 0 }];
1307
1307
  return { next: () => {
1308
1308
  var o;
1309
1309
  return (o = a[i++]) != null ? o : a.at(-1);
1310
1310
  } };
1311
- } }))(t), { optional: () => me(Ue(t)), select: (e) => me(e === void 0 ? Et(t) : Et(e, t)) });
1311
+ } }))(t), { optional: () => me(Ue(t)), select: (e) => me(e === void 0 ? Tt(t) : Tt(e, t)) });
1312
1312
  }
1313
1313
  function Ue(t) {
1314
- return z({ [j]: () => ({ match: (e) => {
1314
+ return I({ [j]: () => ({ match: (e) => {
1315
1315
  let i = {};
1316
1316
  const a = (o, n) => {
1317
1317
  i[o] = n;
1318
1318
  };
1319
- return e === void 0 ? (N(t).forEach((o) => a(o, void 0)), { matched: !0, selections: i }) : { matched: T(t, e, a), selections: i };
1319
+ return e === void 0 ? (N(t).forEach((o) => a(o, void 0)), { matched: !0, selections: i }) : { matched: E(t, e, a), selections: i };
1320
1320
  }, getSelectionKeys: () => N(t), matcherType: "optional" }) });
1321
1321
  }
1322
- const rn = (t, e) => {
1322
+ const sn = (t, e) => {
1323
1323
  for (const i of t)
1324
1324
  if (!e(i))
1325
1325
  return !1;
1326
1326
  return !0;
1327
- }, sn = (t, e) => {
1327
+ }, ln = (t, e) => {
1328
1328
  for (const [i, a] of t.entries())
1329
1329
  if (!e(a, i))
1330
1330
  return !1;
1331
1331
  return !0;
1332
- }, ln = (t, e) => {
1332
+ }, cn = (t, e) => {
1333
1333
  const i = Reflect.ownKeys(t);
1334
1334
  for (const a of i)
1335
1335
  if (!e(a, t[a]))
1336
1336
  return !1;
1337
1337
  return !0;
1338
1338
  };
1339
- function C(...t) {
1340
- return z({ [j]: () => ({ match: (e) => {
1339
+ function $(...t) {
1340
+ return I({ [j]: () => ({ match: (e) => {
1341
1341
  let i = {};
1342
1342
  const a = (o, n) => {
1343
1343
  i[o] = n;
1344
1344
  };
1345
- return { matched: t.every((o) => T(o, e, a)), selections: i };
1346
- }, getSelectionKeys: () => Ct(t, N), matcherType: "and" }) });
1345
+ return { matched: t.every((o) => E(o, e, a)), selections: i };
1346
+ }, getSelectionKeys: () => Et(t, N), matcherType: "and" }) });
1347
1347
  }
1348
- function va(...t) {
1349
- return z({ [j]: () => ({ match: (e) => {
1348
+ function _a(...t) {
1349
+ return I({ [j]: () => ({ match: (e) => {
1350
1350
  let i = {};
1351
1351
  const a = (o, n) => {
1352
1352
  i[o] = n;
1353
1353
  };
1354
- return Ct(t, N).forEach((o) => a(o, void 0)), { matched: t.some((o) => T(o, e, a)), selections: i };
1355
- }, getSelectionKeys: () => Ct(t, N), matcherType: "or" }) });
1354
+ return Et(t, N).forEach((o) => a(o, void 0)), { matched: t.some((o) => E(o, e, a)), selections: i };
1355
+ }, getSelectionKeys: () => Et(t, N), matcherType: "or" }) });
1356
1356
  }
1357
1357
  function m(t) {
1358
1358
  return { [j]: () => ({ match: (e) => ({ matched: !!t(e) }) }) };
1359
1359
  }
1360
- function Et(...t) {
1360
+ function Tt(...t) {
1361
1361
  const e = typeof t[0] == "string" ? t[0] : void 0, i = t.length === 2 ? t[1] : typeof t[0] == "string" ? void 0 : t[0];
1362
- return z({ [j]: () => ({ match: (a) => {
1363
- let o = { [e ?? Wt]: a };
1364
- return { matched: i === void 0 || T(i, a, (n, r) => {
1362
+ return I({ [j]: () => ({ match: (a) => {
1363
+ let o = { [e ?? Vt]: a };
1364
+ return { matched: i === void 0 || E(i, a, (n, r) => {
1365
1365
  o[n] = r;
1366
1366
  }), selections: o };
1367
- }, getSelectionKeys: () => [e ?? Wt].concat(i === void 0 ? [] : N(i)) }) });
1367
+ }, getSelectionKeys: () => [e ?? Vt].concat(i === void 0 ? [] : N(i)) }) });
1368
1368
  }
1369
- function _a(t) {
1369
+ function ma(t) {
1370
1370
  return !0;
1371
1371
  }
1372
1372
  function Z(t) {
@@ -1378,28 +1378,28 @@ function et(t) {
1378
1378
  function it(t) {
1379
1379
  return typeof t == "bigint";
1380
1380
  }
1381
- const ma = z(m(_a)), cn = z(m(_a)), dn = ma, at = (t) => Object.assign(z(t), { startsWith: (e) => {
1382
- return at(C(t, (i = e, m((a) => et(a) && a.startsWith(i)))));
1381
+ const ya = I(m(ma)), dn = I(m(ma)), un = ya, at = (t) => Object.assign(I(t), { startsWith: (e) => {
1382
+ return at($(t, (i = e, m((a) => et(a) && a.startsWith(i)))));
1383
1383
  var i;
1384
1384
  }, endsWith: (e) => {
1385
- return at(C(t, (i = e, m((a) => et(a) && a.endsWith(i)))));
1385
+ return at($(t, (i = e, m((a) => et(a) && a.endsWith(i)))));
1386
1386
  var i;
1387
- }, minLength: (e) => at(C(t, ((i) => m((a) => et(a) && a.length >= i))(e))), length: (e) => at(C(t, ((i) => m((a) => et(a) && a.length === i))(e))), maxLength: (e) => at(C(t, ((i) => m((a) => et(a) && a.length <= i))(e))), includes: (e) => {
1388
- return at(C(t, (i = e, m((a) => et(a) && a.includes(i)))));
1387
+ }, minLength: (e) => at($(t, ((i) => m((a) => et(a) && a.length >= i))(e))), length: (e) => at($(t, ((i) => m((a) => et(a) && a.length === i))(e))), maxLength: (e) => at($(t, ((i) => m((a) => et(a) && a.length <= i))(e))), includes: (e) => {
1388
+ return at($(t, (i = e, m((a) => et(a) && a.includes(i)))));
1389
1389
  var i;
1390
1390
  }, regex: (e) => {
1391
- return at(C(t, (i = e, m((a) => et(a) && !!a.match(i)))));
1391
+ return at($(t, (i = e, m((a) => et(a) && !!a.match(i)))));
1392
1392
  var i;
1393
- } }), gi = at(m(et)), G = (t) => Object.assign(z(t), { between: (e, i) => G(C(t, ((a, o) => m((n) => Z(n) && a <= n && o >= n))(e, i))), lt: (e) => G(C(t, ((i) => m((a) => Z(a) && a < i))(e))), gt: (e) => G(C(t, ((i) => m((a) => Z(a) && a > i))(e))), lte: (e) => G(C(t, ((i) => m((a) => Z(a) && a <= i))(e))), gte: (e) => G(C(t, ((i) => m((a) => Z(a) && a >= i))(e))), int: () => G(C(t, m((e) => Z(e) && Number.isInteger(e)))), finite: () => G(C(t, m((e) => Z(e) && Number.isFinite(e)))), positive: () => G(C(t, m((e) => Z(e) && e > 0))), negative: () => G(C(t, m((e) => Z(e) && e < 0))) }), un = G(m(Z)), ot = (t) => Object.assign(z(t), { between: (e, i) => ot(C(t, ((a, o) => m((n) => it(n) && a <= n && o >= n))(e, i))), lt: (e) => ot(C(t, ((i) => m((a) => it(a) && a < i))(e))), gt: (e) => ot(C(t, ((i) => m((a) => it(a) && a > i))(e))), lte: (e) => ot(C(t, ((i) => m((a) => it(a) && a <= i))(e))), gte: (e) => ot(C(t, ((i) => m((a) => it(a) && a >= i))(e))), positive: () => ot(C(t, m((e) => it(e) && e > 0))), negative: () => ot(C(t, m((e) => it(e) && e < 0))) }), pn = ot(m(it)), hn = z(m(function(t) {
1393
+ } }), gi = at(m(et)), G = (t) => Object.assign(I(t), { between: (e, i) => G($(t, ((a, o) => m((n) => Z(n) && a <= n && o >= n))(e, i))), lt: (e) => G($(t, ((i) => m((a) => Z(a) && a < i))(e))), gt: (e) => G($(t, ((i) => m((a) => Z(a) && a > i))(e))), lte: (e) => G($(t, ((i) => m((a) => Z(a) && a <= i))(e))), gte: (e) => G($(t, ((i) => m((a) => Z(a) && a >= i))(e))), int: () => G($(t, m((e) => Z(e) && Number.isInteger(e)))), finite: () => G($(t, m((e) => Z(e) && Number.isFinite(e)))), positive: () => G($(t, m((e) => Z(e) && e > 0))), negative: () => G($(t, m((e) => Z(e) && e < 0))) }), pn = G(m(Z)), ot = (t) => Object.assign(I(t), { between: (e, i) => ot($(t, ((a, o) => m((n) => it(n) && a <= n && o >= n))(e, i))), lt: (e) => ot($(t, ((i) => m((a) => it(a) && a < i))(e))), gt: (e) => ot($(t, ((i) => m((a) => it(a) && a > i))(e))), lte: (e) => ot($(t, ((i) => m((a) => it(a) && a <= i))(e))), gte: (e) => ot($(t, ((i) => m((a) => it(a) && a >= i))(e))), positive: () => ot($(t, m((e) => it(e) && e > 0))), negative: () => ot($(t, m((e) => it(e) && e < 0))) }), hn = ot(m(it)), fn = I(m(function(t) {
1394
1394
  return typeof t == "boolean";
1395
- })), fn = z(m(function(t) {
1395
+ })), wn = I(m(function(t) {
1396
1396
  return typeof t == "symbol";
1397
- })), wn = z(m(function(t) {
1397
+ })), gn = I(m(function(t) {
1398
1398
  return t == null;
1399
- })), gn = z(m(function(t) {
1399
+ })), bn = I(m(function(t) {
1400
1400
  return t != null;
1401
1401
  }));
1402
- var zt = { __proto__: null, matcher: j, optional: Ue, array: function(...t) {
1402
+ var At = { __proto__: null, matcher: j, optional: Ue, array: function(...t) {
1403
1403
  return me({ [j]: () => ({ match: (e) => {
1404
1404
  if (!Array.isArray(e))
1405
1405
  return { matched: !1 };
@@ -1414,10 +1414,10 @@ var zt = { __proto__: null, matcher: j, optional: Ue, array: function(...t) {
1414
1414
  const o = (n, r) => {
1415
1415
  a[n] = (a[n] || []).concat([r]);
1416
1416
  };
1417
- return { matched: e.every((n) => T(i, n, o)), selections: a };
1417
+ return { matched: e.every((n) => E(i, n, o)), selections: a };
1418
1418
  }, getSelectionKeys: () => t.length === 0 ? [] : N(t[0]) }) });
1419
1419
  }, set: function(...t) {
1420
- return z({ [j]: () => ({ match: (e) => {
1420
+ return I({ [j]: () => ({ match: (e) => {
1421
1421
  if (!(e instanceof Set))
1422
1422
  return { matched: !1 };
1423
1423
  let i = {};
@@ -1428,17 +1428,17 @@ var zt = { __proto__: null, matcher: j, optional: Ue, array: function(...t) {
1428
1428
  const a = (n, r) => {
1429
1429
  i[n] = (i[n] || []).concat([r]);
1430
1430
  }, o = t[0];
1431
- return { matched: rn(e, (n) => T(o, n, a)), selections: i };
1431
+ return { matched: sn(e, (n) => E(o, n, a)), selections: i };
1432
1432
  }, getSelectionKeys: () => t.length === 0 ? [] : N(t[0]) }) });
1433
1433
  }, map: function(...t) {
1434
- return z({ [j]: () => ({ match: (e) => {
1434
+ return I({ [j]: () => ({ match: (e) => {
1435
1435
  if (!(e instanceof Map))
1436
1436
  return { matched: !1 };
1437
1437
  let i = {};
1438
1438
  if (e.size === 0)
1439
1439
  return { matched: !0, selections: i };
1440
- const a = (s, c) => {
1441
- i[s] = (i[s] || []).concat([c]);
1440
+ const a = (s, l) => {
1441
+ i[s] = (i[s] || []).concat([l]);
1442
1442
  };
1443
1443
  if (t.length === 0)
1444
1444
  return { matched: !0 };
@@ -1446,38 +1446,38 @@ var zt = { __proto__: null, matcher: j, optional: Ue, array: function(...t) {
1446
1446
  if (t.length === 1)
1447
1447
  throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${(o = t[0]) == null ? void 0 : o.toString()}`);
1448
1448
  const [n, r] = t;
1449
- return { matched: sn(e, (s, c) => {
1450
- const d = T(n, c, a), u = T(r, s, a);
1449
+ return { matched: ln(e, (s, l) => {
1450
+ const d = E(n, l, a), u = E(r, s, a);
1451
1451
  return d && u;
1452
1452
  }), selections: i };
1453
1453
  }, getSelectionKeys: () => t.length === 0 ? [] : [...N(t[0]), ...N(t[1])] }) });
1454
1454
  }, record: function(...t) {
1455
- return z({ [j]: () => ({ match: (e) => {
1455
+ return I({ [j]: () => ({ match: (e) => {
1456
1456
  if (e === null || typeof e != "object" || Array.isArray(e))
1457
1457
  return { matched: !1 };
1458
1458
  var i;
1459
1459
  if (t.length === 0)
1460
1460
  throw new Error(`\`P.record\` wasn't given enough arguments. Expected (value) or (key, value), received ${(i = t[0]) == null ? void 0 : i.toString()}`);
1461
1461
  let a = {};
1462
- const o = (s, c) => {
1463
- a[s] = (a[s] || []).concat([c]);
1462
+ const o = (s, l) => {
1463
+ a[s] = (a[s] || []).concat([l]);
1464
1464
  }, [n, r] = t.length === 1 ? [gi, t[0]] : t;
1465
- return { matched: ln(e, (s, c) => {
1466
- const d = typeof s != "string" || Number.isNaN(Number(s)) ? null : Number(s), u = d !== null && T(n, d, o), l = T(n, s, o), w = T(r, c, o);
1467
- return (l || u) && w;
1465
+ return { matched: cn(e, (s, l) => {
1466
+ const d = typeof s != "string" || Number.isNaN(Number(s)) ? null : Number(s), u = d !== null && E(n, d, o), c = E(n, s, o), w = E(r, l, o);
1467
+ return (c || u) && w;
1468
1468
  }), selections: a };
1469
1469
  }, getSelectionKeys: () => t.length === 0 ? [] : [...N(t[0]), ...N(t[1])] }) });
1470
- }, intersection: C, union: va, not: function(t) {
1471
- return z({ [j]: () => ({ match: (e) => ({ matched: !T(t, e, () => {
1470
+ }, intersection: $, union: _a, not: function(t) {
1471
+ return I({ [j]: () => ({ match: (e) => ({ matched: !E(t, e, () => {
1472
1472
  }) }), getSelectionKeys: () => [], matcherType: "not" }) });
1473
- }, when: m, select: Et, any: ma, unknown: cn, _: dn, string: gi, number: un, bigint: pn, boolean: hn, symbol: fn, nullish: wn, nonNullable: gn, instanceOf: function(t) {
1474
- return z(m(function(e) {
1473
+ }, when: m, select: Tt, any: ya, unknown: dn, _: un, string: gi, number: pn, bigint: hn, boolean: fn, symbol: wn, nullish: gn, nonNullable: bn, instanceOf: function(t) {
1474
+ return I(m(function(e) {
1475
1475
  return (i) => i instanceof e;
1476
1476
  }(t)));
1477
1477
  }, shape: function(t) {
1478
- return z(m(nn(t)));
1478
+ return I(m(rn(t)));
1479
1479
  } };
1480
- class bn extends Error {
1480
+ class vn extends Error {
1481
1481
  constructor(e) {
1482
1482
  let i;
1483
1483
  try {
@@ -1490,9 +1490,9 @@ class bn extends Error {
1490
1490
  }
1491
1491
  const ye = { matched: !1, value: void 0 };
1492
1492
  function We(t) {
1493
- return new Vt(t, ye);
1493
+ return new Yt(t, ye);
1494
1494
  }
1495
- class Vt {
1495
+ class Yt {
1496
1496
  constructor(e, i) {
1497
1497
  this.input = void 0, this.state = void 0, this.input = e, this.state = i;
1498
1498
  }
@@ -1505,19 +1505,19 @@ class Vt {
1505
1505
  let n = !1, r = {};
1506
1506
  const s = (d, u) => {
1507
1507
  n = !0, r[d] = u;
1508
- }, c = !a.some((d) => T(d, this.input, s)) || o && !o(this.input) ? ye : { matched: !0, value: i(n ? Wt in r ? r[Wt] : r : this.input, this.input) };
1509
- return new Vt(this.input, c);
1508
+ }, l = !a.some((d) => E(d, this.input, s)) || o && !o(this.input) ? ye : { matched: !0, value: i(n ? Vt in r ? r[Vt] : r : this.input, this.input) };
1509
+ return new Yt(this.input, l);
1510
1510
  }
1511
1511
  when(e, i) {
1512
1512
  if (this.state.matched)
1513
1513
  return this;
1514
1514
  const a = !!e(this.input);
1515
- return new Vt(this.input, a ? { matched: !0, value: i(this.input, this.input) } : ye);
1515
+ return new Yt(this.input, a ? { matched: !0, value: i(this.input, this.input) } : ye);
1516
1516
  }
1517
1517
  otherwise(e) {
1518
1518
  return this.state.matched ? this.state.value : e(this.input);
1519
1519
  }
1520
- exhaustive(e = vn) {
1520
+ exhaustive(e = _n) {
1521
1521
  return this.state.matched ? this.state.value : e(this.input);
1522
1522
  }
1523
1523
  run() {
@@ -1530,10 +1530,10 @@ class Vt {
1530
1530
  return this;
1531
1531
  }
1532
1532
  }
1533
- function vn(t) {
1534
- throw new bn(t);
1533
+ function _n(t) {
1534
+ throw new vn(t);
1535
1535
  }
1536
- var _n = ["other", "few", "many", "two", "one", "zero"], bi = ({
1536
+ var mn = ["other", "few", "many", "two", "one", "zero"], bi = ({
1537
1537
  terms: t,
1538
1538
  overrides: e,
1539
1539
  locale: i
@@ -1543,23 +1543,23 @@ var _n = ["other", "few", "many", "two", "one", "zero"], bi = ({
1543
1543
  const s = (e == null ? void 0 : e[n]) ?? t[n];
1544
1544
  switch (typeof s) {
1545
1545
  case "string":
1546
- return s.replace(/{{(\w+)}}/g, (c, d) => {
1546
+ return s.replace(/{{(\w+)}}/g, (l, d) => {
1547
1547
  var u;
1548
1548
  return ((u = r == null ? void 0 : r[d]) == null ? void 0 : u.toString()) ?? "";
1549
1549
  });
1550
1550
  case "object": {
1551
1551
  if (typeof (r == null ? void 0 : r.count) != "number")
1552
1552
  throw new Error(`Missing count for translation key “${n.toString()}”`);
1553
- let c = a.select(r.count);
1554
- if (!(c in s)) {
1555
- const d = _n.find((u) => u in s);
1553
+ let l = a.select(r.count);
1554
+ if (!(l in s)) {
1555
+ const d = mn.find((u) => u in s);
1556
1556
  if (!d)
1557
1557
  throw new Error(`Missing plural rule for translation key “${n.toString()}”`);
1558
- c = d;
1558
+ l = d;
1559
1559
  }
1560
- return s[c].replace(/{{(\w+)}}/g, (d, u) => {
1561
- var l;
1562
- return ((l = r == null ? void 0 : r[u]) == null ? void 0 : l.toString()) ?? "";
1560
+ return s[l].replace(/{{(\w+)}}/g, (d, u) => {
1561
+ var c;
1562
+ return ((c = r == null ? void 0 : r[u]) == null ? void 0 : c.toString()) ?? "";
1563
1563
  });
1564
1564
  }
1565
1565
  default:
@@ -1567,25 +1567,25 @@ var _n = ["other", "few", "many", "two", "one", "zero"], bi = ({
1567
1567
  }
1568
1568
  }
1569
1569
  return o;
1570
- }, mn = 0;
1570
+ }, yn = 0;
1571
1571
  function p(t, e, i, a, o, n) {
1572
- var r, s, c = {};
1572
+ var r, s, l = {};
1573
1573
  for (s in e)
1574
- s == "ref" ? r = e[s] : c[s] = e[s];
1575
- var d = { type: t, props: c, key: i, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: --mn, __source: o, __self: n };
1574
+ s == "ref" ? r = e[s] : l[s] = e[s];
1575
+ var d = { type: t, props: l, key: i, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: --yn, __source: o, __self: n };
1576
1576
  if (typeof t == "function" && (r = t.defaultProps))
1577
1577
  for (s in r)
1578
- c[s] === void 0 && (c[s] = r[s]);
1578
+ l[s] === void 0 && (l[s] = r[s]);
1579
1579
  return f.vnode && f.vnode(d), d;
1580
1580
  }
1581
- var vi = ea(null), ya = (t) => ({
1581
+ var vi = ia(null), xa = (t) => ({
1582
1582
  defaultTerms: t,
1583
1583
  TranslationProvider: ({ terms: e, children: i, locale: a }) => {
1584
1584
  const o = ut(() => bi({ locale: a, terms: t, overrides: e }), [e, a]);
1585
1585
  return /* @__PURE__ */ p(vi.Provider, { value: { t: o, locale: a }, children: i });
1586
1586
  },
1587
1587
  useTranslation: () => {
1588
- const e = sa(vi);
1588
+ const e = la(vi);
1589
1589
  if (e === null)
1590
1590
  throw new Error("Please wrap useTranslation in a TranslationProvider");
1591
1591
  return { t: e.t, locale: e.locale };
@@ -1594,13 +1594,13 @@ var vi = ea(null), ya = (t) => ({
1594
1594
  overrides: e,
1595
1595
  locale: i
1596
1596
  }) => bi({ terms: t, overrides: e, locale: i })
1597
- }), { TranslationProvider: Hr, useTranslation: Ur, createTFunction: Wr, defaultTerms: yn } = ya({ submission_redirect_message: "Almost there! Please complete your submission here:", complete_submission: "Complete submission", 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}}. Your answers are saved, so you can come back after then and submit your application. We apologise for the inconvenience.", submission_provider_maintenance_later: "Sorry, our recruitment system is down for scheduled maintenance until later today. Your answers are saved, so you can come back after then and submit your application. 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_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" });
1597
+ }), { TranslationProvider: Hr, useTranslation: Ur, createTFunction: Wr, defaultTerms: xn } = xa({ submission_redirect_message: "Almost there! Please complete your submission here:", complete_submission: "Complete submission", 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}}. Your answers are saved, so you can come back after then and submit your application. We apologise for the inconvenience.", submission_provider_maintenance_later: "Sorry, our recruitment system is down for scheduled maintenance until later today. Your answers are saved, so you can come back after then and submit your application. 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_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" });
1598
1598
  const {
1599
- TranslationProvider: xn,
1599
+ TranslationProvider: kn,
1600
1600
  useTranslation: Jt,
1601
- createTFunction: kn
1602
- } = ya({
1603
- ...yn,
1601
+ createTFunction: Vr
1602
+ } = xa({
1603
+ ...xn,
1604
1604
  error_heading: "Something unexpected happened",
1605
1605
  undo: "Change answer",
1606
1606
  conversation_history: "Conversation history",
@@ -1650,7 +1650,7 @@ const {
1650
1650
  loading: "Loading",
1651
1651
  minimize: "Minimise"
1652
1652
  });
1653
- function xa(t, e) {
1653
+ function ka(t, e) {
1654
1654
  if (!t)
1655
1655
  throw new Error(e);
1656
1656
  }
@@ -1668,7 +1668,7 @@ function Ve() {
1668
1668
  var i = $t;
1669
1669
  for ($t = void 0, ke++; i !== void 0; ) {
1670
1670
  var a = i.o;
1671
- if (i.o = void 0, i.f &= -3, !(8 & i.f) && $a(i))
1671
+ if (i.o = void 0, i.f &= -3, !(8 & i.f) && Sa(i))
1672
1672
  try {
1673
1673
  i.c();
1674
1674
  } catch (o) {
@@ -1681,14 +1681,14 @@ function Ve() {
1681
1681
  throw t;
1682
1682
  }
1683
1683
  }
1684
- var $ = void 0, $t = void 0, ft = 0, ke = 0, Yt = 0;
1685
- function ka(t) {
1686
- if ($ !== void 0) {
1684
+ var x = void 0, $t = void 0, ft = 0, ke = 0, Kt = 0;
1685
+ function $a(t) {
1686
+ if (x !== void 0) {
1687
1687
  var e = t.n;
1688
- if (e === void 0 || e.t !== $)
1689
- return e = { i: 0, S: t, p: $.s, n: void 0, t: $, e: void 0, x: void 0, r: e }, $.s !== void 0 && ($.s.n = e), $.s = e, t.n = e, 32 & $.f && t.S(e), e;
1688
+ if (e === void 0 || e.t !== x)
1689
+ return e = { i: 0, S: t, p: x.s, n: void 0, t: x, e: void 0, x: void 0, r: e }, x.s !== void 0 && (x.s.n = e), x.s = e, t.n = e, 32 & x.f && t.S(e), e;
1690
1690
  if (e.i === -1)
1691
- return e.i = 0, e.n !== void 0 && (e.n.p = e.p, e.p !== void 0 && (e.p.n = e.n), e.p = $.s, e.n = void 0, $.s.n = e, $.s = e), e;
1691
+ return e.i = 0, e.n !== void 0 && (e.n.p = e.p, e.p !== void 0 && (e.p.n = e.n), e.p = x.s, e.n = void 0, x.s.n = e, x.s = e), e;
1692
1692
  }
1693
1693
  }
1694
1694
  function A(t) {
@@ -1710,12 +1710,12 @@ A.prototype.U = function(t) {
1710
1710
  A.prototype.subscribe = function(t) {
1711
1711
  var e = this;
1712
1712
  return Ke(function() {
1713
- var i = e.value, a = $;
1714
- $ = void 0;
1713
+ var i = e.value, a = x;
1714
+ x = void 0;
1715
1715
  try {
1716
1716
  t(i);
1717
1717
  } finally {
1718
- $ = a;
1718
+ x = a;
1719
1719
  }
1720
1720
  });
1721
1721
  };
@@ -1729,22 +1729,22 @@ A.prototype.toJSON = function() {
1729
1729
  return this.value;
1730
1730
  };
1731
1731
  A.prototype.peek = function() {
1732
- var t = $;
1733
- $ = void 0;
1732
+ var t = x;
1733
+ x = void 0;
1734
1734
  try {
1735
1735
  return this.value;
1736
1736
  } finally {
1737
- $ = t;
1737
+ x = t;
1738
1738
  }
1739
1739
  };
1740
1740
  Object.defineProperty(A.prototype, "value", { get: function() {
1741
- var t = ka(this);
1741
+ var t = $a(this);
1742
1742
  return t !== void 0 && (t.i = this.i), this.v;
1743
1743
  }, set: function(t) {
1744
1744
  if (t !== this.v) {
1745
1745
  if (ke > 100)
1746
1746
  throw new Error("Cycle detected");
1747
- this.v = t, this.i++, Yt++, ft++;
1747
+ this.v = t, this.i++, Kt++, ft++;
1748
1748
  try {
1749
1749
  for (var e = this.t; e !== void 0; e = e.x)
1750
1750
  e.t.N();
@@ -1756,13 +1756,13 @@ Object.defineProperty(A.prototype, "value", { get: function() {
1756
1756
  function U(t) {
1757
1757
  return new A(t);
1758
1758
  }
1759
- function $a(t) {
1759
+ function Sa(t) {
1760
1760
  for (var e = t.s; e !== void 0; e = e.n)
1761
1761
  if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i)
1762
1762
  return !0;
1763
1763
  return !1;
1764
1764
  }
1765
- function Sa(t) {
1765
+ function Ca(t) {
1766
1766
  for (var e = t.s; e !== void 0; e = e.n) {
1767
1767
  var i = e.S.n;
1768
1768
  if (i !== void 0 && (e.r = i), e.S.n = e, e.i = -1, e.n === void 0) {
@@ -1771,7 +1771,7 @@ function Sa(t) {
1771
1771
  }
1772
1772
  }
1773
1773
  }
1774
- function Ca(t) {
1774
+ function Ea(t) {
1775
1775
  for (var e = t.s, i = void 0; e !== void 0; ) {
1776
1776
  var a = e.p;
1777
1777
  e.i === -1 ? (e.S.U(e), a !== void 0 && (a.n = e.n), e.n !== void 0 && (e.n.p = a)) : i = e, e.S.n = e.r, e.r !== void 0 && (e.r = void 0), e = a;
@@ -1779,24 +1779,24 @@ function Ca(t) {
1779
1779
  t.s = i;
1780
1780
  }
1781
1781
  function vt(t) {
1782
- A.call(this, void 0), this.x = t, this.s = void 0, this.g = Yt - 1, this.f = 4;
1782
+ A.call(this, void 0), this.x = t, this.s = void 0, this.g = Kt - 1, this.f = 4;
1783
1783
  }
1784
1784
  (vt.prototype = new A()).h = function() {
1785
1785
  if (this.f &= -3, 1 & this.f)
1786
1786
  return !1;
1787
- if ((36 & this.f) == 32 || (this.f &= -5, this.g === Yt))
1787
+ if ((36 & this.f) == 32 || (this.f &= -5, this.g === Kt))
1788
1788
  return !0;
1789
- if (this.g = Yt, this.f |= 1, this.i > 0 && !$a(this))
1789
+ if (this.g = Kt, this.f |= 1, this.i > 0 && !Sa(this))
1790
1790
  return this.f &= -2, !0;
1791
- var t = $;
1791
+ var t = x;
1792
1792
  try {
1793
- Sa(this), $ = this;
1793
+ Ca(this), x = this;
1794
1794
  var e = this.x();
1795
1795
  (16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
1796
1796
  } catch (i) {
1797
1797
  this.v = i, this.f |= 16, this.i++;
1798
1798
  }
1799
- return $ = t, Ca(this), this.f &= -2, !0;
1799
+ return x = t, Ea(this), this.f &= -2, !0;
1800
1800
  };
1801
1801
  vt.prototype.S = function(t) {
1802
1802
  if (this.t === void 0) {
@@ -1823,7 +1823,7 @@ vt.prototype.N = function() {
1823
1823
  Object.defineProperty(vt.prototype, "value", { get: function() {
1824
1824
  if (1 & this.f)
1825
1825
  throw new Error("Cycle detected");
1826
- var t = ka(this);
1826
+ var t = $a(this);
1827
1827
  if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f)
1828
1828
  throw this.v;
1829
1829
  return this.v;
@@ -1831,35 +1831,35 @@ Object.defineProperty(vt.prototype, "value", { get: function() {
1831
1831
  function Cn(t) {
1832
1832
  return new vt(t);
1833
1833
  }
1834
- function Ea(t) {
1834
+ function Ta(t) {
1835
1835
  var e = t.u;
1836
1836
  if (t.u = void 0, typeof e == "function") {
1837
1837
  ft++;
1838
- var i = $;
1839
- $ = void 0;
1838
+ var i = x;
1839
+ x = void 0;
1840
1840
  try {
1841
1841
  e();
1842
1842
  } catch (a) {
1843
1843
  throw t.f &= -2, t.f |= 8, Ye(t), a;
1844
1844
  } finally {
1845
- $ = i, Ve();
1845
+ x = i, Ve();
1846
1846
  }
1847
1847
  }
1848
1848
  }
1849
1849
  function Ye(t) {
1850
1850
  for (var e = t.s; e !== void 0; e = e.n)
1851
1851
  e.S.U(e);
1852
- t.x = void 0, t.s = void 0, Ea(t);
1852
+ t.x = void 0, t.s = void 0, Ta(t);
1853
1853
  }
1854
1854
  function En(t) {
1855
- if ($ !== this)
1855
+ if (x !== this)
1856
1856
  throw new Error("Out-of-order effect");
1857
- Ca(this), $ = t, this.f &= -2, 8 & this.f && Ye(this), Ve();
1857
+ Ea(this), x = t, this.f &= -2, 8 & this.f && Ye(this), Ve();
1858
1858
  }
1859
- function Pt(t) {
1859
+ function It(t) {
1860
1860
  this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
1861
1861
  }
1862
- Pt.prototype.c = function() {
1862
+ It.prototype.c = function() {
1863
1863
  var t = this.S();
1864
1864
  try {
1865
1865
  if (8 & this.f || this.x === void 0)
@@ -1870,21 +1870,21 @@ Pt.prototype.c = function() {
1870
1870
  t();
1871
1871
  }
1872
1872
  };
1873
- Pt.prototype.S = function() {
1873
+ It.prototype.S = function() {
1874
1874
  if (1 & this.f)
1875
1875
  throw new Error("Cycle detected");
1876
- this.f |= 1, this.f &= -9, Ea(this), Sa(this), ft++;
1877
- var t = $;
1878
- return $ = this, En.bind(this, t);
1876
+ this.f |= 1, this.f &= -9, Ta(this), Ca(this), ft++;
1877
+ var t = x;
1878
+ return x = this, En.bind(this, t);
1879
1879
  };
1880
- Pt.prototype.N = function() {
1880
+ It.prototype.N = function() {
1881
1881
  2 & this.f || (this.f |= 2, this.o = $t, $t = this);
1882
1882
  };
1883
- Pt.prototype.d = function() {
1883
+ It.prototype.d = function() {
1884
1884
  this.f |= 8, 1 & this.f || Ye(this);
1885
1885
  };
1886
1886
  function Ke(t) {
1887
- var e = new Pt(t);
1887
+ var e = new It(t);
1888
1888
  try {
1889
1889
  e.c();
1890
1890
  } catch (i) {
@@ -1897,10 +1897,10 @@ function _t(t, e) {
1897
1897
  f[t] = e.bind(null, f[t] || function() {
1898
1898
  });
1899
1899
  }
1900
- function Kt(t) {
1900
+ function qt(t) {
1901
1901
  ne && ne(), ne = t && t.S();
1902
1902
  }
1903
- function Ta(t) {
1903
+ function Pa(t) {
1904
1904
  var e = this, i = t.data, a = Pn(i);
1905
1905
  a.value = i;
1906
1906
  var o = ut(function() {
@@ -1911,7 +1911,7 @@ function Ta(t) {
1911
1911
  }
1912
1912
  return e.__$u.c = function() {
1913
1913
  var r;
1914
- !Ui(o.peek()) && ((r = e.base) == null ? void 0 : r.nodeType) === 3 ? e.base.data = o.peek() : (e.__$f |= 1, e.setState({}));
1914
+ !Wi(o.peek()) && ((r = e.base) == null ? void 0 : r.nodeType) === 3 ? e.base.data = o.peek() : (e.__$f |= 1, e.setState({}));
1915
1915
  }, Cn(function() {
1916
1916
  var r = a.value.value;
1917
1917
  return r === 0 ? 0 : r === !0 ? "" : r || "";
@@ -1919,8 +1919,8 @@ function Ta(t) {
1919
1919
  }, []);
1920
1920
  return o.value;
1921
1921
  }
1922
- Ta.displayName = "_st";
1923
- Object.defineProperties(A.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: Ta }, props: { configurable: !0, get: function() {
1922
+ Pa.displayName = "_st";
1923
+ Object.defineProperties(A.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: Pa }, props: { configurable: !0, get: function() {
1924
1924
  return { data: this };
1925
1925
  } }, __b: { configurable: !0, value: 1 } });
1926
1926
  _t("__b", function(t, e) {
@@ -1935,7 +1935,7 @@ _t("__b", function(t, e) {
1935
1935
  t(e);
1936
1936
  });
1937
1937
  _t("__r", function(t, e) {
1938
- Kt();
1938
+ qt();
1939
1939
  var i, a = e.__c;
1940
1940
  a && (a.__$f &= -2, (i = a.__$u) === void 0 && (a.__$u = i = function(o) {
1941
1941
  var n;
@@ -1944,13 +1944,13 @@ _t("__r", function(t, e) {
1944
1944
  }), n.c = function() {
1945
1945
  a.__$f |= 1, a.setState({});
1946
1946
  }, n;
1947
- }())), Kt(i), t(e);
1947
+ }())), qt(i), t(e);
1948
1948
  });
1949
1949
  _t("__e", function(t, e, i, a) {
1950
- Kt(), t(e, i, a);
1950
+ qt(), t(e, i, a);
1951
1951
  });
1952
1952
  _t("diffed", function(t, e) {
1953
- Kt();
1953
+ qt();
1954
1954
  var i;
1955
1955
  if (typeof e.type == "string" && (i = e.__e)) {
1956
1956
  var a = e.__np, o = e.props;
@@ -1963,9 +1963,9 @@ _t("diffed", function(t, e) {
1963
1963
  }
1964
1964
  else
1965
1965
  i.U = n = {};
1966
- for (var c in a) {
1967
- var d = n[c], u = a[c];
1968
- d === void 0 ? (d = Tn(i, c, u, o), n[c] = d) : d.o(u, o);
1966
+ for (var l in a) {
1967
+ var d = n[l], u = a[l];
1968
+ d === void 0 ? (d = Tn(i, l, u, o), n[l] = d) : d.o(u, o);
1969
1969
  }
1970
1970
  }
1971
1971
  }
@@ -2043,7 +2043,7 @@ function zn() {
2043
2043
  ]);
2044
2044
  }
2045
2045
  const Se = /* @__PURE__ */ new WeakMap(), re = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap();
2046
- function Dn(t) {
2046
+ function An(t) {
2047
2047
  const e = new Promise((i, a) => {
2048
2048
  const o = () => {
2049
2049
  t.removeEventListener("success", n), t.removeEventListener("error", r);
@@ -2088,10 +2088,10 @@ let Ce = {
2088
2088
  return t instanceof IDBTransaction && (e === "done" || e === "store") ? !0 : e in t;
2089
2089
  }
2090
2090
  };
2091
- function Pa(t) {
2091
+ function Ia(t) {
2092
2092
  Ce = t(Ce);
2093
2093
  }
2094
- function An(t) {
2094
+ function Dn(t) {
2095
2095
  return zn().includes(t) ? function(...e) {
2096
2096
  return t.apply(Ee(this), e), lt(this.request);
2097
2097
  } : function(...e) {
@@ -2099,11 +2099,11 @@ function An(t) {
2099
2099
  };
2100
2100
  }
2101
2101
  function Nn(t) {
2102
- return typeof t == "function" ? An(t) : (t instanceof IDBTransaction && On(t), $e(t, In()) ? new Proxy(t, Ce) : t);
2102
+ return typeof t == "function" ? Dn(t) : (t instanceof IDBTransaction && On(t), $e(t, In()) ? new Proxy(t, Ce) : t);
2103
2103
  }
2104
2104
  function lt(t) {
2105
2105
  if (t instanceof IDBRequest)
2106
- return Dn(t);
2106
+ return An(t);
2107
2107
  if (re.has(t))
2108
2108
  return re.get(t);
2109
2109
  const e = Nn(t);
@@ -2112,15 +2112,15 @@ function lt(t) {
2112
2112
  const Ee = (t) => Qt.get(t);
2113
2113
  function jn(t, e, { blocked: i, upgrade: a, blocking: o, terminated: n } = {}) {
2114
2114
  const r = indexedDB.open(t, e), s = lt(r);
2115
- return a && r.addEventListener("upgradeneeded", (c) => {
2116
- a(lt(r.result), c.oldVersion, c.newVersion, lt(r.transaction), c);
2117
- }), i && r.addEventListener("blocked", (c) => i(
2115
+ return a && r.addEventListener("upgradeneeded", (l) => {
2116
+ a(lt(r.result), l.oldVersion, l.newVersion, lt(r.transaction), l);
2117
+ }), i && r.addEventListener("blocked", (l) => i(
2118
2118
  // Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405
2119
- c.oldVersion,
2120
- c.newVersion,
2121
- c
2122
- )), s.then((c) => {
2123
- n && c.addEventListener("close", () => n()), o && c.addEventListener("versionchange", (d) => o(d.oldVersion, d.newVersion, d));
2119
+ l.oldVersion,
2120
+ l.newVersion,
2121
+ l
2122
+ )), s.then((l) => {
2123
+ n && l.addEventListener("close", () => n()), o && l.addEventListener("versionchange", (d) => o(d.oldVersion, d.newVersion, d));
2124
2124
  }).catch(() => {
2125
2125
  }), s;
2126
2126
  }
@@ -2137,27 +2137,27 @@ function yi(t, e) {
2137
2137
  )
2138
2138
  return;
2139
2139
  const n = async function(r, ...s) {
2140
- const c = this.transaction(r, o ? "readwrite" : "readonly");
2141
- let d = c.store;
2140
+ const l = this.transaction(r, o ? "readwrite" : "readonly");
2141
+ let d = l.store;
2142
2142
  return a && (d = d.index(s.shift())), (await Promise.all([
2143
2143
  d[i](...s),
2144
- o && c.done
2144
+ o && l.done
2145
2145
  ]))[0];
2146
2146
  };
2147
2147
  return se.set(e, n), n;
2148
2148
  }
2149
- Pa((t) => ({
2149
+ Ia((t) => ({
2150
2150
  ...t,
2151
2151
  get: (e, i, a) => yi(e, i) || t.get(e, i, a),
2152
2152
  has: (e, i) => !!yi(e, i) || t.has(e, i)
2153
2153
  }));
2154
- const Bn = ["continue", "continuePrimaryKey", "advance"], xi = {}, Te = /* @__PURE__ */ new WeakMap(), Ia = /* @__PURE__ */ new WeakMap(), Ln = {
2154
+ const Ln = ["continue", "continuePrimaryKey", "advance"], xi = {}, Te = /* @__PURE__ */ new WeakMap(), za = /* @__PURE__ */ new WeakMap(), Bn = {
2155
2155
  get(t, e) {
2156
- if (!Bn.includes(e))
2156
+ if (!Ln.includes(e))
2157
2157
  return t[e];
2158
2158
  let i = xi[e];
2159
2159
  return i || (i = xi[e] = function(...a) {
2160
- Te.set(this, Ia.get(this)[e](...a));
2160
+ Te.set(this, za.get(this)[e](...a));
2161
2161
  }), i;
2162
2162
  }
2163
2163
  };
@@ -2166,14 +2166,14 @@ async function* Rn(...t) {
2166
2166
  if (e instanceof IDBCursor || (e = await e.openCursor(...t)), !e)
2167
2167
  return;
2168
2168
  e = e;
2169
- const i = new Proxy(e, Ln);
2170
- for (Ia.set(i, e), Qt.set(i, Ee(e)); e; )
2169
+ const i = new Proxy(e, Bn);
2170
+ for (za.set(i, e), Qt.set(i, Ee(e)); e; )
2171
2171
  yield i, e = await (Te.get(i) || e.continue()), Te.delete(i);
2172
2172
  }
2173
2173
  function ki(t, e) {
2174
2174
  return e === Symbol.asyncIterator && $e(t, [IDBIndex, IDBObjectStore, IDBCursor]) || e === "iterate" && $e(t, [IDBIndex, IDBObjectStore]);
2175
2175
  }
2176
- Pa((t) => ({
2176
+ Ia((t) => ({
2177
2177
  ...t,
2178
2178
  get(e, i, a) {
2179
2179
  return ki(e, i) ? Rn : t.get(e, i, a);
@@ -2182,7 +2182,7 @@ Pa((t) => ({
2182
2182
  return ki(e, i) || t.has(e, i);
2183
2183
  }
2184
2184
  }));
2185
- const jt = typeof indexedDB > "u" ? void 0 : jn("inploi-chatbot", 3, {
2185
+ const Mt = typeof indexedDB > "u" ? void 0 : jn("inploi-chatbot", 3, {
2186
2186
  upgrade(t) {
2187
2187
  try {
2188
2188
  t.deleteObjectStore("state");
@@ -2202,31 +2202,31 @@ const jt = typeof indexedDB > "u" ? void 0 : jn("inploi-chatbot", 3, {
2202
2202
  return a;
2203
2203
  })
2204
2204
  });
2205
- let Mt, le, mt;
2205
+ let Ft, le, mt;
2206
2206
  const $i = () => {
2207
- if (!Mt)
2207
+ if (!Ft)
2208
2208
  return mt;
2209
- const t = Mt;
2210
- Mt = void 0;
2211
- const e = qt(t), i = jt == null ? void 0 : jt.then((a) => a.put("state", Hn(t.data), e)).finally(() => {
2209
+ const t = Ft;
2210
+ Ft = void 0;
2211
+ const e = Zt(t), i = Mt == null ? void 0 : Mt.then((a) => a.put("state", Hn(t.data), e)).finally(() => {
2212
2212
  mt === i && (mt = void 0);
2213
2213
  });
2214
2214
  return mt = i, mt;
2215
2215
  }, H = {
2216
2216
  getStateData: async (t, e, i) => {
2217
2217
  var o;
2218
- const a = qt({
2218
+ const a = Zt({
2219
2219
  ...t,
2220
2220
  flowKeys: e,
2221
2221
  context: i
2222
2222
  });
2223
- return (o = await jt) == null ? void 0 : o.get("state", a);
2223
+ return (o = await Mt) == null ? void 0 : o.get("state", a);
2224
2224
  },
2225
2225
  setStateData: (t) => {
2226
- Mt = t, clearTimeout(le), le = setTimeout(() => void $i(), 1e3);
2226
+ Ft = t, clearTimeout(le), le = setTimeout(() => void $i(), 1e3);
2227
2227
  },
2228
2228
  flushStateData: () => (clearTimeout(le), $i() ?? Promise.resolve())
2229
- }, Vr = (t) => (e) => e ? e.type === t : !1, Un = () => typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID() : Math.random().toString(36).slice(2), Si = () => ({
2229
+ }, Yr = (t) => (e) => e ? e.type === t : !1, Un = () => typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID() : Math.random().toString(36).slice(2), Si = () => ({
2230
2230
  messages: [],
2231
2231
  submissions: {},
2232
2232
  currentInput: null,
@@ -2236,16 +2236,16 @@ const $i = () => {
2236
2236
  hasInteracted: !1,
2237
2237
  sequence: 0,
2238
2238
  flowSessionId: Un()
2239
- }), Yr = (t) => (
2239
+ }), Kr = (t) => (
2240
2240
  /** nativeEvent is a hidden property not exposed by JSX's typings */
2241
2241
  We(t).with({
2242
2242
  nativeEvent: {
2243
- submitter: zt.select(zt.union(zt.instanceOf(HTMLButtonElement), zt.instanceOf(HTMLInputElement)))
2243
+ submitter: At.select(At.union(At.instanceOf(HTMLButtonElement), At.instanceOf(HTMLInputElement)))
2244
2244
  }
2245
2245
  }, (e) => e).otherwise(() => {
2246
2246
  throw new Error("invalid submitter");
2247
2247
  })
2248
- ), Ft = (t, e, i, a = 0) => {
2248
+ ), Lt = (t, e, i, a = 0) => {
2249
2249
  if (!e.nextId)
2250
2250
  return i(e.id, {
2251
2251
  stepsMade: a,
@@ -2262,7 +2262,7 @@ const $i = () => {
2262
2262
  };
2263
2263
  const n = e.type === "if-block" ? e.branchId : void 0, r = t.find((d) => d.id === n), s = e.type.includes("question") ? 1 : 0;
2264
2264
  if (r) {
2265
- const d = s + Math.max(Ft(t, o, i, a + s).remainingSteps, Ft(t, r, i, a + s).remainingSteps);
2265
+ const d = s + Math.max(Lt(t, o, i, a + s).remainingSteps, Lt(t, r, i, a + s).remainingSteps);
2266
2266
  return i(e.id, {
2267
2267
  stepsMade: a,
2268
2268
  remainingSteps: d
@@ -2271,31 +2271,31 @@ const $i = () => {
2271
2271
  remainingSteps: d
2272
2272
  };
2273
2273
  }
2274
- const c = s + Ft(t, o, i, a + s).remainingSteps;
2274
+ const l = s + Lt(t, o, i, a + s).remainingSteps;
2275
2275
  return i(e.id, {
2276
2276
  stepsMade: a,
2277
- remainingSteps: c
2277
+ remainingSteps: l
2278
2278
  }), {
2279
2279
  stepsMade: a,
2280
- remainingSteps: c
2280
+ remainingSteps: l
2281
2281
  };
2282
2282
  }, Wn = (t) => {
2283
2283
  const e = {}, i = t.find((a) => a.isHead);
2284
- return i && Ft(t, i, (a, o) => {
2284
+ return i && Lt(t, i, (a, o) => {
2285
2285
  e[a] = o;
2286
2286
  }), e;
2287
- }, qt = (t) => [...t.flowKeys, t.id, t.version, t.build, $n(t.context)].join("/"), Vn = ({
2287
+ }, Zt = (t) => [...t.flowKeys, t.id, t.version, t.build, $n(t.context)].join("/"), Vn = ({
2288
2288
  data: t,
2289
2289
  nodes: e
2290
2290
  }) => {
2291
2291
  const i = t.startedWriteNodeIds === void 0 ? e.some((a) => a.type === "integration-application-submit" && t.nodeHistory.includes(a.id)) : t.startedWriteNodeIds.length > 0;
2292
- return !t.isFinished && !i && Mi(e, t.submissions);
2292
+ return !t.isFinished && !i && Fi(e, t.submissions);
2293
2293
  }, Yn = ({
2294
2294
  data: t,
2295
2295
  nodes: e
2296
2296
  }) => {
2297
2297
  var i;
2298
- return !t.isFinished && ((((i = t.startedWriteNodeIds) == null ? void 0 : i.length) ?? 0) > 0 || Mi(e, t.submissions));
2298
+ return !t.isFinished && ((((i = t.startedWriteNodeIds) == null ? void 0 : i.length) ?? 0) > 0 || Fi(e, t.submissions));
2299
2299
  }, X = U({
2300
2300
  state: "idle"
2301
2301
  }), ce = /* @__PURE__ */ new Set(), rt = (t) => {
@@ -2305,13 +2305,13 @@ const $i = () => {
2305
2305
  } = X.value;
2306
2306
  if (e !== "loaded")
2307
2307
  return;
2308
- xa(i, "No flow to update");
2308
+ ka(i, "No flow to update");
2309
2309
  const a = t(i.data);
2310
2310
  i.data = a, X.value = {
2311
2311
  state: e,
2312
2312
  flow: i
2313
2313
  }, H.setStateData(i);
2314
- }, S = {
2314
+ }, k = {
2315
2315
  current$: X,
2316
2316
  viewState$: U("closed"),
2317
2317
  prepareFlow: async ({
@@ -2325,16 +2325,16 @@ const $i = () => {
2325
2325
  }) => {
2326
2326
  await H.flushStateData().catch(() => {
2327
2327
  });
2328
- const s = await H.getStateData(t, i, e), c = s ?? Si(), d = qt({
2328
+ const s = await H.getStateData(t, i, e), l = s ?? Si(), d = Zt({
2329
2329
  ...t,
2330
2330
  flowKeys: i,
2331
2331
  context: e
2332
2332
  }), u = s !== void 0 && !ce.has(d) && Vn({
2333
- data: c,
2333
+ data: l,
2334
2334
  nodes: t.nodes
2335
2335
  });
2336
2336
  return u || ce.add(d), {
2337
- data: c,
2337
+ data: l,
2338
2338
  offerResume: u,
2339
2339
  startedAt: /* @__PURE__ */ new Date(),
2340
2340
  nodeIdToProgress: Wn(t.nodes),
@@ -2358,12 +2358,12 @@ const $i = () => {
2358
2358
  },
2359
2359
  /** The candidate chose to continue or start again, so this page does not ask about this application again. */
2360
2360
  settleResume: (t) => {
2361
- t.offerResume = !1, ce.add(qt(t));
2361
+ t.offerResume = !1, ce.add(Zt(t));
2362
2362
  },
2363
2363
  cancelCurrentFlow: () => {
2364
2364
  X.value = {
2365
2365
  state: "idle"
2366
- }, S.viewState$.value = "closed";
2366
+ }, k.viewState$.value = "closed";
2367
2367
  },
2368
2368
  markAsFinished: () => rt((t) => ({
2369
2369
  ...t,
@@ -2413,7 +2413,7 @@ const $i = () => {
2413
2413
  state: e,
2414
2414
  flow: i
2415
2415
  } = X.value;
2416
- xa(e === "loaded", "Application not loaded");
2416
+ ka(e === "loaded", "Application not loaded");
2417
2417
  const a = i.data.messages.filter((o) => !o.groupId || !t.includes(o.groupId));
2418
2418
  i.data.messages = a, H.setStateData(i);
2419
2419
  },
@@ -2428,11 +2428,9 @@ const $i = () => {
2428
2428
  flow: t
2429
2429
  }), H.setStateData(t), await H.flushStateData();
2430
2430
  }
2431
- }, Kn = ({
2432
- message: t
2433
- }) => {
2431
+ }, Kn = () => {
2434
2432
  const {
2435
- t: e
2433
+ t
2436
2434
  } = Jt();
2437
2435
  return p("div", {
2438
2436
  class: "flex flex-grow flex-col items-center justify-center",
@@ -2474,13 +2472,10 @@ const $i = () => {
2474
2472
  })]
2475
2473
  }), p("div", {
2476
2474
  class: "flex flex-col gap-2 text-center",
2477
- children: [p("p", {
2475
+ children: p("p", {
2478
2476
  class: "text-error-11 font-bold",
2479
- children: e("error_heading")
2480
- }), t && p("p", {
2481
- class: "text-neutral-11 text-sm",
2482
- children: t
2483
- })]
2477
+ children: t("error_heading")
2478
+ })
2484
2479
  })]
2485
2480
  });
2486
2481
  }, qn = (t) => {
@@ -2555,7 +2550,7 @@ const $i = () => {
2555
2550
  }), Zn = (t) => {
2556
2551
  const i = t / 100, a = 1.3;
2557
2552
  return t < 0 ? "0%" : t > 100 ? "100%" : `${Math.round((1 - (1 - 0.1) * Math.pow(1 - i, a)) * 100)}%`;
2558
- }, Gn = Le("touch-hitbox fr relative flex-none rounded-full p-2 transition-all", {
2553
+ }, Gn = Be("touch-hitbox fr relative flex-none rounded-full p-2 transition-all", {
2559
2554
  variants: {
2560
2555
  variant: {
2561
2556
  neutral: "text-neutral-11 hover:text-neutral-12 active:text-neutral-12 hover:bg-interactive-bg-hover active:bg-interactive-bg-active ",
@@ -2571,7 +2566,7 @@ const $i = () => {
2571
2566
  variant: i,
2572
2567
  ...a
2573
2568
  }) => p("button", {
2574
- class: Be(Gn({
2569
+ class: Le(Gn({
2575
2570
  variant: i
2576
2571
  }), t),
2577
2572
  ...a,
@@ -2590,9 +2585,9 @@ const $i = () => {
2590
2585
  }), Xn = () => p("path", {
2591
2586
  d: "M12.5 6.5L8 11L3.5 6.5"
2592
2587
  }), Jn = () => {
2593
- if (S.current$.value.state !== "loaded")
2588
+ if (k.current$.value.state !== "loaded")
2594
2589
  return null;
2595
- const t = S.current$.value.flow.nodeIdToProgress, e = S.current$.value.flow.data.nodeHistory.at(-1);
2590
+ const t = k.current$.value.flow.nodeIdToProgress, e = k.current$.value.flow.data.nodeHistory.at(-1);
2596
2591
  if (e === void 0)
2597
2592
  return null;
2598
2593
  const i = t[e];
@@ -2614,7 +2609,7 @@ const $i = () => {
2614
2609
  }) => {
2615
2610
  const {
2616
2611
  t: i
2617
- } = Jt(), a = S.viewState$;
2612
+ } = Jt(), a = k.viewState$;
2618
2613
  return p(Y, {
2619
2614
  children: p("header", {
2620
2615
  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",
@@ -2641,17 +2636,17 @@ const $i = () => {
2641
2636
  children: [e.feedback ? p("div", {
2642
2637
  "data-widget": "inploi-feedback",
2643
2638
  "data-key": "chatbot-header",
2644
- class: Be({
2645
- hidden: S.current$.value.state !== "loaded" || a.value !== "maximised"
2639
+ class: Le({
2640
+ hidden: k.current$.value.state !== "loaded" || a.value !== "maximised"
2646
2641
  }),
2647
2642
  children: p("div", {
2648
2643
  class: "ring-neutral-4 bg-neutral-3 h-8 w-[72px] animate-pulse rounded-full ring-1"
2649
2644
  })
2650
- }) : null, S.current$.value.state === "loaded" && p(Pe, {
2645
+ }) : null, k.current$.value.state === "loaded" && p(Pe, {
2651
2646
  class: "mx-1",
2652
2647
  "aria-label": i("restart"),
2653
2648
  onClick: () => {
2654
- S.restart();
2649
+ k.restart();
2655
2650
  },
2656
2651
  children: [p("path", {
2657
2652
  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"
@@ -2672,7 +2667,7 @@ const $i = () => {
2672
2667
  };
2673
2668
  function Ie() {
2674
2669
  }
2675
- const tr = ha(() => import("./chatbot-body-cdaeae9e.js").then((t) => t.ChatbotBody)), za = Le("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", {
2670
+ const tr = fa(() => import("./chatbot-body-79e96f30.js").then((t) => t.ChatbotBody)), Aa = Be("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", {
2676
2671
  variants: {
2677
2672
  view: {
2678
2673
  closed: "hidden",
@@ -2680,7 +2675,7 @@ const tr = ha(() => import("./chatbot-body-cdaeae9e.js").then((t) => t.ChatbotBo
2680
2675
  maximised: "max-w-[450px] h-[var(--content-height)] animate-maximise"
2681
2676
  }
2682
2677
  }
2683
- }), Da = Le("relative flex h-full overflow-hidden rounded-3xl outline outline-1", {
2678
+ }), Oa = Be("relative flex h-full overflow-hidden rounded-3xl outline outline-1", {
2684
2679
  variants: {
2685
2680
  view: {
2686
2681
  closed: "hidden",
@@ -2692,7 +2687,7 @@ const tr = ha(() => import("./chatbot-body-cdaeae9e.js").then((t) => t.ChatbotBo
2692
2687
  open: t,
2693
2688
  ...e
2694
2689
  }) => {
2695
- const i = Xt(null);
2690
+ const i = Ct(null);
2696
2691
  return bt(() => {
2697
2692
  const a = i.current;
2698
2693
  a && (t ? a.showModal() : a.close());
@@ -2709,33 +2704,32 @@ const tr = ha(() => import("./chatbot-body-cdaeae9e.js").then((t) => t.ChatbotBo
2709
2704
  }) => {
2710
2705
  const {
2711
2706
  state: n,
2712
- flow: r,
2713
- error: s
2714
- } = S.current$.value, c = S.viewState$.value, d = n !== "idle" && c === "maximised", u = Xt(null), l = r ? [...r.data.nodeHistory].reverse().map((w) => r.nodes.find((g) => g.id === w)).find((w) => (w == null ? void 0 : w.type) === "flow-section") : void 0;
2715
- return p(xn, {
2707
+ flow: r
2708
+ } = k.current$.value, s = k.viewState$.value, l = n !== "idle" && s === "maximised", d = Ct(null), u = r ? [...r.data.nodeHistory].reverse().map((c) => r.nodes.find((w) => w.id === c)).find((c) => (c == null ? void 0 : c.type) === "flow-section") : void 0;
2709
+ return p(kn, {
2716
2710
  terms: o.terms,
2717
2711
  locale: void 0,
2718
2712
  children: [p(er, {
2719
- open: d,
2720
- onClose: () => S.viewState$.value = "minimised",
2713
+ open: l,
2714
+ onClose: () => k.viewState$.value = "minimised",
2721
2715
  children: p("div", {
2722
- ref: u,
2716
+ ref: d,
2723
2717
  "aria-modal": "true",
2724
2718
  role: "dialog",
2725
2719
  "aria-labelledby": "chatbot-status-bar",
2726
- class: za({
2720
+ class: Aa({
2727
2721
  view: "maximised"
2728
2722
  }),
2729
2723
  children: p("div", {
2730
- class: Da({
2724
+ class: Oa({
2731
2725
  view: "maximised"
2732
2726
  }),
2733
2727
  children: [p(Qn, {
2734
2728
  params: o,
2735
- children: l ? p(Y, {
2729
+ children: u ? p(Y, {
2736
2730
  children: [p("span", {
2737
2731
  class: "block",
2738
- children: l.data.title
2732
+ children: u.data.title
2739
2733
  }), p("span", {
2740
2734
  class: "block truncate text-xs font-normal",
2741
2735
  children: r == null ? void 0 : r.title
@@ -2743,7 +2737,7 @@ const tr = ha(() => import("./chatbot-body-cdaeae9e.js").then((t) => t.ChatbotBo
2743
2737
  }) : r == null ? void 0 : r.title
2744
2738
  }), We({
2745
2739
  state: n,
2746
- view: c
2740
+ view: s
2747
2741
  }).with({
2748
2742
  state: "idle"
2749
2743
  }, () => null).with({
@@ -2760,12 +2754,10 @@ const tr = ha(() => import("./chatbot-body-cdaeae9e.js").then((t) => t.ChatbotBo
2760
2754
  })
2761
2755
  })).with({
2762
2756
  state: "error"
2763
- }, () => p(Kn, {
2764
- message: s
2765
- })).exhaustive()]
2757
+ }, () => p(Kn, {})).exhaustive()]
2766
2758
  })
2767
2759
  })
2768
- }), c === "minimised" ? p(ar, {
2760
+ }), s === "minimised" ? p(ar, {
2769
2761
  flow: r
2770
2762
  }) : null]
2771
2763
  });
@@ -2776,17 +2768,17 @@ const tr = ha(() => import("./chatbot-body-cdaeae9e.js").then((t) => t.ChatbotBo
2776
2768
  t: e
2777
2769
  } = Jt();
2778
2770
  return p("div", {
2779
- class: za({
2771
+ class: Aa({
2780
2772
  view: "minimised",
2781
2773
  class: "z-100 isolate"
2782
2774
  }),
2783
2775
  children: p("div", {
2784
- class: Da({
2776
+ class: Oa({
2785
2777
  view: "minimised"
2786
2778
  }),
2787
2779
  children: [p("button", {
2788
2780
  onClick: () => {
2789
- S.viewState$.value = "maximised";
2781
+ k.viewState$.value = "maximised";
2790
2782
  },
2791
2783
  class: "view-switch h-full flex-grow overflow-hidden px-4 py-1 focus-visible:outline-none",
2792
2784
  onTouchStart: Ie,
@@ -2800,7 +2792,7 @@ const tr = ha(() => import("./chatbot-body-cdaeae9e.js").then((t) => t.ChatbotBo
2800
2792
  children: p(Pe, {
2801
2793
  class: "mx-1",
2802
2794
  "aria-label": e("close_application"),
2803
- onClick: S.cancelCurrentFlow,
2795
+ onClick: k.cancelCurrentFlow,
2804
2796
  variant: "white",
2805
2797
  children: p("path", {
2806
2798
  d: "M12 12L4 4M12 4L4 12"
@@ -2810,17 +2802,17 @@ const tr = ha(() => import("./chatbot-body-cdaeae9e.js").then((t) => t.ChatbotBo
2810
2802
  })
2811
2803
  });
2812
2804
  }, or = `[data-widget=inploi-chatbot]{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;z-index:2147483647;font-size:16px;font-family:sans-serif;--i-lowest: 0 0% 100%;--i-e-1: 340 100% 99%;--i-e-2: 353 100% 98%;--i-e-3: 351 91% 96%;--i-e-4: 351 100% 93%;--i-e-5: 350 100% 90%;--i-e-6: 351 80% 86%;--i-e-7: 349 68% 81%;--i-e-8: 348 61% 74%;--i-e-9: 348 75% 59%;--i-e-10: 347 70% 55%;--i-e-11: 345 70% 47%;--i-e-12: 344 63% 24%;--header-height: 44px;--content-height:calc(100vh - 64px);--content-height:calc(100svh - 64px)}@media screen and (min-width: 768px){[data-widget=inploi-chatbot]{--content-height: min(640px, calc(100vh - 16px));--content-height: min(640px, calc(100svh - 16px)) }}[data-widget=inploi-chatbot] *,[data-widget=inploi-chatbot] :before,[data-widget=inploi-chatbot] :after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[data-widget=inploi-chatbot] ::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[data-widget=inploi-chatbot]{--tw-content: "";font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}[data-widget=inploi-chatbot] em{font-style:italic}[data-widget=inploi-chatbot] strong{font-weight:700}[data-widget=inploi-chatbot] *{font-weight:inherit;font-style:inherit;box-sizing:border-box;font-family:inherit;border-style:solid;border-width:0;-webkit-tap-highlight-color:transparent}[data-widget=inploi-chatbot] :before,[data-widget=inploi-chatbot] :after{box-sizing:border-box}[data-widget=inploi-chatbot] :is(ul,ol){list-style:none;padding:0;margin:0}[data-widget=inploi-chatbot] :is(p){margin:0;padding:0}[data-widget=inploi-chatbot] :is(li){margin:0;padding:0;list-style:none}[data-widget=inploi-chatbot] :is(button){margin:0;padding:0;border:unset;background:unset;text-align:unset}[data-widget=inploi-chatbot] .container{width:100%}@media (min-width: 640px){[data-widget=inploi-chatbot] .container{max-width:640px}}@media (min-width: 768px){[data-widget=inploi-chatbot] .container{max-width:768px}}@media (min-width: 1024px){[data-widget=inploi-chatbot] .container{max-width:1024px}}@media (min-width: 1280px){[data-widget=inploi-chatbot] .container{max-width:1280px}}@media (min-width: 1536px){[data-widget=inploi-chatbot] .container{max-width:1536px}}[data-widget=inploi-chatbot] .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}[data-widget=inploi-chatbot] .\\!visible{visibility:visible!important}[data-widget=inploi-chatbot] .visible{visibility:visible}[data-widget=inploi-chatbot] .invisible{visibility:hidden}[data-widget=inploi-chatbot] .collapse{visibility:collapse}[data-widget=inploi-chatbot] .static{position:static}[data-widget=inploi-chatbot] .fixed{position:fixed}[data-widget=inploi-chatbot] .absolute{position:absolute}[data-widget=inploi-chatbot] .relative{position:relative}[data-widget=inploi-chatbot] .sticky{position:sticky}[data-widget=inploi-chatbot] .inset-0{top:0;right:0;bottom:0;left:0}[data-widget=inploi-chatbot] .bottom-0{bottom:0}[data-widget=inploi-chatbot] .bottom-1{bottom:4px}[data-widget=inploi-chatbot] .bottom-2{bottom:8px}[data-widget=inploi-chatbot] .bottom-2\\.5{bottom:10px}[data-widget=inploi-chatbot] .left-0{left:0}[data-widget=inploi-chatbot] .left-1\\/2{left:50%}[data-widget=inploi-chatbot] .left-2{left:8px}[data-widget=inploi-chatbot] .right-0{right:0}[data-widget=inploi-chatbot] .right-0\\.5{right:2px}[data-widget=inploi-chatbot] .right-1{right:4px}[data-widget=inploi-chatbot] .right-2{right:8px}[data-widget=inploi-chatbot] .top-0{top:0}[data-widget=inploi-chatbot] .isolate{isolation:isolate}[data-widget=inploi-chatbot] .z-20{z-index:20}[data-widget=inploi-chatbot] .z-50{z-index:50}[data-widget=inploi-chatbot] .m-0{margin:0}[data-widget=inploi-chatbot] .mx-1{margin-left:4px;margin-right:4px}[data-widget=inploi-chatbot] .mx-auto{margin-left:auto;margin-right:auto}[data-widget=inploi-chatbot] .mb-1{margin-bottom:4px}[data-widget=inploi-chatbot] .ml-auto{margin-left:auto}[data-widget=inploi-chatbot] .mt-0\\.5{margin-top:2px}[data-widget=inploi-chatbot] .mt-auto{margin-top:auto}[data-widget=inploi-chatbot] .block{display:block}[data-widget=inploi-chatbot] .inline-block{display:inline-block}[data-widget=inploi-chatbot] .inline{display:inline}[data-widget=inploi-chatbot] .flex{display:flex}[data-widget=inploi-chatbot] .inline-flex{display:inline-flex}[data-widget=inploi-chatbot] .table{display:table}[data-widget=inploi-chatbot] .table-row{display:table-row}[data-widget=inploi-chatbot] .flow-root{display:flow-root}[data-widget=inploi-chatbot] .grid{display:grid}[data-widget=inploi-chatbot] .inline-grid{display:inline-grid}[data-widget=inploi-chatbot] .contents{display:contents}[data-widget=inploi-chatbot] .list-item{display:list-item}[data-widget=inploi-chatbot] .\\!hidden{display:none!important}[data-widget=inploi-chatbot] .hidden{display:none}[data-widget=inploi-chatbot] .size-\\[1lh\\]{width:1lh;height:1lh}[data-widget=inploi-chatbot] .h-1\\.5{height:6px}[data-widget=inploi-chatbot] .h-16{height:64px}[data-widget=inploi-chatbot] .h-4{height:16px}[data-widget=inploi-chatbot] .h-48{height:192px}[data-widget=inploi-chatbot] .h-8{height:32px}[data-widget=inploi-chatbot] .h-\\[3px\\]{height:3px}[data-widget=inploi-chatbot] .h-\\[var\\(--content-height\\)\\]{height:var(--content-height)}[data-widget=inploi-chatbot] .h-\\[var\\(--header-height\\)\\]{height:var(--header-height)}[data-widget=inploi-chatbot] .h-full{height:100%}[data-widget=inploi-chatbot] .max-h-\\[calc\\(100\\%-var\\(--header-height\\)-4rem\\)\\]{max-height:calc(100% - var(--header-height) - 64px)}[data-widget=inploi-chatbot] .max-h-\\[calc\\(8lh\\+1rem\\)\\]{max-height:calc(8lh + 16px)}[data-widget=inploi-chatbot] .max-h-full{max-height:100%}[data-widget=inploi-chatbot] .min-h-0{min-height:0px}[data-widget=inploi-chatbot] .min-h-\\[36px\\]{min-height:36px}[data-widget=inploi-chatbot] .min-h-\\[calc\\(1lh\\+1rem\\)\\]{min-height:calc(1lh + 16px)}[data-widget=inploi-chatbot] .w-1\\.5{width:6px}[data-widget=inploi-chatbot] .w-16{width:64px}[data-widget=inploi-chatbot] .w-24{width:96px}[data-widget=inploi-chatbot] .w-4{width:16px}[data-widget=inploi-chatbot] .w-64{width:256px}[data-widget=inploi-chatbot] .w-8{width:32px}[data-widget=inploi-chatbot] .w-\\[72px\\]{width:72px}[data-widget=inploi-chatbot] .w-full{width:100%}[data-widget=inploi-chatbot] .min-w-0{min-width:0px}[data-widget=inploi-chatbot] .min-w-\\[2rem\\]{min-width:32px}[data-widget=inploi-chatbot] .max-w-\\[450px\\]{max-width:450px}[data-widget=inploi-chatbot] .max-w-\\[min\\(100\\%\\,24rem\\)\\]{max-width:min(100%,384px)}[data-widget=inploi-chatbot] .max-w-\\[min\\(300px\\,calc\\(100vw-4rem\\)\\)\\]{max-width:min(300px,calc(100vw - 64px))}[data-widget=inploi-chatbot] .max-w-\\[var\\(--radix-popover-content-available-width\\)\\]{max-width:var(--radix-popover-content-available-width)}[data-widget=inploi-chatbot] .max-w-full{max-width:100%}[data-widget=inploi-chatbot] .flex-1{flex:1 1 0%}[data-widget=inploi-chatbot] .flex-auto{flex:1 1 auto}[data-widget=inploi-chatbot] .flex-none{flex:none}[data-widget=inploi-chatbot] .flex-shrink{flex-shrink:1}[data-widget=inploi-chatbot] .flex-shrink-0{flex-shrink:0}[data-widget=inploi-chatbot] .shrink{flex-shrink:1}[data-widget=inploi-chatbot] .shrink-0{flex-shrink:0}[data-widget=inploi-chatbot] .flex-grow,[data-widget=inploi-chatbot] .grow{flex-grow:1}[data-widget=inploi-chatbot] .border-collapse{border-collapse:collapse}[data-widget=inploi-chatbot] .-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .scale-75{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}[data-widget=inploi-chatbot] .animate-bounce{animation:bounce 1s infinite}@keyframes bubble-in{0%{transform:translateY(100%) scale(.8);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}[data-widget=inploi-chatbot] .animate-bubble-in{animation:bubble-in .3s cubic-bezier(.34,1.56,.64,1)}@keyframes maximise{0%{transform:translateY(50%) scaleX(.7)}to{transform:translateY(0)}}[data-widget=inploi-chatbot] .animate-maximise{animation:maximise .4s cubic-bezier(.16,1,.3,1)}@keyframes pulse{50%{opacity:.5}}[data-widget=inploi-chatbot] .animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes slide-in-bottom{0%{transform:translateY(-100%) scaleX(1.25)}to{transform:translateY(0)}}[data-widget=inploi-chatbot] .animate-slide-in-bottom{animation:slide-in-bottom .3s cubic-bezier(.175,.885,.32,1.275)}[data-widget=inploi-chatbot] .cursor-pointer{cursor:pointer}[data-widget=inploi-chatbot] .select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-widget=inploi-chatbot] .select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}[data-widget=inploi-chatbot] .resize-none{resize:none}[data-widget=inploi-chatbot] .resize-y{resize:vertical}[data-widget=inploi-chatbot] .resize{resize:both}[data-widget=inploi-chatbot] .scroll-pb-12{scroll-padding-bottom:48px}[data-widget=inploi-chatbot] .appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}[data-widget=inploi-chatbot] .flex-col{flex-direction:column}[data-widget=inploi-chatbot] .flex-wrap{flex-wrap:wrap}[data-widget=inploi-chatbot] .items-start{align-items:flex-start}[data-widget=inploi-chatbot] .items-end{align-items:flex-end}[data-widget=inploi-chatbot] .items-center{align-items:center}[data-widget=inploi-chatbot] .items-stretch{align-items:stretch}[data-widget=inploi-chatbot] .justify-end{justify-content:flex-end}[data-widget=inploi-chatbot] .justify-center{justify-content:center}[data-widget=inploi-chatbot] .gap-0{gap:0px}[data-widget=inploi-chatbot] .gap-1{gap:4px}[data-widget=inploi-chatbot] .gap-1\\.5{gap:6px}[data-widget=inploi-chatbot] .gap-2{gap:8px}[data-widget=inploi-chatbot] .gap-2\\.5{gap:10px}[data-widget=inploi-chatbot] .gap-3{gap:12px}[data-widget=inploi-chatbot] .gap-4{gap:16px}[data-widget=inploi-chatbot] .self-center{align-self:center}[data-widget=inploi-chatbot] .overflow-hidden{overflow:hidden}[data-widget=inploi-chatbot] .overflow-y-auto{overflow-y:auto}[data-widget=inploi-chatbot] .overscroll-contain{overscroll-behavior:contain}[data-widget=inploi-chatbot] .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-widget=inploi-chatbot] .text-ellipsis{text-overflow:ellipsis}[data-widget=inploi-chatbot] .whitespace-nowrap{white-space:nowrap}[data-widget=inploi-chatbot] .text-balance{text-wrap:balance}[data-widget=inploi-chatbot] .text-pretty{text-wrap:pretty}[data-widget=inploi-chatbot] .break-words{overflow-wrap:break-word}[data-widget=inploi-chatbot] .rounded{border-radius:4px}[data-widget=inploi-chatbot] .rounded-2xl{border-radius:16px}[data-widget=inploi-chatbot] .rounded-3xl{border-radius:24px}[data-widget=inploi-chatbot] .rounded-\\[18px\\]{border-radius:18px}[data-widget=inploi-chatbot] .rounded-full{border-radius:9999px}[data-widget=inploi-chatbot] .rounded-lg{border-radius:8px}[data-widget=inploi-chatbot] .rounded-md{border-radius:6px}[data-widget=inploi-chatbot] .rounded-xl{border-radius:12px}[data-widget=inploi-chatbot] .rounded-l-full{border-top-left-radius:9999px;border-bottom-left-radius:9999px}[data-widget=inploi-chatbot] .rounded-r-full{border-top-right-radius:9999px;border-bottom-right-radius:9999px}[data-widget=inploi-chatbot] .rounded-t-3xl{border-top-left-radius:24px;border-top-right-radius:24px}[data-widget=inploi-chatbot] .rounded-bl-md{border-bottom-left-radius:6px}[data-widget=inploi-chatbot] .rounded-br-md{border-bottom-right-radius:6px}[data-widget=inploi-chatbot] .border{border-width:1px}[data-widget=inploi-chatbot] .border-b{border-bottom-width:1px}[data-widget=inploi-chatbot] .border-t{border-top-width:1px}[data-widget=inploi-chatbot] .border-solid{border-style:solid}[data-widget=inploi-chatbot] .border-dashed{border-style:dashed}[data-widget=inploi-chatbot] .border-accent-9{border-color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .border-divider{border-color:var(--i-color-divider)}[data-widget=inploi-chatbot] .border-neutral-5{border-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .border-neutral-8{border-color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .border-transparent{border-color:transparent}[data-widget=inploi-chatbot] .border-b-neutral-3{border-bottom-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .border-b-neutral-5{border-bottom-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .border-b-transparent{border-bottom-color:transparent}[data-widget=inploi-chatbot] .bg-accent-1{background-color:var(--i-color-a-1)}[data-widget=inploi-chatbot] .bg-accent-3{background-color:var(--i-color-a-3)}[data-widget=inploi-chatbot] .bg-accent-9{background-color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .bg-bubble-weak-bg{background-color:var(--i-bubble-weak-bg)}[data-widget=inploi-chatbot] .bg-lowest{background-color:var(--i-color-lowest)}[data-widget=inploi-chatbot] .bg-neutral-1{background-color:var(--i-color-n-1)}[data-widget=inploi-chatbot] .bg-neutral-2{background-color:var(--i-color-n-2)}[data-widget=inploi-chatbot] .bg-neutral-3{background-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .bg-statusbar{background-color:var(--i-status-bar-bg)}[data-widget=inploi-chatbot] .bg-transparent{background-color:transparent}[data-widget=inploi-chatbot] .bg-none{background-image:none}[data-widget=inploi-chatbot] .p-1{padding:4px}[data-widget=inploi-chatbot] .p-1\\.5{padding:6px}[data-widget=inploi-chatbot] .p-10{padding:40px}[data-widget=inploi-chatbot] .p-11{padding:44px}[data-widget=inploi-chatbot] .p-12{padding:48px}[data-widget=inploi-chatbot] .p-2{padding:8px}[data-widget=inploi-chatbot] .p-2\\.5{padding:10px}[data-widget=inploi-chatbot] .p-3{padding:12px}[data-widget=inploi-chatbot] .p-4{padding:16px}[data-widget=inploi-chatbot] .p-5{padding:20px}[data-widget=inploi-chatbot] .p-6{padding:24px}[data-widget=inploi-chatbot] .p-7{padding:28px}[data-widget=inploi-chatbot] .p-8{padding:32px}[data-widget=inploi-chatbot] .p-9{padding:36px}[data-widget=inploi-chatbot] .px-0\\.5{padding-left:2px;padding-right:2px}[data-widget=inploi-chatbot] .px-1{padding-left:4px;padding-right:4px}[data-widget=inploi-chatbot] .px-1\\.5{padding-left:6px;padding-right:6px}[data-widget=inploi-chatbot] .px-2{padding-left:8px;padding-right:8px}[data-widget=inploi-chatbot] .px-3{padding-left:12px;padding-right:12px}[data-widget=inploi-chatbot] .px-4{padding-left:16px;padding-right:16px}[data-widget=inploi-chatbot] .px-5{padding-left:20px;padding-right:20px}[data-widget=inploi-chatbot] .py-0\\.5{padding-top:2px;padding-bottom:2px}[data-widget=inploi-chatbot] .py-1{padding-top:4px;padding-bottom:4px}[data-widget=inploi-chatbot] .py-1\\.5{padding-top:6px;padding-bottom:6px}[data-widget=inploi-chatbot] .py-2{padding-top:8px;padding-bottom:8px}[data-widget=inploi-chatbot] .py-2\\.5{padding-top:10px;padding-bottom:10px}[data-widget=inploi-chatbot] .py-3{padding-top:12px;padding-bottom:12px}[data-widget=inploi-chatbot] .pb-2{padding-bottom:8px}[data-widget=inploi-chatbot] .pb-6{padding-bottom:24px}[data-widget=inploi-chatbot] .pl-1\\.5{padding-left:6px}[data-widget=inploi-chatbot] .pl-2{padding-left:8px}[data-widget=inploi-chatbot] .pl-2\\.5{padding-left:10px}[data-widget=inploi-chatbot] .pl-3{padding-left:12px}[data-widget=inploi-chatbot] .pl-4{padding-left:16px}[data-widget=inploi-chatbot] .pr-1{padding-right:4px}[data-widget=inploi-chatbot] .pr-16{padding-right:64px}[data-widget=inploi-chatbot] .pr-2\\.5{padding-right:10px}[data-widget=inploi-chatbot] .pr-3{padding-right:12px}[data-widget=inploi-chatbot] .pr-4{padding-right:16px}[data-widget=inploi-chatbot] .pt-2{padding-top:8px}[data-widget=inploi-chatbot] .pt-2\\.5{padding-top:10px}[data-widget=inploi-chatbot] .pt-3{padding-top:12px}[data-widget=inploi-chatbot] .pt-5{padding-top:20px}[data-widget=inploi-chatbot] .pt-\\[calc\\(var\\(--header-height\\)\\+1rem\\)\\]{padding-top:calc(var(--header-height) + 16px)}[data-widget=inploi-chatbot] .text-center{text-align:center}[data-widget=inploi-chatbot] .text-right{text-align:right}[data-widget=inploi-chatbot] .text-justify{text-align:justify}[data-widget=inploi-chatbot] .text-\\[10px\\]{font-size:10px}[data-widget=inploi-chatbot] .text-\\[11px\\]{font-size:11px}[data-widget=inploi-chatbot] .text-base{font-size:16px;line-height:24px}[data-widget=inploi-chatbot] .text-sm{font-size:14px;line-height:20px}[data-widget=inploi-chatbot] .text-xs{font-size:12px;line-height:16px}[data-widget=inploi-chatbot] .font-bold{font-weight:700}[data-widget=inploi-chatbot] .font-medium{font-weight:500}[data-widget=inploi-chatbot] .font-normal{font-weight:400}[data-widget=inploi-chatbot] .font-semibold{font-weight:600}[data-widget=inploi-chatbot] .uppercase{text-transform:uppercase}[data-widget=inploi-chatbot] .lowercase{text-transform:lowercase}[data-widget=inploi-chatbot] .capitalize{text-transform:capitalize}[data-widget=inploi-chatbot] .italic{font-style:italic}[data-widget=inploi-chatbot] .ordinal{--tw-ordinal: ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}[data-widget=inploi-chatbot] .leading-3{line-height:12px}[data-widget=inploi-chatbot] .leading-snug{line-height:1.375}[data-widget=inploi-chatbot] .leading-tight{line-height:1.25}[data-widget=inploi-chatbot] .tracking-\\[-0\\.01em\\]{letter-spacing:-.01em}[data-widget=inploi-chatbot] .tracking-tight{letter-spacing:-.025em}[data-widget=inploi-chatbot] .tracking-wide{letter-spacing:.025em}[data-widget=inploi-chatbot] .tracking-widest{letter-spacing:.1em}[data-widget=inploi-chatbot] .text-accent-10{color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .text-accent-11{color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .text-accent-12{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .text-accent-9{color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .text-error-11{color:var(--i-color-e-11)}[data-widget=inploi-chatbot] .text-error-9{color:var(--i-color-e-9)}[data-widget=inploi-chatbot] .text-neutral-10{color:var(--i-color-n-10)}[data-widget=inploi-chatbot] .text-neutral-11{color:var(--i-color-n-11)}[data-widget=inploi-chatbot] .text-neutral-12{color:var(--i-color-n-12)}[data-widget=inploi-chatbot] .text-neutral-6{color:var(--i-color-n-6)}[data-widget=inploi-chatbot] .text-system-success{color:var(--i-system-message-success)}[data-widget=inploi-chatbot] .text-system-warning{color:var(--i-system-message-warning)}[data-widget=inploi-chatbot] .text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}[data-widget=inploi-chatbot] .text-white\\/80{color:#fffc}[data-widget=inploi-chatbot] .underline{text-decoration-line:underline}[data-widget=inploi-chatbot] .no-underline{text-decoration-line:none}[data-widget=inploi-chatbot] .underline-offset-2{text-underline-offset:2px}[data-widget=inploi-chatbot] .underline-offset-4{text-underline-offset:4px}[data-widget=inploi-chatbot] .caret-accent-9{caret-color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .opacity-0{opacity:0}[data-widget=inploi-chatbot] .shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-\\[0_0_0_1px\\]{--tw-shadow: 0 0 0 1px;--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-surface-lg{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 6px 4px 0px oklch(0% 0 0 / .02), 0px 11px 4px 0px oklch(0% 0 0 / .01), 0px 32px 24px -12px oklch(0% 0 0 / .06);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color), 0px 11px 4px 0px var(--tw-shadow-color), 0px 32px 24px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-surface-md{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 6px 4px 0px oklch(0% 0 0 / .02), 0px 6px 4px 0px oklch(0% 0 0 / .01);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-surface-sm{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 4px 4px 0px oklch(0% 0 0 / .02);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 4px 4px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-bubble-strong-shadow{--tw-shadow-color: var(--i-bubble-strong-shadow);--tw-shadow: var(--tw-shadow-colored)}[data-widget=inploi-chatbot] .outline-none{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .outline{outline-style:solid}[data-widget=inploi-chatbot] .outline-1{outline-width:1px}[data-widget=inploi-chatbot] .outline-2{outline-width:2px}[data-widget=inploi-chatbot] .outline-accent-10{outline-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .outline-accent-4{outline-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .outline-bubble-weak{outline-color:var(--i-bubble-weak-outline)}[data-widget=inploi-chatbot] .outline-divider{outline-color:var(--i-color-divider)}[data-widget=inploi-chatbot] .outline-neutral-3{outline-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .outline-neutral-6{outline-color:var(--i-color-n-6)}[data-widget=inploi-chatbot] .ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .ring-inset{--tw-ring-inset: inset}[data-widget=inploi-chatbot] .ring-accent-6{--tw-ring-color: var(--i-color-a-6)}[data-widget=inploi-chatbot] .ring-divider{--tw-ring-color: var(--i-color-divider)}[data-widget=inploi-chatbot] .ring-lowest{--tw-ring-color: var(--i-color-lowest)}[data-widget=inploi-chatbot] .ring-neutral-4{--tw-ring-color: var(--i-color-n-4)}[data-widget=inploi-chatbot] .ring-neutral-5{--tw-ring-color: var(--i-color-n-5)}[data-widget=inploi-chatbot] .ring-neutral-7{--tw-ring-color: var(--i-color-n-7)}[data-widget=inploi-chatbot] .ring-transparent{--tw-ring-color: transparent}[data-widget=inploi-chatbot] .ring-offset-\\[1\\.5px\\]{--tw-ring-offset-width: 1.5px}[data-widget=inploi-chatbot] .ring-offset-neutral-1{--tw-ring-offset-color: var(--i-color-n-1)}[data-widget=inploi-chatbot] .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .drop-shadow-\\[0_1\\.5px_var\\(--i-color-n-1\\)\\]{--tw-drop-shadow: drop-shadow(0 1.5px var(--i-color-n-1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .backdrop-blur-md{--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}[data-widget=inploi-chatbot] .backdrop-saturate-150{--tw-backdrop-saturate: saturate(1.5);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}[data-widget=inploi-chatbot] .backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}[data-widget=inploi-chatbot] .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .transition-\\[background\\,color\\,border-color\\,box-shadow\\]{transition-property:background,color,border-color,box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .duration-100{transition-duration:.1s}[data-widget=inploi-chatbot] .duration-1000{transition-duration:1s}[data-widget=inploi-chatbot] .duration-300{transition-duration:.3s}[data-widget=inploi-chatbot] .ease-expo-out{transition-timing-function:cubic-bezier(.16,1,.3,1)}[data-widget=inploi-chatbot] .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}[data-widget=inploi-chatbot] .will-change-\\[transform\\,opacity\\]{will-change:transform,opacity}[data-widget=inploi-chatbot] .text-wrap-balance{text-wrap:balance}[data-widget=inploi-chatbot] .fr{outline:none}[data-widget=inploi-chatbot] .fr:focus{outline:none}[data-widget=inploi-chatbot] .fr:focus-visible{outline:none;--tw-ring-offset-width: 1px;--tw-ring-offset-color: var(--i-color-lowest);--tw-ring-opacity: 1;--tw-ring-color: var(--i-color-a-9);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .gutter-stable{scrollbar-gutter:stable}[data-widget=inploi-chatbot] .hide-scrollbars::-webkit-scrollbar{display:none}[data-widget=inploi-chatbot] .hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}[data-widget=inploi-chatbot] .touch-hitbox:before{content:"";position:absolute;display:block;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-height:44px;min-width:44px;z-index:9999}[data-widget=inploi-chatbot] .\\[-webkit-outer-spin-button\\:none\\]{-webkit-outer-spin-button:none}[data-widget=inploi-chatbot] .\\[a-zA-Z0-9-_\\:\\.\\$\\@\\?\\]{a-z-a--z0-9-_:.$@?}[data-widget=inploi-chatbot] .\\[grid-template-columns\\:min-content_1fr\\]{grid-template-columns:min-content 1fr}[data-widget=inploi-chatbot] .\\[text-wrap\\:pretty\\]{text-wrap:pretty}[data-widget=inploi-chatbot] .selection\\:bg-accent-4 *::-moz-selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-accent-4 *::selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-transparent *::-moz-selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:bg-transparent *::selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:text-accent-12 *::-moz-selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .selection\\:text-accent-12 *::selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .selection\\:bg-accent-4::-moz-selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-accent-4::selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-transparent::-moz-selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:bg-transparent::selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:text-accent-12::-moz-selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .selection\\:text-accent-12::selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-10::-moz-placeholder{color:var(--i-color-n-10)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-10::placeholder{color:var(--i-color-n-10)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-8::-moz-placeholder{color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-8::placeholder{color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .first-of-type\\:rounded-l-lg:first-of-type{border-top-left-radius:8px;border-bottom-left-radius:8px}[data-widget=inploi-chatbot] .last-of-type\\:rounded-r-lg:last-of-type{border-top-right-radius:8px;border-bottom-right-radius:8px}[data-widget=inploi-chatbot] .autofill\\:shadow-\\[inset_0_0_0_1000px_hsl\\(210_16\\.7\\%_97\\.6\\%\\)\\]:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px hsl(210 16.7% 97.6%);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:shadow-\\[inset_0_0_0_1000px_hsl\\(210_16\\.7\\%_97\\.6\\%\\)\\]:autofill{--tw-shadow: inset 0 0 0 1000px hsl(210 16.7% 97.6%);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-2\\)\\]:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-2);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-2\\)\\]:autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-2);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:\\[-webkit-text-fill-color\\:var\\(--i-color-a-11\\)\\]:-webkit-autofill{-webkit-text-fill-color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .autofill\\:\\[-webkit-text-fill-color\\:var\\(--i-color-a-11\\)\\]:autofill{-webkit-text-fill-color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .focus-within\\:bg-neutral-5:focus-within{background-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .focus-within\\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .focus-within\\:outline-accent-7:focus-within{outline-color:var(--i-color-a-7)}[data-widget=inploi-chatbot] .hover\\:z-10:hover{z-index:10}[data-widget=inploi-chatbot] .hover\\:scale-\\[1\\.02\\]:hover{--tw-scale-x: 1.02;--tw-scale-y: 1.02;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .hover\\:border-accent-10:hover{border-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .hover\\:border-neutral-5:hover{border-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .hover\\:bg-accent-10:hover{background-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .hover\\:bg-divider:hover{background-color:var(--i-color-divider)}[data-widget=inploi-chatbot] .hover\\:bg-interactive-bg-hover:hover{background-color:var(--i-interactive-bg-hover)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-2:hover{background-color:var(--i-color-n-2)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-3:hover{background-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-4:hover{background-color:var(--i-color-n-4)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-5:hover{background-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .hover\\:bg-white\\/20:hover{background-color:#fff3}[data-widget=inploi-chatbot] .hover\\:text-accent-11:hover{color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .hover\\:text-neutral-12:hover{color:var(--i-color-n-12)}[data-widget=inploi-chatbot] .hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}[data-widget=inploi-chatbot] .hover\\:underline:hover{text-decoration-line:underline}[data-widget=inploi-chatbot] .hover\\:ring-accent-8:hover{--tw-ring-color: var(--i-color-a-8)}[data-widget=inploi-chatbot] .hover\\:ring-divider:hover{--tw-ring-color: var(--i-color-divider)}[data-widget=inploi-chatbot] .focus\\:z-20:focus{z-index:20}[data-widget=inploi-chatbot] .focus\\:bg-neutral-5:focus{background-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .focus\\:shadow-\\[0_0_0_2px\\]:focus{--tw-shadow: 0 0 0 2px;--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .autofill\\:focus\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-1\\)\\]:focus:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-1);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:focus\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-1\\)\\]:focus:autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-1);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .focus-visible\\:bg-neutral-3:focus-visible{background-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .focus-visible\\:outline-2:focus-visible{outline-width:2px}[data-widget=inploi-chatbot] .focus-visible\\:outline-accent-7:focus-visible{outline-color:var(--i-color-a-7)}[data-widget=inploi-chatbot] .focus-visible\\:outline-accent-8:focus-visible{outline-color:var(--i-color-a-8)}[data-widget=inploi-chatbot] .focus-visible\\:ring-4:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}[data-widget=inploi-chatbot] .active\\:scale-\\[\\.97\\]:active{--tw-scale-x: .97;--tw-scale-y: .97;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .active\\:border-submit-bg-active:active{border-color:var(--i-submit-button-bg-active)}[data-widget=inploi-chatbot] .active\\:bg-accent-10:active{background-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .active\\:bg-accent-2:active{background-color:var(--i-color-a-2)}[data-widget=inploi-chatbot] .active\\:bg-interactive-bg-active:active{background-color:var(--i-interactive-bg-active)}[data-widget=inploi-chatbot] .active\\:bg-interactive-bg-hover:active{background-color:var(--i-interactive-bg-hover)}[data-widget=inploi-chatbot] .active\\:bg-submit-bg-active:active{background-color:var(--i-submit-button-bg-active)}[data-widget=inploi-chatbot] .active\\:bg-white\\/30:active{background-color:#ffffff4d}[data-widget=inploi-chatbot] .active\\:text-accent-10:active{color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .active\\:text-accent-11:active{color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .active\\:text-neutral-12:active{color:var(--i-color-n-12)}[data-widget=inploi-chatbot] .active\\:text-white:active{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}[data-widget=inploi-chatbot] .active\\:outline-neutral-8:active{outline-color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .active\\:ring-2:active{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .active\\:ring-accent-7:active{--tw-ring-color: var(--i-color-a-7)}[data-widget=inploi-chatbot] .active\\:ring-interactive-bg-hover:active{--tw-ring-color: var(--i-interactive-bg-hover)}[data-widget=inploi-chatbot] .active\\:ring-offset-2:active{--tw-ring-offset-width: 2px}[data-widget=inploi-chatbot] .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}[data-widget=inploi-chatbot] .disabled\\:opacity-50:disabled{opacity:.5}[data-widget=inploi-chatbot] .peer:checked~.peer-checked\\:bg-accent-2{background-color:var(--i-color-a-2)}[data-widget=inploi-chatbot] .peer:checked~.peer-checked\\:text-accent-9{color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .peer:checked~.peer-checked\\:outline-accent-7{outline-color:var(--i-color-a-7)}[data-widget=inploi-chatbot] .peer:focus-visible~.peer-focus-visible\\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .peer:focus-visible~.peer-focus-visible\\:ring-accent-9{--tw-ring-color: var(--i-color-a-9)}[data-widget=inploi-chatbot] .peer:focus-visible~.peer-focus-visible\\:ring-offset-accent-7{--tw-ring-offset-color: var(--i-color-a-7)}[data-widget=inploi-chatbot] .aria-disabled\\:cursor-not-allowed[aria-disabled=true]{cursor:not-allowed}[data-widget=inploi-chatbot] .aria-disabled\\:opacity-50[aria-disabled=true]{opacity:.5}[data-widget=inploi-chatbot] .aria-disabled\\:hover\\:border-accent-9:hover[aria-disabled=true]{border-color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .aria-disabled\\:hover\\:bg-accent-9:hover[aria-disabled=true]{background-color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .aria-disabled\\:active\\:ring-1:active[aria-disabled=true]{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .aria-disabled\\:active\\:ring-offset-\\[1\\.5px\\]:active[aria-disabled=true]{--tw-ring-offset-width: 1.5px}[data-widget=inploi-chatbot] .group[aria-pressed=true] .group-aria-\\[pressed\\=true\\]\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (pointer: coarse){[data-widget=inploi-chatbot] .pointer-coarse\\:touch-hitbox\\:\\:before:before{content:"";position:absolute;display:block;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-height:44px;min-width:44px;z-index:9999}}[data-widget=inploi-chatbot] .\\[\\&\\:has\\(\\+\\*\\>input\\:focus\\)\\]\\:text-neutral-12:has(+*>input:focus){color:var(--i-color-n-12)}[data-widget=inploi-chatbot] .\\[\\&\\:has\\(\\.view-switch\\:active\\)\\]\\:scale-\\[0\\.98\\]:has(.view-switch:active){--tw-scale-x: .98;--tw-scale-y: .98;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .\\[\\&\\:has\\(\\>\\.view-switch\\:focus-visible\\)\\]\\:ring-1:has(>.view-switch:focus-visible){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}@keyframes fade-in{0%{opacity:0}to{opacity:1}}[data-widget=inploi-chatbot] dialog::backdrop{animation:fade-in .5s cubic-bezier(.16,1,.3,1) both}[data-widget=inploi-chatbot] dialog::backdrop{background-color:var(--i-overlay-bg)}@media (prefers-reduced-motion: reduce){[data-widget=inploi-chatbot] [data-widget=inploi-chatbot] dialog::backdrop{animation:inploi-chatbot-fade .15s ease-out}}@media (prefers-reduced-motion: reduce){[data-widget=inploi-chatbot],[data-widget=inploi-chatbot] *,[data-widget=inploi-chatbot] *:before,[data-widget=inploi-chatbot] *:after,[data-widget=inploi-chatbot] dialog::backdrop{animation:none!important;transition-property:opacity,color,background-color,border-color!important;transition-duration:.15s!important;scroll-behavior:auto!important}[data-widget=inploi-chatbot] .animate-fade-in,[data-widget=inploi-chatbot] .animate-bubble-in,[data-widget=inploi-chatbot] .animate-maximise,[data-widget=inploi-chatbot] .animate-slide-in-bottom,[data-widget=inploi-chatbot] dialog::backdrop{animation:inploi-chatbot-fade .15s ease-out!important}}@keyframes inploi-chatbot-fade{0%{opacity:0}}
2813
- `, Oa = "inploi-chatbot", ze = `[data-widget='${Oa}']`, nr = () => ({
2805
+ `, Da = "inploi-chatbot", ze = `[data-widget='${Da}']`, nr = () => ({
2814
2806
  getChatbotElement: () => document.querySelector(ze),
2815
2807
  getOrCreateChatbotElement: () => {
2816
2808
  const t = document.querySelector(ze);
2817
2809
  if (t)
2818
2810
  return document.body.appendChild(t), t;
2819
2811
  const e = document.createElement("div");
2820
- return document.body.appendChild(e), e.dataset.widget = Oa, e;
2812
+ return document.body.appendChild(e), e.dataset.widget = Da, e;
2821
2813
  }
2822
- }), rr = 25, Aa = U(() => {
2823
- }), sr = (t, e) => new Promise((i, a) => {
2814
+ }), rr = 25, Na = U(() => {
2815
+ }), Ei = ["wheel", "touchmove", "keydown"], sr = (t, e) => new Promise((i, a) => {
2824
2816
  if (e != null && e.aborted)
2825
2817
  return a(new pt());
2826
2818
  const o = setTimeout(i, t);
@@ -2829,7 +2821,7 @@ const tr = ha(() => import("./chatbot-body-cdaeae9e.js").then((t) => t.ChatbotBo
2829
2821
  }, {
2830
2822
  once: !0
2831
2823
  });
2832
- }), R = {
2824
+ }), B = {
2833
2825
  onSubmitSuccessFn$: U(() => {
2834
2826
  }),
2835
2827
  onInteractionFn$: U(() => {
@@ -2839,92 +2831,99 @@ const tr = ha(() => import("./chatbot-body-cdaeae9e.js").then((t) => t.ChatbotBo
2839
2831
  captchaVisible$: U(!1),
2840
2832
  themeMode$: U("light"),
2841
2833
  isReadingHistory$: U(!1),
2842
- scrollToEnd: () => Aa.value()
2843
- }, Kr = () => {
2844
- const t = Xt(null);
2834
+ scrollToEnd: () => Na.value()
2835
+ }, qr = () => {
2836
+ const t = Ct(null), e = Ct(-1 / 0);
2845
2837
  bt(() => {
2846
- const i = t.current;
2847
- if (!i)
2838
+ const a = t.current;
2839
+ if (!a)
2848
2840
  return;
2849
- const a = () => {
2850
- R.isReadingHistory$.value = !1, i.scrollTo({
2851
- top: i.scrollHeight,
2841
+ const o = () => {
2842
+ B.isReadingHistory$.value = !1, a.scrollTo({
2843
+ top: a.scrollHeight,
2852
2844
  behavior: "instant"
2853
2845
  });
2854
2846
  };
2855
- Aa.value = a;
2856
- const o = () => {
2857
- R.isReadingHistory$.value = i.scrollHeight - i.scrollTop - i.clientHeight > 2;
2847
+ Na.value = o;
2848
+ const n = () => e.current = performance.now(), r = () => {
2849
+ a.scrollHeight - a.scrollTop - a.clientHeight <= 24 ? B.isReadingHistory$.value = !1 : performance.now() - e.current < 1e3 && (B.isReadingHistory$.value = !0);
2858
2850
  };
2859
- i.addEventListener("scroll", o, {
2851
+ a.addEventListener("scroll", r, {
2860
2852
  passive: !0
2861
2853
  });
2862
- const n = new ResizeObserver(() => {
2863
- R.isReadingHistory$.peek() || a();
2854
+ for (const l of Ei)
2855
+ a.addEventListener(l, n, {
2856
+ passive: !0
2857
+ });
2858
+ const s = new ResizeObserver(() => {
2859
+ B.isReadingHistory$.peek() || o();
2864
2860
  });
2865
- return n.observe(i), i.firstElementChild && n.observe(i.firstElementChild), () => {
2866
- i.removeEventListener("scroll", o), n.disconnect();
2861
+ return s.observe(a), a.firstElementChild && s.observe(a.firstElementChild), () => {
2862
+ a.removeEventListener("scroll", r);
2863
+ for (const l of Ei)
2864
+ a.removeEventListener(l, n);
2865
+ s.disconnect();
2867
2866
  };
2868
2867
  }, []);
2869
- const e = ut(() => ({
2870
- setSubmission: (a, o) => S.setSubmission(a, o),
2868
+ const i = ut(() => ({
2869
+ setSubmission: (o, n) => k.setSubmission(o, n),
2871
2870
  captcha: {
2872
2871
  container: () => {
2873
- var a;
2874
- return ((a = t.current) == null ? void 0 : a.querySelector("[data-captcha-slot]")) ?? null;
2872
+ var o;
2873
+ return ((o = t.current) == null ? void 0 : o.querySelector("[data-captcha-slot]")) ?? null;
2875
2874
  },
2876
2875
  get theme() {
2877
- return R.themeMode$.peek();
2876
+ return B.themeMode$.peek();
2878
2877
  },
2879
- reveal: (a) => {
2880
- R.captchaVisible$.value = a, a && requestAnimationFrame(() => {
2881
- var o, n;
2882
- (n = (o = t.current) == null ? void 0 : o.querySelector("[data-captcha-slot]")) == null || n.focus(), R.scrollToEnd();
2878
+ reveal: (o) => {
2879
+ B.captchaVisible$.value = o, o && requestAnimationFrame(() => {
2880
+ var n, r;
2881
+ (r = (n = t.current) == null ? void 0 : n.querySelector("[data-captcha-slot]")) == null || r.focus(), B.scrollToEnd();
2883
2882
  });
2884
2883
  }
2885
2884
  },
2886
2885
  send: async ({
2887
- message: a,
2888
- signal: o,
2889
- groupId: n
2886
+ message: o,
2887
+ signal: n,
2888
+ groupId: r
2890
2889
  }) => {
2891
- if (await We(a).with({
2890
+ if (await We(o).with({
2892
2891
  author: "bot",
2893
2892
  type: "text"
2894
- }, async (r) => {
2895
- if (o != null && o.aborted)
2893
+ }, async (s) => {
2894
+ if (n != null && n.aborted)
2896
2895
  throw new pt();
2897
- R.isBotTyping$.value = !0;
2898
- const s = Math.min(Math.max(20, r.text.length), 100) * rr;
2896
+ B.isBotTyping$.value = !0;
2897
+ const l = Math.min(Math.max(20, s.text.length), 100) * rr;
2899
2898
  try {
2900
- await sr(s, o);
2899
+ await sr(l, n);
2901
2900
  } finally {
2902
- R.isBotTyping$.value = !1;
2901
+ B.isBotTyping$.value = !1;
2903
2902
  }
2904
2903
  }).otherwise(async () => {
2905
- }), o != null && o.aborted)
2904
+ }), n != null && n.aborted)
2906
2905
  throw new pt();
2907
- S.addMessage(a, n);
2906
+ k.addMessage(o, r);
2908
2907
  },
2909
2908
  input: ({
2910
- input: a,
2911
- signal: o
2909
+ input: o,
2910
+ signal: n
2912
2911
  }) => {
2913
- if (o != null && o.aborted)
2912
+ if (n != null && n.aborted)
2914
2913
  throw new pt();
2915
- return S.setInput(a), new Promise((n) => {
2916
- const r = (s) => {
2917
- if (o != null && o.aborted)
2914
+ return k.setInput(o), new Promise((r) => {
2915
+ const s = (l) => {
2916
+ if (n != null && n.aborted)
2918
2917
  throw new pt();
2919
- S.setInput(void 0), a.key && S.setSubmission(a.key, s), n(s);
2918
+ e.current = -1 / 0, k.setInput(void 0), o.key && k.setSubmission(o.key, l), r(l);
2920
2919
  };
2921
- R.onSubmitSuccessFn$.value = r;
2920
+ B.onSubmitSuccessFn$.value = s;
2922
2921
  });
2923
2922
  }
2924
2923
  }), []);
2925
2924
  return {
2926
2925
  chatRef: t,
2927
- chatService: e
2926
+ chatService: i
2928
2927
  };
2929
2928
  };
2930
2929
  var lr = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], cr = {
@@ -2973,21 +2972,21 @@ var lr = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], cr = {
2973
2972
  }) : [[i, a]];
2974
2973
  });
2975
2974
  return Object.fromEntries(e);
2976
- }, Dt = (t) => !!t && typeof t == "object" && !Array.isArray(t), De = (t, ...e) => {
2975
+ }, Ot = (t) => !!t && typeof t == "object" && !Array.isArray(t), Ae = (t, ...e) => {
2977
2976
  if (!e.length)
2978
2977
  return t;
2979
2978
  const i = e.shift();
2980
- if (Dt(t) && Dt(i))
2979
+ if (Ot(t) && Ot(i))
2981
2980
  for (const a in i) {
2982
2981
  const o = i[a];
2983
- if (Dt(o)) {
2982
+ if (Ot(o)) {
2984
2983
  t[a] || Object.assign(t, { [a]: {} });
2985
2984
  const n = t[a];
2986
- Dt(n) && De(n, o);
2985
+ Ot(n) && Ae(n, o);
2987
2986
  } else
2988
2987
  Object.assign(t, { [a]: i[a] });
2989
2988
  }
2990
- return De(t, ...e);
2989
+ return Ae(t, ...e);
2991
2990
  }, pr = (t) => {
2992
2991
  function e(i, a) {
2993
2992
  const o = [t.prefix, a.toString().replace(/\./g, "-")].join("");
@@ -2999,18 +2998,18 @@ var lr = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], cr = {
2999
2998
  semantic: (e) => ({
3000
2999
  component: (i) => ({
3001
3000
  from: (a) => {
3002
- const { theme: o, getToken: n } = a, r = (w) => n("reference", w.toString()), s = t({ theme: o }), c = e({ theme: o, core: r, raw: { core: s } }), d = i({
3001
+ const { theme: o, getToken: n } = a, r = (w) => n("reference", w.toString()), s = t({ theme: o }), l = e({ theme: o, core: r, raw: { core: s } }), d = i({
3003
3002
  theme: o,
3004
3003
  core: r,
3005
3004
  semantic: r,
3006
- raw: { core: s, semantic: c }
3007
- }), u = ur(De(s, c, d)), l = ([w, g], h) => {
3008
- const b = [h, w].filter(Boolean).join(".");
3009
- return typeof g == "object" ? Object.entries(g).flatMap((D) => l(D, b)) : [[a.getToken("declaration", b), g]];
3005
+ raw: { core: s, semantic: l }
3006
+ }), u = ur(Ae(s, l, d)), c = ([w, v], h) => {
3007
+ const _ = [h, w].filter(Boolean).join(".");
3008
+ return typeof v == "object" ? Object.entries(v).flatMap((z) => c(z, _)) : [[a.getToken("declaration", _), v]];
3010
3009
  };
3011
3010
  return {
3012
3011
  values: u,
3013
- declarations: Object.fromEntries(Object.entries(u).flatMap((w) => l(w))),
3012
+ declarations: Object.fromEntries(Object.entries(u).flatMap((w) => c(w))),
3014
3013
  ref: (w) => n("reference", w.toString())
3015
3014
  };
3016
3015
  }
@@ -3018,7 +3017,7 @@ var lr = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], cr = {
3018
3017
  })
3019
3018
  })
3020
3019
  });
3021
- const [pe, he, Ei] = ["oklch(0% 0 0)", "oklch(100% 0 0)", "transparent"], fr = hr().core(({
3020
+ const [pe, he, Ti] = ["oklch(0% 0 0)", "oklch(100% 0 0)", "transparent"], fr = hr().core(({
3022
3021
  theme: t
3023
3022
  }) => ({
3024
3023
  color: {
@@ -3077,7 +3076,7 @@ const [pe, he, Ei] = ["oklch(0% 0 0)", "oklch(100% 0 0)", "transparent"], fr = h
3077
3076
  copy: t("color.n-11"),
3078
3077
  "copy-hover": t("color.n-12"),
3079
3078
  "copy-active": t("color.n-12"),
3080
- bg: Ei,
3079
+ bg: Ti,
3081
3080
  "bg-hover": a("n-10", 0.2),
3082
3081
  "bg-active": a("n-10", 0.3)
3083
3082
  }
@@ -3103,7 +3102,7 @@ const [pe, he, Ei] = ["oklch(0% 0 0)", "oklch(100% 0 0)", "transparent"], fr = h
3103
3102
  },
3104
3103
  "status-bar": {
3105
3104
  bg: o("n-2", 0.8),
3106
- "bg-button": Ei,
3105
+ "bg-button": Ti,
3107
3106
  "bg-button-hover": o("n-10", 0.4),
3108
3107
  "bg-button-active": o("n-10", 0.5)
3109
3108
  },
@@ -3127,89 +3126,86 @@ const [pe, he, Ei] = ["oklch(0% 0 0)", "oklch(100% 0 0)", "transparent"], fr = h
3127
3126
  ${i.concat(i).join(`
3128
3127
  `)}
3129
3128
  }`;
3130
- }, qr = ({
3129
+ }, Zr = ({
3131
3130
  _internal_domManager: t = nr(),
3132
3131
  theme: e,
3133
3132
  terms: i,
3134
3133
  feedback: a
3135
- }) => ja(({
3134
+ }) => Ma(({
3136
3135
  apiClient: o,
3137
3136
  rpcClient: n,
3138
3137
  logger: r,
3139
3138
  analytics: s,
3140
- publishableKey: c,
3139
+ publishableKey: l,
3141
3140
  env: d
3142
3141
  }) => {
3143
- let u = !1, l = 0;
3144
- const w = kn({
3145
- locale: void 0,
3146
- overrides: i ?? {}
3147
- }), g = c && d ? Ma({
3142
+ let u = !1, c = 0;
3143
+ const w = l && d ? Fa({
3148
3144
  environment: d,
3149
- publishableKey: c,
3145
+ publishableKey: l,
3150
3146
  logger: r
3151
- }) : void 0, h = (v) => v === l, b = () => {
3147
+ }) : void 0, v = (b) => b === c, h = () => {
3152
3148
  if (typeof window > "u")
3153
3149
  return;
3154
- l++, H.flushStateData().catch(() => {
3155
- }), S.cancelCurrentFlow(), R.isBotTyping$.value = !1;
3156
- const v = t.getChatbotElement();
3157
- v && (dt(null, v), v.remove()), u = !1, r.info("Chatbot plugin destroyed");
3158
- }, D = () => {
3150
+ c++, H.flushStateData().catch(() => {
3151
+ }), k.cancelCurrentFlow(), B.isBotTyping$.value = !1;
3152
+ const b = t.getChatbotElement();
3153
+ b && (dt(null, b), b.remove()), u = !1, r.info("Chatbot plugin destroyed");
3154
+ }, _ = () => {
3159
3155
  if (typeof window > "u")
3160
3156
  return;
3161
- const v = l, _ = [B("style", {
3157
+ const b = c, g = [L("style", {
3162
3158
  id: "inploi-chatbot-styles"
3163
- }, or), B("style", {
3159
+ }, or), L("style", {
3164
3160
  id: "inploi-chatbot-theme"
3165
- }, gr(e))], x = t.getOrCreateChatbotElement();
3166
- if (R.themeMode$.value = e.mode, dt(B(Y, {}, [_, B(ir, {
3161
+ }, gr(e))], y = t.getOrCreateChatbotElement();
3162
+ if (B.themeMode$.value = e.mode, dt(L(Y, {}, [g, L(ir, {
3167
3163
  apiClient: o,
3168
3164
  logger: r,
3169
3165
  analytics: s,
3170
- talentBankClient: g,
3166
+ talentBankClient: w,
3171
3167
  params: {
3172
3168
  theme: e,
3173
3169
  terms: i,
3174
3170
  feedback: a
3175
3171
  }
3176
- })]), x), a) {
3177
- const k = (I) => {
3178
- var q, O;
3179
- if (!h(v))
3172
+ })]), y), a) {
3173
+ const C = (P) => {
3174
+ var K, q;
3175
+ if (!v(b))
3180
3176
  return;
3181
- const K = (q = t.getChatbotElement()) == null ? void 0 : q.querySelector("dialog");
3182
- K && br({
3183
- instance: I({
3177
+ const O = (K = t.getChatbotElement()) == null ? void 0 : K.querySelector("dialog");
3178
+ O && br({
3179
+ instance: P({
3184
3180
  rpcClient: n,
3185
3181
  apiClient: o,
3186
3182
  logger: r,
3187
3183
  analytics: s
3188
3184
  }),
3189
3185
  theme: e,
3190
- terms: ((O = a.params) == null ? void 0 : O.terms) ?? {},
3191
- host: K
3186
+ terms: ((q = a.params) == null ? void 0 : q.terms) ?? {},
3187
+ host: O
3192
3188
  });
3193
3189
  };
3194
3190
  a.plugin instanceof Promise ? a.plugin.then(({
3195
- feedbackPlugin: I
3191
+ feedbackPlugin: P
3196
3192
  }) => {
3197
- k(I());
3198
- }).catch((I) => {
3199
- r.error("Error preparing feedback plugin", I);
3200
- }) : k(a.plugin);
3193
+ C(P());
3194
+ }).catch((P) => {
3195
+ r.error("Error preparing feedback plugin", P);
3196
+ }) : C(a.plugin);
3201
3197
  }
3202
3198
  u = !0;
3203
- }, y = async (v, _) => {
3204
- if (!h(_))
3199
+ }, z = async (b, g) => {
3200
+ if (!v(g))
3205
3201
  return;
3206
- so({
3207
- context: v.context || {},
3208
- schema: v.flow.context_schema,
3202
+ lo({
3203
+ context: b.context || {},
3204
+ schema: b.flow.context_schema,
3209
3205
  logger: r
3210
3206
  });
3211
- const x = await S.prepareFlow(v);
3212
- h(_) && S.commitFlow(x);
3207
+ const y = await k.prepareFlow(b);
3208
+ v(g) && k.commitFlow(y);
3213
3209
  };
3214
3210
  return {
3215
3211
  /** Optionally eagerly renders the interface ahead of needing the chatbot. */
@@ -3218,76 +3214,72 @@ ${i.concat(i).join(`
3218
3214
  try {
3219
3215
  if (u)
3220
3216
  return;
3221
- D(), r.info("Chatbot plugin prepared");
3222
- } catch (v) {
3223
- r.error("Error preparing chatbot plugin", v);
3217
+ _(), r.info("Chatbot plugin prepared");
3218
+ } catch (b) {
3219
+ r.error("Error preparing chatbot plugin", b);
3224
3220
  }
3225
3221
  },
3226
3222
  /** Fetches a flow by job ID.
3227
3223
  * @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.
3228
3224
  */
3229
- fetchFlowByJobId: async (v, _) => {
3230
- const x = (_ == null ? void 0 : _.idType) === "inploi" ? "internal" : "external";
3231
- return n.request(po, {
3225
+ fetchFlowByJobId: async (b, g) => {
3226
+ const y = (g == null ? void 0 : g.idType) === "inploi" ? "internal" : "external";
3227
+ return n.request(ho, {
3232
3228
  params: {
3233
- id: v
3229
+ id: b
3234
3230
  },
3235
3231
  searchParams: {
3236
- id_type: x
3232
+ id_type: y
3237
3233
  }
3238
- }).then((k) => ({
3239
- flow: k.flow,
3240
- title: k.job.title,
3241
- flowKeys: [k.job.id, ...(_ == null ? void 0 : _.flowKeys) ?? []],
3242
- job: uo(k, {
3243
- id: v,
3244
- idType: x
3234
+ }).then((C) => ({
3235
+ flow: C.flow,
3236
+ title: C.job.title,
3237
+ flowKeys: [C.job.id, ...(g == null ? void 0 : g.flowKeys) ?? []],
3238
+ job: po(C, {
3239
+ id: b,
3240
+ idType: y
3245
3241
  }),
3246
- ..._,
3242
+ ...g,
3247
3243
  context: {
3248
- user: k.user,
3249
- ..._ == null ? void 0 : _.context
3244
+ user: C.user,
3245
+ ...g == null ? void 0 : g.context
3250
3246
  }
3251
3247
  }));
3252
3248
  },
3253
- fetchFlowById: async (v, _) => n.request(ho, {
3249
+ fetchFlowById: async (b, g) => n.request(fo, {
3254
3250
  params: {
3255
- id: v
3251
+ id: b
3256
3252
  }
3257
- }).then((x) => {
3258
- var k;
3253
+ }).then((y) => {
3254
+ var C;
3259
3255
  return {
3260
- flow: x.flow,
3256
+ flow: y.flow,
3261
3257
  title: "Chatbot",
3262
- flowKeys: (_ == null ? void 0 : _.flowKeys) ?? [],
3263
- ..._,
3258
+ flowKeys: (g == null ? void 0 : g.flowKeys) ?? [],
3259
+ ...g,
3264
3260
  analytics: {
3265
3261
  customProperties: {
3266
- flow_id: x.flow.id,
3267
- flow_version: x.flow.version,
3268
- ...(k = _ == null ? void 0 : _.analytics) == null ? void 0 : k.customProperties
3262
+ flow_id: y.flow.id,
3263
+ flow_version: y.flow.version,
3264
+ ...(C = g == null ? void 0 : g.analytics) == null ? void 0 : C.customProperties
3269
3265
  }
3270
3266
  }
3271
3267
  };
3272
3268
  }),
3273
- open: async (v) => {
3269
+ open: async (b) => {
3274
3270
  if (!(typeof window > "u"))
3275
3271
  try {
3276
- S.cancelCurrentFlow(), S.viewState$.value = "maximised", u || D();
3277
- const _ = l;
3278
- v instanceof Promise ? (S.current$.value = {
3272
+ k.cancelCurrentFlow(), k.viewState$.value = "maximised", u || _();
3273
+ const g = c;
3274
+ b instanceof Promise ? (k.current$.value = {
3279
3275
  state: "loading"
3280
- }, v.then((x) => y(x, _)).catch((x) => {
3281
- if (!h(_))
3282
- return;
3283
- const k = x instanceof Error ? x.message : w("unknown_error");
3284
- S.current$.value = {
3285
- state: "error",
3286
- error: k
3287
- };
3288
- })) : await y(v, _);
3289
- } catch (_) {
3290
- r.error("Error starting flow", _);
3276
+ }, b.then((y) => z(y, g)).catch((y) => {
3277
+ v(g) && (r.error("Error loading flow", y), k.current$.value = {
3278
+ state: "error"
3279
+ });
3280
+ })) : await z(b, g);
3281
+ } catch (g) {
3282
+ r.error("Error starting flow", g);
3291
3283
  }
3292
3284
  },
3293
3285
  /**
@@ -3295,17 +3287,17 @@ ${i.concat(i).join(`
3295
3287
  * under the same key, unfinished, with an answer, including one whose submit started. The candidate loader
3296
3288
  * keeps such a candidate on this chatbot rather than move them mid-application (PROD-7342).
3297
3289
  */
3298
- hasApplicationInProgress: async (v) => {
3299
- const _ = await H.getStateData(v.flow, v.flowKeys, v.context ?? {});
3300
- return _ !== void 0 && Yn({
3301
- data: _,
3302
- nodes: v.flow.nodes
3290
+ hasApplicationInProgress: async (b) => {
3291
+ const g = await H.getStateData(b.flow, b.flowKeys, b.context ?? {});
3292
+ return g !== void 0 && Yn({
3293
+ data: g,
3294
+ nodes: b.flow.nodes
3303
3295
  });
3304
3296
  },
3305
3297
  close: async () => {
3306
- typeof window > "u" || (S.cancelCurrentFlow(), r.info("Closed flow from an external source"));
3298
+ typeof window > "u" || (k.cancelCurrentFlow(), r.info("Closed flow from an external source"));
3307
3299
  },
3308
- destroy: b
3300
+ destroy: h
3309
3301
  };
3310
3302
  });
3311
3303
  function br({
@@ -3339,58 +3331,58 @@ function br({
3339
3331
  });
3340
3332
  }
3341
3333
  export {
3342
- Qa as $,
3343
- Po as A,
3344
- Yr as B,
3334
+ to as $,
3335
+ Io as A,
3336
+ Kr as B,
3345
3337
  mr as C,
3346
- ji as D,
3347
- Lr as E,
3338
+ Mi as D,
3339
+ Br as E,
3348
3340
  ut as F,
3349
- Vr as G,
3350
- eo as H,
3341
+ Yr as G,
3342
+ io as H,
3351
3343
  pt as I,
3352
3344
  Sr as J,
3353
3345
  Rr as K,
3354
3346
  qn as L,
3355
- R as M,
3347
+ B as M,
3356
3348
  _r as N,
3357
3349
  We as O,
3358
- zt as P,
3359
- Kr as Q,
3350
+ At as P,
3351
+ qr as Q,
3360
3352
  Fr as R,
3361
- Br as S,
3362
- Ka as T,
3363
- Ga as U,
3353
+ Lr as S,
3354
+ qa as T,
3355
+ Xa as U,
3364
3356
  H as V,
3365
3357
  Pe as W,
3366
3358
  Xn as X,
3367
- qr as Y,
3368
- oo as Z,
3369
- Xt as _,
3359
+ Zr as Y,
3360
+ no as Z,
3361
+ Ct as _,
3370
3362
  kr as a,
3371
- Dr as b,
3372
- S as c,
3363
+ Ar as b,
3364
+ k as c,
3373
3365
  Jt as d,
3374
- Be as e,
3366
+ Le as e,
3375
3367
  Pr as f,
3376
3368
  Ir as g,
3377
3369
  jr as h,
3378
- Le as i,
3379
- oa as j,
3370
+ Be as i,
3371
+ na as j,
3380
3372
  Mr as k,
3381
3373
  Cr as l,
3382
3374
  Tr as m,
3383
- xa as n,
3375
+ ka as n,
3384
3376
  p as o,
3385
3377
  Er as p,
3386
3378
  bt as q,
3387
3379
  Y as r,
3388
3380
  xr as s,
3389
- ra as t,
3381
+ sa as t,
3390
3382
  $r as u,
3391
3383
  Or as v,
3392
- Ar as w,
3384
+ Dr as w,
3393
3385
  Nr as x,
3394
3386
  zr as y,
3395
- no as z
3387
+ ro as z
3396
3388
  };