stone-kit 0.0.727 → 0.0.729

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.
@@ -74,21 +74,21 @@ const Yr = "_root_1975y_1", Hr = "_text_1975y_18", Xr = "_textMini_1975y_26", Jr
74
74
  index: c,
75
75
  children: i,
76
76
  addItemClassName: _,
77
- addLabelClassname: S,
77
+ addLabelClassname: E,
78
78
  addTextClass: W,
79
79
  size_s: I = "large",
80
80
  size_m: R,
81
- size_l: w,
81
+ size_l: C,
82
82
  disabled: te = !1,
83
- itemsLength: ee = 0,
83
+ itemsLength: Q = 0,
84
84
  isLongOn: re = !0,
85
- width: Q,
85
+ width: K,
86
86
  width_m: G,
87
87
  width_l: ie,
88
88
  mini: Y = !1,
89
89
  ...ne
90
- } = e, K = (i != null && i.toString().length ? (i == null ? void 0 : i.toString().length) > 2 : !1) && re, s = (d, p) => d && G ? G : p && ie ? ie : Q, k = !Q && !G && !ie && K;
91
- return /* @__PURE__ */ pe("label", { className: Je(S, { [_e.isLong]: K }), children: [
90
+ } = e, ee = (i != null && i.toString().length ? (i == null ? void 0 : i.toString().length) > 2 : !1) && re, a = (d, p) => d && G ? G : p && ie ? ie : K, b = !K && !G && !ie && ee;
91
+ return /* @__PURE__ */ pe("label", { className: Je(E, { [_e.isLong]: ee }), children: [
92
92
  /* @__PURE__ */ Z(
93
93
  "input",
94
94
  {
@@ -101,17 +101,17 @@ const Yr = "_root_1975y_1", Hr = "_text_1975y_18", Xr = "_textMini_1975y_26", Jr
101
101
  /* @__PURE__ */ Z(
102
102
  "div",
103
103
  {
104
- style: { width: s(t, o) },
104
+ style: { width: a(t, o) },
105
105
  className: Je(
106
106
  Je(
107
107
  _e.item,
108
108
  { [_e.firstItem]: c === 0 },
109
- { [_e.lastItem]: c === ee - 1 },
109
+ { [_e.lastItem]: c === Q - 1 },
110
110
  { [_e.isDisabled]: te },
111
- { [_e.autoWidth]: k },
111
+ { [_e.autoWidth]: b },
112
112
  _e[`${I}-size`],
113
113
  _e[`${R}-size_m`],
114
- _e[`${w}-size_l`],
114
+ _e[`${C}-size_l`],
115
115
  { [_e.mini]: Y }
116
116
  ),
117
117
  _
@@ -123,7 +123,7 @@ const Yr = "_root_1975y_1", Hr = "_text_1975y_18", Xr = "_textMini_1975y_26", Jr
123
123
  _e.text,
124
124
  _e[`text-${I}-size`],
125
125
  _e[`text-${R}-size_m`],
126
- _e[`text-${w}-size_l`],
126
+ _e[`text-${C}-size_l`],
127
127
  { [_e.textMini]: Y },
128
128
  W
129
129
  ),
@@ -143,24 +143,24 @@ const et = Object.assign(ln, { Item: _r }), tt = Vt.bind(we), un = ({
143
143
  disabled: c,
144
144
  additionalClass: i = "",
145
145
  onChange: _,
146
- onBlur: S,
146
+ onBlur: E,
147
147
  mini: W,
148
148
  openOnTop: I = !1,
149
149
  onClickItem: R,
150
- onCLickSelect: w
150
+ onCLickSelect: C
151
151
  }) => {
152
- const [te, ee] = je(!1), re = mr(null), { isMobile: Q } = ft(), { handleBlur: G, getInputValue: ie, getOption: Y, handleDocumentClick: ne } = zr(
152
+ const [te, Q] = je(!1), re = mr(null), { isMobile: K } = ft(), { handleBlur: G, getInputValue: ie, getOption: Y, handleDocumentClick: ne } = zr(
153
153
  {
154
154
  selectedOption: r,
155
155
  onClickOption: R,
156
156
  setSelectedOption: _,
157
- setIsOpen: ee,
157
+ setIsOpen: Q,
158
158
  containerRef: re,
159
159
  isOpen: te,
160
- isMobile: Q,
160
+ isMobile: K,
161
161
  placeholder: t,
162
162
  onChange: _,
163
- onBlur: S
163
+ onBlur: E
164
164
  }
165
165
  );
166
166
  return Tt(() => (document.addEventListener("click", ne), () => {
@@ -178,7 +178,7 @@ const et = Object.assign(ln, { Item: _r }), tt = Vt.bind(we), un = ({
178
178
  tabIndex: 0,
179
179
  onBlur: G,
180
180
  onClick: () => {
181
- w && w();
181
+ C && C();
182
182
  },
183
183
  children: [
184
184
  /* @__PURE__ */ pe("div", { className: tt(we.inputWrapper), children: [
@@ -193,7 +193,7 @@ const et = Object.assign(ln, { Item: _r }), tt = Vt.bind(we), un = ({
193
193
  { [we.selectOptionsDisabled]: c },
194
194
  { [we.selectionOptionMini]: W }
195
195
  ),
196
- onClick: () => ee(!te)
196
+ onClick: () => Q(!te)
197
197
  }
198
198
  ),
199
199
  /* @__PURE__ */ Z(
@@ -205,11 +205,11 @@ const et = Object.assign(ln, { Item: _r }), tt = Vt.bind(we), un = ({
205
205
  }
206
206
  )
207
207
  ] }),
208
- te && Q && /* @__PURE__ */ pe(
208
+ te && K && /* @__PURE__ */ pe(
209
209
  Ft,
210
210
  {
211
211
  isOpen: te,
212
- emitIsOpen: ee,
212
+ emitIsOpen: Q,
213
213
  additionalClassModalBody: we.modalAddBody,
214
214
  additionalClass: we.selectModal,
215
215
  createPortalObj: { domNode: document.querySelector("body") },
@@ -217,7 +217,7 @@ const et = Object.assign(ln, { Item: _r }), tt = Vt.bind(we), un = ({
217
217
  children: [
218
218
  /* @__PURE__ */ pe("div", { className: we.mobileSortHeader, children: [
219
219
  /* @__PURE__ */ Z(pr, { children: "Сортировка" }),
220
- /* @__PURE__ */ Z("div", { onClick: () => ee(!1), children: /* @__PURE__ */ Z(
220
+ /* @__PURE__ */ Z("div", { onClick: () => Q(!1), children: /* @__PURE__ */ Z(
221
221
  Be,
222
222
  {
223
223
  name: "close",
@@ -225,11 +225,11 @@ const et = Object.assign(ln, { Item: _r }), tt = Vt.bind(we), un = ({
225
225
  }
226
226
  ) })
227
227
  ] }),
228
- /* @__PURE__ */ Z("div", { className: we.mobileOptionList, children: e == null ? void 0 : e.map((K) => Y(K)) })
228
+ /* @__PURE__ */ Z("div", { className: we.mobileOptionList, children: e == null ? void 0 : e.map((ee) => Y(ee)) })
229
229
  ]
230
230
  }
231
231
  ),
232
- te && !Q && /* @__PURE__ */ Z("div", { className: tt(we.optionsList, { [we.optionListOnTop]: I }), children: e == null ? void 0 : e.map((K) => Y(K)) })
232
+ te && !K && /* @__PURE__ */ Z("div", { className: tt(we.optionsList, { [we.optionListOnTop]: I }), children: e == null ? void 0 : e.map((ee) => Y(ee)) })
233
233
  ]
234
234
  }
235
235
  );
@@ -249,66 +249,66 @@ function cn() {
249
249
  if (Yt)
250
250
  return le;
251
251
  Yt = 1;
252
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, _ = e ? Symbol.for("react.provider") : 60109, S = e ? Symbol.for("react.context") : 60110, W = e ? Symbol.for("react.async_mode") : 60111, I = e ? Symbol.for("react.concurrent_mode") : 60111, R = e ? Symbol.for("react.forward_ref") : 60112, w = e ? Symbol.for("react.suspense") : 60113, te = e ? Symbol.for("react.suspense_list") : 60120, ee = e ? Symbol.for("react.memo") : 60115, re = e ? Symbol.for("react.lazy") : 60116, Q = e ? Symbol.for("react.block") : 60121, G = e ? Symbol.for("react.fundamental") : 60117, ie = e ? Symbol.for("react.responder") : 60118, Y = e ? Symbol.for("react.scope") : 60119;
253
- function ne(s) {
254
- if (typeof s == "object" && s !== null) {
255
- var k = s.$$typeof;
256
- switch (k) {
252
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, _ = e ? Symbol.for("react.provider") : 60109, E = e ? Symbol.for("react.context") : 60110, W = e ? Symbol.for("react.async_mode") : 60111, I = e ? Symbol.for("react.concurrent_mode") : 60111, R = e ? Symbol.for("react.forward_ref") : 60112, C = e ? Symbol.for("react.suspense") : 60113, te = e ? Symbol.for("react.suspense_list") : 60120, Q = e ? Symbol.for("react.memo") : 60115, re = e ? Symbol.for("react.lazy") : 60116, K = e ? Symbol.for("react.block") : 60121, G = e ? Symbol.for("react.fundamental") : 60117, ie = e ? Symbol.for("react.responder") : 60118, Y = e ? Symbol.for("react.scope") : 60119;
253
+ function ne(a) {
254
+ if (typeof a == "object" && a !== null) {
255
+ var b = a.$$typeof;
256
+ switch (b) {
257
257
  case r:
258
- switch (s = s.type, s) {
258
+ switch (a = a.type, a) {
259
259
  case W:
260
260
  case I:
261
261
  case o:
262
262
  case i:
263
263
  case c:
264
- case w:
265
- return s;
264
+ case C:
265
+ return a;
266
266
  default:
267
- switch (s = s && s.$$typeof, s) {
268
- case S:
267
+ switch (a = a && a.$$typeof, a) {
268
+ case E:
269
269
  case R:
270
270
  case re:
271
- case ee:
271
+ case Q:
272
272
  case _:
273
- return s;
273
+ return a;
274
274
  default:
275
- return k;
275
+ return b;
276
276
  }
277
277
  }
278
278
  case t:
279
- return k;
279
+ return b;
280
280
  }
281
281
  }
282
282
  }
283
- function K(s) {
284
- return ne(s) === I;
283
+ function ee(a) {
284
+ return ne(a) === I;
285
285
  }
286
- return le.AsyncMode = W, le.ConcurrentMode = I, le.ContextConsumer = S, le.ContextProvider = _, le.Element = r, le.ForwardRef = R, le.Fragment = o, le.Lazy = re, le.Memo = ee, le.Portal = t, le.Profiler = i, le.StrictMode = c, le.Suspense = w, le.isAsyncMode = function(s) {
287
- return K(s) || ne(s) === W;
288
- }, le.isConcurrentMode = K, le.isContextConsumer = function(s) {
289
- return ne(s) === S;
290
- }, le.isContextProvider = function(s) {
291
- return ne(s) === _;
292
- }, le.isElement = function(s) {
293
- return typeof s == "object" && s !== null && s.$$typeof === r;
294
- }, le.isForwardRef = function(s) {
295
- return ne(s) === R;
296
- }, le.isFragment = function(s) {
297
- return ne(s) === o;
298
- }, le.isLazy = function(s) {
299
- return ne(s) === re;
300
- }, le.isMemo = function(s) {
301
- return ne(s) === ee;
302
- }, le.isPortal = function(s) {
303
- return ne(s) === t;
304
- }, le.isProfiler = function(s) {
305
- return ne(s) === i;
306
- }, le.isStrictMode = function(s) {
307
- return ne(s) === c;
308
- }, le.isSuspense = function(s) {
309
- return ne(s) === w;
310
- }, le.isValidElementType = function(s) {
311
- return typeof s == "string" || typeof s == "function" || s === o || s === I || s === i || s === c || s === w || s === te || typeof s == "object" && s !== null && (s.$$typeof === re || s.$$typeof === ee || s.$$typeof === _ || s.$$typeof === S || s.$$typeof === R || s.$$typeof === G || s.$$typeof === ie || s.$$typeof === Y || s.$$typeof === Q);
286
+ return le.AsyncMode = W, le.ConcurrentMode = I, le.ContextConsumer = E, le.ContextProvider = _, le.Element = r, le.ForwardRef = R, le.Fragment = o, le.Lazy = re, le.Memo = Q, le.Portal = t, le.Profiler = i, le.StrictMode = c, le.Suspense = C, le.isAsyncMode = function(a) {
287
+ return ee(a) || ne(a) === W;
288
+ }, le.isConcurrentMode = ee, le.isContextConsumer = function(a) {
289
+ return ne(a) === E;
290
+ }, le.isContextProvider = function(a) {
291
+ return ne(a) === _;
292
+ }, le.isElement = function(a) {
293
+ return typeof a == "object" && a !== null && a.$$typeof === r;
294
+ }, le.isForwardRef = function(a) {
295
+ return ne(a) === R;
296
+ }, le.isFragment = function(a) {
297
+ return ne(a) === o;
298
+ }, le.isLazy = function(a) {
299
+ return ne(a) === re;
300
+ }, le.isMemo = function(a) {
301
+ return ne(a) === Q;
302
+ }, le.isPortal = function(a) {
303
+ return ne(a) === t;
304
+ }, le.isProfiler = function(a) {
305
+ return ne(a) === i;
306
+ }, le.isStrictMode = function(a) {
307
+ return ne(a) === c;
308
+ }, le.isSuspense = function(a) {
309
+ return ne(a) === C;
310
+ }, le.isValidElementType = function(a) {
311
+ return typeof a == "string" || typeof a == "function" || a === o || a === I || a === i || a === c || a === C || a === te || typeof a == "object" && a !== null && (a.$$typeof === re || a.$$typeof === Q || a.$$typeof === _ || a.$$typeof === E || a.$$typeof === R || a.$$typeof === G || a.$$typeof === ie || a.$$typeof === Y || a.$$typeof === K);
312
312
  }, le.typeOf = ne, le;
313
313
  }
314
314
  var ue = {};
@@ -323,15 +323,15 @@ var ue = {};
323
323
  var Ht;
324
324
  function fn() {
325
325
  return Ht || (Ht = 1, process.env.NODE_ENV !== "production" && function() {
326
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, _ = e ? Symbol.for("react.provider") : 60109, S = e ? Symbol.for("react.context") : 60110, W = e ? Symbol.for("react.async_mode") : 60111, I = e ? Symbol.for("react.concurrent_mode") : 60111, R = e ? Symbol.for("react.forward_ref") : 60112, w = e ? Symbol.for("react.suspense") : 60113, te = e ? Symbol.for("react.suspense_list") : 60120, ee = e ? Symbol.for("react.memo") : 60115, re = e ? Symbol.for("react.lazy") : 60116, Q = e ? Symbol.for("react.block") : 60121, G = e ? Symbol.for("react.fundamental") : 60117, ie = e ? Symbol.for("react.responder") : 60118, Y = e ? Symbol.for("react.scope") : 60119;
326
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, _ = e ? Symbol.for("react.provider") : 60109, E = e ? Symbol.for("react.context") : 60110, W = e ? Symbol.for("react.async_mode") : 60111, I = e ? Symbol.for("react.concurrent_mode") : 60111, R = e ? Symbol.for("react.forward_ref") : 60112, C = e ? Symbol.for("react.suspense") : 60113, te = e ? Symbol.for("react.suspense_list") : 60120, Q = e ? Symbol.for("react.memo") : 60115, re = e ? Symbol.for("react.lazy") : 60116, K = e ? Symbol.for("react.block") : 60121, G = e ? Symbol.for("react.fundamental") : 60117, ie = e ? Symbol.for("react.responder") : 60118, Y = e ? Symbol.for("react.scope") : 60119;
327
327
  function ne(m) {
328
328
  return typeof m == "string" || typeof m == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
329
- m === o || m === I || m === i || m === c || m === w || m === te || typeof m == "object" && m !== null && (m.$$typeof === re || m.$$typeof === ee || m.$$typeof === _ || m.$$typeof === S || m.$$typeof === R || m.$$typeof === G || m.$$typeof === ie || m.$$typeof === Y || m.$$typeof === Q);
329
+ m === o || m === I || m === i || m === c || m === C || m === te || typeof m == "object" && m !== null && (m.$$typeof === re || m.$$typeof === Q || m.$$typeof === _ || m.$$typeof === E || m.$$typeof === R || m.$$typeof === G || m.$$typeof === ie || m.$$typeof === Y || m.$$typeof === K);
330
330
  }
331
- function K(m) {
331
+ function ee(m) {
332
332
  if (typeof m == "object" && m !== null) {
333
- var N = m.$$typeof;
334
- switch (N) {
333
+ var B = m.$$typeof;
334
+ switch (B) {
335
335
  case r:
336
336
  var q = m.type;
337
337
  switch (q) {
@@ -340,67 +340,67 @@ function fn() {
340
340
  case o:
341
341
  case i:
342
342
  case c:
343
- case w:
343
+ case C:
344
344
  return q;
345
345
  default:
346
346
  var U = q && q.$$typeof;
347
347
  switch (U) {
348
- case S:
348
+ case E:
349
349
  case R:
350
350
  case re:
351
- case ee:
351
+ case Q:
352
352
  case _:
353
353
  return U;
354
354
  default:
355
- return N;
355
+ return B;
356
356
  }
357
357
  }
358
358
  case t:
359
- return N;
359
+ return B;
360
360
  }
361
361
  }
362
362
  }
363
- var s = W, k = I, d = S, p = _, b = r, C = R, B = o, A = re, j = ee, H = t, L = i, F = c, X = w, ae = !1;
363
+ var a = W, b = I, d = E, p = _, S = r, P = R, N = o, A = re, j = Q, H = t, L = i, F = c, X = C, ae = !1;
364
364
  function fe(m) {
365
- return ae || (ae = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), y(m) || K(m) === W;
365
+ return ae || (ae = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), y(m) || ee(m) === W;
366
366
  }
367
367
  function y(m) {
368
- return K(m) === I;
368
+ return ee(m) === I;
369
369
  }
370
370
  function x(m) {
371
- return K(m) === S;
371
+ return ee(m) === E;
372
372
  }
373
373
  function h(m) {
374
- return K(m) === _;
374
+ return ee(m) === _;
375
375
  }
376
376
  function u(m) {
377
377
  return typeof m == "object" && m !== null && m.$$typeof === r;
378
378
  }
379
- function a(m) {
380
- return K(m) === R;
379
+ function s(m) {
380
+ return ee(m) === R;
381
381
  }
382
382
  function f(m) {
383
- return K(m) === o;
383
+ return ee(m) === o;
384
384
  }
385
385
  function g(m) {
386
- return K(m) === re;
386
+ return ee(m) === re;
387
387
  }
388
- function E(m) {
389
- return K(m) === ee;
388
+ function k(m) {
389
+ return ee(m) === Q;
390
390
  }
391
391
  function D(m) {
392
- return K(m) === t;
392
+ return ee(m) === t;
393
393
  }
394
394
  function T(m) {
395
- return K(m) === i;
395
+ return ee(m) === i;
396
396
  }
397
397
  function V(m) {
398
- return K(m) === c;
398
+ return ee(m) === c;
399
399
  }
400
400
  function J(m) {
401
- return K(m) === w;
401
+ return ee(m) === C;
402
402
  }
403
- ue.AsyncMode = s, ue.ConcurrentMode = k, ue.ContextConsumer = d, ue.ContextProvider = p, ue.Element = b, ue.ForwardRef = C, ue.Fragment = B, ue.Lazy = A, ue.Memo = j, ue.Portal = H, ue.Profiler = L, ue.StrictMode = F, ue.Suspense = X, ue.isAsyncMode = fe, ue.isConcurrentMode = y, ue.isContextConsumer = x, ue.isContextProvider = h, ue.isElement = u, ue.isForwardRef = a, ue.isFragment = f, ue.isLazy = g, ue.isMemo = E, ue.isPortal = D, ue.isProfiler = T, ue.isStrictMode = V, ue.isSuspense = J, ue.isValidElementType = ne, ue.typeOf = K;
403
+ ue.AsyncMode = a, ue.ConcurrentMode = b, ue.ContextConsumer = d, ue.ContextProvider = p, ue.Element = S, ue.ForwardRef = P, ue.Fragment = N, ue.Lazy = A, ue.Memo = j, ue.Portal = H, ue.Profiler = L, ue.StrictMode = F, ue.Suspense = X, ue.isAsyncMode = fe, ue.isConcurrentMode = y, ue.isContextConsumer = x, ue.isContextProvider = h, ue.isElement = u, ue.isForwardRef = s, ue.isFragment = f, ue.isLazy = g, ue.isMemo = k, ue.isPortal = D, ue.isProfiler = T, ue.isStrictMode = V, ue.isSuspense = J, ue.isValidElementType = ne, ue.typeOf = ee;
404
404
  }()), ue;
405
405
  }
406
406
  var Xt;
@@ -430,8 +430,8 @@ function dn() {
430
430
  var i = new String("abc");
431
431
  if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
432
432
  return !1;
433
- for (var _ = {}, S = 0; S < 10; S++)
434
- _["_" + String.fromCharCode(S)] = S;
433
+ for (var _ = {}, E = 0; E < 10; E++)
434
+ _["_" + String.fromCharCode(E)] = E;
435
435
  var W = Object.getOwnPropertyNames(_).map(function(R) {
436
436
  return _[R];
437
437
  });
@@ -446,14 +446,14 @@ function dn() {
446
446
  }
447
447
  }
448
448
  return gt = c() ? Object.assign : function(i, _) {
449
- for (var S, W = o(i), I, R = 1; R < arguments.length; R++) {
450
- S = Object(arguments[R]);
451
- for (var w in S)
452
- r.call(S, w) && (W[w] = S[w]);
449
+ for (var E, W = o(i), I, R = 1; R < arguments.length; R++) {
450
+ E = Object(arguments[R]);
451
+ for (var C in E)
452
+ r.call(E, C) && (W[C] = E[C]);
453
453
  if (e) {
454
- I = e(S);
454
+ I = e(E);
455
455
  for (var te = 0; te < I.length; te++)
456
- t.call(S, I[te]) && (W[I[te]] = S[I[te]]);
456
+ t.call(E, I[te]) && (W[I[te]] = E[I[te]]);
457
457
  }
458
458
  }
459
459
  return W;
@@ -489,29 +489,29 @@ function vn() {
489
489
  }
490
490
  };
491
491
  }
492
- function c(i, _, S, W, I) {
492
+ function c(i, _, E, W, I) {
493
493
  if (process.env.NODE_ENV !== "production") {
494
494
  for (var R in i)
495
495
  if (o(i, R)) {
496
- var w;
496
+ var C;
497
497
  try {
498
498
  if (typeof i[R] != "function") {
499
499
  var te = Error(
500
- (W || "React class") + ": " + S + " type `" + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[R] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
500
+ (W || "React class") + ": " + E + " type `" + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[R] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
501
501
  );
502
502
  throw te.name = "Invariant Violation", te;
503
503
  }
504
- w = i[R](_, R, W, S, null, r);
504
+ C = i[R](_, R, W, E, null, r);
505
505
  } catch (re) {
506
- w = re;
506
+ C = re;
507
507
  }
508
- if (w && !(w instanceof Error) && e(
509
- (W || "React class") + ": type specification of " + S + " `" + R + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof w + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
510
- ), w instanceof Error && !(w.message in t)) {
511
- t[w.message] = !0;
512
- var ee = I ? I() : "";
508
+ if (C && !(C instanceof Error) && e(
509
+ (W || "React class") + ": type specification of " + E + " `" + R + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof C + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
510
+ ), C instanceof Error && !(C.message in t)) {
511
+ t[C.message] = !0;
512
+ var Q = I ? I() : "";
513
513
  e(
514
- "Failed " + S + " type: " + w.message + (ee ?? "")
514
+ "Failed " + E + " type: " + C.message + (Q ?? "")
515
515
  );
516
516
  }
517
517
  }
@@ -528,8 +528,8 @@ function hn() {
528
528
  Qt = 1;
529
529
  var e = br(), r = dn(), t = Mt(), o = kr(), c = vn(), i = function() {
530
530
  };
531
- process.env.NODE_ENV !== "production" && (i = function(S) {
532
- var W = "Warning: " + S;
531
+ process.env.NODE_ENV !== "production" && (i = function(E) {
532
+ var W = "Warning: " + E;
533
533
  typeof console < "u" && console.error(W);
534
534
  try {
535
535
  throw new Error(W);
@@ -539,14 +539,14 @@ function hn() {
539
539
  function _() {
540
540
  return null;
541
541
  }
542
- return Et = function(S, W) {
542
+ return Et = function(E, W) {
543
543
  var I = typeof Symbol == "function" && Symbol.iterator, R = "@@iterator";
544
- function w(y) {
544
+ function C(y) {
545
545
  var x = y && (I && y[I] || y[R]);
546
546
  if (typeof x == "function")
547
547
  return x;
548
548
  }
549
- var te = "<<anonymous>>", ee = {
549
+ var te = "<<anonymous>>", Q = {
550
550
  array: ie("array"),
551
551
  bigint: ie("bigint"),
552
552
  bool: ie("boolean"),
@@ -557,53 +557,53 @@ function hn() {
557
557
  symbol: ie("symbol"),
558
558
  any: Y(),
559
559
  arrayOf: ne,
560
- element: K(),
561
- elementType: s(),
562
- instanceOf: k,
563
- node: C(),
560
+ element: ee(),
561
+ elementType: a(),
562
+ instanceOf: b,
563
+ node: P(),
564
564
  objectOf: p,
565
565
  oneOf: d,
566
- oneOfType: b,
566
+ oneOfType: S,
567
567
  shape: A,
568
568
  exact: j
569
569
  };
570
570
  function re(y, x) {
571
571
  return y === x ? y !== 0 || 1 / y === 1 / x : y !== y && x !== x;
572
572
  }
573
- function Q(y, x) {
573
+ function K(y, x) {
574
574
  this.message = y, this.data = x && typeof x == "object" ? x : {}, this.stack = "";
575
575
  }
576
- Q.prototype = Error.prototype;
576
+ K.prototype = Error.prototype;
577
577
  function G(y) {
578
578
  if (process.env.NODE_ENV !== "production")
579
579
  var x = {}, h = 0;
580
- function u(f, g, E, D, T, V, J) {
581
- if (D = D || te, V = V || E, J !== t) {
580
+ function u(f, g, k, D, T, V, J) {
581
+ if (D = D || te, V = V || k, J !== t) {
582
582
  if (W) {
583
583
  var m = new Error(
584
584
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
585
585
  );
586
586
  throw m.name = "Invariant Violation", m;
587
587
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
588
- var N = D + ":" + E;
589
- !x[N] && // Avoid spamming the console because they are often not actionable except for lib authors
588
+ var B = D + ":" + k;
589
+ !x[B] && // Avoid spamming the console because they are often not actionable except for lib authors
590
590
  h < 3 && (i(
591
591
  "You are manually calling a React.PropTypes validation function for the `" + V + "` prop on `" + D + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
592
- ), x[N] = !0, h++);
592
+ ), x[B] = !0, h++);
593
593
  }
594
594
  }
595
- return g[E] == null ? f ? g[E] === null ? new Q("The " + T + " `" + V + "` is marked as required " + ("in `" + D + "`, but its value is `null`.")) : new Q("The " + T + " `" + V + "` is marked as required in " + ("`" + D + "`, but its value is `undefined`.")) : null : y(g, E, D, T, V);
595
+ return g[k] == null ? f ? g[k] === null ? new K("The " + T + " `" + V + "` is marked as required " + ("in `" + D + "`, but its value is `null`.")) : new K("The " + T + " `" + V + "` is marked as required in " + ("`" + D + "`, but its value is `undefined`.")) : null : y(g, k, D, T, V);
596
596
  }
597
- var a = u.bind(null, !1);
598
- return a.isRequired = u.bind(null, !0), a;
597
+ var s = u.bind(null, !1);
598
+ return s.isRequired = u.bind(null, !0), s;
599
599
  }
600
600
  function ie(y) {
601
- function x(h, u, a, f, g, E) {
601
+ function x(h, u, s, f, g, k) {
602
602
  var D = h[u], T = F(D);
603
603
  if (T !== y) {
604
604
  var V = X(D);
605
- return new Q(
606
- "Invalid " + f + " `" + g + "` of type " + ("`" + V + "` supplied to `" + a + "`, expected ") + ("`" + y + "`."),
605
+ return new K(
606
+ "Invalid " + f + " `" + g + "` of type " + ("`" + V + "` supplied to `" + s + "`, expected ") + ("`" + y + "`."),
607
607
  { expectedType: y }
608
608
  );
609
609
  }
@@ -615,16 +615,16 @@ function hn() {
615
615
  return G(_);
616
616
  }
617
617
  function ne(y) {
618
- function x(h, u, a, f, g) {
618
+ function x(h, u, s, f, g) {
619
619
  if (typeof y != "function")
620
- return new Q("Property `" + g + "` of component `" + a + "` has invalid PropType notation inside arrayOf.");
621
- var E = h[u];
622
- if (!Array.isArray(E)) {
623
- var D = F(E);
624
- return new Q("Invalid " + f + " `" + g + "` of type " + ("`" + D + "` supplied to `" + a + "`, expected an array."));
620
+ return new K("Property `" + g + "` of component `" + s + "` has invalid PropType notation inside arrayOf.");
621
+ var k = h[u];
622
+ if (!Array.isArray(k)) {
623
+ var D = F(k);
624
+ return new K("Invalid " + f + " `" + g + "` of type " + ("`" + D + "` supplied to `" + s + "`, expected an array."));
625
625
  }
626
- for (var T = 0; T < E.length; T++) {
627
- var V = y(E, T, a, f, g + "[" + T + "]", t);
626
+ for (var T = 0; T < k.length; T++) {
627
+ var V = y(k, T, s, f, g + "[" + T + "]", t);
628
628
  if (V instanceof Error)
629
629
  return V;
630
630
  }
@@ -632,33 +632,33 @@ function hn() {
632
632
  }
633
633
  return G(x);
634
634
  }
635
- function K() {
636
- function y(x, h, u, a, f) {
635
+ function ee() {
636
+ function y(x, h, u, s, f) {
637
637
  var g = x[h];
638
- if (!S(g)) {
639
- var E = F(g);
640
- return new Q("Invalid " + a + " `" + f + "` of type " + ("`" + E + "` supplied to `" + u + "`, expected a single ReactElement."));
638
+ if (!E(g)) {
639
+ var k = F(g);
640
+ return new K("Invalid " + s + " `" + f + "` of type " + ("`" + k + "` supplied to `" + u + "`, expected a single ReactElement."));
641
641
  }
642
642
  return null;
643
643
  }
644
644
  return G(y);
645
645
  }
646
- function s() {
647
- function y(x, h, u, a, f) {
646
+ function a() {
647
+ function y(x, h, u, s, f) {
648
648
  var g = x[h];
649
649
  if (!e.isValidElementType(g)) {
650
- var E = F(g);
651
- return new Q("Invalid " + a + " `" + f + "` of type " + ("`" + E + "` supplied to `" + u + "`, expected a single ReactElement type."));
650
+ var k = F(g);
651
+ return new K("Invalid " + s + " `" + f + "` of type " + ("`" + k + "` supplied to `" + u + "`, expected a single ReactElement type."));
652
652
  }
653
653
  return null;
654
654
  }
655
655
  return G(y);
656
656
  }
657
- function k(y) {
658
- function x(h, u, a, f, g) {
657
+ function b(y) {
658
+ function x(h, u, s, f, g) {
659
659
  if (!(h[u] instanceof y)) {
660
- var E = y.name || te, D = fe(h[u]);
661
- return new Q("Invalid " + f + " `" + g + "` of type " + ("`" + D + "` supplied to `" + a + "`, expected ") + ("instance of `" + E + "`."));
660
+ var k = y.name || te, D = fe(h[u]);
661
+ return new K("Invalid " + f + " `" + g + "` of type " + ("`" + D + "` supplied to `" + s + "`, expected ") + ("instance of `" + k + "`."));
662
662
  }
663
663
  return null;
664
664
  }
@@ -669,28 +669,28 @@ function hn() {
669
669
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
670
670
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
671
671
  ) : i("Invalid argument supplied to oneOf, expected an array.")), _;
672
- function x(h, u, a, f, g) {
673
- for (var E = h[u], D = 0; D < y.length; D++)
674
- if (re(E, y[D]))
672
+ function x(h, u, s, f, g) {
673
+ for (var k = h[u], D = 0; D < y.length; D++)
674
+ if (re(k, y[D]))
675
675
  return null;
676
676
  var T = JSON.stringify(y, function(J, m) {
677
- var N = X(m);
678
- return N === "symbol" ? String(m) : m;
677
+ var B = X(m);
678
+ return B === "symbol" ? String(m) : m;
679
679
  });
680
- return new Q("Invalid " + f + " `" + g + "` of value `" + String(E) + "` " + ("supplied to `" + a + "`, expected one of " + T + "."));
680
+ return new K("Invalid " + f + " `" + g + "` of value `" + String(k) + "` " + ("supplied to `" + s + "`, expected one of " + T + "."));
681
681
  }
682
682
  return G(x);
683
683
  }
684
684
  function p(y) {
685
- function x(h, u, a, f, g) {
685
+ function x(h, u, s, f, g) {
686
686
  if (typeof y != "function")
687
- return new Q("Property `" + g + "` of component `" + a + "` has invalid PropType notation inside objectOf.");
688
- var E = h[u], D = F(E);
687
+ return new K("Property `" + g + "` of component `" + s + "` has invalid PropType notation inside objectOf.");
688
+ var k = h[u], D = F(k);
689
689
  if (D !== "object")
690
- return new Q("Invalid " + f + " `" + g + "` of type " + ("`" + D + "` supplied to `" + a + "`, expected an object."));
691
- for (var T in E)
692
- if (o(E, T)) {
693
- var V = y(E, T, a, f, g + "." + T, t);
690
+ return new K("Invalid " + f + " `" + g + "` of type " + ("`" + D + "` supplied to `" + s + "`, expected an object."));
691
+ for (var T in k)
692
+ if (o(k, T)) {
693
+ var V = y(k, T, s, f, g + "." + T, t);
694
694
  if (V instanceof Error)
695
695
  return V;
696
696
  }
@@ -698,7 +698,7 @@ function hn() {
698
698
  }
699
699
  return G(x);
700
700
  }
701
- function b(y) {
701
+ function S(y) {
702
702
  if (!Array.isArray(y))
703
703
  return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), _;
704
704
  for (var x = 0; x < y.length; x++) {
@@ -708,39 +708,39 @@ function hn() {
708
708
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ae(h) + " at index " + x + "."
709
709
  ), _;
710
710
  }
711
- function u(a, f, g, E, D) {
711
+ function u(s, f, g, k, D) {
712
712
  for (var T = [], V = 0; V < y.length; V++) {
713
- var J = y[V], m = J(a, f, g, E, D, t);
713
+ var J = y[V], m = J(s, f, g, k, D, t);
714
714
  if (m == null)
715
715
  return null;
716
716
  m.data && o(m.data, "expectedType") && T.push(m.data.expectedType);
717
717
  }
718
- var N = T.length > 0 ? ", expected one of type [" + T.join(", ") + "]" : "";
719
- return new Q("Invalid " + E + " `" + D + "` supplied to " + ("`" + g + "`" + N + "."));
718
+ var B = T.length > 0 ? ", expected one of type [" + T.join(", ") + "]" : "";
719
+ return new K("Invalid " + k + " `" + D + "` supplied to " + ("`" + g + "`" + B + "."));
720
720
  }
721
721
  return G(u);
722
722
  }
723
- function C() {
724
- function y(x, h, u, a, f) {
725
- return H(x[h]) ? null : new Q("Invalid " + a + " `" + f + "` supplied to " + ("`" + u + "`, expected a ReactNode."));
723
+ function P() {
724
+ function y(x, h, u, s, f) {
725
+ return H(x[h]) ? null : new K("Invalid " + s + " `" + f + "` supplied to " + ("`" + u + "`, expected a ReactNode."));
726
726
  }
727
727
  return G(y);
728
728
  }
729
- function B(y, x, h, u, a) {
730
- return new Q(
731
- (y || "React class") + ": " + x + " type `" + h + "." + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + a + "`."
729
+ function N(y, x, h, u, s) {
730
+ return new K(
731
+ (y || "React class") + ": " + x + " type `" + h + "." + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + s + "`."
732
732
  );
733
733
  }
734
734
  function A(y) {
735
- function x(h, u, a, f, g) {
736
- var E = h[u], D = F(E);
735
+ function x(h, u, s, f, g) {
736
+ var k = h[u], D = F(k);
737
737
  if (D !== "object")
738
- return new Q("Invalid " + f + " `" + g + "` of type `" + D + "` " + ("supplied to `" + a + "`, expected `object`."));
738
+ return new K("Invalid " + f + " `" + g + "` of type `" + D + "` " + ("supplied to `" + s + "`, expected `object`."));
739
739
  for (var T in y) {
740
740
  var V = y[T];
741
741
  if (typeof V != "function")
742
- return B(a, f, g, T, X(V));
743
- var J = V(E, T, a, f, g + "." + T, t);
742
+ return N(s, f, g, T, X(V));
743
+ var J = V(k, T, s, f, g + "." + T, t);
744
744
  if (J)
745
745
  return J;
746
746
  }
@@ -749,21 +749,21 @@ function hn() {
749
749
  return G(x);
750
750
  }
751
751
  function j(y) {
752
- function x(h, u, a, f, g) {
753
- var E = h[u], D = F(E);
752
+ function x(h, u, s, f, g) {
753
+ var k = h[u], D = F(k);
754
754
  if (D !== "object")
755
- return new Q("Invalid " + f + " `" + g + "` of type `" + D + "` " + ("supplied to `" + a + "`, expected `object`."));
755
+ return new K("Invalid " + f + " `" + g + "` of type `" + D + "` " + ("supplied to `" + s + "`, expected `object`."));
756
756
  var T = r({}, h[u], y);
757
757
  for (var V in T) {
758
758
  var J = y[V];
759
759
  if (o(y, V) && typeof J != "function")
760
- return B(a, f, g, V, X(J));
760
+ return N(s, f, g, V, X(J));
761
761
  if (!J)
762
- return new Q(
763
- "Invalid " + f + " `" + g + "` key `" + V + "` supplied to `" + a + "`.\nBad object: " + JSON.stringify(h[u], null, " ") + `
762
+ return new K(
763
+ "Invalid " + f + " `" + g + "` key `" + V + "` supplied to `" + s + "`.\nBad object: " + JSON.stringify(h[u], null, " ") + `
764
764
  Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
765
765
  );
766
- var m = J(E, V, a, f, g + "." + V, t);
766
+ var m = J(k, V, s, f, g + "." + V, t);
767
767
  if (m)
768
768
  return m;
769
769
  }
@@ -782,9 +782,9 @@ Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
782
782
  case "object":
783
783
  if (Array.isArray(y))
784
784
  return y.every(H);
785
- if (y === null || S(y))
785
+ if (y === null || E(y))
786
786
  return !0;
787
- var x = w(y);
787
+ var x = C(y);
788
788
  if (x) {
789
789
  var h = x.call(y), u;
790
790
  if (x !== y.entries) {
@@ -793,8 +793,8 @@ Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
793
793
  return !1;
794
794
  } else
795
795
  for (; !(u = h.next()).done; ) {
796
- var a = u.value;
797
- if (a && !H(a[1]))
796
+ var s = u.value;
797
+ if (s && !H(s[1]))
798
798
  return !1;
799
799
  }
800
800
  } else
@@ -840,7 +840,7 @@ Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
840
840
  function fe(y) {
841
841
  return !y.constructor || !y.constructor.name ? te : y.constructor.name;
842
842
  }
843
- return ee.checkPropTypes = c, ee.resetWarningCache = c.resetWarningCache, ee.PropTypes = ee, ee;
843
+ return Q.checkPropTypes = c, Q.resetWarningCache = c.resetWarningCache, Q.PropTypes = Q, Q;
844
844
  }, Et;
845
845
  }
846
846
  var St, er;
@@ -854,8 +854,8 @@ function mn() {
854
854
  function t() {
855
855
  }
856
856
  return t.resetWarningCache = r, St = function() {
857
- function o(_, S, W, I, R, w) {
858
- if (w !== e) {
857
+ function o(_, E, W, I, R, C) {
858
+ if (C !== e) {
859
859
  var te = new Error(
860
860
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
861
861
  );
@@ -908,7 +908,7 @@ function Sr() {
908
908
  if (rr)
909
909
  return xt;
910
910
  rr = 1;
911
- var e = function(r, t, o, c, i, _, S, W) {
911
+ var e = function(r, t, o, c, i, _, E, W) {
912
912
  if (process.env.NODE_ENV !== "production" && t === void 0)
913
913
  throw new Error("invariant requires an error message argument");
914
914
  if (!r) {
@@ -918,10 +918,10 @@ function Sr() {
918
918
  "Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
919
919
  );
920
920
  else {
921
- var R = [o, c, i, _, S, W], w = 0;
921
+ var R = [o, c, i, _, E, W], C = 0;
922
922
  I = new Error(
923
923
  t.replace(/%s/g, function() {
924
- return R[w++];
924
+ return R[C++];
925
925
  })
926
926
  ), I.name = "Invariant Violation";
927
927
  }
@@ -941,8 +941,8 @@ function xr() {
941
941
  var t = function(c, i) {
942
942
  var _ = arguments.length;
943
943
  i = new Array(_ > 1 ? _ - 1 : 0);
944
- for (var S = 1; S < _; S++)
945
- i[S - 1] = arguments[S];
944
+ for (var E = 1; E < _; E++)
945
+ i[E - 1] = arguments[E];
946
946
  var W = 0, I = "Warning: " + c.replace(/%s/g, function() {
947
947
  return i[W++];
948
948
  });
@@ -955,8 +955,8 @@ function xr() {
955
955
  r = function(o, c, i) {
956
956
  var _ = arguments.length;
957
957
  i = new Array(_ > 2 ? _ - 2 : 0);
958
- for (var S = 2; S < _; S++)
959
- i[S - 2] = arguments[S];
958
+ for (var E = 2; E < _; E++)
959
+ i[E - 2] = arguments[E];
960
960
  if (c === void 0)
961
961
  throw new Error(
962
962
  "`warning(condition, format, ...args)` requires a warning message argument"
@@ -971,94 +971,94 @@ function pn() {
971
971
  if (ir)
972
972
  return yt.exports;
973
973
  ir = 1;
974
- function e(s) {
975
- return s && typeof s == "object" && "default" in s ? s.default : s;
974
+ function e(a) {
975
+ return a && typeof a == "object" && "default" in a ? a.default : a;
976
976
  }
977
977
  var r = Te, t = e(r), o = gr;
978
978
  Er();
979
979
  var c = e(Sr());
980
980
  function i() {
981
- return (i = Object.assign || function(s) {
982
- for (var k = 1; k < arguments.length; k++) {
983
- var d = arguments[k];
981
+ return (i = Object.assign || function(a) {
982
+ for (var b = 1; b < arguments.length; b++) {
983
+ var d = arguments[b];
984
984
  for (var p in d)
985
- Object.prototype.hasOwnProperty.call(d, p) && (s[p] = d[p]);
985
+ Object.prototype.hasOwnProperty.call(d, p) && (a[p] = d[p]);
986
986
  }
987
- return s;
987
+ return a;
988
988
  }).apply(this, arguments);
989
989
  }
990
- function _(s, k) {
991
- s.prototype = Object.create(k.prototype), s.prototype.constructor = s, function(d, p) {
992
- for (var b = Object.getOwnPropertyNames(p), C = 0; C < b.length; C++) {
993
- var B = b[C], A = Object.getOwnPropertyDescriptor(p, B);
994
- A && A.configurable && d[B] === void 0 && Object.defineProperty(d, B, A);
990
+ function _(a, b) {
991
+ a.prototype = Object.create(b.prototype), a.prototype.constructor = a, function(d, p) {
992
+ for (var S = Object.getOwnPropertyNames(p), P = 0; P < S.length; P++) {
993
+ var N = S[P], A = Object.getOwnPropertyDescriptor(p, N);
994
+ A && A.configurable && d[N] === void 0 && Object.defineProperty(d, N, A);
995
995
  }
996
- }(s, k);
996
+ }(a, b);
997
997
  }
998
- function S(s, k) {
999
- if (s == null)
998
+ function E(a, b) {
999
+ if (a == null)
1000
1000
  return {};
1001
- var d, p, b = {}, C = Object.keys(s);
1002
- for (p = 0; p < C.length; p++)
1003
- d = C[p], k.indexOf(d) >= 0 || (b[d] = s[d]);
1004
- return b;
1001
+ var d, p, S = {}, P = Object.keys(a);
1002
+ for (p = 0; p < P.length; p++)
1003
+ d = P[p], b.indexOf(d) >= 0 || (S[d] = a[d]);
1004
+ return S;
1005
1005
  }
1006
- function W(s) {
1007
- return requestAnimationFrame(s);
1006
+ function W(a) {
1007
+ return requestAnimationFrame(a);
1008
1008
  }
1009
- function I(s) {
1010
- cancelAnimationFrame(s);
1009
+ function I(a) {
1010
+ cancelAnimationFrame(a);
1011
1011
  }
1012
- function R(s) {
1013
- var k = s.ownerDocument;
1014
- return k.hasFocus() && k.activeElement === s;
1012
+ function R(a) {
1013
+ var b = a.ownerDocument;
1014
+ return b.hasFocus() && b.activeElement === a;
1015
1015
  }
1016
- function w(s) {
1017
- return s == null ? void 0 : s.ownerDocument;
1016
+ function C(a) {
1017
+ return a == null ? void 0 : a.ownerDocument;
1018
1018
  }
1019
- function te(s) {
1020
- var k = function(d) {
1019
+ function te(a) {
1020
+ var b = function(d) {
1021
1021
  var p;
1022
- return (p = w(d)) == null ? void 0 : p.defaultView;
1023
- }(s);
1024
- return !!k && s instanceof k.HTMLElement;
1022
+ return (p = C(d)) == null ? void 0 : p.defaultView;
1023
+ }(a);
1024
+ return !!b && a instanceof b.HTMLElement;
1025
1025
  }
1026
- function ee(s) {
1026
+ function Q(a) {
1027
1027
  return r.useCallback(function() {
1028
- var k = s.current, d = typeof window < "u" && te(k);
1029
- if (!k || !d)
1028
+ var b = a.current, d = typeof window < "u" && te(b);
1029
+ if (!b || !d)
1030
1030
  return null;
1031
- if (k.nodeName !== "INPUT" && (k = k.querySelector("input")), !k)
1031
+ if (b.nodeName !== "INPUT" && (b = b.querySelector("input")), !b)
1032
1032
  throw new Error("react-input-mask: inputComponent doesn't contain input node");
1033
- return k;
1034
- }, [s]);
1033
+ return b;
1034
+ }, [a]);
1035
1035
  }
1036
- function re(s, k) {
1037
- var d, p, b, C, B = r.useRef({ start: null, end: null }), A = ee(s), j = r.useCallback(function() {
1036
+ function re(a, b) {
1037
+ var d, p, S, P, N = r.useRef({ start: null, end: null }), A = Q(a), j = r.useCallback(function() {
1038
1038
  return function(y) {
1039
1039
  var x = y.selectionStart, h = y.selectionEnd;
1040
1040
  return { start: x, end: h, length: h - x };
1041
1041
  }(A());
1042
1042
  }, [A]), H = r.useCallback(function() {
1043
- return B.current;
1043
+ return N.current;
1044
1044
  }, []), L = r.useCallback(function(y) {
1045
1045
  var x = A();
1046
- x && R(x) && (function(h, u, a) {
1047
- a === void 0 && (a = u), h.setSelectionRange(u, a);
1048
- }(x, y.start, y.end), B.current = j());
1046
+ x && R(x) && (function(h, u, s) {
1047
+ s === void 0 && (s = u), h.setSelectionRange(u, s);
1048
+ }(x, y.start, y.end), N.current = j());
1049
1049
  }, [A, j]), F = r.useCallback(function() {
1050
- B.current = j();
1051
- }, [j]), X = (d = F, p = r.useRef(null), b = r.useCallback(function() {
1050
+ N.current = j();
1051
+ }, [j]), X = (d = F, p = r.useRef(null), S = r.useCallback(function() {
1052
1052
  p.current === null && function y() {
1053
1053
  d(), p.current = W(y);
1054
1054
  }();
1055
- }, [d]), C = r.useCallback(function() {
1055
+ }, [d]), P = r.useCallback(function() {
1056
1056
  I(p.current), p.current = null;
1057
1057
  }, []), r.useEffect(function() {
1058
- p.current && (C(), b());
1059
- }, [b, C]), r.useEffect(I, []), [b, C]), ae = X[0], fe = X[1];
1058
+ p.current && (P(), S());
1059
+ }, [S, P]), r.useEffect(I, []), [S, P]), ae = X[0], fe = X[1];
1060
1060
  return r.useLayoutEffect(function() {
1061
- if (k) {
1061
+ if (b) {
1062
1062
  var y = A();
1063
1063
  return y.addEventListener("focus", ae), y.addEventListener("blur", fe), R(y) && ae(), function() {
1064
1064
  y.removeEventListener("focus", ae), y.removeEventListener("blur", fe), fe();
@@ -1066,9 +1066,9 @@ function pn() {
1066
1066
  }
1067
1067
  }), { getSelection: j, getLastSelection: H, setSelection: L };
1068
1068
  }
1069
- function Q(s, k) {
1070
- var d = r.useRef(), p = re(d, k), b = p.getSelection, C = p.getLastSelection, B = p.setSelection, A = function(F, X) {
1071
- var ae = ee(F), fe = r.useRef(X);
1069
+ function K(a, b) {
1070
+ var d = r.useRef(), p = re(d, b), S = p.getSelection, P = p.getLastSelection, N = p.setSelection, A = function(F, X) {
1071
+ var ae = Q(F), fe = r.useRef(X);
1072
1072
  return { getValue: r.useCallback(function() {
1073
1073
  return ae().value;
1074
1074
  }, [ae]), getLastValue: r.useCallback(function() {
@@ -1078,217 +1078,217 @@ function pn() {
1078
1078
  var x = ae();
1079
1079
  x && (x.value = y);
1080
1080
  }, [ae]) };
1081
- }(d, s), j = A.getValue, H = A.getLastValue, L = A.setValue;
1081
+ }(d, a), j = A.getValue, H = A.getLastValue, L = A.setValue;
1082
1082
  return { inputRef: d, getInputState: function() {
1083
- return { value: j(), selection: b() };
1083
+ return { value: j(), selection: S() };
1084
1084
  }, getLastInputState: function() {
1085
- return { value: H(), selection: C() };
1085
+ return { value: H(), selection: P() };
1086
1086
  }, setInputState: function(F) {
1087
1087
  var X = F.value, ae = F.selection;
1088
- L(X), B(ae);
1088
+ L(X), N(ae);
1089
1089
  } };
1090
1090
  }
1091
1091
  xr();
1092
- var G = ["disabled", "onBlur", "onChange", "onFocus", "onMouseDown", "readOnly", "value"], ie = { 9: /[0-9]/, a: /[A-Za-z]/, "*": /[A-Za-z0-9]/ }, Y = function(s) {
1093
- var k = this;
1092
+ var G = ["disabled", "onBlur", "onChange", "onFocus", "onMouseDown", "readOnly", "value"], ie = { 9: /[0-9]/, a: /[A-Za-z]/, "*": /[A-Za-z0-9]/ }, Y = function(a) {
1093
+ var b = this;
1094
1094
  this.isCharacterAllowedAtPosition = function(d, p) {
1095
- var b = k.maskOptions.maskPlaceholder;
1096
- return !!k.isCharacterFillingPosition(d, p) || !!b && b[p] === d;
1095
+ var S = b.maskOptions.maskPlaceholder;
1096
+ return !!b.isCharacterFillingPosition(d, p) || !!S && S[p] === d;
1097
1097
  }, this.isCharacterFillingPosition = function(d, p) {
1098
- var b = k.maskOptions.mask;
1099
- if (!d || p >= b.length)
1098
+ var S = b.maskOptions.mask;
1099
+ if (!d || p >= S.length)
1100
1100
  return !1;
1101
- if (!k.isPositionEditable(p))
1102
- return b[p] === d;
1103
- var C = b[p];
1104
- return new RegExp(C).test(d);
1101
+ if (!b.isPositionEditable(p))
1102
+ return S[p] === d;
1103
+ var P = S[p];
1104
+ return new RegExp(P).test(d);
1105
1105
  }, this.isPositionEditable = function(d) {
1106
- var p = k.maskOptions, b = p.mask, C = p.permanents;
1107
- return d < b.length && C.indexOf(d) === -1;
1106
+ var p = b.maskOptions, S = p.mask, P = p.permanents;
1107
+ return d < S.length && P.indexOf(d) === -1;
1108
1108
  }, this.isValueEmpty = function(d) {
1109
- return d.split("").every(function(p, b) {
1110
- return !k.isPositionEditable(b) || !k.isCharacterFillingPosition(p, b);
1109
+ return d.split("").every(function(p, S) {
1110
+ return !b.isPositionEditable(S) || !b.isCharacterFillingPosition(p, S);
1111
1111
  });
1112
1112
  }, this.isValueFilled = function(d) {
1113
- return k.getFilledLength(d) === k.maskOptions.lastEditablePosition + 1;
1113
+ return b.getFilledLength(d) === b.maskOptions.lastEditablePosition + 1;
1114
1114
  }, this.getDefaultSelectionForValue = function(d) {
1115
- var p = k.getFilledLength(d), b = k.getRightEditablePosition(p);
1116
- return { start: b, end: b };
1115
+ var p = b.getFilledLength(d), S = b.getRightEditablePosition(p);
1116
+ return { start: S, end: S };
1117
1117
  }, this.getFilledLength = function(d) {
1118
- return function(p, b) {
1119
- for (var C = p.length - 1; C >= 0; C--)
1120
- if (b(p[C], C))
1121
- return C;
1118
+ return function(p, S) {
1119
+ for (var P = p.length - 1; P >= 0; P--)
1120
+ if (S(p[P], P))
1121
+ return P;
1122
1122
  return -1;
1123
- }(d.split(""), function(p, b) {
1124
- return k.isPositionEditable(b) && k.isCharacterFillingPosition(p, b);
1123
+ }(d.split(""), function(p, S) {
1124
+ return b.isPositionEditable(S) && b.isCharacterFillingPosition(p, S);
1125
1125
  }) + 1;
1126
1126
  }, this.getStringFillingLengthAtPosition = function(d, p) {
1127
- return d.split("").reduce(function(b, C) {
1128
- return k.insertCharacterAtPosition(b, C, b.length);
1129
- }, function(b, C) {
1130
- C === void 0 && (C = 1);
1131
- for (var B = "", A = 0; A < C; A++)
1132
- B += b;
1133
- return B;
1127
+ return d.split("").reduce(function(S, P) {
1128
+ return b.insertCharacterAtPosition(S, P, S.length);
1129
+ }, function(S, P) {
1130
+ P === void 0 && (P = 1);
1131
+ for (var N = "", A = 0; A < P; A++)
1132
+ N += S;
1133
+ return N;
1134
1134
  }(" ", p)).length - p;
1135
1135
  }, this.getLeftEditablePosition = function(d) {
1136
1136
  for (var p = d; p >= 0; p--)
1137
- if (k.isPositionEditable(p))
1137
+ if (b.isPositionEditable(p))
1138
1138
  return p;
1139
1139
  return null;
1140
1140
  }, this.getRightEditablePosition = function(d) {
1141
- for (var p = k.maskOptions.mask, b = d; b < p.length; b++)
1142
- if (k.isPositionEditable(b))
1143
- return b;
1141
+ for (var p = b.maskOptions.mask, S = d; S < p.length; S++)
1142
+ if (b.isPositionEditable(S))
1143
+ return S;
1144
1144
  return null;
1145
1145
  }, this.formatValue = function(d) {
1146
- var p = k.maskOptions, b = p.maskPlaceholder, C = p.mask;
1147
- if (!b) {
1148
- for (d = k.insertStringAtPosition("", d, 0); d.length < C.length && !k.isPositionEditable(d.length); )
1149
- d += C[d.length];
1146
+ var p = b.maskOptions, S = p.maskPlaceholder, P = p.mask;
1147
+ if (!S) {
1148
+ for (d = b.insertStringAtPosition("", d, 0); d.length < P.length && !b.isPositionEditable(d.length); )
1149
+ d += P[d.length];
1150
1150
  return d;
1151
1151
  }
1152
- return k.insertStringAtPosition(b, d, 0);
1153
- }, this.clearRange = function(d, p, b) {
1154
- if (!b)
1152
+ return b.insertStringAtPosition(S, d, 0);
1153
+ }, this.clearRange = function(d, p, S) {
1154
+ if (!S)
1155
1155
  return d;
1156
- var C = p + b, B = k.maskOptions, A = B.maskPlaceholder, j = B.mask, H = d.split("").map(function(L, F) {
1157
- var X = k.isPositionEditable(F);
1158
- return !A && F >= C && !X ? "" : F < p || F >= C ? L : X ? A ? A[F] : "" : j[F];
1156
+ var P = p + S, N = b.maskOptions, A = N.maskPlaceholder, j = N.mask, H = d.split("").map(function(L, F) {
1157
+ var X = b.isPositionEditable(F);
1158
+ return !A && F >= P && !X ? "" : F < p || F >= P ? L : X ? A ? A[F] : "" : j[F];
1159
1159
  }).join("");
1160
- return k.formatValue(H);
1161
- }, this.insertCharacterAtPosition = function(d, p, b) {
1162
- var C = k.maskOptions, B = C.mask, A = C.maskPlaceholder;
1163
- if (b >= B.length)
1160
+ return b.formatValue(H);
1161
+ }, this.insertCharacterAtPosition = function(d, p, S) {
1162
+ var P = b.maskOptions, N = P.mask, A = P.maskPlaceholder;
1163
+ if (S >= N.length)
1164
1164
  return d;
1165
- var j = k.isCharacterAllowedAtPosition(p, b), H = k.isPositionEditable(b), L = k.getRightEditablePosition(b), F = A && L ? p === A[L] : null, X = d.slice(0, b);
1166
- return !j && H || (d = X + (j ? p : B[b])), j || H || F || (d = k.insertCharacterAtPosition(d, p, b + 1)), d;
1167
- }, this.insertStringAtPosition = function(d, p, b) {
1168
- var C = k.maskOptions, B = C.mask, A = C.maskPlaceholder;
1169
- if (!p || b >= B.length)
1165
+ var j = b.isCharacterAllowedAtPosition(p, S), H = b.isPositionEditable(S), L = b.getRightEditablePosition(S), F = A && L ? p === A[L] : null, X = d.slice(0, S);
1166
+ return !j && H || (d = X + (j ? p : N[S])), j || H || F || (d = b.insertCharacterAtPosition(d, p, S + 1)), d;
1167
+ }, this.insertStringAtPosition = function(d, p, S) {
1168
+ var P = b.maskOptions, N = P.mask, A = P.maskPlaceholder;
1169
+ if (!p || S >= N.length)
1170
1170
  return d;
1171
- var j = p.split(""), H = k.isValueFilled(d) || !!A, L = d.slice(b);
1171
+ var j = p.split(""), H = b.isValueFilled(d) || !!A, L = d.slice(S);
1172
1172
  return d = j.reduce(function(F, X) {
1173
- return k.insertCharacterAtPosition(F, X, F.length);
1174
- }, d.slice(0, b)), H ? d += L.slice(d.length - b) : k.isValueFilled(d) ? d += B.slice(d.length).join("") : d = L.split("").filter(function(F, X) {
1175
- return k.isPositionEditable(b + X);
1173
+ return b.insertCharacterAtPosition(F, X, F.length);
1174
+ }, d.slice(0, S)), H ? d += L.slice(d.length - S) : b.isValueFilled(d) ? d += N.slice(d.length).join("") : d = L.split("").filter(function(F, X) {
1175
+ return b.isPositionEditable(S + X);
1176
1176
  }).reduce(function(F, X) {
1177
- var ae = k.getRightEditablePosition(F.length);
1178
- return ae === null ? F : (k.isPositionEditable(F.length) || (F += B.slice(F.length, ae).join("")), k.insertCharacterAtPosition(F, X, F.length));
1177
+ var ae = b.getRightEditablePosition(F.length);
1178
+ return ae === null ? F : (b.isPositionEditable(F.length) || (F += N.slice(F.length, ae).join("")), b.insertCharacterAtPosition(F, X, F.length));
1179
1179
  }, d), d;
1180
1180
  }, this.processChange = function(d, p) {
1181
- var b = k.maskOptions, C = b.mask, B = b.prefix, A = b.lastEditablePosition, j = d.value, H = d.selection, L = p.value, F = p.selection, X = j, ae = "", fe = 0, y = 0, x = Math.min(F.start, H.start);
1182
- return H.end > F.start ? (ae = X.slice(F.start, H.end), y = (fe = k.getStringFillingLengthAtPosition(ae, x)) ? F.length : 0) : X.length < L.length && (y = L.length - X.length), X = L, y && (y === 1 && !F.length && (x = F.start === H.start ? k.getRightEditablePosition(H.start) : k.getLeftEditablePosition(H.start)), X = k.clearRange(X, x, y)), X = k.insertStringAtPosition(X, ae, x), (x += fe) >= C.length ? x = C.length : x < B.length && !fe ? x = B.length : x >= B.length && x < A && fe && (x = k.getRightEditablePosition(x)), { value: X = k.formatValue(X), enteredString: ae, selection: { start: x, end: x } };
1181
+ var S = b.maskOptions, P = S.mask, N = S.prefix, A = S.lastEditablePosition, j = d.value, H = d.selection, L = p.value, F = p.selection, X = j, ae = "", fe = 0, y = 0, x = Math.min(F.start, H.start);
1182
+ return H.end > F.start ? (ae = X.slice(F.start, H.end), y = (fe = b.getStringFillingLengthAtPosition(ae, x)) ? F.length : 0) : X.length < L.length && (y = L.length - X.length), X = L, y && (y === 1 && !F.length && (x = F.start === H.start ? b.getRightEditablePosition(H.start) : b.getLeftEditablePosition(H.start)), X = b.clearRange(X, x, y)), X = b.insertStringAtPosition(X, ae, x), (x += fe) >= P.length ? x = P.length : x < N.length && !fe ? x = N.length : x >= N.length && x < A && fe && (x = b.getRightEditablePosition(x)), { value: X = b.formatValue(X), enteredString: ae, selection: { start: x, end: x } };
1183
1183
  }, this.maskOptions = function(d) {
1184
- var p = d.mask, b = d.maskPlaceholder, C = [];
1184
+ var p = d.mask, S = d.maskPlaceholder, P = [];
1185
1185
  if (!p)
1186
1186
  return { maskPlaceholder: null, mask: null, prefix: null, lastEditablePosition: null, permanents: [] };
1187
1187
  if (typeof p == "string") {
1188
- var B = !1, A = "";
1188
+ var N = !1, A = "";
1189
1189
  p.split("").forEach(function(L) {
1190
- B || L !== "\\" ? (!B && ie[L] || C.push(A.length), A += L, B = !1) : B = !0;
1190
+ N || L !== "\\" ? (!N && ie[L] || P.push(A.length), A += L, N = !1) : N = !0;
1191
1191
  }), p = A.split("").map(function(L, F) {
1192
- return C.indexOf(F) === -1 ? ie[L] : L;
1192
+ return P.indexOf(F) === -1 ? ie[L] : L;
1193
1193
  });
1194
1194
  } else
1195
1195
  p.forEach(function(L, F) {
1196
- typeof L == "string" && C.push(F);
1196
+ typeof L == "string" && P.push(F);
1197
1197
  });
1198
- b && (b = b.length === 1 ? p.map(function(L, F) {
1199
- return C.indexOf(F) !== -1 ? L : b;
1200
- }) : b.split(""), C.forEach(function(L) {
1201
- b[L] = p[L];
1202
- }), b = b.join(""));
1203
- for (var j = C.filter(function(L, F) {
1198
+ S && (S = S.length === 1 ? p.map(function(L, F) {
1199
+ return P.indexOf(F) !== -1 ? L : S;
1200
+ }) : S.split(""), P.forEach(function(L) {
1201
+ S[L] = p[L];
1202
+ }), S = S.join(""));
1203
+ for (var j = P.filter(function(L, F) {
1204
1204
  return L === F;
1205
1205
  }).map(function(L) {
1206
1206
  return p[L];
1207
- }).join(""), H = p.length - 1; C.indexOf(H) !== -1; )
1207
+ }).join(""), H = p.length - 1; P.indexOf(H) !== -1; )
1208
1208
  H--;
1209
- return { maskPlaceholder: b, prefix: j, mask: p, lastEditablePosition: H, permanents: C };
1210
- }(s);
1211
- }, ne = function(s) {
1212
- function k() {
1213
- return s.apply(this, arguments) || this;
1214
- }
1215
- return _(k, s), k.prototype.render = function() {
1216
- var d = this.props, p = d.children, b = S(d, ["children"]);
1217
- return t.cloneElement(p, b);
1218
- }, k;
1219
- }(t.Component), K = r.forwardRef(function(s, k) {
1220
- var d = s.alwaysShowMask, p = s.children, b = s.mask, C = s.maskPlaceholder, B = s.beforeMaskedStateChange, A = S(s, ["alwaysShowMask", "children", "mask", "maskPlaceholder", "beforeMaskedStateChange"]);
1209
+ return { maskPlaceholder: S, prefix: j, mask: p, lastEditablePosition: H, permanents: P };
1210
+ }(a);
1211
+ }, ne = function(a) {
1212
+ function b() {
1213
+ return a.apply(this, arguments) || this;
1214
+ }
1215
+ return _(b, a), b.prototype.render = function() {
1216
+ var d = this.props, p = d.children, S = E(d, ["children"]);
1217
+ return t.cloneElement(p, S);
1218
+ }, b;
1219
+ }(t.Component), ee = r.forwardRef(function(a, b) {
1220
+ var d = a.alwaysShowMask, p = a.children, S = a.mask, P = a.maskPlaceholder, N = a.beforeMaskedStateChange, A = E(a, ["alwaysShowMask", "children", "mask", "maskPlaceholder", "beforeMaskedStateChange"]);
1221
1221
  (function(m) {
1222
- var N = m.mask, q = m.maskPlaceholder;
1223
- N && q && q.length !== 1 && q.length !== N.length && c(!1);
1224
- })(s);
1225
- var j, H, L = new Y({ mask: b, maskPlaceholder: C }), F = !!b, X = !A.disabled && !A.readOnly, ae = s.value !== null && s.value !== void 0, fe = (j = F, H = r.useRef(), r.useEffect(function() {
1222
+ var B = m.mask, q = m.maskPlaceholder;
1223
+ B && q && q.length !== 1 && q.length !== B.length && c(!1);
1224
+ })(a);
1225
+ var j, H, L = new Y({ mask: S, maskPlaceholder: P }), F = !!S, X = !A.disabled && !A.readOnly, ae = a.value !== null && a.value !== void 0, fe = (j = F, H = r.useRef(), r.useEffect(function() {
1226
1226
  H.current = j;
1227
- }), H.current), y = Q(function(m) {
1227
+ }), H.current), y = K(function(m) {
1228
1228
  return "" + m;
1229
- }((ae ? s.value : s.defaultValue) || ""), F), x = y.inputRef, h = y.getInputState, u = y.setInputState, a = y.getLastInputState, f = ee(x);
1229
+ }((ae ? a.value : a.defaultValue) || ""), F), x = y.inputRef, h = y.getInputState, u = y.setInputState, s = y.getLastInputState, f = Q(x);
1230
1230
  if (F && ae) {
1231
- var g = f(), E = g && R(g) || d || s.value ? L.formatValue(s.value) : s.value;
1232
- B && (E = B({ nextState: { value: E, selection: { start: null, end: null } } }).value), u(i({}, a(), { value: E }));
1231
+ var g = f(), k = g && R(g) || d || a.value ? L.formatValue(a.value) : a.value;
1232
+ N && (k = N({ nextState: { value: k, selection: { start: null, end: null } } }).value), u(i({}, s(), { value: k }));
1233
1233
  }
1234
- var D = a(), T = D.selection, V = D.value;
1234
+ var D = s(), T = D.selection, V = D.value;
1235
1235
  r.useLayoutEffect(function() {
1236
1236
  if (F) {
1237
- var m = R(f()), N = T, q = h(), U = i({}, q);
1237
+ var m = R(f()), B = T, q = h(), U = i({}, q);
1238
1238
  if (!ae) {
1239
1239
  var oe = q.value, ye = L.formatValue(oe), n = L.isValueEmpty(ye);
1240
1240
  !n || m || d ? U.value = ye : n && !m && (U.value = "");
1241
1241
  }
1242
- m && !fe ? U.selection = L.getDefaultSelectionForValue(U.value) : ae && m && N && N.start !== null && N.end !== null && (U.selection = N), B && (U = B({ currentState: q, nextState: U })), u(U);
1242
+ m && !fe ? U.selection = L.getDefaultSelectionForValue(U.value) : ae && m && B && B.start !== null && B.end !== null && (U.selection = B), N && (U = N({ currentState: q, nextState: U })), u(U);
1243
1243
  }
1244
1244
  });
1245
1245
  var J = i({}, A, { onFocus: function(m) {
1246
1246
  x.current = m.target;
1247
- var N = h().value;
1248
- if (F && !L.isValueFilled(N)) {
1249
- var q = L.formatValue(N), U = L.getDefaultSelectionForValue(q), oe = { value: q, selection: U };
1250
- B && (q = (oe = B({ currentState: h(), nextState: oe })).value, U = oe.selection), u(oe), q !== N && s.onChange && s.onChange(m), W(function() {
1251
- u(a());
1247
+ var B = h().value;
1248
+ if (F && !L.isValueFilled(B)) {
1249
+ var q = L.formatValue(B), U = L.getDefaultSelectionForValue(q), oe = { value: q, selection: U };
1250
+ N && (q = (oe = N({ currentState: h(), nextState: oe })).value, U = oe.selection), u(oe), q !== B && a.onChange && a.onChange(m), W(function() {
1251
+ u(s());
1252
1252
  });
1253
1253
  }
1254
- s.onFocus && s.onFocus(m);
1254
+ a.onFocus && a.onFocus(m);
1255
1255
  }, onBlur: function(m) {
1256
- var N = h().value, q = a().value;
1256
+ var B = h().value, q = s().value;
1257
1257
  if (F && !d && L.isValueEmpty(q)) {
1258
1258
  var U = "", oe = { value: U, selection: { start: null, end: null } };
1259
- B && (U = (oe = B({ currentState: h(), nextState: oe })).value), u(oe), U !== N && s.onChange && s.onChange(m);
1259
+ N && (U = (oe = N({ currentState: h(), nextState: oe })).value), u(oe), U !== B && a.onChange && a.onChange(m);
1260
1260
  }
1261
- s.onBlur && s.onBlur(m);
1261
+ a.onBlur && a.onBlur(m);
1262
1262
  }, onChange: F && X ? function(m) {
1263
- var N = h(), q = a(), U = L.processChange(N, q);
1264
- B && (U = B({ currentState: N, previousState: q, nextState: U })), u(U), s.onChange && s.onChange(m);
1265
- } : s.onChange, onMouseDown: F && X ? function(m) {
1266
- var N = f(), q = h().value, U = w(N);
1267
- if (!R(N) && !L.isValueFilled(q)) {
1263
+ var B = h(), q = s(), U = L.processChange(B, q);
1264
+ N && (U = N({ currentState: B, previousState: q, nextState: U })), u(U), a.onChange && a.onChange(m);
1265
+ } : a.onChange, onMouseDown: F && X ? function(m) {
1266
+ var B = f(), q = h().value, U = C(B);
1267
+ if (!R(B) && !L.isValueFilled(q)) {
1268
1268
  var oe = m.clientX, ye = m.clientY, n = (/* @__PURE__ */ new Date()).getTime();
1269
1269
  U.addEventListener("mouseup", function l(v) {
1270
- if (U.removeEventListener("mouseup", l), R(N)) {
1271
- var M = Math.abs(v.clientX - oe), O = Math.abs(v.clientY - ye), P = Math.max(M, O), $ = (/* @__PURE__ */ new Date()).getTime() - n;
1272
- if (P <= 10 && $ <= 200 || P <= 5 && $ <= 300) {
1273
- var se = a(), ve = i({}, se, { selection: L.getDefaultSelectionForValue(se.value) });
1270
+ if (U.removeEventListener("mouseup", l), R(B)) {
1271
+ var M = Math.abs(v.clientX - oe), O = Math.abs(v.clientY - ye), w = Math.max(M, O), $ = (/* @__PURE__ */ new Date()).getTime() - n;
1272
+ if (w <= 10 && $ <= 200 || w <= 5 && $ <= 300) {
1273
+ var se = s(), ve = i({}, se, { selection: L.getDefaultSelectionForValue(se.value) });
1274
1274
  u(ve);
1275
1275
  }
1276
1276
  }
1277
1277
  });
1278
1278
  }
1279
- s.onMouseDown && s.onMouseDown(m);
1280
- } : s.onMouseDown, ref: function(m) {
1281
- x.current = o.findDOMNode(m), /* @__PURE__ */ function(N) {
1282
- return typeof N == "function";
1283
- }(k) ? k(m) : k !== null && typeof k == "object" && (k.current = m);
1284
- }, value: F && ae ? V : s.value });
1285
- return p ? (function(m, N) {
1279
+ a.onMouseDown && a.onMouseDown(m);
1280
+ } : a.onMouseDown, ref: function(m) {
1281
+ x.current = o.findDOMNode(m), /* @__PURE__ */ function(B) {
1282
+ return typeof B == "function";
1283
+ }(b) ? b(m) : b !== null && typeof b == "object" && (b.current = m);
1284
+ }, value: F && ae ? V : a.value });
1285
+ return p ? (function(m, B) {
1286
1286
  G.filter(function(q) {
1287
- return N.props[q] != null && N.props[q] !== m[q];
1287
+ return B.props[q] != null && B.props[q] !== m[q];
1288
1288
  }).length && c(!1);
1289
- }(s, p), t.createElement(ne, J, p)) : t.createElement("input", J);
1289
+ }(a, p), t.createElement(ne, J, p)) : t.createElement("input", J);
1290
1290
  });
1291
- return K.displayName = "InputMask", K.defaultProps = { alwaysShowMask: !1, maskPlaceholder: "_" }, yt.exports = K, yt.exports;
1291
+ return ee.displayName = "InputMask", ee.defaultProps = { alwaysShowMask: !1, maskPlaceholder: "_" }, yt.exports = ee, yt.exports;
1292
1292
  }
1293
1293
  var wt, ar;
1294
1294
  function yn() {
@@ -1299,52 +1299,52 @@ function yn() {
1299
1299
  return h && typeof h == "object" && "default" in h ? h.default : h;
1300
1300
  }
1301
1301
  var r = Te, t = e(r), o = gr, c = e(Er()), i = e(Sr()), _ = e(xr());
1302
- function S(h, u) {
1303
- for (var a = Object.getOwnPropertyNames(u), f = 0; f < a.length; f++) {
1304
- var g = a[f], E = Object.getOwnPropertyDescriptor(u, g);
1305
- E && E.configurable && h[g] === void 0 && Object.defineProperty(h, g, E);
1302
+ function E(h, u) {
1303
+ for (var s = Object.getOwnPropertyNames(u), f = 0; f < s.length; f++) {
1304
+ var g = s[f], k = Object.getOwnPropertyDescriptor(u, g);
1305
+ k && k.configurable && h[g] === void 0 && Object.defineProperty(h, g, k);
1306
1306
  }
1307
1307
  return h;
1308
1308
  }
1309
1309
  function W() {
1310
1310
  return W = Object.assign || function(h) {
1311
1311
  for (var u = 1; u < arguments.length; u++) {
1312
- var a = arguments[u];
1313
- for (var f in a)
1314
- Object.prototype.hasOwnProperty.call(a, f) && (h[f] = a[f]);
1312
+ var s = arguments[u];
1313
+ for (var f in s)
1314
+ Object.prototype.hasOwnProperty.call(s, f) && (h[f] = s[f]);
1315
1315
  }
1316
1316
  return h;
1317
1317
  }, W.apply(this, arguments);
1318
1318
  }
1319
1319
  function I(h, u) {
1320
- h.prototype = Object.create(u.prototype), h.prototype.constructor = h, S(h, u);
1320
+ h.prototype = Object.create(u.prototype), h.prototype.constructor = h, E(h, u);
1321
1321
  }
1322
1322
  function R(h, u) {
1323
1323
  if (h == null)
1324
1324
  return {};
1325
- var a = {}, f = Object.keys(h), g, E;
1326
- for (E = 0; E < f.length; E++)
1327
- g = f[E], !(u.indexOf(g) >= 0) && (a[g] = h[g]);
1328
- return a;
1325
+ var s = {}, f = Object.keys(h), g, k;
1326
+ for (k = 0; k < f.length; k++)
1327
+ g = f[k], !(u.indexOf(g) >= 0) && (s[g] = h[g]);
1328
+ return s;
1329
1329
  }
1330
- function w(h) {
1330
+ function C(h) {
1331
1331
  return requestAnimationFrame(h);
1332
1332
  }
1333
1333
  function te(h) {
1334
1334
  cancelAnimationFrame(h);
1335
1335
  }
1336
- function ee(h, u, a) {
1337
- a === void 0 && (a = u), h.setSelectionRange(u, a);
1336
+ function Q(h, u, s) {
1337
+ s === void 0 && (s = u), h.setSelectionRange(u, s);
1338
1338
  }
1339
1339
  function re(h) {
1340
- var u = h.selectionStart, a = h.selectionEnd;
1340
+ var u = h.selectionStart, s = h.selectionEnd;
1341
1341
  return {
1342
1342
  start: u,
1343
- end: a,
1344
- length: a - u
1343
+ end: s,
1344
+ length: s - u
1345
1345
  };
1346
1346
  }
1347
- function Q(h) {
1347
+ function K(h) {
1348
1348
  var u = h.ownerDocument;
1349
1349
  return u.hasFocus() && u.activeElement === h;
1350
1350
  }
@@ -1362,27 +1362,27 @@ function yn() {
1362
1362
  function ne(h) {
1363
1363
  return typeof h == "function";
1364
1364
  }
1365
- function K(h, u) {
1366
- for (var a = h.length - 1; a >= 0; a--) {
1367
- var f = h[a];
1368
- if (u(f, a))
1369
- return a;
1365
+ function ee(h, u) {
1366
+ for (var s = h.length - 1; s >= 0; s--) {
1367
+ var f = h[s];
1368
+ if (u(f, s))
1369
+ return s;
1370
1370
  }
1371
1371
  return -1;
1372
1372
  }
1373
- function s(h, u) {
1373
+ function a(h, u) {
1374
1374
  u === void 0 && (u = 1);
1375
- for (var a = "", f = 0; f < u; f++)
1376
- a += h;
1377
- return a;
1375
+ for (var s = "", f = 0; f < u; f++)
1376
+ s += h;
1377
+ return s;
1378
1378
  }
1379
- function k(h) {
1379
+ function b(h) {
1380
1380
  return "" + h;
1381
1381
  }
1382
1382
  function d(h) {
1383
1383
  return r.useCallback(function() {
1384
- var u = h.current, a = typeof window < "u" && Y(u);
1385
- if (!u || !a)
1384
+ var u = h.current, s = typeof window < "u" && Y(u);
1385
+ if (!u || !s)
1386
1386
  return null;
1387
1387
  if (u.nodeName !== "INPUT" && (u = u.querySelector("input")), !u)
1388
1388
  throw new Error("react-input-mask: inputComponent doesn't contain input node");
@@ -1390,71 +1390,71 @@ function yn() {
1390
1390
  }, [h]);
1391
1391
  }
1392
1392
  function p(h) {
1393
- var u = r.useRef(null), a = r.useCallback(function() {
1393
+ var u = r.useRef(null), s = r.useCallback(function() {
1394
1394
  if (u.current !== null)
1395
1395
  return;
1396
1396
  function g() {
1397
- h(), u.current = w(g);
1397
+ h(), u.current = C(g);
1398
1398
  }
1399
1399
  g();
1400
1400
  }, [h]), f = r.useCallback(function() {
1401
1401
  te(u.current), u.current = null;
1402
1402
  }, []);
1403
1403
  return r.useEffect(function() {
1404
- u.current && (f(), a());
1405
- }, [a, f]), r.useEffect(te, []), [a, f];
1404
+ u.current && (f(), s());
1405
+ }, [s, f]), r.useEffect(te, []), [s, f];
1406
1406
  }
1407
- function b(h, u) {
1408
- var a = r.useRef({
1407
+ function S(h, u) {
1408
+ var s = r.useRef({
1409
1409
  start: null,
1410
1410
  end: null
1411
1411
  }), f = d(h), g = r.useCallback(function() {
1412
- var N = f();
1413
- return re(N);
1414
- }, [f]), E = r.useCallback(function() {
1415
- return a.current;
1416
- }, []), D = r.useCallback(function(N) {
1412
+ var B = f();
1413
+ return re(B);
1414
+ }, [f]), k = r.useCallback(function() {
1415
+ return s.current;
1416
+ }, []), D = r.useCallback(function(B) {
1417
1417
  var q = f();
1418
- !q || !Q(q) || (ee(q, N.start, N.end), a.current = g());
1418
+ !q || !K(q) || (Q(q, B.start, B.end), s.current = g());
1419
1419
  }, [f, g]), T = r.useCallback(function() {
1420
- a.current = g();
1420
+ s.current = g();
1421
1421
  }, [g]), V = p(T), J = V[0], m = V[1];
1422
1422
  return r.useLayoutEffect(function() {
1423
1423
  if (u) {
1424
- var N = f();
1425
- return N.addEventListener("focus", J), N.addEventListener("blur", m), Q(N) && J(), function() {
1426
- N.removeEventListener("focus", J), N.removeEventListener("blur", m), m();
1424
+ var B = f();
1425
+ return B.addEventListener("focus", J), B.addEventListener("blur", m), K(B) && J(), function() {
1426
+ B.removeEventListener("focus", J), B.removeEventListener("blur", m), m();
1427
1427
  };
1428
1428
  }
1429
1429
  }), {
1430
1430
  getSelection: g,
1431
- getLastSelection: E,
1431
+ getLastSelection: k,
1432
1432
  setSelection: D
1433
1433
  };
1434
1434
  }
1435
- function C(h, u) {
1436
- var a = d(h), f = r.useRef(u), g = r.useCallback(function() {
1437
- var T = a();
1435
+ function P(h, u) {
1436
+ var s = d(h), f = r.useRef(u), g = r.useCallback(function() {
1437
+ var T = s();
1438
1438
  return T.value;
1439
- }, [a]), E = r.useCallback(function() {
1439
+ }, [s]), k = r.useCallback(function() {
1440
1440
  return f.current;
1441
1441
  }, []), D = r.useCallback(function(T) {
1442
1442
  f.current = T;
1443
- var V = a();
1443
+ var V = s();
1444
1444
  V && (V.value = T);
1445
- }, [a]);
1445
+ }, [s]);
1446
1446
  return {
1447
1447
  getValue: g,
1448
- getLastValue: E,
1448
+ getLastValue: k,
1449
1449
  setValue: D
1450
1450
  };
1451
1451
  }
1452
- function B(h, u) {
1453
- var a = r.useRef(), f = b(a, u), g = f.getSelection, E = f.getLastSelection, D = f.setSelection, T = C(a, h), V = T.getValue, J = T.getLastValue, m = T.setValue;
1454
- function N() {
1452
+ function N(h, u) {
1453
+ var s = r.useRef(), f = S(s, u), g = f.getSelection, k = f.getLastSelection, D = f.setSelection, T = P(s, h), V = T.getValue, J = T.getLastValue, m = T.setValue;
1454
+ function B() {
1455
1455
  return {
1456
1456
  value: J(),
1457
- selection: E()
1457
+ selection: k()
1458
1458
  };
1459
1459
  }
1460
1460
  function q() {
@@ -1468,9 +1468,9 @@ function yn() {
1468
1468
  m(ye), D(n);
1469
1469
  }
1470
1470
  return {
1471
- inputRef: a,
1471
+ inputRef: s,
1472
1472
  getInputState: q,
1473
- getLastInputState: N,
1473
+ getLastInputState: B,
1474
1474
  setInputState: U
1475
1475
  };
1476
1476
  }
@@ -1489,19 +1489,19 @@ function yn() {
1489
1489
  process.env.NODE_ENV !== "production" && _(!h.maxLength || !h.mask, "react-input-mask: maxLength property shouldn't be passed to the masked input. It breaks masking and unnecessary because length is limited by the mask length.");
1490
1490
  }
1491
1491
  function F(h) {
1492
- var u = h.mask, a = h.maskPlaceholder;
1493
- !u || !a || a.length === 1 || a.length === u.length || (process.env.NODE_ENV !== "production" ? i(!1, `react-input-mask: maskPlaceholder should either be a single character or have the same length as the mask:
1492
+ var u = h.mask, s = h.maskPlaceholder;
1493
+ !u || !s || s.length === 1 || s.length === u.length || (process.env.NODE_ENV !== "production" ? i(!1, `react-input-mask: maskPlaceholder should either be a single character or have the same length as the mask:
1494
1494
  ` + ("mask: " + u + `
1495
- `) + ("maskPlaceholder: " + a)) : i(!1));
1495
+ `) + ("maskPlaceholder: " + s)) : i(!1));
1496
1496
  }
1497
1497
  function X(h, u) {
1498
- var a = j.filter(function(f) {
1498
+ var s = j.filter(function(f) {
1499
1499
  return u.props[f] != null && u.props[f] !== h[f];
1500
1500
  });
1501
- a.length && (process.env.NODE_ENV !== "production" ? i(!1, "react-input-mask: the following props should be passed to the InputMask component, not to children: " + a.join(",")) : i(!1));
1501
+ s.length && (process.env.NODE_ENV !== "production" ? i(!1, "react-input-mask: the following props should be passed to the InputMask component, not to children: " + s.join(",")) : i(!1));
1502
1502
  }
1503
1503
  function ae(h) {
1504
- var u = h.mask, a = h.maskPlaceholder, f = [];
1504
+ var u = h.mask, s = h.maskPlaceholder, f = [];
1505
1505
  if (!u)
1506
1506
  return {
1507
1507
  maskPlaceholder: null,
@@ -1511,21 +1511,21 @@ function yn() {
1511
1511
  permanents: []
1512
1512
  };
1513
1513
  if (typeof u == "string") {
1514
- var g = !1, E = "";
1514
+ var g = !1, k = "";
1515
1515
  u.split("").forEach(function(V) {
1516
- !g && V === "\\" ? g = !0 : ((g || !H[V]) && f.push(E.length), E += V, g = !1);
1517
- }), u = E.split("").map(function(V, J) {
1516
+ !g && V === "\\" ? g = !0 : ((g || !H[V]) && f.push(k.length), k += V, g = !1);
1517
+ }), u = k.split("").map(function(V, J) {
1518
1518
  return f.indexOf(J) === -1 ? H[V] : V;
1519
1519
  });
1520
1520
  } else
1521
1521
  u.forEach(function(V, J) {
1522
1522
  typeof V == "string" && f.push(J);
1523
1523
  });
1524
- a && (a.length === 1 ? a = u.map(function(V, J) {
1525
- return f.indexOf(J) !== -1 ? V : a;
1526
- }) : a = a.split(""), f.forEach(function(V) {
1527
- a[V] = u[V];
1528
- }), a = a.join(""));
1524
+ s && (s.length === 1 ? s = u.map(function(V, J) {
1525
+ return f.indexOf(J) !== -1 ? V : s;
1526
+ }) : s = s.split(""), f.forEach(function(V) {
1527
+ s[V] = u[V];
1528
+ }), s = s.join(""));
1529
1529
  for (var D = f.filter(function(V, J) {
1530
1530
  return V === J;
1531
1531
  }).map(function(V) {
@@ -1533,7 +1533,7 @@ function yn() {
1533
1533
  }).join(""), T = u.length - 1; f.indexOf(T) !== -1; )
1534
1534
  T--;
1535
1535
  return {
1536
- maskPlaceholder: a,
1536
+ maskPlaceholder: s,
1537
1537
  prefix: D,
1538
1538
  mask: u,
1539
1539
  lastEditablePosition: T,
@@ -1541,110 +1541,110 @@ function yn() {
1541
1541
  };
1542
1542
  }
1543
1543
  var fe = function(u) {
1544
- var a = this;
1544
+ var s = this;
1545
1545
  this.isCharacterAllowedAtPosition = function(f, g) {
1546
- var E = a.maskOptions.maskPlaceholder;
1547
- return a.isCharacterFillingPosition(f, g) ? !0 : E ? E[g] === f : !1;
1546
+ var k = s.maskOptions.maskPlaceholder;
1547
+ return s.isCharacterFillingPosition(f, g) ? !0 : k ? k[g] === f : !1;
1548
1548
  }, this.isCharacterFillingPosition = function(f, g) {
1549
- var E = a.maskOptions.mask;
1550
- if (!f || g >= E.length)
1549
+ var k = s.maskOptions.mask;
1550
+ if (!f || g >= k.length)
1551
1551
  return !1;
1552
- if (!a.isPositionEditable(g))
1553
- return E[g] === f;
1554
- var D = E[g];
1552
+ if (!s.isPositionEditable(g))
1553
+ return k[g] === f;
1554
+ var D = k[g];
1555
1555
  return new RegExp(D).test(f);
1556
1556
  }, this.isPositionEditable = function(f) {
1557
- var g = a.maskOptions, E = g.mask, D = g.permanents;
1558
- return f < E.length && D.indexOf(f) === -1;
1557
+ var g = s.maskOptions, k = g.mask, D = g.permanents;
1558
+ return f < k.length && D.indexOf(f) === -1;
1559
1559
  }, this.isValueEmpty = function(f) {
1560
- return f.split("").every(function(g, E) {
1561
- return !a.isPositionEditable(E) || !a.isCharacterFillingPosition(g, E);
1560
+ return f.split("").every(function(g, k) {
1561
+ return !s.isPositionEditable(k) || !s.isCharacterFillingPosition(g, k);
1562
1562
  });
1563
1563
  }, this.isValueFilled = function(f) {
1564
- return a.getFilledLength(f) === a.maskOptions.lastEditablePosition + 1;
1564
+ return s.getFilledLength(f) === s.maskOptions.lastEditablePosition + 1;
1565
1565
  }, this.getDefaultSelectionForValue = function(f) {
1566
- var g = a.getFilledLength(f), E = a.getRightEditablePosition(g);
1566
+ var g = s.getFilledLength(f), k = s.getRightEditablePosition(g);
1567
1567
  return {
1568
- start: E,
1569
- end: E
1568
+ start: k,
1569
+ end: k
1570
1570
  };
1571
1571
  }, this.getFilledLength = function(f) {
1572
- var g = f.split(""), E = K(g, function(D, T) {
1573
- return a.isPositionEditable(T) && a.isCharacterFillingPosition(D, T);
1572
+ var g = f.split(""), k = ee(g, function(D, T) {
1573
+ return s.isPositionEditable(T) && s.isCharacterFillingPosition(D, T);
1574
1574
  });
1575
- return E + 1;
1575
+ return k + 1;
1576
1576
  }, this.getStringFillingLengthAtPosition = function(f, g) {
1577
- var E = f.split(""), D = E.reduce(function(T, V) {
1578
- return a.insertCharacterAtPosition(T, V, T.length);
1579
- }, s(" ", g));
1577
+ var k = f.split(""), D = k.reduce(function(T, V) {
1578
+ return s.insertCharacterAtPosition(T, V, T.length);
1579
+ }, a(" ", g));
1580
1580
  return D.length - g;
1581
1581
  }, this.getLeftEditablePosition = function(f) {
1582
1582
  for (var g = f; g >= 0; g--)
1583
- if (a.isPositionEditable(g))
1583
+ if (s.isPositionEditable(g))
1584
1584
  return g;
1585
1585
  return null;
1586
1586
  }, this.getRightEditablePosition = function(f) {
1587
- for (var g = a.maskOptions.mask, E = f; E < g.length; E++)
1588
- if (a.isPositionEditable(E))
1589
- return E;
1587
+ for (var g = s.maskOptions.mask, k = f; k < g.length; k++)
1588
+ if (s.isPositionEditable(k))
1589
+ return k;
1590
1590
  return null;
1591
1591
  }, this.formatValue = function(f) {
1592
- var g = a.maskOptions, E = g.maskPlaceholder, D = g.mask;
1593
- if (!E) {
1594
- for (f = a.insertStringAtPosition("", f, 0); f.length < D.length && !a.isPositionEditable(f.length); )
1592
+ var g = s.maskOptions, k = g.maskPlaceholder, D = g.mask;
1593
+ if (!k) {
1594
+ for (f = s.insertStringAtPosition("", f, 0); f.length < D.length && !s.isPositionEditable(f.length); )
1595
1595
  f += D[f.length];
1596
1596
  return f;
1597
1597
  }
1598
- return a.insertStringAtPosition(E, f, 0);
1599
- }, this.clearRange = function(f, g, E) {
1600
- if (!E)
1598
+ return s.insertStringAtPosition(k, f, 0);
1599
+ }, this.clearRange = function(f, g, k) {
1600
+ if (!k)
1601
1601
  return f;
1602
- var D = g + E, T = a.maskOptions, V = T.maskPlaceholder, J = T.mask, m = f.split("").map(function(N, q) {
1603
- var U = a.isPositionEditable(q);
1604
- return !V && q >= D && !U ? "" : q < g || q >= D ? N : U ? V ? V[q] : "" : J[q];
1602
+ var D = g + k, T = s.maskOptions, V = T.maskPlaceholder, J = T.mask, m = f.split("").map(function(B, q) {
1603
+ var U = s.isPositionEditable(q);
1604
+ return !V && q >= D && !U ? "" : q < g || q >= D ? B : U ? V ? V[q] : "" : J[q];
1605
1605
  }).join("");
1606
- return a.formatValue(m);
1607
- }, this.insertCharacterAtPosition = function(f, g, E) {
1608
- var D = a.maskOptions, T = D.mask, V = D.maskPlaceholder;
1609
- if (E >= T.length)
1606
+ return s.formatValue(m);
1607
+ }, this.insertCharacterAtPosition = function(f, g, k) {
1608
+ var D = s.maskOptions, T = D.mask, V = D.maskPlaceholder;
1609
+ if (k >= T.length)
1610
1610
  return f;
1611
- var J = a.isCharacterAllowedAtPosition(g, E), m = a.isPositionEditable(E), N = a.getRightEditablePosition(E), q = V && N ? g === V[N] : null, U = f.slice(0, E);
1611
+ var J = s.isCharacterAllowedAtPosition(g, k), m = s.isPositionEditable(k), B = s.getRightEditablePosition(k), q = V && B ? g === V[B] : null, U = f.slice(0, k);
1612
1612
  if (J || !m) {
1613
- var oe = J ? g : T[E];
1613
+ var oe = J ? g : T[k];
1614
1614
  f = U + oe;
1615
1615
  }
1616
- return !J && !m && !q && (f = a.insertCharacterAtPosition(f, g, E + 1)), f;
1617
- }, this.insertStringAtPosition = function(f, g, E) {
1618
- var D = a.maskOptions, T = D.mask, V = D.maskPlaceholder;
1619
- if (!g || E >= T.length)
1616
+ return !J && !m && !q && (f = s.insertCharacterAtPosition(f, g, k + 1)), f;
1617
+ }, this.insertStringAtPosition = function(f, g, k) {
1618
+ var D = s.maskOptions, T = D.mask, V = D.maskPlaceholder;
1619
+ if (!g || k >= T.length)
1620
1620
  return f;
1621
- var J = g.split(""), m = a.isValueFilled(f) || !!V, N = f.slice(E);
1621
+ var J = g.split(""), m = s.isValueFilled(f) || !!V, B = f.slice(k);
1622
1622
  if (f = J.reduce(function(U, oe) {
1623
- return a.insertCharacterAtPosition(U, oe, U.length);
1624
- }, f.slice(0, E)), m)
1625
- f += N.slice(f.length - E);
1626
- else if (a.isValueFilled(f))
1623
+ return s.insertCharacterAtPosition(U, oe, U.length);
1624
+ }, f.slice(0, k)), m)
1625
+ f += B.slice(f.length - k);
1626
+ else if (s.isValueFilled(f))
1627
1627
  f += T.slice(f.length).join("");
1628
1628
  else {
1629
- var q = N.split("").filter(function(U, oe) {
1630
- return a.isPositionEditable(E + oe);
1629
+ var q = B.split("").filter(function(U, oe) {
1630
+ return s.isPositionEditable(k + oe);
1631
1631
  });
1632
1632
  f = q.reduce(function(U, oe) {
1633
- var ye = a.getRightEditablePosition(U.length);
1634
- return ye === null ? U : (a.isPositionEditable(U.length) || (U += T.slice(U.length, ye).join("")), a.insertCharacterAtPosition(U, oe, U.length));
1633
+ var ye = s.getRightEditablePosition(U.length);
1634
+ return ye === null ? U : (s.isPositionEditable(U.length) || (U += T.slice(U.length, ye).join("")), s.insertCharacterAtPosition(U, oe, U.length));
1635
1635
  }, f);
1636
1636
  }
1637
1637
  return f;
1638
1638
  }, this.processChange = function(f, g) {
1639
- var E = a.maskOptions, D = E.mask, T = E.prefix, V = E.lastEditablePosition, J = f.value, m = f.selection, N = g.value, q = g.selection, U = J, oe = "", ye = 0, n = 0, l = Math.min(q.start, m.start);
1640
- if (m.end > q.start ? (oe = U.slice(q.start, m.end), ye = a.getStringFillingLengthAtPosition(oe, l), ye ? n = q.length : n = 0) : U.length < N.length && (n = N.length - U.length), U = N, n) {
1639
+ var k = s.maskOptions, D = k.mask, T = k.prefix, V = k.lastEditablePosition, J = f.value, m = f.selection, B = g.value, q = g.selection, U = J, oe = "", ye = 0, n = 0, l = Math.min(q.start, m.start);
1640
+ if (m.end > q.start ? (oe = U.slice(q.start, m.end), ye = s.getStringFillingLengthAtPosition(oe, l), ye ? n = q.length : n = 0) : U.length < B.length && (n = B.length - U.length), U = B, n) {
1641
1641
  if (n === 1 && !q.length) {
1642
1642
  var v = q.start === m.start;
1643
- l = v ? a.getRightEditablePosition(m.start) : a.getLeftEditablePosition(m.start);
1643
+ l = v ? s.getRightEditablePosition(m.start) : s.getLeftEditablePosition(m.start);
1644
1644
  }
1645
- U = a.clearRange(U, l, n);
1645
+ U = s.clearRange(U, l, n);
1646
1646
  }
1647
- return U = a.insertStringAtPosition(U, oe, l), l += ye, l >= D.length ? l = D.length : l < T.length && !ye ? l = T.length : l >= T.length && l < V && ye && (l = a.getRightEditablePosition(l)), U = a.formatValue(U), {
1647
+ return U = s.insertStringAtPosition(U, oe, l), l += ye, l >= D.length ? l = D.length : l < T.length && !ye ? l = T.length : l >= T.length && l < V && ye && (l = s.getRightEditablePosition(l)), U = s.formatValue(U), {
1648
1648
  value: U,
1649
1649
  enteredString: oe,
1650
1650
  selection: {
@@ -1658,19 +1658,19 @@ function yn() {
1658
1658
  function u() {
1659
1659
  return h.apply(this, arguments) || this;
1660
1660
  }
1661
- var a = u.prototype;
1662
- return a.render = function() {
1663
- var g = this.props, E = g.children, D = R(g, ["children"]);
1664
- return t.cloneElement(E, D);
1661
+ var s = u.prototype;
1662
+ return s.render = function() {
1663
+ var g = this.props, k = g.children, D = R(g, ["children"]);
1664
+ return t.cloneElement(k, D);
1665
1665
  }, u;
1666
- }(t.Component), x = r.forwardRef(function(u, a) {
1667
- var f = u.alwaysShowMask, g = u.children, E = u.mask, D = u.maskPlaceholder, T = u.beforeMaskedStateChange, V = R(u, ["alwaysShowMask", "children", "mask", "maskPlaceholder", "beforeMaskedStateChange"]);
1666
+ }(t.Component), x = r.forwardRef(function(u, s) {
1667
+ var f = u.alwaysShowMask, g = u.children, k = u.mask, D = u.maskPlaceholder, T = u.beforeMaskedStateChange, V = R(u, ["alwaysShowMask", "children", "mask", "maskPlaceholder", "beforeMaskedStateChange"]);
1668
1668
  L(u), F(u);
1669
1669
  var J = new fe({
1670
- mask: E,
1670
+ mask: k,
1671
1671
  maskPlaceholder: D
1672
- }), m = !!E, N = !V.disabled && !V.readOnly, q = u.value !== null && u.value !== void 0, U = A(m), oe = k((q ? u.value : u.defaultValue) || ""), ye = B(oe, m), n = ye.inputRef, l = ye.getInputState, v = ye.setInputState, M = ye.getLastInputState, O = d(n);
1673
- function P(Ee) {
1672
+ }), m = !!k, B = !V.disabled && !V.readOnly, q = u.value !== null && u.value !== void 0, U = A(m), oe = b((q ? u.value : u.defaultValue) || ""), ye = N(oe, m), n = ye.inputRef, l = ye.getInputState, v = ye.setInputState, M = ye.getLastInputState, O = d(n);
1673
+ function w(Ee) {
1674
1674
  var he = l(), xe = M(), Pe = J.processChange(he, xe);
1675
1675
  T && (Pe = T({
1676
1676
  currentState: he,
@@ -1689,7 +1689,7 @@ function yn() {
1689
1689
  T && (me = T({
1690
1690
  currentState: l(),
1691
1691
  nextState: me
1692
- }), xe = me.value, Pe = me.selection), v(me), xe !== he && u.onChange && u.onChange(Ee), w(function() {
1692
+ }), xe = me.value, Pe = me.selection), v(me), xe !== he && u.onChange && u.onChange(Ee), C(function() {
1693
1693
  v(M());
1694
1694
  });
1695
1695
  }
@@ -1714,9 +1714,9 @@ function yn() {
1714
1714
  }
1715
1715
  function ve(Ee) {
1716
1716
  var he = O(), xe = l(), Pe = xe.value, me = G(he);
1717
- if (!Q(he) && !J.isValueFilled(Pe)) {
1717
+ if (!K(he) && !J.isValueFilled(Pe)) {
1718
1718
  var ht = Ee.clientX, Ke = Ee.clientY, Qe = (/* @__PURE__ */ new Date()).getTime(), mt = function Mr(Bt) {
1719
- if (me.removeEventListener("mouseup", Mr), !!Q(he)) {
1719
+ if (me.removeEventListener("mouseup", Mr), !!K(he)) {
1720
1720
  var Dr = Math.abs(Bt.clientX - ht), Lr = Math.abs(Bt.clientY - Ke), Wt = Math.max(Dr, Lr), zt = (/* @__PURE__ */ new Date()).getTime() - Qe;
1721
1721
  if (Wt <= 10 && zt <= 200 || Wt <= 5 && zt <= 300) {
1722
1722
  var jt = M(), Ir = J.getDefaultSelectionForValue(jt.value), Nr = W({}, jt, {
@@ -1731,7 +1731,7 @@ function yn() {
1731
1731
  u.onMouseDown && u.onMouseDown(Ee);
1732
1732
  }
1733
1733
  if (m && q) {
1734
- var Se = O(), De = Se && Q(Se), Ue = De || f || u.value ? J.formatValue(u.value) : u.value;
1734
+ var Se = O(), De = Se && K(Se), Ue = De || f || u.value ? J.formatValue(u.value) : u.value;
1735
1735
  T && (Ue = T({
1736
1736
  nextState: {
1737
1737
  value: Ue,
@@ -1747,7 +1747,7 @@ function yn() {
1747
1747
  var We = M(), Ye = We.selection, vt = We.value;
1748
1748
  r.useLayoutEffect(function() {
1749
1749
  if (m) {
1750
- var Ee = O(), he = Q(Ee), xe = Ye, Pe = l(), me = W({}, Pe);
1750
+ var Ee = O(), he = K(Ee), xe = Ye, Pe = l(), me = W({}, Pe);
1751
1751
  if (!q) {
1752
1752
  var ht = Pe.value, Ke = J.formatValue(ht), Qe = J.isValueEmpty(Ke), mt = !Qe || he || f;
1753
1753
  mt ? me.value = Ke : Qe && !he && (me.value = "");
@@ -1761,10 +1761,10 @@ function yn() {
1761
1761
  var He = W({}, V, {
1762
1762
  onFocus: $,
1763
1763
  onBlur: se,
1764
- onChange: m && N ? P : u.onChange,
1765
- onMouseDown: m && N ? ve : u.onMouseDown,
1764
+ onChange: m && B ? w : u.onChange,
1765
+ onMouseDown: m && B ? ve : u.onMouseDown,
1766
1766
  ref: function(he) {
1767
- n.current = o.findDOMNode(he), ne(a) ? a(he) : a !== null && typeof a == "object" && (a.current = he);
1767
+ n.current = o.findDOMNode(he), ne(s) ? s(he) : s !== null && typeof s == "object" && (s.current = he);
1768
1768
  },
1769
1769
  value: m && q ? vt : u.value
1770
1770
  });
@@ -1833,15 +1833,15 @@ var dt = (e) => Array.isArray(e) ? e.filter(Boolean) : [], ge = (e) => e === voi
1833
1833
  let o = -1;
1834
1834
  const c = Lt(r) ? [r] : wr(r), i = c.length, _ = i - 1;
1835
1835
  for (; ++o < i; ) {
1836
- const S = c[o];
1836
+ const E = c[o];
1837
1837
  let W = t;
1838
1838
  if (o !== _) {
1839
- const I = e[S];
1839
+ const I = e[E];
1840
1840
  W = ke(I) || Array.isArray(I) ? I : isNaN(+c[o + 1]) ? {} : [];
1841
1841
  }
1842
- if (S === "__proto__")
1842
+ if (E === "__proto__")
1843
1843
  return;
1844
- e[S] = W, e = e[S];
1844
+ e[E] = W, e = e[E];
1845
1845
  }
1846
1846
  return e;
1847
1847
  };
@@ -1910,15 +1910,15 @@ const Ze = (e, r, t, o) => {
1910
1910
  for (const c of t || Object.keys(e)) {
1911
1911
  const i = z(e, c);
1912
1912
  if (i) {
1913
- const { _f: _, ...S } = i;
1913
+ const { _f: _, ...E } = i;
1914
1914
  if (_) {
1915
1915
  if (_.refs && _.refs[0] && r(_.refs[0], c) && !o)
1916
1916
  break;
1917
1917
  if (_.ref && r(_.ref, _.name) && !o)
1918
1918
  break;
1919
- Ze(S, r);
1919
+ Ze(E, r);
1920
1920
  } else
1921
- ke(S) && Ze(S, r);
1921
+ ke(E) && Ze(E, r);
1922
1922
  }
1923
1923
  }
1924
1924
  };
@@ -1968,33 +1968,33 @@ var ze = (e) => ke(e) && !lt(e) ? e : {
1968
1968
  value: e,
1969
1969
  message: ""
1970
1970
  }, vr = async (e, r, t, o, c) => {
1971
- const { ref: i, refs: _, required: S, maxLength: W, minLength: I, min: R, max: w, pattern: te, validate: ee, name: re, valueAsNumber: Q, mount: G, disabled: ie } = e._f, Y = z(r, re);
1971
+ const { ref: i, refs: _, required: E, maxLength: W, minLength: I, min: R, max: C, pattern: te, validate: Q, name: re, valueAsNumber: K, mount: G, disabled: ie } = e._f, Y = z(r, re);
1972
1972
  if (!G || ie)
1973
1973
  return {};
1974
- const ne = _ ? _[0] : i, K = (A) => {
1974
+ const ne = _ ? _[0] : i, ee = (A) => {
1975
1975
  o && ne.reportValidity && (ne.setCustomValidity(Le(A) ? "" : A || ""), ne.reportValidity());
1976
- }, s = {}, k = Nt(i), d = Ge(i), p = k || d, b = (Q || It(i)) && ge(i.value) && ge(Y) || ot(i) && i.value === "" || Y === "" || Array.isArray(Y) && !Y.length, C = Wn.bind(null, re, t, s), B = (A, j, H, L = Me.maxLength, F = Me.minLength) => {
1976
+ }, a = {}, b = Nt(i), d = Ge(i), p = b || d, S = (K || It(i)) && ge(i.value) && ge(Y) || ot(i) && i.value === "" || Y === "" || Array.isArray(Y) && !Y.length, P = Wn.bind(null, re, t, a), N = (A, j, H, L = Me.maxLength, F = Me.minLength) => {
1977
1977
  const X = A ? j : H;
1978
- s[re] = {
1978
+ a[re] = {
1979
1979
  type: A ? L : F,
1980
1980
  message: X,
1981
1981
  ref: i,
1982
- ...C(A ? L : F, X)
1982
+ ...P(A ? L : F, X)
1983
1983
  };
1984
1984
  };
1985
- if (c ? !Array.isArray(Y) || !Y.length : S && (!p && (b || Oe(Y)) || Le(Y) && !Y || d && !Cr(_).isValid || k && !Or(_).isValid)) {
1986
- const { value: A, message: j } = st(S) ? { value: !!S, message: S } : ze(S);
1987
- if (A && (s[re] = {
1985
+ if (c ? !Array.isArray(Y) || !Y.length : E && (!p && (S || Oe(Y)) || Le(Y) && !Y || d && !Cr(_).isValid || b && !Or(_).isValid)) {
1986
+ const { value: A, message: j } = st(E) ? { value: !!E, message: E } : ze(E);
1987
+ if (A && (a[re] = {
1988
1988
  type: Me.required,
1989
1989
  message: j,
1990
1990
  ref: ne,
1991
- ...C(Me.required, j)
1991
+ ...P(Me.required, j)
1992
1992
  }, !t))
1993
- return K(j), s;
1993
+ return ee(j), a;
1994
1994
  }
1995
- if (!b && (!Oe(R) || !Oe(w))) {
1995
+ if (!S && (!Oe(R) || !Oe(C))) {
1996
1996
  let A, j;
1997
- const H = ze(w), L = ze(R);
1997
+ const H = ze(C), L = ze(R);
1998
1998
  if (!Oe(Y) && !isNaN(Y)) {
1999
1999
  const F = i.valueAsNumber || Y && +Y;
2000
2000
  Oe(H.value) || (A = F > H.value), Oe(L.value) || (j = F < L.value);
@@ -2002,51 +2002,51 @@ var ze = (e) => ke(e) && !lt(e) ? e : {
2002
2002
  const F = i.valueAsDate || new Date(Y), X = (y) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + y), ae = i.type == "time", fe = i.type == "week";
2003
2003
  Ve(H.value) && Y && (A = ae ? X(Y) > X(H.value) : fe ? Y > H.value : F > new Date(H.value)), Ve(L.value) && Y && (j = ae ? X(Y) < X(L.value) : fe ? Y < L.value : F < new Date(L.value));
2004
2004
  }
2005
- if ((A || j) && (B(!!A, H.message, L.message, Me.max, Me.min), !t))
2006
- return K(s[re].message), s;
2005
+ if ((A || j) && (N(!!A, H.message, L.message, Me.max, Me.min), !t))
2006
+ return ee(a[re].message), a;
2007
2007
  }
2008
- if ((W || I) && !b && (Ve(Y) || c && Array.isArray(Y))) {
2008
+ if ((W || I) && !S && (Ve(Y) || c && Array.isArray(Y))) {
2009
2009
  const A = ze(W), j = ze(I), H = !Oe(A.value) && Y.length > +A.value, L = !Oe(j.value) && Y.length < +j.value;
2010
- if ((H || L) && (B(H, A.message, j.message), !t))
2011
- return K(s[re].message), s;
2010
+ if ((H || L) && (N(H, A.message, j.message), !t))
2011
+ return ee(a[re].message), a;
2012
2012
  }
2013
- if (te && !b && Ve(Y)) {
2013
+ if (te && !S && Ve(Y)) {
2014
2014
  const { value: A, message: j } = ze(te);
2015
- if (lt(A) && !Y.match(A) && (s[re] = {
2015
+ if (lt(A) && !Y.match(A) && (a[re] = {
2016
2016
  type: Me.pattern,
2017
2017
  message: j,
2018
2018
  ref: i,
2019
- ...C(Me.pattern, j)
2019
+ ...P(Me.pattern, j)
2020
2020
  }, !t))
2021
- return K(j), s;
2021
+ return ee(j), a;
2022
2022
  }
2023
- if (ee) {
2024
- if (Ie(ee)) {
2025
- const A = await ee(Y, r), j = dr(A, ne);
2026
- if (j && (s[re] = {
2023
+ if (Q) {
2024
+ if (Ie(Q)) {
2025
+ const A = await Q(Y, r), j = dr(A, ne);
2026
+ if (j && (a[re] = {
2027
2027
  ...j,
2028
- ...C(Me.validate, j.message)
2028
+ ...P(Me.validate, j.message)
2029
2029
  }, !t))
2030
- return K(j.message), s;
2031
- } else if (ke(ee)) {
2030
+ return ee(j.message), a;
2031
+ } else if (ke(Q)) {
2032
2032
  let A = {};
2033
- for (const j in ee) {
2033
+ for (const j in Q) {
2034
2034
  if (!Ae(A) && !t)
2035
2035
  break;
2036
- const H = dr(await ee[j](Y, r), ne, j);
2036
+ const H = dr(await Q[j](Y, r), ne, j);
2037
2037
  H && (A = {
2038
2038
  ...H,
2039
- ...C(j, H.message)
2040
- }, K(H.message), t && (s[re] = A));
2039
+ ...P(j, H.message)
2040
+ }, ee(H.message), t && (a[re] = A));
2041
2041
  }
2042
- if (!Ae(A) && (s[re] = {
2042
+ if (!Ae(A) && (a[re] = {
2043
2043
  ref: ne,
2044
2044
  ...A
2045
2045
  }, !t))
2046
- return s;
2046
+ return a;
2047
2047
  }
2048
2048
  }
2049
- return K(!0), s;
2049
+ return ee(!0), a;
2050
2050
  };
2051
2051
  function jn(e, r) {
2052
2052
  const t = r.slice(0, -1).length;
@@ -2153,13 +2153,13 @@ function hr(e, r, t) {
2153
2153
  };
2154
2154
  const c = t.split(".");
2155
2155
  for (; c.length; ) {
2156
- const i = c.join("."), _ = z(r, i), S = z(e, i);
2156
+ const i = c.join("."), _ = z(r, i), E = z(e, i);
2157
2157
  if (_ && !Array.isArray(_) && t !== i)
2158
2158
  return { name: t };
2159
- if (S && S.type)
2159
+ if (E && E.type)
2160
2160
  return {
2161
2161
  name: i,
2162
- error: S
2162
+ error: E
2163
2163
  };
2164
2164
  c.pop();
2165
2165
  }
@@ -2195,7 +2195,7 @@ function Zn(e = {}) {
2195
2195
  action: !1,
2196
2196
  mount: !1,
2197
2197
  watch: !1
2198
- }, S = {
2198
+ }, E = {
2199
2199
  mount: /* @__PURE__ */ new Set(),
2200
2200
  unMount: /* @__PURE__ */ new Set(),
2201
2201
  array: /* @__PURE__ */ new Set(),
@@ -2209,41 +2209,41 @@ function Zn(e = {}) {
2209
2209
  isValidating: !1,
2210
2210
  isValid: !1,
2211
2211
  errors: !1
2212
- }, w = {
2212
+ }, C = {
2213
2213
  values: Ct(),
2214
2214
  array: Ct(),
2215
2215
  state: Ct()
2216
- }, te = or(r.mode), ee = or(r.reValidateMode), re = r.criteriaMode === Fe.all, Q = (n) => (l) => {
2216
+ }, te = or(r.mode), Q = or(r.reValidateMode), re = r.criteriaMode === Fe.all, K = (n) => (l) => {
2217
2217
  clearTimeout(I), I = setTimeout(n, l);
2218
2218
  }, G = async (n) => {
2219
2219
  if (R.isValid || n) {
2220
- const l = r.resolver ? Ae((await p()).errors) : await C(o, !0);
2221
- l !== t.isValid && w.state.next({
2220
+ const l = r.resolver ? Ae((await p()).errors) : await P(o, !0);
2221
+ l !== t.isValid && C.state.next({
2222
2222
  isValid: l
2223
2223
  });
2224
2224
  }
2225
2225
  }, ie = (n, l) => {
2226
- (R.isValidating || R.validatingFields) && ((n || Array.from(S.mount)).forEach((v) => {
2226
+ (R.isValidating || R.validatingFields) && ((n || Array.from(E.mount)).forEach((v) => {
2227
2227
  v && (l ? de(t.validatingFields, v, l) : be(t.validatingFields, v));
2228
- }), w.state.next({
2228
+ }), C.state.next({
2229
2229
  validatingFields: t.validatingFields,
2230
2230
  isValidating: !Ae(t.validatingFields)
2231
2231
  }));
2232
- }, Y = (n, l = [], v, M, O = !0, P = !0) => {
2232
+ }, Y = (n, l = [], v, M, O = !0, w = !0) => {
2233
2233
  if (M && v) {
2234
- if (_.action = !0, P && Array.isArray(z(o, n))) {
2234
+ if (_.action = !0, w && Array.isArray(z(o, n))) {
2235
2235
  const $ = v(z(o, n), M.argA, M.argB);
2236
2236
  O && de(o, n, $);
2237
2237
  }
2238
- if (P && Array.isArray(z(t.errors, n))) {
2238
+ if (w && Array.isArray(z(t.errors, n))) {
2239
2239
  const $ = v(z(t.errors, n), M.argA, M.argB);
2240
2240
  O && de(t.errors, n, $), Xn(t.errors, n);
2241
2241
  }
2242
- if (R.touchedFields && P && Array.isArray(z(t.touchedFields, n))) {
2242
+ if (R.touchedFields && w && Array.isArray(z(t.touchedFields, n))) {
2243
2243
  const $ = v(z(t.touchedFields, n), M.argA, M.argB);
2244
2244
  O && de(t.touchedFields, n, $);
2245
2245
  }
2246
- R.dirtyFields && (t.dirtyFields = it(c, i)), w.state.next({
2246
+ R.dirtyFields && (t.dirtyFields = it(c, i)), C.state.next({
2247
2247
  name: n,
2248
2248
  isDirty: A(n, l),
2249
2249
  dirtyFields: t.dirtyFields,
@@ -2253,54 +2253,54 @@ function Zn(e = {}) {
2253
2253
  } else
2254
2254
  de(i, n, l);
2255
2255
  }, ne = (n, l) => {
2256
- de(t.errors, n, l), w.state.next({
2256
+ de(t.errors, n, l), C.state.next({
2257
2257
  errors: t.errors
2258
2258
  });
2259
- }, K = (n) => {
2260
- t.errors = n, w.state.next({
2259
+ }, ee = (n) => {
2260
+ t.errors = n, C.state.next({
2261
2261
  errors: t.errors,
2262
2262
  isValid: !1
2263
2263
  });
2264
- }, s = (n, l, v, M) => {
2264
+ }, a = (n, l, v, M) => {
2265
2265
  const O = z(o, n);
2266
2266
  if (O) {
2267
- const P = z(i, n, ge(v) ? z(c, n) : v);
2268
- ge(P) || M && M.defaultChecked || l ? de(i, n, l ? P : At(O._f)) : L(n, P), _.mount && G();
2267
+ const w = z(i, n, ge(v) ? z(c, n) : v);
2268
+ ge(w) || M && M.defaultChecked || l ? de(i, n, l ? w : At(O._f)) : L(n, w), _.mount && G();
2269
2269
  }
2270
- }, k = (n, l, v, M, O) => {
2271
- let P = !1, $ = !1;
2270
+ }, b = (n, l, v, M, O) => {
2271
+ let w = !1, $ = !1;
2272
2272
  const se = {
2273
2273
  name: n
2274
2274
  }, ve = !!(z(o, n) && z(o, n)._f && z(o, n)._f.disabled);
2275
2275
  if (!v || M) {
2276
- R.isDirty && ($ = t.isDirty, t.isDirty = se.isDirty = A(), P = $ !== se.isDirty);
2276
+ R.isDirty && ($ = t.isDirty, t.isDirty = se.isDirty = A(), w = $ !== se.isDirty);
2277
2277
  const Se = ve || Ne(z(c, n), l);
2278
- $ = !!(!ve && z(t.dirtyFields, n)), Se || ve ? be(t.dirtyFields, n) : de(t.dirtyFields, n, !0), se.dirtyFields = t.dirtyFields, P = P || R.dirtyFields && $ !== !Se;
2278
+ $ = !!(!ve && z(t.dirtyFields, n)), Se || ve ? be(t.dirtyFields, n) : de(t.dirtyFields, n, !0), se.dirtyFields = t.dirtyFields, w = w || R.dirtyFields && $ !== !Se;
2279
2279
  }
2280
2280
  if (v) {
2281
2281
  const Se = z(t.touchedFields, n);
2282
- Se || (de(t.touchedFields, n, v), se.touchedFields = t.touchedFields, P = P || R.touchedFields && Se !== v);
2282
+ Se || (de(t.touchedFields, n, v), se.touchedFields = t.touchedFields, w = w || R.touchedFields && Se !== v);
2283
2283
  }
2284
- return P && O && w.state.next(se), P ? se : {};
2284
+ return w && O && C.state.next(se), w ? se : {};
2285
2285
  }, d = (n, l, v, M) => {
2286
- const O = z(t.errors, n), P = R.isValid && Le(l) && t.isValid !== l;
2287
- if (e.delayError && v ? (W = Q(() => ne(n, v)), W(e.delayError)) : (clearTimeout(I), W = null, v ? de(t.errors, n, v) : be(t.errors, n)), (v ? !Ne(O, v) : O) || !Ae(M) || P) {
2286
+ const O = z(t.errors, n), w = R.isValid && Le(l) && t.isValid !== l;
2287
+ if (e.delayError && v ? (W = K(() => ne(n, v)), W(e.delayError)) : (clearTimeout(I), W = null, v ? de(t.errors, n, v) : be(t.errors, n)), (v ? !Ne(O, v) : O) || !Ae(M) || w) {
2288
2288
  const $ = {
2289
2289
  ...M,
2290
- ...P && Le(l) ? { isValid: l } : {},
2290
+ ...w && Le(l) ? { isValid: l } : {},
2291
2291
  errors: t.errors,
2292
2292
  name: n
2293
2293
  };
2294
2294
  t = {
2295
2295
  ...t,
2296
2296
  ...$
2297
- }, w.state.next($);
2297
+ }, C.state.next($);
2298
2298
  }
2299
2299
  }, p = async (n) => {
2300
2300
  ie(n, !0);
2301
- const l = await r.resolver(i, r.context, Un(n || S.mount, o, r.criteriaMode, r.shouldUseNativeValidation));
2301
+ const l = await r.resolver(i, r.context, Un(n || E.mount, o, r.criteriaMode, r.shouldUseNativeValidation));
2302
2302
  return ie(n), l;
2303
- }, b = async (n) => {
2303
+ }, S = async (n) => {
2304
2304
  const { errors: l } = await p(n);
2305
2305
  if (n)
2306
2306
  for (const v of n) {
@@ -2310,59 +2310,59 @@ function Zn(e = {}) {
2310
2310
  else
2311
2311
  t.errors = l;
2312
2312
  return l;
2313
- }, C = async (n, l, v = {
2313
+ }, P = async (n, l, v = {
2314
2314
  valid: !0
2315
2315
  }) => {
2316
2316
  for (const M in n) {
2317
2317
  const O = n[M];
2318
2318
  if (O) {
2319
- const { _f: P, ...$ } = O;
2320
- if (P) {
2321
- const se = S.array.has(P.name);
2319
+ const { _f: w, ...$ } = O;
2320
+ if (w) {
2321
+ const se = E.array.has(w.name);
2322
2322
  ie([M], !0);
2323
2323
  const ve = await vr(O, i, re, r.shouldUseNativeValidation && !l, se);
2324
- if (ie([M]), ve[P.name] && (v.valid = !1, l))
2324
+ if (ie([M]), ve[w.name] && (v.valid = !1, l))
2325
2325
  break;
2326
- !l && (z(ve, P.name) ? se ? zn(t.errors, ve, P.name) : de(t.errors, P.name, ve[P.name]) : be(t.errors, P.name));
2326
+ !l && (z(ve, w.name) ? se ? zn(t.errors, ve, w.name) : de(t.errors, w.name, ve[w.name]) : be(t.errors, w.name));
2327
2327
  }
2328
- !Ae($) && await C($, l, v);
2328
+ !Ae($) && await P($, l, v);
2329
2329
  }
2330
2330
  }
2331
2331
  return v.valid;
2332
- }, B = () => {
2333
- for (const n of S.unMount) {
2332
+ }, N = () => {
2333
+ for (const n of E.unMount) {
2334
2334
  const l = z(o, n);
2335
2335
  l && (l._f.refs ? l._f.refs.every((v) => !Ot(v)) : !Ot(l._f.ref)) && g(n);
2336
2336
  }
2337
- S.unMount = /* @__PURE__ */ new Set();
2338
- }, A = (n, l) => (n && l && de(i, n, l), !Ne(x(), c)), j = (n, l, v) => Bn(n, S, {
2337
+ E.unMount = /* @__PURE__ */ new Set();
2338
+ }, A = (n, l) => (n && l && de(i, n, l), !Ne(x(), c)), j = (n, l, v) => Bn(n, E, {
2339
2339
  ..._.mount ? i : ge(l) ? c : Ve(n) ? { [n]: l } : l
2340
2340
  }, v, l), H = (n) => dt(z(_.mount ? i : c, n, e.shouldUnregister ? z(c, n, []) : [])), L = (n, l, v = {}) => {
2341
2341
  const M = z(o, n);
2342
2342
  let O = l;
2343
2343
  if (M) {
2344
- const P = M._f;
2345
- P && (!P.disabled && de(i, n, Fr(l, P)), O = ot(P.ref) && Oe(l) ? "" : l, Ar(P.ref) ? [...P.ref.options].forEach(($) => $.selected = O.includes($.value)) : P.refs ? Ge(P.ref) ? P.refs.length > 1 ? P.refs.forEach(($) => (!$.defaultChecked || !$.disabled) && ($.checked = Array.isArray(O) ? !!O.find((se) => se === $.value) : O === $.value)) : P.refs[0] && (P.refs[0].checked = !!O) : P.refs.forEach(($) => $.checked = $.value === O) : It(P.ref) ? P.ref.value = "" : (P.ref.value = O, P.ref.type || w.values.next({
2344
+ const w = M._f;
2345
+ w && (!w.disabled && de(i, n, Fr(l, w)), O = ot(w.ref) && Oe(l) ? "" : l, Ar(w.ref) ? [...w.ref.options].forEach(($) => $.selected = O.includes($.value)) : w.refs ? Ge(w.ref) ? w.refs.length > 1 ? w.refs.forEach(($) => (!$.defaultChecked || !$.disabled) && ($.checked = Array.isArray(O) ? !!O.find((se) => se === $.value) : O === $.value)) : w.refs[0] && (w.refs[0].checked = !!O) : w.refs.forEach(($) => $.checked = $.value === O) : It(w.ref) ? w.ref.value = "" : (w.ref.value = O, w.ref.type || C.values.next({
2346
2346
  name: n,
2347
2347
  values: { ...i }
2348
2348
  })));
2349
2349
  }
2350
- (v.shouldDirty || v.shouldTouch) && k(n, O, v.shouldTouch, v.shouldDirty, !0), v.shouldValidate && y(n);
2350
+ (v.shouldDirty || v.shouldTouch) && b(n, O, v.shouldTouch, v.shouldDirty, !0), v.shouldValidate && y(n);
2351
2351
  }, F = (n, l, v) => {
2352
2352
  for (const M in l) {
2353
- const O = l[M], P = `${n}.${M}`, $ = z(o, P);
2354
- (S.array.has(n) || !ut(O) || $ && !$._f) && !$e(O) ? F(P, O, v) : L(P, O, v);
2353
+ const O = l[M], w = `${n}.${M}`, $ = z(o, w);
2354
+ (E.array.has(n) || !ut(O) || $ && !$._f) && !$e(O) ? F(w, O, v) : L(w, O, v);
2355
2355
  }
2356
2356
  }, X = (n, l, v = {}) => {
2357
- const M = z(o, n), O = S.array.has(n), P = Re(l);
2358
- de(i, n, P), O ? (w.array.next({
2357
+ const M = z(o, n), O = E.array.has(n), w = Re(l);
2358
+ de(i, n, w), O ? (C.array.next({
2359
2359
  name: n,
2360
2360
  values: { ...i }
2361
- }), (R.isDirty || R.dirtyFields) && v.shouldDirty && w.state.next({
2361
+ }), (R.isDirty || R.dirtyFields) && v.shouldDirty && C.state.next({
2362
2362
  name: n,
2363
2363
  dirtyFields: it(c, i),
2364
- isDirty: A(n, P)
2365
- })) : M && !M._f && !Oe(P) ? F(n, P, v) : L(n, P, v), lr(n, S) && w.state.next({ ...t }), w.values.next({
2364
+ isDirty: A(n, w)
2365
+ })) : M && !M._f && !Oe(w) ? F(n, w, v) : L(n, w, v), lr(n, E) && C.state.next({ ...t }), C.values.next({
2366
2366
  name: _.mount ? n : void 0,
2367
2367
  values: { ...i }
2368
2368
  });
@@ -2370,28 +2370,28 @@ function Zn(e = {}) {
2370
2370
  _.mount = !0;
2371
2371
  const l = n.target;
2372
2372
  let v = l.name, M = !0;
2373
- const O = z(o, v), P = () => l.type ? At(O._f) : Fn(n), $ = (se) => {
2373
+ const O = z(o, v), w = () => l.type ? At(O._f) : Fn(n), $ = (se) => {
2374
2374
  M = Number.isNaN(se) || se === z(i, v, se);
2375
2375
  };
2376
2376
  if (O) {
2377
2377
  let se, ve;
2378
- const Se = P(), De = n.type === sr.BLUR || n.type === sr.FOCUS_OUT, Ue = !Yn(O._f) && !r.resolver && !z(t.errors, v) && !O._f.deps || Hn(De, z(t.touchedFields, v), t.isSubmitted, ee, te), We = lr(v, S, De);
2378
+ const Se = w(), De = n.type === sr.BLUR || n.type === sr.FOCUS_OUT, Ue = !Yn(O._f) && !r.resolver && !z(t.errors, v) && !O._f.deps || Hn(De, z(t.touchedFields, v), t.isSubmitted, Q, te), We = lr(v, E, De);
2379
2379
  de(i, v, Se), De ? (O._f.onBlur && O._f.onBlur(n), W && W(0)) : O._f.onChange && O._f.onChange(n);
2380
- const Ye = k(v, Se, De, !1), vt = !Ae(Ye) || We;
2381
- if (!De && w.values.next({
2380
+ const Ye = b(v, Se, De, !1), vt = !Ae(Ye) || We;
2381
+ if (!De && C.values.next({
2382
2382
  name: v,
2383
2383
  type: n.type,
2384
2384
  values: { ...i }
2385
2385
  }), Ue)
2386
- return R.isValid && G(), vt && w.state.next({ name: v, ...We ? {} : Ye });
2387
- if (!De && We && w.state.next({ ...t }), r.resolver) {
2386
+ return R.isValid && G(), vt && C.state.next({ name: v, ...We ? {} : Ye });
2387
+ if (!De && We && C.state.next({ ...t }), r.resolver) {
2388
2388
  const { errors: He } = await p([v]);
2389
2389
  if ($(Se), M) {
2390
2390
  const Ee = hr(t.errors, o, v), he = hr(He, o, Ee.name || v);
2391
2391
  se = he.error, v = he.name, ve = Ae(He);
2392
2392
  }
2393
2393
  } else
2394
- ie([v], !0), se = (await vr(O, i, re, r.shouldUseNativeValidation))[v], ie([v]), $(Se), M && (se ? ve = !1 : R.isValid && (ve = await C(o, !0)));
2394
+ ie([v], !0), se = (await vr(O, i, re, r.shouldUseNativeValidation))[v], ie([v]), $(Se), M && (se ? ve = !1 : R.isValid && (ve = await P(o, !0)));
2395
2395
  M && (O._f.deps && y(O._f.deps), d(v, ve, se, Ye));
2396
2396
  }
2397
2397
  }, fe = (n, l) => {
@@ -2401,18 +2401,18 @@ function Zn(e = {}) {
2401
2401
  let v, M;
2402
2402
  const O = at(n);
2403
2403
  if (r.resolver) {
2404
- const P = await b(ge(n) ? n : O);
2405
- v = Ae(P), M = n ? !O.some(($) => z(P, $)) : v;
2404
+ const w = await S(ge(n) ? n : O);
2405
+ v = Ae(w), M = n ? !O.some(($) => z(w, $)) : v;
2406
2406
  } else
2407
- n ? (M = (await Promise.all(O.map(async (P) => {
2408
- const $ = z(o, P);
2409
- return await C($ && $._f ? { [P]: $ } : $);
2410
- }))).every(Boolean), !(!M && !t.isValid) && G()) : M = v = await C(o);
2411
- return w.state.next({
2407
+ n ? (M = (await Promise.all(O.map(async (w) => {
2408
+ const $ = z(o, w);
2409
+ return await P($ && $._f ? { [w]: $ } : $);
2410
+ }))).every(Boolean), !(!M && !t.isValid) && G()) : M = v = await P(o);
2411
+ return C.state.next({
2412
2412
  ...!Ve(n) || R.isValid && v !== t.isValid ? {} : { name: n },
2413
2413
  ...r.resolver || !n ? { isValid: v } : {},
2414
2414
  errors: t.errors
2415
- }), l.shouldFocus && !M && Ze(o, fe, n ? O : S.mount), M;
2415
+ }), l.shouldFocus && !M && Ze(o, fe, n ? O : E.mount), M;
2416
2416
  }, x = (n) => {
2417
2417
  const l = {
2418
2418
  ..._.mount ? i : c
@@ -2425,35 +2425,35 @@ function Zn(e = {}) {
2425
2425
  isValidating: !!z(t.validatingFields, n),
2426
2426
  isTouched: !!z((l || t).touchedFields, n)
2427
2427
  }), u = (n) => {
2428
- n && at(n).forEach((l) => be(t.errors, l)), w.state.next({
2428
+ n && at(n).forEach((l) => be(t.errors, l)), C.state.next({
2429
2429
  errors: n ? t.errors : {}
2430
2430
  });
2431
- }, a = (n, l, v) => {
2432
- const M = (z(o, n, { _f: {} })._f || {}).ref, O = z(t.errors, n) || {}, { ref: P, message: $, type: se, ...ve } = O;
2431
+ }, s = (n, l, v) => {
2432
+ const M = (z(o, n, { _f: {} })._f || {}).ref, O = z(t.errors, n) || {}, { ref: w, message: $, type: se, ...ve } = O;
2433
2433
  de(t.errors, n, {
2434
2434
  ...ve,
2435
2435
  ...l,
2436
2436
  ref: M
2437
- }), w.state.next({
2437
+ }), C.state.next({
2438
2438
  name: n,
2439
2439
  errors: t.errors,
2440
2440
  isValid: !1
2441
2441
  }), v && v.shouldFocus && M && M.focus && M.focus();
2442
- }, f = (n, l) => Ie(n) ? w.values.subscribe({
2442
+ }, f = (n, l) => Ie(n) ? C.values.subscribe({
2443
2443
  next: (v) => n(j(void 0, l), v)
2444
2444
  }) : j(n, l, !0), g = (n, l = {}) => {
2445
- for (const v of n ? at(n) : S.mount)
2446
- S.mount.delete(v), S.array.delete(v), l.keepValue || (be(o, v), be(i, v)), !l.keepError && be(t.errors, v), !l.keepDirty && be(t.dirtyFields, v), !l.keepTouched && be(t.touchedFields, v), !l.keepIsValidating && be(t.validatingFields, v), !r.shouldUnregister && !l.keepDefaultValue && be(c, v);
2447
- w.values.next({
2445
+ for (const v of n ? at(n) : E.mount)
2446
+ E.mount.delete(v), E.array.delete(v), l.keepValue || (be(o, v), be(i, v)), !l.keepError && be(t.errors, v), !l.keepDirty && be(t.dirtyFields, v), !l.keepTouched && be(t.touchedFields, v), !l.keepIsValidating && be(t.validatingFields, v), !r.shouldUnregister && !l.keepDefaultValue && be(c, v);
2447
+ C.values.next({
2448
2448
  values: { ...i }
2449
- }), w.state.next({
2449
+ }), C.state.next({
2450
2450
  ...t,
2451
2451
  ...l.keepDirty ? { isDirty: A() } : {}
2452
2452
  }), !l.keepIsValid && G();
2453
- }, E = ({ disabled: n, name: l, field: v, fields: M, value: O }) => {
2453
+ }, k = ({ disabled: n, name: l, field: v, fields: M, value: O }) => {
2454
2454
  if (Le(n) && _.mount || n) {
2455
- const P = n ? void 0 : ge(O) ? At(v ? v._f : z(M, l)._f) : O;
2456
- de(i, l, P), k(l, P, !1, !1, !0);
2455
+ const w = n ? void 0 : ge(O) ? At(v ? v._f : z(M, l)._f) : O;
2456
+ de(i, l, w), b(l, w, !1, !1, !0);
2457
2457
  }
2458
2458
  }, D = (n, l = {}) => {
2459
2459
  let v = z(o, n);
@@ -2466,12 +2466,12 @@ function Zn(e = {}) {
2466
2466
  mount: !0,
2467
2467
  ...l
2468
2468
  }
2469
- }), S.mount.add(n), v ? E({
2469
+ }), E.mount.add(n), v ? k({
2470
2470
  field: v,
2471
2471
  disabled: l.disabled,
2472
2472
  name: n,
2473
2473
  value: l.value
2474
- }) : s(n, !0, l.value), {
2474
+ }) : a(n, !0, l.value), {
2475
2475
  ...M ? { disabled: l.disabled } : {},
2476
2476
  ...r.progressive ? {
2477
2477
  required: !!l.required,
@@ -2487,8 +2487,8 @@ function Zn(e = {}) {
2487
2487
  ref: (O) => {
2488
2488
  if (O) {
2489
2489
  D(n, l), v = z(o, n);
2490
- const P = ge(O.value) && O.querySelectorAll && O.querySelectorAll("input,select,textarea")[0] || O, $ = $n(P), se = v._f.refs || [];
2491
- if ($ ? se.find((ve) => ve === P) : P === v._f.ref)
2490
+ const w = ge(O.value) && O.querySelectorAll && O.querySelectorAll("input,select,textarea")[0] || O, $ = $n(w), se = v._f.refs || [];
2491
+ if ($ ? se.find((ve) => ve === w) : w === v._f.ref)
2492
2492
  return;
2493
2493
  de(o, n, {
2494
2494
  _f: {
@@ -2496,19 +2496,19 @@ function Zn(e = {}) {
2496
2496
  ...$ ? {
2497
2497
  refs: [
2498
2498
  ...se.filter(Ot),
2499
- P,
2499
+ w,
2500
2500
  ...Array.isArray(z(c, n)) ? [{}] : []
2501
2501
  ],
2502
- ref: { type: P.type, name: n }
2503
- } : { ref: P }
2502
+ ref: { type: w.type, name: n }
2503
+ } : { ref: w }
2504
2504
  }
2505
- }), s(n, !1, void 0, P);
2505
+ }), a(n, !1, void 0, w);
2506
2506
  } else
2507
- v = z(o, n, {}), v._f && (v._f.mount = !1), (r.shouldUnregister || l.shouldUnregister) && !(Mn(S.array, n) && _.action) && S.unMount.add(n);
2507
+ v = z(o, n, {}), v._f && (v._f.mount = !1), (r.shouldUnregister || l.shouldUnregister) && !(Mn(E.array, n) && _.action) && E.unMount.add(n);
2508
2508
  }
2509
2509
  };
2510
- }, T = () => r.shouldFocusError && Ze(o, fe, S.mount), V = (n) => {
2511
- Le(n) && (w.state.next({ disabled: n }), Ze(o, (l, v) => {
2510
+ }, T = () => r.shouldFocusError && Ze(o, fe, E.mount), V = (n) => {
2511
+ Le(n) && (C.state.next({ disabled: n }), Ze(o, (l, v) => {
2512
2512
  const M = z(o, v);
2513
2513
  M && (l.disabled = M._f.disabled || n, Array.isArray(M._f.refs) && M._f.refs.forEach((O) => {
2514
2514
  O.disabled = M._f.disabled || n;
@@ -2518,25 +2518,25 @@ function Zn(e = {}) {
2518
2518
  let M;
2519
2519
  v && (v.preventDefault && v.preventDefault(), v.persist && v.persist());
2520
2520
  let O = Re(i);
2521
- if (w.state.next({
2521
+ if (C.state.next({
2522
2522
  isSubmitting: !0
2523
2523
  }), r.resolver) {
2524
- const { errors: P, values: $ } = await p();
2525
- t.errors = P, O = $;
2524
+ const { errors: w, values: $ } = await p();
2525
+ t.errors = w, O = $;
2526
2526
  } else
2527
- await C(o);
2527
+ await P(o);
2528
2528
  if (be(t.errors, "root"), Ae(t.errors)) {
2529
- w.state.next({
2529
+ C.state.next({
2530
2530
  errors: {}
2531
2531
  });
2532
2532
  try {
2533
2533
  await n(O, v);
2534
- } catch (P) {
2535
- M = P;
2534
+ } catch (w) {
2535
+ M = w;
2536
2536
  }
2537
2537
  } else
2538
2538
  l && await l({ ...t.errors }, v), T(), setTimeout(T);
2539
- if (w.state.next({
2539
+ if (C.state.next({
2540
2540
  isSubmitted: !0,
2541
2541
  isSubmitting: !1,
2542
2542
  isSubmitSuccessful: Ae(t.errors) && !M,
@@ -2545,16 +2545,16 @@ function Zn(e = {}) {
2545
2545
  }), M)
2546
2546
  throw M;
2547
2547
  }, m = (n, l = {}) => {
2548
- z(o, n) && (ge(l.defaultValue) ? X(n, Re(z(c, n))) : (X(n, l.defaultValue), de(c, n, Re(l.defaultValue))), l.keepTouched || be(t.touchedFields, n), l.keepDirty || (be(t.dirtyFields, n), t.isDirty = l.defaultValue ? A(n, Re(z(c, n))) : A()), l.keepError || (be(t.errors, n), R.isValid && G()), w.state.next({ ...t }));
2549
- }, N = (n, l = {}) => {
2550
- const v = n ? Re(n) : c, M = Re(v), O = Ae(n), P = O ? c : M;
2548
+ z(o, n) && (ge(l.defaultValue) ? X(n, Re(z(c, n))) : (X(n, l.defaultValue), de(c, n, Re(l.defaultValue))), l.keepTouched || be(t.touchedFields, n), l.keepDirty || (be(t.dirtyFields, n), t.isDirty = l.defaultValue ? A(n, Re(z(c, n))) : A()), l.keepError || (be(t.errors, n), R.isValid && G()), C.state.next({ ...t }));
2549
+ }, B = (n, l = {}) => {
2550
+ const v = n ? Re(n) : c, M = Re(v), O = Ae(n), w = O ? c : M;
2551
2551
  if (l.keepDefaultValues || (c = v), !l.keepValues) {
2552
2552
  if (l.keepDirtyValues)
2553
- for (const $ of S.mount)
2554
- z(t.dirtyFields, $) ? de(P, $, z(i, $)) : X($, z(P, $));
2553
+ for (const $ of E.mount)
2554
+ z(t.dirtyFields, $) ? de(w, $, z(i, $)) : X($, z(w, $));
2555
2555
  else {
2556
2556
  if (Dt && ge(n))
2557
- for (const $ of S.mount) {
2557
+ for (const $ of E.mount) {
2558
2558
  const se = z(o, $);
2559
2559
  if (se && se._f) {
2560
2560
  const ve = Array.isArray(se._f.refs) ? se._f.refs[0] : se._f.ref;
@@ -2569,20 +2569,20 @@ function Zn(e = {}) {
2569
2569
  }
2570
2570
  o = {};
2571
2571
  }
2572
- i = e.shouldUnregister ? l.keepDefaultValues ? Re(c) : {} : Re(P), w.array.next({
2573
- values: { ...P }
2574
- }), w.values.next({
2575
- values: { ...P }
2572
+ i = e.shouldUnregister ? l.keepDefaultValues ? Re(c) : {} : Re(w), C.array.next({
2573
+ values: { ...w }
2574
+ }), C.values.next({
2575
+ values: { ...w }
2576
2576
  });
2577
2577
  }
2578
- S = {
2579
- mount: l.keepDirtyValues ? S.mount : /* @__PURE__ */ new Set(),
2578
+ E = {
2579
+ mount: l.keepDirtyValues ? E.mount : /* @__PURE__ */ new Set(),
2580
2580
  unMount: /* @__PURE__ */ new Set(),
2581
2581
  array: /* @__PURE__ */ new Set(),
2582
2582
  watch: /* @__PURE__ */ new Set(),
2583
2583
  watchAll: !1,
2584
2584
  focus: ""
2585
- }, _.mount = !R.isValid || !!l.keepIsValid || !!l.keepDirtyValues, _.watch = !!e.shouldUnregister, w.state.next({
2585
+ }, _.mount = !R.isValid || !!l.keepIsValid || !!l.keepDirtyValues, _.watch = !!e.shouldUnregister, C.state.next({
2586
2586
  submitCount: l.keepSubmitCount ? t.submitCount : 0,
2587
2587
  isDirty: O ? !1 : l.keepDirty ? t.isDirty : !!(l.keepDefaultValues && !Ne(n, c)),
2588
2588
  isSubmitted: l.keepIsSubmitted ? t.isSubmitted : !1,
@@ -2592,25 +2592,25 @@ function Zn(e = {}) {
2592
2592
  isSubmitSuccessful: l.keepIsSubmitSuccessful ? t.isSubmitSuccessful : !1,
2593
2593
  isSubmitting: !1
2594
2594
  });
2595
- }, q = (n, l) => N(Ie(n) ? n(i) : n, l);
2595
+ }, q = (n, l) => B(Ie(n) ? n(i) : n, l);
2596
2596
  return {
2597
2597
  control: {
2598
2598
  register: D,
2599
2599
  unregister: g,
2600
2600
  getFieldState: h,
2601
2601
  handleSubmit: J,
2602
- setError: a,
2602
+ setError: s,
2603
2603
  _executeSchema: p,
2604
2604
  _getWatch: j,
2605
2605
  _getDirty: A,
2606
2606
  _updateValid: G,
2607
- _removeUnmounted: B,
2607
+ _removeUnmounted: N,
2608
2608
  _updateFieldArray: Y,
2609
- _updateDisabledField: E,
2609
+ _updateDisabledField: k,
2610
2610
  _getFieldArray: H,
2611
- _reset: N,
2611
+ _reset: B,
2612
2612
  _resetDefaultValues: () => Ie(r.defaultValues) && r.defaultValues().then((n) => {
2613
- q(n, r.resetOptions), w.state.next({
2613
+ q(n, r.resetOptions), C.state.next({
2614
2614
  isLoading: !1
2615
2615
  });
2616
2616
  }),
@@ -2621,9 +2621,9 @@ function Zn(e = {}) {
2621
2621
  };
2622
2622
  },
2623
2623
  _disableForm: V,
2624
- _subjects: w,
2624
+ _subjects: C,
2625
2625
  _proxyFormState: R,
2626
- _setErrors: K,
2626
+ _setErrors: ee,
2627
2627
  get _fields() {
2628
2628
  return o;
2629
2629
  },
@@ -2640,10 +2640,10 @@ function Zn(e = {}) {
2640
2640
  return c;
2641
2641
  },
2642
2642
  get _names() {
2643
- return S;
2643
+ return E;
2644
2644
  },
2645
2645
  set _names(n) {
2646
- S = n;
2646
+ E = n;
2647
2647
  },
2648
2648
  get _formState() {
2649
2649
  return t;
@@ -2671,7 +2671,7 @@ function Zn(e = {}) {
2671
2671
  resetField: m,
2672
2672
  clearErrors: u,
2673
2673
  unregister: g,
2674
- setError: a,
2674
+ setError: s,
2675
2675
  setFocus: (n, l = {}) => {
2676
2676
  const v = z(o, n), M = v && v._f;
2677
2677
  if (M) {
@@ -2736,35 +2736,36 @@ const Kn = Vt.bind(Ce), Qn = "Я принимаю условия Политик
2736
2736
  isEmail: c,
2737
2737
  isPhone: i,
2738
2738
  isTextArea: _,
2739
- telegramLink: S = "https://t.me/stone_developer",
2739
+ telegramLink: E = "https://t.me/stone_developer",
2740
2740
  isRequiredPhone: W = !0,
2741
2741
  isRequiredEmail: I = !1,
2742
2742
  isRequiredPhoneOrEmail: R,
2743
- textAreaPlaceholder: w,
2743
+ textAreaPlaceholder: C,
2744
2744
  subTitle: te,
2745
- submitHandler: ee,
2745
+ submitHandler: Q,
2746
2746
  modalWidth: re = "442px",
2747
- rowsTextArea: Q = 2,
2747
+ rowsTextArea: K = 2,
2748
2748
  advCheckBox: G = { text: Qn, isRequired: !0 },
2749
2749
  isAdvCheckBox: ie,
2750
2750
  addTitleClassName: Y,
2751
- createPortalObj: ne
2751
+ createPortalObj: ne,
2752
+ telegramClickHandler: ee = () => null
2752
2753
  }) => {
2753
2754
  const {
2754
- register: K,
2755
- handleSubmit: s,
2756
- trigger: k,
2757
- reset: d,
2758
- watch: p,
2759
- formState: { errors: b }
2760
- } = Gn(), C = !!p("email"), { onChange: B, onBlur: A, ...j } = K("phone", {
2761
- required: I || W || R && !C,
2755
+ register: a,
2756
+ handleSubmit: b,
2757
+ trigger: d,
2758
+ reset: p,
2759
+ watch: S,
2760
+ formState: { errors: P }
2761
+ } = Gn(), N = !!S("email"), { onChange: A, onBlur: j, ...H } = a("phone", {
2762
+ required: I || W || R && !N,
2762
2763
  pattern: { value: jr, message: "" },
2763
- onBlur: () => k("phone")
2764
- }), { isMobile: H, currentClientWidth: L } = ft(), F = p("personalCheckBox"), X = p("advCheckBox"), ae = (fe) => {
2765
- ee(fe), d();
2764
+ onBlur: () => d("phone")
2765
+ }), { isMobile: L, currentClientWidth: F } = ft(), X = S("personalCheckBox"), ae = S("advCheckBox"), fe = (y) => {
2766
+ Q(y), p();
2766
2767
  };
2767
- return L ? /* @__PURE__ */ Z(
2768
+ return F ? /* @__PURE__ */ Z(
2768
2769
  Ft,
2769
2770
  {
2770
2771
  additionalClass: Ce.modal,
@@ -2778,7 +2779,7 @@ const Kn = Vt.bind(Ce), Qn = "Я принимаю условия Политик
2778
2779
  "div",
2779
2780
  {
2780
2781
  className: Ce.root,
2781
- style: { width: H ? "100%" : re },
2782
+ style: { width: L ? "100%" : re },
2782
2783
  "data-testid": "modal_window",
2783
2784
  children: [
2784
2785
  /* @__PURE__ */ Z(
@@ -2793,12 +2794,19 @@ const Kn = Vt.bind(Ce), Qn = "Я принимаю условия Политик
2793
2794
  "a",
2794
2795
  {
2795
2796
  className: Ce.telegramLink,
2796
- href: S,
2797
+ href: E,
2797
2798
  target: "_blank",
2798
- children: /* @__PURE__ */ pe("div", { className: Ce.telegram, children: [
2799
- /* @__PURE__ */ Z("div", { children: "Подписаться в Telegram" }),
2800
- /* @__PURE__ */ Z(Be, { name: "telegram" })
2801
- ] })
2799
+ children: /* @__PURE__ */ pe(
2800
+ "div",
2801
+ {
2802
+ className: Ce.telegram,
2803
+ onClick: ee,
2804
+ children: [
2805
+ /* @__PURE__ */ Z("div", { children: "Подписаться в Telegram" }),
2806
+ /* @__PURE__ */ Z(Be, { name: "telegram" })
2807
+ ]
2808
+ }
2809
+ )
2802
2810
  }
2803
2811
  ),
2804
2812
  /* @__PURE__ */ Z("div", { className: Ce.orText, children: "или" })
@@ -2812,7 +2820,7 @@ const Kn = Vt.bind(Ce), Qn = "Я принимаю условия Политик
2812
2820
  }
2813
2821
  }
2814
2822
  ),
2815
- /* @__PURE__ */ pe("form", { onSubmit: s(ae), children: [
2823
+ /* @__PURE__ */ pe("form", { onSubmit: b(fe), children: [
2816
2824
  /* @__PURE__ */ pe(Wr, { className: Ce.inputWrapper, children: [
2817
2825
  /* @__PURE__ */ Z(
2818
2826
  pt,
@@ -2822,8 +2830,8 @@ const Kn = Vt.bind(Ce), Qn = "Я принимаю условия Политик
2822
2830
  variant: "light",
2823
2831
  placeholder: "Введите имя",
2824
2832
  "data-testid": "modal_name",
2825
- ...K("name", { required: !0, pattern: qr }),
2826
- error: !!b.name
2833
+ ...a("name", { required: !0, pattern: qr }),
2834
+ error: !!P.name
2827
2835
  }
2828
2836
  ),
2829
2837
  i && /* @__PURE__ */ Z(
@@ -2832,9 +2840,9 @@ const Kn = Vt.bind(Ce), Qn = "Я принимаю условия Политик
2832
2840
  inputMode: "numeric",
2833
2841
  name: "phone",
2834
2842
  mask: "+7 (999) 999-99-99",
2835
- onChange: B,
2843
+ onChange: A,
2836
2844
  placeholder: "+7 (- - -) - - - - - - -",
2837
- onBlur: A,
2845
+ onBlur: j,
2838
2846
  children: /* @__PURE__ */ Z(
2839
2847
  pt,
2840
2848
  {
@@ -2843,9 +2851,9 @@ const Kn = Vt.bind(Ce), Qn = "Я принимаю условия Политик
2843
2851
  type: "tel",
2844
2852
  size_s: "large",
2845
2853
  variant: "light",
2846
- ...j,
2847
- ...K("phone"),
2848
- error: !!b.phone
2854
+ ...H,
2855
+ ...a("phone"),
2856
+ error: !!P.phone
2849
2857
  }
2850
2858
  )
2851
2859
  }
@@ -2858,40 +2866,40 @@ const Kn = Vt.bind(Ce), Qn = "Я принимаю условия Политик
2858
2866
  variant: "light",
2859
2867
  placeholder: "Введите email",
2860
2868
  "data-testid": "modal_email",
2861
- ...K("email", {
2862
- required: I || R && !C,
2869
+ ...a("email", {
2870
+ required: I || R && !N,
2863
2871
  pattern: $r
2864
2872
  }),
2865
- error: !!b.email
2873
+ error: !!P.email
2866
2874
  }
2867
2875
  ),
2868
2876
  _ && /* @__PURE__ */ Z(
2869
2877
  Ur,
2870
2878
  {
2871
2879
  "data-testid": "modal_textarea",
2872
- placeholder: w,
2873
- rows: Q,
2880
+ placeholder: C,
2881
+ rows: K,
2874
2882
  width: "full",
2875
- ...K("textarea")
2883
+ ...a("textarea")
2876
2884
  }
2877
2885
  ),
2878
2886
  G && !t && ie && /* @__PURE__ */ Z(
2879
2887
  $t,
2880
2888
  {
2881
2889
  "data-testid": "modal_advCheckBox",
2882
- isChecked: X,
2883
- error: !!b.advCheckBox,
2890
+ isChecked: ae,
2891
+ error: !!P.advCheckBox,
2884
2892
  text: G.text,
2885
- ...K("advCheckBox", { required: G == null ? void 0 : G.isRequired })
2893
+ ...a("advCheckBox", { required: G == null ? void 0 : G.isRequired })
2886
2894
  }
2887
2895
  ),
2888
2896
  /* @__PURE__ */ pe(
2889
2897
  $t,
2890
2898
  {
2891
2899
  "data-testid": "modal_personalCheckBox",
2892
- isChecked: F,
2893
- error: !!b.personalCheckBox,
2894
- ...K("personalCheckBox", { required: !t }),
2900
+ isChecked: X,
2901
+ error: !!P.personalCheckBox,
2902
+ ...a("personalCheckBox", { required: !t }),
2895
2903
  children: [
2896
2904
  t && /* @__PURE__ */ pe("div", { children: [
2897
2905
  "Согласен(-на)",
@@ -2933,7 +2941,7 @@ const Kn = Vt.bind(Ce), Qn = "Я принимаю условия Политик
2933
2941
  size: "large",
2934
2942
  as: "button",
2935
2943
  additionalClass: Ce.modalBtn,
2936
- disabled: !!b.name || !!b.phone && W || !!b.email && I || !!b.advCheckBox && (G == null ? void 0 : G.isRequired) || !!b.personalCheckBox && !t,
2944
+ disabled: !!P.name || !!P.phone && W || !!P.email && I || !!P.advCheckBox && (G == null ? void 0 : G.isRequired) || !!P.personalCheckBox && !t,
2937
2945
  children: "Отправить запрос"
2938
2946
  }
2939
2947
  )
@@ -2993,8 +3001,8 @@ var Vr = { exports: {} };
2993
3001
  var r = {}.hasOwnProperty;
2994
3002
  function t() {
2995
3003
  for (var i = "", _ = 0; _ < arguments.length; _++) {
2996
- var S = arguments[_];
2997
- S && (i = c(i, o.call(this, S)));
3004
+ var E = arguments[_];
3005
+ E && (i = c(i, o.call(this, E)));
2998
3006
  }
2999
3007
  return i;
3000
3008
  }
@@ -3008,8 +3016,8 @@ var Vr = { exports: {} };
3008
3016
  if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]"))
3009
3017
  return i.toString();
3010
3018
  var _ = "";
3011
- for (var S in i)
3012
- r.call(i, S) && i[S] && (_ = c(_, this && this[S] || S));
3019
+ for (var E in i)
3020
+ r.call(i, E) && i[E] && (_ = c(_, this && this[E] || E));
3013
3021
  return _;
3014
3022
  }
3015
3023
  function c(i, _) {
@@ -3028,44 +3036,44 @@ const gi = /* @__PURE__ */ yr(yi), _i = ({
3028
3036
  onChange: i,
3029
3037
  setSelectedTabs: _
3030
3038
  }) => {
3031
- const { isMobile: S } = ft(), [W, I] = je(!1), R = mr(null), [w, te] = je(e), [ee] = je(r), [re, Q] = je(w), [G, ie] = je(ee), Y = (d) => {
3032
- if (t && t(d), o.some((b) => b.value === d.value))
3039
+ const { isMobile: E } = ft(), [W, I] = je(!1), R = mr(null), [C, te] = je(e), [Q] = je(r), [re, K] = je(C), [G, ie] = je(Q), Y = (d) => {
3040
+ if (t && t(d), o.some((S) => S.value === d.value))
3033
3041
  return;
3034
- const p = G.some((b) => b.value === d.value) ? G.filter((b) => b.value !== d.value) : [...G, d];
3042
+ const p = G.some((S) => S.value === d.value) ? G.filter((S) => S.value !== d.value) : [...G, d];
3035
3043
  ie(p);
3036
3044
  }, ne = () => {
3037
- te(c), Q(c), ie([]), i && (i([]), _ == null || _(c));
3038
- }, K = () => {
3039
- ie(r), Q(e);
3040
- }, s = () => {
3041
- K(), I(!1);
3042
- }, k = (d) => {
3045
+ te(c), K(c), ie([]), i && (i([]), _ == null || _(c));
3046
+ }, ee = () => {
3047
+ ie(r), K(e);
3048
+ }, a = () => {
3049
+ ee(), I(!1);
3050
+ }, b = (d) => {
3043
3051
  d.stopPropagation(), i && (_ == null || _(re), i(G)), I(!1);
3044
3052
  };
3045
3053
  return Tt(() => {
3046
- W || Q((d) => JSON.stringify(d) !== JSON.stringify(e) ? e : d);
3054
+ W || K((d) => JSON.stringify(d) !== JSON.stringify(e) ? e : d);
3047
3055
  }, [W, e]), Tt(() => {
3048
3056
  const d = (p) => {
3049
3057
  if (!R.current)
3050
3058
  return;
3051
- const b = p.target;
3052
- R.current.contains(b) || b.closest("svg") || s();
3059
+ const S = p.target;
3060
+ R.current.contains(S) || S.closest("svg") || a();
3053
3061
  };
3054
3062
  return W ? document.addEventListener("click", d) : document.removeEventListener("click", d), () => {
3055
3063
  document.removeEventListener("click", d);
3056
3064
  };
3057
3065
  }, [W]), {
3058
- isMobile: S,
3066
+ isMobile: E,
3059
3067
  handleClearClick: ne,
3060
- handleCloseModal: s,
3068
+ handleCloseModal: a,
3061
3069
  handleOptionClick: Y,
3062
- handleSaveClick: k,
3070
+ handleSaveClick: b,
3063
3071
  localSelectedTabs: re,
3064
3072
  selectedOptions: G,
3065
3073
  setSelectedOptions: ie,
3066
3074
  isModalOpen: W,
3067
3075
  setIsModalOpen: I,
3068
- setLocalSelectedTabs: Q,
3076
+ setLocalSelectedTabs: K,
3069
3077
  containerRef: R
3070
3078
  };
3071
3079
  }, bi = gi.bind(ce), Gi = ({
@@ -3076,31 +3084,31 @@ const gi = /* @__PURE__ */ yr(yi), _i = ({
3076
3084
  selectedValues: c,
3077
3085
  setSelectedTabs: i,
3078
3086
  selectedTabs: _,
3079
- onClickItem: S,
3087
+ onClickItem: E,
3080
3088
  onCLickSelect: W,
3081
3089
  btnName: I = "Фильтр"
3082
3090
  }) => {
3083
3091
  const {
3084
3092
  handleCloseModal: R,
3085
- localSelectedTabs: w,
3093
+ localSelectedTabs: C,
3086
3094
  selectedOptions: te,
3087
- isMobile: ee,
3095
+ isMobile: Q,
3088
3096
  handleOptionClick: re,
3089
- handleClearClick: Q,
3097
+ handleClearClick: K,
3090
3098
  handleSaveClick: G,
3091
3099
  isModalOpen: ie,
3092
3100
  setLocalSelectedTabs: Y,
3093
3101
  setIsModalOpen: ne,
3094
- containerRef: K
3102
+ containerRef: ee
3095
3103
  } = _i({
3096
3104
  selectedTabs: _,
3097
- onClickItem: S,
3105
+ onClickItem: E,
3098
3106
  setSelectedTabs: i,
3099
3107
  tabs: r,
3100
3108
  onChange: o,
3101
3109
  disabledOptions: e,
3102
3110
  selectedValues: c
3103
- }), s = () => /* @__PURE__ */ pe(qt, { children: [
3111
+ }), a = () => /* @__PURE__ */ pe(qt, { children: [
3104
3112
  /* @__PURE__ */ Z(
3105
3113
  "div",
3106
3114
  {
@@ -3126,9 +3134,9 @@ const gi = /* @__PURE__ */ yr(yi), _i = ({
3126
3134
  variant: "grayRow",
3127
3135
  addClassName: ce.tabs,
3128
3136
  isApart: !0,
3129
- children: r == null ? void 0 : r.map((k, d) => {
3130
- var b;
3131
- const p = k.value;
3137
+ children: r == null ? void 0 : r.map((b, d) => {
3138
+ var S;
3139
+ const p = b.value;
3132
3140
  return /* @__PURE__ */ Z(
3133
3141
  et.Item,
3134
3142
  {
@@ -3138,10 +3146,10 @@ const gi = /* @__PURE__ */ yr(yi), _i = ({
3138
3146
  value: p,
3139
3147
  onClick: () => {
3140
3148
  },
3141
- checked: ((b = w == null ? void 0 : w.find((C) => C.value === p)) == null ? void 0 : b.state) ?? !1,
3149
+ checked: ((S = C == null ? void 0 : C.find((P) => P.value === p)) == null ? void 0 : S.state) ?? !1,
3142
3150
  onChange: () => {
3143
3151
  Y == null || Y(
3144
- (C) => C.map((B) => B.value === p ? { ...B, state: !B.state } : B)
3152
+ (P) => P.map((N) => N.value === p ? { ...N, state: !N.state } : N)
3145
3153
  );
3146
3154
  },
3147
3155
  index: d,
@@ -3153,7 +3161,7 @@ const gi = /* @__PURE__ */ yr(yi), _i = ({
3153
3161
  }
3154
3162
  ) })
3155
3163
  ] }),
3156
- /* @__PURE__ */ Z("div", { className: ce.selectWrapper, children: t == null ? void 0 : t.map((k, d) => /* @__PURE__ */ Z(
3164
+ /* @__PURE__ */ Z("div", { className: ce.selectWrapper, children: t == null ? void 0 : t.map((b, d) => /* @__PURE__ */ Z(
3157
3165
  Ut,
3158
3166
  {
3159
3167
  sizeIcon: "24",
@@ -3161,7 +3169,7 @@ const gi = /* @__PURE__ */ yr(yi), _i = ({
3161
3169
  disabledOptions: [],
3162
3170
  clickableOptions: t == null ? void 0 : t.map((p) => p.value.toString()),
3163
3171
  selectedOptions: te,
3164
- option: k,
3172
+ option: b,
3165
3173
  handleOptionClick: re
3166
3174
  },
3167
3175
  d
@@ -3173,7 +3181,7 @@ const gi = /* @__PURE__ */ yr(yi), _i = ({
3173
3181
  as: "button",
3174
3182
  variant: "gray",
3175
3183
  additionalClass: ce.resetBtn,
3176
- onClick: Q,
3184
+ onClick: K,
3177
3185
  children: "Сбросить"
3178
3186
  }
3179
3187
  ),
@@ -3195,7 +3203,7 @@ const gi = /* @__PURE__ */ yr(yi), _i = ({
3195
3203
  {
3196
3204
  className: ce.root,
3197
3205
  onClick: () => {
3198
- W && W(), ee ? ne((k) => !k) : ie || ne(!0);
3206
+ W && W(), Q ? ne((b) => !b) : ie || ne(!0);
3199
3207
  },
3200
3208
  children: [
3201
3209
  /* @__PURE__ */ Z("div", { className: ce.btnName, children: I }),
@@ -3209,10 +3217,10 @@ const gi = /* @__PURE__ */ yr(yi), _i = ({
3209
3217
  ]
3210
3218
  }
3211
3219
  ),
3212
- !ee && /* @__PURE__ */ pe(
3220
+ !Q && /* @__PURE__ */ pe(
3213
3221
  "div",
3214
3222
  {
3215
- ref: K,
3223
+ ref: ee,
3216
3224
  className: bi(ce.desktopWrapper, { [ce.desktopWrapperOpen]: ie }),
3217
3225
  children: [
3218
3226
  /* @__PURE__ */ Z(
@@ -3240,9 +3248,9 @@ const gi = /* @__PURE__ */ yr(yi), _i = ({
3240
3248
  variant: "grayRow",
3241
3249
  addClassName: ce.tabs,
3242
3250
  isApart: !0,
3243
- children: r == null ? void 0 : r.map((k, d) => {
3244
- var b;
3245
- const p = k.value;
3251
+ children: r == null ? void 0 : r.map((b, d) => {
3252
+ var S;
3253
+ const p = b.value;
3246
3254
  return /* @__PURE__ */ Z(
3247
3255
  et.Item,
3248
3256
  {
@@ -3252,10 +3260,10 @@ const gi = /* @__PURE__ */ yr(yi), _i = ({
3252
3260
  value: p,
3253
3261
  onClick: () => {
3254
3262
  },
3255
- checked: ((b = w == null ? void 0 : w.find((C) => C.value === p)) == null ? void 0 : b.state) ?? !1,
3263
+ checked: ((S = C == null ? void 0 : C.find((P) => P.value === p)) == null ? void 0 : S.state) ?? !1,
3256
3264
  onChange: () => {
3257
3265
  Y == null || Y(
3258
- (C) => C.map((B) => B.value === p ? { ...B, state: !B.state } : B)
3266
+ (P) => P.map((N) => N.value === p ? { ...N, state: !N.state } : N)
3259
3267
  );
3260
3268
  },
3261
3269
  index: d,
@@ -3268,7 +3276,7 @@ const gi = /* @__PURE__ */ yr(yi), _i = ({
3268
3276
  }
3269
3277
  ) })
3270
3278
  ] }),
3271
- /* @__PURE__ */ Z("div", { className: ce.selectWrapper, children: t == null ? void 0 : t.map((k, d) => /* @__PURE__ */ Z(
3279
+ /* @__PURE__ */ Z("div", { className: ce.selectWrapper, children: t == null ? void 0 : t.map((b, d) => /* @__PURE__ */ Z(
3272
3280
  Ut,
3273
3281
  {
3274
3282
  sizeIcon: "24",
@@ -3276,7 +3284,7 @@ const gi = /* @__PURE__ */ yr(yi), _i = ({
3276
3284
  disabledOptions: [],
3277
3285
  clickableOptions: t == null ? void 0 : t.map((p) => p.value.toString()),
3278
3286
  selectedOptions: te,
3279
- option: k,
3287
+ option: b,
3280
3288
  handleOptionClick: re
3281
3289
  },
3282
3290
  d
@@ -3288,7 +3296,7 @@ const gi = /* @__PURE__ */ yr(yi), _i = ({
3288
3296
  as: "button",
3289
3297
  variant: "gray",
3290
3298
  additionalClass: ce.resetBtn,
3291
- onClick: Q,
3299
+ onClick: K,
3292
3300
  children: "Сбросить"
3293
3301
  }
3294
3302
  ),
@@ -3306,7 +3314,7 @@ const gi = /* @__PURE__ */ yr(yi), _i = ({
3306
3314
  }
3307
3315
  )
3308
3316
  ] }),
3309
- ee && /* @__PURE__ */ Z(
3317
+ Q && /* @__PURE__ */ Z(
3310
3318
  Ft,
3311
3319
  {
3312
3320
  isOpen: ie,
@@ -3314,7 +3322,7 @@ const gi = /* @__PURE__ */ yr(yi), _i = ({
3314
3322
  isTransparentBack: !0,
3315
3323
  additionalClassModalBody: ce.modalAddBody,
3316
3324
  additionalClass: ce.filterWithSaveModal,
3317
- children: /* @__PURE__ */ Z(s, {})
3325
+ children: /* @__PURE__ */ Z(a, {})
3318
3326
  }
3319
3327
  )
3320
3328
  ] });