@arkyn/components 1.3.9 → 1.3.10

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
@@ -45,11 +45,11 @@ 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"), 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";
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"), P = Symbol.iterator, A = "@@iterator";
49
49
  function U(r) {
50
50
  if (r === null || typeof r != "object")
51
51
  return null;
52
- var d = O && r[O] || r[A];
52
+ var d = P && r[P] || r[A];
53
53
  return typeof d == "function" ? d : null;
54
54
  }
55
55
  var w = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -62,29 +62,29 @@ function An() {
62
62
  }
63
63
  function L(r, d, g) {
64
64
  {
65
- var T = w.ReactDebugCurrentFrame, Y = T.getStackAddendum();
66
- Y !== "" && (d += "%s", g = g.concat([Y]));
65
+ var T = w.ReactDebugCurrentFrame, H = T.getStackAddendum();
66
+ H !== "" && (d += "%s", g = g.concat([H]));
67
67
  var e = g.map(function(f) {
68
68
  return String(f);
69
69
  });
70
70
  e.unshift("Warning: " + d), Function.prototype.apply.call(console[r], console, e);
71
71
  }
72
72
  }
73
- var H = !1, D = !1, q = !1, K = !1, Q = !1, re;
73
+ var W = !1, M = !1, X = !1, ee = !1, V = !1, re;
74
74
  re = Symbol.for("react.module.reference");
