@arkyn/components 1.3.7 → 1.3.9

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
@@ -19,16 +19,16 @@ function In() {
19
19
  if (Vt)
20
20
  return dt;
21
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, c = { key: !0, ref: !0, __self: !0, __source: !0 };
23
- function h(u, p, o) {
24
- var y, T = {}, k = null, b = null;
25
- o !== void 0 && (k = "" + o), p.key !== void 0 && (k = "" + p.key), p.ref !== void 0 && (b = p.ref);
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 };
23
+ function h(c, p, o) {
24
+ var y, _ = {}, N = null, b = null;
25
+ o !== void 0 && (N = "" + o), p.key !== void 0 && (N = "" + p.key), p.ref !== void 0 && (b = p.ref);
26
26
  for (y in p)
27
- s.call(p, y) && !c.hasOwnProperty(y) && (T[y] = p[y]);
28
- if (u && u.defaultProps)
29
- for (y in p = u.defaultProps, p)
30
- T[y] === void 0 && (T[y] = p[y]);
31
- return { $$typeof: t, type: u, key: k, ref: b, props: T, _owner: l.current };
27
+ s.call(p, y) && !u.hasOwnProperty(y) && (_[y] = p[y]);
28
+ if (c && c.defaultProps)
29
+ for (y in p = c.defaultProps, p)
30
+ _[y] === void 0 && (_[y] = p[y]);
31
+ return { $$typeof: t, 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
  }
@@ -45,24 +45,24 @@ var ft = {};
45
45
  var Gt;
46
46
  function An() {
47
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"), c = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), u = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), o = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), O = Symbol.iterator, P = "@@iterator";
49
- function W(r) {
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";
49
+ function U(r) {
50
50
  if (r === null || typeof r != "object")
51
51
  return null;
52
- var d = O && r[O] || r[P];
52
+ var d = O && r[O] || r[A];
53
53
  return typeof d == "function" ? d : null;
54
54
  }
55
- var _ = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
56
- function w(r) {
55
+ var w = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
56
+ function E(r) {
57
57
  {
58
- for (var d = arguments.length, g = new Array(d > 1 ? d - 1 : 0), S = 1; S < d; S++)
59
- g[S - 1] = arguments[S];
60
- C("error", r, g);
58
+ for (var d = arguments.length, g = new Array(d > 1 ? d - 1 : 0), T = 1; T < d; T++)
59
+ g[T - 1] = arguments[T];
60
+ L("error", r, g);
61
61
  }
62
62
  }
63
- function C(r, d, g) {
63
+ function L(r, d, g) {
64
64
  {
65
- var S = _.ReactDebugCurrentFrame, Y = S.getStackAddendum();
65
+ var T = w.ReactDebugCurrentFrame, Y = T.getStackAddendum();
66
66
  Y !== "" && (d += "%s", g = g.concat([Y]));
67
67
  var e = g.map(function(f) {
68
68
  return String(f);
@@ -70,29 +70,29 @@ function An() {
70
70
  e.unshift("Warning: " + d), Function.prototype.apply.call(console[r], console, e);
71
71
  }
72
72
  }
73
- var H = !1, z = !1, J = !1, X = !1, Q = !1, re;
73
+ var H = !1, D = !1, q = !1, K = !1, Q = !1, re;
74
74
  re = Symbol.for("react.module.reference");
75
75
  function V(r) {
76
- return !!(typeof r == "string" || typeof r == "function" || r === s || r === c || Q || r === l || r === o || r === y || X || r === b || H || z || J || typeof r == "object" && r !== null && (r.$$typeof === k || r.$$typeof === T || r.$$typeof === h || r.$$typeof === u || r.$$typeof === p || // This needs to include all possible module reference object
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
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 F(r, d, g) {
83
- var S = r.displayName;
84
- if (S)
85
- return S;
82
+ function $(r, d, g) {
83
+ var T = r.displayName;
84
+ if (T)
85
+ return T;
86
86
  var Y = d.displayName || d.name || "";
87
87
  return Y !== "" ? g + "(" + Y + ")" : g;
88
88
  }
89
- function te(r) {
89
+ function ae(r) {
90
90
  return r.displayName || "Context";
91
91
  }
92
- function N(r) {
92
+ function k(r) {
93
93
  if (r == null)
94
94
  return null;
95
- if (typeof r.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
95
+ if (typeof r.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
96
96
  return r.displayName || r.name || null;
97
97
  if (typeof r == "string")
98
98
  return r;
@@ -101,7 +101,7 @@ function An() {
101
101
  return "Fragment";
102
102
  case a:
103
103
  return "Portal";
104
- case c:
104
+ case u:
105
105
  return "Profiler";
106
106
  case l:
107
107
  return "StrictMode";
@@ -112,21 +112,21 @@ function An() {
112
112
  }
113
113
  if (typeof r == "object")
114
114
  switch (r.$$typeof) {
115
- case u:
115
+ case c:
116
116
  var d = r;
117
- return te(d) + ".Consumer";
117
+ return ae(d) + ".Consumer";
118
118
  case h:
119
119
  var g = r;
120
- return te(g._context) + ".Provider";
120
+ return ae(g._context) + ".Provider";
121
121
  case p:
122
- return F(r, r.render, "ForwardRef");
123
- case T:
124
- var S = r.displayName || null;
125
- return S !== null ? S : N(r.type) || "Memo";
126
- case k: {
122
+ return $(r, r.render, "ForwardRef");
123
+ case _:
124
+ var T = r.displayName || null;
125
+ return T !== null ? T : k(r.type) || "Memo";
126
+ case N: {
127
127
  var Y = r, e = Y._payload, f = Y._init;
128
128
  try {
129
- return N(f(e));
129
+ return k(f(e));
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 R = Object.assign, B = 0, K, ue, ee, se, G, D, x;
138
- function U() {
137
+ var C = Object.assign, F = 0, J, ie, ee, le, G, M, x;
138
+ function W() {
139
139
  }
140
- U.__reactDisabledLog = !0;
141
- function I() {
140
+ W.__reactDisabledLog = !0;
141
+ function P() {
142
142
  {
143
- if (B === 0) {
144
- K = console.log, ue = console.info, ee = console.warn, se = console.error, G = console.group, D = console.groupCollapsed, x = console.groupEnd;
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;
145
145
  var r = {
146
146
  configurable: !0,
147
147
  enumerable: !0,
148
- value: U,
148
+ value: W,
149
149
  writable: !0
150
150
  };
151
151
  Object.defineProperties(console, {
@@ -158,53 +158,53 @@ function An() {
158
158
  groupEnd: r
159
159
  });
160
160
  }
161
- B++;
161
+ F++;
162
162
  }
163
163
  }
164
- function ce() {
164
+ function te() {
165
165
  {
166
- if (B--, B === 0) {
166
+ if (F--, F === 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: R({}, r, {
174
- value: K
173
+ log: C({}, r, {
174
+ value: J
175
175
  }),
176
- info: R({}, r, {
177
- value: ue
176
+ info: C({}, r, {
177
+ value: ie
178
178
  }),
179
- warn: R({}, r, {
179
+ warn: C({}, r, {
180
180
  value: ee
181
181
  }),
182
- error: R({}, r, {
183
- value: se
182
+ error: C({}, r, {
183
+ value: le
184
184
  }),
185
- group: R({}, r, {
185
+ group: C({}, r, {
186
186
  value: G
187
187
  }),
188
- groupCollapsed: R({}, r, {
189
- value: D
188
+ groupCollapsed: C({}, r, {
189
+ value: M
190
190
  }),
191
- groupEnd: R({}, r, {
191
+ groupEnd: C({}, r, {
192
192
  value: x
193
193
  })
194
194
  });
195
195
  }
196
- B < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
196
+ F < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
197
197
  }
198
198
  }
199
- var M = _.ReactCurrentDispatcher, pe;
199
+ var z = w.ReactCurrentDispatcher, pe;
200
200
  function ve(r, d, g) {
201
201
  {
202
202
  if (pe === void 0)
203
203
  try {
204
204
  throw Error();
205
205
  } catch (Y) {
206
- var S = Y.stack.trim().match(/\n( *(at )?)/);
207
- pe = S && S[1] || "";
206
+ var T = Y.stack.trim().match(/\n( *(at )?)/);
207
+ pe = T && T[1] || "";
208
208
  }
209
209
  return `
210
210
  ` + pe + r;
@@ -223,12 +223,12 @@ function An() {
223
223
  if (g !== void 0)
224
224
  return g;
225
225
  }
226
- var S;
226
+ var T;
227
227
  Ie = !0;
228
228
  var Y = Error.prepareStackTrace;
229
229
  Error.prepareStackTrace = void 0;
230
230
  var e;
231
- e = M.current, M.current = null, I();
231
+ e = z.current, z.current = null, P();
232
232
  try {
233
233
  if (d) {
234
234
  var f = function() {
@@ -241,47 +241,47 @@ function An() {
241
241
  }), typeof Reflect == "object" && Reflect.construct) {
242
242
  try {
243
243
  Reflect.construct(f, []);
244
- } catch (q) {
245
- S = q;
244
+ } catch (X) {
245
+ T = X;
246
246
  }
247
247
  Reflect.construct(r, [], f);
248
248
  } else {
249
249
  try {
250
250
  f.call();
251
- } catch (q) {
252
- S = q;
251
+ } catch (X) {
252
+ T = X;
253
253
  }
254
254
  r.call(f.prototype);
255
255
  }
256
256
  } else {
257
257
  try {
258
258
  throw Error();
259
- } catch (q) {
260
- S = q;
259
+ } catch (X) {
260
+ T = X;
261
261
  }
262
262
  r();
263
263
  }
264
- } catch (q) {
265
- if (q && S && typeof q.stack == "string") {
266
- for (var i = q.stack.split(`
267
- `), A = S.stack.split(`
268
- `), j = i.length - 1, L = A.length - 1; j >= 1 && L >= 0 && i[j] !== A[L]; )
269
- L--;
270
- for (; j >= 1 && L >= 0; j--, L--)
271
- if (i[j] !== A[L]) {
272
- if (j !== 1 || L !== 1)
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]; )
269
+ I--;
270
+ for (; j >= 1 && I >= 0; j--, I--)
271
+ if (i[j] !== R[I]) {
272
+ if (j !== 1 || I !== 1)
273
273
  do
274
- if (j--, L--, L < 0 || i[j] !== A[L]) {
275
- var ie = `
274
+ if (j--, I--, I < 0 || i[j] !== R[I]) {
275
+ var ce = `
276
276
  ` + i[j].replace(" at new ", " at ");
277
- return r.displayName && ie.includes("<anonymous>") && (ie = ie.replace("<anonymous>", r.displayName)), typeof r == "function" && we.set(r, ie), ie;
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 && L >= 0);
279
+ while (j >= 1 && I >= 0);
280
280
  break;
281
281
  }
282
282
  }
283
283
  } finally {
284
- Ie = !1, M.current = e, ce(), Error.prepareStackTrace = Y;
284
+ Ie = !1, z.current = e, te(), Error.prepareStackTrace = Y;
285
285
  }
286
286
  var ge = r ? r.displayName || r.name : "", de = ge ? ve(ge) : "";
287
287
  return typeof r == "function" && we.set(r, de), de;
@@ -293,7 +293,7 @@ function An() {
293
293
  var d = r.prototype;
294
294
  return !!(d && d.isReactComponent);
295
295
  }
296
- function ae(r, d, g) {
296
+ function oe(r, d, g) {
297
297
  if (r == null)
298
298
  return "";
299
299
  if (typeof r == "function")
@@ -310,27 +310,27 @@ function An() {
310
310
  switch (r.$$typeof) {
311
311
  case p:
312
312
  return Xe(r.render);
313
- case T:
314
- return ae(r.type, d, g);
315
- case k: {
316
- var S = r, Y = S._payload, e = S._init;
313
+ case _:
314
+ return oe(r.type, d, g);
315
+ case N: {
316
+ var T = r, Y = T._payload, e = T._init;
317
317
  try {
318
- return ae(e(Y), d, g);
318
+ return oe(e(Y), d, g);
319
319
  } catch {
320
320
  }
321
321
  }
322
322
  }
323
323
  return "";
324
324
  }
325
- var me = Object.prototype.hasOwnProperty, $e = {}, Je = _.ReactDebugCurrentFrame;
325
+ var me = Object.prototype.hasOwnProperty, $e = {}, Je = w.ReactDebugCurrentFrame;
326
326
  function Ne(r) {
327
327
  if (r) {
328
- var d = r._owner, g = ae(r.type, r._source, d ? d.type : null);
328
+ var d = r._owner, g = oe(r.type, r._source, d ? d.type : null);
329
329
  Je.setExtraStackFrame(g);
330
330
  } else
331
331
  Je.setExtraStackFrame(null);
332
332
  }
333
- function ot(r, d, g, S, Y) {
333
+ function ot(r, d, g, T, Y) {
334
334
  {
335
335
  var e = Function.call.bind(me);
336
336
  for (var f in r)
@@ -338,14 +338,14 @@ function An() {
338
338
  var i = void 0;
339
339
  try {
340
340
  if (typeof r[f] != "function") {
341
- var A = Error((S || "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 A.name = "Invariant Violation", A;
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;
343
343
  }
344
- i = r[f](d, f, S, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
344
+ i = r[f](d, f, T, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
345
345
  } catch (j) {
346
346
  i = j;
347
347
  }
348
- i && !(i instanceof Error) && (Ne(Y), w("%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).", S || "React class", g, f, typeof i), Ne(null)), i instanceof Error && !(i.message in $e) && ($e[i.message] = !0, Ne(Y), w("Failed %s type: %s", g, i.message), Ne(null));
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));
349
349
  }
350
350
  }
351
351
  }
@@ -371,16 +371,16 @@ function An() {
371
371
  }
372
372
  function Ue(r) {
373
373
  if (Le(r))
374
- return w("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);
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 = _.ReactCurrentOwner, We = {
376
+ var Me = 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 le(r) {
383
+ function ue(r) {
384
384
  if (me.call(r, "ref")) {
385
385
  var d = Object.getOwnPropertyDescriptor(r, "ref").get;
386
386
  if (d && d.isReactWarning)
@@ -398,14 +398,14 @@ function An() {
398
398
  }
399
399
  function Ye(r, d) {
400
400
  if (typeof r.ref == "string" && Me.current && d && Me.current.stateNode !== d) {
401
- var g = N(Me.current.type);
402
- Ce[g] || (w('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', N(Me.current.type), r.ref), Ce[g] = !0);
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);
403
403
  }
404
404
  }
405
- function E(r, d) {
405
+ function S(r, d) {
406
406
  {
407
407
  var g = function() {
408
- He || (He = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
408
+ He || (He = !0, E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
409
409
  };
410
410
  g.isReactWarning = !0, Object.defineProperty(r, "key", {
411
411
  get: g,
@@ -413,10 +413,10 @@ function An() {
413
413
  });
414
414
  }
415
415
  }
416
- function oe(r, d) {
416
+ function se(r, d) {
417
417
  {
418
418
  var g = function() {
419
- Fe || (Fe = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
419
+ Fe || (Fe = !0, E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
420
420
  };
421
421
  g.isReactWarning = !0, Object.defineProperty(r, "ref", {
422
422
  get: g,
@@ -424,7 +424,7 @@ function An() {
424
424
  });
425
425
  }
426
426
  }
427
- var Z = function(r, d, g, S, Y, e, f) {
427
+ var Z = function(r, d, g, T, Y, e, f) {
428
428
  var i = {
429
429
  // This tag allows us to uniquely identify this as a React Element
430
430
  $$typeof: t,
@@ -445,7 +445,7 @@ function An() {
445
445
  configurable: !1,
446
446
  enumerable: !1,
447
447
  writable: !1,
448
- value: S
448
+ value: T
449
449
  }), Object.defineProperty(i, "_source", {
450
450
  configurable: !1,
451
451
  enumerable: !1,
@@ -453,10 +453,10 @@ function An() {
453
453
  value: Y
454
454
  }), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
455
455
  };
456
- function Ee(r, d, g, S, Y) {
456
+ function Ee(r, d, g, T, Y) {
457
457
  {
458
- var e, f = {}, i = null, A = null;
459
- g !== void 0 && (Ue(g), i = "" + g), ze(d) && (Ue(d.key), i = "" + d.key), le(d) && (A = d.ref, Ye(d, Y));
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
460
  for (e in d)
461
461
  me.call(d, e) && !We.hasOwnProperty(e) && (f[e] = d[e]);
462
462
  if (r && r.defaultProps) {
@@ -464,17 +464,17 @@ function An() {
464
464
  for (e in j)
465
465
  f[e] === void 0 && (f[e] = j[e]);
466
466
  }
467
- if (i || A) {
468
- var L = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
469
- i && E(f, L), A && oe(f, L);
467
+ if (i || R) {
468
+ var I = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
469
+ i && S(f, I), R && se(f, I);
470
470
  }
471
- return Z(r, i, A, Y, S, Me.current, f);
471
+ return Z(r, i, R, Y, T, Me.current, f);
472
472
  }
473
473
  }
474
- var he = _.ReactCurrentOwner, ne = _.ReactDebugCurrentFrame;
474
+ var he = w.ReactCurrentOwner, ne = w.ReactDebugCurrentFrame;
475
475
  function be(r) {
476
476
  if (r) {
477
- var d = r._owner, g = ae(r.type, r._source, d ? d.type : null);
477
+ var d = r._owner, g = oe(r.type, r._source, d ? d.type : null);
478
478
  ne.setExtraStackFrame(g);
479
479
  } else
480
480
  ne.setExtraStackFrame(null);
@@ -487,7 +487,7 @@ function An() {
487
487
  function tt() {
488
488
  {
489
489
  if (he.current) {
490
- var r = N(he.current.type);
490
+ var r = k(he.current.type);
491
491
  if (r)
492
492
  return `
493
493
 
@@ -529,8 +529,8 @@ Check the top-level render call using <` + g + ">.");
529
529
  if (it[g])
530
530
  return;
531
531
  it[g] = !0;
532
- var S = "";
533
- r && r._owner && r._owner !== he.current && (S = " It was passed a child from " + N(r._owner.type) + "."), be(r), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, S), be(null);
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);
534
534
  }
535
535
  }
536
536
  function ct(r, d) {
@@ -539,13 +539,13 @@ Check the top-level render call using <` + g + ">.");
539
539
  return;
540
540
  if (Se(r))
541
541
  for (var g = 0; g < r.length; g++) {
542
- var S = r[g];
543
- et(S) && lt(S, d);
542
+ var T = r[g];
543
+ et(T) && lt(T, d);
544
544
  }
545
545
  else if (et(r))
546
546
  r._store && (r._store.validated = !0);
547
547
  else if (r) {
548
- var Y = W(r);
548
+ var Y = U(r);
549
549
  if (typeof Y == "function" && Y !== r.entries)
550
550
  for (var e = Y.call(r), f; !(f = e.next()).done; )
551
551
  et(f.value) && lt(f.value, d);
@@ -562,68 +562,68 @@ Check the top-level render call using <` + g + ">.");
562
562
  g = d.propTypes;
563
563
  else if (typeof d == "object" && (d.$$typeof === p || // Note: Memo only checks outer props here.
564
564
  // Inner props are checked in the reconciler.
565
- d.$$typeof === T))
565
+ d.$$typeof === _))
566
566
  g = d.propTypes;
567
567
  else
568
568
  return;
569
569
  if (g) {
570
- var S = N(d);
571
- ot(g, r.props, "prop", S, r);
570
+ var T = k(d);
571
+ ot(g, r.props, "prop", T, r);
572
572
  } else if (d.PropTypes !== void 0 && !st) {
573
573
  st = !0;
574
- var Y = N(d);
575
- w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Y || "Unknown");
574
+ var Y = k(d);
575
+ E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Y || "Unknown");
576
576
  }
577
- typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
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
  }
579
579
  }
580
580
  function Ve(r) {
581
581
  {
582
582
  for (var d = Object.keys(r.props), g = 0; g < d.length; g++) {
583
- var S = d[g];
584
- if (S !== "children" && S !== "key") {
585
- be(r), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), be(null);
583
+ var T = d[g];
584
+ if (T !== "children" && T !== "key") {
585
+ be(r), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", T), be(null);
586
586
  break;
587
587
  }
588
588
  }
589
- r.ref !== null && (be(r), w("Invalid attribute `ref` supplied to `React.Fragment`."), be(null));
589
+ r.ref !== null && (be(r), E("Invalid attribute `ref` supplied to `React.Fragment`."), be(null));
590
590
  }
591
591
  }
592
592
  var nt = {};
593
- function ut(r, d, g, S, Y, e) {
593
+ function ut(r, d, g, T, Y, e) {
594
594
  {
595
595
  var f = V(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 A = vt(Y);
600
- A ? i += A : i += tt();
599
+ var R = vt(Y);
600
+ R ? i += R : i += tt();
601
601
  var j;
602
- r === null ? j = "null" : Se(r) ? j = "array" : r !== void 0 && r.$$typeof === t ? (j = "<" + (N(r.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : j = typeof r, w("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);
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);
603
603
  }
604
- var L = Ee(r, d, g, Y, e);
605
- if (L == null)
606
- return L;
604
+ var I = Ee(r, d, g, Y, e);
605
+ if (I == null)
606
+ return I;
607
607
  if (f) {
608
- var ie = d.children;
609
- if (ie !== void 0)
610
- if (S)
611
- if (Se(ie)) {
612
- for (var ge = 0; ge < ie.length; ge++)
613
- ct(ie[ge], r);
614
- Object.freeze && Object.freeze(ie);
608
+ var ce = d.children;
609
+ if (ce !== void 0)
610
+ if (T)
611
+ if (Se(ce)) {
612
+ for (var ge = 0; ge < ce.length; ge++)
613
+ ct(ce[ge], r);
614
+ Object.freeze && Object.freeze(ce);
615
615
  } else
616
- w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
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
- ct(ie, r);
618
+ ct(ce, r);
619
619
  }
620
620
  if (me.call(d, "key")) {
621
- var de = N(r), q = Object.keys(d).filter(function(xn) {
621
+ var de = k(r), X = Object.keys(d).filter(function(xn) {
622
622
  return xn !== "key";
623
- }), rt = q.length > 0 ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}";
623
+ }), rt = X.length > 0 ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}";
624
624
  if (!nt[de + rt]) {
625
- var xt = q.length > 0 ? "{" + q.join(": ..., ") + ": ...}" : "{}";
626
- w(`A props object containing a "key" prop is being spread into JSX:
625
+ var xt = X.length > 0 ? "{" + X.join(": ..., ") + ": ...}" : "{}";
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:
@@ -631,7 +631,7 @@ React keys must be passed directly to JSX without using spread:
631
631
  <%s key={someKey} {...props} />`, rt, de, xt, de), nt[de + rt] = !0;
632
632
  }
633
633
  }
634
- return r === s ? Ve(L) : It(L), L;
634
+ return r === s ? Ve(I) : It(I), I;
635
635
  }
636
636
  }
637
637
  function yt(r, d, g) {
@@ -655,16 +655,16 @@ function Ln(n) {
655
655
  scheme: a = "primary",
656
656
  size: s = "md",
657
657
  leftIcon: l,
658
- rightIcon: c,
658
+ rightIcon: u,
659
659
  className: h = "",
660
- children: u,
660
+ children: c,
661
661
  ...p
662
662
  } = n, y = { md: 12, lg: 14 }[s];
663
663
  return {
664
664
  className: `arkyn_badge ${t} ${a} ${s} ${h}`.trim(),
665
- children: u,
665
+ children: c,
666
666
  leftIcon: kt(y, l),
667
- rightIcon: kt(y, c),
667
+ rightIcon: kt(y, u),
668
668
  ...p
669
669
  };
670
670
  }
@@ -694,31 +694,31 @@ function On(n) {
694
694
  scheme: a = "primary",
695
695
  variant: s = "solid",
696
696
  loadingText: l,
697
- size: c = "md",
697
+ size: u = "md",
698
698
  leftIcon: h,
699
- rightIcon: u,
699
+ rightIcon: c,
700
700
  disabled: p,
701
701
  className: o = "",
702
702
  children: y,
703
- ...T
704
- } = n, b = { xs: 12, sm: 16, md: 20, lg: 24 }[c];
703
+ ..._
704
+ } = n, b = { xs: 12, sm: 16, md: 20, lg: 24 }[u];
705
705
  return {
706
- className: `arkyn_button loading_text_${!!l} ${s} ${a} ${c} loading_${t} ${o}`.trim(),
706
+ className: `arkyn_button loading_text_${!!l} ${s} ${a} ${u} loading_${t} ${o}`.trim(),
707
707
  loadingText: l,
708
708
  children: y,
709
709
  iconSize: b,
710
710
  disabled: p || t,
711
711
  leftIcon: kt(b, h),
712
- rightIcon: kt(b, u),
713
- ...T
712
+ rightIcon: kt(b, c),
713
+ ..._
714
714
  };
715
715
  }
716
716
  function Zr(n) {
717
- const { leftIcon: t, rightIcon: a, iconSize: s, children: l, loadingText: c, ...h } = On(n);
717
+ const { leftIcon: t, rightIcon: a, iconSize: s, children: l, loadingText: u, ...h } = On(n);
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
- c && c
721
+ u && u
722
722
  ] }),
723
723
  /* @__PURE__ */ m.jsxs("div", { className: "content", children: [
724
724
  t,
@@ -729,9 +729,9 @@ function Zr(n) {
729
729
  }
730
730
  const cn = Ct({});
731
731
  function Qr({ children: n, ...t }) {
732
- var u, p;
733
- const a = sn(), s = at(null), l = ((u = s.current) == null ? void 0 : u.name) || "", c = ((p = a == null ? void 0 : a.fieldErrors) == null ? void 0 : p[l]) || null, h = wn();
734
- return /* @__PURE__ */ m.jsx(cn.Provider, { value: { error: c, id: h, inputRef: s }, children: /* @__PURE__ */ m.jsx("section", { className: "arkyn_form_controller", ...t, children: n }) });
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 }) });
735
735
  }
736
736
  function Ke() {
737
737
  return gt(cn);
@@ -742,24 +742,24 @@ function ea(n) {
742
742
  className: a = "",
743
743
  size: s = "md",
744
744
  isError: l,
745
- defaultChecked: c = !1,
745
+ defaultChecked: u = !1,
746
746
  checked: h = null,
747
- onCheck: u,
747
+ onCheck: c,
748
748
  value: p,
749
749
  ...o
750
- } = n, { id: y, inputRef: T, error: k } = Ke(), b = l || !!k, [O, P] = De(c || !1), W = typeof h == "boolean" ? h : O, _ = `arkyn_checkbox ${s} ${b ? "error" : ""} ${W ? "checked" : ""} ${a}`;
751
- function w() {
752
- const C = O;
753
- P(!C), u && u(C ? "" : p || "checked");
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}`;
751
+ function E() {
752
+ const L = O;
753
+ A(!L), c && c(L ? "" : p || "checked");
754
754
  }
755
- return /* @__PURE__ */ m.jsxs("div", { id: y, className: _, onClick: w, ...o, children: [
755
+ return /* @__PURE__ */ m.jsxs("div", { id: y, className: w, onClick: E, ...o, children: [
756
756
  /* @__PURE__ */ m.jsx(
757
757
  "input",
758
758
  {
759
759
  type: "hidden",
760
760
  name: t,
761
- ref: T,
762
- value: W ? p || "checked" : ""
761
+ ref: _,
762
+ value: U ? p || "checked" : ""
763
763
  }
764
764
  ),
765
765
  /* @__PURE__ */ m.jsx(on, {})
@@ -792,11 +792,11 @@ function ra(n) {
792
792
  scheme: a = "primary",
793
793
  variant: s = "solid",
794
794
  size: l = "md",
795
- icon: c,
795
+ icon: u,
796
796
  disabled: h,
797
- className: u = "",
797
+ className: c = "",
798
798
  ...p
799
- } = n, o = `arkyn_icon_button ${s} ${a} ${l} loading_${t} ${u}`;
799
+ } = n, o = `arkyn_icon_button ${s} ${a} ${l} loading_${t} ${c}`;
800
800
  return /* @__PURE__ */ m.jsxs(
801
801
  "button",
802
802
  {
@@ -805,7 +805,7 @@ function ra(n) {
805
805
  ...p,
806
806
  children: [
807
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(c, { 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 }) })
809
809
  ]
810
810
  }
811
811
  );
@@ -823,8 +823,8 @@ function Bt(n) {
823
823
  }
824
824
  function un(n, t) {
825
825
  let a = "", s = 0;
826
- return Array.from(n).forEach((l, c) => {
827
- t[c + s].match(/[0-9]/) || (a += t[c + s], s++), a += l;
826
+ return Array.from(n).forEach((l, u) => {
827
+ t[u + s].match(/[0-9]/) || (a += t[u + s], s++), a += l;
828
828
  }), a;
829
829
  }
830
830
  function dn(n) {
@@ -839,112 +839,112 @@ function jn(n, t) {
839
839
  isLoading: a,
840
840
  isError: s,
841
841
  size: l = "md",
842
- className: c = "",
842
+ className: u = "",
843
843
  variant: h = "solid",
844
- prefix: u,
844
+ prefix: c,
845
845
  sufix: p,
846
846
  leftIcon: o,
847
847
  rightIcon: y,
848
- disabled: T,
849
- defaultValue: k,
848
+ disabled: _,
849
+ defaultValue: N,
850
850
  readOnly: b,
851
851
  onFocus: O,
852
- onBlur: P,
853
- title: W,
854
- style: _,
855
- onChange: w,
856
- ...C
852
+ onBlur: A,
853
+ title: U,
854
+ style: w,
855
+ onChange: E,
856
+ ...L
857
857
  } = n;
858
- function H(R) {
859
- let B = Bt(R);
860
- const K = dn(B);
861
- if (!(B.length > fn))
862
- return B = un(B, Ut[K]), B;
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;
863
863
  }
864
- const z = y ? "right" : "left", F = `arkyn_input ${u ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${T || b || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${c}`, N = { md: 20, lg: 20 }[l];
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];
865
865
  return {
866
866
  isLoading: a,
867
- className: F,
868
- prefix: Ge(u, N, "prefix"),
869
- sufix: Ge(p, N, "sufix"),
867
+ className: $,
868
+ prefix: Ge(c, k, "prefix"),
869
+ sufix: Ge(p, k, "sufix"),
870
870
  LeftIcon: o,
871
871
  RightIcon: y,
872
- defaultValue: H(k || ""),
873
- disabled: T,
872
+ defaultValue: H(N || ""),
873
+ disabled: _,
874
874
  readOnly: b,
875
875
  onFocus: O,
876
- onBlur: P,
877
- title: W,
878
- style: _,
879
- onChange: w,
880
- loadingPosition: z,
881
- iconSize: N,
882
- Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: N, strokeWidth: 2.5 }),
883
- ...C
876
+ onBlur: A,
877
+ title: U,
878
+ style: w,
879
+ onChange: E,
880
+ loadingPosition: D,
881
+ iconSize: k,
882
+ Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: k, strokeWidth: 2.5 }),
883
+ ...L
884
884
  };
885
885
  }
886
886
  function Dn(n) {
887
- const [t, a] = De(!1), s = at(null), { inputRef: l, id: c, error: h } = Ke(), u = l || s, p = n.isError || !!h, {
887
+ const [t, a] = De(!1), s = at(null), { inputRef: l, id: u, error: h } = Ke(), c = l || s, p = n.isError || !!h, {
888
888
  disabled: o,
889
889
  title: y,
890
- style: T,
891
- className: k,
890
+ style: _,
891
+ className: N,
892
892
  prefix: b,
893
893
  sufix: O,
894
- iconSize: P,
895
- loadingPosition: W,
896
- isLoading: _,
897
- LeftIcon: w,
898
- readOnly: C,
894
+ iconSize: A,
895
+ loadingPosition: U,
896
+ isLoading: w,
897
+ LeftIcon: E,
898
+ readOnly: L,
899
899
  onFocus: H,
900
- onBlur: z,
901
- RightIcon: J,
902
- Spinner: X,
900
+ onBlur: D,
901
+ RightIcon: q,
902
+ Spinner: K,
903
903
  onChange: Q,
904
904
  value: re,
905
905
  defaultValue: V,
906
- ...F
907
- } = jn({ ...n, id: c, isError: p }, t), [te, N] = De(V), R = w && !_, B = J && !_, K = W === "left" && _, ue = W === "right" && _;
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
908
  function ee() {
909
- o || !(u != null && u.current) || (a(!0), u.current.focus());
909
+ o || !(c != null && c.current) || (a(!0), c.current.focus());
910
910
  }
911
- function se(x) {
912
- let U = Bt(x.target.value);
913
- const I = dn(U);
914
- U.length > fn || (U = un(U, Ut[I]), x.target.value = U, N(U), Q && Q(x));
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));
915
915
  }
916
916
  function G(x) {
917
917
  a(!0), H && H(x);
918
918
  }
919
- function D(x) {
920
- a(!1), z && z(x);
919
+ function M(x) {
920
+ a(!1), D && D(x);
921
921
  }
922
922
  return /* @__PURE__ */ m.jsxs(
923
923
  "section",
924
924
  {
925
925
  title: y,
926
- style: T,
926
+ style: _,
927
927
  onClick: ee,
928
- className: k,
928
+ className: N,
929
929
  children: [
930
930
  b,
931
- K && X,
932
- R && /* @__PURE__ */ m.jsx(w, { size: P, strokeWidth: 2.5 }),
931
+ J && K,
932
+ C && /* @__PURE__ */ m.jsx(E, { size: A, strokeWidth: 2.5 }),
933
933
  /* @__PURE__ */ m.jsx(
934
934
  "input",
935
935
  {
936
- disabled: o || _,
937
- readOnly: C,
938
- ref: u,
939
- value: re || te,
936
+ disabled: o || w,
937
+ readOnly: L,
938
+ ref: c,
939
+ value: re || ae,
940
940
  onFocus: G,
941
- onChange: se,
942
- onBlur: D,
943
- ...F
941
+ onChange: le,
942
+ onBlur: M,
943
+ ...$
944
944
  }
945
945
  ),
946
- B && /* @__PURE__ */ m.jsx(J, { size: P, strokeWidth: 2.5 }),
947
- ue && X,
946
+ F && /* @__PURE__ */ m.jsx(q, { size: A, strokeWidth: 2.5 }),
947
+ ie && K,
948
948
  O
949
949
  ]
950
950
  }
@@ -955,42 +955,42 @@ function Mn(n, t) {
955
955
  isLoading: a,
956
956
  isError: s,
957
957
  size: l = "md",
958
- className: c = "",
958
+ className: u = "",
959
959
  variant: h = "solid",
960
- prefix: u,
960
+ prefix: c,
961
961
  sufix: p,
962
962
  leftIcon: o,
963
963
  rightIcon: y,
964
- disabled: T,
965
- readOnly: k,
964
+ disabled: _,
965
+ readOnly: N,
966
966
  onFocus: b,
967
967
  onBlur: O,
968
- title: P,
969
- style: W,
970
- showCents: _ = !1,
971
- max: w = 1e9,
972
- onChange: C,
968
+ title: A,
969
+ style: U,
970
+ showCents: w = !1,
971
+ max: E = 1e9,
972
+ onChange: L,
973
973
  ...H
974
- } = n, z = y ? "right" : "left", F = `arkyn_input ${u ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${T || k || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${c}`, N = { md: 20, lg: 20 }[l];
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];
975
975
  return {
976
976
  isLoading: a,
977
- className: F,
978
- prefix: Ge(u, N, "prefix"),
979
- sufix: Ge(p, N, "sufix"),
977
+ className: $,
978
+ prefix: Ge(c, k, "prefix"),
979
+ sufix: Ge(p, k, "sufix"),
980
980
  LeftIcon: o,
981
981
  RightIcon: y,
982
- disabled: T,
983
- readOnly: k,
982
+ disabled: _,
983
+ readOnly: N,
984
984
  onFocus: b,
985
985
  onBlur: O,
986
- title: P,
987
- style: W,
988
- max: w,
989
- onChange: C,
990
- showCents: _,
991
- loadingPosition: z,
992
- iconSize: N,
993
- Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: N, strokeWidth: 2.5 }),
986
+ title: A,
987
+ style: U,
988
+ max: E,
989
+ onChange: L,
990
+ showCents: w,
991
+ loadingPosition: D,
992
+ iconSize: k,
993
+ Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: k, strokeWidth: 2.5 }),
994
994
  ...H
995
995
  };
996
996
  }
@@ -1005,85 +1005,86 @@ function Fn(n, t) {
1005
1005
  return t ? a : a.replace("R$", "").trim();
1006
1006
  }
1007
1007
  function Bn(n) {
1008
- const { currencyValue: t, event: a, max: s, setCurrencyValue: l } = n, { key: c, keyCode: h } = a;
1009
- if (t === 0 && !zn.test(c) || t !== 0 && !$n.test(c) && h !== Xt)
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)
1010
1010
  return;
1011
- const u = t.toString();
1011
+ const c = t.toString();
1012
1012
  let p;
1013
1013
  if (h !== Xt) {
1014
- const o = t === 0 ? c : `${u}${c}`;
1014
+ const o = t === 0 ? u : `${c}${u}`;
1015
1015
  p = Number.parseInt(o, 10);
1016
1016
  } else {
1017
- const o = u.slice(0, -1);
1017
+ const o = c.slice(0, -1);
1018
1018
  p = o === "" ? 0 : Number.parseInt(o, 10);
1019
1019
  }
1020
1020
  p > Number(s) || l(p);
1021
1021
  }
1022
1022
  function Un(n) {
1023
- const [t, a] = De(!1), [s, l] = De(n.defaultValue || 0), c = at(null), { inputRef: h, id: u, error: p } = Ke(), o = h || c, y = n.isError || !!p, {
1024
- disabled: T,
1025
- title: k,
1026
- style: b,
1027
- className: O,
1028
- prefix: P,
1029
- sufix: W,
1030
- iconSize: _,
1031
- loadingPosition: w,
1032
- isLoading: C,
1033
- LeftIcon: H,
1034
- readOnly: z,
1035
- onFocus: J,
1036
- onBlur: X,
1037
- RightIcon: Q,
1038
- Spinner: re,
1039
- value: V,
1040
- max: F,
1041
- onKeyDown: te,
1042
- onChange: N,
1043
- showCents: R,
1044
- ...B
1045
- } = Mn({ ...n, id: u, isError: y }, t), K = H && !C, ue = Q && !C, ee = w === "left" && C, se = w === "right" && C;
1046
- function G() {
1047
- T || !(o != null && o.current) || (a(!0), o.current.focus());
1023
+ const [t, a] = De(!1), s = at(null), { inputRef: l, id: u, error: h } = Ke(), c = l || s, p = n.isError || !!h, {
1024
+ disabled: o,
1025
+ title: y,
1026
+ style: _,
1027
+ className: N,
1028
+ prefix: b,
1029
+ sufix: O,
1030
+ iconSize: A,
1031
+ loadingPosition: U,
1032
+ isLoading: w,
1033
+ LeftIcon: E,
1034
+ readOnly: L,
1035
+ onFocus: H,
1036
+ onBlur: D,
1037
+ RightIcon: q,
1038
+ Spinner: K,
1039
+ value: Q,
1040
+ max: re,
1041
+ onKeyDown: V,
1042
+ onChange: $,
1043
+ showCents: ae,
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() {
1048
+ o || !(c != null && c.current) || (a(!0), c.current.focus());
1048
1049
  }
1049
- function D(I) {
1050
- Bn({ currencyValue: s, event: I, max: F, setCurrencyValue: l }), N && N(s), te && te(I);
1050
+ function x(te) {
1051
+ Bn({ currencyValue: F, event: te, max: re, setCurrencyValue: J }), $ && $(F / 100), V && V(te);
1051
1052
  }
1052
- function x(I) {
1053
- a(!0), J && J(I);
1053
+ function W(te) {
1054
+ a(!0), H && H(te);
1054
1055
  }
1055
- function U(I) {
1056
- a(!1), X && X(I);
1056
+ function P(te) {
1057
+ a(!1), D && D(te);
1057
1058
  }
1058
1059
  return /* @__PURE__ */ m.jsxs(
1059
1060
  "section",
1060
1061
  {
1061
- title: k,
1062
- style: b,
1063
- onClick: G,
1064
- className: O,
1062
+ title: y,
1063
+ style: _,
1064
+ onClick: M,
1065
+ className: N,
1065
1066
  children: [
1066
- P,
1067
- ee && re,
1068
- K && /* @__PURE__ */ m.jsx(H, { size: _, strokeWidth: 2.5 }),
1067
+ b,
1068
+ le && K,
1069
+ ie && /* @__PURE__ */ m.jsx(E, { size: A, strokeWidth: 2.5 }),
1069
1070
  /* @__PURE__ */ m.jsx(
1070
1071
  "input",
1071
1072
  {
1072
- value: Fn(V || s, R),
1073
- onKeyDown: D,
1074
- disabled: T || C,
1075
- readOnly: z,
1076
- ref: o,
1077
- onFocus: x,
1078
- onBlur: U,
1073
+ value: Fn(Q || F, ae),
1074
+ onKeyDown: x,
1075
+ disabled: o || w,
1076
+ readOnly: L,
1077
+ ref: c,
1078
+ onFocus: W,
1079
+ onBlur: P,
1079
1080
  onChange: () => {
1080
1081
  },
1081
- ...B
1082
+ ...C
1082
1083
  }
1083
1084
  ),
1084
- se && re,
1085
- ue && /* @__PURE__ */ m.jsx(Q, { size: _, strokeWidth: 2.5 }),
1086
- W
1085
+ G && K,
1086
+ ee && /* @__PURE__ */ m.jsx(q, { size: A, strokeWidth: 2.5 }),
1087
+ O
1087
1088
  ]
1088
1089
  }
1089
1090
  );
@@ -1093,96 +1094,96 @@ function Wn(n, t) {
1093
1094
  isLoading: a,
1094
1095
  isError: s,
1095
1096
  size: l = "md",
1096
- className: c = "",
1097
+ className: u = "",
1097
1098
  variant: h = "solid",
1098
- prefix: u,
1099
+ prefix: c,
1099
1100
  sufix: p,
1100
1101
  leftIcon: o,
1101
1102
  rightIcon: y,
1102
- disabled: T,
1103
- readOnly: k,
1103
+ disabled: _,
1104
+ readOnly: N,
1104
1105
  onFocus: b,
1105
1106
  onBlur: O,
1106
- title: P,
1107
- style: W,
1108
- onChange: _,
1109
- showMask: w = !1,
1110
- type: C,
1107
+ title: A,
1108
+ style: U,
1109
+ onChange: w,
1110
+ showMask: E = !1,
1111
+ type: L,
1111
1112
  ...H
1112
- } = n, z = y ? "right" : "left", F = `arkyn_input ${u ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${T || k || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${c}`, N = { md: 20, lg: 20 }[l];
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];
1113
1114
  return {
1114
1115
  isLoading: a,
1115
- className: F,
1116
- prefix: Ge(u, N, "prefix"),
1117
- sufix: Ge(p, N, "sufix"),
1116
+ className: $,
1117
+ prefix: Ge(c, k, "prefix"),
1118
+ sufix: Ge(p, k, "sufix"),
1118
1119
  LeftIcon: o,
1119
1120
  RightIcon: y,
1120
- disabled: T,
1121
- readOnly: k,
1121
+ disabled: _,
1122
+ readOnly: N,
1122
1123
  onFocus: b,
1123
1124
  onBlur: O,
1124
- title: P,
1125
- style: W,
1126
- onChange: _,
1127
- loadingPosition: z,
1128
- iconSize: N,
1129
- showMask: w,
1130
- Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: N, strokeWidth: 2.5 }),
1125
+ title: A,
1126
+ style: U,
1127
+ onChange: w,
1128
+ loadingPosition: D,
1129
+ iconSize: k,
1130
+ showMask: E,
1131
+ Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: k, strokeWidth: 2.5 }),
1131
1132
  ...H
1132
1133
  };
1133
1134
  }
1134
1135
  const Hn = En((n, t) => /* @__PURE__ */ m.jsx("input", { ref: t, ...n }));
1135
1136
  function Yn(n) {
1136
- const [t, a] = De(!1), s = at(null), { inputRef: l, id: c, error: h } = Ke(), u = l || s, p = n.isError || !!h, {
1137
+ const [t, a] = De(!1), s = at(null), { inputRef: l, id: u, error: h } = Ke(), c = l || s, p = n.isError || !!h, {
1137
1138
  disabled: o,
1138
1139
  title: y,
1139
- style: T,
1140
- className: k,
1140
+ style: _,
1141
+ className: N,
1141
1142
  prefix: b,
1142
1143
  sufix: O,
1143
- iconSize: P,
1144
- loadingPosition: W,
1145
- isLoading: _,
1146
- LeftIcon: w,
1147
- readOnly: C,
1144
+ iconSize: A,
1145
+ loadingPosition: U,
1146
+ isLoading: w,
1147
+ LeftIcon: E,
1148
+ readOnly: L,
1148
1149
  onFocus: H,
1149
- onBlur: z,
1150
- RightIcon: J,
1151
- Spinner: X,
1150
+ onBlur: D,
1151
+ RightIcon: q,
1152
+ Spinner: K,
1152
1153
  ...Q
1153
- } = Wn({ ...n, id: c, isError: p }, t), re = w && !_, V = J && !_, F = W === "left" && _, te = W === "right" && _;
1154
- function N() {
1155
- o || !(u != null && u.current) || (a(!0), u.current.focus());
1154
+ } = Wn({ ...n, id: u, isError: p }, t), re = E && !w, V = q && !w, $ = U === "left" && w, ae = U === "right" && w;
1155
+ function k() {
1156
+ o || !(c != null && c.current) || (a(!0), c.current.focus());
1156
1157
  }
1157
- function R(K) {
1158
- a(!0), H && H(K);
1158
+ function C(J) {
1159
+ a(!0), H && H(J);
1159
1160
  }
1160
- function B(K) {
1161
- a(!1), z && z(K);
1161
+ function F(J) {
1162
+ a(!1), D && D(J);
1162
1163
  }
1163
1164
  return /* @__PURE__ */ m.jsxs(
1164
1165
  "section",
1165
1166
  {
1166
1167
  title: y,
1167
- style: T,
1168
- onClick: N,
1169
- className: k,
1168
+ style: _,
1169
+ onClick: k,
1170
+ className: N,
1170
1171
  children: [
1171
1172
  b,
1172
- F && X,
1173
- re && /* @__PURE__ */ m.jsx(w, { size: P, strokeWidth: 2.5 }),
1173
+ $ && K,
1174
+ re && /* @__PURE__ */ m.jsx(E, { size: A, strokeWidth: 2.5 }),
1174
1175
  /* @__PURE__ */ m.jsx(
1175
1176
  kn,
1176
1177
  {
1177
1178
  component: Hn,
1178
- ref: u,
1179
- onFocus: R,
1180
- onBlur: B,
1179
+ ref: c,
1180
+ onFocus: C,
1181
+ onBlur: F,
1181
1182
  ...Q
1182
1183
  }
1183
1184
  ),
1184
- V && /* @__PURE__ */ m.jsx(J, { size: P, strokeWidth: 2.5 }),
1185
- te && X,
1185
+ V && /* @__PURE__ */ m.jsx(q, { size: A, strokeWidth: 2.5 }),
1186
+ ae && K,
1186
1187
  O
1187
1188
  ]
1188
1189
  }
@@ -1193,93 +1194,95 @@ function Vn(n, t) {
1193
1194
  isLoading: a,
1194
1195
  isError: s,
1195
1196
  size: l = "md",
1196
- className: c = "",
1197
+ className: u = "",
1197
1198
  variant: h = "solid",
1198
- prefix: u,
1199
+ prefix: c,
1199
1200
  sufix: p,
1200
1201
  leftIcon: o,
1201
1202
  rightIcon: y,
1202
- disabled: T,
1203
- readOnly: k,
1203
+ disabled: _,
1204
+ readOnly: N,
1204
1205
  onFocus: b,
1205
1206
  onBlur: O,
1206
- title: P,
1207
- style: W,
1208
- onChange: _,
1209
- ...w
1210
- } = n, C = y ? "right" : "left", re = `arkyn_input ${u ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${T || k || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${c}`, F = { md: 20, lg: 20 }[l];
1207
+ title: A,
1208
+ style: U,
1209
+ onChange: w,
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
1212
  return {
1212
1213
  isLoading: a,
1213
1214
  className: re,
1214
- prefix: Ge(u, F, "prefix"),
1215
- sufix: Ge(p, F, "sufix"),
1215
+ prefix: Ge(c, $, "prefix"),
1216
+ sufix: Ge(p, $, "sufix"),
1216
1217
  LeftIcon: o,
1217
1218
  RightIcon: y,
1218
- disabled: T,
1219
- readOnly: k,
1219
+ disabled: _,
1220
+ readOnly: N,
1220
1221
  onFocus: b,
1221
1222
  onBlur: O,
1222
- title: P,
1223
- style: W,
1224
- onChange: _,
1225
- loadingPosition: C,
1226
- iconSize: F,
1227
- Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: F, strokeWidth: 2.5 }),
1228
- ...w
1223
+ title: A,
1224
+ style: U,
1225
+ onChange: w,
1226
+ loadingPosition: L,
1227
+ iconSize: $,
1228
+ Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: $, strokeWidth: 2.5 }),
1229
+ ...E
1229
1230
  };
1230
1231
  }
1231
1232
  function Gn(n) {
1232
- const [t, a] = De(!1), s = at(null), { inputRef: l, id: c, error: h } = Ke(), u = l || s, p = n.isError || !!h, {
1233
+ const [t, a] = De(!1), s = at(null), { inputRef: l, id: u, error: h } = Ke(), c = l || s, p = n.isError || !!h, {
1233
1234
  disabled: o,
1234
1235
  title: y,
1235
- style: T,
1236
- className: k,
1236
+ style: _,
1237
+ className: N,
1237
1238
  prefix: b,
1238
1239
  sufix: O,
1239
- iconSize: P,
1240
- loadingPosition: W,
1241
- isLoading: _,
1242
- LeftIcon: w,
1243
- readOnly: C,
1240
+ iconSize: A,
1241
+ loadingPosition: U,
1242
+ isLoading: w,
1243
+ LeftIcon: E,
1244
+ readOnly: L,
1244
1245
  onFocus: H,
1245
- onBlur: z,
1246
- RightIcon: J,
1247
- Spinner: X,
1248
- ...Q
1249
- } = Vn({ ...n, id: c, isError: p }, t), re = w && !_, V = J && !_, F = W === "left" && _, te = W === "right" && _;
1250
- function N() {
1251
- o || !(u != null && u.current) || (a(!0), u.current.focus());
1246
+ onBlur: D,
1247
+ RightIcon: q,
1248
+ type: K,
1249
+ Spinner: Q,
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() {
1253
+ o || !(c != null && c.current) || (a(!0), c.current.focus());
1252
1254
  }
1253
- function R(K) {
1254
- a(!0), H && H(K);
1255
+ function F(ie) {
1256
+ a(!0), H && H(ie);
1255
1257
  }
1256
- function B(K) {
1257
- a(!1), z && z(K);
1258
+ function J(ie) {
1259
+ a(!1), D && D(ie);
1258
1260
  }
1259
- return /* @__PURE__ */ m.jsxs(
1261
+ return K === "hidden" ? /* @__PURE__ */ m.jsx("input", { type: "hidden", ref: c, ...re }) : /* @__PURE__ */ m.jsxs(
1260
1262
  "section",
1261
1263
  {
1262
1264
  title: y,
1263
- style: T,
1264
- onClick: N,
1265
- className: k,
1265
+ style: _,
1266
+ onClick: C,
1267
+ className: N,
1266
1268
  children: [
1267
1269
  b,
1268
- F && X,
1269
- re && /* @__PURE__ */ m.jsx(w, { size: P, strokeWidth: 2.5 }),
1270
+ ae && Q,
1271
+ V && /* @__PURE__ */ m.jsx(E, { size: A, strokeWidth: 2.5 }),
1270
1272
  /* @__PURE__ */ m.jsx(
1271
1273
  "input",
1272
1274
  {
1273
- disabled: o || _,
1274
- readOnly: C,
1275
- ref: u,
1276
- onFocus: R,
1277
- onBlur: B,
1278
- ...Q
1275
+ disabled: o || w,
1276
+ readOnly: L,
1277
+ ref: c,
1278
+ onFocus: F,
1279
+ onBlur: J,
1280
+ type: K,
1281
+ ...re
1279
1282
  }
1280
1283
  ),
1281
- V && /* @__PURE__ */ m.jsx(J, { size: P, strokeWidth: 2.5 }),
1282
- te && X,
1284
+ $ && /* @__PURE__ */ m.jsx(q, { size: A, strokeWidth: 2.5 }),
1285
+ k && Q,
1283
1286
  O
1284
1287
  ]
1285
1288
  }
@@ -1301,71 +1304,71 @@ function Xn(n, t) {
1301
1304
  isLoading: a,
1302
1305
  isError: s,
1303
1306
  size: l = "md",
1304
- className: c = "",
1307
+ className: u = "",
1305
1308
  variant: h = "solid",
1306
- prefix: u,
1309
+ prefix: c,
1307
1310
  leftIcon: p,
1308
1311
  disabled: o,
1309
1312
  readOnly: y,
1310
- onFocus: T,
1311
- onBlur: k,
1313
+ onFocus: _,
1314
+ onBlur: N,
1312
1315
  title: b,
1313
1316
  style: O,
1314
- isSearchable: P = !1,
1315
- ...W
1316
- } = n, z = `arkyn_select ${u ? "hasPrefix" : ""} ${h} ${l} ${o || y || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${c}`, X = { md: 20, lg: 20 }[l];
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];
1317
1320
  return {
1318
1321
  isLoading: a,
1319
- className: z,
1320
- prefix: Kn(u, X, "prefix"),
1322
+ className: D,
1323
+ prefix: Kn(c, K, "prefix"),
1321
1324
  LeftIcon: p,
1322
1325
  disabled: o,
1323
1326
  readOnly: y,
1324
- onFocus: T,
1325
- onBlur: k,
1327
+ onFocus: _,
1328
+ onBlur: N,
1326
1329
  title: b,
1327
1330
  style: O,
1328
- isSearchable: P,
1329
- iconSize: X,
1330
- Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: X, strokeWidth: 2.5 }),
1331
- ...W
1331
+ isSearchable: A,
1332
+ iconSize: K,
1333
+ Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: K, strokeWidth: 2.5 }),
1334
+ ...U
1332
1335
  };
1333
1336
  }
1334
1337
  function oa(n) {
1335
- var ce;
1336
- const [t, a] = De(!1), { inputRef: s, id: l, error: c } = Ke(), h = at(null), u = s || h, p = n.isError || !!c, {
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, {
1337
1340
  disabled: o,
1338
1341
  title: y,
1339
- style: T,
1340
- className: k,
1342
+ style: _,
1343
+ className: N,
1341
1344
  prefix: b,
1342
1345
  iconSize: O,
1343
- isLoading: P,
1344
- LeftIcon: W,
1345
- value: _ = null,
1346
- defaultValue: w = "",
1347
- readOnly: C,
1346
+ isLoading: A,
1347
+ LeftIcon: U,
1348
+ value: w = null,
1349
+ defaultValue: E = "",
1350
+ readOnly: L,
1348
1351
  onFocus: H,
1349
- onBlur: z,
1350
- Spinner: J,
1351
- name: X,
1352
+ onBlur: D,
1353
+ Spinner: q,
1354
+ name: K,
1352
1355
  isSearchable: Q,
1353
1356
  placeholder: re,
1354
1357
  onSelect: V,
1355
- options: F,
1356
- optionMaxHeight: te,
1357
- ...N
1358
- } = Xn({ ...n, id: l, isError: p }, t), [R, B] = De(w), [K, ue] = De("");
1358
+ options: $,
1359
+ optionMaxHeight: ae,
1360
+ ...k
1361
+ } = Xn({ ...n, id: l, isError: p }, t), [C, F] = De(E), [J, ie] = De("");
1359
1362
  function ee() {
1360
- o || !(u != null && u.current) || (a(!0), u.current.focus());
1363
+ o || !(c != null && c.current) || (a(!0), c.current.focus());
1361
1364
  }
1362
- function se(M) {
1363
- a(!0), H && H(M);
1365
+ function le(z) {
1366
+ a(!0), H && H(z);
1364
1367
  }
1365
1368
  function G() {
1366
- a(!1), z && u.current && u.current.blur();
1369
+ a(!1), D && c.current && c.current.blur();
1367
1370
  }
1368
- const D = typeof _ == "string" ? _ : R, x = ((ce = F.find((M) => M.value === D)) == null ? void 0 : ce.label) || "", U = () => {
1371
+ const M = typeof w == "string" ? w : C, x = ((te = $.find((z) => z.value === M)) == null ? void 0 : te.label) || "", W = () => {
1369
1372
  if (Q) {
1370
1373
  if (!t && x)
1371
1374
  return !0;
@@ -1382,59 +1385,67 @@ function oa(n) {
1382
1385
  if (t && !x)
1383
1386
  return !1;
1384
1387
  }
1385
- }, I = F.filter((M) => Q ? M.label.toLowerCase().includes(K.toLowerCase()) : !0);
1388
+ }, P = $.filter((z) => Q ? z.label.toLowerCase().includes(J.toLowerCase()) : !0);
1386
1389
  return /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
1387
1390
  /* @__PURE__ */ m.jsxs(
1388
1391
  "section",
1389
1392
  {
1390
1393
  title: y,
1391
- style: T,
1394
+ style: _,
1392
1395
  onClick: ee,
1393
- className: `${k} placeholder_dark_${U()}`,
1396
+ className: `${N} placeholder_dark_${W()}`,
1394
1397
  children: [
1395
1398
  b,
1396
- W && /* @__PURE__ */ m.jsx(W, { size: O, strokeWidth: 2.5 }),
1399
+ U && /* @__PURE__ */ m.jsx(U, { size: O, strokeWidth: 2.5 }),
1397
1400
  /* @__PURE__ */ m.jsx(
1398
1401
  "input",
1399
1402
  {
1400
- disabled: o || P,
1403
+ disabled: o || A,
1401
1404
  readOnly: !Q,
1402
- value: K || "",
1405
+ value: J || "",
1403
1406
  placeholder: x || re,
1404
- ref: u,
1405
- onFocus: se,
1406
- onBlur: () => ue(""),
1407
- ...N,
1408
- onChange: (M) => ue(M.target.value)
1407
+ onFocus: le,
1408
+ onBlur: () => ie(""),
1409
+ ...k,
1410
+ onChange: (z) => ie(z.target.value)
1411
+ }
1412
+ ),
1413
+ /* @__PURE__ */ m.jsx(
1414
+ "input",
1415
+ {
1416
+ type: "hidden",
1417
+ ref: c,
1418
+ name: K,
1419
+ value: M || "",
1420
+ readOnly: !0
1409
1421
  }
1410
1422
  ),
1411
- /* @__PURE__ */ m.jsx("input", { type: "hidden", name: X, value: D || "", readOnly: !0 }),
1412
1423
  t && /* @__PURE__ */ m.jsxs(
1413
1424
  "ul",
1414
1425
  {
1415
1426
  className: "arkyn_select_content",
1416
- style: { overflow: "auto", maxHeight: te },
1427
+ style: { overflow: "auto", maxHeight: ae },
1417
1428
  children: [
1418
- I.map(({ label: M, value: pe }) => /* @__PURE__ */ m.jsxs(
1429
+ P.map(({ label: z, value: pe }) => /* @__PURE__ */ m.jsxs(
1419
1430
  "li",
1420
1431
  {
1421
- className: D === pe ? "active" : "",
1432
+ className: M === pe ? "active" : "",
1422
1433
  onClick: () => {
1423
- B(R !== pe ? pe : ""), V && V({ label: M, value: pe });
1434
+ F(C !== pe ? pe : ""), V && V({ label: z, value: pe });
1424
1435
  },
1425
1436
  children: [
1426
- M,
1437
+ z,
1427
1438
  " ",
1428
1439
  /* @__PURE__ */ m.jsx(on, {})
1429
1440
  ]
1430
1441
  },
1431
1442
  pe
1432
1443
  )),
1433
- I.length <= 0 && /* @__PURE__ */ m.jsx("p", { children: "Sem opções disponíveis" })
1444
+ P.length <= 0 && /* @__PURE__ */ m.jsx("p", { children: "Sem opções disponíveis" })
1434
1445
  ]
1435
1446
  }
1436
1447
  ),
1437
- !P && /* @__PURE__ */ m.jsx(
1448
+ !A && /* @__PURE__ */ m.jsx(
1438
1449
  Tn,
1439
1450
  {
1440
1451
  className: "arkyn_select_arrow",
@@ -1442,7 +1453,7 @@ function oa(n) {
1442
1453
  strokeWidth: 2.5
1443
1454
  }
1444
1455
  ),
1445
- P && J
1456
+ A && q
1446
1457
  ]
1447
1458
  }
1448
1459
  ),
@@ -1458,13 +1469,13 @@ function Jn(n) {
1458
1469
  className: a = "",
1459
1470
  disabled: s = !1,
1460
1471
  to: l,
1461
- ...c
1462
- } = n, h = t === l ? "active" : "inactive", u = `arkyn_breadcrumb_link ${h} ${a}`;
1472
+ ...u
1473
+ } = n, h = t === l ? "active" : "inactive", c = `arkyn_breadcrumb_link ${h} ${a}`;
1463
1474
  return {
1464
1475
  to: l,
1465
- className: u.trim(),
1476
+ className: c.trim(),
1466
1477
  disabled: s || h === "active",
1467
- ...c
1478
+ ...u
1468
1479
  };
1469
1480
  }
1470
1481
  function sa(n) {
@@ -1488,9 +1499,9 @@ function Zn(n) {
1488
1499
  makeInvisible: a,
1489
1500
  children: s,
1490
1501
  className: l = "",
1491
- ...c
1492
- } = n, u = `arkyn_modal_container ${t ? "visible" : ""} ${l}`;
1493
- return /* @__PURE__ */ m.jsx(mn.Provider, { value: { makeInvisible: a }, children: /* @__PURE__ */ m.jsx(Cn, { children: t && /* @__PURE__ */ m.jsxs("aside", { className: u.trim(), ...c, children: [
1502
+ ...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: [
1494
1505
  /* @__PURE__ */ m.jsx(
1495
1506
  Yt.div,
1496
1507
  {
@@ -1520,10 +1531,10 @@ function Qn(n) {
1520
1531
  return /* @__PURE__ */ m.jsx("footer", { className: l.trim(), ...s });
1521
1532
  }
1522
1533
  function er(n) {
1523
- const { showCloseButton: t, className: a, children: s, ...l } = n, { makeInvisible: c } = gt(mn), u = `arkyn_modal_header ${t ? "show-close" : ""} ${a}`;
1524
- return /* @__PURE__ */ m.jsxs("header", { className: u.trim(), ...l, children: [
1534
+ const { showCloseButton: t, className: a, children: s, ...l } = n, { makeInvisible: u } = gt(mn), c = `arkyn_modal_header ${t ? "show-close" : ""} ${a}`;
1535
+ return /* @__PURE__ */ m.jsxs("header", { className: c.trim(), ...l, children: [
1525
1536
  s,
1526
- /* @__PURE__ */ m.jsx("button", { type: "button", onClick: c, children: /* @__PURE__ */ m.jsx(_n, { size: 24 }) })
1537
+ /* @__PURE__ */ m.jsx("button", { type: "button", onClick: u, children: /* @__PURE__ */ m.jsx(_n, { size: 24 }) })
1527
1538
  ] });
1528
1539
  }
1529
1540
  const la = { Container: Zn, Header: er, Footer: Qn };
@@ -1533,13 +1544,13 @@ function ca(n) {
1533
1544
  size: a = "lg",
1534
1545
  children: s,
1535
1546
  orientation: l = "top",
1536
- className: c,
1547
+ className: u,
1537
1548
  ...h
1538
1549
  } = n;
1539
1550
  return /* @__PURE__ */ m.jsxs(
1540
1551
  "div",
1541
1552
  {
1542
- className: `arkyn_tooltip ${a} ${l} ${c}`,
1553
+ className: `arkyn_tooltip ${a} ${l} ${u}`,
1543
1554
  ...h,
1544
1555
  children: [
1545
1556
  s,
@@ -1565,22 +1576,22 @@ function da(n) {
1565
1576
  modalData: a,
1566
1577
  modalIsOpen: s,
1567
1578
  openModal: l,
1568
- closeModal: c
1569
- } = t, h = s(n), u = a(n);
1570
- return { modalIsOpen: h, modalData: u, openModal: (y) => l(n, y == null ? void 0 : y.data), closeModal: () => c(n) };
1579
+ 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) };
1571
1582
  } else
1572
1583
  return t;
1573
1584
  }
1574
1585
  function fa(n = "") {
1575
- const t = ln(), a = new URLSearchParams(t.search), s = n ? `${n}:` : "", l = (c) => {
1576
- Object.entries(c).forEach(([h, u]) => {
1577
- u === void 0 ? a.delete(`${s}${h}`) : a.set(`${s}${h}`, String(u));
1586
+ const t = ln(), a = new URLSearchParams(t.search), s = n ? `${n}:` : "", l = (u) => {
1587
+ Object.entries(u).forEach(([h, c]) => {
1588
+ c === void 0 ? a.delete(`${s}${h}`) : a.set(`${s}${h}`, String(c));
1578
1589
  });
1579
1590
  };
1580
1591
  return {
1581
- getParam: (c) => a.get(`${s}${c}`),
1582
- getScopedSearch: (c) => {
1583
- l(c);
1592
+ getParam: (u) => a.get(`${s}${u}`),
1593
+ getScopedSearch: (u) => {
1594
+ l(u);
1584
1595
  let h = a.toString();
1585
1596
  return h && (h = "?" + h), h;
1586
1597
  }
@@ -1598,21 +1609,21 @@ function pa(n) {
1598
1609
  function l(p) {
1599
1610
  return !!a.some((o) => o.key === p);
1600
1611
  }
1601
- function c(p) {
1612
+ function u(p) {
1602
1613
  var o;
1603
1614
  return (o = a.find((y) => y.key === p)) == null ? void 0 : o.data;
1604
1615
  }
1605
1616
  function h(p, o) {
1606
1617
  const y = l(p);
1607
- s(y ? (T) => [...T.filter((b) => b.key !== p), { key: p, data: o }] : [...a, { key: p, data: o }]);
1618
+ s(y ? (_) => [..._.filter((b) => b.key !== p), { key: p, data: o }] : [...a, { key: p, data: o }]);
1608
1619
  }
1609
- function u(p) {
1620
+ function c(p) {
1610
1621
  s(a.filter((o) => o.key !== p));
1611
1622
  }
1612
1623
  return /* @__PURE__ */ m.jsx(
1613
1624
  Wt.Provider,
1614
1625
  {
1615
- value: { modalIsOpen: l, modalData: c, openModal: h, closeModal: u },
1626
+ value: { modalIsOpen: l, modalData: u, openModal: h, closeModal: c },
1616
1627
  children: t
1617
1628
  }
1618
1629
  );
@@ -1645,15 +1656,15 @@ function sr(n) {
1645
1656
  return $t(n, a);
1646
1657
  };
1647
1658
  }
1648
- function $(n, t) {
1659
+ function B(n, t) {
1649
1660
  let a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Nt;
1650
1661
  qt && qt(n, null);
1651
1662
  let s = t.length;
1652
1663
  for (; s--; ) {
1653
1664
  let l = t[s];
1654
1665
  if (typeof l == "string") {
1655
- let c = a(l);
1656
- c !== l && (tr(t) || (t[s] = c), l = c);
1666
+ let u = a(l);
1667
+ u !== l && (tr(t) || (t[s] = u), l = u);
1657
1668
  }
1658
1669
  n[l] = !0;
1659
1670
  }
@@ -1695,10 +1706,10 @@ var Qt = xe(["a", "abbr", "acronym", "address", "area", "article", "aside", "aud
1695
1706
  t && t.hasAttribute(s) && (a = t.getAttribute(s));
1696
1707
  let l = "dompurify" + (a ? "#" + a : "");
1697
1708
  try {
1698
- return n.createPolicy(l, { createHTML(c) {
1699
- return c;
1700
- }, createScriptURL(c) {
1701
- return c;
1709
+ return n.createPolicy(l, { createHTML(u) {
1710
+ return u;
1711
+ }, createScriptURL(u) {
1712
+ return u;
1702
1713
  } });
1703
1714
  } catch {
1704
1715
  return console.warn("TrustedTypes policy " + l + " could not be created."), null;
@@ -1708,33 +1719,33 @@ function bn() {
1708
1719
  let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : yr(), t = (e) => bn(e);
1709
1720
  if (t.version = "3.0.10", t.removed = [], !n || !n.document || n.document.nodeType !== 9)
1710
1721
  return t.isSupported = !1, t;
1711
- let { document: a } = n, s = a, l = s.currentScript, { DocumentFragment: c, HTMLTemplateElement: h, Node: u, Element: p, NodeFilter: o, NamedNodeMap: y = n.NamedNodeMap || n.MozNamedAttrMap, HTMLFormElement: T, DOMParser: k, trustedTypes: b } = n, O = p.prototype, P = Et(O, "cloneNode"), W = Et(O, "nextSibling"), _ = Et(O, "childNodes"), w = Et(O, "parentNode");
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");
1712
1723
  if (typeof h == "function") {
1713
1724
  let e = a.createElement("template");
1714
1725
  e.content && e.content.ownerDocument && (a = e.content.ownerDocument);
1715
1726
  }
1716
- let C, H = "", { implementation: z, createNodeIterator: J, createDocumentFragment: X, getElementsByTagName: Q } = a, { importNode: re } = s, V = {};
1717
- t.isSupported = typeof hn == "function" && typeof w == "function" && z && z.createHTMLDocument !== void 0;
1718
- let { MUSTACHE_EXPR: F, ERB_EXPR: te, TMPLIT_EXPR: N, DATA_ATTR: R, ARIA_ATTR: B, IS_SCRIPT_OR_DATA: K, ATTR_WHITESPACE: ue, CUSTOM_ELEMENT: ee } = rn, { IS_ALLOWED_URI: se } = rn, G = null, D = $({}, [...Qt, ...Ot, ...Pt, ...jt, ...en]), x = null, U = $({}, [...tn, ...Dt, ...nn, ...St]), I = 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 } })), ce = null, M = null, pe = !0, ve = !0, Ie = !1, we = !0, Ae = !1, fe = !1, Xe = !1, qe = !1, ae = !1, me = !1, $e = !1, Je = !0, Ne = !1, ot = "user-content-", Be = !0, Se = !1, ye = {}, Le = null, ke = $({}, ["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 = $({}, ["audio", "video", "img", "source", "image", "track"]), We = null, He = $({}, ["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", le = "http://www.w3.org/1999/xhtml", ze = le, Ye = !1, E = null, oe = $({}, [Fe, Ce, le], Lt), Z = null, Ee = ["application/xhtml+xml", "text/html"], he = "text/html", ne = null, be = null, st = a.createElement("form"), et = function(e) {
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) {
1719
1730
  return e instanceof RegExp || e instanceof Function;
1720
1731
  }, tt = function() {
1721
1732
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1722
1733
  if (!(be && be === e)) {
1723
- 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") ? $({}, e.ALLOWED_TAGS, ne) : D, x = Pe(e, "ALLOWED_ATTR") ? $({}, e.ALLOWED_ATTR, ne) : U, E = Pe(e, "ALLOWED_NAMESPACES") ? $({}, e.ALLOWED_NAMESPACES, Lt) : oe, We = Pe(e, "ADD_URI_SAFE_ATTR") ? $(Ze(He), e.ADD_URI_SAFE_ATTR, ne) : He, Ue = Pe(e, "ADD_DATA_URI_TAGS") ? $(Ze(Me), e.ADD_DATA_URI_TAGS, ne) : Me, Le = Pe(e, "FORBID_CONTENTS") ? $({}, e.FORBID_CONTENTS, ne) : ke, ce = Pe(e, "FORBID_TAGS") ? $({}, e.FORBID_TAGS, ne) : {}, M = Pe(e, "FORBID_ATTR") ? $({}, 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, ae = 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, se = e.ALLOWED_URI_REGEXP || vn, ze = e.NAMESPACE || le, I = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && et(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (I.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && et(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (I.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (I.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ae && (ve = !1), me && (ae = !0), ye && (G = $({}, en), x = [], ye.html === !0 && ($(G, Qt), $(x, tn)), ye.svg === !0 && ($(G, Ot), $(x, Dt), $(x, St)), ye.svgFilters === !0 && ($(G, Pt), $(x, Dt), $(x, St)), ye.mathMl === !0 && ($(G, jt), $(x, nn), $(x, St))), e.ADD_TAGS && (G === D && (G = Ze(G)), $(G, e.ADD_TAGS, ne)), e.ADD_ATTR && (x === U && (x = Ze(x)), $(x, e.ADD_ATTR, ne)), e.ADD_URI_SAFE_ATTR && $(We, e.ADD_URI_SAFE_ATTR, ne), e.FORBID_CONTENTS && (Le === ke && (Le = Ze(Le)), $(Le, e.FORBID_CONTENTS, ne)), Be && (G["#text"] = !0), fe && $(G, ["html", "head", "body"]), G.table && ($(G, ["tbody"]), delete ce.tbody), e.TRUSTED_TYPES_POLICY) {
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) {
1724
1735
  if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
1725
1736
  throw ht('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
1726
1737
  if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
1727
1738
  throw ht('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
1728
- C = e.TRUSTED_TYPES_POLICY, H = C.createHTML("");
1739
+ L = e.TRUSTED_TYPES_POLICY, H = L.createHTML("");
1729
1740
  } else
1730
- C === void 0 && (C = br(b, l)), C !== null && typeof H == "string" && (H = C.createHTML(""));
1741
+ L === void 0 && (L = br(b, l)), L !== null && typeof H == "string" && (H = L.createHTML(""));
1731
1742
  xe && xe(e), be = e;
1732
1743
  }
1733
- }, vt = $({}, ["mi", "mo", "mn", "ms", "mtext"]), it = $({}, ["foreignobject", "desc", "title", "annotation-xml"]), Rt = $({}, ["title", "style", "font", "a", "script"]), lt = $({}, [...Ot, ...Pt, ...lr]), ct = $({}, [...jt, ...cr]), It = function(e) {
1734
- let f = w(e);
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);
1735
1746
  (!f || !f.tagName) && (f = { namespaceURI: ze, tagName: "template" });
1736
- let i = Nt(e.tagName), A = Nt(f.tagName);
1737
- return E[e.namespaceURI] ? e.namespaceURI === Ce ? f.namespaceURI === le ? i === "svg" : f.namespaceURI === Fe ? i === "svg" && (A === "annotation-xml" || vt[A]) : !!lt[i] : e.namespaceURI === Fe ? f.namespaceURI === le ? i === "math" : f.namespaceURI === Ce ? i === "math" && it[A] : !!ct[i] : e.namespaceURI === le ? f.namespaceURI === Ce && !it[A] || f.namespaceURI === Fe && !vt[A] ? !1 : !ct[i] && (Rt[i] || !lt[i]) : !!(Z === "application/xhtml+xml" && E[e.namespaceURI]) : !1;
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;
1738
1749
  }, Ve = function(e) {
1739
1750
  mt(t.removed, { element: e });
1740
1751
  try {
@@ -1749,7 +1760,7 @@ function bn() {
1749
1760
  mt(t.removed, { attribute: null, from: f });
1750
1761
  }
1751
1762
  if (f.removeAttribute(e), e === "is" && !x[e])
1752
- if (ae || me)
1763
+ if (oe || me)
1753
1764
  try {
1754
1765
  Ve(f);
1755
1766
  } catch {
@@ -1764,34 +1775,34 @@ function bn() {
1764
1775
  if (qe)
1765
1776
  e = "<remove></remove>" + e;
1766
1777
  else {
1767
- let L = Zt(e, /^[\r\n\t ]+/);
1768
- i = L && L[0];
1778
+ let I = Zt(e, /^[\r\n\t ]+/);
1779
+ i = I && I[0];
1769
1780
  }
1770
- Z === "application/xhtml+xml" && ze === le && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
1771
- let A = C ? C.createHTML(e) : e;
1772
- if (ze === le)
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)
1773
1784
  try {
1774
- f = new k().parseFromString(A, Z);
1785
+ f = new N().parseFromString(R, Z);
1775
1786
  } catch {
1776
1787
  }
1777
1788
  if (!f || !f.documentElement) {
1778
- f = z.createDocument(ze, "template", null);
1789
+ f = D.createDocument(ze, "template", null);
1779
1790
  try {
1780
- f.documentElement.innerHTML = Ye ? H : A;
1791
+ f.documentElement.innerHTML = Ye ? H : R;
1781
1792
  } catch {
1782
1793
  }
1783
1794
  }
1784
1795
  let j = f.body || f.documentElement;
1785
- return e && i && j.insertBefore(a.createTextNode(i), j.childNodes[0] || null), ze === le ? Q.call(f, fe ? "html" : "body")[0] : fe ? f.documentElement : j;
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;
1786
1797
  }, yt = function(e) {
1787
- return J.call(e.ownerDocument || e, e, o.SHOW_ELEMENT | o.SHOW_COMMENT | o.SHOW_TEXT | o.SHOW_PROCESSING_INSTRUCTION, null);
1798
+ return q.call(e.ownerDocument || e, e, o.SHOW_ELEMENT | o.SHOW_COMMENT | o.SHOW_TEXT | o.SHOW_PROCESSING_INSTRUCTION, null);
1788
1799
  }, At = function(e) {
1789
- return e instanceof T && (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");
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");
1790
1801
  }, bt = function(e) {
1791
- return typeof u == "function" && e instanceof u;
1802
+ return typeof c == "function" && e instanceof c;
1792
1803
  }, Oe = function(e, f, i) {
1793
- V[e] && wt(V[e], (A) => {
1794
- A.call(t, f, i, be);
1804
+ V[e] && wt(V[e], (R) => {
1805
+ R.call(t, f, i, be);
1795
1806
  });
1796
1807
  }, r = function(e) {
1797
1808
  let f = null;
@@ -1800,80 +1811,80 @@ function bn() {
1800
1811
  let i = ne(e.nodeName);
1801
1812
  if (Oe("uponSanitizeElement", e, { tagName: i, allowedTags: G }), e.hasChildNodes() && !bt(e.firstElementChild) && Te(/<[/\w]/g, e.innerHTML) && Te(/<[/\w]/g, e.textContent))
1802
1813
  return Ve(e), !0;
1803
- if (!G[i] || ce[i]) {
1804
- if (!ce[i] && g(i) && (I.tagNameCheck instanceof RegExp && Te(I.tagNameCheck, i) || I.tagNameCheck instanceof Function && I.tagNameCheck(i)))
1814
+ 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)))
1805
1816
  return !1;
1806
1817
  if (Be && !Le[i]) {
1807
- let A = w(e) || e.parentNode, j = _(e) || e.childNodes;
1808
- if (j && A) {
1809
- let L = j.length;
1810
- for (let ie = L - 1; ie >= 0; --ie)
1811
- A.insertBefore(P(j[ie], !0), W(e));
1818
+ let R = E(e) || e.parentNode, j = w(e) || e.childNodes;
1819
+ if (j && R) {
1820
+ let I = j.length;
1821
+ for (let ce = I - 1; ce >= 0; --ce)
1822
+ R.insertBefore(A(j[ce], !0), U(e));
1812
1823
  }
1813
1824
  }
1814
1825
  return Ve(e), !0;
1815
1826
  }
1816
- 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([F, te, N], (A) => {
1817
- f = pt(f, A, " ");
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, " ");
1818
1829
  }), e.textContent !== f && (mt(t.removed, { element: e.cloneNode() }), e.textContent = f)), Oe("afterSanitizeElements", e, null), !1);
1819
1830
  }, d = function(e, f, i) {
1820
1831
  if (Je && (f === "id" || f === "name") && (i in a || i in st))
1821
1832
  return !1;
1822
- if (!(ve && !M[f] && Te(R, f)) && !(pe && Te(B, f))) {
1823
- if (!x[f] || M[f]) {
1824
- if (!(g(e) && (I.tagNameCheck instanceof RegExp && Te(I.tagNameCheck, e) || I.tagNameCheck instanceof Function && I.tagNameCheck(e)) && (I.attributeNameCheck instanceof RegExp && Te(I.attributeNameCheck, f) || I.attributeNameCheck instanceof Function && I.attributeNameCheck(f)) || f === "is" && I.allowCustomizedBuiltInElements && (I.tagNameCheck instanceof RegExp && Te(I.tagNameCheck, i) || I.tagNameCheck instanceof Function && I.tagNameCheck(i))))
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))))
1825
1836
  return !1;
1826
- } else if (!We[f] && !Te(se, pt(i, ue, "")) && !((f === "src" || f === "xlink:href" || f === "href") && e !== "script" && ar(i, "data:") === 0 && Ue[e]) && !(Ie && !Te(K, pt(i, ue, ""))) && i)
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)
1827
1838
  return !1;
1828
1839
  }
1829
1840
  return !0;
1830
1841
  }, g = function(e) {
1831
1842
  return e !== "annotation-xml" && Zt(e, ee);
1832
- }, S = function(e) {
1843
+ }, T = function(e) {
1833
1844
  Oe("beforeSanitizeAttributes", e, null);
1834
1845
  let { attributes: f } = e;
1835
1846
  if (!f)
1836
1847
  return;
1837
- let i = { attrName: "", attrValue: "", keepAttr: !0, allowedAttributes: x }, A = f.length;
1838
- for (; A--; ) {
1839
- let j = f[A], { name: L, namespaceURI: ie, value: ge } = j, de = ne(L), q = L === "value" ? ge : or(ge);
1840
- if (i.attrName = de, i.attrValue = q, i.keepAttr = !0, i.forceKeepAttr = void 0, Oe("uponSanitizeAttribute", e, i), q = i.attrValue, i.forceKeepAttr || (nt(L, e), !i.keepAttr))
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))
1841
1852
  continue;
1842
- if (!we && Te(/\/>/i, q)) {
1843
- nt(L, e);
1853
+ if (!we && Te(/\/>/i, X)) {
1854
+ nt(I, e);
1844
1855
  continue;
1845
1856
  }
1846
- Ae && wt([F, te, N], (xt) => {
1847
- q = pt(q, xt, " ");
1857
+ Ae && wt([$, ae, k], (xt) => {
1858
+ X = pt(X, xt, " ");
1848
1859
  });
1849
1860
  let rt = ne(e.nodeName);
1850
- if (d(rt, de, q)) {
1851
- if (Ne && (de === "id" || de === "name") && (nt(L, e), q = ot + q), C && typeof b == "object" && typeof b.getAttributeType == "function" && !ie)
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)
1852
1863
  switch (b.getAttributeType(rt, de)) {
1853
1864
  case "TrustedHTML": {
1854
- q = C.createHTML(q);
1865
+ X = L.createHTML(X);
1855
1866
  break;
1856
1867
  }
1857
1868
  case "TrustedScriptURL": {
1858
- q = C.createScriptURL(q);
1869
+ X = L.createScriptURL(X);
1859
1870
  break;
1860
1871
  }
1861
1872
  }
1862
1873
  try {
1863
- ie ? e.setAttributeNS(ie, L, q) : e.setAttribute(L, q), Jt(t.removed);
1874
+ ce ? e.setAttributeNS(ce, I, X) : e.setAttribute(I, X), Jt(t.removed);
1864
1875
  } catch {
1865
1876
  }
1866
1877
  }
1867
1878
  }
1868
1879
  Oe("afterSanitizeAttributes", e, null);
1869
1880
  }, Y = function e(f) {
1870
- let i = null, A = yt(f);
1871
- for (Oe("beforeSanitizeShadowDOM", f, null); i = A.nextNode(); )
1872
- Oe("uponSanitizeShadowNode", i, null), !r(i) && (i.content instanceof c && e(i.content), S(i));
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));
1873
1884
  Oe("afterSanitizeShadowDOM", f, null);
1874
1885
  };
1875
1886
  return t.sanitize = function(e) {
1876
- let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, A = null, j = null, L = null;
1887
+ let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, R = null, j = null, I = null;
1877
1888
  if (Ye = !e, Ye && (e = "<!-->"), typeof e != "string" && !bt(e))
1878
1889
  if (typeof e.toString == "function") {
1879
1890
  if (e = e.toString(), typeof e != "string")
@@ -1885,36 +1896,36 @@ function bn() {
1885
1896
  if (Xe || tt(f), t.removed = [], typeof e == "string" && (Se = !1), Se) {
1886
1897
  if (e.nodeName) {
1887
1898
  let de = ne(e.nodeName);
1888
- if (!G[de] || ce[de])
1899
+ if (!G[de] || te[de])
1889
1900
  throw ht("root node is forbidden and cannot be sanitized in-place");
1890
1901
  }
1891
- } else if (e instanceof u)
1892
- i = ut("<!---->"), A = i.ownerDocument.importNode(e, !0), A.nodeType === 1 && A.nodeName === "BODY" || A.nodeName === "HTML" ? i = A : i.appendChild(A);
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);
1893
1904
  else {
1894
- if (!ae && !Ae && !fe && e.indexOf("<") === -1)
1895
- return C && $e ? C.createHTML(e) : e;
1905
+ if (!oe && !Ae && !fe && e.indexOf("<") === -1)
1906
+ return L && $e ? L.createHTML(e) : e;
1896
1907
  if (i = ut(e), !i)
1897
- return ae ? null : $e ? H : "";
1908
+ return oe ? null : $e ? H : "";
1898
1909
  }
1899
1910
  i && qe && Ve(i.firstChild);
1900
- let ie = yt(Se ? e : i);
1901
- for (; j = ie.nextNode(); )
1902
- r(j) || (j.content instanceof c && Y(j.content), S(j));
1911
+ let ce = yt(Se ? e : i);
1912
+ for (; j = ce.nextNode(); )
1913
+ r(j) || (j.content instanceof u && Y(j.content), T(j));
1903
1914
  if (Se)
1904
1915
  return e;
1905
- if (ae) {
1916
+ if (oe) {
1906
1917
  if (me)
1907
- for (L = X.call(i.ownerDocument); i.firstChild; )
1908
- L.appendChild(i.firstChild);
1918
+ for (I = K.call(i.ownerDocument); i.firstChild; )
1919
+ I.appendChild(i.firstChild);
1909
1920
  else
1910
- L = i;
1911
- return (x.shadowroot || x.shadowrootmode) && (L = re.call(s, L, !0)), L;
1921
+ I = i;
1922
+ return (x.shadowroot || x.shadowrootmode) && (I = re.call(s, I, !0)), I;
1912
1923
  }
1913
1924
  let ge = fe ? i.outerHTML : i.innerHTML;
1914
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 + `>
1915
- ` + ge), Ae && wt([F, te, N], (de) => {
1926
+ ` + ge), Ae && wt([$, ae, k], (de) => {
1916
1927
  ge = pt(ge, de, " ");
1917
- }), C && $e ? C.createHTML(ge) : ge;
1928
+ }), L && $e ? L.createHTML(ge) : ge;
1918
1929
  }, t.setConfig = function() {
1919
1930
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1920
1931
  tt(e), Xe = !0;
@@ -1922,8 +1933,8 @@ function bn() {
1922
1933
  be = null, Xe = !1;
1923
1934
  }, t.isValidAttribute = function(e, f, i) {
1924
1935
  be || tt({});
1925
- let A = ne(e), j = ne(f);
1926
- return d(A, j, i);
1936
+ let R = ne(e), j = ne(f);
1937
+ return d(R, j, i);
1927
1938
  }, t.addHook = function(e, f) {
1928
1939
  typeof f == "function" && (V[e] = V[e] || [], mt(V[e], f));
1929
1940
  }, t.removeHook = function(e) {
@@ -1967,8 +1978,8 @@ var xr = bn(), wr = (n) => {
1967
1978
  this.publish(n), this.toasts = [...this.toasts, n];
1968
1979
  }, this.create = (n) => {
1969
1980
  var t;
1970
- 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++, c = this.toasts.find((u) => u.id === l), h = n.dismissible === void 0 ? !0 : n.dismissible;
1971
- return c ? this.toasts = this.toasts.map((u) => u.id === l ? (this.publish({ ...u, ...n, id: l, title: a }), { ...u, ...n, id: l, dismissible: h, title: a }) : u) : this.addToast({ title: a, ...s, dismissible: h, id: l }), l;
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;
1972
1983
  }, this.dismiss = (n) => (n || this.toasts.forEach((t) => {
1973
1984
  this.subscribers.forEach((a) => a({ id: t.id, dismiss: !0 }));
1974
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) => {
@@ -1977,25 +1988,25 @@ var xr = bn(), wr = (n) => {
1977
1988
  let a;
1978
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 }));
1979
1990
  let s = n instanceof Promise ? n : n(), l = a !== void 0;
1980
- return s.then((c) => {
1981
- if (c && typeof c.ok == "boolean" && !c.ok) {
1991
+ return s.then((u) => {
1992
+ if (u && typeof u.ok == "boolean" && !u.ok) {
1982
1993
  l = !1;
1983
- let h = typeof t.error == "function" ? t.error(`HTTP error! status: ${c.status}`) : t.error, u = typeof t.description == "function" ? t.description(`HTTP error! status: ${c.status}`) : t.description;
1984
- this.create({ id: a, type: "error", message: h, description: u });
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;
1995
+ this.create({ id: a, type: "error", message: h, description: c });
1985
1996
  } else if (t.success !== void 0) {
1986
1997
  l = !1;
1987
- let h = typeof t.success == "function" ? t.success(c) : t.success, u = typeof t.description == "function" ? t.description(c) : t.description;
1988
- this.create({ id: a, type: "success", message: h, description: u });
1998
+ let h = typeof t.success == "function" ? t.success(u) : t.success, c = typeof t.description == "function" ? t.description(u) : t.description;
1999
+ this.create({ id: a, type: "success", message: h, description: c });
1989
2000
  }
1990
- }).catch((c) => {
2001
+ }).catch((u) => {
1991
2002
  if (t.error !== void 0) {
1992
2003
  l = !1;
1993
- let h = typeof t.error == "function" ? t.error(c) : t.error, u = typeof t.description == "function" ? t.description(c) : t.description;
1994
- this.create({ id: a, type: "error", message: h, description: u });
2004
+ let h = typeof t.error == "function" ? t.error(u) : t.error, c = typeof t.description == "function" ? t.description(u) : t.description;
2005
+ this.create({ id: a, type: "error", message: h, description: c });
1995
2006
  }
1996
2007
  }).finally(() => {
1997
- var c;
1998
- l && (this.dismiss(a), a = void 0), (c = t.finally) == null || c.call(t);
2008
+ var u;
2009
+ l && (this.dismiss(a), a = void 0), (u = t.finally) == null || u.call(t);
1999
2010
  }), a;
2000
2011
  }, this.custom = (n, t) => {
2001
2012
  let a = (t == null ? void 0 : t.id) || Ft++;
@@ -2022,83 +2033,83 @@ function Fr(...n) {
2022
2033
  return n.filter(Boolean).join(" ");
2023
2034
  }
2024
2035
  var Br = (n) => {
2025
- var t, a, s, l, c, h, u;
2026
- let { invert: p, toast: o, unstyled: y, interacting: T, setHeights: k, visibleToasts: b, heights: O, index: P, toasts: W, expanded: _, removeToast: w, closeButton: C, style: H, cancelButtonStyle: z, actionButtonStyle: J, className: X = "", descriptionClassName: Q = "", duration: re, position: V, gap: F, loadingIcon: te, expandByDefault: N, classNames: R, icons: B, closeButtonAriaLabel: K = "Close toast", pauseWhenPageIsHidden: ue, cn: ee } = n, [se, G] = v.useState(!1), [D, x] = v.useState(!1), [U, I] = v.useState(!1), [ce, M] = v.useState(!1), [pe, ve] = v.useState(0), [Ie, we] = v.useState(0), Ae = v.useRef(null), fe = v.useRef(null), Xe = P === 0, qe = P + 1 <= b, ae = o.type, me = o.dismissible !== !1, $e = o.className || "", Je = o.descriptionClassName || "", Ne = v.useMemo(() => O.findIndex((E) => E.toastId === o.id) || 0, [O, o.id]), ot = v.useMemo(() => {
2027
- var E;
2028
- return (E = o.closeButton) != null ? E : C;
2029
- }, [o.closeButton, C]), 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((E, oe, Z) => Z >= Ne ? E : E + oe.height, 0), [O, Ne]), He = Cr(), Fe = o.invert || p, Ce = ae === "loading";
2030
- ye.current = v.useMemo(() => Ne * F + We, [Ne, We]), v.useEffect(() => {
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(() => {
2038
+ var S;
2039
+ 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(() => {
2031
2042
  G(!0);
2032
2043
  }, []), v.useLayoutEffect(() => {
2033
- if (!se)
2044
+ if (!le)
2034
2045
  return;
2035
- let E = fe.current, oe = E.style.height;
2036
- E.style.height = "auto";
2037
- let Z = E.getBoundingClientRect().height;
2038
- E.style.height = oe, we(Z), k((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]);
2039
- }, [se, o.title, o.description, k, o.id]);
2040
- let le = v.useCallback(() => {
2041
- x(!0), ve(ye.current), k((E) => E.filter((oe) => oe.toastId !== o.id)), setTimeout(() => {
2042
- w(o);
2046
+ let S = fe.current, se = S.style.height;
2047
+ 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]);
2050
+ }, [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(() => {
2053
+ E(o);
2043
2054
  }, $r);
2044
- }, [o, w, k, ye]);
2055
+ }, [o, E, N, ye]);
2045
2056
  v.useEffect(() => {
2046
- if (o.promise && ae === "loading" || o.duration === 1 / 0 || o.type === "loading")
2057
+ if (o.promise && oe === "loading" || o.duration === 1 / 0 || o.type === "loading")
2047
2058
  return;
2048
- let E, oe = Be;
2049
- return _ || T || ue && He ? (() => {
2059
+ let S, se = Be;
2060
+ return w || _ || ie && He ? (() => {
2050
2061
  if (Le.current < Se.current) {
2051
2062
  let Z = (/* @__PURE__ */ new Date()).getTime() - Se.current;
2052
- oe = oe - Z;
2063
+ se = se - Z;
2053
2064
  }
2054
2065
  Le.current = (/* @__PURE__ */ new Date()).getTime();
2055
- })() : oe !== 1 / 0 && (Se.current = (/* @__PURE__ */ new Date()).getTime(), E = setTimeout(() => {
2066
+ })() : se !== 1 / 0 && (Se.current = (/* @__PURE__ */ new Date()).getTime(), S = setTimeout(() => {
2056
2067
  var Z;
2057
- (Z = o.onAutoClose) == null || Z.call(o, o), le();
2058
- }, oe)), () => clearTimeout(E);
2059
- }, [_, T, N, o, Be, le, o.promise, ae, ue, He]), v.useEffect(() => {
2060
- let E = fe.current;
2061
- if (E) {
2062
- let oe = E.getBoundingClientRect().height;
2063
- return we(oe), k((Z) => [{ toastId: o.id, height: oe, position: o.position }, ...Z]), () => k((Z) => Z.filter((Ee) => Ee.toastId !== o.id));
2064
- }
2065
- }, [k, o.id]), v.useEffect(() => {
2066
- o.delete && le();
2067
- }, [le, o.delete]);
2068
+ (Z = o.onAutoClose) == null || Z.call(o, o), ue();
2069
+ }, se)), () => clearTimeout(S);
2070
+ }, [w, _, k, o, Be, ue, o.promise, oe, ie, He]), v.useEffect(() => {
2071
+ let S = fe.current;
2072
+ if (S) {
2073
+ 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));
2075
+ }
2076
+ }, [N, o.id]), v.useEffect(() => {
2077
+ o.delete && ue();
2078
+ }, [ue, o.delete]);
2068
2079
  function ze() {
2069
- return B != null && B.loading ? v.createElement("div", { className: "sonner-loader", "data-visible": ae === "loading" }, B.loading) : te ? v.createElement("div", { className: "sonner-loader", "data-visible": ae === "loading" }, te) : v.createElement(Sr, { visible: ae === "loading" });
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" });
2070
2081
  }
2071
- function Ye(E) {
2072
- return { __html: xr.sanitize(E) };
2082
+ function Ye(S) {
2083
+ return { __html: xr.sanitize(S) };
2073
2084
  }
2074
- return v.createElement("li", { "aria-live": o.important ? "assertive" : "polite", "aria-atomic": "true", role: "status", tabIndex: 0, ref: fe, className: ee(X, $e, R == null ? void 0 : R.toast, (t = o == null ? void 0 : o.classNames) == null ? void 0 : t.toast, R == null ? void 0 : R.default, R == null ? void 0 : R[ae], (a = o == null ? void 0 : o.classNames) == null ? void 0 : a[ae]), "data-sonner-toast": "", "data-styled": !(o.jsx || o.unstyled || y), "data-mounted": se, "data-promise": !!o.promise, "data-removed": D, "data-visible": qe, "data-y-position": Ue, "data-x-position": Me, "data-index": P, "data-front": Xe, "data-swiping": U, "data-dismissible": me, "data-type": ae, "data-invert": Fe, "data-swipe-out": ce, "data-expanded": !!(_ || N && se), style: { "--index": P, "--toasts-before": P, "--z-index": W.length - P, "--offset": `${D ? pe : ye.current}px`, "--initial-height": N ? "auto" : `${Ie}px`, ...H, ...o.style }, onPointerDown: (E) => {
2075
- Ce || !me || (Ae.current = /* @__PURE__ */ new Date(), ve(ye.current), E.target.setPointerCapture(E.pointerId), E.target.tagName !== "BUTTON" && (I(!0), ke.current = { x: E.clientX, y: E.clientY }));
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 }));
2076
2087
  }, onPointerUp: () => {
2077
- var E, oe, Z, Ee;
2078
- if (ce || !me)
2088
+ var S, se, Z, Ee;
2089
+ if (te || !me)
2079
2090
  return;
2080
2091
  ke.current = null;
2081
- let he = Number(((E = fe.current) == null ? void 0 : E.style.getPropertyValue("--swipe-amount").replace("px", "")) || 0), ne = (/* @__PURE__ */ new Date()).getTime() - ((oe = Ae.current) == null ? void 0 : oe.getTime()), be = Math.abs(he) / ne;
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;
2082
2093
  if (Math.abs(he) >= zr || be > 0.11) {
2083
- ve(ye.current), (Z = o.onDismiss) == null || Z.call(o, o), le(), M(!0);
2094
+ ve(ye.current), (Z = o.onDismiss) == null || Z.call(o, o), ue(), z(!0);
2084
2095
  return;
2085
2096
  }
2086
- (Ee = fe.current) == null || Ee.style.setProperty("--swipe-amount", "0px"), I(!1);
2087
- }, onPointerMove: (E) => {
2088
- var oe;
2097
+ (Ee = fe.current) == null || Ee.style.setProperty("--swipe-amount", "0px"), P(!1);
2098
+ }, onPointerMove: (S) => {
2099
+ var se;
2089
2100
  if (!ke.current || !me)
2090
2101
  return;
2091
- let Z = E.clientY - ke.current.y, Ee = E.clientX - ke.current.x, he = (Ue === "top" ? Math.min : Math.max)(0, Z), ne = E.pointerType === "touch" ? 10 : 2;
2092
- Math.abs(he) > ne ? (oe = fe.current) == null || oe.style.setProperty("--swipe-amount", `${Z}px`) : Math.abs(Ee) > ne && (ke.current = null);
2093
- } }, ot && !o.jsx ? v.createElement("button", { "aria-label": K, "data-disabled": Ce, "data-close-button": !0, onClick: Ce || !me ? () => {
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 ? () => {
2094
2105
  } : () => {
2095
- var E;
2096
- le(), (E = o.onDismiss) == null || E.call(o, o);
2097
- }, className: ee(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, ae || o.icon || o.promise ? v.createElement("div", { "data-icon": "", className: ee(R == null ? void 0 : R.icon) }, o.promise || o.type === "loading" && !o.icon ? o.icon || ze() : null, o.type !== "loading" ? o.icon || (B == null ? void 0 : B[ae]) || wr(ae) : null) : null, v.createElement("div", { "data-content": "", className: ee(R == null ? void 0 : R.content) }, v.createElement("div", { "data-title": "", className: ee(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: ee(Q, Je, R == null ? void 0 : R.description, (c = o == null ? void 0 : o.classNames) == null ? void 0 : c.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 || z, onClick: (E) => {
2098
- _t(o.cancel) && me && (le(), o.cancel.onClick(E));
2099
- }, className: ee(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 || J, onClick: (E) => {
2100
- _t(o.action) && (o.action.onClick(E), !E.defaultPrevented && le());
2101
- }, className: ee(R == null ? void 0 : R.actionButton, (u = o == null ? void 0 : o.classNames) == null ? void 0 : u.actionButton) }, o.action.label) : null));
2106
+ 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));
2102
2113
  };
2103
2114
  function an() {
2104
2115
  if (typeof window > "u" || typeof document > "u")
@@ -2107,55 +2118,55 @@ function an() {
2107
2118
  return n === "auto" || !n ? window.getComputedStyle(document.documentElement).direction : n;
2108
2119
  }
2109
2120
  var Ur = (n) => {
2110
- let { invert: t, position: a = "bottom-right", hotkey: s = ["altKey", "KeyT"], expand: l, closeButton: c, className: h, offset: u, theme: p = "light", richColors: o, duration: y, style: T, visibleToasts: k = Or, toastOptions: b, dir: O = an(), gap: P = Mr, loadingIcon: W, icons: _, containerAriaLabel: w = "Notifications", pauseWhenPageIsHidden: C, cn: H = Fr } = n, [z, J] = v.useState([]), X = v.useMemo(() => Array.from(new Set([a].concat(z.filter((D) => D.position).map((D) => D.position)))), [z, a]), [Q, re] = v.useState([]), [V, F] = v.useState(!1), [te, N] = v.useState(!1), [R, B] = v.useState(p !== "system" ? p : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), K = v.useRef(null), ue = s.join("+").replace(/Key/g, "").replace(/Digit/g, ""), ee = v.useRef(null), se = v.useRef(!1), G = v.useCallback((D) => J((x) => x.filter(({ id: U }) => U !== D.id)), []);
2111
- return v.useEffect(() => je.subscribe((D) => {
2112
- if (D.dismiss) {
2113
- J((x) => x.map((U) => U.id === D.id ? { ...U, delete: !0 } : U));
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));
2114
2125
  return;
2115
2126
  }
2116
2127
  setTimeout(() => {
2117
2128
  Rn.flushSync(() => {
2118
- J((x) => {
2119
- let U = x.findIndex((I) => I.id === D.id);
2120
- return U !== -1 ? [...x.slice(0, U), { ...x[U], ...D }, ...x.slice(U + 1)] : [D, ...x];
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];
2121
2132
  });
2122
2133
  });
2123
2134
  });
2124
2135
  }), []), v.useEffect(() => {
2125
2136
  if (p !== "system") {
2126
- B(p);
2137
+ F(p);
2127
2138
  return;
2128
2139
  }
2129
- p === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? B("dark") : B("light")), typeof window < "u" && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", ({ matches: D }) => {
2130
- B(D ? "dark" : "light");
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");
2131
2142
  });
2132
2143
  }, [p]), v.useEffect(() => {
2133
- z.length <= 1 && F(!1);
2134
- }, [z]), v.useEffect(() => {
2135
- let D = (x) => {
2136
- var U, I;
2137
- s.every((ce) => x[ce] || x.code === ce) && (F(!0), (U = K.current) == null || U.focus()), x.code === "Escape" && (document.activeElement === K.current || (I = K.current) != null && I.contains(document.activeElement)) && F(!1);
2144
+ D.length <= 1 && $(!1);
2145
+ }, [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);
2138
2149
  };
2139
- return document.addEventListener("keydown", D), () => document.removeEventListener("keydown", D);
2150
+ return document.addEventListener("keydown", M), () => document.removeEventListener("keydown", M);
2140
2151
  }, [s]), v.useEffect(() => {
2141
- if (K.current)
2152
+ if (J.current)
2142
2153
  return () => {
2143
- ee.current && (ee.current.focus({ preventScroll: !0 }), ee.current = null, se.current = !1);
2154
+ ee.current && (ee.current.focus({ preventScroll: !0 }), ee.current = null, le.current = !1);
2144
2155
  };
2145
- }, [K.current]), z.length ? v.createElement("section", { "aria-label": `${w} ${ue}`, tabIndex: -1 }, X.map((D, x) => {
2146
- var U;
2147
- let [I, ce] = D.split("-");
2148
- return v.createElement("ol", { key: D, dir: O === "auto" ? an() : O, tabIndex: -1, ref: K, className: h, "data-sonner-toaster": !0, "data-theme": R, "data-rich-colors": o, "data-y-position": I, "data-x-position": ce, style: { "--front-toast-height": `${((U = Q[0]) == null ? void 0 : U.height) || 0}px`, "--offset": typeof u == "number" ? `${u}px` : u || Pr, "--width": `${Dr}px`, "--gap": `${P}px`, ...T }, onBlur: (M) => {
2149
- se.current && !M.currentTarget.contains(M.relatedTarget) && (se.current = !1, ee.current && (ee.current.focus({ preventScroll: !0 }), ee.current = null));
2150
- }, onFocus: (M) => {
2151
- M.target instanceof HTMLElement && M.target.dataset.dismissible === "false" || se.current || (se.current = !0, ee.current = M.relatedTarget);
2152
- }, onMouseEnter: () => F(!0), onMouseMove: () => F(!0), onMouseLeave: () => {
2153
- te || F(!1);
2154
- }, onPointerDown: (M) => {
2155
- M.target instanceof HTMLElement && M.target.dataset.dismissible === "false" || N(!0);
2156
- }, onPointerUp: () => N(!1) }, z.filter((M) => !M.position && x === 0 || M.position === D).map((M, pe) => {
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) => {
2157
2168
  var ve, Ie;
2158
- return v.createElement(Br, { key: M.id, icons: _, index: pe, toast: M, 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: k, closeButton: (Ie = b == null ? void 0 : b.closeButton) != null ? Ie : c, interacting: te, position: D, 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: z.filter((we) => we.position == M.position), heights: Q.filter((we) => we.position == M.position), setHeights: re, expandByDefault: l, gap: P, loadingIcon: W, expanded: V, pauseWhenPageIsHidden: C, cn: H });
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 });
2159
2170
  }));
2160
2171
  })) : null;
2161
2172
  };
@@ -2165,17 +2176,17 @@ dompurify/dist/purify.es.mjs:
2165
2176
  (*! @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 *)
2166
2177
  */
2167
2178
  function ha({ children: n }) {
2168
- function t(c) {
2169
- Tt.success(c);
2179
+ function t(u) {
2180
+ Tt.success(u);
2170
2181
  }
2171
- function a(c) {
2172
- Tt.info(c);
2182
+ function a(u) {
2183
+ Tt.info(u);
2173
2184
  }
2174
- function s(c) {
2175
- Tt.error(c);
2185
+ function s(u) {
2186
+ Tt.error(u);
2176
2187
  }
2177
- function l(c) {
2178
- Tt.warning(c);
2188
+ function l(u) {
2189
+ Tt.warning(u);
2179
2190
  }
2180
2191
  return /* @__PURE__ */ m.jsxs(
2181
2192
  pn.Provider,