@arkyn/components 1.3.9 → 1.3.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.js CHANGED
@@ -1,10 +1,10 @@
1
- import v, { createContext as Ct, useRef as at, useId as wn, useContext as gt, useState as De, forwardRef as En, useEffect as Sn } from "react";
2
- import { Loader2 as Qe, Check as on, ChevronDown as Tn, ChevronRight as Ht, X as _n } from "lucide-react";
3
- import { useActionData as sn, useLocation as ln, Link as Nn } from "@remix-run/react";
1
+ import v, { createContext as Ct, useRef as at, useId as En, useContext as gt, useState as Me, forwardRef as Sn, useEffect as Ht } from "react";
2
+ import { Loader2 as Qe, Check as sn, ChevronDown as Tn, ChevronRight as Yt, X as _n } from "lucide-react";
3
+ import { useActionData as ln, useLocation as cn, Link as Nn } from "@remix-run/react";
4
4
  import { InputMask as kn } from "@react-input/mask";
5
- import { AnimatePresence as Cn, motion as Yt } from "framer-motion";
5
+ import { AnimatePresence as Cn, motion as Vt } from "framer-motion";
6
6
  import Rn from "react-dom";
7
- var Mt = { exports: {} }, dt = {};
7
+ var Dt = { exports: {} }, dt = {};
8
8
  /**
9
9
  * @license React
10
10
  * react-jsx-runtime.production.min.js
@@ -14,12 +14,12 @@ var Mt = { exports: {} }, dt = {};
14
14
  * This source code is licensed under the MIT license found in the
15
15
  * LICENSE file in the root directory of this source tree.
16
16
  */
17
- var Vt;
17
+ var Gt;
18
18
  function In() {
19
- if (Vt)
19
+ if (Gt)
20
20
  return dt;
21
- Vt = 1;
22
- var n = v, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, l = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
21
+ Gt = 1;
22
+ var e = v, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, l = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
23
23
  function h(c, p, o) {
24
24
  var y, _ = {}, N = null, b = null;
25
25
  o !== void 0 && (N = "" + o), p.key !== void 0 && (N = "" + p.key), p.ref !== void 0 && (b = p.ref);
@@ -28,7 +28,7 @@ function In() {
28
28
  if (c && c.defaultProps)
29
29
  for (y in p = c.defaultProps, p)
30
30
  _[y] === void 0 && (_[y] = p[y]);
31
- return { $$typeof: t, type: c, key: N, ref: b, props: _, _owner: l.current };
31
+ return { $$typeof: n, type: c, key: N, ref: b, props: _, _owner: l.current };
32
32
  }
33
33
  return dt.Fragment = a, dt.jsx = h, dt.jsxs = h, dt;
34
34
  }
@@ -42,17 +42,17 @@ var ft = {};
42
42
  * This source code is licensed under the MIT license found in the
43
43
  * LICENSE file in the root directory of this source tree.
44
44
  */
45
- var Gt;
45
+ var Kt;
46
46
  function An() {
47
- return Gt || (Gt = 1, process.env.NODE_ENV !== "production" && function() {
48
- var n = v, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), c = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), o = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), O = Symbol.iterator, A = "@@iterator";
47
+ return Kt || (Kt = 1, process.env.NODE_ENV !== "production" && function() {
48
+ var e = v, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), c = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), o = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), P = Symbol.iterator, A = "@@iterator";
49
49
  function U(r) {
50
50
  if (r === null || typeof r != "object")
51
51
  return null;
52
- var d = O && r[O] || r[A];
52
+ var d = P && r[P] || r[A];
53
53
  return typeof d == "function" ? d : null;
54
54
  }