75
- function V(r) {
76
- return !!(typeof r == "string" || typeof r == "function" || r === s || r === u || Q || r === l || r === o || r === y || K || r === b || H || D || q || typeof r == "object" && r !== null && (r.$$typeof === N || r.$$typeof === _ || r.$$typeof === h || r.$$typeof === c || r.$$typeof === p || // This needs to include all possible module reference object
75
+ function Y(r) {
76
+ return !!(typeof r == "string" || typeof r == "function" || r === s || r === u || V || r === l || r === o || r === y || ee || r === b || W || M || X || typeof r == "object" && r !== null && (r.$$typeof === N || r.$$typeof === _ || r.$$typeof === h || r.$$typeof === c || r.$$typeof === p || // This needs to include all possible module reference object
77
77
  // types supported by any Flight configuration anywhere since
78
78
  // we don't know which Flight build this will end up being used
79
79
  // with.
80
80
  r.$$typeof === re || r.getModuleId !== void 0));
81
81
  }
82
- function $(r, d, g) {
82
+ function z(r, d, g) {
83
83
  var T = r.displayName;
84
84
  if (T)
85
85
  return T;
86
- var Y = d.displayName || d.name || "";
87
- return Y !== "" ? g + "(" + Y + ")" : g;
86
+ var H = d.displayName || d.name || "";
87
+ return H !== "" ? g + "(" + H + ")" : g;
88
88
  }
89
89
  function ae(r) {
90
90
  return r.displayName || "Context";
@@ -119,12 +119,12 @@ function An() {
119
119
  var g = r;
120
120
  return ae(g._context) + ".Provider";
121
121
  case p:
122
- return $(r, r.render, "ForwardRef");
122
+ return z(r, r.render, "ForwardRef");
123
123
  case _:
124
124
  var T = r.displayName || null;
125
125
  return T !== null ? T : k(r.type) || "Memo";
126
126
  case N: {
127
- var Y = r, e = Y._payload, f = Y._init;
127
+ var H = r, e = H._payload, f = H._init;
128
128
  try {
129
129
  return k(f(e));
130
130
  } catch {
@@ -134,18 +134,18 @@ function An() {
134
134
  }
135
135
  return null;
136
136
  }
137
- var C = Object.assign, F = 0, J, ie, ee, le, G, M, x;
138
- function W() {
137
+ var R = Object.assign, $ = 0, J, ie, Z, le, G, F, x;
138
+ function O() {
139
139
  }
140
- W.__reactDisabledLog = !0;
141
- function P() {
140
+ O.__reactDisabledLog = !0;
141
+ function j() {
142
142
  {
143
- if (F === 0) {
144
- J = console.log, ie = console.info, ee = console.warn, le = console.error, G = console.group, M = console.groupCollapsed, x = console.groupEnd;
143
+ if ($ === 0) {
144
+ J = console.log, ie = console.info, Z = console.warn, le = console.error, G = console.group, F = console.groupCollapsed, x = console.groupEnd;
145
145
  var r = {
146
146
  configurable: !0,
147
147
  enumerable: !0,
148
- value: W,
148
+ value: O,
149
149
  writable: !0
150
150
  };
151
151
  Object.defineProperties(console, {
@@ -158,56 +158,56 @@ function An() {
158
158
  groupEnd: r
159
159
  });
160
160
  }
161
- F++;
161
+ $++;
162
162
  }
163
163
  }
164
164
  function te() {
165
165
  {
166
- if (F--, F === 0) {
166
+ if ($--, $ === 0) {
167
167
  var r = {
168
168
  configurable: !0,
169
169
  enumerable: !0,
170
170
  writable: !0
171
171
  };
172
172
  Object.defineProperties(console, {
173
- log: C({}, r, {
173
+ log: R({}, r, {
174
174
  value: J
175
175
  }),
176
- info: C({}, r, {
176
+ info: R({}, r, {
177
177
  value: ie
178
178
  }),
179
- warn: C({}, r, {
180
- value: ee
179
+ warn: R({}, r, {
180
+ value: Z
181
181
  }),
182
- error: C({}, r, {
182
+ error: R({}, r, {
183
183
  value: le
184
184
  }),
185
- group: C({}, r, {
185
+ group: R({}, r, {
186
186
  value: G
187
187
  }),
188
- groupCollapsed: C({}, r, {
189
- value: M
188
+ groupCollapsed: R({}, r, {
189
+ value: F
190
190
  }),
191
- groupEnd: C({}, r, {
191
+ groupEnd: R({}, r, {
192
192
  value: x
193
193
  })
194
194
  });
195
195
  }
196
- F < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
196
+ $ < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
197
197
  }
198
198
  }
199
- var z = w.ReactCurrentDispatcher, pe;
200
- function ve(r, d, g) {
199
+ var K = w.ReactCurrentDispatcher, ue;
200
+ function de(r, d, g) {
201
201
  {
202
- if (pe === void 0)
202
+ if (ue === void 0)
203
203
  try {
204
204
  throw Error();
205
- } catch (Y) {
206
- var T = Y.stack.trim().match(/\n( *(at )?)/);
207
- pe = T && T[1] || "";
205
+ } catch (H) {
206
+ var T = H.stack.trim().match(/\n( *(at )?)/);
207
+ ue = T && T[1] || "";
208
208
  }
209
209
  return `
210
- ` + pe + r;
210
+ ` + ue + r;
211
211
  }
212
212
  }
213
213
  var Ie = !1, we;
@@ -215,7 +215,7 @@ function An() {
215
215
  var Ae = typeof WeakMap == "function" ? WeakMap : Map;
216
216
  we = new Ae();
217
217
  }
218
- function fe(r, d) {
218
+ function pe(r, d) {
219
219
  if (!r || Ie)
220
220
  return "";
221
221
  {
@@ -225,10 +225,10 @@ function An() {
225
225
  }
226
226
  var T;
227
227
  Ie = !0;
228
- var Y = Error.prepareStackTrace;
228
+ var H = Error.prepareStackTrace;
229
229
  Error.prepareStackTrace = void 0;
230
230
  var e;
231
- e = z.current, z.current = null, P();
231
+ e = K.current, K.current = null, j();
232
232
  try {
233
233
  if (d) {
234
234
  var f = function() {
@@ -241,53 +241,53 @@ function An() {
241
241
  }), typeof Reflect == "object" && Reflect.construct) {
242
242
  try {
243
243
  Reflect.construct(f, []);
244
- } catch (X) {
245
- T = X;
244
+ } catch (q) {
245
+ T = q;
246
246
  }
247
247
  Reflect.construct(r, [], f);
248
248
  } else {
249
249
  try {
250
250
  f.call();
251
- } catch (X) {
252
- T = X;
251
+ } catch (q) {
252
+ T = q;
253
253
  }
254
254
  r.call(f.prototype);
255
255
  }
256
256
  } else {
257
257
  try {
258
258
  throw Error();
259
- } catch (X) {
260
- T = X;
259
+ } catch (q) {
260
+ T = q;
261
261
  }
262
262
  r();
263
263
  }
264
- } catch (X) {
265
- if (X && T && typeof X.stack == "string") {
266
- for (var i = X.stack.split(`
267
- `), R = T.stack.split(`
268
- `), j = i.length - 1, I = R.length - 1; j >= 1 && I >= 0 && i[j] !== R[I]; )
264
+ } catch (q) {
265
+ if (q && T && typeof q.stack == "string") {
266
+ for (var i = q.stack.split(`
267
+ `), C = T.stack.split(`
268
+ `), D = i.length - 1, I = C.length - 1; D >= 1 && I >= 0 && i[D] !== C[I]; )
269
269
  I--;
270
- for (; j >= 1 && I >= 0; j--, I--)
271
- if (i[j] !== R[I]) {
272
- if (j !== 1 || I !== 1)
270
+ for (; D >= 1 && I >= 0; D--, I--)
271
+ if (i[D] !== C[I]) {
272
+ if (D !== 1 || I !== 1)
273
273
  do
274
- if (j--, I--, I < 0 || i[j] !== R[I]) {
274
+ if (D--, I--, I < 0 || i[D] !== C[I]) {
275
275
  var ce = `
276
- ` + i[j].replace(" at new ", " at ");
276
+ ` + i[D].replace(" at new ", " at ");
277
277
  return r.displayName && ce.includes("<anonymous>") && (ce = ce.replace("<anonymous>", r.displayName)), typeof r == "function" && we.set(r, ce), ce;
278
278
  }
279
- while (j >= 1 && I >= 0);
279
+ while (D >= 1 && I >= 0);
280
280
  break;
281
281
  }
282
282
  }
283
283
  } finally {
284
- Ie = !1, z.current = e, te(), Error.prepareStackTrace = Y;
284
+ Ie = !1, K.current = e, te(), Error.prepareStackTrace = H;
285
285
  }
286
- var ge = r ? r.displayName || r.name : "", de = ge ? ve(ge) : "";
287
- return typeof r == "function" && we.set(r, de), de;
286
+ var ve = r ? r.displayName || r.name : "", me = ve ? de(ve) : "";
287
+ return typeof r == "function" && we.set(r, me), me;
288
288
  }
289
289
  function Xe(r, d, g) {
290
- return fe(r, !1);
290
+ return pe(r, !1);
291
291
  }
292
292
  function qe(r) {
293
293
  var d = r.prototype;
@@ -297,14 +297,14 @@ function An() {
297
297
  if (r == null)
298
298
  return "";
299
299
  if (typeof r == "function")
300
- return fe(r, qe(r));
300
+ return pe(r, qe(r));
301
301
  if (typeof r == "string")
302
- return ve(r);
302
+ return de(r);
303
303
  switch (r) {
304
304
  case o:
305
- return ve("Suspense");
305
+ return de("Suspense");
306
306
  case y:
307
- return ve("SuspenseList");
307
+ return de("SuspenseList");
308
308
  }
309
309
  if (typeof r == "object")
310
310
  switch (r.$$typeof) {
@@ -313,16 +313,16 @@ function An() {
313
313
  case _:
314
314
  return oe(r.type, d, g);
315
315
  case N: {
316
- var T = r, Y = T._payload, e = T._init;
316
+ var T = r, H = T._payload, e = T._init;
317
317
  try {
318
- return oe(e(Y), d, g);
318
+ return oe(e(H), d, g);
319
319
  } catch {
320
320
  }
321
321
  }
322
322
  }
323
323
  return "";
324
324
  }
325
- var me = Object.prototype.hasOwnProperty, $e = {}, Je = w.ReactDebugCurrentFrame;
325
+ var he = Object.prototype.hasOwnProperty, $e = {}, Je = w.ReactDebugCurrentFrame;
326
326
  function Ne(r) {
327
327
  if (r) {
328
328
  var d = r._owner, g = oe(r.type, r._source, d ? d.type : null);
@@ -330,22 +330,22 @@ function An() {
330
330
  } else
331
331
  Je.setExtraStackFrame(null);
332
332
  }
333
- function ot(r, d, g, T, Y) {
333
+ function ot(r, d, g, T, H) {
334
334
  {
335
- var e = Function.call.bind(me);
335
+ var e = Function.call.bind(he);
336
336
  for (var f in r)
337
337
  if (e(r, f)) {
338
338
  var i = void 0;
339
339
  try {
340
340
  if (typeof r[f] != "function") {
341
- var R = Error((T || "React class") + ": " + g + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
342
- throw R.name = "Invariant Violation", R;
341
+ var C = Error((T || "React class") + ": " + g + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
342
+ throw C.name = "Invariant Violation", C;
343
343
  }
344
344
  i = r[f](d, f, T, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
345
- } catch (j) {
346
- i = j;
345
+ } catch (D) {
346
+ i = D;
347
347
  }
348
- i && !(i instanceof Error) && (Ne(Y), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", T || "React class", g, f, typeof i), Ne(null)), i instanceof Error && !(i.message in $e) && ($e[i.message] = !0, Ne(Y), E("Failed %s type: %s", g, i.message), Ne(null));
348
+ i && !(i instanceof Error) && (Ne(H), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", T || "React class", g, f, typeof i), Ne(null)), i instanceof Error && !(i.message in $e) && ($e[i.message] = !0, Ne(H), E("Failed %s type: %s", g, i.message), Ne(null));
349
349
  }
350
350
  }
351
351
  }
@@ -380,8 +380,8 @@ function An() {
380
380
  __source: !0
381
381
  }, He, Fe, Ce;
382
382
  Ce = {};
383
- function ue(r) {
384
- if (me.call(r, "ref")) {
383
+ function fe(r) {
384
+ if (he.call(r, "ref")) {
385
385
  var d = Object.getOwnPropertyDescriptor(r, "ref").get;
386
386
  if (d && d.isReactWarning)
387
387
  return !1;
@@ -389,7 +389,7 @@ function An() {
389
389
  return r.ref !== void 0;
390
390
  }
391
391
  function ze(r) {
392
- if (me.call(r, "key")) {
392
+ if (he.call(r, "key")) {
393
393
  var d = Object.getOwnPropertyDescriptor(r, "key").get;
394
394
  if (d && d.isReactWarning)
395
395
  return !1;
@@ -424,7 +424,7 @@ function An() {
424
424
  });
425
425
  }
426
426
  }
427
- var Z = function(r, d, g, T, Y, e, f) {
427
+ var Q = function(r, d, g, T, H, e, f) {
428
428
  var i = {
429
429
  // This tag allows us to uniquely identify this as a React Element
430
430
  $$typeof: t,
@@ -450,28 +450,28 @@ function An() {
450
450
  configurable: !1,
451
451
  enumerable: !1,
452
452
  writable: !1,
453
- value: Y
453
+ value: H
454
454
  }), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
455
455
  };
456
- function Ee(r, d, g, T, Y) {
456
+ function Ee(r, d, g, T, H) {
457
457
  {
458
- var e, f = {}, i = null, R = null;
459
- g !== void 0 && (Ue(g), i = "" + g), ze(d) && (Ue(d.key), i = "" + d.key), ue(d) && (R = d.ref, Ye(d, Y));
458
+ var e, f = {}, i = null, C = null;
459
+ g !== void 0 && (Ue(g), i = "" + g), ze(d) && (Ue(d.key), i = "" + d.key), fe(d) && (C = d.ref, Ye(d, H));
460
460
  for (e in d)
461
- me.call(d, e) && !We.hasOwnProperty(e) && (f[e] = d[e]);
461
+ he.call(d, e) && !We.hasOwnProperty(e) && (f[e] = d[e]);
462
462
  if (r && r.defaultProps) {
463
- var j = r.defaultProps;
464
- for (e in j)
465
- f[e] === void 0 && (f[e] = j[e]);
463
+ var D = r.defaultProps;
464
+ for (e in D)
465
+ f[e] === void 0 && (f[e] = D[e]);
466
466
  }
467
- if (i || R) {
467
+ if (i || C) {
468
468
  var I = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
469
- i && S(f, I), R && se(f, I);
469
+ i && S(f, I), C && se(f, I);
470
470
  }
471
- return Z(r, i, R, Y, T, Me.current, f);
471
+ return Q(r, i, C, H, T, Me.current, f);
472
472
  }
473
473
  }
474
- var he = w.ReactCurrentOwner, ne = w.ReactDebugCurrentFrame;
474
+ var ge = w.ReactCurrentOwner, ne = w.ReactDebugCurrentFrame;
475
475
  function be(r) {
476
476
  if (r) {
477
477
  var d = r._owner, g = oe(r.type, r._source, d ? d.type : null);
@@ -486,8 +486,8 @@ function An() {
486
486
  }
487
487
  function tt() {
488
488
  {
489
- if (he.current) {
490
- var r = k(he.current.type);
489
+ if (ge.current) {
490
+ var r = k(ge.current.type);
491
491
  if (r)
492
492
  return `
493
493
 
@@ -530,7 +530,7 @@ Check the top-level render call using <` + g + ">.");
530
530
  return;
531
531
  it[g] = !0;
532
532
  var T = "";
533
- r && r._owner && r._owner !== he.current && (T = " It was passed a child from " + k(r._owner.type) + "."), be(r), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, T), be(null);
533
+ r && r._owner && r._owner !== ge.current && (T = " It was passed a child from " + k(r._owner.type) + "."), be(r), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, T), be(null);
534
534
  }
535
535
  }
536
536
  function ct(r, d) {
@@ -545,9 +545,9 @@ Check the top-level render call using <` + g + ">.");
545
545
  else if (et(r))
546
546
  r._store && (r._store.validated = !0);
547
547
  else if (r) {
548
- var Y = U(r);
549
- if (typeof Y == "function" && Y !== r.entries)
550
- for (var e = Y.call(r), f; !(f = e.next()).done; )
548
+ var H = U(r);
549
+ if (typeof H == "function" && H !== r.entries)
550
+ for (var e = H.call(r), f; !(f = e.next()).done; )
551
551
  et(f.value) && lt(f.value, d);
552
552
  }
553
553
  }
@@ -571,8 +571,8 @@ Check the top-level render call using <` + g + ">.");
571
571
  ot(g, r.props, "prop", T, r);
572
572
  } else if (d.PropTypes !== void 0 && !st) {
573
573
  st = !0;
574
- var Y = k(d);
575
- E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Y || "Unknown");
574
+ var H = k(d);
575
+ E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", H || "Unknown");
576
576
  }
577
577
  typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
578
578
  }
@@ -590,18 +590,18 @@ Check the top-level render call using <` + g + ">.");
590
590
  }
591
591
  }
592
592
  var nt = {};
593
- function ut(r, d, g, T, Y, e) {
593
+ function ut(r, d, g, T, H, e) {
594
594
  {
595
- var f = V(r);
595
+ var f = Y(r);
596
596
  if (!f) {
597
597
  var i = "";
598
598
  (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
599
- var R = vt(Y);
600
- R ? i += R : i += tt();
601
- var j;
602
- r === null ? j = "null" : Se(r) ? j = "array" : r !== void 0 && r.$$typeof === t ? (j = "<" + (k(r.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : j = typeof r, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", j, i);
599
+ var C = vt(H);
600
+ C ? i += C : i += tt();
601
+ var D;
602
+ r === null ? D = "null" : Se(r) ? D = "array" : r !== void 0 && r.$$typeof === t ? (D = "<" + (k(r.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : D = 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", D, i);
603
603
  }
604
- var I = Ee(r, d, g, Y, e);
604
+ var I = Ee(r, d, g, H, e);
605
605
  if (I == null)
606
606
  return I;
607
607
  if (f) {
@@ -609,26 +609,26 @@ Check the top-level render call using <` + g + ">.");
609
609
  if (ce !== void 0)
610
610
  if (T)
611
611
  if (Se(ce)) {
612
- for (var ge = 0; ge < ce.length; ge++)
613
- ct(ce[ge], r);
612
+ for (var ve = 0; ve < ce.length; ve++)
613
+ ct(ce[ve], r);
614
614
  Object.freeze && Object.freeze(ce);
615
615
  } else
616
616
  E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
617
617
  else
618
618
  ct(ce, r);
619
619
  }
620
- if (me.call(d, "key")) {
621
- var de = k(r), X = Object.keys(d).filter(function(xn) {
620
+ if (he.call(d, "key")) {
621
+ var me = k(r), q = Object.keys(d).filter(function(xn) {
622
622
  return xn !== "key";
623
- }), rt = X.length > 0 ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}";
624
- if (!nt[de + rt]) {
625
- var xt = X.length > 0 ? "{" + X.join(": ..., ") + ": ...}" : "{}";
623
+ }), rt = q.length > 0 ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}";
624
+ if (!nt[me + rt]) {
625
+ var xt = q.length > 0 ? "{" + q.join(": ..., ") + ": ...}" : "{}";
626
626
  E(`A props object containing a "key" prop is being spread into JSX:
627
627
  let props = %s;
628
628
  <%s {...props} />
629
629
  React keys must be passed directly to JSX without using spread:
630
630
  let props = %s;
631
- <%s key={someKey} {...props} />`, rt, de, xt, de), nt[de + rt] = !0;
631
+ <%s key={someKey} {...props} />`, rt, me, xt, me), nt[me + rt] = !0;
632
632
  }
633
633
  }
634
634
  return r === s ? Ve(I) : It(I), I;
@@ -747,9 +747,9 @@ function ea(n) {
747
747
  onCheck: c,
748
748
  value: p,
749
749
  ...o
750
- } = n, { id: y, inputRef: _, error: N } = Ke(), b = l || !!N, [O, A] = De(u || !1), U = typeof h == "boolean" ? h : O, w = `arkyn_checkbox ${s} ${b ? "error" : ""} ${U ? "checked" : ""} ${a}`;
750
+ } = n, { id: y, inputRef: _, error: N } = Ke(), b = l || !!N, [P, A] = De(u || !1), U = typeof h == "boolean" ? h : P, w = `arkyn_checkbox ${s} ${b ? "error" : ""} ${U ? "checked" : ""} ${a}`;
751
751
  function E() {
752
- const L = O;
752
+ const L = P;
753
753
  A(!L), c && c(L ? "" : p || "checked");
754
754
  }
755
755
  return /* @__PURE__ */ m.jsxs("div", { id: y, className: w, onClick: E, ...o, children: [
@@ -848,36 +848,36 @@ function jn(n, t) {
848
848
  disabled: _,
849
849
  defaultValue: N,
850
850
  readOnly: b,
851
- onFocus: O,
851
+ onFocus: P,
852
852
  onBlur: A,
853
853
  title: U,
854
854
  style: w,
855
855
  onChange: E,
856
856
  ...L
857
857
  } = n;
858
- function H(C) {
859
- let F = Bt(C);
860
- const J = dn(F);
861
- if (!(F.length > fn))
862
- return F = un(F, Ut[J]), F;
858
+ function W(R) {
859
+ let $ = Bt(R);
860
+ const J = dn($);
861
+ if (!($.length > fn))
862
+ return $ = un($, Ut[J]), $;
863
863
  }
864
- const D = y ? "right" : "left", $ = `arkyn_input ${c ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${_ || b || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${u}`, k = { md: 20, lg: 20 }[l];
864
+ const M = y ? "right" : "left", z = `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: $,
867
+ className: z,
868
868
  prefix: Ge(c, k, "prefix"),
869
869
  sufix: Ge(p, k, "sufix"),
870
870
  LeftIcon: o,
871
871
  RightIcon: y,
872
- defaultValue: H(N || ""),
872
+ defaultValue: W(N || ""),
873
873
  disabled: _,
874
874
  readOnly: b,
875
- onFocus: O,
875
+ onFocus: P,
876
876
  onBlur: A,
877
877
  title: U,
878
878
  style: w,
879
879
  onChange: E,
880
- loadingPosition: D,
880
+ loadingPosition: M,
881
881
  iconSize: k,
882
882
  Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: k, strokeWidth: 2.5 }),
883
883
  ...L
@@ -890,46 +890,46 @@ function Dn(n) {
890
890
  style: _,
891
891
  className: N,
892
892
  prefix: b,
893
- sufix: O,
893
+ sufix: P,
894
894
  iconSize: A,
895
895
  loadingPosition: U,
896
896
  isLoading: w,
897
897
  LeftIcon: E,
898
898
  readOnly: L,
899
- onFocus: H,
900
- onBlur: D,
901
- RightIcon: q,
902
- Spinner: K,
903
- onChange: Q,
899
+ onFocus: W,
900
+ onBlur: M,
901
+ RightIcon: X,
902
+ Spinner: ee,
903
+ onChange: V,
904
904
  value: re,
905
- defaultValue: V,
906
- ...$
907
- } = jn({ ...n, id: u, isError: p }, t), [ae, k] = De(V), C = E && !w, F = q && !w, J = U === "left" && w, ie = U === "right" && w;
908
- function ee() {
905
+ defaultValue: Y,
906
+ ...z
907
+ } = jn({ ...n, id: u, isError: p }, t), [ae, k] = De(Y), R = E && !w, $ = X && !w, J = U === "left" && w, ie = U === "right" && w;
908
+ function Z() {
909
909
  o || !(c != null && c.current) || (a(!0), c.current.focus());
910
910
  }
911
911
  function le(x) {
912
- let W = Bt(x.target.value);
913
- const P = dn(W);
914
- W.length > fn || (W = un(W, Ut[P]), x.target.value = W, k(W), Q && Q(x));
912
+ let O = Bt(x.target.value);
913
+ const j = dn(O);
914
+ O.length > fn || (O = un(O, Ut[j]), x.target.value = O, k(O), V && V(x));
915
915
  }
916
916
  function G(x) {
917
- a(!0), H && H(x);
917
+ a(!0), W && W(x);
918
918
  }
919
- function M(x) {
920
- a(!1), D && D(x);
919
+ function F(x) {
920
+ a(!1), M && M(x);
921
921
  }
922
922
  return /* @__PURE__ */ m.jsxs(
923
923
  "section",
924
924
  {
925
925
  title: y,
926
926
  style: _,
927
- onClick: ee,
927
+ onClick: Z,
928
928
  className: N,
929
929
  children: [
930
930
  b,
931
- J && K,
932
- C && /* @__PURE__ */ m.jsx(E, { size: A, strokeWidth: 2.5 }),
931
+ J && ee,
932
+ R && /* @__PURE__ */ m.jsx(E, { size: A, strokeWidth: 2.5 }),
933
933
  /* @__PURE__ */ m.jsx(
934
934
  "input",
935
935
  {
@@ -939,13 +939,13 @@ function Dn(n) {
939
939
  value: re || ae,
940
940
  onFocus: G,
941
941
  onChange: le,
942
- onBlur: M,
943
- ...$
942
+ onBlur: F,
943
+ ...z
944
944
  }
945
945
  ),
946
- F && /* @__PURE__ */ m.jsx(q, { size: A, strokeWidth: 2.5 }),
947
- ie && K,
948
- O
946
+ $ && /* @__PURE__ */ m.jsx(X, { size: A, strokeWidth: 2.5 }),
947
+ ie && ee,
948
+ P
949
949
  ]
950
950
  }
951
951
  );
@@ -964,17 +964,17 @@ function Mn(n, t) {
964
964
  disabled: _,
965
965
  readOnly: N,
966
966
  onFocus: b,
967
- onBlur: O,
967
+ onBlur: P,
968
968
  title: A,
969
969
  style: U,
970
970
  showCents: w = !1,
971
971
  max: E = 1e9,
972
972
  onChange: L,
973
- ...H
974
- } = n, D = y ? "right" : "left", $ = `arkyn_input ${c ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${_ || N || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${u}`, k = { md: 20, lg: 20 }[l];
973
+ ...W
974
+ } = n, M = y ? "right" : "left", z = `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: $,
977
+ className: z,
978
978
  prefix: Ge(c, k, "prefix"),
979
979
  sufix: Ge(p, k, "sufix"),
980
980
  LeftIcon: o,
@@ -982,16 +982,16 @@ function Mn(n, t) {
982
982
  disabled: _,
983
983
  readOnly: N,
984
984
  onFocus: b,
985
- onBlur: O,
985
+ onBlur: P,
986
986
  title: A,
987
987
  style: U,
988
988
  max: E,
989
989
  onChange: L,
990
990
  showCents: w,
991
- loadingPosition: D,
991
+ loadingPosition: M,
992
992
  iconSize: k,
993
993
  Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: k, strokeWidth: 2.5 }),
994
- ...H
994
+ ...W
995
995
  };
996
996
  }
997
997
  const zn = /^[1-9]{1}$/, $n = /^[0-9]{1}$/, Xt = 8;
@@ -1026,65 +1026,65 @@ function Un(n) {
1026
1026
  style: _,
1027
1027
  className: N,
1028
1028
  prefix: b,
1029
- sufix: O,
1029
+ sufix: P,
1030
1030
  iconSize: A,
1031
1031
  loadingPosition: U,
1032
1032
  isLoading: w,
1033
1033
  LeftIcon: E,
1034
1034
  readOnly: L,
1035
- onFocus: H,
1036
- onBlur: D,
1037
- RightIcon: q,
1038
- Spinner: K,
1039
- value: Q,
1035
+ onFocus: W,
1036
+ onBlur: M,
1037
+ RightIcon: X,
1038
+ Spinner: ee,
1039
+ value: V,
1040
1040
  max: re,
1041
- onKeyDown: V,
1042
- onChange: $,
1041
+ onKeyDown: Y,
1042
+ onChange: z,
1043
1043
  showCents: ae,
1044
1044
  defaultValue: k,
1045
- ...C
1046
- } = Mn({ ...n, id: u, isError: p }, t), [F, J] = De(k * 100 || 0), ie = E && !w, ee = q && !w, le = U === "left" && w, G = U === "right" && w;
1047
- function M() {
1045
+ ...R
1046
+ } = Mn({ ...n, id: u, isError: p }, t), [$, J] = De(k * 100 || 0), ie = E && !w, Z = X && !w, le = U === "left" && w, G = U === "right" && w;
1047
+ function F() {
1048
1048
  o || !(c != null && c.current) || (a(!0), c.current.focus());
1049
1049
  }
1050
1050
  function x(te) {
1051
- Bn({ currencyValue: F, event: te, max: re, setCurrencyValue: J }), $ && $(F / 100), V && V(te);
1051
+ Bn({ currencyValue: $, event: te, max: re, setCurrencyValue: J }), z && z($ / 100), Y && Y(te);
1052
1052
  }
1053
- function W(te) {
1054
- a(!0), H && H(te);
1053
+ function O(te) {
1054
+ a(!0), W && W(te);
1055
1055
  }
1056
- function P(te) {
1057
- a(!1), D && D(te);
1056
+ function j(te) {
1057
+ a(!1), M && M(te);
1058
1058
  }
1059
1059
  return /* @__PURE__ */ m.jsxs(
1060
1060
  "section",
1061
1061
  {
1062
1062
  title: y,
1063
1063
  style: _,
1064
- onClick: M,
1064
+ onClick: F,
1065
1065
  className: N,
1066
1066
  children: [
1067
1067
  b,
1068
- le && K,
1068
+ le && ee,
1069
1069
  ie && /* @__PURE__ */ m.jsx(E, { size: A, strokeWidth: 2.5 }),
1070
1070
  /* @__PURE__ */ m.jsx(
1071
1071
  "input",
1072
1072
  {
1073
- value: Fn(Q || F, ae),
1073
+ value: Fn(V || $, ae),
1074
1074
  onKeyDown: x,
1075
1075
  disabled: o || w,
1076
1076
  readOnly: L,
1077
1077
  ref: c,
1078
- onFocus: W,
1079
- onBlur: P,
1078
+ onFocus: O,
1079
+ onBlur: j,
1080
1080
  onChange: () => {
1081
1081
  },
1082
- ...C
1082
+ ...R
1083
1083
  }
1084
1084
  ),
1085
- G && K,
1086
- ee && /* @__PURE__ */ m.jsx(q, { size: A, strokeWidth: 2.5 }),
1087
- O
1085
+ G && ee,
1086
+ Z && /* @__PURE__ */ m.jsx(X, { size: A, strokeWidth: 2.5 }),
1087
+ P
1088
1088
  ]
1089
1089
  }
1090
1090
  );
@@ -1103,17 +1103,17 @@ function Wn(n, t) {
1103
1103
  disabled: _,
1104
1104
  readOnly: N,
1105
1105
  onFocus: b,
1106
- onBlur: O,
1106
+ onBlur: P,
1107
1107
  title: A,
1108
1108
  style: U,
1109
1109
  onChange: w,
1110
1110
  showMask: E = !1,
1111
1111
  type: L,
1112
- ...H
1113
- } = n, D = y ? "right" : "left", $ = `arkyn_input ${c ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${_ || N || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${u}`, k = { md: 20, lg: 20 }[l];
1112
+ ...W
1113
+ } = n, M = y ? "right" : "left", z = `arkyn_input ${c ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${_ || N || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${u}`, k = { md: 20, lg: 20 }[l];
1114
1114
  return {
1115
1115
  isLoading: a,
1116
- className: $,
1116
+ className: z,
1117
1117
  prefix: Ge(c, k, "prefix"),
1118
1118
  sufix: Ge(p, k, "sufix"),
1119
1119
  LeftIcon: o,
@@ -1121,15 +1121,15 @@ function Wn(n, t) {
1121
1121
  disabled: _,
1122
1122
  readOnly: N,
1123
1123
  onFocus: b,
1124
- onBlur: O,
1124
+ onBlur: P,
1125
1125
  title: A,
1126
1126
  style: U,
1127
1127
  onChange: w,
1128
- loadingPosition: D,
1128
+ loadingPosition: M,
1129
1129
  iconSize: k,
1130
1130
  showMask: E,
1131
1131
  Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: k, strokeWidth: 2.5 }),
1132
- ...H
1132
+ ...W
1133
1133
  };
1134
1134
  }
1135
1135
  const Hn = En((n, t) => /* @__PURE__ */ m.jsx("input", { ref: t, ...n }));
@@ -1140,26 +1140,26 @@ function Yn(n) {
1140
1140
  style: _,
1141
1141
  className: N,
1142
1142
  prefix: b,
1143
- sufix: O,
1143
+ sufix: P,
1144
1144
  iconSize: A,
1145
1145
  loadingPosition: U,
1146
1146
  isLoading: w,
1147
1147
  LeftIcon: E,
1148
1148
  readOnly: L,
1149
- onFocus: H,
1150
- onBlur: D,
1151
- RightIcon: q,
1152
- Spinner: K,
1153
- ...Q
1154
- } = Wn({ ...n, id: u, isError: p }, t), re = E && !w, V = q && !w, $ = U === "left" && w, ae = U === "right" && w;
1149
+ onFocus: W,
1150
+ onBlur: M,
1151
+ RightIcon: X,
1152
+ Spinner: ee,
1153
+ ...V
1154
+ } = Wn({ ...n, id: u, isError: p }, t), re = E && !w, Y = X && !w, z = U === "left" && w, ae = U === "right" && w;
1155
1155
  function k() {
1156
1156
  o || !(c != null && c.current) || (a(!0), c.current.focus());
1157
1157
  }
1158
- function C(J) {
1159
- a(!0), H && H(J);
1158
+ function R(J) {
1159
+ a(!0), W && W(J);
1160
1160
  }
1161
- function F(J) {
1162
- a(!1), D && D(J);
1161
+ function $(J) {
1162
+ a(!1), M && M(J);
1163
1163
  }
1164
1164
  return /* @__PURE__ */ m.jsxs(
1165
1165
  "section",
@@ -1170,21 +1170,21 @@ function Yn(n) {
1170
1170
  className: N,
1171
1171
  children: [
1172
1172
  b,
1173
- $ && K,
1173
+ z && ee,
1174
1174
  re && /* @__PURE__ */ m.jsx(E, { size: A, strokeWidth: 2.5 }),
1175
1175
  /* @__PURE__ */ m.jsx(
1176
1176
  kn,
1177
1177
  {
1178
1178
  component: Hn,
1179
1179
  ref: c,
1180
- onFocus: C,
1181
- onBlur: F,
1182
- ...Q
1180
+ onFocus: R,
1181
+ onBlur: $,
1182
+ ...V
1183
1183
  }
1184
1184
  ),
1185
- V && /* @__PURE__ */ m.jsx(q, { size: A, strokeWidth: 2.5 }),
1186
- ae && K,
1187
- O
1185
+ Y && /* @__PURE__ */ m.jsx(X, { size: A, strokeWidth: 2.5 }),
1186
+ ae && ee,
1187
+ P
1188
1188
  ]
1189
1189
  }
1190
1190
  );
@@ -1203,29 +1203,29 @@ function Vn(n, t) {
1203
1203
  disabled: _,
1204
1204
  readOnly: N,
1205
1205
  onFocus: b,
1206
- onBlur: O,
1206
+ onBlur: P,
1207
1207
  title: A,
1208
1208
  style: U,
1209
1209
  onChange: w,
1210
1210
  ...E
1211
- } = n, L = y ? "right" : "left", re = `arkyn_input ${c ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${_ || N || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${u}`, $ = { md: 20, lg: 20 }[l];
1211
+ } = n, L = y ? "right" : "left", re = `arkyn_input ${c ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${_ || N || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${u}`, z = { md: 20, lg: 20 }[l];
1212
1212
  return {
1213
1213
  isLoading: a,
1214
1214
  className: re,
1215
- prefix: Ge(c, $, "prefix"),
1216
- sufix: Ge(p, $, "sufix"),
1215
+ prefix: Ge(c, z, "prefix"),
1216
+ sufix: Ge(p, z, "sufix"),
1217
1217
  LeftIcon: o,
1218
1218
  RightIcon: y,
1219
1219
  disabled: _,
1220
1220
  readOnly: N,
1221
1221
  onFocus: b,
1222
- onBlur: O,
1222
+ onBlur: P,
1223
1223
  title: A,
1224
1224
  style: U,
1225
1225
  onChange: w,
1226
1226
  loadingPosition: L,
1227
- iconSize: $,
1228
- Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: $, strokeWidth: 2.5 }),
1227
+ iconSize: z,
1228
+ Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: z, strokeWidth: 2.5 }),
1229
1229
  ...E
1230
1230
  };
1231
1231
  }
@@ -1236,54 +1236,54 @@ function Gn(n) {
1236
1236
  style: _,
1237
1237
  className: N,
1238
1238
  prefix: b,
1239
- sufix: O,
1239
+ sufix: P,
1240
1240
  iconSize: A,
1241
1241
  loadingPosition: U,
1242
1242
  isLoading: w,
1243
1243
  LeftIcon: E,
1244
1244
  readOnly: L,
1245
- onFocus: H,
1246
- onBlur: D,
1247
- RightIcon: q,
1248
- type: K,
1249
- Spinner: Q,
1245
+ onFocus: W,
1246
+ onBlur: M,
1247
+ RightIcon: X,
1248
+ type: ee,
1249
+ Spinner: V,
1250
1250
  ...re
1251
- } = Vn({ ...n, id: u, isError: p }, t), V = E && !w, $ = q && !w, ae = U === "left" && w, k = U === "right" && w;
1252
- function C() {
1251
+ } = Vn({ ...n, id: u, isError: p }, t), Y = E && !w, z = X && !w, ae = U === "left" && w, k = U === "right" && w;
1252
+ function R() {
1253
1253
  o || !(c != null && c.current) || (a(!0), c.current.focus());
1254
1254
  }
1255
- function F(ie) {
1256
- a(!0), H && H(ie);
1255
+ function $(ie) {
1256
+ a(!0), W && W(ie);
1257
1257
  }
1258
1258
  function J(ie) {
1259
- a(!1), D && D(ie);
1259
+ a(!1), M && M(ie);
1260
1260
  }
1261
- return K === "hidden" ? /* @__PURE__ */ m.jsx("input", { type: "hidden", ref: c, ...re }) : /* @__PURE__ */ m.jsxs(
1261
+ return ee === "hidden" ? /* @__PURE__ */ m.jsx("input", { type: "hidden", ref: c, ...re }) : /* @__PURE__ */ m.jsxs(
1262
1262
  "section",
1263
1263
  {
1264
1264
  title: y,
1265
1265
  style: _,
1266
- onClick: C,
1266
+ onClick: R,
1267
1267
  className: N,
1268
1268
  children: [
1269
1269
  b,
1270
- ae && Q,
1271
- V && /* @__PURE__ */ m.jsx(E, { size: A, strokeWidth: 2.5 }),
1270
+ ae && V,
1271
+ Y && /* @__PURE__ */ m.jsx(E, { size: A, strokeWidth: 2.5 }),
1272
1272
  /* @__PURE__ */ m.jsx(
1273
1273
  "input",
1274
1274
  {
1275
1275
  disabled: o || w,
1276
1276
  readOnly: L,
1277
1277
  ref: c,
1278
- onFocus: F,
1278
+ onFocus: $,
1279
1279
  onBlur: J,
1280
- type: K,
1280
+ type: ee,
1281
1281
  ...re
1282
1282
  }
1283
1283
  ),
1284
- $ && /* @__PURE__ */ m.jsx(q, { size: A, strokeWidth: 2.5 }),
1285
- k && Q,
1286
- O
1284
+ z && /* @__PURE__ */ m.jsx(X, { size: A, strokeWidth: 2.5 }),
1285
+ k && V,
1286
+ P
1287
1287
  ]
1288
1288
  }
1289
1289
  );
@@ -1313,101 +1313,104 @@ function Xn(n, t) {
1313
1313
  onFocus: _,
1314
1314
  onBlur: N,
1315
1315
  title: b,
1316
- style: O,
1316
+ style: P,
1317
1317
  isSearchable: A = !1,
1318
- ...U
1319
- } = n, D = `arkyn_select ${c ? "hasPrefix" : ""} ${h} ${l} ${o || y || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${u}`, K = { md: 20, lg: 20 }[l];
1318
+ closeOnSelect: U = !0,
1319
+ ...w
1320
+ } = n, X = `arkyn_select ${c ? "hasPrefix" : ""} ${h} ${l} ${o || y || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${u}`, V = { md: 20, lg: 20 }[l];
1320
1321
  return {
1321
1322
  isLoading: a,
1322
- className: D,
1323
- prefix: Kn(c, K, "prefix"),
1323
+ className: X,
1324
+ prefix: Kn(c, V, "prefix"),
1324
1325
  LeftIcon: p,
1325
1326
  disabled: o,
1326
1327
  readOnly: y,
1327
1328
  onFocus: _,
1328
1329
  onBlur: N,
1329
1330
  title: b,
1330
- style: O,
1331
+ closeOnSelect: U,
1332
+ style: P,
1331
1333
  isSearchable: A,
1332
- iconSize: K,
1333
- Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: K, strokeWidth: 2.5 }),
1334
- ...U
1334
+ iconSize: V,
1335
+ Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: V, strokeWidth: 2.5 }),
1336
+ ...w
1335
1337
  };
1336
1338
  }
1337
1339
  function oa(n) {
1338
- var te;
1340
+ var K;
1339
1341
  const [t, a] = De(!1), { inputRef: s, id: l, error: u } = Ke(), h = at(null), c = s || h, p = n.isError || !!u, {
1340
1342
  disabled: o,
1341
1343
  title: y,
1342
1344
  style: _,
1343
1345
  className: N,
1344
1346
  prefix: b,
1345
- iconSize: O,
1347
+ iconSize: P,
1346
1348
  isLoading: A,
1347
1349
  LeftIcon: U,
1348
1350
  value: w = null,
1349
1351
  defaultValue: E = "",
1350
1352
  readOnly: L,
1351
- onFocus: H,
1352
- onBlur: D,
1353
- Spinner: q,
1354
- name: K,
1355
- isSearchable: Q,
1353
+ onFocus: W,
1354
+ onBlur: M,
1355
+ Spinner: X,
1356
+ name: ee,
1357
+ isSearchable: V,
1356
1358
  placeholder: re,
1357
- onSelect: V,
1358
- options: $,
1359
+ onSelect: Y,
1360
+ options: z,
1359
1361
  optionMaxHeight: ae,
1360
- ...k
1361
- } = Xn({ ...n, id: l, isError: p }, t), [C, F] = De(E), [J, ie] = De("");
1362
- function ee() {
1362
+ closeOnSelect: k,
1363
+ ...R
1364
+ } = Xn({ ...n, id: l, isError: p }, t), [$, J] = De(E), [ie, Z] = De("");
1365
+ function le() {
1363
1366
  o || !(c != null && c.current) || (a(!0), c.current.focus());
1364
1367
  }
1365
- function le(z) {
1366
- a(!0), H && H(z);
1368
+ function G(ue) {
1369
+ a(!0), W && W(ue);
1367
1370
  }
1368
- function G() {
1369
- a(!1), D && c.current && c.current.blur();
1371
+ function F() {
1372
+ a(!1), M && c.current && c.current.blur();
1370
1373
  }
1371
- const M = typeof w == "string" ? w : C, x = ((te = $.find((z) => z.value === M)) == null ? void 0 : te.label) || "", W = () => {
1372
- if (Q) {
1373
- if (!t && x)
1374
+ const x = typeof w == "string" ? w : $, O = ((K = z.find((ue) => ue.value === x)) == null ? void 0 : K.label) || "", j = () => {
1375
+ if (V) {
1376
+ if (!t && O)
1374
1377
  return !0;
1375
- if (!t && !x || t)
1378
+ if (!t && !O || t)
1376
1379
  return !1;
1377
1380
  }
1378
- if (!Q) {
1379
- if (!t && x)
1381
+ if (!V) {
1382
+ if (!t && O)
1380
1383
  return !0;
1381
- if (!t && !x)
1384
+ if (!t && !O)
1382
1385
  return !1;
1383
- if (t && x)
1386
+ if (t && O)
1384
1387
  return !0;
1385
- if (t && !x)
1388
+ if (t && !O)
1386
1389
  return !1;
1387
1390
  }
1388
- }, P = $.filter((z) => Q ? z.label.toLowerCase().includes(J.toLowerCase()) : !0);
1391
+ }, te = z.filter((ue) => V ? ue.label.toLowerCase().includes(ie.toLowerCase()) : !0);
1389
1392
  return /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
1390
1393
  /* @__PURE__ */ m.jsxs(
1391
1394
  "section",
1392
1395
  {
1393
1396
  title: y,
1394
1397
  style: _,
1395
- onClick: ee,
1396
- className: `${N} placeholder_dark_${W()}`,
1398
+ onClick: le,
1399
+ className: `${N} placeholder_dark_${j()}`,
1397
1400
  children: [
1398
1401
  b,
1399
- U && /* @__PURE__ */ m.jsx(U, { size: O, strokeWidth: 2.5 }),
1402
+ U && /* @__PURE__ */ m.jsx(U, { size: P, strokeWidth: 2.5 }),
1400
1403
  /* @__PURE__ */ m.jsx(
1401
1404
  "input",
1402
1405
  {
1403
1406
  disabled: o || A,
1404
- readOnly: !Q,
1405
- value: J || "",
1406
- placeholder: x || re,
1407
- onFocus: le,
1408
- onBlur: () => ie(""),
1409
- ...k,
1410
- onChange: (z) => ie(z.target.value)
1407
+ readOnly: !V,
1408
+ value: ie || "",
1409
+ placeholder: O || re,
1410
+ onFocus: G,
1411
+ onBlur: () => Z(""),
1412
+ ...R,
1413
+ onChange: (ue) => Z(ue.target.value)
1411
1414
  }
1412
1415
  ),
1413
1416
  /* @__PURE__ */ m.jsx(
@@ -1415,8 +1418,8 @@ function oa(n) {
1415
1418
  {
1416
1419
  type: "hidden",
1417
1420
  ref: c,
1418
- name: K,
1419
- value: M || "",
1421
+ name: ee,
1422
+ value: x || "",
1420
1423
  readOnly: !0
1421
1424
  }
1422
1425
  ),
@@ -1426,22 +1429,22 @@ function oa(n) {
1426
1429
  className: "arkyn_select_content",
1427
1430
  style: { overflow: "auto", maxHeight: ae },
1428
1431
  children: [
1429
- P.map(({ label: z, value: pe }) => /* @__PURE__ */ m.jsxs(
1432
+ te.map(({ label: ue, value: de }) => /* @__PURE__ */ m.jsxs(
1430
1433
  "li",
1431
1434
  {
1432
- className: M === pe ? "active" : "",
1435
+ className: x === de ? "active" : "",
1433
1436
  onClick: () => {
1434
- F(C !== pe ? pe : ""), V && V({ label: z, value: pe });
1437
+ J($ !== de ? de : ""), Y && Y({ label: ue, value: de }), k && setTimeout(() => F(), 100);
1435
1438
  },
1436
1439
  children: [
1437
- z,
1440
+ ue,
1438
1441
  " ",
1439
1442
  /* @__PURE__ */ m.jsx(on, {})
1440
1443
  ]
1441
1444
  },
1442
- pe
1445
+ de
1443
1446
  )),
1444
- P.length <= 0 && /* @__PURE__ */ m.jsx("p", { children: "Sem opções disponíveis" })
1447
+ te.length <= 0 && /* @__PURE__ */ m.jsx("p", { children: "Sem opções disponíveis" })
1445
1448
  ]
1446
1449
  }
1447
1450
  ),
@@ -1449,15 +1452,15 @@ function oa(n) {
1449
1452
  Tn,
1450
1453
  {
1451
1454
  className: "arkyn_select_arrow",
1452
- size: O,
1455
+ size: P,
1453
1456
  strokeWidth: 2.5
1454
1457
  }
1455
1458
  ),
1456
- A && q
1459
+ A && X
1457
1460
  ]
1458
1461
  }
1459
1462
  ),
1460
- t && /* @__PURE__ */ m.jsx("aside", { className: "arkyn_select_overlay", onClick: G })
1463
+ t && /* @__PURE__ */ m.jsx("aside", { className: "arkyn_select_overlay", onClick: F })
1461
1464
  ] });
1462
1465
  }
1463
1466
  function qn(n) {
@@ -1719,33 +1722,33 @@ function bn() {
1719
1722
  let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : yr(), t = (e) => bn(e);
1720
1723
  if (t.version = "3.0.10", t.removed = [], !n || !n.document || n.document.nodeType !== 9)
1721
1724
  return t.isSupported = !1, t;
1722
- let { document: a } = n, s = a, l = s.currentScript, { DocumentFragment: u, HTMLTemplateElement: h, Node: c, Element: p, NodeFilter: o, NamedNodeMap: y = n.NamedNodeMap || n.MozNamedAttrMap, HTMLFormElement: _, DOMParser: N, trustedTypes: b } = n, O = p.prototype, A = Et(O, "cloneNode"), U = Et(O, "nextSibling"), w = Et(O, "childNodes"), E = Et(O, "parentNode");
1725
+ 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, P = p.prototype, A = Et(P, "cloneNode"), U = Et(P, "nextSibling"), w = Et(P, "childNodes"), E = Et(P, "parentNode");
1723
1726
  if (typeof h == "function") {
1724
1727
  let e = a.createElement("template");
1725
1728
  e.content && e.content.ownerDocument && (a = e.content.ownerDocument);
1726
1729
  }
1727
- let L, H = "", { implementation: D, createNodeIterator: q, createDocumentFragment: K, getElementsByTagName: Q } = a, { importNode: re } = s, V = {};
1728
- t.isSupported = typeof hn == "function" && typeof E == "function" && D && D.createHTMLDocument !== void 0;
1729
- let { MUSTACHE_EXPR: $, ERB_EXPR: ae, TMPLIT_EXPR: k, DATA_ATTR: C, ARIA_ATTR: F, IS_SCRIPT_OR_DATA: J, ATTR_WHITESPACE: ie, CUSTOM_ELEMENT: ee } = rn, { IS_ALLOWED_URI: le } = rn, G = null, M = B({}, [...Qt, ...Ot, ...Pt, ...jt, ...en]), x = null, W = B({}, [...tn, ...Dt, ...nn, ...St]), P = Object.seal(gn(null, { tagNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, attributeNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, allowCustomizedBuiltInElements: { writable: !0, configurable: !1, enumerable: !0, value: !1 } })), te = null, z = null, pe = !0, ve = !0, Ie = !1, we = !0, Ae = !1, fe = !1, Xe = !1, qe = !1, oe = !1, me = !1, $e = !1, Je = !0, Ne = !1, ot = "user-content-", Be = !0, Se = !1, ye = {}, Le = null, ke = B({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]), Ue = null, Me = B({}, ["audio", "video", "img", "source", "image", "track"]), We = null, He = B({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Fe = "http://www.w3.org/1998/Math/MathML", Ce = "http://www.w3.org/2000/svg", ue = "http://www.w3.org/1999/xhtml", ze = ue, Ye = !1, S = null, se = B({}, [Fe, Ce, ue], Lt), Z = null, Ee = ["application/xhtml+xml", "text/html"], he = "text/html", ne = null, be = null, st = a.createElement("form"), et = function(e) {
1730
+ let L, W = "", { implementation: M, createNodeIterator: X, createDocumentFragment: ee, getElementsByTagName: V } = a, { importNode: re } = s, Y = {};
1731
+ t.isSupported = typeof hn == "function" && typeof E == "function" && M && M.createHTMLDocument !== void 0;
1732
+ let { MUSTACHE_EXPR: z, ERB_EXPR: ae, TMPLIT_EXPR: k, DATA_ATTR: R, ARIA_ATTR: $, IS_SCRIPT_OR_DATA: J, ATTR_WHITESPACE: ie, CUSTOM_ELEMENT: Z } = rn, { IS_ALLOWED_URI: le } = rn, G = null, F = B({}, [...Qt, ...Ot, ...Pt, ...jt, ...en]), x = null, O = B({}, [...tn, ...Dt, ...nn, ...St]), j = 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, K = null, ue = !0, de = !0, Ie = !1, we = !0, Ae = !1, pe = !1, Xe = !1, qe = !1, oe = !1, he = !1, $e = !1, Je = !0, Ne = !1, ot = "user-content-", Be = !0, Se = !1, ye = {}, Le = null, ke = B({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]), Ue = null, 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", fe = "http://www.w3.org/1999/xhtml", ze = fe, Ye = !1, S = null, se = B({}, [Fe, Ce, fe], Lt), Q = null, Ee = ["application/xhtml+xml", "text/html"], ge = "text/html", ne = null, be = null, st = a.createElement("form"), et = function(e) {
1730
1733
  return e instanceof RegExp || e instanceof Function;
1731
1734
  }, tt = function() {
1732
1735
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1733
1736
  if (!(be && be === e)) {
1734
- if ((!e || typeof e != "object") && (e = {}), e = Ze(e), Z = Ee.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? he : e.PARSER_MEDIA_TYPE, ne = Z === "application/xhtml+xml" ? Lt : Nt, G = Pe(e, "ALLOWED_TAGS") ? B({}, e.ALLOWED_TAGS, ne) : M, x = Pe(e, "ALLOWED_ATTR") ? B({}, e.ALLOWED_ATTR, ne) : W, S = Pe(e, "ALLOWED_NAMESPACES") ? B({}, e.ALLOWED_NAMESPACES, Lt) : se, We = Pe(e, "ADD_URI_SAFE_ATTR") ? B(Ze(He), e.ADD_URI_SAFE_ATTR, ne) : He, Ue = Pe(e, "ADD_DATA_URI_TAGS") ? B(Ze(Me), e.ADD_DATA_URI_TAGS, ne) : Me, Le = Pe(e, "FORBID_CONTENTS") ? B({}, e.FORBID_CONTENTS, ne) : ke, te = Pe(e, "FORBID_TAGS") ? B({}, e.FORBID_TAGS, ne) : {}, z = Pe(e, "FORBID_ATTR") ? B({}, e.FORBID_ATTR, ne) : {}, ye = Pe(e, "USE_PROFILES") ? e.USE_PROFILES : !1, pe = e.ALLOW_ARIA_ATTR !== !1, ve = e.ALLOW_DATA_ATTR !== !1, Ie = e.ALLOW_UNKNOWN_PROTOCOLS || !1, we = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ae = e.SAFE_FOR_TEMPLATES || !1, fe = e.WHOLE_DOCUMENT || !1, oe = e.RETURN_DOM || !1, me = e.RETURN_DOM_FRAGMENT || !1, $e = e.RETURN_TRUSTED_TYPE || !1, qe = e.FORCE_BODY || !1, Je = e.SANITIZE_DOM !== !1, Ne = e.SANITIZE_NAMED_PROPS || !1, Be = e.KEEP_CONTENT !== !1, Se = e.IN_PLACE || !1, le = e.ALLOWED_URI_REGEXP || vn, ze = e.NAMESPACE || ue, P = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && et(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (P.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && et(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (P.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (P.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ae && (ve = !1), me && (oe = !0), ye && (G = B({}, en), x = [], ye.html === !0 && (B(G, Qt), B(x, tn)), ye.svg === !0 && (B(G, Ot), B(x, Dt), B(x, St)), ye.svgFilters === !0 && (B(G, Pt), B(x, Dt), B(x, St)), ye.mathMl === !0 && (B(G, jt), B(x, nn), B(x, St))), e.ADD_TAGS && (G === M && (G = Ze(G)), B(G, e.ADD_TAGS, ne)), e.ADD_ATTR && (x === W && (x = Ze(x)), B(x, e.ADD_ATTR, ne)), e.ADD_URI_SAFE_ATTR && B(We, e.ADD_URI_SAFE_ATTR, ne), e.FORBID_CONTENTS && (Le === ke && (Le = Ze(Le)), B(Le, e.FORBID_CONTENTS, ne)), Be && (G["#text"] = !0), fe && B(G, ["html", "head", "body"]), G.table && (B(G, ["tbody"]), delete te.tbody), e.TRUSTED_TYPES_POLICY) {
1737
+ if ((!e || typeof e != "object") && (e = {}), e = Ze(e), Q = Ee.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? ge : e.PARSER_MEDIA_TYPE, ne = Q === "application/xhtml+xml" ? Lt : Nt, G = Pe(e, "ALLOWED_TAGS") ? B({}, e.ALLOWED_TAGS, ne) : F, x = Pe(e, "ALLOWED_ATTR") ? B({}, e.ALLOWED_ATTR, ne) : O, 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) : {}, K = Pe(e, "FORBID_ATTR") ? B({}, e.FORBID_ATTR, ne) : {}, ye = Pe(e, "USE_PROFILES") ? e.USE_PROFILES : !1, ue = e.ALLOW_ARIA_ATTR !== !1, de = 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, pe = e.WHOLE_DOCUMENT || !1, oe = e.RETURN_DOM || !1, he = 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 || fe, j = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && et(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (j.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && et(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (j.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (j.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ae && (de = !1), he && (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 === F && (G = Ze(G)), B(G, e.ADD_TAGS, ne)), e.ADD_ATTR && (x === O && (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), pe && B(G, ["html", "head", "body"]), G.table && (B(G, ["tbody"]), delete te.tbody), e.TRUSTED_TYPES_POLICY) {
1735
1738
  if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
1736
1739
  throw ht('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
1737
1740
  if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
1738
1741
  throw ht('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
1739
- L = e.TRUSTED_TYPES_POLICY, H = L.createHTML("");
1742
+ L = e.TRUSTED_TYPES_POLICY, W = L.createHTML("");
1740
1743
  } else
1741
- L === void 0 && (L = br(b, l)), L !== null && typeof H == "string" && (H = L.createHTML(""));
1744
+ L === void 0 && (L = br(b, l)), L !== null && typeof W == "string" && (W = L.createHTML(""));
1742
1745
  xe && xe(e), be = e;
1743
1746
  }
1744
1747
  }, 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
1748
  let f = E(e);
1746
1749
  (!f || !f.tagName) && (f = { namespaceURI: ze, tagName: "template" });
1747
- let i = Nt(e.tagName), R = Nt(f.tagName);
1748
- return S[e.namespaceURI] ? e.namespaceURI === Ce ? f.namespaceURI === ue ? i === "svg" : f.namespaceURI === Fe ? i === "svg" && (R === "annotation-xml" || vt[R]) : !!lt[i] : e.namespaceURI === Fe ? f.namespaceURI === ue ? i === "math" : f.namespaceURI === Ce ? i === "math" && it[R] : !!ct[i] : e.namespaceURI === ue ? f.namespaceURI === Ce && !it[R] || f.namespaceURI === Fe && !vt[R] ? !1 : !ct[i] && (Rt[i] || !lt[i]) : !!(Z === "application/xhtml+xml" && S[e.namespaceURI]) : !1;
1750
+ let i = Nt(e.tagName), C = Nt(f.tagName);
1751
+ return S[e.namespaceURI] ? e.namespaceURI === Ce ? f.namespaceURI === fe ? i === "svg" : f.namespaceURI === Fe ? i === "svg" && (C === "annotation-xml" || vt[C]) : !!lt[i] : e.namespaceURI === Fe ? f.namespaceURI === fe ? i === "math" : f.namespaceURI === Ce ? i === "math" && it[C] : !!ct[i] : e.namespaceURI === fe ? f.namespaceURI === Ce && !it[C] || f.namespaceURI === Fe && !vt[C] ? !1 : !ct[i] && (Rt[i] || !lt[i]) : !!(Q === "application/xhtml+xml" && S[e.namespaceURI]) : !1;
1749
1752
  }, Ve = function(e) {
1750
1753
  mt(t.removed, { element: e });
1751
1754
  try {
@@ -1760,7 +1763,7 @@ function bn() {
1760
1763
  mt(t.removed, { attribute: null, from: f });
1761
1764
  }
1762
1765
  if (f.removeAttribute(e), e === "is" && !x[e])
1763
- if (oe || me)
1766
+ if (oe || he)
1764
1767
  try {
1765
1768
  Ve(f);
1766
1769
  } catch {
@@ -1778,31 +1781,31 @@ function bn() {
1778
1781
  let I = Zt(e, /^[\r\n\t ]+/);
1779
1782
  i = I && I[0];
1780
1783
  }
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)
1784
+ Q === "application/xhtml+xml" && ze === fe && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
1785
+ let C = L ? L.createHTML(e) : e;
1786
+ if (ze === fe)
1784
1787
  try {
1785
- f = new N().parseFromString(R, Z);
1788
+ f = new N().parseFromString(C, Q);
1786
1789
  } catch {
1787
1790
  }
1788
1791
  if (!f || !f.documentElement) {
1789
- f = D.createDocument(ze, "template", null);
1792
+ f = M.createDocument(ze, "template", null);
1790
1793
  try {
1791
- f.documentElement.innerHTML = Ye ? H : R;
1794
+ f.documentElement.innerHTML = Ye ? W : C;
1792
1795
  } catch {
1793
1796
  }
1794
1797
  }
1795
- let j = f.body || f.documentElement;
1796
- return e && i && j.insertBefore(a.createTextNode(i), j.childNodes[0] || null), ze === ue ? Q.call(f, fe ? "html" : "body")[0] : fe ? f.documentElement : j;
1798
+ let D = f.body || f.documentElement;
1799
+ return e && i && D.insertBefore(a.createTextNode(i), D.childNodes[0] || null), ze === fe ? V.call(f, pe ? "html" : "body")[0] : pe ? f.documentElement : D;
1797
1800
  }, yt = function(e) {
1798
- return q.call(e.ownerDocument || e, e, o.SHOW_ELEMENT | o.SHOW_COMMENT | o.SHOW_TEXT | o.SHOW_PROCESSING_INSTRUCTION, null);
1801
+ return X.call(e.ownerDocument || e, e, o.SHOW_ELEMENT | o.SHOW_COMMENT | o.SHOW_TEXT | o.SHOW_PROCESSING_INSTRUCTION, null);
1799
1802
  }, At = function(e) {
1800
1803
  return e instanceof _ && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof y) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
1801
1804
  }, bt = function(e) {
1802
1805
  return typeof c == "function" && e instanceof c;
1803
1806
  }, Oe = function(e, f, i) {
1804
- V[e] && wt(V[e], (R) => {
1805
- R.call(t, f, i, be);
1807
+ Y[e] && wt(Y[e], (C) => {
1808
+ C.call(t, f, i, be);
1806
1809
  });
1807
1810
  }, r = function(e) {
1808
1811
  let f = null;
@@ -1812,79 +1815,79 @@ function bn() {
1812
1815
  if (Oe("uponSanitizeElement", e, { tagName: i, allowedTags: G }), e.hasChildNodes() && !bt(e.firstElementChild) && Te(/<[/\w]/g, e.innerHTML) && Te(/<[/\w]/g, e.textContent))
1813
1816
  return Ve(e), !0;
1814
1817
  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)))
1818
+ if (!te[i] && g(i) && (j.tagNameCheck instanceof RegExp && Te(j.tagNameCheck, i) || j.tagNameCheck instanceof Function && j.tagNameCheck(i)))
1816
1819
  return !1;
1817
1820
  if (Be && !Le[i]) {
1818
- let R = E(e) || e.parentNode, j = w(e) || e.childNodes;
1819
- if (j && R) {
1820
- let I = j.length;
1821
+ let C = E(e) || e.parentNode, D = w(e) || e.childNodes;
1822
+ if (D && C) {
1823
+ let I = D.length;
1821
1824
  for (let ce = I - 1; ce >= 0; --ce)
1822
- R.insertBefore(A(j[ce], !0), U(e));
1825
+ C.insertBefore(A(D[ce], !0), U(e));
1823
1826
  }
1824
1827
  }
1825
1828
  return Ve(e), !0;
1826
1829
  }
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, " ");
1830
+ 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([z, ae, k], (C) => {
1831
+ f = pt(f, C, " ");
1829
1832
  }), e.textContent !== f && (mt(t.removed, { element: e.cloneNode() }), e.textContent = f)), Oe("afterSanitizeElements", e, null), !1);
1830
1833
  }, d = function(e, f, i) {
1831
1834
  if (Je && (f === "id" || f === "name") && (i in a || i in st))
1832
1835
  return !1;
1833
- if (!(ve && !z[f] && Te(C, f)) && !(pe && Te(F, f))) {
1834
- if (!x[f] || z[f]) {
1835
- if (!(g(e) && (P.tagNameCheck instanceof RegExp && Te(P.tagNameCheck, e) || P.tagNameCheck instanceof Function && P.tagNameCheck(e)) && (P.attributeNameCheck instanceof RegExp && Te(P.attributeNameCheck, f) || P.attributeNameCheck instanceof Function && P.attributeNameCheck(f)) || f === "is" && P.allowCustomizedBuiltInElements && (P.tagNameCheck instanceof RegExp && Te(P.tagNameCheck, i) || P.tagNameCheck instanceof Function && P.tagNameCheck(i))))
1836
+ if (!(de && !K[f] && Te(R, f)) && !(ue && Te($, f))) {
1837
+ if (!x[f] || K[f]) {
1838
+ if (!(g(e) && (j.tagNameCheck instanceof RegExp && Te(j.tagNameCheck, e) || j.tagNameCheck instanceof Function && j.tagNameCheck(e)) && (j.attributeNameCheck instanceof RegExp && Te(j.attributeNameCheck, f) || j.attributeNameCheck instanceof Function && j.attributeNameCheck(f)) || f === "is" && j.allowCustomizedBuiltInElements && (j.tagNameCheck instanceof RegExp && Te(j.tagNameCheck, i) || j.tagNameCheck instanceof Function && j.tagNameCheck(i))))
1836
1839
  return !1;
1837
1840
  } 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)
1838
1841
  return !1;
1839
1842
  }
1840
1843
  return !0;
1841
1844
  }, g = function(e) {
1842
- return e !== "annotation-xml" && Zt(e, ee);
1845
+ return e !== "annotation-xml" && Zt(e, Z);
1843
1846
  }, T = function(e) {
1844
1847
  Oe("beforeSanitizeAttributes", e, null);
1845
1848
  let { attributes: f } = e;
1846
1849
  if (!f)
1847
1850
  return;
1848
- let i = { attrName: "", attrValue: "", keepAttr: !0, allowedAttributes: x }, R = f.length;
1849
- for (; R--; ) {
1850
- let j = f[R], { name: I, namespaceURI: ce, value: ge } = j, de = ne(I), X = I === "value" ? ge : or(ge);
1851
- if (i.attrName = de, i.attrValue = X, i.keepAttr = !0, i.forceKeepAttr = void 0, Oe("uponSanitizeAttribute", e, i), X = i.attrValue, i.forceKeepAttr || (nt(I, e), !i.keepAttr))
1851
+ let i = { attrName: "", attrValue: "", keepAttr: !0, allowedAttributes: x }, C = f.length;
1852
+ for (; C--; ) {
1853
+ let D = f[C], { name: I, namespaceURI: ce, value: ve } = D, me = ne(I), q = I === "value" ? ve : or(ve);
1854
+ if (i.attrName = me, i.attrValue = q, i.keepAttr = !0, i.forceKeepAttr = void 0, Oe("uponSanitizeAttribute", e, i), q = i.attrValue, i.forceKeepAttr || (nt(I, e), !i.keepAttr))
1852
1855
  continue;
1853
- if (!we && Te(/\/>/i, X)) {
1856
+ if (!we && Te(/\/>/i, q)) {
1854
1857
  nt(I, e);
1855
1858
  continue;
1856
1859
  }
1857
- Ae && wt([$, ae, k], (xt) => {
1858
- X = pt(X, xt, " ");
1860
+ Ae && wt([z, ae, k], (xt) => {
1861
+ q = pt(q, xt, " ");
1859
1862
  });
1860
1863
  let rt = ne(e.nodeName);
1861
- if (d(rt, de, X)) {
1862
- if (Ne && (de === "id" || de === "name") && (nt(I, e), X = ot + X), L && typeof b == "object" && typeof b.getAttributeType == "function" && !ce)
1863
- switch (b.getAttributeType(rt, de)) {
1864
+ if (d(rt, me, q)) {
1865
+ if (Ne && (me === "id" || me === "name") && (nt(I, e), q = ot + q), L && typeof b == "object" && typeof b.getAttributeType == "function" && !ce)
1866
+ switch (b.getAttributeType(rt, me)) {
1864
1867
  case "TrustedHTML": {
1865
- X = L.createHTML(X);
1868
+ q = L.createHTML(q);
1866
1869
  break;
1867
1870
  }
1868
1871
  case "TrustedScriptURL": {
1869
- X = L.createScriptURL(X);
1872
+ q = L.createScriptURL(q);
1870
1873
  break;
1871
1874
  }
1872
1875
  }
1873
1876
  try {
1874
- ce ? e.setAttributeNS(ce, I, X) : e.setAttribute(I, X), Jt(t.removed);
1877
+ ce ? e.setAttributeNS(ce, I, q) : e.setAttribute(I, q), Jt(t.removed);
1875
1878
  } catch {
1876
1879
  }
1877
1880
  }
1878
1881
  }
1879
1882
  Oe("afterSanitizeAttributes", e, null);
1880
- }, Y = function e(f) {
1881
- let i = null, R = yt(f);
1882
- for (Oe("beforeSanitizeShadowDOM", f, null); i = R.nextNode(); )
1883
+ }, H = function e(f) {
1884
+ let i = null, C = yt(f);
1885
+ for (Oe("beforeSanitizeShadowDOM", f, null); i = C.nextNode(); )
1883
1886
  Oe("uponSanitizeShadowNode", i, null), !r(i) && (i.content instanceof u && e(i.content), T(i));
1884
1887
  Oe("afterSanitizeShadowDOM", f, null);
1885
1888
  };
1886
1889
  return t.sanitize = function(e) {
1887
- let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, R = null, j = null, I = null;
1890
+ let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, C = null, D = null, I = null;
1888
1891
  if (Ye = !e, Ye && (e = "<!-->"), typeof e != "string" && !bt(e))
1889
1892
  if (typeof e.toString == "function") {
1890
1893
  if (e = e.toString(), typeof e != "string")
@@ -1895,37 +1898,37 @@ function bn() {
1895
1898
  return e;
1896
1899
  if (Xe || tt(f), t.removed = [], typeof e == "string" && (Se = !1), Se) {
1897
1900
  if (e.nodeName) {
1898
- let de = ne(e.nodeName);
1899
- if (!G[de] || te[de])
1901
+ let me = ne(e.nodeName);
1902
+ if (!G[me] || te[me])
1900
1903
  throw ht("root node is forbidden and cannot be sanitized in-place");
1901
1904
  }
1902
1905
  } else if (e instanceof c)
1903
- i = ut("<!---->"), R = i.ownerDocument.importNode(e, !0), R.nodeType === 1 && R.nodeName === "BODY" || R.nodeName === "HTML" ? i = R : i.appendChild(R);
1906
+ i = ut("<!---->"), C = i.ownerDocument.importNode(e, !0), C.nodeType === 1 && C.nodeName === "BODY" || C.nodeName === "HTML" ? i = C : i.appendChild(C);
1904
1907
  else {
1905
- if (!oe && !Ae && !fe && e.indexOf("<") === -1)
1908
+ if (!oe && !Ae && !pe && e.indexOf("<") === -1)
1906
1909
  return L && $e ? L.createHTML(e) : e;
1907
1910
  if (i = ut(e), !i)
1908
- return oe ? null : $e ? H : "";
1911
+ return oe ? null : $e ? W : "";
1909
1912
  }
1910
1913
  i && qe && Ve(i.firstChild);
1911
1914
  let ce = yt(Se ? e : i);
1912
- for (; j = ce.nextNode(); )
1913
- r(j) || (j.content instanceof u && Y(j.content), T(j));
1915
+ for (; D = ce.nextNode(); )
1916
+ r(D) || (D.content instanceof u && H(D.content), T(D));
1914
1917
  if (Se)
1915
1918
  return e;
1916
1919
  if (oe) {
1917
- if (me)
1918
- for (I = K.call(i.ownerDocument); i.firstChild; )
1920
+ if (he)
1921
+ for (I = ee.call(i.ownerDocument); i.firstChild; )
1919
1922
  I.appendChild(i.firstChild);
1920
1923
  else
1921
1924
  I = i;
1922
1925
  return (x.shadowroot || x.shadowrootmode) && (I = re.call(s, I, !0)), I;
1923
1926
  }
1924
- let ge = fe ? i.outerHTML : i.innerHTML;
1925
- return fe && G["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && Te(yn, i.ownerDocument.doctype.name) && (ge = "<!DOCTYPE " + i.ownerDocument.doctype.name + `>
1926
- ` + ge), Ae && wt([$, ae, k], (de) => {
1927
- ge = pt(ge, de, " ");
1928
- }), L && $e ? L.createHTML(ge) : ge;
1927
+ let ve = pe ? i.outerHTML : i.innerHTML;
1928
+ return pe && G["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && Te(yn, i.ownerDocument.doctype.name) && (ve = "<!DOCTYPE " + i.ownerDocument.doctype.name + `>
1929
+ ` + ve), Ae && wt([z, ae, k], (me) => {
1930
+ ve = pt(ve, me, " ");
1931
+ }), L && $e ? L.createHTML(ve) : ve;
1929
1932
  }, t.setConfig = function() {
1930
1933
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1931
1934
  tt(e), Xe = !0;
@@ -1933,17 +1936,17 @@ function bn() {
1933
1936
  be = null, Xe = !1;
1934
1937
  }, t.isValidAttribute = function(e, f, i) {
1935
1938
  be || tt({});
1936
- let R = ne(e), j = ne(f);
1937
- return d(R, j, i);
1939
+ let C = ne(e), D = ne(f);
1940
+ return d(C, D, i);
1938
1941
  }, t.addHook = function(e, f) {
1939
- typeof f == "function" && (V[e] = V[e] || [], mt(V[e], f));
1942
+ typeof f == "function" && (Y[e] = Y[e] || [], mt(Y[e], f));
1940
1943
  }, t.removeHook = function(e) {
1941
- if (V[e])
1942
- return Jt(V[e]);
1944
+ if (Y[e])
1945
+ return Jt(Y[e]);
1943
1946
  }, t.removeHooks = function(e) {
1944
- V[e] && (V[e] = []);
1947
+ Y[e] && (Y[e] = []);
1945
1948
  }, t.removeAllHooks = function() {
1946
- V = {};
1949
+ Y = {};
1947
1950
  }, t;
1948
1951
  }
1949
1952
  var xr = bn(), wr = (n) => {
@@ -2034,22 +2037,22 @@ function Fr(...n) {
2034
2037
  }
2035
2038
  var Br = (n) => {
2036
2039
  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(() => {
2040
+ let { invert: p, toast: o, unstyled: y, interacting: _, setHeights: N, visibleToasts: b, heights: P, index: A, toasts: U, expanded: w, removeToast: E, closeButton: L, style: W, cancelButtonStyle: M, actionButtonStyle: X, className: ee = "", descriptionClassName: V = "", duration: re, position: Y, gap: z, loadingIcon: ae, expandByDefault: k, classNames: R, icons: $, closeButtonAriaLabel: J = "Close toast", pauseWhenPageIsHidden: ie, cn: Z } = n, [le, G] = v.useState(!1), [F, x] = v.useState(!1), [O, j] = v.useState(!1), [te, K] = v.useState(!1), [ue, de] = v.useState(0), [Ie, we] = v.useState(0), Ae = v.useRef(null), pe = v.useRef(null), Xe = A === 0, qe = A + 1 <= b, oe = o.type, he = o.dismissible !== !1, $e = o.className || "", Je = o.descriptionClassName || "", Ne = v.useMemo(() => P.findIndex((S) => S.toastId === o.id) || 0, [P, o.id]), ot = v.useMemo(() => {
2038
2041
  var S;
2039
2042
  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(() => {
2043
+ }, [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] = Y.split("-"), We = v.useMemo(() => P.reduce((S, se, Q) => Q >= Ne ? S : S + se.height, 0), [P, Ne]), He = Cr(), Fe = o.invert || p, Ce = oe === "loading";
2044
+ ye.current = v.useMemo(() => Ne * z + We, [Ne, We]), v.useEffect(() => {
2042
2045
  G(!0);
2043
2046
  }, []), v.useLayoutEffect(() => {
2044
2047
  if (!le)
2045
2048
  return;
2046
- let S = fe.current, se = S.style.height;
2049
+ let S = pe.current, se = S.style.height;
2047
2050
  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]);
2051
+ let Q = S.getBoundingClientRect().height;
2052
+ S.style.height = se, we(Q), N((Ee) => Ee.find((ge) => ge.toastId === o.id) ? Ee.map((ge) => ge.toastId === o.id ? { ...ge, height: Q } : ge) : [{ toastId: o.id, height: Q, position: o.position }, ...Ee]);
2050
2053
  }, [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(() => {
2054
+ let fe = v.useCallback(() => {
2055
+ x(!0), de(ye.current), N((S) => S.filter((se) => se.toastId !== o.id)), setTimeout(() => {
2053
2056
  E(o);
2054
2057
  }, $r);
2055
2058
  }, [o, E, N, ye]);
@@ -2059,57 +2062,57 @@ var Br = (n) => {
2059
2062
  let S, se = Be;
2060
2063
  return w || _ || ie && He ? (() => {
2061
2064
  if (Le.current < Se.current) {
2062
- let Z = (/* @__PURE__ */ new Date()).getTime() - Se.current;
2063
- se = se - Z;
2065
+ let Q = (/* @__PURE__ */ new Date()).getTime() - Se.current;
2066
+ se = se - Q;
2064
2067
  }
2065
2068
  Le.current = (/* @__PURE__ */ new Date()).getTime();
2066
2069
  })() : se !== 1 / 0 && (Se.current = (/* @__PURE__ */ new Date()).getTime(), S = setTimeout(() => {
2067
- var Z;
2068
- (Z = o.onAutoClose) == null || Z.call(o, o), ue();
2070
+ var Q;
2071
+ (Q = o.onAutoClose) == null || Q.call(o, o), fe();
2069
2072
  }, se)), () => clearTimeout(S);
2070
- }, [w, _, k, o, Be, ue, o.promise, oe, ie, He]), v.useEffect(() => {
2071
- let S = fe.current;
2073
+ }, [w, _, k, o, Be, fe, o.promise, oe, ie, He]), v.useEffect(() => {
2074
+ let S = pe.current;
2072
2075
  if (S) {
2073
2076
  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));
2077
+ return we(se), N((Q) => [{ toastId: o.id, height: se, position: o.position }, ...Q]), () => N((Q) => Q.filter((Ee) => Ee.toastId !== o.id));
2075
2078
  }
2076
2079
  }, [N, o.id]), v.useEffect(() => {
2077
- o.delete && ue();
2078
- }, [ue, o.delete]);
2080
+ o.delete && fe();
2081
+ }, [fe, o.delete]);
2079
2082
  function ze() {
2080
- return F != null && F.loading ? v.createElement("div", { className: "sonner-loader", "data-visible": oe === "loading" }, F.loading) : ae ? v.createElement("div", { className: "sonner-loader", "data-visible": oe === "loading" }, ae) : v.createElement(Sr, { visible: oe === "loading" });
2083
+ return $ != null && $.loading ? v.createElement("div", { className: "sonner-loader", "data-visible": oe === "loading" }, $.loading) : ae ? v.createElement("div", { className: "sonner-loader", "data-visible": oe === "loading" }, ae) : v.createElement(Sr, { visible: oe === "loading" });
2081
2084
  }
2082
2085
  function Ye(S) {
2083
2086
  return { __html: xr.sanitize(S) };
2084
2087
  }
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 }));
2088
+ return v.createElement("li", { "aria-live": o.important ? "assertive" : "polite", "aria-atomic": "true", role: "status", tabIndex: 0, ref: pe, className: Z(ee, $e, R == null ? void 0 : R.toast, (t = o == null ? void 0 : o.classNames) == null ? void 0 : t.toast, R == null ? void 0 : R.default, R == null ? void 0 : R[oe], (a = o == null ? void 0 : o.classNames) == null ? void 0 : a[oe]), "data-sonner-toast": "", "data-styled": !(o.jsx || o.unstyled || y), "data-mounted": le, "data-promise": !!o.promise, "data-removed": F, "data-visible": qe, "data-y-position": Ue, "data-x-position": Me, "data-index": A, "data-front": Xe, "data-swiping": O, "data-dismissible": he, "data-type": oe, "data-invert": Fe, "data-swipe-out": te, "data-expanded": !!(w || k && le), style: { "--index": A, "--toasts-before": A, "--z-index": U.length - A, "--offset": `${F ? ue : ye.current}px`, "--initial-height": k ? "auto" : `${Ie}px`, ...W, ...o.style }, onPointerDown: (S) => {
2089
+ Ce || !he || (Ae.current = /* @__PURE__ */ new Date(), de(ye.current), S.target.setPointerCapture(S.pointerId), S.target.tagName !== "BUTTON" && (j(!0), ke.current = { x: S.clientX, y: S.clientY }));
2087
2090
  }, onPointerUp: () => {
2088
- var S, se, Z, Ee;
2089
- if (te || !me)
2091
+ var S, se, Q, Ee;
2092
+ if (te || !he)
2090
2093
  return;
2091
2094
  ke.current = null;
2092
- let he = Number(((S = fe.current) == null ? void 0 : S.style.getPropertyValue("--swipe-amount").replace("px", "")) || 0), ne = (/* @__PURE__ */ new Date()).getTime() - ((se = Ae.current) == null ? void 0 : se.getTime()), be = Math.abs(he) / ne;
2093
- if (Math.abs(he) >= zr || be > 0.11) {
2094
- ve(ye.current), (Z = o.onDismiss) == null || Z.call(o, o), ue(), z(!0);
2095
+ let ge = Number(((S = pe.current) == null ? void 0 : S.style.getPropertyValue("--swipe-amount").replace("px", "")) || 0), ne = (/* @__PURE__ */ new Date()).getTime() - ((se = Ae.current) == null ? void 0 : se.getTime()), be = Math.abs(ge) / ne;
2096
+ if (Math.abs(ge) >= zr || be > 0.11) {
2097
+ de(ye.current), (Q = o.onDismiss) == null || Q.call(o, o), fe(), K(!0);
2095
2098
  return;
2096
2099
  }
2097
- (Ee = fe.current) == null || Ee.style.setProperty("--swipe-amount", "0px"), P(!1);
2100
+ (Ee = pe.current) == null || Ee.style.setProperty("--swipe-amount", "0px"), j(!1);
2098
2101
  }, onPointerMove: (S) => {
2099
2102
  var se;
2100
- if (!ke.current || !me)
2103
+ if (!ke.current || !he)
2101
2104
  return;
2102
- let Z = S.clientY - ke.current.y, Ee = S.clientX - ke.current.x, he = (Ue === "top" ? Math.min : Math.max)(0, Z), ne = S.pointerType === "touch" ? 10 : 2;
2103
- Math.abs(he) > ne ? (se = fe.current) == null || se.style.setProperty("--swipe-amount", `${Z}px`) : Math.abs(Ee) > ne && (ke.current = null);
2104
- } }, ot && !o.jsx ? v.createElement("button", { "aria-label": J, "data-disabled": Ce, "data-close-button": !0, onClick: Ce || !me ? () => {
2105
+ let Q = S.clientY - ke.current.y, Ee = S.clientX - ke.current.x, ge = (Ue === "top" ? Math.min : Math.max)(0, Q), ne = S.pointerType === "touch" ? 10 : 2;
2106
+ Math.abs(ge) > ne ? (se = pe.current) == null || se.style.setProperty("--swipe-amount", `${Q}px`) : Math.abs(Ee) > ne && (ke.current = null);
2107
+ } }, ot && !o.jsx ? v.createElement("button", { "aria-label": J, "data-disabled": Ce, "data-close-button": !0, onClick: Ce || !he ? () => {
2105
2108
  } : () => {
2106
2109
  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));
2110
+ fe(), (S = o.onDismiss) == null || S.call(o, o);
2111
+ }, className: Z(R == null ? void 0 : R.closeButton, (s = o == null ? void 0 : o.classNames) == null ? void 0 : s.closeButton) }, v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }, v.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), v.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" }))) : null, o.jsx || v.isValidElement(o.title) ? o.jsx || o.title : v.createElement(v.Fragment, null, oe || o.icon || o.promise ? v.createElement("div", { "data-icon": "", className: Z(R == null ? void 0 : R.icon) }, o.promise || o.type === "loading" && !o.icon ? o.icon || ze() : null, o.type !== "loading" ? o.icon || ($ == null ? void 0 : $[oe]) || wr(oe) : null) : null, v.createElement("div", { "data-content": "", className: Z(R == null ? void 0 : R.content) }, v.createElement("div", { "data-title": "", className: Z(R == null ? void 0 : R.title, (l = o == null ? void 0 : o.classNames) == null ? void 0 : l.title), dangerouslySetInnerHTML: Ye(o.title) }), o.description ? v.createElement("div", { "data-description": "", className: Z(V, Je, R == null ? void 0 : R.description, (u = o == null ? void 0 : o.classNames) == null ? void 0 : u.description), dangerouslySetInnerHTML: Ye(o.description) }) : null), v.isValidElement(o.cancel) ? o.cancel : o.cancel && _t(o.cancel) ? v.createElement("button", { "data-button": !0, "data-cancel": !0, style: o.cancelButtonStyle || M, onClick: (S) => {
2112
+ _t(o.cancel) && he && (fe(), o.cancel.onClick(S));
2113
+ }, className: Z(R == null ? void 0 : R.cancelButton, (h = o == null ? void 0 : o.classNames) == null ? void 0 : h.cancelButton) }, o.cancel.label) : null, v.isValidElement(o.action) ? o.action : o.action && _t(o.action) ? v.createElement("button", { "data-button": "", style: o.actionButtonStyle || X, onClick: (S) => {
2114
+ _t(o.action) && (o.action.onClick(S), !S.defaultPrevented && fe());
2115
+ }, className: Z(R == null ? void 0 : R.actionButton, (c = o == null ? void 0 : o.classNames) == null ? void 0 : c.actionButton) }, o.action.label) : null));
2113
2116
  };
2114
2117
  function an() {
2115
2118
  if (typeof window > "u" || typeof document > "u")
@@ -2118,55 +2121,55 @@ function an() {
2118
2121
  return n === "auto" || !n ? window.getComputedStyle(document.documentElement).direction : n;
2119
2122
  }
2120
2123
  var Ur = (n) => {
2121
- let { invert: t, position: a = "bottom-right", hotkey: s = ["altKey", "KeyT"], expand: l, closeButton: u, className: h, offset: c, theme: p = "light", richColors: o, duration: y, style: _, visibleToasts: N = Or, toastOptions: b, dir: O = an(), gap: A = Mr, loadingIcon: U, icons: w, containerAriaLabel: E = "Notifications", pauseWhenPageIsHidden: L, cn: H = Fr } = n, [D, q] = v.useState([]), K = v.useMemo(() => Array.from(new Set([a].concat(D.filter((M) => M.position).map((M) => M.position)))), [D, a]), [Q, re] = v.useState([]), [V, $] = v.useState(!1), [ae, k] = v.useState(!1), [C, F] = v.useState(p !== "system" ? p : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), J = v.useRef(null), ie = s.join("+").replace(/Key/g, "").replace(/Digit/g, ""), ee = v.useRef(null), le = v.useRef(!1), G = v.useCallback((M) => q((x) => x.filter(({ id: W }) => W !== M.id)), []);
2122
- return v.useEffect(() => je.subscribe((M) => {
2123
- if (M.dismiss) {
2124
- q((x) => x.map((W) => W.id === M.id ? { ...W, delete: !0 } : W));
2124
+ 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: P = an(), gap: A = Mr, loadingIcon: U, icons: w, containerAriaLabel: E = "Notifications", pauseWhenPageIsHidden: L, cn: W = Fr } = n, [M, X] = v.useState([]), ee = v.useMemo(() => Array.from(new Set([a].concat(M.filter((F) => F.position).map((F) => F.position)))), [M, a]), [V, re] = v.useState([]), [Y, z] = v.useState(!1), [ae, k] = v.useState(!1), [R, $] = v.useState(p !== "system" ? p : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), J = v.useRef(null), ie = s.join("+").replace(/Key/g, "").replace(/Digit/g, ""), Z = v.useRef(null), le = v.useRef(!1), G = v.useCallback((F) => X((x) => x.filter(({ id: O }) => O !== F.id)), []);
2125
+ return v.useEffect(() => je.subscribe((F) => {
2126
+ if (F.dismiss) {
2127
+ X((x) => x.map((O) => O.id === F.id ? { ...O, delete: !0 } : O));
2125
2128
  return;
2126
2129
  }
2127
2130
  setTimeout(() => {
2128
2131
  Rn.flushSync(() => {
2129
- q((x) => {
2130
- let W = x.findIndex((P) => P.id === M.id);
2131
- return W !== -1 ? [...x.slice(0, W), { ...x[W], ...M }, ...x.slice(W + 1)] : [M, ...x];
2132
+ X((x) => {
2133
+ let O = x.findIndex((j) => j.id === F.id);
2134
+ return O !== -1 ? [...x.slice(0, O), { ...x[O], ...F }, ...x.slice(O + 1)] : [F, ...x];
2132
2135
  });
2133
2136
  });
2134
2137
  });
2135
2138
  }), []), v.useEffect(() => {
2136
2139
  if (p !== "system") {
2137
- F(p);
2140
+ $(p);
2138
2141
  return;
2139
2142
  }
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");
2143
+ p === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? $("dark") : $("light")), typeof window < "u" && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", ({ matches: F }) => {
2144
+ $(F ? "dark" : "light");
2142
2145
  });
2143
2146
  }, [p]), v.useEffect(() => {
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);
2147
+ M.length <= 1 && z(!1);
2148
+ }, [M]), v.useEffect(() => {
2149
+ let F = (x) => {
2150
+ var O, j;
2151
+ s.every((te) => x[te] || x.code === te) && (z(!0), (O = J.current) == null || O.focus()), x.code === "Escape" && (document.activeElement === J.current || (j = J.current) != null && j.contains(document.activeElement)) && z(!1);
2149
2152
  };
2150
- return document.addEventListener("keydown", M), () => document.removeEventListener("keydown", M);
2153
+ return document.addEventListener("keydown", F), () => document.removeEventListener("keydown", F);
2151
2154
  }, [s]), v.useEffect(() => {
2152
2155
  if (J.current)
2153
2156
  return () => {
2154
- ee.current && (ee.current.focus({ preventScroll: !0 }), ee.current = null, le.current = !1);
2157
+ Z.current && (Z.current.focus({ preventScroll: !0 }), Z.current = null, le.current = !1);
2155
2158
  };
2156
- }, [J.current]), D.length ? v.createElement("section", { "aria-label": `${E} ${ie}`, tabIndex: -1 }, K.map((M, x) => {
2157
- var W;
2158
- let [P, te] = M.split("-");
2159
- return v.createElement("ol", { key: M, dir: O === "auto" ? an() : O, tabIndex: -1, ref: J, className: h, "data-sonner-toaster": !0, "data-theme": C, "data-rich-colors": o, "data-y-position": P, "data-x-position": te, style: { "--front-toast-height": `${((W = Q[0]) == null ? void 0 : W.height) || 0}px`, "--offset": typeof c == "number" ? `${c}px` : c || Pr, "--width": `${Dr}px`, "--gap": `${A}px`, ..._ }, onBlur: (z) => {
2160
- le.current && !z.currentTarget.contains(z.relatedTarget) && (le.current = !1, ee.current && (ee.current.focus({ preventScroll: !0 }), ee.current = null));
2161
- }, onFocus: (z) => {
2162
- z.target instanceof HTMLElement && z.target.dataset.dismissible === "false" || le.current || (le.current = !0, ee.current = z.relatedTarget);
2163
- }, onMouseEnter: () => $(!0), onMouseMove: () => $(!0), onMouseLeave: () => {
2164
- ae || $(!1);
2165
- }, onPointerDown: (z) => {
2166
- z.target instanceof HTMLElement && z.target.dataset.dismissible === "false" || k(!0);
2167
- }, onPointerUp: () => k(!1) }, D.filter((z) => !z.position && x === 0 || z.position === M).map((z, pe) => {
2168
- var ve, Ie;
2169
- return v.createElement(Br, { key: z.id, icons: w, index: pe, toast: z, duration: (ve = b == null ? void 0 : b.duration) != null ? ve : y, className: b == null ? void 0 : b.className, descriptionClassName: b == null ? void 0 : b.descriptionClassName, invert: t, visibleToasts: N, closeButton: (Ie = b == null ? void 0 : b.closeButton) != null ? Ie : u, interacting: ae, position: M, style: b == null ? void 0 : b.style, unstyled: b == null ? void 0 : b.unstyled, classNames: b == null ? void 0 : b.classNames, cancelButtonStyle: b == null ? void 0 : b.cancelButtonStyle, actionButtonStyle: b == null ? void 0 : b.actionButtonStyle, removeToast: G, toasts: D.filter((we) => we.position == z.position), heights: Q.filter((we) => we.position == z.position), setHeights: re, expandByDefault: l, gap: A, loadingIcon: U, expanded: V, pauseWhenPageIsHidden: L, cn: H });
2159
+ }, [J.current]), M.length ? v.createElement("section", { "aria-label": `${E} ${ie}`, tabIndex: -1 }, ee.map((F, x) => {
2160
+ var O;
2161
+ let [j, te] = F.split("-");
2162
+ return v.createElement("ol", { key: F, dir: P === "auto" ? an() : P, tabIndex: -1, ref: J, className: h, "data-sonner-toaster": !0, "data-theme": R, "data-rich-colors": o, "data-y-position": j, "data-x-position": te, style: { "--front-toast-height": `${((O = V[0]) == null ? void 0 : O.height) || 0}px`, "--offset": typeof c == "number" ? `${c}px` : c || Pr, "--width": `${Dr}px`, "--gap": `${A}px`, ..._ }, onBlur: (K) => {
2163
+ le.current && !K.currentTarget.contains(K.relatedTarget) && (le.current = !1, Z.current && (Z.current.focus({ preventScroll: !0 }), Z.current = null));
2164
+ }, onFocus: (K) => {
2165
+ K.target instanceof HTMLElement && K.target.dataset.dismissible === "false" || le.current || (le.current = !0, Z.current = K.relatedTarget);
2166
+ }, onMouseEnter: () => z(!0), onMouseMove: () => z(!0), onMouseLeave: () => {
2167
+ ae || z(!1);
2168
+ }, onPointerDown: (K) => {
2169
+ K.target instanceof HTMLElement && K.target.dataset.dismissible === "false" || k(!0);
2170
+ }, onPointerUp: () => k(!1) }, M.filter((K) => !K.position && x === 0 || K.position === F).map((K, ue) => {
2171
+ var de, Ie;
2172
+ return v.createElement(Br, { key: K.id, icons: w, index: ue, toast: K, duration: (de = b == null ? void 0 : b.duration) != null ? de : y, className: b == null ? void 0 : b.className, descriptionClassName: b == null ? void 0 : b.descriptionClassName, invert: t, visibleToasts: N, closeButton: (Ie = b == null ? void 0 : b.closeButton) != null ? Ie : u, interacting: ae, position: F, style: b == null ? void 0 : b.style, unstyled: b == null ? void 0 : b.unstyled, classNames: b == null ? void 0 : b.classNames, cancelButtonStyle: b == null ? void 0 : b.cancelButtonStyle, actionButtonStyle: b == null ? void 0 : b.actionButtonStyle, removeToast: G, toasts: M.filter((we) => we.position == K.position), heights: V.filter((we) => we.position == K.position), setHeights: re, expandByDefault: l, gap: A, loadingIcon: U, expanded: Y, pauseWhenPageIsHidden: L, cn: W });
2170
2173
  }));
2171
2174
  })) : null;
2172
2175
  };