55
- var w = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
55
+ var w = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
56
56
  function E(r) {
57
57
  {
58
58
  for (var d = arguments.length, g = new Array(d > 1 ? d - 1 : 0), T = 1; T < d; T++)
@@ -62,29 +62,29 @@ function An() {
62
62
  }
63
63
  function L(r, d, g) {
64
64
  {
65
- var T = w.ReactDebugCurrentFrame, Y = T.getStackAddendum();
66
- Y !== "" && (d += "%s", g = g.concat([Y]));
67
- var e = g.map(function(f) {
65
+ var T = w.ReactDebugCurrentFrame, H = T.getStackAddendum();
66
+ H !== "" && (d += "%s", g = g.concat([H]));
67
+ var t = g.map(function(f) {
68
68
  return String(f);
69
69
  });
70
- e.unshift("Warning: " + d), Function.prototype.apply.call(console[r], console, e);
70
+ t.unshift("Warning: " + d), Function.prototype.apply.call(console[r], console, t);
71
71
  }
72
72
  }
73
- var H = !1, D = !1, q = !1, K = !1, Q = !1, re;
73
+ var W = !1, D = !1, X = !1, ee = !1, V = !1, re;
74
74
  re = Symbol.for("react.module.reference");
75
- function V(r) {
76
- return !!(typeof r == "string" || typeof r == "function" || r === s || r === u || Q || r === l || r === o || r === y || K || r === b || H || D || q || typeof r == "object" && r !== null && (r.$$typeof === N || r.$$typeof === _ || r.$$typeof === h || r.$$typeof === c || r.$$typeof === p || // This needs to include all possible module reference object
75
+ function Y(r) {
76
+ return !!(typeof r == "string" || typeof r == "function" || r === s || r === u || V || r === l || r === o || r === y || ee || r === b || W || D || X || typeof r == "object" && r !== null && (r.$$typeof === N || r.$$typeof === _ || r.$$typeof === h || r.$$typeof === c || r.$$typeof === p || // This needs to include all possible module reference object
77
77
  // types supported by any Flight configuration anywhere since
78
78
  // we don't know which Flight build this will end up being used
79
79
  // with.
80
80
  r.$$typeof === re || r.getModuleId !== void 0));
81
81
  }
82
- function $(r, d, g) {
82
+ function z(r, d, g) {
83
83
  var T = r.displayName;
84
84
  if (T)
85
85
  return T;
86
- var Y = d.displayName || d.name || "";
87
- return Y !== "" ? g + "(" + Y + ")" : g;
86
+ var H = d.displayName || d.name || "";
87
+ return H !== "" ? g + "(" + H + ")" : g;
88
88
  }
89
89
  function ae(r) {
90
90
  return r.displayName || "Context";
@@ -119,14 +119,14 @@ function An() {
119
119
  var g = r;
120
120
  return ae(g._context) + ".Provider";
121
121
  case p:
122
- return $(r, r.render, "ForwardRef");
122
+ return z(r, r.render, "ForwardRef");
123
123
  case _:
124
124
  var T = r.displayName || null;
125
125
  return T !== null ? T : k(r.type) || "Memo";
126
126
  case N: {
127
- var Y = r, e = Y._payload, f = Y._init;
127
+ var H = r, t = H._payload, f = H._init;
128
128
  try {
129
- return k(f(e));
129
+ return k(f(t));
130
130
  } catch {
131
131
  return null;
132
132
  }
@@ -134,18 +134,18 @@ function An() {
134
134
  }
135
135
  return null;
136
136
  }
137
- var C = Object.assign, F = 0, J, ie, ee, le, G, M, x;
138
- function W() {
137
+ var R = Object.assign, $ = 0, J, ie, Z, le, G, F, x;
138
+ function O() {
139
139
  }
140
- W.__reactDisabledLog = !0;
141
- function P() {
140
+ O.__reactDisabledLog = !0;
141
+ function j() {
142
142
  {
143
- if (F === 0) {
144
- J = console.log, ie = console.info, ee = console.warn, le = console.error, G = console.group, M = console.groupCollapsed, x = console.groupEnd;
143
+ if ($ === 0) {
144
+ J = console.log, ie = console.info, Z = console.warn, le = console.error, G = console.group, F = console.groupCollapsed, x = console.groupEnd;
145
145
  var r = {
146
146
  configurable: !0,
147
147
  enumerable: !0,
148
- value: W,
148
+ value: O,
149
149
  writable: !0
150
150
  };
151
151
  Object.defineProperties(console, {
@@ -158,56 +158,56 @@ function An() {
158
158
  groupEnd: r
159
159
  });
160
160
  }
161
- F++;
161
+ $++;
162
162
  }
163
163
  }
164
164
  function te() {
165
165
  {
166
- if (F--, F === 0) {
166
+ if ($--, $ === 0) {
167
167
  var r = {
168
168
  configurable: !0,
169
169
  enumerable: !0,
170
170
  writable: !0
171
171
  };
172
172
  Object.defineProperties(console, {
173
- log: C({}, r, {
173
+ log: R({}, r, {
174
174
  value: J
175
175
  }),
176
- info: C({}, r, {
176
+ info: R({}, r, {
177
177
  value: ie
178
178
  }),
179
- warn: C({}, r, {
180
- value: ee
179
+ warn: R({}, r, {
180
+ value: Z
181
181
  }),
182
- error: C({}, r, {
182
+ error: R({}, r, {
183
183
  value: le
184
184
  }),
185
- group: C({}, r, {
185
+ group: R({}, r, {
186
186
  value: G
187
187
  }),
188
- groupCollapsed: C({}, r, {
189
- value: M
188
+ groupCollapsed: R({}, r, {
189
+ value: F
190
190
  }),
191
- groupEnd: C({}, r, {
191
+ groupEnd: R({}, r, {
192
192
  value: x
193
193
  })
194
194
  });
195
195
  }
196
- F < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
196
+ $ < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
197
197
  }
198
198
  }
199
- var z = w.ReactCurrentDispatcher, pe;
200
- function ve(r, d, g) {
199
+ var K = w.ReactCurrentDispatcher, ue;
200
+ function de(r, d, g) {
201
201
  {
202
- if (pe === void 0)
202
+ if (ue === void 0)
203
203
  try {
204
204
  throw Error();
205
- } catch (Y) {
206
- var T = Y.stack.trim().match(/\n( *(at )?)/);
207
- pe = T && T[1] || "";
205
+ } catch (H) {
206
+ var T = H.stack.trim().match(/\n( *(at )?)/);
207
+ ue = T && T[1] || "";
208
208
  }
209
209
  return `
210
- ` + pe + r;
210
+ ` + ue + r;
211
211
  }
212
212
  }
213
213
  var Ie = !1, we;
@@ -215,7 +215,7 @@ function An() {
215
215
  var Ae = typeof WeakMap == "function" ? WeakMap : Map;
216
216
  we = new Ae();
217
217
  }
218
- function fe(r, d) {
218
+ function pe(r, d) {
219
219
  if (!r || Ie)
220
220
  return "";
221
221
  {
@@ -225,10 +225,10 @@ function An() {
225
225
  }
226
226
  var T;
227
227
  Ie = !0;
228
- var Y = Error.prepareStackTrace;
228
+ var H = Error.prepareStackTrace;
229
229
  Error.prepareStackTrace = void 0;
230
- var e;
231
- e = z.current, z.current = null, P();
230
+ var t;
231
+ t = K.current, K.current = null, j();
232
232
  try {
233
233
  if (d) {
234
234
  var f = function() {
@@ -241,53 +241,53 @@ function An() {
241
241
  }), typeof Reflect == "object" && Reflect.construct) {
242
242
  try {
243
243
  Reflect.construct(f, []);
244
- } catch (X) {
245
- T = X;
244
+ } catch (q) {
245
+ T = q;
246
246
  }
247
247
  Reflect.construct(r, [], f);
248
248
  } else {
249
249
  try {
250
250
  f.call();
251
- } catch (X) {
252
- T = X;
251
+ } catch (q) {
252
+ T = q;
253
253
  }
254
254
  r.call(f.prototype);
255
255
  }
256
256
  } else {
257
257
  try {
258
258
  throw Error();
259
- } catch (X) {
260
- T = X;
259
+ } catch (q) {
260
+ T = q;
261
261
  }
262
262
  r();
263
263
  }
264
- } catch (X) {
265
- if (X && T && typeof X.stack == "string") {
266
- for (var i = X.stack.split(`
267
- `), R = T.stack.split(`
268
- `), j = i.length - 1, I = R.length - 1; j >= 1 && I >= 0 && i[j] !== R[I]; )
264
+ } catch (q) {
265
+ if (q && T && typeof q.stack == "string") {
266
+ for (var i = q.stack.split(`
267
+ `), C = T.stack.split(`
268
+ `), M = i.length - 1, I = C.length - 1; M >= 1 && I >= 0 && i[M] !== C[I]; )
269
269
  I--;
270
- for (; j >= 1 && I >= 0; j--, I--)
271
- if (i[j] !== R[I]) {
272
- if (j !== 1 || I !== 1)
270
+ for (; M >= 1 && I >= 0; M--, I--)
271
+ if (i[M] !== C[I]) {
272
+ if (M !== 1 || I !== 1)
273
273
  do
274
- if (j--, I--, I < 0 || i[j] !== R[I]) {
274
+ if (M--, I--, I < 0 || i[M] !== C[I]) {
275
275
  var ce = `
276
- ` + i[j].replace(" at new ", " at ");
276
+ ` + i[M].replace(" at new ", " at ");
277
277
  return r.displayName && ce.includes("<anonymous>") && (ce = ce.replace("<anonymous>", r.displayName)), typeof r == "function" && we.set(r, ce), ce;
278
278
  }
279
- while (j >= 1 && I >= 0);
279
+ while (M >= 1 && I >= 0);
280
280
  break;
281
281
  }
282
282
  }
283
283
  } finally {
284
- Ie = !1, z.current = e, te(), Error.prepareStackTrace = Y;
284
+ Ie = !1, K.current = t, te(), Error.prepareStackTrace = H;
285
285
  }
286
- var ge = r ? r.displayName || r.name : "", de = ge ? ve(ge) : "";
287
- return typeof r == "function" && we.set(r, de), de;
286
+ var ve = r ? r.displayName || r.name : "", me = ve ? de(ve) : "";
287
+ return typeof r == "function" && we.set(r, me), me;
288
288
  }
289
289
  function Xe(r, d, g) {
290
- return fe(r, !1);
290
+ return pe(r, !1);
291
291
  }
292
292
  function qe(r) {
293
293
  var d = r.prototype;
@@ -297,14 +297,14 @@ function An() {
297
297
  if (r == null)
298
298
  return "";
299
299
  if (typeof r == "function")
300
- return fe(r, qe(r));
300
+ return pe(r, qe(r));
301
301
  if (typeof r == "string")
302
- return ve(r);
302
+ return de(r);
303
303
  switch (r) {
304
304
  case o:
305
- return ve("Suspense");
305
+ return de("Suspense");
306
306
  case y:
307
- return ve("SuspenseList");
307
+ return de("SuspenseList");
308
308
  }
309
309
  if (typeof r == "object")
310
310
  switch (r.$$typeof) {
@@ -313,16 +313,16 @@ function An() {
313
313
  case _:
314
314
  return oe(r.type, d, g);
315
315
  case N: {
316
- var T = r, Y = T._payload, e = T._init;
316
+ var T = r, H = T._payload, t = T._init;
317
317
  try {
318
- return oe(e(Y), d, g);
318
+ return oe(t(H), d, g);
319
319
  } catch {
320
320
  }
321
321
  }
322
322
  }
323
323
  return "";
324
324
  }
325
- var me = Object.prototype.hasOwnProperty, $e = {}, Je = w.ReactDebugCurrentFrame;
325
+ var he = Object.prototype.hasOwnProperty, $e = {}, Je = w.ReactDebugCurrentFrame;
326
326
  function Ne(r) {
327
327
  if (r) {
328
328
  var d = r._owner, g = oe(r.type, r._source, d ? d.type : null);
@@ -330,22 +330,22 @@ function An() {
330
330
  } else
331
331
  Je.setExtraStackFrame(null);
332
332
  }
333
- function ot(r, d, g, T, Y) {
333
+ function ot(r, d, g, T, H) {
334
334
  {
335
- var e = Function.call.bind(me);
335
+ var t = Function.call.bind(he);
336
336
  for (var f in r)
337
- if (e(r, f)) {
337
+ if (t(r, f)) {
338
338
  var i = void 0;
339
339
  try {
340
340
  if (typeof r[f] != "function") {
341
- var R = Error((T || "React class") + ": " + g + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
342
- throw R.name = "Invariant Violation", R;
341
+ var C = Error((T || "React class") + ": " + g + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
342
+ throw C.name = "Invariant Violation", C;
343
343
  }
344
344
  i = r[f](d, f, T, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
345
- } catch (j) {
346
- i = j;
345
+ } catch (M) {
346
+ i = M;
347
347
  }
348
- i && !(i instanceof Error) && (Ne(Y), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", T || "React class", g, f, typeof i), Ne(null)), i instanceof Error && !(i.message in $e) && ($e[i.message] = !0, Ne(Y), E("Failed %s type: %s", g, i.message), Ne(null));
348
+ i && !(i instanceof Error) && (Ne(H), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", T || "React class", g, f, typeof i), Ne(null)), i instanceof Error && !(i.message in $e) && ($e[i.message] = !0, Ne(H), E("Failed %s type: %s", g, i.message), Ne(null));
349
349
  }
350
350
  }
351
351
  }
@@ -373,15 +373,15 @@ function An() {
373
373
  if (Le(r))
374
374
  return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ye(r)), ke(r);
375
375
  }
376
- var Me = w.ReactCurrentOwner, We = {
376
+ var De = w.ReactCurrentOwner, We = {
377
377
  key: !0,
378
378
  ref: !0,
379
379
  __self: !0,
380
380
  __source: !0
381
381
  }, He, Fe, Ce;
382
382
  Ce = {};
383
- function ue(r) {
384
- if (me.call(r, "ref")) {
383
+ function fe(r) {
384
+ if (he.call(r, "ref")) {
385
385
  var d = Object.getOwnPropertyDescriptor(r, "ref").get;
386
386
  if (d && d.isReactWarning)
387
387
  return !1;
@@ -389,7 +389,7 @@ function An() {
389
389
  return r.ref !== void 0;
390
390
  }
391
391
  function ze(r) {
392
- if (me.call(r, "key")) {
392
+ if (he.call(r, "key")) {
393
393
  var d = Object.getOwnPropertyDescriptor(r, "key").get;
394
394
  if (d && d.isReactWarning)
395
395
  return !1;
@@ -397,9 +397,9 @@ function An() {
397
397
  return r.key !== void 0;
398
398
  }
399
399
  function Ye(r, d) {
400
- if (typeof r.ref == "string" && Me.current && d && Me.current.stateNode !== d) {
401
- var g = k(Me.current.type);
402
- Ce[g] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', k(Me.current.type), r.ref), Ce[g] = !0);
400
+ if (typeof r.ref == "string" && De.current && d && De.current.stateNode !== d) {
401
+ var g = k(De.current.type);
402
+ Ce[g] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', k(De.current.type), r.ref), Ce[g] = !0);
403
403
  }
404
404
  }
405
405
  function S(r, d) {
@@ -424,17 +424,17 @@ function An() {
424
424
  });
425
425
  }
426
426
  }
427
- var Z = function(r, d, g, T, Y, e, f) {
427
+ var Q = function(r, d, g, T, H, t, f) {
428
428
  var i = {
429
429
  // This tag allows us to uniquely identify this as a React Element
430
- $$typeof: t,
430
+ $$typeof: n,
431
431
  // Built-in properties that belong on the element
432
432
  type: r,
433
433
  key: d,
434
434
  ref: g,
435
435
  props: f,
436
436
  // Record the component responsible for creating this element.
437
- _owner: e
437
+ _owner: t
438
438
  };
439
439
  return i._store = {}, Object.defineProperty(i._store, "validated", {
440
440
  configurable: !1,
@@ -450,28 +450,28 @@ function An() {
450
450
  configurable: !1,
451
451
  enumerable: !1,
452
452
  writable: !1,
453
- value: Y
453
+ value: H
454
454
  }), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
455
455
  };
456
- function Ee(r, d, g, T, Y) {
456
+ function Ee(r, d, g, T, H) {
457
457
  {
458
- var e, f = {}, i = null, R = null;
459
- g !== void 0 && (Ue(g), i = "" + g), ze(d) && (Ue(d.key), i = "" + d.key), ue(d) && (R = d.ref, Ye(d, Y));
460
- for (e in d)
461
- me.call(d, e) && !We.hasOwnProperty(e) && (f[e] = d[e]);
458
+ var t, f = {}, i = null, C = null;
459
+ g !== void 0 && (Ue(g), i = "" + g), ze(d) && (Ue(d.key), i = "" + d.key), fe(d) && (C = d.ref, Ye(d, H));
460
+ for (t in d)
461
+ he.call(d, t) && !We.hasOwnProperty(t) && (f[t] = d[t]);
462
462
  if (r && r.defaultProps) {
463
- var j = r.defaultProps;
464
- for (e in j)
465
- f[e] === void 0 && (f[e] = j[e]);
463
+ var M = r.defaultProps;
464
+ for (t in M)
465
+ f[t] === void 0 && (f[t] = M[t]);
466
466
  }
467
- if (i || R) {
467
+ if (i || C) {
468
468
  var I = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
469
- i && S(f, I), R && se(f, I);
469
+ i && S(f, I), C && se(f, I);
470
470
  }
471
- return Z(r, i, R, Y, T, Me.current, f);
471
+ return Q(r, i, C, H, T, De.current, f);
472
472
  }
473
473
  }
474
- var he = w.ReactCurrentOwner, ne = w.ReactDebugCurrentFrame;
474
+ var ge = w.ReactCurrentOwner, ne = w.ReactDebugCurrentFrame;
475
475
  function be(r) {
476
476
  if (r) {
477
477
  var d = r._owner, g = oe(r.type, r._source, d ? d.type : null);
@@ -482,12 +482,12 @@ function An() {
482
482
  var st;
483
483
  st = !1;
484
484
  function et(r) {
485
- return typeof r == "object" && r !== null && r.$$typeof === t;
485
+ return typeof r == "object" && r !== null && r.$$typeof === n;
486
486
  }
487
487
  function tt() {
488
488
  {
489
- if (he.current) {
490
- var r = k(he.current.type);
489
+ if (ge.current) {
490
+ var r = k(ge.current.type);
491
491
  if (r)
492
492
  return `
493
493
 
@@ -530,7 +530,7 @@ Check the top-level render call using <` + g + ">.");
530
530
  return;
531
531
  it[g] = !0;
532
532
  var T = "";
533
- r && r._owner && r._owner !== he.current && (T = " It was passed a child from " + k(r._owner.type) + "."), be(r), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, T), be(null);
533
+ r && r._owner && r._owner !== ge.current && (T = " It was passed a child from " + k(r._owner.type) + "."), be(r), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, T), be(null);
534
534
  }
535
535
  }
536
536
  function ct(r, d) {
@@ -545,9 +545,9 @@ Check the top-level render call using <` + g + ">.");
545
545
  else if (et(r))
546
546
  r._store && (r._store.validated = !0);
547
547
  else if (r) {
548
- var Y = U(r);
549
- if (typeof Y == "function" && Y !== r.entries)
550
- for (var e = Y.call(r), f; !(f = e.next()).done; )
548
+ var H = U(r);
549
+ if (typeof H == "function" && H !== r.entries)
550
+ for (var t = H.call(r), f; !(f = t.next()).done; )
551
551
  et(f.value) && lt(f.value, d);
552
552
  }
553
553
  }
@@ -571,8 +571,8 @@ Check the top-level render call using <` + g + ">.");
571
571
  ot(g, r.props, "prop", T, r);
572
572
  } else if (d.PropTypes !== void 0 && !st) {
573
573
  st = !0;
574
- var Y = k(d);
575
- E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Y || "Unknown");
574
+ var H = k(d);
575
+ E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", H || "Unknown");
576
576
  }
577
577
  typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
578
578
  }
@@ -590,18 +590,18 @@ Check the top-level render call using <` + g + ">.");
590
590
  }
591
591
  }
592
592
  var nt = {};
593
- function ut(r, d, g, T, Y, e) {
593
+ function ut(r, d, g, T, H, t) {
594
594
  {
595
- var f = V(r);
595
+ var f = Y(r);
596
596
  if (!f) {
597
597
  var i = "";
598
598
  (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
599
- var R = vt(Y);
600
- R ? i += R : i += tt();
601
- var j;
602
- r === null ? j = "null" : Se(r) ? j = "array" : r !== void 0 && r.$$typeof === t ? (j = "<" + (k(r.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : j = typeof r, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", j, i);
599
+ var C = vt(H);
600
+ C ? i += C : i += tt();
601
+ var M;
602
+ r === null ? M = "null" : Se(r) ? M = "array" : r !== void 0 && r.$$typeof === n ? (M = "<" + (k(r.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : M = typeof r, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", M, i);
603
603
  }
604
- var I = Ee(r, d, g, Y, e);
604
+ var I = Ee(r, d, g, H, t);
605
605
  if (I == null)
606
606
  return I;
607
607
  if (f) {
@@ -609,26 +609,26 @@ Check the top-level render call using <` + g + ">.");
609
609
  if (ce !== void 0)
610
610
  if (T)
611
611
  if (Se(ce)) {
612
- for (var ge = 0; ge < ce.length; ge++)
613
- ct(ce[ge], r);
612
+ for (var ve = 0; ve < ce.length; ve++)
613
+ ct(ce[ve], r);
614
614
  Object.freeze && Object.freeze(ce);
615
615
  } else
616
616
  E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
617
617
  else
618
618
  ct(ce, r);
619
619
  }
620
- if (me.call(d, "key")) {
621
- var de = k(r), X = Object.keys(d).filter(function(xn) {
622
- return xn !== "key";
623
- }), rt = X.length > 0 ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}";
624
- if (!nt[de + rt]) {
625
- var xt = X.length > 0 ? "{" + X.join(": ..., ") + ": ...}" : "{}";
620
+ if (he.call(d, "key")) {
621
+ var me = k(r), q = Object.keys(d).filter(function(wn) {
622
+ return wn !== "key";
623
+ }), rt = q.length > 0 ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}";
624
+ if (!nt[me + rt]) {
625
+ var xt = q.length > 0 ? "{" + q.join(": ..., ") + ": ...}" : "{}";
626
626
  E(`A props object containing a "key" prop is being spread into JSX:
627
627
  let props = %s;
628
628
  <%s {...props} />
629
629
  React keys must be passed directly to JSX without using spread:
630
630
  let props = %s;
631
- <%s key={someKey} {...props} />`, rt, de, xt, de), nt[de + rt] = !0;
631
+ <%s key={someKey} {...props} />`, rt, me, xt, me), nt[me + rt] = !0;
632
632
  }
633
633
  }
634
634
  return r === s ? Ve(I) : It(I), I;
@@ -644,14 +644,14 @@ React keys must be passed directly to JSX without using spread:
644
644
  ft.Fragment = s, ft.jsx = bt, ft.jsxs = Oe;
645
645
  }()), ft;
646
646
  }
647
- process.env.NODE_ENV === "production" ? Mt.exports = In() : Mt.exports = An();
648
- var m = Mt.exports;
649
- function kt(n, t) {
650
- return t ? /* @__PURE__ */ m.jsx(t, { size: n, strokeWidth: 2.5 }) : /* @__PURE__ */ m.jsx(m.Fragment, {});
647
+ process.env.NODE_ENV === "production" ? Dt.exports = In() : Dt.exports = An();
648
+ var m = Dt.exports;
649
+ function kt(e, n) {
650
+ return n ? /* @__PURE__ */ m.jsx(n, { size: e, strokeWidth: 2.5 }) : /* @__PURE__ */ m.jsx(m.Fragment, {});
651
651
  }
652
- function Ln(n) {
652
+ function Ln(e) {
653
653
  const {
654
- variant: t = "ghost",
654
+ variant: n = "ghost",
655
655
  scheme: a = "primary",
656
656
  size: s = "md",
657
657
  leftIcon: l,
@@ -659,38 +659,38 @@ function Ln(n) {
659
659
  className: h = "",
660
660
  children: c,
661
661
  ...p
662
- } = n, y = { md: 12, lg: 14 }[s];
662
+ } = e, y = { md: 12, lg: 14 }[s];
663
663
  return {
664
- className: `arkyn_badge ${t} ${a} ${s} ${h}`.trim(),
664
+ className: `arkyn_badge ${n} ${a} ${s} ${h}`.trim(),
665
665
  children: c,
666
666
  leftIcon: kt(y, l),
667
667
  rightIcon: kt(y, u),
668
668
  ...p
669
669
  };
670
670
  }
671
- function Xr(n) {
672
- const { leftIcon: t, children: a, rightIcon: s, ...l } = Ln(n);
671
+ function qr(e) {
672
+ const { leftIcon: n, children: a, rightIcon: s, ...l } = Ln(e);
673
673
  return /* @__PURE__ */ m.jsxs("div", { ...l, children: [
674
- t,
674
+ n,
675
675
  a,
676
676
  s
677
677
  ] });
678
678
  }
679
- function qr(n) {
679
+ function Jr(e) {
680
680
  const {
681
- className: t,
681
+ className: n,
682
682
  orientation: a = "horizontal",
683
683
  ...s
684
- } = n, l = `arkyn_divider ${a} ${t}`;
684
+ } = e, l = `arkyn_divider ${a} ${n}`;
685
685
  return /* @__PURE__ */ m.jsx("div", { className: l, ...s });
686
686
  }
687
- function Jr({ className: n, ...t }) {
688
- const a = "arkyn_skeleton " + n;
689
- return /* @__PURE__ */ m.jsx("div", { className: a.trim(), ...t });
687
+ function Zr({ className: e, ...n }) {
688
+ const a = "arkyn_skeleton " + e;
689
+ return /* @__PURE__ */ m.jsx("div", { className: a.trim(), ...n });
690
690
  }
691
- function On(n) {
691
+ function On(e) {
692
692
  const {
693
- isLoading: t = !1,
693
+ isLoading: n = !1,
694
694
  scheme: a = "primary",
695
695
  variant: s = "solid",
696
696
  loadingText: l,
@@ -701,44 +701,44 @@ function On(n) {
701
701
  className: o = "",
702
702
  children: y,
703
703
  ..._
704
- } = n, b = { xs: 12, sm: 16, md: 20, lg: 24 }[u];
704
+ } = e, b = { xs: 12, sm: 16, md: 20, lg: 24 }[u];
705
705
  return {
706
- className: `arkyn_button loading_text_${!!l} ${s} ${a} ${u} loading_${t} ${o}`.trim(),
706
+ className: `arkyn_button loading_text_${!!l} ${s} ${a} ${u} loading_${n} ${o}`.trim(),
707
707
  loadingText: l,
708
708
  children: y,
709
709
  iconSize: b,
710
- disabled: p || t,
710
+ disabled: p || n,
711
711
  leftIcon: kt(b, h),
712
712
  rightIcon: kt(b, c),
713
713
  ..._
714
714
  };
715
715
  }
716
- function Zr(n) {
717
- const { leftIcon: t, rightIcon: a, iconSize: s, children: l, loadingText: u, ...h } = On(n);
716
+ function Qr(e) {
717
+ const { leftIcon: n, rightIcon: a, iconSize: s, children: l, loadingText: u, ...h } = On(e);
718
718
  return /* @__PURE__ */ m.jsxs("button", { ...h, children: [
719
719
  /* @__PURE__ */ m.jsxs("div", { className: "spinner", children: [
720
720
  /* @__PURE__ */ m.jsx(Qe, { size: s, strokeWidth: 2.5 }),
721
721
  u && u
722
722
  ] }),
723
723
  /* @__PURE__ */ m.jsxs("div", { className: "content", children: [
724
- t,
724
+ n,
725
725
  l,
726
726
  a
727
727
  ] })
728
728
  ] });
729
729
  }
730
- const cn = Ct({});
731
- function Qr({ children: n, ...t }) {
730
+ const un = Ct({});
731
+ function ea({ children: e, ...n }) {
732
732
  var c, p;
733
- const a = sn(), s = at(null), l = ((c = s.current) == null ? void 0 : c.name) || "", u = ((p = a == null ? void 0 : a.fieldErrors) == null ? void 0 : p[l]) || null, h = wn();
734
- return /* @__PURE__ */ m.jsx(cn.Provider, { value: { error: u, id: h, inputRef: s }, children: /* @__PURE__ */ m.jsx("section", { className: "arkyn_form_controller", ...t, children: n }) });
733
+ const a = ln(), s = at(null), l = ((c = s.current) == null ? void 0 : c.name) || "", u = ((p = a == null ? void 0 : a.fieldErrors) == null ? void 0 : p[l]) || null, h = En();
734
+ return /* @__PURE__ */ m.jsx(un.Provider, { value: { error: u, id: h, inputRef: s }, children: /* @__PURE__ */ m.jsx("section", { className: "arkyn_form_controller", ...n, children: e }) });
735
735
  }
736
736
  function Ke() {
737
- return gt(cn);
737
+ return gt(un);
738
738
  }
739
- function ea(n) {
739
+ function ta(e) {
740
740
  const {
741
- name: t,
741
+ name: n,
742
742
  className: a = "",
743
743
  size: s = "md",
744
744
  isError: l,
@@ -747,9 +747,9 @@ function ea(n) {
747
747
  onCheck: c,
748
748
  value: p,
749
749
  ...o
750
- } = n, { id: y, inputRef: _, error: N } = Ke(), b = l || !!N, [O, A] = De(u || !1), U = typeof h == "boolean" ? h : O, w = `arkyn_checkbox ${s} ${b ? "error" : ""} ${U ? "checked" : ""} ${a}`;
750
+ } = e, { id: y, inputRef: _, error: N } = Ke(), b = l || !!N, [P, A] = Me(u || !1), U = typeof h == "boolean" ? h : P, w = `arkyn_checkbox ${s} ${b ? "error" : ""} ${U ? "checked" : ""} ${a}`;
751
751
  function E() {
752
- const L = O;
752
+ const L = P;
753
753
  A(!L), c && c(L ? "" : p || "checked");
754
754
  }
755
755
  return /* @__PURE__ */ m.jsxs("div", { id: y, className: w, onClick: E, ...o, children: [
@@ -757,38 +757,38 @@ function ea(n) {
757
757
  "input",
758
758
  {
759
759
  type: "hidden",
760
- name: t,
760
+ name: n,
761
761
  ref: _,
762
762
  value: U ? p || "checked" : ""
763
763
  }
764
764
  ),
765
- /* @__PURE__ */ m.jsx(on, {})
765
+ /* @__PURE__ */ m.jsx(sn, {})
766
766
  ] });
767
767
  }
768
- function ta({ children: n }) {
769
- const { error: t } = Ke();
770
- return n ? /* @__PURE__ */ m.jsx("strong", { className: "arkyn_form_error", children: n }) : t ? /* @__PURE__ */ m.jsx("strong", { className: "arkyn_form_error", children: t }) : /* @__PURE__ */ m.jsx(m.Fragment, {});
768
+ function na({ children: e }) {
769
+ const { error: n } = Ke();
770
+ return e ? /* @__PURE__ */ m.jsx("strong", { className: "arkyn_form_error", children: e }) : n ? /* @__PURE__ */ m.jsx("strong", { className: "arkyn_form_error", children: n }) : /* @__PURE__ */ m.jsx(m.Fragment, {});
771
771
  }
772
- function Pn(n) {
773
- const { showAsterisk: t = !1, className: a = "", ...s } = n;
772
+ function Pn(e) {
773
+ const { showAsterisk: n = !1, className: a = "", ...s } = e;
774
774
  return {
775
- className: `arkyn_form_label ${t ? "show-asterisk" : ""} ${a}`.trim(),
775
+ className: `arkyn_form_label ${n ? "show-asterisk" : ""} ${a}`.trim(),
776
776
  ...s
777
777
  };
778
778
  }
779
- function na(n) {
780
- const { id: t } = Ke();
781
- return /* @__PURE__ */ m.jsx("label", { ...Pn(n), htmlFor: t });
779
+ function ra(e) {
780
+ const { id: n } = Ke();
781
+ return /* @__PURE__ */ m.jsx("label", { ...Pn(e), htmlFor: n });
782
782
  }
783
- const Kt = {
783
+ const Xt = {
784
784
  xs: 12,
785
785
  sm: 16,
786
786
  md: 20,
787
787
  lg: 24
788
788
  };
789
- function ra(n) {
789
+ function aa(e) {
790
790
  const {
791
- isLoading: t = !1,
791
+ isLoading: n = !1,
792
792
  scheme: a = "primary",
793
793
  variant: s = "solid",
794
794
  size: l = "md",
@@ -796,45 +796,45 @@ function ra(n) {
796
796
  disabled: h,
797
797
  className: c = "",
798
798
  ...p
799
- } = n, o = `arkyn_icon_button ${s} ${a} ${l} loading_${t} ${c}`;
799
+ } = e, o = `arkyn_icon_button ${s} ${a} ${l} loading_${n} ${c}`;
800
800
  return /* @__PURE__ */ m.jsxs(
801
801
  "button",
802
802
  {
803
- disabled: h || t,
803
+ disabled: h || n,
804
804
  className: o.trim(),
805
805
  ...p,
806
806
  children: [
807
- /* @__PURE__ */ m.jsx("div", { className: "spinner", children: /* @__PURE__ */ m.jsx(Qe, { size: Kt[l], strokeWidth: 2.5 }) }),
808
- /* @__PURE__ */ m.jsx("div", { className: "content " + l, children: /* @__PURE__ */ m.jsx(u, { size: Kt[l], strokeWidth: 2.5 }) })
807
+ /* @__PURE__ */ m.jsx("div", { className: "spinner", children: /* @__PURE__ */ m.jsx(Qe, { size: Xt[l], strokeWidth: 2.5 }) }),
808
+ /* @__PURE__ */ m.jsx("div", { className: "content " + l, children: /* @__PURE__ */ m.jsx(u, { size: Xt[l], strokeWidth: 2.5 }) })
809
809
  ]
810
810
  }
811
811
  );
812
812
  }
813
- function Ge(n, t, a) {
814
- if (!n)
813
+ function Ge(e, n, a) {
814
+ if (!e)
815
815
  return /* @__PURE__ */ m.jsx(m.Fragment, {});
816
- if (typeof n == "string")
817
- return /* @__PURE__ */ m.jsx("p", { className: a, children: n });
818
- const s = n;
819
- return /* @__PURE__ */ m.jsx("p", { className: a, children: /* @__PURE__ */ m.jsx(s, { color: "var(--secondary-600)", size: t, strokeWidth: 2.5 }) });
816
+ if (typeof e == "string")
817
+ return /* @__PURE__ */ m.jsx("p", { className: a, children: e });
818
+ const s = e;
819
+ return /* @__PURE__ */ m.jsx("p", { className: a, children: /* @__PURE__ */ m.jsx(s, { color: "var(--secondary-600)", size: n, strokeWidth: 2.5 }) });
820
820
  }
821
- function Bt(n) {
822
- return n && n.replace(/[^0-9]/g, "");
821
+ function Bt(e) {
822
+ return e && e.replace(/[^0-9]/g, "");
823
823
  }
824
- function un(n, t) {
824
+ function dn(e, n) {
825
825
  let a = "", s = 0;
826
- return Array.from(n).forEach((l, u) => {
827
- t[u + s].match(/[0-9]/) || (a += t[u + s], s++), a += l;
826
+ return Array.from(e).forEach((l, u) => {
827
+ n[u + s].match(/[0-9]/) || (a += n[u + s], s++), a += l;
828
828
  }), a;
829
829
  }
830
- function dn(n) {
831
- return n.length > 11 ? "CNPJ" : "CPF";
830
+ function fn(e) {
831
+ return e.length > 11 ? "CNPJ" : "CPF";
832
832
  }
833
833
  const Ut = {
834
834
  CPF: "999.999.999-999",
835
835
  CNPJ: "99.999.999/9999-99"
836
- }, fn = Bt(Ut.CNPJ).length;
837
- function jn(n, t) {
836
+ }, mn = Bt(Ut.CNPJ).length;
837
+ function jn(e, n) {
838
838
  const {
839
839
  isLoading: a,
840
840
  isError: s,
@@ -848,31 +848,31 @@ function jn(n, t) {
848
848
  disabled: _,
849
849
  defaultValue: N,
850
850
  readOnly: b,
851
- onFocus: O,
851
+ onFocus: P,
852
852
  onBlur: A,
853
853
  title: U,
854
854
  style: w,
855
855
  onChange: E,
856
856
  ...L
857
- } = n;
858
- function H(C) {
859
- let F = Bt(C);
860
- const J = dn(F);
861
- if (!(F.length > fn))
862
- return F = un(F, Ut[J]), F;
857
+ } = e;
858
+ function W(R) {
859
+ let $ = Bt(R);
860
+ const J = fn($);
861
+ if (!($.length > mn))
862
+ return $ = dn($, Ut[J]), $;
863
863
  }
864
- const D = y ? "right" : "left", $ = `arkyn_input ${c ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${_ || b || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${u}`, k = { md: 20, lg: 20 }[l];
864
+ const D = y ? "right" : "left", z = `arkyn_input ${c ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${_ || b || a ? "opacity" : ""} ${s ? "errored" : ""} ${n ? "focused" : ""} ${u}`, k = { md: 20, lg: 20 }[l];
865
865
  return {
866
866
  isLoading: a,
867
- className: $,
867
+ className: z,
868
868
  prefix: Ge(c, k, "prefix"),
869
869
  sufix: Ge(p, k, "sufix"),
870
870
  LeftIcon: o,
871
871
  RightIcon: y,
872
- defaultValue: H(N || ""),
872
+ defaultValue: W(N || ""),
873
873
  disabled: _,
874
874
  readOnly: b,
875
- onFocus: O,
875
+ onFocus: P,
876
876
  onBlur: A,
877
877
  title: U,
878
878
  style: w,
@@ -883,40 +883,40 @@ function jn(n, t) {
883
883
  ...L
884
884
  };
885
885
  }
886
- function Dn(n) {
887
- const [t, a] = De(!1), s = at(null), { inputRef: l, id: u, error: h } = Ke(), c = l || s, p = n.isError || !!h, {
886
+ function Mn(e) {
887
+ const [n, a] = Me(!1), s = at(null), { inputRef: l, id: u, error: h } = Ke(), c = l || s, p = e.isError || !!h, {
888
888
  disabled: o,
889
889
  title: y,
890
890
  style: _,
891
891
  className: N,
892
892
  prefix: b,
893
- sufix: O,
893
+ sufix: P,
894
894
  iconSize: A,
895
895
  loadingPosition: U,
896
896
  isLoading: w,
897
897
  LeftIcon: E,
898
898
  readOnly: L,
899
- onFocus: H,
899
+ onFocus: W,
900
900
  onBlur: D,
901
- RightIcon: q,
902
- Spinner: K,
903
- onChange: Q,
901
+ RightIcon: X,
902
+ Spinner: ee,
903
+ onChange: V,
904
904
  value: re,
905
- defaultValue: V,
906
- ...$
907
- } = jn({ ...n, id: u, isError: p }, t), [ae, k] = De(V), C = E && !w, F = q && !w, J = U === "left" && w, ie = U === "right" && w;
908
- function ee() {
905
+ defaultValue: Y,
906
+ ...z
907
+ } = jn({ ...e, id: u, isError: p }, n), [ae, k] = Me(Y), R = E && !w, $ = X && !w, J = U === "left" && w, ie = U === "right" && w;
908
+ function Z() {
909
909
  o || !(c != null && c.current) || (a(!0), c.current.focus());
910
910
  }
911
911
  function le(x) {
912
- let W = Bt(x.target.value);
913
- const P = dn(W);
914
- W.length > fn || (W = un(W, Ut[P]), x.target.value = W, k(W), Q && Q(x));
912
+ let O = Bt(x.target.value);
913
+ const j = fn(O);
914
+ O.length > mn || (O = dn(O, Ut[j]), x.target.value = O, k(O), V && V(x));
915
915
  }
916
916
  function G(x) {
917
- a(!0), H && H(x);
917
+ a(!0), W && W(x);
918
918
  }
919
- function M(x) {
919
+ function F(x) {
920
920
  a(!1), D && D(x);
921
921
  }
922
922
  return /* @__PURE__ */ m.jsxs(
@@ -924,12 +924,12 @@ function Dn(n) {
924
924
  {
925
925
  title: y,
926
926
  style: _,
927
- onClick: ee,
927
+ onClick: Z,
928
928
  className: N,
929
929
  children: [
930
930
  b,
931
- J && K,
932
- C && /* @__PURE__ */ m.jsx(E, { size: A, strokeWidth: 2.5 }),
931
+ J && ee,
932
+ R && /* @__PURE__ */ m.jsx(E, { size: A, strokeWidth: 2.5 }),
933
933
  /* @__PURE__ */ m.jsx(
934
934
  "input",
935
935
  {
@@ -939,18 +939,18 @@ function Dn(n) {
939
939
  value: re || ae,
940
940
  onFocus: G,
941
941
  onChange: le,
942
- onBlur: M,
943
- ...$
942
+ onBlur: F,
943
+ ...z
944
944
  }
945
945
  ),
946
- F && /* @__PURE__ */ m.jsx(q, { size: A, strokeWidth: 2.5 }),
947
- ie && K,
948
- O
946
+ $ && /* @__PURE__ */ m.jsx(X, { size: A, strokeWidth: 2.5 }),
947
+ ie && ee,
948
+ P
949
949
  ]
950
950
  }
951
951
  );
952
952
  }
953
- function Mn(n, t) {
953
+ function Dn(e, n) {
954
954
  const {
955
955
  isLoading: a,
956
956
  isError: s,
@@ -964,17 +964,17 @@ function Mn(n, t) {
964
964
  disabled: _,
965
965
  readOnly: N,
966
966
  onFocus: b,
967
- onBlur: O,
967
+ onBlur: P,
968
968
  title: A,
969
969
  style: U,
970
970
  showCents: w = !1,
971
971
  max: E = 1e9,
972
972
  onChange: L,
973
- ...H
974
- } = n, D = y ? "right" : "left", $ = `arkyn_input ${c ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${_ || N || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${u}`, k = { md: 20, lg: 20 }[l];
973
+ ...W
974
+ } = e, D = y ? "right" : "left", z = `arkyn_input ${c ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${_ || N || a ? "opacity" : ""} ${s ? "errored" : ""} ${n ? "focused" : ""} ${u}`, k = { md: 20, lg: 20 }[l];
975
975
  return {
976
976
  isLoading: a,
977
- className: $,
977
+ className: z,
978
978
  prefix: Ge(c, k, "prefix"),
979
979
  sufix: Ge(p, k, "sufix"),
980
980
  LeftIcon: o,
@@ -982,7 +982,7 @@ function Mn(n, t) {
982
982
  disabled: _,
983
983
  readOnly: N,
984
984
  onFocus: b,
985
- onBlur: O,
985
+ onBlur: P,
986
986
  title: A,
987
987
  style: U,
988
988
  max: E,
@@ -991,27 +991,27 @@ function Mn(n, t) {
991
991
  loadingPosition: D,
992
992
  iconSize: k,
993
993
  Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: k, strokeWidth: 2.5 }),
994
- ...H
994
+ ...W
995
995
  };
996
996
  }
997
- const zn = /^[1-9]{1}$/, $n = /^[0-9]{1}$/, Xt = 8;
998
- function Fn(n, t) {
999
- if (n === 0)
997
+ const zn = /^[1-9]{1}$/, $n = /^[0-9]{1}$/, qt = 8;
998
+ function Fn(e, n) {
999
+ if (e === 0)
1000
1000
  return "";
1001
- const a = (n / 100).toLocaleString("pt-BR", {
1001
+ const a = (e / 100).toLocaleString("pt-BR", {
1002
1002
  style: "currency",
1003
1003
  currency: "BRL"
1004
1004
  });
1005
- return t ? a : a.replace("R$", "").trim();
1005
+ return n ? a : a.replace("R$", "").trim();
1006
1006
  }
1007
- function Bn(n) {
1008
- const { currencyValue: t, event: a, max: s, setCurrencyValue: l } = n, { key: u, keyCode: h } = a;
1009
- if (t === 0 && !zn.test(u) || t !== 0 && !$n.test(u) && h !== Xt)
1007
+ function Bn(e) {
1008
+ const { currencyValue: n, event: a, max: s, setCurrencyValue: l } = e, { key: u, keyCode: h } = a;
1009
+ if (n === 0 && !zn.test(u) || n !== 0 && !$n.test(u) && h !== qt)
1010
1010
  return;
1011
- const c = t.toString();
1011
+ const c = n.toString();
1012
1012
  let p;
1013
- if (h !== Xt) {
1014
- const o = t === 0 ? u : `${c}${u}`;
1013
+ if (h !== qt) {
1014
+ const o = n === 0 ? u : `${c}${u}`;
1015
1015
  p = Number.parseInt(o, 10);
1016
1016
  } else {
1017
1017
  const o = c.slice(0, -1);
@@ -1019,41 +1019,41 @@ function Bn(n) {
1019
1019
  }
1020
1020
  p > Number(s) || l(p);
1021
1021
  }
1022
- function Un(n) {
1023
- const [t, a] = De(!1), s = at(null), { inputRef: l, id: u, error: h } = Ke(), c = l || s, p = n.isError || !!h, {
1022
+ function Un(e) {
1023
+ const [n, a] = Me(!1), s = at(null), { inputRef: l, id: u, error: h } = Ke(), c = l || s, p = e.isError || !!h, {
1024
1024
  disabled: o,
1025
1025
  title: y,
1026
1026
  style: _,
1027
1027
  className: N,
1028
1028
  prefix: b,
1029
- sufix: O,
1029
+ sufix: P,
1030
1030
  iconSize: A,
1031
1031
  loadingPosition: U,
1032
1032
  isLoading: w,
1033
1033
  LeftIcon: E,
1034
1034
  readOnly: L,
1035
- onFocus: H,
1035
+ onFocus: W,
1036
1036
  onBlur: D,
1037
- RightIcon: q,
1038
- Spinner: K,
1039
- value: Q,
1037
+ RightIcon: X,
1038
+ Spinner: ee,
1039
+ value: V,
1040
1040
  max: re,
1041
- onKeyDown: V,
1042
- onChange: $,
1041
+ onKeyDown: Y,
1042
+ onChange: z,
1043
1043
  showCents: ae,
1044
1044
  defaultValue: k,
1045
- ...C
1046
- } = Mn({ ...n, id: u, isError: p }, t), [F, J] = De(k * 100 || 0), ie = E && !w, ee = q && !w, le = U === "left" && w, G = U === "right" && w;
1047
- function M() {
1045
+ ...R
1046
+ } = Dn({ ...e, id: u, isError: p }, n), [$, J] = Me(k * 100 || 0), ie = E && !w, Z = X && !w, le = U === "left" && w, G = U === "right" && w;
1047
+ function F() {
1048
1048
  o || !(c != null && c.current) || (a(!0), c.current.focus());
1049
1049
  }
1050
1050
  function x(te) {
1051
- Bn({ currencyValue: F, event: te, max: re, setCurrencyValue: J }), $ && $(F / 100), V && V(te);
1051
+ Bn({ currencyValue: $, event: te, max: re, setCurrencyValue: J }), z && z($ / 100), Y && Y(te);
1052
1052
  }
1053
- function W(te) {
1054
- a(!0), H && H(te);
1053
+ function O(te) {
1054
+ a(!0), W && W(te);
1055
1055
  }
1056
- function P(te) {
1056
+ function j(te) {
1057
1057
  a(!1), D && D(te);
1058
1058
  }
1059
1059
  return /* @__PURE__ */ m.jsxs(
@@ -1061,35 +1061,35 @@ function Un(n) {
1061
1061
  {
1062
1062
  title: y,
1063
1063
  style: _,
1064
- onClick: M,
1064
+ onClick: F,
1065
1065
  className: N,
1066
1066
  children: [
1067
1067
  b,
1068
- le && K,
1068
+ le && ee,
1069
1069
  ie && /* @__PURE__ */ m.jsx(E, { size: A, strokeWidth: 2.5 }),
1070
1070
  /* @__PURE__ */ m.jsx(
1071
1071
  "input",
1072
1072
  {
1073
- value: Fn(Q || F, ae),
1073
+ value: Fn(V || $, ae),
1074
1074
  onKeyDown: x,
1075
1075
  disabled: o || w,
1076
1076
  readOnly: L,
1077
1077
  ref: c,
1078
- onFocus: W,
1079
- onBlur: P,
1078
+ onFocus: O,
1079
+ onBlur: j,
1080
1080
  onChange: () => {
1081
1081
  },
1082
- ...C
1082
+ ...R
1083
1083
  }
1084
1084
  ),
1085
- G && K,
1086
- ee && /* @__PURE__ */ m.jsx(q, { size: A, strokeWidth: 2.5 }),
1087
- O
1085
+ G && ee,
1086
+ Z && /* @__PURE__ */ m.jsx(X, { size: A, strokeWidth: 2.5 }),
1087
+ P
1088
1088
  ]
1089
1089
  }
1090
1090
  );
1091
1091
  }
1092
- function Wn(n, t) {
1092
+ function Wn(e, n) {
1093
1093
  const {
1094
1094
  isLoading: a,
1095
1095
  isError: s,
@@ -1103,17 +1103,17 @@ function Wn(n, t) {
1103
1103
  disabled: _,
1104
1104
  readOnly: N,
1105
1105
  onFocus: b,
1106
- onBlur: O,
1106
+ onBlur: P,
1107
1107
  title: A,
1108
1108
  style: U,
1109
1109
  onChange: w,
1110
1110
  showMask: E = !1,
1111
1111
  type: L,
1112
- ...H
1113
- } = n, D = y ? "right" : "left", $ = `arkyn_input ${c ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${_ || N || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${u}`, k = { md: 20, lg: 20 }[l];
1112
+ ...W
1113
+ } = e, D = y ? "right" : "left", z = `arkyn_input ${c ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${_ || N || a ? "opacity" : ""} ${s ? "errored" : ""} ${n ? "focused" : ""} ${u}`, k = { md: 20, lg: 20 }[l];
1114
1114
  return {
1115
1115
  isLoading: a,
1116
- className: $,
1116
+ className: z,
1117
1117
  prefix: Ge(c, k, "prefix"),
1118
1118
  sufix: Ge(p, k, "sufix"),
1119
1119
  LeftIcon: o,
@@ -1121,7 +1121,7 @@ function Wn(n, t) {
1121
1121
  disabled: _,
1122
1122
  readOnly: N,
1123
1123
  onFocus: b,
1124
- onBlur: O,
1124
+ onBlur: P,
1125
1125
  title: A,
1126
1126
  style: U,
1127
1127
  onChange: w,
@@ -1129,36 +1129,36 @@ function Wn(n, t) {
1129
1129
  iconSize: k,
1130
1130
  showMask: E,
1131
1131
  Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: k, strokeWidth: 2.5 }),
1132
- ...H
1132
+ ...W
1133
1133
  };
1134
1134
  }
1135
- const Hn = En((n, t) => /* @__PURE__ */ m.jsx("input", { ref: t, ...n }));
1136
- function Yn(n) {
1137
- const [t, a] = De(!1), s = at(null), { inputRef: l, id: u, error: h } = Ke(), c = l || s, p = n.isError || !!h, {
1135
+ const Hn = Sn((e, n) => /* @__PURE__ */ m.jsx("input", { ref: n, ...e }));
1136
+ function Yn(e) {
1137
+ const [n, a] = Me(!1), s = at(null), { inputRef: l, id: u, error: h } = Ke(), c = l || s, p = e.isError || !!h, {
1138
1138
  disabled: o,
1139
1139
  title: y,
1140
1140
  style: _,
1141
1141
  className: N,
1142
1142
  prefix: b,
1143
- sufix: O,
1143
+ sufix: P,
1144
1144
  iconSize: A,
1145
1145
  loadingPosition: U,
1146
1146
  isLoading: w,
1147
1147
  LeftIcon: E,
1148
1148
  readOnly: L,
1149
- onFocus: H,
1149
+ onFocus: W,
1150
1150
  onBlur: D,
1151
- RightIcon: q,
1152
- Spinner: K,
1153
- ...Q
1154
- } = Wn({ ...n, id: u, isError: p }, t), re = E && !w, V = q && !w, $ = U === "left" && w, ae = U === "right" && w;
1151
+ RightIcon: X,
1152
+ Spinner: ee,
1153
+ ...V
1154
+ } = Wn({ ...e, id: u, isError: p }, n), re = E && !w, Y = X && !w, z = U === "left" && w, ae = U === "right" && w;
1155
1155
  function k() {
1156
1156
  o || !(c != null && c.current) || (a(!0), c.current.focus());
1157
1157
  }
1158
- function C(J) {
1159
- a(!0), H && H(J);
1158
+ function R(J) {
1159
+ a(!0), W && W(J);
1160
1160
  }
1161
- function F(J) {
1161
+ function $(J) {
1162
1162
  a(!1), D && D(J);
1163
1163
  }
1164
1164
  return /* @__PURE__ */ m.jsxs(
@@ -1170,26 +1170,26 @@ function Yn(n) {
1170
1170
  className: N,
1171
1171
  children: [
1172
1172
  b,
1173
- $ && K,
1173
+ z && ee,
1174
1174
  re && /* @__PURE__ */ m.jsx(E, { size: A, strokeWidth: 2.5 }),
1175
1175
  /* @__PURE__ */ m.jsx(
1176
1176
  kn,
1177
1177
  {
1178
1178
  component: Hn,
1179
1179
  ref: c,
1180
- onFocus: C,
1181
- onBlur: F,
1182
- ...Q
1180
+ onFocus: R,
1181
+ onBlur: $,
1182
+ ...V
1183
1183
  }
1184
1184
  ),
1185
- V && /* @__PURE__ */ m.jsx(q, { size: A, strokeWidth: 2.5 }),
1186
- ae && K,
1187
- O
1185
+ Y && /* @__PURE__ */ m.jsx(X, { size: A, strokeWidth: 2.5 }),
1186
+ ae && ee,
1187
+ P
1188
1188
  ]
1189
1189
  }
1190
1190
  );
1191
1191
  }
1192
- function Vn(n, t) {
1192
+ function Vn(e, n) {
1193
1193
  const {
1194
1194
  isLoading: a,
1195
1195
  isError: s,
@@ -1203,103 +1203,103 @@ function Vn(n, t) {
1203
1203
  disabled: _,
1204
1204
  readOnly: N,
1205
1205
  onFocus: b,
1206
- onBlur: O,
1206
+ onBlur: P,
1207
1207
  title: A,
1208
1208
  style: U,
1209
1209
  onChange: w,
1210
1210
  ...E
1211
- } = n, L = y ? "right" : "left", re = `arkyn_input ${c ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${_ || N || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${u}`, $ = { md: 20, lg: 20 }[l];
1211
+ } = e, L = y ? "right" : "left", re = `arkyn_input ${c ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${_ || N || a ? "opacity" : ""} ${s ? "errored" : ""} ${n ? "focused" : ""} ${u}`, z = { md: 20, lg: 20 }[l];
1212
1212
  return {
1213
1213
  isLoading: a,
1214
1214
  className: re,
1215
- prefix: Ge(c, $, "prefix"),
1216
- sufix: Ge(p, $, "sufix"),
1215
+ prefix: Ge(c, z, "prefix"),
1216
+ sufix: Ge(p, z, "sufix"),
1217
1217
  LeftIcon: o,
1218
1218
  RightIcon: y,
1219
1219
  disabled: _,
1220
1220
  readOnly: N,
1221
1221
  onFocus: b,
1222
- onBlur: O,
1222
+ onBlur: P,
1223
1223
  title: A,
1224
1224
  style: U,
1225
1225
  onChange: w,
1226
1226
  loadingPosition: L,
1227
- iconSize: $,
1228
- Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: $, strokeWidth: 2.5 }),
1227
+ iconSize: z,
1228
+ Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: z, strokeWidth: 2.5 }),
1229
1229
  ...E
1230
1230
  };
1231
1231
  }
1232
- function Gn(n) {
1233
- const [t, a] = De(!1), s = at(null), { inputRef: l, id: u, error: h } = Ke(), c = l || s, p = n.isError || !!h, {
1232
+ function Gn(e) {
1233
+ const [n, a] = Me(!1), s = at(null), { inputRef: l, id: u, error: h } = Ke(), c = l || s, p = e.isError || !!h, {
1234
1234
  disabled: o,
1235
1235
  title: y,
1236
1236
  style: _,
1237
1237
  className: N,
1238
1238
  prefix: b,
1239
- sufix: O,
1239
+ sufix: P,
1240
1240
  iconSize: A,
1241
1241
  loadingPosition: U,
1242
1242
  isLoading: w,
1243
1243
  LeftIcon: E,
1244
1244
  readOnly: L,
1245
- onFocus: H,
1245
+ onFocus: W,
1246
1246
  onBlur: D,
1247
- RightIcon: q,
1248
- type: K,
1249
- Spinner: Q,
1247
+ RightIcon: X,
1248
+ type: ee,
1249
+ Spinner: V,
1250
1250
  ...re
1251
- } = Vn({ ...n, id: u, isError: p }, t), V = E && !w, $ = q && !w, ae = U === "left" && w, k = U === "right" && w;
1252
- function C() {
1251
+ } = Vn({ ...e, id: u, isError: p }, n), Y = E && !w, z = X && !w, ae = U === "left" && w, k = U === "right" && w;
1252
+ function R() {
1253
1253
  o || !(c != null && c.current) || (a(!0), c.current.focus());
1254
1254
  }
1255
- function F(ie) {
1256
- a(!0), H && H(ie);
1255
+ function $(ie) {
1256
+ a(!0), W && W(ie);
1257
1257
  }
1258
1258
  function J(ie) {
1259
1259
  a(!1), D && D(ie);
1260
1260
  }
1261
- return K === "hidden" ? /* @__PURE__ */ m.jsx("input", { type: "hidden", ref: c, ...re }) : /* @__PURE__ */ m.jsxs(
1261
+ return ee === "hidden" ? /* @__PURE__ */ m.jsx("input", { type: "hidden", ref: c, ...re }) : /* @__PURE__ */ m.jsxs(
1262
1262
  "section",
1263
1263
  {
1264
1264
  title: y,
1265
1265
  style: _,
1266
- onClick: C,
1266
+ onClick: R,
1267
1267
  className: N,
1268
1268
  children: [
1269
1269
  b,
1270
- ae && Q,
1271
- V && /* @__PURE__ */ m.jsx(E, { size: A, strokeWidth: 2.5 }),
1270
+ ae && V,
1271
+ Y && /* @__PURE__ */ m.jsx(E, { size: A, strokeWidth: 2.5 }),
1272
1272
  /* @__PURE__ */ m.jsx(
1273
1273
  "input",
1274
1274
  {
1275
1275
  disabled: o || w,
1276
1276
  readOnly: L,
1277
1277
  ref: c,
1278
- onFocus: F,
1278
+ onFocus: $,
1279
1279
  onBlur: J,
1280
- type: K,
1280
+ type: ee,
1281
1281
  ...re
1282
1282
  }
1283
1283
  ),
1284
- $ && /* @__PURE__ */ m.jsx(q, { size: A, strokeWidth: 2.5 }),
1285
- k && Q,
1286
- O
1284
+ z && /* @__PURE__ */ m.jsx(X, { size: A, strokeWidth: 2.5 }),
1285
+ k && V,
1286
+ P
1287
1287
  ]
1288
1288
  }
1289
1289
  );
1290
1290
  }
1291
- function aa(n) {
1292
- return n.type === "currency" ? /* @__PURE__ */ m.jsx(Un, { ...n }) : n.type === "masked" ? /* @__PURE__ */ m.jsx(Yn, { ...n }) : n.type === "cpf-cpnj" ? /* @__PURE__ */ m.jsx(Dn, { ...n }) : /* @__PURE__ */ m.jsx(Gn, { ...n });
1291
+ function oa(e) {
1292
+ return e.type === "currency" ? /* @__PURE__ */ m.jsx(Un, { ...e }) : e.type === "masked" ? /* @__PURE__ */ m.jsx(Yn, { ...e }) : e.type === "cpf-cnpj" ? /* @__PURE__ */ m.jsx(Mn, { ...e }) : /* @__PURE__ */ m.jsx(Gn, { ...e });
1293
1293
  }
1294
- function Kn(n, t, a) {
1295
- if (!n)
1294
+ function Kn(e, n, a) {
1295
+ if (!e)
1296
1296
  return /* @__PURE__ */ m.jsx(m.Fragment, {});
1297
- if (typeof n == "string")
1298
- return /* @__PURE__ */ m.jsx("p", { className: a, children: n });
1299
- const s = n;
1300
- return /* @__PURE__ */ m.jsx("p", { className: a, children: /* @__PURE__ */ m.jsx(s, { color: "var(--secondary-600)", size: t, strokeWidth: 2.5 }) });
1297
+ if (typeof e == "string")
1298
+ return /* @__PURE__ */ m.jsx("p", { className: a, children: e });
1299
+ const s = e;
1300
+ return /* @__PURE__ */ m.jsx("p", { className: a, children: /* @__PURE__ */ m.jsx(s, { color: "var(--secondary-600)", size: n, strokeWidth: 2.5 }) });
1301
1301
  }
1302
- function Xn(n, t) {
1302
+ function Xn(e, n) {
1303
1303
  const {
1304
1304
  isLoading: a,
1305
1305
  isError: s,
@@ -1313,101 +1313,104 @@ function Xn(n, t) {
1313
1313
  onFocus: _,
1314
1314
  onBlur: N,
1315
1315
  title: b,
1316
- style: O,
1316
+ style: P,
1317
1317
  isSearchable: A = !1,
1318
- ...U
1319
- } = n, D = `arkyn_select ${c ? "hasPrefix" : ""} ${h} ${l} ${o || y || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${u}`, K = { md: 20, lg: 20 }[l];
1318
+ closeOnSelect: U = !0,
1319
+ ...w
1320
+ } = e, X = `arkyn_select ${c ? "hasPrefix" : ""} ${h} ${l} ${o || y || a ? "opacity" : ""} ${s ? "errored" : ""} ${n ? "focused" : ""} ${u}`, V = { md: 20, lg: 20 }[l];
1320
1321
  return {
1321
1322
  isLoading: a,
1322
- className: D,
1323
- prefix: Kn(c, K, "prefix"),
1323
+ className: X,
1324
+ prefix: Kn(c, V, "prefix"),
1324
1325
  LeftIcon: p,
1325
1326
  disabled: o,
1326
1327
  readOnly: y,
1327
1328
  onFocus: _,
1328
1329
  onBlur: N,
1329
1330
  title: b,
1330
- style: O,
1331
+ closeOnSelect: U,
1332
+ style: P,
1331
1333
  isSearchable: A,
1332
- iconSize: K,
1333
- Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: K, strokeWidth: 2.5 }),
1334
- ...U
1334
+ iconSize: V,
1335
+ Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: V, strokeWidth: 2.5 }),
1336
+ ...w
1335
1337
  };
1336
1338
  }
1337
- function oa(n) {
1338
- var te;
1339
- const [t, a] = De(!1), { inputRef: s, id: l, error: u } = Ke(), h = at(null), c = s || h, p = n.isError || !!u, {
1339
+ function sa(e) {
1340
+ var K;
1341
+ const [n, a] = Me(!1), { inputRef: s, id: l, error: u } = Ke(), h = at(null), c = s || h, p = e.isError || !!u, {
1340
1342
  disabled: o,
1341
1343
  title: y,
1342
1344
  style: _,
1343
1345
  className: N,
1344
1346
  prefix: b,
1345
- iconSize: O,
1347
+ iconSize: P,
1346
1348
  isLoading: A,
1347
1349
  LeftIcon: U,
1348
1350
  value: w = null,
1349
1351
  defaultValue: E = "",
1350
1352
  readOnly: L,
1351
- onFocus: H,
1353
+ onFocus: W,
1352
1354
  onBlur: D,
1353
- Spinner: q,
1354
- name: K,
1355
- isSearchable: Q,
1355
+ Spinner: X,
1356
+ name: ee,
1357
+ isSearchable: V,
1356
1358
  placeholder: re,
1357
- onSelect: V,
1358
- options: $,
1359
+ onSelect: Y,
1360
+ options: z,
1359
1361
  optionMaxHeight: ae,
1360
- ...k
1361
- } = Xn({ ...n, id: l, isError: p }, t), [C, F] = De(E), [J, ie] = De("");
1362
- function ee() {
1362
+ closeOnSelect: k,
1363
+ ...R
1364
+ } = Xn({ ...e, id: l, isError: p }, n), [$, J] = Me(E), [ie, Z] = Me("");
1365
+ function le() {
1363
1366
  o || !(c != null && c.current) || (a(!0), c.current.focus());
1364
1367
  }
1365
- function le(z) {
1366
- a(!0), H && H(z);
1368
+ function G(ue) {
1369
+ a(!0), W && W(ue);
1367
1370
  }
1368
- function G() {
1371
+ function F() {
1369
1372
  a(!1), D && c.current && c.current.blur();
1370
1373
  }
1371
- const M = typeof w == "string" ? w : C, x = ((te = $.find((z) => z.value === M)) == null ? void 0 : te.label) || "", W = () => {
1372
- if (Q) {
1373
- if (!t && x)
1374
+ const x = typeof w == "string" ? w : $, O = ((K = z.find((ue) => ue.value === x)) == null ? void 0 : K.label) || "", j = () => {
1375
+ if (V) {
1376
+ if (!n && O)
1374
1377
  return !0;
1375
- if (!t && !x || t)
1378
+ if (!n && !O || n)
1376
1379
  return !1;
1377
1380
  }
1378
- if (!Q) {
1379
- if (!t && x)
1381
+ if (!V) {
1382
+ if (!n && O)
1380
1383
  return !0;
1381
- if (!t && !x)
1384
+ if (!n && !O)
1382
1385
  return !1;
1383
- if (t && x)
1386
+ if (n && O)
1384
1387
  return !0;
1385
- if (t && !x)
1388
+ if (n && !O)
1386
1389
  return !1;
1387
1390
  }
1388
- }, P = $.filter((z) => Q ? z.label.toLowerCase().includes(J.toLowerCase()) : !0);
1391
+ }, te = z.filter((ue) => V ? ue.label.toLowerCase().includes(ie.toLowerCase()) : !0);
1389
1392
  return /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
1390
1393
  /* @__PURE__ */ m.jsxs(
1391
1394
  "section",
1392
1395
  {
1393
1396
  title: y,
1394
1397
  style: _,
1395
- onClick: ee,
1396
- className: `${N} placeholder_dark_${W()}`,
1398
+ onClick: le,
1399
+ className: `${N} placeholder_dark_${j()}`,
1397
1400
  children: [
1398
1401
  b,
1399
- U && /* @__PURE__ */ m.jsx(U, { size: O, strokeWidth: 2.5 }),
1402
+ U && /* @__PURE__ */ m.jsx(U, { size: P, strokeWidth: 2.5 }),
1400
1403
  /* @__PURE__ */ m.jsx(
1401
1404
  "input",
1402
1405
  {
1403
1406
  disabled: o || A,
1404
- readOnly: !Q,
1405
- value: J || "",
1406
- placeholder: x || re,
1407
- onFocus: le,
1408
- onBlur: () => ie(""),
1409
- ...k,
1410
- onChange: (z) => ie(z.target.value)
1407
+ readOnly: !V,
1408
+ value: ie || "",
1409
+ placeholder: O || re,
1410
+ onFocus: G,
1411
+ onBlur: () => Z(""),
1412
+ ...R,
1413
+ onChange: (ue) => Z(ue.target.value)
1411
1414
  }
1412
1415
  ),
1413
1416
  /* @__PURE__ */ m.jsx(
@@ -1415,33 +1418,33 @@ function oa(n) {
1415
1418
  {
1416
1419
  type: "hidden",
1417
1420
  ref: c,
1418
- name: K,
1419
- value: M || "",
1421
+ name: ee,
1422
+ value: x || "",
1420
1423
  readOnly: !0
1421
1424
  }
1422
1425
  ),
1423
- t && /* @__PURE__ */ m.jsxs(
1426
+ n && /* @__PURE__ */ m.jsxs(
1424
1427
  "ul",
1425
1428
  {
1426
1429
  className: "arkyn_select_content",
1427
1430
  style: { overflow: "auto", maxHeight: ae },
1428
1431
  children: [
1429
- P.map(({ label: z, value: pe }) => /* @__PURE__ */ m.jsxs(
1432
+ te.map(({ label: ue, value: de }) => /* @__PURE__ */ m.jsxs(
1430
1433
  "li",
1431
1434
  {
1432
- className: M === pe ? "active" : "",
1435
+ className: x === de ? "active" : "",
1433
1436
  onClick: () => {
1434
- F(C !== pe ? pe : ""), V && V({ label: z, value: pe });
1437
+ J($ !== de ? de : ""), Y && Y({ label: ue, value: de }), k && setTimeout(() => F(), 100);
1435
1438
  },
1436
1439
  children: [
1437
- z,
1440
+ ue,
1438
1441
  " ",
1439
- /* @__PURE__ */ m.jsx(on, {})
1442
+ /* @__PURE__ */ m.jsx(sn, {})
1440
1443
  ]
1441
1444
  },
1442
- pe
1445
+ de
1443
1446
  )),
1444
- P.length <= 0 && /* @__PURE__ */ m.jsx("p", { children: "Sem opções disponíveis" })
1447
+ te.length <= 0 && /* @__PURE__ */ m.jsx("p", { children: "Sem opções disponíveis" })
1445
1448
  ]
1446
1449
  }
1447
1450
  ),
@@ -1449,28 +1452,28 @@ function oa(n) {
1449
1452
  Tn,
1450
1453
  {
1451
1454
  className: "arkyn_select_arrow",
1452
- size: O,
1455
+ size: P,
1453
1456
  strokeWidth: 2.5
1454
1457
  }
1455
1458
  ),
1456
- A && q
1459
+ A && X
1457
1460
  ]
1458
1461
  }
1459
1462
  ),
1460
- t && /* @__PURE__ */ m.jsx("aside", { className: "arkyn_select_overlay", onClick: G })
1463
+ n && /* @__PURE__ */ m.jsx("aside", { className: "arkyn_select_overlay", onClick: F })
1461
1464
  ] });
1462
1465
  }
1463
- function qn(n) {
1464
- const { className: t = "", ...a } = n;
1465
- return { className: `arkyn_breadcrumb ${t}`.trim(), ...a };
1466
+ function qn(e) {
1467
+ const { className: n = "", ...a } = e;
1468
+ return { className: `arkyn_breadcrumb ${n}`.trim(), ...a };
1466
1469
  }
1467
- function Jn(n) {
1468
- const { pathname: t } = ln(), {
1470
+ function Jn(e) {
1471
+ const { pathname: n } = cn(), {
1469
1472
  className: a = "",
1470
1473
  disabled: s = !1,
1471
1474
  to: l,
1472
1475
  ...u
1473
- } = n, h = t === l ? "active" : "inactive", c = `arkyn_breadcrumb_link ${h} ${a}`;
1476
+ } = e, h = n === l ? "active" : "inactive", c = `arkyn_breadcrumb_link ${h} ${a}`;
1474
1477
  return {
1475
1478
  to: l,
1476
1479
  className: c.trim(),
@@ -1478,32 +1481,32 @@ function Jn(n) {
1478
1481
  ...u
1479
1482
  };
1480
1483
  }
1481
- function sa(n) {
1482
- const { className: t, ...a } = qn(n);
1483
- return /* @__PURE__ */ m.jsx("nav", { className: t, ...a });
1484
+ function ia(e) {
1485
+ const { className: n, ...a } = qn(e);
1486
+ return /* @__PURE__ */ m.jsx("nav", { className: n, ...a });
1484
1487
  }
1485
- function ia(n) {
1486
- const { children: t, className: a, disabled: s, ...l } = Jn(n);
1488
+ function la(e) {
1489
+ const { children: n, className: a, disabled: s, ...l } = Jn(e);
1487
1490
  return s ? /* @__PURE__ */ m.jsxs("p", { className: a, children: [
1488
- /* @__PURE__ */ m.jsx(Ht, { size: 14, strokeWidth: 2.5 }),
1489
- t
1491
+ /* @__PURE__ */ m.jsx(Yt, { size: 14, strokeWidth: 2.5 }),
1492
+ n
1490
1493
  ] }) : /* @__PURE__ */ m.jsxs(Nn, { className: a, ...l, children: [
1491
- /* @__PURE__ */ m.jsx(Ht, { size: 14, strokeWidth: 2.5 }),
1492
- t
1494
+ /* @__PURE__ */ m.jsx(Yt, { size: 14, strokeWidth: 2.5 }),
1495
+ n
1493
1496
  ] });
1494
1497
  }
1495
- const mn = Ct({});
1496
- function Zn(n) {
1498
+ const pn = Ct({});
1499
+ function Zn(e) {
1497
1500
  const {
1498
- isVisibled: t,
1501
+ isVisibled: n,
1499
1502
  makeInvisible: a,
1500
1503
  children: s,
1501
1504
  className: l = "",
1502
1505
  ...u
1503
- } = n, c = `arkyn_modal_container ${t ? "visible" : ""} ${l}`;
1504
- return /* @__PURE__ */ m.jsx(mn.Provider, { value: { makeInvisible: a }, children: /* @__PURE__ */ m.jsx(Cn, { children: t && /* @__PURE__ */ m.jsxs("aside", { className: c.trim(), ...u, children: [
1506
+ } = e, c = `arkyn_modal_container ${n ? "visible" : ""} ${l}`;
1507
+ return /* @__PURE__ */ m.jsx(pn.Provider, { value: { makeInvisible: a }, children: /* @__PURE__ */ m.jsx(Cn, { children: n && /* @__PURE__ */ m.jsxs("aside", { className: c.trim(), ...u, children: [
1505
1508
  /* @__PURE__ */ m.jsx(
1506
- Yt.div,
1509
+ Vt.div,
1507
1510
  {
1508
1511
  className: "overlay",
1509
1512
  transition: { duration: 0.15, ease: "easeOut" },
@@ -1514,7 +1517,7 @@ function Zn(n) {
1514
1517
  }
1515
1518
  ),
1516
1519
  /* @__PURE__ */ m.jsx(
1517
- Yt.div,
1520
+ Vt.div,
1518
1521
  {
1519
1522
  className: "content",
1520
1523
  transition: { duration: 0.15, ease: "easeOut" },
@@ -1526,27 +1529,27 @@ function Zn(n) {
1526
1529
  )
1527
1530
  ] }) }) });
1528
1531
  }
1529
- function Qn(n) {
1530
- const { alignment: t = "right", className: a, ...s } = n, l = `arkyn_modal_footer ${t} ${a}`;
1532
+ function Qn(e) {
1533
+ const { alignment: n = "right", className: a, ...s } = e, l = `arkyn_modal_footer ${n} ${a}`;
1531
1534
  return /* @__PURE__ */ m.jsx("footer", { className: l.trim(), ...s });
1532
1535
  }
1533
- function er(n) {
1534
- const { showCloseButton: t, className: a, children: s, ...l } = n, { makeInvisible: u } = gt(mn), c = `arkyn_modal_header ${t ? "show-close" : ""} ${a}`;
1536
+ function er(e) {
1537
+ const { showCloseButton: n, className: a, children: s, ...l } = e, { makeInvisible: u } = gt(pn), c = `arkyn_modal_header ${n ? "show-close" : ""} ${a}`;
1535
1538
  return /* @__PURE__ */ m.jsxs("header", { className: c.trim(), ...l, children: [
1536
1539
  s,
1537
1540
  /* @__PURE__ */ m.jsx("button", { type: "button", onClick: u, children: /* @__PURE__ */ m.jsx(_n, { size: 24 }) })
1538
1541
  ] });
1539
1542
  }
1540
- const la = { Container: Zn, Header: er, Footer: Qn };
1541
- function ca(n) {
1543
+ const ca = { Container: Zn, Header: er, Footer: Qn };
1544
+ function ua(e) {
1542
1545
  const {
1543
- text: t,
1546
+ text: n,
1544
1547
  size: a = "lg",
1545
1548
  children: s,
1546
1549
  orientation: l = "top",
1547
1550
  className: u,
1548
1551
  ...h
1549
- } = n;
1552
+ } = e;
1550
1553
  return /* @__PURE__ */ m.jsxs(
1551
1554
  "div",
1552
1555
  {
@@ -1554,36 +1557,44 @@ function ca(n) {
1554
1557
  ...h,
1555
1558
  children: [
1556
1559
  s,
1557
- /* @__PURE__ */ m.jsx("div", { className: "arkyn_tooltip_text", children: t })
1560
+ /* @__PURE__ */ m.jsx("div", { className: "arkyn_tooltip_text", children: n })
1558
1561
  ]
1559
1562
  }
1560
1563
  );
1561
1564
  }
1562
- const Wt = Ct({});
1563
- function ua() {
1564
- const n = sn(), { closeModal: t } = gt(Wt);
1565
- Sn(() => {
1566
- const a = n == null ? void 0 : n.closeModalKey;
1567
- a && t(a);
1568
- }, [n]);
1565
+ const Wt = Ct({}), hn = Ct({});
1566
+ function tr() {
1567
+ const e = gt(hn);
1568
+ if (Object.entries(e).length === 0)
1569
+ throw new Error("useToast must be used within a Provider");
1570
+ return e;
1569
1571
  }
1570
- function da(n) {
1571
- const t = gt(Wt);
1572
- if (Object.entries(t).length === 0)
1572
+ function da() {
1573
+ const e = ln(), { closeModal: n } = gt(Wt), { successToast: a, errorToast: s } = tr();
1574
+ Ht(() => {
1575
+ const l = e == null ? void 0 : e.closeModalKey;
1576
+ l && n(l);
1577
+ }, [e]), Ht(() => {
1578
+ typeof (e == null ? void 0 : e.message) == "string" && typeof (e == null ? void 0 : e.success) == "boolean" && (e != null && e.success ? a(e == null ? void 0 : e.message) : s(e == null ? void 0 : e.message));
1579
+ }, [e]);
1580
+ }
1581
+ function fa(e) {
1582
+ const n = gt(Wt);
1583
+ if (Object.entries(n).length === 0)
1573
1584
  throw new Error("useModal must be used within a Provider");
1574
- if (n) {
1585
+ if (e) {
1575
1586
  const {
1576
1587
  modalData: a,
1577
1588
  modalIsOpen: s,
1578
1589
  openModal: l,
1579
1590
  closeModal: u
1580
- } = t, h = s(n), c = a(n);
1581
- return { modalIsOpen: h, modalData: c, openModal: (y) => l(n, y == null ? void 0 : y.data), closeModal: () => u(n) };
1591
+ } = n, h = s(e), c = a(e);
1592
+ return { modalIsOpen: h, modalData: c, openModal: (y) => l(e, y == null ? void 0 : y.data), closeModal: () => u(e) };
1582
1593
  } else
1583
- return t;
1594
+ return n;
1584
1595
  }
1585
- function fa(n = "") {
1586
- const t = ln(), a = new URLSearchParams(t.search), s = n ? `${n}:` : "", l = (u) => {
1596
+ function ma(e = "") {
1597
+ const n = cn(), a = new URLSearchParams(n.search), s = e ? `${e}:` : "", l = (u) => {
1587
1598
  Object.entries(u).forEach(([h, c]) => {
1588
1599
  c === void 0 ? a.delete(`${s}${h}`) : a.set(`${s}${h}`, String(c));
1589
1600
  });
@@ -1597,15 +1608,8 @@ function fa(n = "") {
1597
1608
  }
1598
1609
  };
1599
1610
  }
1600
- const pn = Ct({});
1601
- function ma() {
1602
- const n = gt(pn);
1603
- if (Object.entries(n).length === 0)
1604
- throw new Error("useToast must be used within a Provider");
1605
- return n;
1606
- }
1607
- function pa(n) {
1608
- const { children: t = !1 } = n, [a, s] = De([]);
1611
+ function pa(e) {
1612
+ const { children: n = !1 } = e, [a, s] = Me([]);
1609
1613
  function l(p) {
1610
1614
  return !!a.some((o) => o.key === p);
1611
1615
  }
@@ -1624,89 +1628,89 @@ function pa(n) {
1624
1628
  Wt.Provider,
1625
1629
  {
1626
1630
  value: { modalIsOpen: l, modalData: u, openModal: h, closeModal: c },
1627
- children: t
1631
+ children: n
1628
1632
  }
1629
1633
  );
1630
1634
  }
1631
- var { entries: hn, setPrototypeOf: qt, isFrozen: tr, getPrototypeOf: nr, getOwnPropertyDescriptor: rr } = Object, { freeze: xe, seal: Re, create: gn } = Object, { apply: zt, construct: $t } = typeof Reflect < "u" && Reflect;
1632
- xe || (xe = function(n) {
1633
- return n;
1635
+ var { entries: gn, setPrototypeOf: Jt, isFrozen: nr, getPrototypeOf: rr, getOwnPropertyDescriptor: ar } = Object, { freeze: xe, seal: Re, create: vn } = Object, { apply: zt, construct: $t } = typeof Reflect < "u" && Reflect;
1636
+ xe || (xe = function(e) {
1637
+ return e;
1634
1638
  });
1635
- Re || (Re = function(n) {
1636
- return n;
1639
+ Re || (Re = function(e) {
1640
+ return e;
1637
1641
  });
1638
- zt || (zt = function(n, t, a) {
1639
- return n.apply(t, a);
1642
+ zt || (zt = function(e, n, a) {
1643
+ return e.apply(n, a);
1640
1644
  });
1641
- $t || ($t = function(n, t) {
1642
- return new n(...t);
1645
+ $t || ($t = function(e, n) {
1646
+ return new e(...n);
1643
1647
  });
1644
- var wt = _e(Array.prototype.forEach), Jt = _e(Array.prototype.pop), mt = _e(Array.prototype.push), Nt = _e(String.prototype.toLowerCase), Lt = _e(String.prototype.toString), Zt = _e(String.prototype.match), pt = _e(String.prototype.replace), ar = _e(String.prototype.indexOf), or = _e(String.prototype.trim), Pe = _e(Object.prototype.hasOwnProperty), Te = _e(RegExp.prototype.test), ht = sr(TypeError);
1645
- function _e(n) {
1646
- return function(t) {
1648
+ var wt = _e(Array.prototype.forEach), Zt = _e(Array.prototype.pop), mt = _e(Array.prototype.push), Nt = _e(String.prototype.toLowerCase), Lt = _e(String.prototype.toString), Qt = _e(String.prototype.match), pt = _e(String.prototype.replace), or = _e(String.prototype.indexOf), sr = _e(String.prototype.trim), Pe = _e(Object.prototype.hasOwnProperty), Te = _e(RegExp.prototype.test), ht = ir(TypeError);
1649
+ function _e(e) {
1650
+ return function(n) {
1647
1651
  for (var a = arguments.length, s = new Array(a > 1 ? a - 1 : 0), l = 1; l < a; l++)
1648
1652
  s[l - 1] = arguments[l];
1649
- return zt(n, t, s);
1653
+ return zt(e, n, s);
1650
1654
  };
1651
1655
  }
1652
- function sr(n) {
1656
+ function ir(e) {
1653
1657
  return function() {
1654
- for (var t = arguments.length, a = new Array(t), s = 0; s < t; s++)
1658
+ for (var n = arguments.length, a = new Array(n), s = 0; s < n; s++)
1655
1659
  a[s] = arguments[s];
1656
- return $t(n, a);
1660
+ return $t(e, a);
1657
1661
  };
1658
1662
  }
1659
- function B(n, t) {
1663
+ function B(e, n) {
1660
1664
  let a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Nt;
1661
- qt && qt(n, null);
1662
- let s = t.length;
1665
+ Jt && Jt(e, null);
1666
+ let s = n.length;
1663
1667
  for (; s--; ) {
1664
- let l = t[s];
1668
+ let l = n[s];
1665
1669
  if (typeof l == "string") {
1666
1670
  let u = a(l);
1667
- u !== l && (tr(t) || (t[s] = u), l = u);
1671
+ u !== l && (nr(n) || (n[s] = u), l = u);
1668
1672
  }
1669
- n[l] = !0;
1673
+ e[l] = !0;
1670
1674
  }
1671
- return n;
1675
+ return e;
1672
1676
  }
1673
- function ir(n) {
1674
- for (let t = 0; t < n.length; t++)
1675
- Pe(n, t) || (n[t] = null);
1676
- return n;
1677
+ function lr(e) {
1678
+ for (let n = 0; n < e.length; n++)
1679
+ Pe(e, n) || (e[n] = null);
1680
+ return e;
1677
1681
  }
1678
- function Ze(n) {
1679
- let t = gn(null);
1680
- for (let [a, s] of hn(n))
1681
- Pe(n, a) && (Array.isArray(s) ? t[a] = ir(s) : s && typeof s == "object" && s.constructor === Object ? t[a] = Ze(s) : t[a] = s);
1682
- return t;
1682
+ function Ze(e) {
1683
+ let n = vn(null);
1684
+ for (let [a, s] of gn(e))
1685
+ Pe(e, a) && (Array.isArray(s) ? n[a] = lr(s) : s && typeof s == "object" && s.constructor === Object ? n[a] = Ze(s) : n[a] = s);
1686
+ return n;
1683
1687
  }
1684
- function Et(n, t) {
1685
- for (; n !== null; ) {
1686
- let s = rr(n, t);
1688
+ function Et(e, n) {
1689
+ for (; e !== null; ) {
1690
+ let s = ar(e, n);
1687
1691
  if (s) {
1688
1692
  if (s.get)
1689
1693
  return _e(s.get);
1690
1694
  if (typeof s.value == "function")
1691
1695
  return _e(s.value);
1692
1696
  }
1693
- n = nr(n);
1697
+ e = rr(e);
1694
1698
  }
1695
1699
  function a() {
1696
1700
  return null;
1697
1701
  }
1698
1702
  return a;
1699
1703
  }
1700
- var Qt = xe(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Ot = xe(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Pt = xe(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), lr = xe(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), jt = xe(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), cr = xe(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), en = xe(["#text"]), tn = xe(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "xmlns", "slot"]), Dt = xe(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), nn = xe(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), St = xe(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), ur = Re(/\{\{[\w\W]*|[\w\W]*\}\}/gm), dr = Re(/<%[\w\W]*|[\w\W]*%>/gm), fr = Re(/\${[\w\W]*}/gm), mr = Re(/^data-[\-\w.\u00B7-\uFFFF]/), pr = Re(/^aria-[\-\w]+$/), vn = Re(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), hr = Re(/^(?:\w+script|data):/i), gr = Re(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), yn = Re(/^html$/i), vr = Re(/^[a-z][a-z\d]*(-[a-z\d]+)+$/i), rn = Object.freeze({ __proto__: null, MUSTACHE_EXPR: ur, ERB_EXPR: dr, TMPLIT_EXPR: fr, DATA_ATTR: mr, ARIA_ATTR: pr, IS_ALLOWED_URI: vn, IS_SCRIPT_OR_DATA: hr, ATTR_WHITESPACE: gr, DOCTYPE_NAME: yn, CUSTOM_ELEMENT: vr }), yr = function() {
1704
+ var en = xe(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Ot = xe(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Pt = xe(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), cr = xe(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), jt = xe(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), ur = xe(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), tn = xe(["#text"]), nn = xe(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "xmlns", "slot"]), Mt = xe(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), rn = xe(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), St = xe(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), dr = Re(/\{\{[\w\W]*|[\w\W]*\}\}/gm), fr = Re(/<%[\w\W]*|[\w\W]*%>/gm), mr = Re(/\${[\w\W]*}/gm), pr = Re(/^data-[\-\w.\u00B7-\uFFFF]/), hr = Re(/^aria-[\-\w]+$/), yn = Re(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), gr = Re(/^(?:\w+script|data):/i), vr = Re(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), bn = Re(/^html$/i), yr = Re(/^[a-z][a-z\d]*(-[a-z\d]+)+$/i), an = Object.freeze({ __proto__: null, MUSTACHE_EXPR: dr, ERB_EXPR: fr, TMPLIT_EXPR: mr, DATA_ATTR: pr, ARIA_ATTR: hr, IS_ALLOWED_URI: yn, IS_SCRIPT_OR_DATA: gr, ATTR_WHITESPACE: vr, DOCTYPE_NAME: bn, CUSTOM_ELEMENT: yr }), br = function() {
1701
1705
  return typeof window > "u" ? null : window;
1702
- }, br = function(n, t) {
1703
- if (typeof n != "object" || typeof n.createPolicy != "function")
1706
+ }, xr = function(e, n) {
1707
+ if (typeof e != "object" || typeof e.createPolicy != "function")
1704
1708
  return null;
1705
1709
  let a = null, s = "data-tt-policy-suffix";
1706
- t && t.hasAttribute(s) && (a = t.getAttribute(s));
1710
+ n && n.hasAttribute(s) && (a = n.getAttribute(s));
1707
1711
  let l = "dompurify" + (a ? "#" + a : "");
1708
1712
  try {
1709
- return n.createPolicy(l, { createHTML(u) {
1713
+ return e.createPolicy(l, { createHTML(u) {
1710
1714
  return u;
1711
1715
  }, createScriptURL(u) {
1712
1716
  return u;
@@ -1715,343 +1719,343 @@ var Qt = xe(["a", "abbr", "acronym", "address", "area", "article", "aside", "aud
1715
1719
  return console.warn("TrustedTypes policy " + l + " could not be created."), null;
1716
1720
  }
1717
1721
  };
1718
- function bn() {
1719
- let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : yr(), t = (e) => bn(e);
1720
- if (t.version = "3.0.10", t.removed = [], !n || !n.document || n.document.nodeType !== 9)
1721
- return t.isSupported = !1, t;
1722
- let { document: a } = n, s = a, l = s.currentScript, { DocumentFragment: u, HTMLTemplateElement: h, Node: c, Element: p, NodeFilter: o, NamedNodeMap: y = n.NamedNodeMap || n.MozNamedAttrMap, HTMLFormElement: _, DOMParser: N, trustedTypes: b } = n, O = p.prototype, A = Et(O, "cloneNode"), U = Et(O, "nextSibling"), w = Et(O, "childNodes"), E = Et(O, "parentNode");
1722
+ function xn() {
1723
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : br(), n = (t) => xn(t);
1724
+ if (n.version = "3.0.10", n.removed = [], !e || !e.document || e.document.nodeType !== 9)
1725
+ return n.isSupported = !1, n;
1726
+ let { document: a } = e, s = a, l = s.currentScript, { DocumentFragment: u, HTMLTemplateElement: h, Node: c, Element: p, NodeFilter: o, NamedNodeMap: y = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: _, DOMParser: N, trustedTypes: b } = e, P = p.prototype, A = Et(P, "cloneNode"), U = Et(P, "nextSibling"), w = Et(P, "childNodes"), E = Et(P, "parentNode");
1723
1727
  if (typeof h == "function") {
1724
- let e = a.createElement("template");
1725
- e.content && e.content.ownerDocument && (a = e.content.ownerDocument);
1728
+ let t = a.createElement("template");
1729
+ t.content && t.content.ownerDocument && (a = t.content.ownerDocument);
1726
1730
  }
1727
- let L, H = "", { implementation: D, createNodeIterator: q, createDocumentFragment: K, getElementsByTagName: Q } = a, { importNode: re } = s, V = {};
1728
- t.isSupported = typeof hn == "function" && typeof E == "function" && D && D.createHTMLDocument !== void 0;
1729
- let { MUSTACHE_EXPR: $, ERB_EXPR: ae, TMPLIT_EXPR: k, DATA_ATTR: C, ARIA_ATTR: F, IS_SCRIPT_OR_DATA: J, ATTR_WHITESPACE: ie, CUSTOM_ELEMENT: ee } = rn, { IS_ALLOWED_URI: le } = rn, G = null, M = B({}, [...Qt, ...Ot, ...Pt, ...jt, ...en]), x = null, W = B({}, [...tn, ...Dt, ...nn, ...St]), P = Object.seal(gn(null, { tagNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, attributeNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, allowCustomizedBuiltInElements: { writable: !0, configurable: !1, enumerable: !0, value: !1 } })), te = null, z = null, pe = !0, ve = !0, Ie = !1, we = !0, Ae = !1, fe = !1, Xe = !1, qe = !1, oe = !1, me = !1, $e = !1, Je = !0, Ne = !1, ot = "user-content-", Be = !0, Se = !1, ye = {}, Le = null, ke = B({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]), Ue = null, Me = B({}, ["audio", "video", "img", "source", "image", "track"]), We = null, He = B({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Fe = "http://www.w3.org/1998/Math/MathML", Ce = "http://www.w3.org/2000/svg", ue = "http://www.w3.org/1999/xhtml", ze = ue, Ye = !1, S = null, se = B({}, [Fe, Ce, ue], Lt), Z = null, Ee = ["application/xhtml+xml", "text/html"], he = "text/html", ne = null, be = null, st = a.createElement("form"), et = function(e) {
1730
- return e instanceof RegExp || e instanceof Function;
1731
+ let L, W = "", { implementation: D, createNodeIterator: X, createDocumentFragment: ee, getElementsByTagName: V } = a, { importNode: re } = s, Y = {};
1732
+ n.isSupported = typeof gn == "function" && typeof E == "function" && D && D.createHTMLDocument !== void 0;
1733
+ let { MUSTACHE_EXPR: z, ERB_EXPR: ae, TMPLIT_EXPR: k, DATA_ATTR: R, ARIA_ATTR: $, IS_SCRIPT_OR_DATA: J, ATTR_WHITESPACE: ie, CUSTOM_ELEMENT: Z } = an, { IS_ALLOWED_URI: le } = an, G = null, F = B({}, [...en, ...Ot, ...Pt, ...jt, ...tn]), x = null, O = B({}, [...nn, ...Mt, ...rn, ...St]), j = Object.seal(vn(null, { tagNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, attributeNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, allowCustomizedBuiltInElements: { writable: !0, configurable: !1, enumerable: !0, value: !1 } })), te = null, K = null, ue = !0, de = !0, Ie = !1, we = !0, Ae = !1, pe = !1, Xe = !1, qe = !1, oe = !1, he = !1, $e = !1, Je = !0, Ne = !1, ot = "user-content-", Be = !0, Se = !1, ye = {}, Le = null, ke = B({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]), Ue = null, De = B({}, ["audio", "video", "img", "source", "image", "track"]), We = null, He = B({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Fe = "http://www.w3.org/1998/Math/MathML", Ce = "http://www.w3.org/2000/svg", fe = "http://www.w3.org/1999/xhtml", ze = fe, Ye = !1, S = null, se = B({}, [Fe, Ce, fe], Lt), Q = null, Ee = ["application/xhtml+xml", "text/html"], ge = "text/html", ne = null, be = null, st = a.createElement("form"), et = function(t) {
1734
+ return t instanceof RegExp || t instanceof Function;
1731
1735
  }, tt = function() {
1732
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1733
- if (!(be && be === e)) {
1734
- if ((!e || typeof e != "object") && (e = {}), e = Ze(e), Z = Ee.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? he : e.PARSER_MEDIA_TYPE, ne = Z === "application/xhtml+xml" ? Lt : Nt, G = Pe(e, "ALLOWED_TAGS") ? B({}, e.ALLOWED_TAGS, ne) : M, x = Pe(e, "ALLOWED_ATTR") ? B({}, e.ALLOWED_ATTR, ne) : W, S = Pe(e, "ALLOWED_NAMESPACES") ? B({}, e.ALLOWED_NAMESPACES, Lt) : se, We = Pe(e, "ADD_URI_SAFE_ATTR") ? B(Ze(He), e.ADD_URI_SAFE_ATTR, ne) : He, Ue = Pe(e, "ADD_DATA_URI_TAGS") ? B(Ze(Me), e.ADD_DATA_URI_TAGS, ne) : Me, Le = Pe(e, "FORBID_CONTENTS") ? B({}, e.FORBID_CONTENTS, ne) : ke, te = Pe(e, "FORBID_TAGS") ? B({}, e.FORBID_TAGS, ne) : {}, z = Pe(e, "FORBID_ATTR") ? B({}, e.FORBID_ATTR, ne) : {}, ye = Pe(e, "USE_PROFILES") ? e.USE_PROFILES : !1, pe = e.ALLOW_ARIA_ATTR !== !1, ve = e.ALLOW_DATA_ATTR !== !1, Ie = e.ALLOW_UNKNOWN_PROTOCOLS || !1, we = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ae = e.SAFE_FOR_TEMPLATES || !1, fe = e.WHOLE_DOCUMENT || !1, oe = e.RETURN_DOM || !1, me = e.RETURN_DOM_FRAGMENT || !1, $e = e.RETURN_TRUSTED_TYPE || !1, qe = e.FORCE_BODY || !1, Je = e.SANITIZE_DOM !== !1, Ne = e.SANITIZE_NAMED_PROPS || !1, Be = e.KEEP_CONTENT !== !1, Se = e.IN_PLACE || !1, le = e.ALLOWED_URI_REGEXP || vn, ze = e.NAMESPACE || ue, P = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && et(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (P.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && et(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (P.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (P.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ae && (ve = !1), me && (oe = !0), ye && (G = B({}, en), x = [], ye.html === !0 && (B(G, Qt), B(x, tn)), ye.svg === !0 && (B(G, Ot), B(x, Dt), B(x, St)), ye.svgFilters === !0 && (B(G, Pt), B(x, Dt), B(x, St)), ye.mathMl === !0 && (B(G, jt), B(x, nn), B(x, St))), e.ADD_TAGS && (G === M && (G = Ze(G)), B(G, e.ADD_TAGS, ne)), e.ADD_ATTR && (x === W && (x = Ze(x)), B(x, e.ADD_ATTR, ne)), e.ADD_URI_SAFE_ATTR && B(We, e.ADD_URI_SAFE_ATTR, ne), e.FORBID_CONTENTS && (Le === ke && (Le = Ze(Le)), B(Le, e.FORBID_CONTENTS, ne)), Be && (G["#text"] = !0), fe && B(G, ["html", "head", "body"]), G.table && (B(G, ["tbody"]), delete te.tbody), e.TRUSTED_TYPES_POLICY) {
1735
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
1736
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1737
+ if (!(be && be === t)) {
1738
+ if ((!t || typeof t != "object") && (t = {}), t = Ze(t), Q = Ee.indexOf(t.PARSER_MEDIA_TYPE) === -1 ? ge : t.PARSER_MEDIA_TYPE, ne = Q === "application/xhtml+xml" ? Lt : Nt, G = Pe(t, "ALLOWED_TAGS") ? B({}, t.ALLOWED_TAGS, ne) : F, x = Pe(t, "ALLOWED_ATTR") ? B({}, t.ALLOWED_ATTR, ne) : O, S = Pe(t, "ALLOWED_NAMESPACES") ? B({}, t.ALLOWED_NAMESPACES, Lt) : se, We = Pe(t, "ADD_URI_SAFE_ATTR") ? B(Ze(He), t.ADD_URI_SAFE_ATTR, ne) : He, Ue = Pe(t, "ADD_DATA_URI_TAGS") ? B(Ze(De), t.ADD_DATA_URI_TAGS, ne) : De, Le = Pe(t, "FORBID_CONTENTS") ? B({}, t.FORBID_CONTENTS, ne) : ke, te = Pe(t, "FORBID_TAGS") ? B({}, t.FORBID_TAGS, ne) : {}, K = Pe(t, "FORBID_ATTR") ? B({}, t.FORBID_ATTR, ne) : {}, ye = Pe(t, "USE_PROFILES") ? t.USE_PROFILES : !1, ue = t.ALLOW_ARIA_ATTR !== !1, de = t.ALLOW_DATA_ATTR !== !1, Ie = t.ALLOW_UNKNOWN_PROTOCOLS || !1, we = t.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ae = t.SAFE_FOR_TEMPLATES || !1, pe = t.WHOLE_DOCUMENT || !1, oe = t.RETURN_DOM || !1, he = t.RETURN_DOM_FRAGMENT || !1, $e = t.RETURN_TRUSTED_TYPE || !1, qe = t.FORCE_BODY || !1, Je = t.SANITIZE_DOM !== !1, Ne = t.SANITIZE_NAMED_PROPS || !1, Be = t.KEEP_CONTENT !== !1, Se = t.IN_PLACE || !1, le = t.ALLOWED_URI_REGEXP || yn, ze = t.NAMESPACE || fe, j = t.CUSTOM_ELEMENT_HANDLING || {}, t.CUSTOM_ELEMENT_HANDLING && et(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (j.tagNameCheck = t.CUSTOM_ELEMENT_HANDLING.tagNameCheck), t.CUSTOM_ELEMENT_HANDLING && et(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (j.attributeNameCheck = t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), t.CUSTOM_ELEMENT_HANDLING && typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (j.allowCustomizedBuiltInElements = t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ae && (de = !1), he && (oe = !0), ye && (G = B({}, tn), x = [], ye.html === !0 && (B(G, en), B(x, nn)), ye.svg === !0 && (B(G, Ot), B(x, Mt), B(x, St)), ye.svgFilters === !0 && (B(G, Pt), B(x, Mt), B(x, St)), ye.mathMl === !0 && (B(G, jt), B(x, rn), B(x, St))), t.ADD_TAGS && (G === F && (G = Ze(G)), B(G, t.ADD_TAGS, ne)), t.ADD_ATTR && (x === O && (x = Ze(x)), B(x, t.ADD_ATTR, ne)), t.ADD_URI_SAFE_ATTR && B(We, t.ADD_URI_SAFE_ATTR, ne), t.FORBID_CONTENTS && (Le === ke && (Le = Ze(Le)), B(Le, t.FORBID_CONTENTS, ne)), Be && (G["#text"] = !0), pe && B(G, ["html", "head", "body"]), G.table && (B(G, ["tbody"]), delete te.tbody), t.TRUSTED_TYPES_POLICY) {
1739
+ if (typeof t.TRUSTED_TYPES_POLICY.createHTML != "function")
1736
1740
  throw ht('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
1737
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
1741
+ if (typeof t.TRUSTED_TYPES_POLICY.createScriptURL != "function")
1738
1742
  throw ht('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
1739
- L = e.TRUSTED_TYPES_POLICY, H = L.createHTML("");
1743
+ L = t.TRUSTED_TYPES_POLICY, W = L.createHTML("");
1740
1744
  } else
1741
- L === void 0 && (L = br(b, l)), L !== null && typeof H == "string" && (H = L.createHTML(""));
1742
- xe && xe(e), be = e;
1745
+ L === void 0 && (L = xr(b, l)), L !== null && typeof W == "string" && (W = L.createHTML(""));
1746
+ xe && xe(t), be = t;
1743
1747
  }
1744
- }, vt = B({}, ["mi", "mo", "mn", "ms", "mtext"]), it = B({}, ["foreignobject", "desc", "title", "annotation-xml"]), Rt = B({}, ["title", "style", "font", "a", "script"]), lt = B({}, [...Ot, ...Pt, ...lr]), ct = B({}, [...jt, ...cr]), It = function(e) {
1745
- let f = E(e);
1748
+ }, vt = B({}, ["mi", "mo", "mn", "ms", "mtext"]), it = B({}, ["foreignobject", "desc", "title", "annotation-xml"]), Rt = B({}, ["title", "style", "font", "a", "script"]), lt = B({}, [...Ot, ...Pt, ...cr]), ct = B({}, [...jt, ...ur]), It = function(t) {
1749
+ let f = E(t);
1746
1750
  (!f || !f.tagName) && (f = { namespaceURI: ze, tagName: "template" });
1747
- let i = Nt(e.tagName), R = Nt(f.tagName);
1748
- return S[e.namespaceURI] ? e.namespaceURI === Ce ? f.namespaceURI === ue ? i === "svg" : f.namespaceURI === Fe ? i === "svg" && (R === "annotation-xml" || vt[R]) : !!lt[i] : e.namespaceURI === Fe ? f.namespaceURI === ue ? i === "math" : f.namespaceURI === Ce ? i === "math" && it[R] : !!ct[i] : e.namespaceURI === ue ? f.namespaceURI === Ce && !it[R] || f.namespaceURI === Fe && !vt[R] ? !1 : !ct[i] && (Rt[i] || !lt[i]) : !!(Z === "application/xhtml+xml" && S[e.namespaceURI]) : !1;
1749
- }, Ve = function(e) {
1750
- mt(t.removed, { element: e });
1751
+ let i = Nt(t.tagName), C = Nt(f.tagName);
1752
+ return S[t.namespaceURI] ? t.namespaceURI === Ce ? f.namespaceURI === fe ? i === "svg" : f.namespaceURI === Fe ? i === "svg" && (C === "annotation-xml" || vt[C]) : !!lt[i] : t.namespaceURI === Fe ? f.namespaceURI === fe ? i === "math" : f.namespaceURI === Ce ? i === "math" && it[C] : !!ct[i] : t.namespaceURI === fe ? f.namespaceURI === Ce && !it[C] || f.namespaceURI === Fe && !vt[C] ? !1 : !ct[i] && (Rt[i] || !lt[i]) : !!(Q === "application/xhtml+xml" && S[t.namespaceURI]) : !1;
1753
+ }, Ve = function(t) {
1754
+ mt(n.removed, { element: t });
1751
1755
  try {
1752
- e.parentNode.removeChild(e);
1756
+ t.parentNode.removeChild(t);
1753
1757
  } catch {
1754
- e.remove();
1758
+ t.remove();
1755
1759
  }
1756
- }, nt = function(e, f) {
1760
+ }, nt = function(t, f) {
1757
1761
  try {
1758
- mt(t.removed, { attribute: f.getAttributeNode(e), from: f });
1762
+ mt(n.removed, { attribute: f.getAttributeNode(t), from: f });
1759
1763
  } catch {
1760
- mt(t.removed, { attribute: null, from: f });
1764
+ mt(n.removed, { attribute: null, from: f });
1761
1765
  }
1762
- if (f.removeAttribute(e), e === "is" && !x[e])
1763
- if (oe || me)
1766
+ if (f.removeAttribute(t), t === "is" && !x[t])
1767
+ if (oe || he)
1764
1768
  try {
1765
1769
  Ve(f);
1766
1770
  } catch {
1767
1771
  }
1768
1772
  else
1769
1773
  try {
1770
- f.setAttribute(e, "");
1774
+ f.setAttribute(t, "");
1771
1775
  } catch {
1772
1776
  }
1773
- }, ut = function(e) {
1777
+ }, ut = function(t) {
1774
1778
  let f = null, i = null;
1775
1779
  if (qe)
1776
- e = "<remove></remove>" + e;
1780
+ t = "<remove></remove>" + t;
1777
1781
  else {
1778
- let I = Zt(e, /^[\r\n\t ]+/);
1782
+ let I = Qt(t, /^[\r\n\t ]+/);
1779
1783
  i = I && I[0];
1780
1784
  }
1781
- Z === "application/xhtml+xml" && ze === ue && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
1782
- let R = L ? L.createHTML(e) : e;
1783
- if (ze === ue)
1785
+ Q === "application/xhtml+xml" && ze === fe && (t = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + t + "</body></html>");
1786
+ let C = L ? L.createHTML(t) : t;
1787
+ if (ze === fe)
1784
1788
  try {
1785
- f = new N().parseFromString(R, Z);
1789
+ f = new N().parseFromString(C, Q);
1786
1790
  } catch {
1787
1791
  }
1788
1792
  if (!f || !f.documentElement) {
1789
1793
  f = D.createDocument(ze, "template", null);
1790
1794
  try {
1791
- f.documentElement.innerHTML = Ye ? H : R;
1795
+ f.documentElement.innerHTML = Ye ? W : C;
1792
1796
  } catch {
1793
1797
  }
1794
1798
  }
1795
- let j = f.body || f.documentElement;
1796
- return e && i && j.insertBefore(a.createTextNode(i), j.childNodes[0] || null), ze === ue ? Q.call(f, fe ? "html" : "body")[0] : fe ? f.documentElement : j;
1797
- }, yt = function(e) {
1798
- return q.call(e.ownerDocument || e, e, o.SHOW_ELEMENT | o.SHOW_COMMENT | o.SHOW_TEXT | o.SHOW_PROCESSING_INSTRUCTION, null);
1799
- }, At = function(e) {
1800
- return e instanceof _ && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof y) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
1801
- }, bt = function(e) {
1802
- return typeof c == "function" && e instanceof c;
1803
- }, Oe = function(e, f, i) {
1804
- V[e] && wt(V[e], (R) => {
1805
- R.call(t, f, i, be);
1799
+ let M = f.body || f.documentElement;
1800
+ return t && i && M.insertBefore(a.createTextNode(i), M.childNodes[0] || null), ze === fe ? V.call(f, pe ? "html" : "body")[0] : pe ? f.documentElement : M;
1801
+ }, yt = function(t) {
1802
+ return X.call(t.ownerDocument || t, t, o.SHOW_ELEMENT | o.SHOW_COMMENT | o.SHOW_TEXT | o.SHOW_PROCESSING_INSTRUCTION, null);
1803
+ }, At = function(t) {
1804
+ return t instanceof _ && (typeof t.nodeName != "string" || typeof t.textContent != "string" || typeof t.removeChild != "function" || !(t.attributes instanceof y) || typeof t.removeAttribute != "function" || typeof t.setAttribute != "function" || typeof t.namespaceURI != "string" || typeof t.insertBefore != "function" || typeof t.hasChildNodes != "function");
1805
+ }, bt = function(t) {
1806
+ return typeof c == "function" && t instanceof c;
1807
+ }, Oe = function(t, f, i) {
1808
+ Y[t] && wt(Y[t], (C) => {
1809
+ C.call(n, f, i, be);
1806
1810
  });
1807
- }, r = function(e) {
1811
+ }, r = function(t) {
1808
1812
  let f = null;
1809
- if (Oe("beforeSanitizeElements", e, null), At(e))
1810
- return Ve(e), !0;
1811
- let i = ne(e.nodeName);
1812
- if (Oe("uponSanitizeElement", e, { tagName: i, allowedTags: G }), e.hasChildNodes() && !bt(e.firstElementChild) && Te(/<[/\w]/g, e.innerHTML) && Te(/<[/\w]/g, e.textContent))
1813
- return Ve(e), !0;
1813
+ if (Oe("beforeSanitizeElements", t, null), At(t))
1814
+ return Ve(t), !0;
1815
+ let i = ne(t.nodeName);
1816
+ if (Oe("uponSanitizeElement", t, { tagName: i, allowedTags: G }), t.hasChildNodes() && !bt(t.firstElementChild) && Te(/<[/\w]/g, t.innerHTML) && Te(/<[/\w]/g, t.textContent))
1817
+ return Ve(t), !0;
1814
1818
  if (!G[i] || te[i]) {
1815
- if (!te[i] && g(i) && (P.tagNameCheck instanceof RegExp && Te(P.tagNameCheck, i) || P.tagNameCheck instanceof Function && P.tagNameCheck(i)))
1819
+ if (!te[i] && g(i) && (j.tagNameCheck instanceof RegExp && Te(j.tagNameCheck, i) || j.tagNameCheck instanceof Function && j.tagNameCheck(i)))
1816
1820
  return !1;
1817
1821
  if (Be && !Le[i]) {
1818
- let R = E(e) || e.parentNode, j = w(e) || e.childNodes;
1819
- if (j && R) {
1820
- let I = j.length;
1822
+ let C = E(t) || t.parentNode, M = w(t) || t.childNodes;
1823
+ if (M && C) {
1824
+ let I = M.length;
1821
1825
  for (let ce = I - 1; ce >= 0; --ce)
1822
- R.insertBefore(A(j[ce], !0), U(e));
1826
+ C.insertBefore(A(M[ce], !0), U(t));
1823
1827
  }
1824
1828
  }
1825
- return Ve(e), !0;
1829
+ return Ve(t), !0;
1826
1830
  }
1827
- return e instanceof p && !It(e) || (i === "noscript" || i === "noembed" || i === "noframes") && Te(/<\/no(script|embed|frames)/i, e.innerHTML) ? (Ve(e), !0) : (Ae && e.nodeType === 3 && (f = e.textContent, wt([$, ae, k], (R) => {
1828
- f = pt(f, R, " ");
1829
- }), e.textContent !== f && (mt(t.removed, { element: e.cloneNode() }), e.textContent = f)), Oe("afterSanitizeElements", e, null), !1);
1830
- }, d = function(e, f, i) {
1831
+ return t instanceof p && !It(t) || (i === "noscript" || i === "noembed" || i === "noframes") && Te(/<\/no(script|embed|frames)/i, t.innerHTML) ? (Ve(t), !0) : (Ae && t.nodeType === 3 && (f = t.textContent, wt([z, ae, k], (C) => {
1832
+ f = pt(f, C, " ");
1833
+ }), t.textContent !== f && (mt(n.removed, { element: t.cloneNode() }), t.textContent = f)), Oe("afterSanitizeElements", t, null), !1);
1834
+ }, d = function(t, f, i) {
1831
1835
  if (Je && (f === "id" || f === "name") && (i in a || i in st))
1832
1836
  return !1;
1833
- if (!(ve && !z[f] && Te(C, f)) && !(pe && Te(F, f))) {
1834
- if (!x[f] || z[f]) {
1835
- if (!(g(e) && (P.tagNameCheck instanceof RegExp && Te(P.tagNameCheck, e) || P.tagNameCheck instanceof Function && P.tagNameCheck(e)) && (P.attributeNameCheck instanceof RegExp && Te(P.attributeNameCheck, f) || P.attributeNameCheck instanceof Function && P.attributeNameCheck(f)) || f === "is" && P.allowCustomizedBuiltInElements && (P.tagNameCheck instanceof RegExp && Te(P.tagNameCheck, i) || P.tagNameCheck instanceof Function && P.tagNameCheck(i))))
1837
+ if (!(de && !K[f] && Te(R, f)) && !(ue && Te($, f))) {
1838
+ if (!x[f] || K[f]) {
1839
+ if (!(g(t) && (j.tagNameCheck instanceof RegExp && Te(j.tagNameCheck, t) || j.tagNameCheck instanceof Function && j.tagNameCheck(t)) && (j.attributeNameCheck instanceof RegExp && Te(j.attributeNameCheck, f) || j.attributeNameCheck instanceof Function && j.attributeNameCheck(f)) || f === "is" && j.allowCustomizedBuiltInElements && (j.tagNameCheck instanceof RegExp && Te(j.tagNameCheck, i) || j.tagNameCheck instanceof Function && j.tagNameCheck(i))))
1836
1840
  return !1;
1837
- } else if (!We[f] && !Te(le, pt(i, ie, "")) && !((f === "src" || f === "xlink:href" || f === "href") && e !== "script" && ar(i, "data:") === 0 && Ue[e]) && !(Ie && !Te(J, pt(i, ie, ""))) && i)
1841
+ } else if (!We[f] && !Te(le, pt(i, ie, "")) && !((f === "src" || f === "xlink:href" || f === "href") && t !== "script" && or(i, "data:") === 0 && Ue[t]) && !(Ie && !Te(J, pt(i, ie, ""))) && i)
1838
1842
  return !1;
1839
1843
  }
1840
1844
  return !0;
1841
- }, g = function(e) {
1842
- return e !== "annotation-xml" && Zt(e, ee);
1843
- }, T = function(e) {
1844
- Oe("beforeSanitizeAttributes", e, null);
1845
- let { attributes: f } = e;
1845
+ }, g = function(t) {
1846
+ return t !== "annotation-xml" && Qt(t, Z);
1847
+ }, T = function(t) {
1848
+ Oe("beforeSanitizeAttributes", t, null);
1849
+ let { attributes: f } = t;
1846
1850
  if (!f)
1847
1851
  return;
1848
- let i = { attrName: "", attrValue: "", keepAttr: !0, allowedAttributes: x }, R = f.length;
1849
- for (; R--; ) {
1850
- let j = f[R], { name: I, namespaceURI: ce, value: ge } = j, de = ne(I), X = I === "value" ? ge : or(ge);
1851
- if (i.attrName = de, i.attrValue = X, i.keepAttr = !0, i.forceKeepAttr = void 0, Oe("uponSanitizeAttribute", e, i), X = i.attrValue, i.forceKeepAttr || (nt(I, e), !i.keepAttr))
1852
+ let i = { attrName: "", attrValue: "", keepAttr: !0, allowedAttributes: x }, C = f.length;
1853
+ for (; C--; ) {
1854
+ let M = f[C], { name: I, namespaceURI: ce, value: ve } = M, me = ne(I), q = I === "value" ? ve : sr(ve);
1855
+ if (i.attrName = me, i.attrValue = q, i.keepAttr = !0, i.forceKeepAttr = void 0, Oe("uponSanitizeAttribute", t, i), q = i.attrValue, i.forceKeepAttr || (nt(I, t), !i.keepAttr))
1852
1856
  continue;
1853
- if (!we && Te(/\/>/i, X)) {
1854
- nt(I, e);
1857
+ if (!we && Te(/\/>/i, q)) {
1858
+ nt(I, t);
1855
1859
  continue;
1856
1860
  }
1857
- Ae && wt([$, ae, k], (xt) => {
1858
- X = pt(X, xt, " ");
1861
+ Ae && wt([z, ae, k], (xt) => {
1862
+ q = pt(q, xt, " ");
1859
1863
  });
1860
- let rt = ne(e.nodeName);
1861
- if (d(rt, de, X)) {
1862
- if (Ne && (de === "id" || de === "name") && (nt(I, e), X = ot + X), L && typeof b == "object" && typeof b.getAttributeType == "function" && !ce)
1863
- switch (b.getAttributeType(rt, de)) {
1864
+ let rt = ne(t.nodeName);
1865
+ if (d(rt, me, q)) {
1866
+ if (Ne && (me === "id" || me === "name") && (nt(I, t), q = ot + q), L && typeof b == "object" && typeof b.getAttributeType == "function" && !ce)
1867
+ switch (b.getAttributeType(rt, me)) {
1864
1868
  case "TrustedHTML": {
1865
- X = L.createHTML(X);
1869
+ q = L.createHTML(q);
1866
1870
  break;
1867
1871
  }
1868
1872
  case "TrustedScriptURL": {
1869
- X = L.createScriptURL(X);
1873
+ q = L.createScriptURL(q);
1870
1874
  break;
1871
1875
  }
1872
1876
  }
1873
1877
  try {
1874
- ce ? e.setAttributeNS(ce, I, X) : e.setAttribute(I, X), Jt(t.removed);
1878
+ ce ? t.setAttributeNS(ce, I, q) : t.setAttribute(I, q), Zt(n.removed);
1875
1879
  } catch {
1876
1880
  }
1877
1881
  }
1878
1882
  }
1879
- Oe("afterSanitizeAttributes", e, null);
1880
- }, Y = function e(f) {
1881
- let i = null, R = yt(f);
1882
- for (Oe("beforeSanitizeShadowDOM", f, null); i = R.nextNode(); )
1883
- Oe("uponSanitizeShadowNode", i, null), !r(i) && (i.content instanceof u && e(i.content), T(i));
1883
+ Oe("afterSanitizeAttributes", t, null);
1884
+ }, H = function t(f) {
1885
+ let i = null, C = yt(f);
1886
+ for (Oe("beforeSanitizeShadowDOM", f, null); i = C.nextNode(); )
1887
+ Oe("uponSanitizeShadowNode", i, null), !r(i) && (i.content instanceof u && t(i.content), T(i));
1884
1888
  Oe("afterSanitizeShadowDOM", f, null);
1885
1889
  };
1886
- return t.sanitize = function(e) {
1887
- let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, R = null, j = null, I = null;
1888
- if (Ye = !e, Ye && (e = "<!-->"), typeof e != "string" && !bt(e))
1889
- if (typeof e.toString == "function") {
1890
- if (e = e.toString(), typeof e != "string")
1890
+ return n.sanitize = function(t) {
1891
+ let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, C = null, M = null, I = null;
1892
+ if (Ye = !t, Ye && (t = "<!-->"), typeof t != "string" && !bt(t))
1893
+ if (typeof t.toString == "function") {
1894
+ if (t = t.toString(), typeof t != "string")
1891
1895
  throw ht("dirty is not a string, aborting");
1892
1896
  } else
1893
1897
  throw ht("toString is not a function");
1894
- if (!t.isSupported)
1895
- return e;
1896
- if (Xe || tt(f), t.removed = [], typeof e == "string" && (Se = !1), Se) {
1897
- if (e.nodeName) {
1898
- let de = ne(e.nodeName);
1899
- if (!G[de] || te[de])
1898
+ if (!n.isSupported)
1899
+ return t;
1900
+ if (Xe || tt(f), n.removed = [], typeof t == "string" && (Se = !1), Se) {
1901
+ if (t.nodeName) {
1902
+ let me = ne(t.nodeName);
1903
+ if (!G[me] || te[me])
1900
1904
  throw ht("root node is forbidden and cannot be sanitized in-place");
1901
1905
  }
1902
- } else if (e instanceof c)
1903
- i = ut("<!---->"), R = i.ownerDocument.importNode(e, !0), R.nodeType === 1 && R.nodeName === "BODY" || R.nodeName === "HTML" ? i = R : i.appendChild(R);
1906
+ } else if (t instanceof c)
1907
+ i = ut("<!---->"), C = i.ownerDocument.importNode(t, !0), C.nodeType === 1 && C.nodeName === "BODY" || C.nodeName === "HTML" ? i = C : i.appendChild(C);
1904
1908
  else {
1905
- if (!oe && !Ae && !fe && e.indexOf("<") === -1)
1906
- return L && $e ? L.createHTML(e) : e;
1907
- if (i = ut(e), !i)
1908
- return oe ? null : $e ? H : "";
1909
+ if (!oe && !Ae && !pe && t.indexOf("<") === -1)
1910
+ return L && $e ? L.createHTML(t) : t;
1911
+ if (i = ut(t), !i)
1912
+ return oe ? null : $e ? W : "";
1909
1913
  }
1910
1914
  i && qe && Ve(i.firstChild);
1911
- let ce = yt(Se ? e : i);
1912
- for (; j = ce.nextNode(); )
1913
- r(j) || (j.content instanceof u && Y(j.content), T(j));
1915
+ let ce = yt(Se ? t : i);
1916
+ for (; M = ce.nextNode(); )
1917
+ r(M) || (M.content instanceof u && H(M.content), T(M));
1914
1918
  if (Se)
1915
- return e;
1919
+ return t;
1916
1920
  if (oe) {
1917
- if (me)
1918
- for (I = K.call(i.ownerDocument); i.firstChild; )
1921
+ if (he)
1922
+ for (I = ee.call(i.ownerDocument); i.firstChild; )
1919
1923
  I.appendChild(i.firstChild);
1920
1924
  else
1921
1925
  I = i;
1922
1926
  return (x.shadowroot || x.shadowrootmode) && (I = re.call(s, I, !0)), I;
1923
1927
  }
1924
- let ge = fe ? i.outerHTML : i.innerHTML;
1925
- return fe && G["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && Te(yn, i.ownerDocument.doctype.name) && (ge = "<!DOCTYPE " + i.ownerDocument.doctype.name + `>
1926
- ` + ge), Ae && wt([$, ae, k], (de) => {
1927
- ge = pt(ge, de, " ");
1928
- }), L && $e ? L.createHTML(ge) : ge;
1929
- }, t.setConfig = function() {
1930
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1931
- tt(e), Xe = !0;
1932
- }, t.clearConfig = function() {
1928
+ let ve = pe ? i.outerHTML : i.innerHTML;
1929
+ return pe && G["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && Te(bn, i.ownerDocument.doctype.name) && (ve = "<!DOCTYPE " + i.ownerDocument.doctype.name + `>
1930
+ ` + ve), Ae && wt([z, ae, k], (me) => {
1931
+ ve = pt(ve, me, " ");
1932
+ }), L && $e ? L.createHTML(ve) : ve;
1933
+ }, n.setConfig = function() {
1934
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1935
+ tt(t), Xe = !0;
1936
+ }, n.clearConfig = function() {
1933
1937
  be = null, Xe = !1;
1934
- }, t.isValidAttribute = function(e, f, i) {
1938
+ }, n.isValidAttribute = function(t, f, i) {
1935
1939
  be || tt({});
1936
- let R = ne(e), j = ne(f);
1937
- return d(R, j, i);
1938
- }, t.addHook = function(e, f) {
1939
- typeof f == "function" && (V[e] = V[e] || [], mt(V[e], f));
1940
- }, t.removeHook = function(e) {
1941
- if (V[e])
1942
- return Jt(V[e]);
1943
- }, t.removeHooks = function(e) {
1944
- V[e] && (V[e] = []);
1945
- }, t.removeAllHooks = function() {
1946
- V = {};
1947
- }, t;
1940
+ let C = ne(t), M = ne(f);
1941
+ return d(C, M, i);
1942
+ }, n.addHook = function(t, f) {
1943
+ typeof f == "function" && (Y[t] = Y[t] || [], mt(Y[t], f));
1944
+ }, n.removeHook = function(t) {
1945
+ if (Y[t])
1946
+ return Zt(Y[t]);
1947
+ }, n.removeHooks = function(t) {
1948
+ Y[t] && (Y[t] = []);
1949
+ }, n.removeAllHooks = function() {
1950
+ Y = {};
1951
+ }, n;
1948
1952
  }
1949
- var xr = bn(), wr = (n) => {
1950
- switch (n) {
1953
+ var wr = xn(), Er = (e) => {
1954
+ switch (e) {
1951
1955
  case "success":
1952
- return Tr;
1956
+ return _r;
1953
1957
  case "info":
1954
- return Nr;
1958
+ return kr;
1955
1959
  case "warning":
1956
- return _r;
1960
+ return Nr;
1957
1961
  case "error":
1958
- return kr;
1962
+ return Cr;
1959
1963
  default:
1960
1964
  return null;
1961
1965
  }
1962
- }, Er = Array(12).fill(0), Sr = ({ visible: n }) => v.createElement("div", { className: "sonner-loading-wrapper", "data-visible": n }, v.createElement("div", { className: "sonner-spinner" }, Er.map((t, a) => v.createElement("div", { className: "sonner-loading-bar", key: `spinner-bar-${a}` })))), Tr = v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, v.createElement("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z", clipRule: "evenodd" })), _r = v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", height: "20", width: "20" }, v.createElement("path", { fillRule: "evenodd", d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z", clipRule: "evenodd" })), Nr = v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, v.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z", clipRule: "evenodd" })), kr = v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, v.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z", clipRule: "evenodd" })), Cr = () => {
1963
- let [n, t] = v.useState(!1);
1966
+ }, Sr = Array(12).fill(0), Tr = ({ visible: e }) => v.createElement("div", { className: "sonner-loading-wrapper", "data-visible": e }, v.createElement("div", { className: "sonner-spinner" }, Sr.map((n, a) => v.createElement("div", { className: "sonner-loading-bar", key: `spinner-bar-${a}` })))), _r = v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, v.createElement("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z", clipRule: "evenodd" })), Nr = v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", height: "20", width: "20" }, v.createElement("path", { fillRule: "evenodd", d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z", clipRule: "evenodd" })), kr = v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, v.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z", clipRule: "evenodd" })), Cr = v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, v.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z", clipRule: "evenodd" })), Rr = () => {
1967
+ let [e, n] = v.useState(!1);
1964
1968
  return v.useEffect(() => {
1965
1969
  let a = () => {
1966
- t(document.hidden);
1970
+ n(document.hidden);
1967
1971
  };
1968
1972
  return document.addEventListener("visibilitychange", a), () => window.removeEventListener("visibilitychange", a);
1969
- }, []), n;
1970
- }, Ft = 1, Rr = class {
1973
+ }, []), e;
1974
+ }, Ft = 1, Ir = class {
1971
1975
  constructor() {
1972
- this.subscribe = (n) => (this.subscribers.push(n), () => {
1973
- let t = this.subscribers.indexOf(n);
1974
- this.subscribers.splice(t, 1);
1975
- }), this.publish = (n) => {
1976
- this.subscribers.forEach((t) => t(n));
1977
- }, this.addToast = (n) => {
1978
- this.publish(n), this.toasts = [...this.toasts, n];
1979
- }, this.create = (n) => {
1980
- var t;
1981
- let { message: a, ...s } = n, l = typeof (n == null ? void 0 : n.id) == "number" || ((t = n.id) == null ? void 0 : t.length) > 0 ? n.id : Ft++, u = this.toasts.find((c) => c.id === l), h = n.dismissible === void 0 ? !0 : n.dismissible;
1982
- return u ? this.toasts = this.toasts.map((c) => c.id === l ? (this.publish({ ...c, ...n, id: l, title: a }), { ...c, ...n, id: l, dismissible: h, title: a }) : c) : this.addToast({ title: a, ...s, dismissible: h, id: l }), l;
1983
- }, this.dismiss = (n) => (n || this.toasts.forEach((t) => {
1984
- this.subscribers.forEach((a) => a({ id: t.id, dismiss: !0 }));
1985
- }), this.subscribers.forEach((t) => t({ id: n, dismiss: !0 })), n), this.message = (n, t) => this.create({ ...t, message: n }), this.error = (n, t) => this.create({ ...t, message: n, type: "error" }), this.success = (n, t) => this.create({ ...t, type: "success", message: n }), this.info = (n, t) => this.create({ ...t, type: "info", message: n }), this.warning = (n, t) => this.create({ ...t, type: "warning", message: n }), this.loading = (n, t) => this.create({ ...t, type: "loading", message: n }), this.promise = (n, t) => {
1986
- if (!t)
1976
+ this.subscribe = (e) => (this.subscribers.push(e), () => {
1977
+ let n = this.subscribers.indexOf(e);
1978
+ this.subscribers.splice(n, 1);
1979
+ }), this.publish = (e) => {
1980
+ this.subscribers.forEach((n) => n(e));
1981
+ }, this.addToast = (e) => {
1982
+ this.publish(e), this.toasts = [...this.toasts, e];
1983
+ }, this.create = (e) => {
1984
+ var n;
1985
+ let { message: a, ...s } = e, l = typeof (e == null ? void 0 : e.id) == "number" || ((n = e.id) == null ? void 0 : n.length) > 0 ? e.id : Ft++, u = this.toasts.find((c) => c.id === l), h = e.dismissible === void 0 ? !0 : e.dismissible;
1986
+ return u ? this.toasts = this.toasts.map((c) => c.id === l ? (this.publish({ ...c, ...e, id: l, title: a }), { ...c, ...e, id: l, dismissible: h, title: a }) : c) : this.addToast({ title: a, ...s, dismissible: h, id: l }), l;
1987
+ }, this.dismiss = (e) => (e || this.toasts.forEach((n) => {
1988
+ this.subscribers.forEach((a) => a({ id: n.id, dismiss: !0 }));
1989
+ }), this.subscribers.forEach((n) => n({ id: e, dismiss: !0 })), e), this.message = (e, n) => this.create({ ...n, message: e }), this.error = (e, n) => this.create({ ...n, message: e, type: "error" }), this.success = (e, n) => this.create({ ...n, type: "success", message: e }), this.info = (e, n) => this.create({ ...n, type: "info", message: e }), this.warning = (e, n) => this.create({ ...n, type: "warning", message: e }), this.loading = (e, n) => this.create({ ...n, type: "loading", message: e }), this.promise = (e, n) => {
1990
+ if (!n)
1987
1991
  return;
1988
1992
  let a;
1989
- t.loading !== void 0 && (a = this.create({ ...t, promise: n, type: "loading", message: t.loading, description: typeof t.description != "function" ? t.description : void 0 }));
1990
- let s = n instanceof Promise ? n : n(), l = a !== void 0;
1993
+ n.loading !== void 0 && (a = this.create({ ...n, promise: e, type: "loading", message: n.loading, description: typeof n.description != "function" ? n.description : void 0 }));
1994
+ let s = e instanceof Promise ? e : e(), l = a !== void 0;
1991
1995
  return s.then((u) => {
1992
1996
  if (u && typeof u.ok == "boolean" && !u.ok) {
1993
1997
  l = !1;
1994
- let h = typeof t.error == "function" ? t.error(`HTTP error! status: ${u.status}`) : t.error, c = typeof t.description == "function" ? t.description(`HTTP error! status: ${u.status}`) : t.description;
1998
+ let h = typeof n.error == "function" ? n.error(`HTTP error! status: ${u.status}`) : n.error, c = typeof n.description == "function" ? n.description(`HTTP error! status: ${u.status}`) : n.description;
1995
1999
  this.create({ id: a, type: "error", message: h, description: c });
1996
- } else if (t.success !== void 0) {
2000
+ } else if (n.success !== void 0) {
1997
2001
  l = !1;
1998
- let h = typeof t.success == "function" ? t.success(u) : t.success, c = typeof t.description == "function" ? t.description(u) : t.description;
2002
+ let h = typeof n.success == "function" ? n.success(u) : n.success, c = typeof n.description == "function" ? n.description(u) : n.description;
1999
2003
  this.create({ id: a, type: "success", message: h, description: c });
2000
2004
  }
2001
2005
  }).catch((u) => {
2002
- if (t.error !== void 0) {
2006
+ if (n.error !== void 0) {
2003
2007
  l = !1;
2004
- let h = typeof t.error == "function" ? t.error(u) : t.error, c = typeof t.description == "function" ? t.description(u) : t.description;
2008
+ let h = typeof n.error == "function" ? n.error(u) : n.error, c = typeof n.description == "function" ? n.description(u) : n.description;
2005
2009
  this.create({ id: a, type: "error", message: h, description: c });
2006
2010
  }
2007
2011
  }).finally(() => {
2008
2012
  var u;
2009
- l && (this.dismiss(a), a = void 0), (u = t.finally) == null || u.call(t);
2013
+ l && (this.dismiss(a), a = void 0), (u = n.finally) == null || u.call(n);
2010
2014
  }), a;
2011
- }, this.custom = (n, t) => {
2012
- let a = (t == null ? void 0 : t.id) || Ft++;
2013
- return this.create({ jsx: n(a), id: a, ...t }), a;
2015
+ }, this.custom = (e, n) => {
2016
+ let a = (n == null ? void 0 : n.id) || Ft++;
2017
+ return this.create({ jsx: e(a), id: a, ...n }), a;
2014
2018
  }, this.subscribers = [], this.toasts = [];
2015
2019
  }
2016
- }, je = new Rr(), Ir = (n, t) => {
2017
- let a = (t == null ? void 0 : t.id) || Ft++;
2018
- return je.addToast({ title: n, ...t, id: a }), a;
2019
- }, Ar = Ir, Tt = Object.assign(Ar, { success: je.success, info: je.info, warning: je.warning, error: je.error, custom: je.custom, message: je.message, promise: je.promise, dismiss: je.dismiss, loading: je.loading });
2020
- function Lr(n, { insertAt: t } = {}) {
2021
- if (!n || typeof document > "u")
2020
+ }, je = new Ir(), Ar = (e, n) => {
2021
+ let a = (n == null ? void 0 : n.id) || Ft++;
2022
+ return je.addToast({ title: e, ...n, id: a }), a;
2023
+ }, Lr = Ar, Tt = Object.assign(Lr, { success: je.success, info: je.info, warning: je.warning, error: je.error, custom: je.custom, message: je.message, promise: je.promise, dismiss: je.dismiss, loading: je.loading });
2024
+ function Or(e, { insertAt: n } = {}) {
2025
+ if (!e || typeof document > "u")
2022
2026
  return;
2023
2027
  let a = document.head || document.getElementsByTagName("head")[0], s = document.createElement("style");
2024
- s.type = "text/css", t === "top" && a.firstChild ? a.insertBefore(s, a.firstChild) : a.appendChild(s), s.styleSheet ? s.styleSheet.cssText = n : s.appendChild(document.createTextNode(n));
2028
+ s.type = "text/css", n === "top" && a.firstChild ? a.insertBefore(s, a.firstChild) : a.appendChild(s), s.styleSheet ? s.styleSheet.cssText = e : s.appendChild(document.createTextNode(e));
2025
2029
  }
2026
- Lr(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success],[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info],[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning],[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error],[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
2030
+ Or(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success],[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info],[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning],[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error],[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
2027
2031
  `);
2028
- function _t(n) {
2029
- return n.label !== void 0 && typeof n.onClick == "function";
2032
+ function _t(e) {
2033
+ return e.label !== void 0 && typeof e.onClick == "function";
2030
2034
  }
2031
- var Or = 3, Pr = "32px", jr = 4e3, Dr = 356, Mr = 14, zr = 20, $r = 200;
2032
- function Fr(...n) {
2033
- return n.filter(Boolean).join(" ");
2035
+ var Pr = 3, jr = "32px", Mr = 4e3, Dr = 356, zr = 14, $r = 20, Fr = 200;
2036
+ function Br(...e) {
2037
+ return e.filter(Boolean).join(" ");
2034
2038
  }
2035
- var Br = (n) => {
2036
- var t, a, s, l, u, h, c;
2037
- let { invert: p, toast: o, unstyled: y, interacting: _, setHeights: N, visibleToasts: b, heights: O, index: A, toasts: U, expanded: w, removeToast: E, closeButton: L, style: H, cancelButtonStyle: D, actionButtonStyle: q, className: K = "", descriptionClassName: Q = "", duration: re, position: V, gap: $, loadingIcon: ae, expandByDefault: k, classNames: C, icons: F, closeButtonAriaLabel: J = "Close toast", pauseWhenPageIsHidden: ie, cn: ee } = n, [le, G] = v.useState(!1), [M, x] = v.useState(!1), [W, P] = v.useState(!1), [te, z] = v.useState(!1), [pe, ve] = v.useState(0), [Ie, we] = v.useState(0), Ae = v.useRef(null), fe = v.useRef(null), Xe = A === 0, qe = A + 1 <= b, oe = o.type, me = o.dismissible !== !1, $e = o.className || "", Je = o.descriptionClassName || "", Ne = v.useMemo(() => O.findIndex((S) => S.toastId === o.id) || 0, [O, o.id]), ot = v.useMemo(() => {
2039
+ var Ur = (e) => {
2040
+ var n, a, s, l, u, h, c;
2041
+ let { invert: p, toast: o, unstyled: y, interacting: _, setHeights: N, visibleToasts: b, heights: P, index: A, toasts: U, expanded: w, removeToast: E, closeButton: L, style: W, cancelButtonStyle: D, actionButtonStyle: X, className: ee = "", descriptionClassName: V = "", duration: re, position: Y, gap: z, loadingIcon: ae, expandByDefault: k, classNames: R, icons: $, closeButtonAriaLabel: J = "Close toast", pauseWhenPageIsHidden: ie, cn: Z } = e, [le, G] = v.useState(!1), [F, x] = v.useState(!1), [O, j] = v.useState(!1), [te, K] = v.useState(!1), [ue, de] = v.useState(0), [Ie, we] = v.useState(0), Ae = v.useRef(null), pe = v.useRef(null), Xe = A === 0, qe = A + 1 <= b, oe = o.type, he = o.dismissible !== !1, $e = o.className || "", Je = o.descriptionClassName || "", Ne = v.useMemo(() => P.findIndex((S) => S.toastId === o.id) || 0, [P, o.id]), ot = v.useMemo(() => {
2038
2042
  var S;
2039
2043
  return (S = o.closeButton) != null ? S : L;
2040
- }, [o.closeButton, L]), Be = v.useMemo(() => o.duration || re || jr, [o.duration, re]), Se = v.useRef(0), ye = v.useRef(0), Le = v.useRef(0), ke = v.useRef(null), [Ue, Me] = V.split("-"), We = v.useMemo(() => O.reduce((S, se, Z) => Z >= Ne ? S : S + se.height, 0), [O, Ne]), He = Cr(), Fe = o.invert || p, Ce = oe === "loading";
2041
- ye.current = v.useMemo(() => Ne * $ + We, [Ne, We]), v.useEffect(() => {
2044
+ }, [o.closeButton, L]), Be = v.useMemo(() => o.duration || re || Mr, [o.duration, re]), Se = v.useRef(0), ye = v.useRef(0), Le = v.useRef(0), ke = v.useRef(null), [Ue, De] = Y.split("-"), We = v.useMemo(() => P.reduce((S, se, Q) => Q >= Ne ? S : S + se.height, 0), [P, Ne]), He = Rr(), Fe = o.invert || p, Ce = oe === "loading";
2045
+ ye.current = v.useMemo(() => Ne * z + We, [Ne, We]), v.useEffect(() => {
2042
2046
  G(!0);
2043
2047
  }, []), v.useLayoutEffect(() => {
2044
2048
  if (!le)
2045
2049
  return;
2046
- let S = fe.current, se = S.style.height;
2050
+ let S = pe.current, se = S.style.height;
2047
2051
  S.style.height = "auto";
2048
- let Z = S.getBoundingClientRect().height;
2049
- S.style.height = se, we(Z), N((Ee) => Ee.find((he) => he.toastId === o.id) ? Ee.map((he) => he.toastId === o.id ? { ...he, height: Z } : he) : [{ toastId: o.id, height: Z, position: o.position }, ...Ee]);
2052
+ let Q = S.getBoundingClientRect().height;
2053
+ S.style.height = se, we(Q), N((Ee) => Ee.find((ge) => ge.toastId === o.id) ? Ee.map((ge) => ge.toastId === o.id ? { ...ge, height: Q } : ge) : [{ toastId: o.id, height: Q, position: o.position }, ...Ee]);
2050
2054
  }, [le, o.title, o.description, N, o.id]);
2051
- let ue = v.useCallback(() => {
2052
- x(!0), ve(ye.current), N((S) => S.filter((se) => se.toastId !== o.id)), setTimeout(() => {
2055
+ let fe = v.useCallback(() => {
2056
+ x(!0), de(ye.current), N((S) => S.filter((se) => se.toastId !== o.id)), setTimeout(() => {
2053
2057
  E(o);
2054
- }, $r);
2058
+ }, Fr);
2055
2059
  }, [o, E, N, ye]);
2056
2060
  v.useEffect(() => {
2057
2061
  if (o.promise && oe === "loading" || o.duration === 1 / 0 || o.type === "loading")
@@ -2059,114 +2063,114 @@ var Br = (n) => {
2059
2063
  let S, se = Be;
2060
2064
  return w || _ || ie && He ? (() => {
2061
2065
  if (Le.current < Se.current) {
2062
- let Z = (/* @__PURE__ */ new Date()).getTime() - Se.current;
2063
- se = se - Z;
2066
+ let Q = (/* @__PURE__ */ new Date()).getTime() - Se.current;
2067
+ se = se - Q;
2064
2068
  }
2065
2069
  Le.current = (/* @__PURE__ */ new Date()).getTime();
2066
2070
  })() : se !== 1 / 0 && (Se.current = (/* @__PURE__ */ new Date()).getTime(), S = setTimeout(() => {
2067
- var Z;
2068
- (Z = o.onAutoClose) == null || Z.call(o, o), ue();
2071
+ var Q;
2072
+ (Q = o.onAutoClose) == null || Q.call(o, o), fe();
2069
2073
  }, se)), () => clearTimeout(S);
2070
- }, [w, _, k, o, Be, ue, o.promise, oe, ie, He]), v.useEffect(() => {
2071
- let S = fe.current;
2074
+ }, [w, _, k, o, Be, fe, o.promise, oe, ie, He]), v.useEffect(() => {
2075
+ let S = pe.current;
2072
2076
  if (S) {
2073
2077
  let se = S.getBoundingClientRect().height;
2074
- return we(se), N((Z) => [{ toastId: o.id, height: se, position: o.position }, ...Z]), () => N((Z) => Z.filter((Ee) => Ee.toastId !== o.id));
2078
+ return we(se), N((Q) => [{ toastId: o.id, height: se, position: o.position }, ...Q]), () => N((Q) => Q.filter((Ee) => Ee.toastId !== o.id));
2075
2079
  }
2076
2080
  }, [N, o.id]), v.useEffect(() => {
2077
- o.delete && ue();
2078
- }, [ue, o.delete]);
2081
+ o.delete && fe();
2082
+ }, [fe, o.delete]);
2079
2083
  function ze() {
2080
- return F != null && F.loading ? v.createElement("div", { className: "sonner-loader", "data-visible": oe === "loading" }, F.loading) : ae ? v.createElement("div", { className: "sonner-loader", "data-visible": oe === "loading" }, ae) : v.createElement(Sr, { visible: oe === "loading" });
2084
+ return $ != null && $.loading ? v.createElement("div", { className: "sonner-loader", "data-visible": oe === "loading" }, $.loading) : ae ? v.createElement("div", { className: "sonner-loader", "data-visible": oe === "loading" }, ae) : v.createElement(Tr, { visible: oe === "loading" });
2081
2085
  }
2082
2086
  function Ye(S) {
2083
- return { __html: xr.sanitize(S) };
2087
+ return { __html: wr.sanitize(S) };
2084
2088
  }
2085
- return v.createElement("li", { "aria-live": o.important ? "assertive" : "polite", "aria-atomic": "true", role: "status", tabIndex: 0, ref: fe, className: ee(K, $e, C == null ? void 0 : C.toast, (t = o == null ? void 0 : o.classNames) == null ? void 0 : t.toast, C == null ? void 0 : C.default, C == null ? void 0 : C[oe], (a = o == null ? void 0 : o.classNames) == null ? void 0 : a[oe]), "data-sonner-toast": "", "data-styled": !(o.jsx || o.unstyled || y), "data-mounted": le, "data-promise": !!o.promise, "data-removed": M, "data-visible": qe, "data-y-position": Ue, "data-x-position": Me, "data-index": A, "data-front": Xe, "data-swiping": W, "data-dismissible": me, "data-type": oe, "data-invert": Fe, "data-swipe-out": te, "data-expanded": !!(w || k && le), style: { "--index": A, "--toasts-before": A, "--z-index": U.length - A, "--offset": `${M ? pe : ye.current}px`, "--initial-height": k ? "auto" : `${Ie}px`, ...H, ...o.style }, onPointerDown: (S) => {
2086
- Ce || !me || (Ae.current = /* @__PURE__ */ new Date(), ve(ye.current), S.target.setPointerCapture(S.pointerId), S.target.tagName !== "BUTTON" && (P(!0), ke.current = { x: S.clientX, y: S.clientY }));
2089
+ return v.createElement("li", { "aria-live": o.important ? "assertive" : "polite", "aria-atomic": "true", role: "status", tabIndex: 0, ref: pe, className: Z(ee, $e, R == null ? void 0 : R.toast, (n = o == null ? void 0 : o.classNames) == null ? void 0 : n.toast, R == null ? void 0 : R.default, R == null ? void 0 : R[oe], (a = o == null ? void 0 : o.classNames) == null ? void 0 : a[oe]), "data-sonner-toast": "", "data-styled": !(o.jsx || o.unstyled || y), "data-mounted": le, "data-promise": !!o.promise, "data-removed": F, "data-visible": qe, "data-y-position": Ue, "data-x-position": De, "data-index": A, "data-front": Xe, "data-swiping": O, "data-dismissible": he, "data-type": oe, "data-invert": Fe, "data-swipe-out": te, "data-expanded": !!(w || k && le), style: { "--index": A, "--toasts-before": A, "--z-index": U.length - A, "--offset": `${F ? ue : ye.current}px`, "--initial-height": k ? "auto" : `${Ie}px`, ...W, ...o.style }, onPointerDown: (S) => {
2090
+ Ce || !he || (Ae.current = /* @__PURE__ */ new Date(), de(ye.current), S.target.setPointerCapture(S.pointerId), S.target.tagName !== "BUTTON" && (j(!0), ke.current = { x: S.clientX, y: S.clientY }));
2087
2091
  }, onPointerUp: () => {
2088
- var S, se, Z, Ee;
2089
- if (te || !me)
2092
+ var S, se, Q, Ee;
2093
+ if (te || !he)
2090
2094
  return;
2091
2095
  ke.current = null;
2092
- let he = Number(((S = fe.current) == null ? void 0 : S.style.getPropertyValue("--swipe-amount").replace("px", "")) || 0), ne = (/* @__PURE__ */ new Date()).getTime() - ((se = Ae.current) == null ? void 0 : se.getTime()), be = Math.abs(he) / ne;
2093
- if (Math.abs(he) >= zr || be > 0.11) {
2094
- ve(ye.current), (Z = o.onDismiss) == null || Z.call(o, o), ue(), z(!0);
2096
+ let ge = Number(((S = pe.current) == null ? void 0 : S.style.getPropertyValue("--swipe-amount").replace("px", "")) || 0), ne = (/* @__PURE__ */ new Date()).getTime() - ((se = Ae.current) == null ? void 0 : se.getTime()), be = Math.abs(ge) / ne;
2097
+ if (Math.abs(ge) >= $r || be > 0.11) {
2098
+ de(ye.current), (Q = o.onDismiss) == null || Q.call(o, o), fe(), K(!0);
2095
2099
  return;
2096
2100
  }
2097
- (Ee = fe.current) == null || Ee.style.setProperty("--swipe-amount", "0px"), P(!1);
2101
+ (Ee = pe.current) == null || Ee.style.setProperty("--swipe-amount", "0px"), j(!1);
2098
2102
  }, onPointerMove: (S) => {
2099
2103
  var se;
2100
- if (!ke.current || !me)
2104
+ if (!ke.current || !he)
2101
2105
  return;
2102
- let Z = S.clientY - ke.current.y, Ee = S.clientX - ke.current.x, he = (Ue === "top" ? Math.min : Math.max)(0, Z), ne = S.pointerType === "touch" ? 10 : 2;
2103
- Math.abs(he) > ne ? (se = fe.current) == null || se.style.setProperty("--swipe-amount", `${Z}px`) : Math.abs(Ee) > ne && (ke.current = null);
2104
- } }, ot && !o.jsx ? v.createElement("button", { "aria-label": J, "data-disabled": Ce, "data-close-button": !0, onClick: Ce || !me ? () => {
2106
+ let Q = S.clientY - ke.current.y, Ee = S.clientX - ke.current.x, ge = (Ue === "top" ? Math.min : Math.max)(0, Q), ne = S.pointerType === "touch" ? 10 : 2;
2107
+ Math.abs(ge) > ne ? (se = pe.current) == null || se.style.setProperty("--swipe-amount", `${Q}px`) : Math.abs(Ee) > ne && (ke.current = null);
2108
+ } }, ot && !o.jsx ? v.createElement("button", { "aria-label": J, "data-disabled": Ce, "data-close-button": !0, onClick: Ce || !he ? () => {
2105
2109
  } : () => {
2106
2110
  var S;
2107
- ue(), (S = o.onDismiss) == null || S.call(o, o);
2108
- }, className: ee(C == null ? void 0 : C.closeButton, (s = o == null ? void 0 : o.classNames) == null ? void 0 : s.closeButton) }, v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }, v.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), v.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" }))) : null, o.jsx || v.isValidElement(o.title) ? o.jsx || o.title : v.createElement(v.Fragment, null, oe || o.icon || o.promise ? v.createElement("div", { "data-icon": "", className: ee(C == null ? void 0 : C.icon) }, o.promise || o.type === "loading" && !o.icon ? o.icon || ze() : null, o.type !== "loading" ? o.icon || (F == null ? void 0 : F[oe]) || wr(oe) : null) : null, v.createElement("div", { "data-content": "", className: ee(C == null ? void 0 : C.content) }, v.createElement("div", { "data-title": "", className: ee(C == null ? void 0 : C.title, (l = o == null ? void 0 : o.classNames) == null ? void 0 : l.title), dangerouslySetInnerHTML: Ye(o.title) }), o.description ? v.createElement("div", { "data-description": "", className: ee(Q, Je, C == null ? void 0 : C.description, (u = o == null ? void 0 : o.classNames) == null ? void 0 : u.description), dangerouslySetInnerHTML: Ye(o.description) }) : null), v.isValidElement(o.cancel) ? o.cancel : o.cancel && _t(o.cancel) ? v.createElement("button", { "data-button": !0, "data-cancel": !0, style: o.cancelButtonStyle || D, onClick: (S) => {
2109
- _t(o.cancel) && me && (ue(), o.cancel.onClick(S));
2110
- }, className: ee(C == null ? void 0 : C.cancelButton, (h = o == null ? void 0 : o.classNames) == null ? void 0 : h.cancelButton) }, o.cancel.label) : null, v.isValidElement(o.action) ? o.action : o.action && _t(o.action) ? v.createElement("button", { "data-button": "", style: o.actionButtonStyle || q, onClick: (S) => {
2111
- _t(o.action) && (o.action.onClick(S), !S.defaultPrevented && ue());
2112
- }, className: ee(C == null ? void 0 : C.actionButton, (c = o == null ? void 0 : o.classNames) == null ? void 0 : c.actionButton) }, o.action.label) : null));
2111
+ fe(), (S = o.onDismiss) == null || S.call(o, o);
2112
+ }, className: Z(R == null ? void 0 : R.closeButton, (s = o == null ? void 0 : o.classNames) == null ? void 0 : s.closeButton) }, v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }, v.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), v.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" }))) : null, o.jsx || v.isValidElement(o.title) ? o.jsx || o.title : v.createElement(v.Fragment, null, oe || o.icon || o.promise ? v.createElement("div", { "data-icon": "", className: Z(R == null ? void 0 : R.icon) }, o.promise || o.type === "loading" && !o.icon ? o.icon || ze() : null, o.type !== "loading" ? o.icon || ($ == null ? void 0 : $[oe]) || Er(oe) : null) : null, v.createElement("div", { "data-content": "", className: Z(R == null ? void 0 : R.content) }, v.createElement("div", { "data-title": "", className: Z(R == null ? void 0 : R.title, (l = o == null ? void 0 : o.classNames) == null ? void 0 : l.title), dangerouslySetInnerHTML: Ye(o.title) }), o.description ? v.createElement("div", { "data-description": "", className: Z(V, Je, R == null ? void 0 : R.description, (u = o == null ? void 0 : o.classNames) == null ? void 0 : u.description), dangerouslySetInnerHTML: Ye(o.description) }) : null), v.isValidElement(o.cancel) ? o.cancel : o.cancel && _t(o.cancel) ? v.createElement("button", { "data-button": !0, "data-cancel": !0, style: o.cancelButtonStyle || D, onClick: (S) => {
2113
+ _t(o.cancel) && he && (fe(), o.cancel.onClick(S));
2114
+ }, className: Z(R == null ? void 0 : R.cancelButton, (h = o == null ? void 0 : o.classNames) == null ? void 0 : h.cancelButton) }, o.cancel.label) : null, v.isValidElement(o.action) ? o.action : o.action && _t(o.action) ? v.createElement("button", { "data-button": "", style: o.actionButtonStyle || X, onClick: (S) => {
2115
+ _t(o.action) && (o.action.onClick(S), !S.defaultPrevented && fe());
2116
+ }, className: Z(R == null ? void 0 : R.actionButton, (c = o == null ? void 0 : o.classNames) == null ? void 0 : c.actionButton) }, o.action.label) : null));
2113
2117
  };
2114
- function an() {
2118
+ function on() {
2115
2119
  if (typeof window > "u" || typeof document > "u")
2116
2120
  return "ltr";
2117
- let n = document.documentElement.getAttribute("dir");
2118
- return n === "auto" || !n ? window.getComputedStyle(document.documentElement).direction : n;
2121
+ let e = document.documentElement.getAttribute("dir");
2122
+ return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
2119
2123
  }
2120
- var Ur = (n) => {
2121
- let { invert: t, position: a = "bottom-right", hotkey: s = ["altKey", "KeyT"], expand: l, closeButton: u, className: h, offset: c, theme: p = "light", richColors: o, duration: y, style: _, visibleToasts: N = Or, toastOptions: b, dir: O = an(), gap: A = Mr, loadingIcon: U, icons: w, containerAriaLabel: E = "Notifications", pauseWhenPageIsHidden: L, cn: H = Fr } = n, [D, q] = v.useState([]), K = v.useMemo(() => Array.from(new Set([a].concat(D.filter((M) => M.position).map((M) => M.position)))), [D, a]), [Q, re] = v.useState([]), [V, $] = v.useState(!1), [ae, k] = v.useState(!1), [C, F] = v.useState(p !== "system" ? p : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), J = v.useRef(null), ie = s.join("+").replace(/Key/g, "").replace(/Digit/g, ""), ee = v.useRef(null), le = v.useRef(!1), G = v.useCallback((M) => q((x) => x.filter(({ id: W }) => W !== M.id)), []);
2122
- return v.useEffect(() => je.subscribe((M) => {
2123
- if (M.dismiss) {
2124
- q((x) => x.map((W) => W.id === M.id ? { ...W, delete: !0 } : W));
2124
+ var Wr = (e) => {
2125
+ let { invert: n, position: a = "bottom-right", hotkey: s = ["altKey", "KeyT"], expand: l, closeButton: u, className: h, offset: c, theme: p = "light", richColors: o, duration: y, style: _, visibleToasts: N = Pr, toastOptions: b, dir: P = on(), gap: A = zr, loadingIcon: U, icons: w, containerAriaLabel: E = "Notifications", pauseWhenPageIsHidden: L, cn: W = Br } = e, [D, X] = v.useState([]), ee = v.useMemo(() => Array.from(new Set([a].concat(D.filter((F) => F.position).map((F) => F.position)))), [D, a]), [V, re] = v.useState([]), [Y, z] = v.useState(!1), [ae, k] = v.useState(!1), [R, $] = v.useState(p !== "system" ? p : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), J = v.useRef(null), ie = s.join("+").replace(/Key/g, "").replace(/Digit/g, ""), Z = v.useRef(null), le = v.useRef(!1), G = v.useCallback((F) => X((x) => x.filter(({ id: O }) => O !== F.id)), []);
2126
+ return v.useEffect(() => je.subscribe((F) => {
2127
+ if (F.dismiss) {
2128
+ X((x) => x.map((O) => O.id === F.id ? { ...O, delete: !0 } : O));
2125
2129
  return;
2126
2130
  }
2127
2131
  setTimeout(() => {
2128
2132
  Rn.flushSync(() => {
2129
- q((x) => {
2130
- let W = x.findIndex((P) => P.id === M.id);
2131
- return W !== -1 ? [...x.slice(0, W), { ...x[W], ...M }, ...x.slice(W + 1)] : [M, ...x];
2133
+ X((x) => {
2134
+ let O = x.findIndex((j) => j.id === F.id);
2135
+ return O !== -1 ? [...x.slice(0, O), { ...x[O], ...F }, ...x.slice(O + 1)] : [F, ...x];
2132
2136
  });
2133
2137
  });
2134
2138
  });
2135
2139
  }), []), v.useEffect(() => {
2136
2140
  if (p !== "system") {
2137
- F(p);
2141
+ $(p);
2138
2142
  return;
2139
2143
  }
2140
- p === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? F("dark") : F("light")), typeof window < "u" && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", ({ matches: M }) => {
2141
- F(M ? "dark" : "light");
2144
+ p === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? $("dark") : $("light")), typeof window < "u" && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", ({ matches: F }) => {
2145
+ $(F ? "dark" : "light");
2142
2146
  });
2143
2147
  }, [p]), v.useEffect(() => {
2144
- D.length <= 1 && $(!1);
2148
+ D.length <= 1 && z(!1);
2145
2149
  }, [D]), v.useEffect(() => {
2146
- let M = (x) => {
2147
- var W, P;
2148
- s.every((te) => x[te] || x.code === te) && ($(!0), (W = J.current) == null || W.focus()), x.code === "Escape" && (document.activeElement === J.current || (P = J.current) != null && P.contains(document.activeElement)) && $(!1);
2150
+ let F = (x) => {
2151
+ var O, j;
2152
+ s.every((te) => x[te] || x.code === te) && (z(!0), (O = J.current) == null || O.focus()), x.code === "Escape" && (document.activeElement === J.current || (j = J.current) != null && j.contains(document.activeElement)) && z(!1);
2149
2153
  };
2150
- return document.addEventListener("keydown", M), () => document.removeEventListener("keydown", M);
2154
+ return document.addEventListener("keydown", F), () => document.removeEventListener("keydown", F);
2151
2155
  }, [s]), v.useEffect(() => {
2152
2156
  if (J.current)
2153
2157
  return () => {
2154
- ee.current && (ee.current.focus({ preventScroll: !0 }), ee.current = null, le.current = !1);
2158
+ Z.current && (Z.current.focus({ preventScroll: !0 }), Z.current = null, le.current = !1);
2155
2159
  };
2156
- }, [J.current]), D.length ? v.createElement("section", { "aria-label": `${E} ${ie}`, tabIndex: -1 }, K.map((M, x) => {
2157
- var W;
2158
- let [P, te] = M.split("-");
2159
- return v.createElement("ol", { key: M, dir: O === "auto" ? an() : O, tabIndex: -1, ref: J, className: h, "data-sonner-toaster": !0, "data-theme": C, "data-rich-colors": o, "data-y-position": P, "data-x-position": te, style: { "--front-toast-height": `${((W = Q[0]) == null ? void 0 : W.height) || 0}px`, "--offset": typeof c == "number" ? `${c}px` : c || Pr, "--width": `${Dr}px`, "--gap": `${A}px`, ..._ }, onBlur: (z) => {
2160
- le.current && !z.currentTarget.contains(z.relatedTarget) && (le.current = !1, ee.current && (ee.current.focus({ preventScroll: !0 }), ee.current = null));
2161
- }, onFocus: (z) => {
2162
- z.target instanceof HTMLElement && z.target.dataset.dismissible === "false" || le.current || (le.current = !0, ee.current = z.relatedTarget);
2163
- }, onMouseEnter: () => $(!0), onMouseMove: () => $(!0), onMouseLeave: () => {
2164
- ae || $(!1);
2165
- }, onPointerDown: (z) => {
2166
- z.target instanceof HTMLElement && z.target.dataset.dismissible === "false" || k(!0);
2167
- }, onPointerUp: () => k(!1) }, D.filter((z) => !z.position && x === 0 || z.position === M).map((z, pe) => {
2168
- var ve, Ie;
2169
- return v.createElement(Br, { key: z.id, icons: w, index: pe, toast: z, duration: (ve = b == null ? void 0 : b.duration) != null ? ve : y, className: b == null ? void 0 : b.className, descriptionClassName: b == null ? void 0 : b.descriptionClassName, invert: t, visibleToasts: N, closeButton: (Ie = b == null ? void 0 : b.closeButton) != null ? Ie : u, interacting: ae, position: M, style: b == null ? void 0 : b.style, unstyled: b == null ? void 0 : b.unstyled, classNames: b == null ? void 0 : b.classNames, cancelButtonStyle: b == null ? void 0 : b.cancelButtonStyle, actionButtonStyle: b == null ? void 0 : b.actionButtonStyle, removeToast: G, toasts: D.filter((we) => we.position == z.position), heights: Q.filter((we) => we.position == z.position), setHeights: re, expandByDefault: l, gap: A, loadingIcon: U, expanded: V, pauseWhenPageIsHidden: L, cn: H });
2160
+ }, [J.current]), D.length ? v.createElement("section", { "aria-label": `${E} ${ie}`, tabIndex: -1 }, ee.map((F, x) => {
2161
+ var O;
2162
+ let [j, te] = F.split("-");
2163
+ return v.createElement("ol", { key: F, dir: P === "auto" ? on() : P, tabIndex: -1, ref: J, className: h, "data-sonner-toaster": !0, "data-theme": R, "data-rich-colors": o, "data-y-position": j, "data-x-position": te, style: { "--front-toast-height": `${((O = V[0]) == null ? void 0 : O.height) || 0}px`, "--offset": typeof c == "number" ? `${c}px` : c || jr, "--width": `${Dr}px`, "--gap": `${A}px`, ..._ }, onBlur: (K) => {
2164
+ le.current && !K.currentTarget.contains(K.relatedTarget) && (le.current = !1, Z.current && (Z.current.focus({ preventScroll: !0 }), Z.current = null));
2165
+ }, onFocus: (K) => {
2166
+ K.target instanceof HTMLElement && K.target.dataset.dismissible === "false" || le.current || (le.current = !0, Z.current = K.relatedTarget);
2167
+ }, onMouseEnter: () => z(!0), onMouseMove: () => z(!0), onMouseLeave: () => {
2168
+ ae || z(!1);
2169
+ }, onPointerDown: (K) => {
2170
+ K.target instanceof HTMLElement && K.target.dataset.dismissible === "false" || k(!0);
2171
+ }, onPointerUp: () => k(!1) }, D.filter((K) => !K.position && x === 0 || K.position === F).map((K, ue) => {
2172
+ var de, Ie;
2173
+ return v.createElement(Ur, { key: K.id, icons: w, index: ue, toast: K, duration: (de = b == null ? void 0 : b.duration) != null ? de : y, className: b == null ? void 0 : b.className, descriptionClassName: b == null ? void 0 : b.descriptionClassName, invert: n, visibleToasts: N, closeButton: (Ie = b == null ? void 0 : b.closeButton) != null ? Ie : u, interacting: ae, position: F, style: b == null ? void 0 : b.style, unstyled: b == null ? void 0 : b.unstyled, classNames: b == null ? void 0 : b.classNames, cancelButtonStyle: b == null ? void 0 : b.cancelButtonStyle, actionButtonStyle: b == null ? void 0 : b.actionButtonStyle, removeToast: G, toasts: D.filter((we) => we.position == K.position), heights: V.filter((we) => we.position == K.position), setHeights: re, expandByDefault: l, gap: A, loadingIcon: U, expanded: Y, pauseWhenPageIsHidden: L, cn: W });
2170
2174
  }));
2171
2175
  })) : null;
2172
2176
  };
@@ -2175,8 +2179,8 @@ var Ur = (n) => {
2175
2179
  dompurify/dist/purify.es.mjs:
2176
2180
  (*! @license DOMPurify 3.0.10 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.10/LICENSE *)
2177
2181
  */
2178
- function ha({ children: n }) {
2179
- function t(u) {
2182
+ function ha({ children: e }) {
2183
+ function n(u) {
2180
2184
  Tt.success(u);
2181
2185
  }
2182
2186
  function a(u) {
@@ -2189,36 +2193,36 @@ function ha({ children: n }) {
2189
2193
  Tt.warning(u);
2190
2194
  }
2191
2195
  return /* @__PURE__ */ m.jsxs(
2192
- pn.Provider,
2196
+ hn.Provider,
2193
2197
  {
2194
- value: { errorToast: s, warningToast: l, successToast: t, infoToast: a },
2198
+ value: { errorToast: s, warningToast: l, successToast: n, infoToast: a },
2195
2199
  children: [
2196
- /* @__PURE__ */ m.jsx(Ur, { richColors: !0 }),
2197
- n
2200
+ /* @__PURE__ */ m.jsx(Wr, { richColors: !0 }),
2201
+ e
2198
2202
  ]
2199
2203
  }
2200
2204
  );
2201
2205
  }
2202
2206
  export {
2203
- Xr as Badge,
2204
- sa as Breadcrumb,
2205
- ia as BreadcrumbLink,
2206
- Zr as Button,
2207
- ea as Checkbox,
2208
- qr as Divider,
2209
- Qr as FormController,
2210
- ta as FormError,
2211
- na as FormLabel,
2212
- ra as IconButton,
2213
- aa as Input,
2214
- la as Modal,
2207
+ qr as Badge,
2208
+ ia as Breadcrumb,
2209
+ la as BreadcrumbLink,
2210
+ Qr as Button,
2211
+ ta as Checkbox,
2212
+ Jr as Divider,
2213
+ ea as FormController,
2214
+ na as FormError,
2215
+ ra as FormLabel,
2216
+ aa as IconButton,
2217
+ oa as Input,
2218
+ ca as Modal,
2215
2219
  pa as ModalProvider,
2216
- oa as Select,
2217
- Jr as Skeleton,
2220
+ sa as Select,
2221
+ Zr as Skeleton,
2218
2222
  ha as ToastProvider,
2219
- ca as Tooltip,
2220
- ua as useAutomation,
2221
- da as useModal,
2222
- fa as useScopedParams,
2223
- ma as useToast
2223
+ ua as Tooltip,
2224
+ da as useAutomation,
2225
+ fa as useModal,
2226
+ ma as useScopedParams,
2227
+ tr as useToast
2224
2228
  };