@acrool/react-picker 0.1.0-alpha.1 → 0.1.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
1
  import { ReactNode, RefObject } from 'react';
2
2
  interface IProps {
3
3
  children: ReactNode;
4
+ isDebug?: boolean;
4
5
  anchorRef: RefObject<HTMLDivElement>;
5
6
  }
6
7
  declare const _default: import("react").ForwardRefExoticComponent<IProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -115,19 +115,19 @@ function Pa() {
115
115
  var g = m && h[m] || h[P];
116
116
  return typeof g == "function" ? g : null;
117
117
  }
118
- var x = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
118
+ var T = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
119
119
  function y(h) {
120
120
  {
121
- for (var g = arguments.length, T = new Array(g > 1 ? g - 1 : 0), C = 1; C < g; C++)
122
- T[C - 1] = arguments[C];
123
- v("error", h, T);
121
+ for (var g = arguments.length, x = new Array(g > 1 ? g - 1 : 0), C = 1; C < g; C++)
122
+ x[C - 1] = arguments[C];
123
+ v("error", h, x);
124
124
  }
125
125
  }
126
- function v(h, g, T) {
126
+ function v(h, g, x) {
127
127
  {
128
- var C = x.ReactDebugCurrentFrame, D = C.getStackAddendum();
129
- D !== "" && (g += "%s", T = T.concat([D]));
130
- var k = T.map(function(V) {
128
+ var C = T.ReactDebugCurrentFrame, D = C.getStackAddendum();
129
+ D !== "" && (g += "%s", x = x.concat([D]));
130
+ var k = x.map(function(V) {
131
131
  return String(V);
132
132
  });
133
133
  k.unshift("Warning: " + g), Function.prototype.apply.call(console[h], console, k);
@@ -142,12 +142,12 @@ function Pa() {
142
142
  // with.
143
143
  h.$$typeof === U || h.getModuleId !== void 0));
144
144
  }
145
- function j(h, g, T) {
145
+ function j(h, g, x) {
146
146
  var C = h.displayName;
147
147
  if (C)
148
148
  return C;
149
149
  var D = g.displayName || g.name || "";
150
- return D !== "" ? T + "(" + D + ")" : T;
150
+ return D !== "" ? x + "(" + D + ")" : x;
151
151
  }
152
152
  function gt(h) {
153
153
  return h.displayName || "Context";
@@ -179,8 +179,8 @@ function Pa() {
179
179
  var g = h;
180
180
  return gt(g) + ".Consumer";
181
181
  case r:
182
- var T = h;
183
- return gt(T._context) + ".Provider";
182
+ var x = h;
183
+ return gt(x._context) + ".Provider";
184
184
  case l:
185
185
  return j(h, h.render, "ForwardRef");
186
186
  case f:
@@ -259,8 +259,8 @@ function Pa() {
259
259
  _ < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
260
260
  }
261
261
  }
262
- var Ye = x.ReactCurrentDispatcher, Xe;
263
- function ve(h, g, T) {
262
+ var Ye = T.ReactCurrentDispatcher, Xe;
263
+ function ve(h, g, x) {
264
264
  {
265
265
  if (Xe === void 0)
266
266
  try {
@@ -282,9 +282,9 @@ function Pa() {
282
282
  if (!h || qe)
283
283
  return "";
284
284
  {
285
- var T = Pe.get(h);
286
- if (T !== void 0)
287
- return T;
285
+ var x = Pe.get(h);
286
+ if (x !== void 0)
287
+ return x;
288
288
  }
289
289
  var C;
290
290
  qe = !0;
@@ -349,14 +349,14 @@ function Pa() {
349
349
  var jt = h ? h.displayName || h.name : "", St = jt ? ve(jt) : "";
350
350
  return typeof h == "function" && Pe.set(h, St), St;
351
351
  }
352
- function jo(h, g, T) {
352
+ function jo(h, g, x) {
353
353
  return Pi(h, !1);
354
354
  }
355
355
  function _o(h) {
356
356
  var g = h.prototype;
357
357
  return !!(g && g.isReactComponent);
358
358
  }
359
- function xe(h, g, T) {
359
+ function Te(h, g, x) {
360
360
  if (h == null)
361
361
  return "";
362
362
  if (typeof h == "function")
@@ -374,26 +374,26 @@ function Pa() {
374
374
  case l:
375
375
  return jo(h.render);
376
376
  case f:
377
- return xe(h.type, g, T);
377
+ return Te(h.type, g, x);
378
378
  case d: {
379
379
  var C = h, D = C._payload, k = C._init;
380
380
  try {
381
- return xe(k(D), g, T);
381
+ return Te(k(D), g, x);
382
382
  } catch {
383
383
  }
384
384
  }
385
385
  }
386
386
  return "";
387
387
  }
388
- var zt = Object.prototype.hasOwnProperty, xi = {}, Ti = x.ReactDebugCurrentFrame;
389
- function Te(h) {
388
+ var zt = Object.prototype.hasOwnProperty, Ti = {}, xi = T.ReactDebugCurrentFrame;
389
+ function xe(h) {
390
390
  if (h) {
391
- var g = h._owner, T = xe(h.type, h._source, g ? g.type : null);
392
- Ti.setExtraStackFrame(T);
391
+ var g = h._owner, x = Te(h.type, h._source, g ? g.type : null);
392
+ xi.setExtraStackFrame(x);
393
393
  } else
394
- Ti.setExtraStackFrame(null);
394
+ xi.setExtraStackFrame(null);
395
395
  }
396
- function Bo(h, g, T, C, D) {
396
+ function Bo(h, g, x, C, D) {
397
397
  {
398
398
  var k = Function.call.bind(zt);
399
399
  for (var V in h)
@@ -401,14 +401,14 @@ function Pa() {
401
401
  var R = void 0;
402
402
  try {
403
403
  if (typeof h[V] != "function") {
404
- var X = Error((C || "React class") + ": " + T + " type `" + V + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof h[V] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
404
+ var X = Error((C || "React class") + ": " + x + " type `" + V + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof h[V] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
405
405
  throw X.name = "Invariant Violation", X;
406
406
  }
407
- R = h[V](g, V, C, T, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
407
+ R = h[V](g, V, C, x, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
408
408
  } catch (B) {
409
409
  R = B;
410
410
  }
411
- R && !(R instanceof Error) && (Te(D), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", C || "React class", T, V, typeof R), Te(null)), R instanceof Error && !(R.message in xi) && (xi[R.message] = !0, Te(D), y("Failed %s type: %s", T, R.message), Te(null));
411
+ R && !(R instanceof Error) && (xe(D), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", C || "React class", x, V, typeof R), xe(null)), R instanceof Error && !(R.message in Ti) && (Ti[R.message] = !0, xe(D), y("Failed %s type: %s", x, R.message), xe(null));
412
412
  }
413
413
  }
414
414
  }
@@ -418,8 +418,8 @@ function Pa() {
418
418
  }
419
419
  function No(h) {
420
420
  {
421
- var g = typeof Symbol == "function" && Symbol.toStringTag, T = g && h[Symbol.toStringTag] || h.constructor.name || "Object";
422
- return T;
421
+ var g = typeof Symbol == "function" && Symbol.toStringTag, x = g && h[Symbol.toStringTag] || h.constructor.name || "Object";
422
+ return x;
423
423
  }
424
424
  }
425
425
  function Uo(h) {
@@ -436,7 +436,7 @@ function Pa() {
436
436
  if (Uo(h))
437
437
  return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", No(h)), bi(h);
438
438
  }
439
- var Yt = x.ReactCurrentOwner, Wo = {
439
+ var Yt = T.ReactCurrentOwner, Wo = {
440
440
  key: !0,
441
441
  ref: !0,
442
442
  __self: !0,
@@ -461,40 +461,40 @@ function Pa() {
461
461
  }
462
462
  function Go(h, g) {
463
463
  if (typeof h.ref == "string" && Yt.current && g && Yt.current.stateNode !== g) {
464
- var T = Y(Yt.current.type);
465
- Je[T] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Y(Yt.current.type), h.ref), Je[T] = !0);
464
+ var x = Y(Yt.current.type);
465
+ Je[x] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Y(Yt.current.type), h.ref), Je[x] = !0);
466
466
  }
467
467
  }
468
468
  function Ho(h, g) {
469
469
  {
470
- var T = function() {
470
+ var x = function() {
471
471
  Si || (Si = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", g));
472
472
  };
473
- T.isReactWarning = !0, Object.defineProperty(h, "key", {
474
- get: T,
473
+ x.isReactWarning = !0, Object.defineProperty(h, "key", {
474
+ get: x,
475
475
  configurable: !0
476
476
  });
477
477
  }
478
478
  }
479
479
  function zo(h, g) {
480
480
  {
481
- var T = function() {
481
+ var x = function() {
482
482
  Ci || (Ci = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", g));
483
483
  };
484
- T.isReactWarning = !0, Object.defineProperty(h, "ref", {
485
- get: T,
484
+ x.isReactWarning = !0, Object.defineProperty(h, "ref", {
485
+ get: x,
486
486
  configurable: !0
487
487
  });
488
488
  }
489
489
  }
490
- var Yo = function(h, g, T, C, D, k, V) {
490
+ var Yo = function(h, g, x, C, D, k, V) {
491
491
  var R = {
492
492
  // This tag allows us to uniquely identify this as a React Element
493
493
  $$typeof: e,
494
494
  // Built-in properties that belong on the element
495
495
  type: h,
496
496
  key: g,
497
- ref: T,
497
+ ref: x,
498
498
  props: V,
499
499
  // Record the component responsible for creating this element.
500
500
  _owner: k
@@ -516,10 +516,10 @@ function Pa() {
516
516
  value: D
517
517
  }), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
518
518
  };
519
- function Xo(h, g, T, C, D) {
519
+ function Xo(h, g, x, C, D) {
520
520
  {
521
521
  var k, V = {}, R = null, X = null;
522
- T !== void 0 && (wi(T), R = "" + T), Ko(g) && (wi(g.key), R = "" + g.key), $o(g) && (X = g.ref, Go(g, D));
522
+ x !== void 0 && (wi(x), R = "" + x), Ko(g) && (wi(g.key), R = "" + g.key), $o(g) && (X = g.ref, Go(g, D));
523
523
  for (k in g)
524
524
  zt.call(g, k) && !Wo.hasOwnProperty(k) && (V[k] = g[k]);
525
525
  if (h && h.defaultProps) {
@@ -534,11 +534,11 @@ function Pa() {
534
534
  return Yo(h, R, X, D, C, Yt.current, V);
535
535
  }
536
536
  }
537
- var Qe = x.ReactCurrentOwner, Ai = x.ReactDebugCurrentFrame;
537
+ var Qe = T.ReactCurrentOwner, Ai = T.ReactDebugCurrentFrame;
538
538
  function Ot(h) {
539
539
  if (h) {
540
- var g = h._owner, T = xe(h.type, h._source, g ? g.type : null);
541
- Ai.setExtraStackFrame(T);
540
+ var g = h._owner, x = Te(h.type, h._source, g ? g.type : null);
541
+ Ai.setExtraStackFrame(x);
542
542
  } else
543
543
  Ai.setExtraStackFrame(null);
544
544
  }
@@ -562,10 +562,10 @@ Check the render method of \`` + h + "`.";
562
562
  function qo(h) {
563
563
  {
564
564
  if (h !== void 0) {
565
- var g = h.fileName.replace(/^.*[\\\/]/, ""), T = h.lineNumber;
565
+ var g = h.fileName.replace(/^.*[\\\/]/, ""), x = h.lineNumber;
566
566
  return `
567
567
 
568
- Check your code at ` + g + ":" + T + ".";
568
+ Check your code at ` + g + ":" + x + ".";
569
569
  }
570
570
  return "";
571
571
  }
@@ -575,10 +575,10 @@ Check your code at ` + g + ":" + T + ".";
575
575
  {
576
576
  var g = Ei();
577
577
  if (!g) {
578
- var T = typeof h == "string" ? h : h.displayName || h.name;
579
- T && (g = `
578
+ var x = typeof h == "string" ? h : h.displayName || h.name;
579
+ x && (g = `
580
580
 
581
- Check the top-level render call using <` + T + ">.");
581
+ Check the top-level render call using <` + x + ">.");
582
582
  }
583
583
  return g;
584
584
  }
@@ -588,12 +588,12 @@ Check the top-level render call using <` + T + ">.");
588
588
  if (!h._store || h._store.validated || h.key != null)
589
589
  return;
590
590
  h._store.validated = !0;
591
- var T = Zo(g);
592
- if (Ri[T])
591
+ var x = Zo(g);
592
+ if (Ri[x])
593
593
  return;
594
- Ri[T] = !0;
594
+ Ri[x] = !0;
595
595
  var C = "";
596
- h && h._owner && h._owner !== Qe.current && (C = " It was passed a child from " + Y(h._owner.type) + "."), Ot(h), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', T, C), Ot(null);
596
+ h && h._owner && h._owner !== Qe.current && (C = " It was passed a child from " + Y(h._owner.type) + "."), Ot(h), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', x, C), Ot(null);
597
597
  }
598
598
  }
599
599
  function Di(h, g) {
@@ -601,8 +601,8 @@ Check the top-level render call using <` + T + ">.");
601
601
  if (typeof h != "object")
602
602
  return;
603
603
  if (Ze(h))
604
- for (var T = 0; T < h.length; T++) {
605
- var C = h[T];
604
+ for (var x = 0; x < h.length; x++) {
605
+ var C = h[x];
606
606
  en(C) && Vi(C, g);
607
607
  }
608
608
  else if (en(h))
@@ -620,18 +620,18 @@ Check the top-level render call using <` + T + ">.");
620
620
  var g = h.type;
621
621
  if (g == null || typeof g == "string")
622
622
  return;
623
- var T;
623
+ var x;
624
624
  if (typeof g == "function")
625
- T = g.propTypes;
625
+ x = g.propTypes;
626
626
  else if (typeof g == "object" && (g.$$typeof === l || // Note: Memo only checks outer props here.
627
627
  // Inner props are checked in the reconciler.
628
628
  g.$$typeof === f))
629
- T = g.propTypes;
629
+ x = g.propTypes;
630
630
  else
631
631
  return;
632
- if (T) {
632
+ if (x) {
633
633
  var C = Y(g);
634
- Bo(T, h.props, "prop", C, h);
634
+ Bo(x, h.props, "prop", C, h);
635
635
  } else if (g.PropTypes !== void 0 && !tn) {
636
636
  tn = !0;
637
637
  var D = Y(g);
@@ -642,8 +642,8 @@ Check the top-level render call using <` + T + ">.");
642
642
  }
643
643
  function Qo(h) {
644
644
  {
645
- for (var g = Object.keys(h.props), T = 0; T < g.length; T++) {
646
- var C = g[T];
645
+ for (var g = Object.keys(h.props), x = 0; x < g.length; x++) {
646
+ var C = g[x];
647
647
  if (C !== "children" && C !== "key") {
648
648
  Ot(h), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", C), Ot(null);
649
649
  break;
@@ -653,7 +653,7 @@ Check the top-level render call using <` + T + ">.");
653
653
  }
654
654
  }
655
655
  var Mi = {};
656
- function ki(h, g, T, C, D, k) {
656
+ function ki(h, g, x, C, D, k) {
657
657
  {
658
658
  var V = G(h);
659
659
  if (!V) {
@@ -664,7 +664,7 @@ Check the top-level render call using <` + T + ">.");
664
664
  var B;
665
665
  h === null ? B = "null" : Ze(h) ? B = "array" : h !== void 0 && h.$$typeof === e ? (B = "<" + (Y(h.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : B = typeof h, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", B, R);
666
666
  }
667
- var N = Xo(h, g, T, D, k);
667
+ var N = Xo(h, g, x, D, k);
668
668
  if (N == null)
669
669
  return N;
670
670
  if (V) {
@@ -697,11 +697,11 @@ React keys must be passed directly to JSX without using spread:
697
697
  return h === i ? Qo(N) : Jo(N), N;
698
698
  }
699
699
  }
700
- function ta(h, g, T) {
701
- return ki(h, g, T, !0);
700
+ function ta(h, g, x) {
701
+ return ki(h, g, x, !0);
702
702
  }
703
- function ea(h, g, T) {
704
- return ki(h, g, T, !1);
703
+ function ea(h, g, x) {
704
+ return ki(h, g, x, !1);
705
705
  }
706
706
  var na = ea, ia = ta;
707
707
  qt.Fragment = i, qt.jsx = na, qt.jsxs = ia;
@@ -713,7 +713,7 @@ const ir = [
713
713
  Ee.Input,
714
714
  Ee.Textarea,
715
715
  Ee.Select
716
- ], xa = (t) => (t == null ? void 0 : t.split("+").map((e) => e.trim().toLowerCase())) ?? [], Ta = (t) => ({
716
+ ], Ta = (t) => (t == null ? void 0 : t.split("+").map((e) => e.trim().toLowerCase())) ?? [], xa = (t) => ({
717
717
  formFieldTags: (t == null ? void 0 : t.formFieldTags) ?? ir,
718
718
  ignoreFormField: (t == null ? void 0 : t.ignoreFormField) ?? !0,
719
719
  preventDefault: (t == null ? void 0 : t.preventDefault) ?? !0,
@@ -721,7 +721,7 @@ const ir = [
721
721
  }), ba = (t, e, n) => (i) => {
722
722
  const s = Array.isArray(t) ? t : [t];
723
723
  for (const o of s) {
724
- const r = Ta(n), a = xa(o), l = i.key.toLowerCase(), c = i.code.toLowerCase(), u = document.activeElement;
724
+ const r = xa(n), a = Ta(o), l = i.key.toLowerCase(), c = i.code.toLowerCase(), u = document.activeElement;
725
725
  if (i.repeat)
726
726
  continue;
727
727
  const f = a.includes("ctrl"), d = a.includes("cmd"), p = a.includes("shift"), m = f === i.ctrlKey, P = d === i.metaKey, b = p === i.shiftKey;
@@ -839,18 +839,18 @@ function lr(t, e) {
839
839
  delta: 0,
840
840
  timestamp: 0,
841
841
  isProcessing: !1
842
- }, o = () => n = !0, r = be.reduce((x, y) => (x[y] = Ea(o), x), {}), { read: a, resolveKeyframes: l, update: c, preRender: u, render: f, postRender: d } = r, p = () => {
843
- const x = performance.now();
844
- n = !1, s.delta = i ? 1e3 / 60 : Math.max(Math.min(x - s.timestamp, Ra), 1), s.timestamp = x, s.isProcessing = !0, a.process(s), l.process(s), c.process(s), u.process(s), f.process(s), d.process(s), s.isProcessing = !1, n && e && (i = !1, t(p));
842
+ }, o = () => n = !0, r = be.reduce((T, y) => (T[y] = Ea(o), T), {}), { read: a, resolveKeyframes: l, update: c, preRender: u, render: f, postRender: d } = r, p = () => {
843
+ const T = performance.now();
844
+ n = !1, s.delta = i ? 1e3 / 60 : Math.max(Math.min(T - s.timestamp, Ra), 1), s.timestamp = T, s.isProcessing = !0, a.process(s), l.process(s), c.process(s), u.process(s), f.process(s), d.process(s), s.isProcessing = !1, n && e && (i = !1, t(p));
845
845
  }, m = () => {
846
846
  n = !0, i = !0, s.isProcessing || t(p);
847
847
  };
848
- return { schedule: be.reduce((x, y) => {
848
+ return { schedule: be.reduce((T, y) => {
849
849
  const v = r[y];
850
- return x[y] = (w, A = !1, L = !1) => (n || m(), v.schedule(w, A, L)), x;
851
- }, {}), cancel: (x) => {
850
+ return T[y] = (w, A = !1, L = !1) => (n || m(), v.schedule(w, A, L)), T;
851
+ }, {}), cancel: (T) => {
852
852
  for (let y = 0; y < be.length; y++)
853
- r[be[y]].cancel(x);
853
+ r[be[y]].cancel(T);
854
854
  }, state: s, steps: r };
855
855
  }
856
856
  const { schedule: Nn, cancel: Ph } = lr(queueMicrotask, !1);
@@ -1126,13 +1126,13 @@ const pe = [
1126
1126
  function hr(t, { layout: e, layoutId: n }) {
1127
1127
  return bt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!Le[t] || t === "opacity");
1128
1128
  }
1129
- const z = (t) => !!(t && t.getVelocity), dr = (t, e) => e && typeof t == "number" ? e.transform(t) : t, xt = (t, e, n) => n > e ? e : n < t ? t : n, Ht = {
1129
+ const z = (t) => !!(t && t.getVelocity), dr = (t, e) => e && typeof t == "number" ? e.transform(t) : t, Tt = (t, e, n) => n > e ? e : n < t ? t : n, Ht = {
1130
1130
  test: (t) => typeof t == "number",
1131
1131
  parse: parseFloat,
1132
1132
  transform: (t) => t
1133
1133
  }, ee = {
1134
1134
  ...Ht,
1135
- transform: (t) => xt(0, 1, t)
1135
+ transform: (t) => Tt(0, 1, t)
1136
1136
  }, we = {
1137
1137
  ...Ht,
1138
1138
  default: 1
@@ -1415,7 +1415,7 @@ function Pr(t, { style: e, vars: n }, i, s) {
1415
1415
  for (const o in n)
1416
1416
  t.style.setProperty(o, n[o]);
1417
1417
  }
1418
- const xr = /* @__PURE__ */ new Set([
1418
+ const Tr = /* @__PURE__ */ new Set([
1419
1419
  "baseFrequency",
1420
1420
  "diffuseConstant",
1421
1421
  "kernelMatrix",
@@ -1440,10 +1440,10 @@ const xr = /* @__PURE__ */ new Set([
1440
1440
  "textLength",
1441
1441
  "lengthAdjust"
1442
1442
  ]);
1443
- function Tr(t, e, n, i) {
1443
+ function xr(t, e, n, i) {
1444
1444
  Pr(t, e, void 0, i);
1445
1445
  for (const s in e.attrs)
1446
- t.setAttribute(xr.has(s) ? s : Ue(s), e.attrs[s]);
1446
+ t.setAttribute(Tr.has(s) ? s : Ue(s), e.attrs[s]);
1447
1447
  }
1448
1448
  function Jn(t, e, n) {
1449
1449
  var i;
@@ -1482,7 +1482,7 @@ function ti(t) {
1482
1482
  const e = it(null);
1483
1483
  return e.current === null && (e.current = t()), e.current;
1484
1484
  }
1485
- const xn = (t) => Array.isArray(t), hl = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), dl = (t) => xn(t) ? t[t.length - 1] || 0 : t;
1485
+ const Tn = (t) => Array.isArray(t), hl = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), dl = (t) => Tn(t) ? t[t.length - 1] || 0 : t;
1486
1486
  function Re(t) {
1487
1487
  const e = z(t) ? t.get() : t;
1488
1488
  return hl(e) ? e.toValue() : e;
@@ -1545,7 +1545,7 @@ function gl(t, e, n, i, s) {
1545
1545
  let m = n ? n.initial === !1 : !1;
1546
1546
  m = m || u === !1;
1547
1547
  const P = m ? f : u;
1548
- return P && typeof P != "boolean" && !ae(P) && $i(t, P, (b, x) => {
1548
+ return P && typeof P != "boolean" && !ae(P) && $i(t, P, (b, T) => {
1549
1549
  for (const y in b) {
1550
1550
  let v = b[y];
1551
1551
  if (Array.isArray(v)) {
@@ -1554,11 +1554,11 @@ function gl(t, e, n, i, s) {
1554
1554
  }
1555
1555
  v !== null && (r[y] = v);
1556
1556
  }
1557
- for (const y in x)
1558
- r[y] = x[y];
1557
+ for (const y in T)
1558
+ r[y] = T[y];
1559
1559
  }), l && (f && u !== !1 && !ae(f) && $i(t, f, (b) => {
1560
- for (const x in b)
1561
- ml(a, x);
1560
+ for (const T in b)
1561
+ ml(a, T);
1562
1562
  }), a.length && (r.willChange = a.join(","))), r;
1563
1563
  }
1564
1564
  const { schedule: M, cancel: mt, state: W, steps: sn } = lr(typeof requestAnimationFrame < "u" ? requestAnimationFrame : K, !0), yl = {
@@ -1578,7 +1578,7 @@ const { schedule: M, cancel: mt, state: W, steps: sn } = lr(typeof requestAnimat
1578
1578
  };
1579
1579
  }
1580
1580
  }), M.render(() => {
1581
- qn(n, i, Zn(e.tagName), t.transformTemplate), Tr(e, n);
1581
+ qn(n, i, Zn(e.tagName), t.transformTemplate), xr(e, n);
1582
1582
  });
1583
1583
  }
1584
1584
  })
@@ -1610,11 +1610,11 @@ function Ge(t, e = "page") {
1610
1610
  }
1611
1611
  };
1612
1612
  }
1613
- const xl = (t) => (e) => Ar(e) && t(e, Ge(e));
1613
+ const Tl = (t) => (e) => Ar(e) && t(e, Ge(e));
1614
1614
  function ut(t, e, n, i) {
1615
- return ct(t, e, xl(n), i);
1615
+ return ct(t, e, Tl(n), i);
1616
1616
  }
1617
- const Tl = (t, e) => (n) => e(t(n)), ft = (...t) => t.reduce(Tl);
1617
+ const xl = (t, e) => (n) => e(t(n)), ft = (...t) => t.reduce(xl);
1618
1618
  function Er(t) {
1619
1619
  let e = null;
1620
1620
  return () => {
@@ -1759,8 +1759,8 @@ class Sl extends wt {
1759
1759
  this.removeStartListeners(), this.removeEndListeners(), this.removeAccessibleListeners();
1760
1760
  }
1761
1761
  }
1762
- const Tn = /* @__PURE__ */ new WeakMap(), on = /* @__PURE__ */ new WeakMap(), Cl = (t) => {
1763
- const e = Tn.get(t.target);
1762
+ const xn = /* @__PURE__ */ new WeakMap(), on = /* @__PURE__ */ new WeakMap(), Cl = (t) => {
1763
+ const e = xn.get(t.target);
1764
1764
  e && e(t);
1765
1765
  }, Al = (t) => {
1766
1766
  t.forEach(Cl);
@@ -1773,8 +1773,8 @@ function El({ root: t, ...e }) {
1773
1773
  }
1774
1774
  function Rl(t, e, n) {
1775
1775
  const i = El(e);
1776
- return Tn.set(t, n), i.observe(t), () => {
1777
- Tn.delete(t), i.unobserve(t);
1776
+ return xn.set(t, n), i.observe(t), () => {
1777
+ xn.delete(t), i.unobserve(t);
1778
1778
  };
1779
1779
  }
1780
1780
  const Vl = {
@@ -2037,7 +2037,7 @@ const ii = (t, e) => (n) => !!(me(n) && Ga.test(n) && n.startsWith(t) || e && !H
2037
2037
  [n]: parseFloat(r),
2038
2038
  alpha: a !== void 0 ? parseFloat(a) : 1
2039
2039
  };
2040
- }, Zl = (t) => xt(0, 255, t), an = {
2040
+ }, Zl = (t) => Tt(0, 255, t), an = {
2041
2041
  ...Ht,
2042
2042
  transform: (t) => Math.round(Zl(t))
2043
2043
  }, Vt = {
@@ -2102,7 +2102,7 @@ function sc(t) {
2102
2102
  const e = Wr(t);
2103
2103
  return $r(t)(e.map(ic));
2104
2104
  }
2105
- const Tt = {
2105
+ const xt = {
2106
2106
  test: Ql,
2107
2107
  parse: Wr,
2108
2108
  createTransformer: $r,
@@ -2120,7 +2120,7 @@ function oc(t) {
2120
2120
  return i !== n && (o *= 100), e + "(" + o + s + ")";
2121
2121
  }
2122
2122
  const ac = /\b([a-z-]*)\(.*?\)/gu, Cn = {
2123
- ...Tt,
2123
+ ...xt,
2124
2124
  getAnimatableNone: (t) => {
2125
2125
  const e = t.match(ac);
2126
2126
  return e ? e.map(oc).join(" ") : t;
@@ -2144,7 +2144,7 @@ const ac = /\b([a-z-]*)\(.*?\)/gu, Cn = {
2144
2144
  }, si = (t) => lc[t];
2145
2145
  function Kr(t, e) {
2146
2146
  let n = si(t);
2147
- return n !== Cn && (n = Tt), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
2147
+ return n !== Cn && (n = xt), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
2148
2148
  }
2149
2149
  const cc = /* @__PURE__ */ new Set(["auto", "none", "0"]);
2150
2150
  function uc(t, e, n) {
@@ -2217,7 +2217,7 @@ function Hr(t) {
2217
2217
  return () => (e === void 0 && (e = t()), e);
2218
2218
  }
2219
2219
  const Ji = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
2220
- (Tt.test(t) || t === "0") && // And it contains numbers and/or colors
2220
+ (xt.test(t) || t === "0") && // And it contains numbers and/or colors
2221
2221
  !t.startsWith("url("));
2222
2222
  function fc(t) {
2223
2223
  const e = t[0];
@@ -2307,7 +2307,7 @@ function yc({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: i = 1
2307
2307
  let s, o;
2308
2308
  Gt(t <= ht(Qi), "Spring duration must be 10 seconds or less");
2309
2309
  let r = 1 - e;
2310
- r = xt(mc, gc, r), t = xt(pc, Qi, dt(t)), r < 1 ? (s = (c) => {
2310
+ r = Tt(mc, gc, r), t = Tt(pc, Qi, dt(t)), r < 1 ? (s = (c) => {
2311
2311
  const u = c * r, f = u * t, d = u - n, p = An(c, r), m = Math.exp(-f);
2312
2312
  return ln - d / p * m;
2313
2313
  }, o = (c) => {
@@ -2346,7 +2346,7 @@ function Pc(t, e, n) {
2346
2346
  function An(t, e) {
2347
2347
  return t * Math.sqrt(1 - e * e);
2348
2348
  }
2349
- const xc = ["duration", "bounce"], Tc = ["stiffness", "damping", "mass"];
2349
+ const Tc = ["duration", "bounce"], xc = ["stiffness", "damping", "mass"];
2350
2350
  function ts(t, e) {
2351
2351
  return e.some((n) => t[n] !== void 0);
2352
2352
  }
@@ -2359,7 +2359,7 @@ function bc(t) {
2359
2359
  isResolvedFromDuration: !1,
2360
2360
  ...t
2361
2361
  };
2362
- if (!ts(t, Tc) && ts(t, xc)) {
2362
+ if (!ts(t, xc) && ts(t, Tc)) {
2363
2363
  const n = yc(t);
2364
2364
  e = {
2365
2365
  ...e,
@@ -2373,8 +2373,8 @@ function qr({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
2373
2373
  const s = t[0], o = t[t.length - 1], r = { done: !1, value: s }, { stiffness: a, damping: l, mass: c, duration: u, velocity: f, isResolvedFromDuration: d } = bc({
2374
2374
  ...i,
2375
2375
  velocity: -dt(i.velocity || 0)
2376
- }), p = f || 0, m = l / (2 * Math.sqrt(a * c)), P = o - s, b = dt(Math.sqrt(a / c)), x = Math.abs(P) < 5;
2377
- n || (n = x ? 0.01 : 2), e || (e = x ? 5e-3 : 0.5);
2376
+ }), p = f || 0, m = l / (2 * Math.sqrt(a * c)), P = o - s, b = dt(Math.sqrt(a / c)), T = Math.abs(P) < 5;
2377
+ n || (n = T ? 0.01 : 2), e || (e = T ? 5e-3 : 0.5);
2378
2378
  let y;
2379
2379
  if (m < 1) {
2380
2380
  const v = An(b, m);
@@ -2413,11 +2413,11 @@ function es({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
2413
2413
  value: f
2414
2414
  }, p = (E) => a !== void 0 && E < a || l !== void 0 && E > l, m = (E) => a === void 0 ? l : l === void 0 || Math.abs(a - E) < Math.abs(l - E) ? a : l;
2415
2415
  let P = n * e;
2416
- const b = f + P, x = r === void 0 ? b : r(b);
2417
- x !== b && (P = x - f);
2418
- const y = (E) => -P * Math.exp(-E / i), v = (E) => x + y(E), w = (E) => {
2416
+ const b = f + P, T = r === void 0 ? b : r(b);
2417
+ T !== b && (P = T - f);
2418
+ const y = (E) => -P * Math.exp(-E / i), v = (E) => T + y(E), w = (E) => {
2419
2419
  const U = y(E), G = v(E);
2420
- d.done = Math.abs(U) <= c, d.value = d.done ? x : G;
2420
+ d.done = Math.abs(U) <= c, d.value = d.done ? T : G;
2421
2421
  };
2422
2422
  let A, L;
2423
2423
  const q = (E) => {
@@ -2554,7 +2554,7 @@ function Bc(t, e) {
2554
2554
  return i;
2555
2555
  }
2556
2556
  const Ic = (t, e) => {
2557
- const n = Tt.createTransformer(e), i = le(t), s = le(e);
2557
+ const n = xt.createTransformer(e), i = le(t), s = le(e);
2558
2558
  return i.indexes.var.length === s.indexes.var.length && i.indexes.color.length === s.indexes.color.length && i.indexes.number.length >= s.indexes.number.length ? En.has(t) && !s.values.length || En.has(e) && !i.values.length ? Oc(t, e) : ft(io(Bc(i, s), s.values), n) : (Gt(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Oe(t, e));
2559
2559
  };
2560
2560
  function so(t, e, n) {
@@ -2587,7 +2587,7 @@ function Uc(t, e, { clamp: n = !0, ease: i, mixer: s } = {}) {
2587
2587
  const f = ce(t[u], t[u + 1], c);
2588
2588
  return r[u](f);
2589
2589
  };
2590
- return n ? (c) => l(xt(t[0], t[o - 1], c)) : l;
2590
+ return n ? (c) => l(Tt(t[0], t[o - 1], c)) : l;
2591
2591
  }
2592
2592
  function Wc(t, e) {
2593
2593
  const n = t[t.length - 1];
@@ -2697,13 +2697,13 @@ class li extends zr {
2697
2697
  return o.next(0);
2698
2698
  const { delay: d, repeat: p, repeatType: m, repeatDelay: P, onUpdate: b } = this.options;
2699
2699
  this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - u / this.speed, this.startTime)), n ? this.currentTime = e : this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = Math.round(e - this.startTime) * this.speed;
2700
- const x = this.currentTime - d * (this.speed >= 0 ? 1 : -1), y = this.speed >= 0 ? x < 0 : x > u;
2701
- this.currentTime = Math.max(x, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = u);
2700
+ const T = this.currentTime - d * (this.speed >= 0 ? 1 : -1), y = this.speed >= 0 ? T < 0 : T > u;
2701
+ this.currentTime = Math.max(T, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = u);
2702
2702
  let v = this.currentTime, w = o;
2703
2703
  if (p) {
2704
2704
  const E = Math.min(this.currentTime, u) / f;
2705
2705
  let U = Math.floor(E), G = E % 1;
2706
- !G && E >= 1 && (G = 1), G === 1 && U--, U = Math.min(U, p + 1), !!(U % 2) && (m === "reverse" ? (G = 1 - G, P && (G -= P / f)) : m === "mirror" && (w = r)), v = xt(0, 1, G) * f;
2706
+ !G && E >= 1 && (G = 1), G === 1 && U--, U = Math.min(U, p + 1), !!(U % 2) && (m === "reverse" ? (G = 1 - G, P && (G -= P / f)) : m === "mirror" && (w = r)), v = Tt(0, 1, G) * f;
2707
2707
  }
2708
2708
  const A = y ? { done: !1, value: l[0] } : w.next(v);
2709
2709
  a && (A.value = a(A.value));
@@ -3379,9 +3379,9 @@ function uo(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
3379
3379
  };
3380
3380
  let P = !1;
3381
3381
  if (window.HandoffAppearAnimations) {
3382
- const x = co(t);
3383
- if (x) {
3384
- const y = window.HandoffAppearAnimations(x, f, d, M);
3382
+ const T = co(t);
3383
+ if (T) {
3384
+ const y = window.HandoffAppearAnimations(T, f, d, M);
3385
3385
  y !== null && (m.elapsed = y, P = !0);
3386
3386
  }
3387
3387
  }
@@ -3460,19 +3460,19 @@ function yu(t) {
3460
3460
  const c = t.getProps(), u = t.getVariantContext(!0) || {}, f = [], d = /* @__PURE__ */ new Set();
3461
3461
  let p = {}, m = 1 / 0;
3462
3462
  for (let b = 0; b < mu; b++) {
3463
- const x = pu[b], y = n[x], v = c[x] !== void 0 ? c[x] : u[x], w = oe(v), A = x === l ? y.isActive : null;
3463
+ const T = pu[b], y = n[T], v = c[T] !== void 0 ? c[T] : u[T], w = oe(v), A = T === l ? y.isActive : null;
3464
3464
  A === !1 && (m = b);
3465
- let L = v === u[x] && v !== c[x] && w;
3465
+ let L = v === u[T] && v !== c[T] && w;
3466
3466
  if (L && i && t.manuallyAnimateOnMount && (L = !1), y.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
3467
3467
  !y.isActive && A === null || // If we didn't and don't have any defined prop for this animation type
3468
3468
  !v && !y.prevProp || // Or if the prop doesn't define an animation
3469
3469
  ae(v) || typeof v == "boolean")
3470
3470
  continue;
3471
3471
  let E = vu(y.prevProp, v) || // If we're making this variant active, we want to always make it active
3472
- x === l && y.isActive && !L && w || // If we removed a higher-priority variant (i is in reverse order)
3472
+ T === l && y.isActive && !L && w || // If we removed a higher-priority variant (i is in reverse order)
3473
3473
  b > m && w, U = !1;
3474
3474
  const G = Array.isArray(v) ? v : [v];
3475
- let j = G.reduce(s(x), {});
3475
+ let j = G.reduce(s(T), {});
3476
3476
  A === !1 && (j = {});
3477
3477
  const { prevResolvedValues: gt = {} } = y, Y = {
3478
3478
  ...gt,
@@ -3487,18 +3487,18 @@ function yu(t) {
3487
3487
  if (p.hasOwnProperty(_))
3488
3488
  continue;
3489
3489
  let Ft = !1;
3490
- xn(Q) && xn(Lt) ? Ft = !Mr(Q, Lt) : Ft = Q !== Lt, Ft ? Q != null ? st(_) : d.add(_) : Q !== void 0 && d.has(_) ? st(_) : y.protectedKeys[_] = !0;
3490
+ Tn(Q) && Tn(Lt) ? Ft = !Mr(Q, Lt) : Ft = Q !== Lt, Ft ? Q != null ? st(_) : d.add(_) : Q !== void 0 && d.has(_) ? st(_) : y.protectedKeys[_] = !0;
3491
3491
  }
3492
3492
  y.prevProp = v, y.prevResolvedValues = j, y.isActive && (p = { ...p, ...j }), i && t.blockInitialAnimation && (E = !1), E && (!L || U) && f.push(...G.map((_) => ({
3493
3493
  animation: _,
3494
- options: { type: x }
3494
+ options: { type: T }
3495
3495
  })));
3496
3496
  }
3497
3497
  if (d.size) {
3498
3498
  const b = {};
3499
- d.forEach((x) => {
3500
- const y = t.getBaseTarget(x), v = t.getValue(x);
3501
- v && (v.liveStyle = !0), b[x] = y ?? null;
3499
+ d.forEach((T) => {
3500
+ const y = t.getBaseTarget(T), v = t.getValue(T);
3501
+ v && (v.liveStyle = !0), b[T] = y ?? null;
3502
3502
  }), f.push({ animation: b });
3503
3503
  }
3504
3504
  let P = !!f.length;
@@ -3577,10 +3577,10 @@ class Pu extends wt {
3577
3577
  this.node.animationState.reset(), (e = this.unmountControls) === null || e === void 0 || e.call(this);
3578
3578
  }
3579
3579
  }
3580
- let xu = 0;
3581
- class Tu extends wt {
3580
+ let Tu = 0;
3581
+ class xu extends wt {
3582
3582
  constructor() {
3583
- super(...arguments), this.id = xu++;
3583
+ super(...arguments), this.id = Tu++;
3584
3584
  }
3585
3585
  update() {
3586
3586
  if (!this.node.presenceContext)
@@ -3603,7 +3603,7 @@ const bu = {
3603
3603
  Feature: Pu
3604
3604
  },
3605
3605
  exit: {
3606
- Feature: Tu
3606
+ Feature: xu
3607
3607
  }
3608
3608
  }, fs = (t, e) => Math.abs(t - e);
3609
3609
  function wu(t, e) {
@@ -3620,8 +3620,8 @@ class fo {
3620
3620
  return;
3621
3621
  const { point: m } = f, { timestamp: P } = W;
3622
3622
  this.history.push({ ...m, timestamp: P });
3623
- const { onStart: b, onMove: x } = this.handlers;
3624
- d || (b && b(this.lastMoveEvent, f), this.startEvent = this.lastMoveEvent), x && x(this.lastMoveEvent, f);
3623
+ const { onStart: b, onMove: T } = this.handlers;
3624
+ d || (b && b(this.lastMoveEvent, f), this.startEvent = this.lastMoveEvent), T && T(this.lastMoveEvent, f);
3625
3625
  }, this.handlePointerMove = (f, d) => {
3626
3626
  this.lastMoveEvent = f, this.lastMoveEventInfo = fn(d, this.transformPagePoint), M.update(this.updatePoint, !0);
3627
3627
  }, this.handlePointerUp = (f, d) => {
@@ -3737,7 +3737,7 @@ function Fu(t, e) {
3737
3737
  function Ou(t, e) {
3738
3738
  let n = 0.5;
3739
3739
  const i = J(t), s = J(e);
3740
- return s > i ? n = ce(e.min, e.max - i, t.min) : i > s && (n = ce(t.min, t.max - s, e.min)), xt(0, 1, n);
3740
+ return s > i ? n = ce(e.min, e.max - i, t.min) : i > s && (n = ce(t.min, t.max - s, e.min)), Tt(0, 1, n);
3741
3741
  }
3742
3742
  function ju(t, e) {
3743
3743
  const n = {};
@@ -3759,17 +3759,17 @@ function vs(t, e, n) {
3759
3759
  function Ps(t, e) {
3760
3760
  return typeof t == "number" ? t : t[e] || 0;
3761
3761
  }
3762
- const xs = () => ({
3762
+ const Ts = () => ({
3763
3763
  translate: 0,
3764
3764
  scale: 1,
3765
3765
  origin: 0,
3766
3766
  originPoint: 0
3767
3767
  }), Nt = () => ({
3768
- x: xs(),
3769
- y: xs()
3770
- }), Ts = () => ({ min: 0, max: 0 }), I = () => ({
3771
3768
  x: Ts(),
3772
3769
  y: Ts()
3770
+ }), xs = () => ({ min: 0, max: 0 }), I = () => ({
3771
+ x: xs(),
3772
+ y: xs()
3773
3773
  });
3774
3774
  function nt(t) {
3775
3775
  return [t("x"), t("y")];
@@ -3856,7 +3856,7 @@ function Uu(t, e, n) {
3856
3856
  const i = Po(t, n), { scroll: s } = e;
3857
3857
  return s && (Ut(i.x, s.offset.x), Ut(i.y, s.offset.y)), i;
3858
3858
  }
3859
- const xo = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Wu = /* @__PURE__ */ new WeakMap();
3859
+ const To = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Wu = /* @__PURE__ */ new WeakMap();
3860
3860
  class $u {
3861
3861
  constructor(e) {
3862
3862
  this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = I(), this.visualElement = e;
@@ -3873,16 +3873,16 @@ class $u {
3873
3873
  const { drag: p, dragPropagation: m, onDragStart: P } = this.getProps();
3874
3874
  if (p && !m && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = Rr(p), !this.openGlobalLock))
3875
3875
  return;
3876
- this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), nt((x) => {
3877
- let y = this.getAxisMotionValue(x).get() || 0;
3876
+ this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), nt((T) => {
3877
+ let y = this.getAxisMotionValue(T).get() || 0;
3878
3878
  if (at.test(y)) {
3879
3879
  const { projection: v } = this.visualElement;
3880
3880
  if (v && v.layout) {
3881
- const w = v.layout.layoutBox[x];
3881
+ const w = v.layout.layoutBox[T];
3882
3882
  w && (y = J(w) * (parseFloat(y) / 100));
3883
3883
  }
3884
3884
  }
3885
- this.originPoint[x] = y;
3885
+ this.originPoint[T] = y;
3886
3886
  }), P && M.postRender(() => P(u, f)), (d = this.removeWillChange) === null || d === void 0 || d.call(this), this.removeWillChange = Rn(this.visualElement, "transform");
3887
3887
  const { animationState: b } = this.visualElement;
3888
3888
  b && b.setActive("whileDrag", !0);
@@ -3909,7 +3909,7 @@ class $u {
3909
3909
  }, {
3910
3910
  transformPagePoint: this.visualElement.getTransformPagePoint(),
3911
3911
  dragSnapToOrigin: c,
3912
- contextWindow: xo(this.visualElement)
3912
+ contextWindow: To(this.visualElement)
3913
3913
  });
3914
3914
  }
3915
3915
  stop(e, n) {
@@ -4114,7 +4114,7 @@ class Hu extends wt {
4114
4114
  onPointerDown(e) {
4115
4115
  this.session = new fo(e, this.createPanHandlers(), {
4116
4116
  transformPagePoint: this.node.getTransformPagePoint(),
4117
- contextWindow: xo(this.node)
4117
+ contextWindow: To(this.node)
4118
4118
  });
4119
4119
  }
4120
4120
  createPanHandlers() {
@@ -4176,10 +4176,10 @@ const Zt = {
4176
4176
  }
4177
4177
  }, Yu = {
4178
4178
  correct: (t, { treeScale: e, projectionDelta: n }) => {
4179
- const i = t, s = Tt.parse(t);
4179
+ const i = t, s = xt.parse(t);
4180
4180
  if (s.length > 5)
4181
4181
  return i;
4182
- const o = Tt.createTransformer(t), r = typeof s[0] != "number" ? 1 : 0, a = n.x.scale * e.x, l = n.y.scale * e.y;
4182
+ const o = xt.createTransformer(t), r = typeof s[0] != "number" ? 1 : 0, a = n.x.scale * e.x, l = n.y.scale * e.y;
4183
4183
  s[0 + r] /= a, s[1 + r] /= l;
4184
4184
  const c = O(a, l, 0.5);
4185
4185
  return typeof s[2 + r] == "number" && (s[2 + r] /= c), typeof s[3 + r] == "number" && (s[3 + r] /= c), o(s);
@@ -4225,7 +4225,7 @@ class Xu extends la {
4225
4225
  return null;
4226
4226
  }
4227
4227
  }
4228
- function To(t) {
4228
+ function xo(t) {
4229
4229
  const [e, n] = zu(), i = $($n);
4230
4230
  return F.jsx(Xu, { ...t, layoutGroup: i, switchLayoutGroup: $(cr), isPresent: e, safeToRemove: n });
4231
4231
  }
@@ -4469,13 +4469,13 @@ function Eo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4469
4469
  this.target = void 0, this.relativeTarget = void 0;
4470
4470
  return;
4471
4471
  }
4472
- const P = this.options.transition || u.getDefaultTransition() || Rf, { onLayoutAnimationStart: b, onLayoutAnimationComplete: x } = u.getProps(), y = !this.targetLayout || !Co(this.targetLayout, m) || p, v = !d && p;
4472
+ const P = this.options.transition || u.getDefaultTransition() || Rf, { onLayoutAnimationStart: b, onLayoutAnimationComplete: T } = u.getProps(), y = !this.targetLayout || !Co(this.targetLayout, m) || p, v = !d && p;
4473
4473
  if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || v || d && (y || !this.currentAnimation)) {
4474
4474
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(f, v);
4475
4475
  const w = {
4476
4476
  ...ei(P, "layout"),
4477
4477
  onPlay: b,
4478
- onComplete: x
4478
+ onComplete: T
4479
4479
  };
4480
4480
  (u.shouldReduceMotion || this.options.layoutRoot) && (w.delay = 0, w.type = !1), this.startAnimation(w);
4481
4481
  } else
@@ -4532,9 +4532,9 @@ function Eo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4532
4532
  this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach($s);
4533
4533
  return;
4534
4534
  }
4535
- this.isUpdating || this.nodes.forEach(xf), this.isUpdating = !1, this.nodes.forEach(Tf), this.nodes.forEach(mf), this.nodes.forEach(gf), this.clearAllSnapshots();
4535
+ this.isUpdating || this.nodes.forEach(Tf), this.isUpdating = !1, this.nodes.forEach(xf), this.nodes.forEach(mf), this.nodes.forEach(gf), this.clearAllSnapshots();
4536
4536
  const a = Pt.now();
4537
- W.delta = xt(0, 1e3 / 60, a - W.timestamp), W.timestamp = a, W.isProcessing = !0, sn.update.process(W), sn.preRender.process(W), sn.render.process(W), W.isProcessing = !1;
4537
+ W.delta = Tt(0, 1e3 / 60, a - W.timestamp), W.timestamp = a, W.isProcessing = !0, sn.update.process(W), sn.preRender.process(W), sn.render.process(W), W.isProcessing = !1;
4538
4538
  }
4539
4539
  didUpdate() {
4540
4540
  this.updateScheduled || (this.updateScheduled = !0, Nn.read(this.scheduleUpdate));
@@ -4730,12 +4730,12 @@ function Eo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4730
4730
  setAnimationOrigin(r, a = !1) {
4731
4731
  const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, f = Nt();
4732
4732
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
4733
- const d = I(), p = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, P = p !== m, b = this.getStack(), x = !b || b.members.length <= 1, y = !!(P && !x && this.options.crossfade === !0 && !this.path.some(Ef));
4733
+ const d = I(), p = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, P = p !== m, b = this.getStack(), T = !b || b.members.length <= 1, y = !!(P && !T && this.options.crossfade === !0 && !this.path.some(Ef));
4734
4734
  this.animationProgress = 0;
4735
4735
  let v;
4736
4736
  this.mixTargetDelta = (w) => {
4737
4737
  const A = w / 1e3;
4738
- Gs(f.x, r.x, A), Gs(f.y, r.y, A), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (se(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Af(this.relativeTarget, this.relativeTargetOrigin, d, A), v && rf(this.relativeTarget, v) && (this.isProjectionDirty = !1), v || (v = I()), et(v, this.relativeTarget)), P && (this.animationValues = u, Ju(u, c, this.latestValues, A, y, x)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = A;
4738
+ Gs(f.x, r.x, A), Gs(f.y, r.y, A), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (se(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Af(this.relativeTarget, this.relativeTargetOrigin, d, A), v && rf(this.relativeTarget, v) && (this.isProjectionDirty = !1), v || (v = I()), et(v, this.relativeTarget)), P && (this.animationValues = u, Ju(u, c, this.latestValues, A, y, T)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = A;
4739
4739
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
4740
4740
  }
4741
4741
  startAnimation(r) {
@@ -4848,11 +4848,11 @@ function Eo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4848
4848
  for (const P in Le) {
4849
4849
  if (d[P] === void 0)
4850
4850
  continue;
4851
- const { correct: b, applyTo: x } = Le[P], y = c.transform === "none" ? d[P] : b(d[P], f);
4852
- if (x) {
4853
- const v = x.length;
4851
+ const { correct: b, applyTo: T } = Le[P], y = c.transform === "none" ? d[P] : b(d[P], f);
4852
+ if (T) {
4853
+ const v = T.length;
4854
4854
  for (let w = 0; w < v; w++)
4855
- c[x[w]] = y;
4855
+ c[T[w]] = y;
4856
4856
  } else
4857
4857
  c[P] = y;
4858
4858
  }
@@ -4929,10 +4929,10 @@ function Pf(t) {
4929
4929
  function $s(t) {
4930
4930
  t.clearMeasurements();
4931
4931
  }
4932
- function xf(t) {
4932
+ function Tf(t) {
4933
4933
  t.isLayoutDirty = !1;
4934
4934
  }
4935
- function Tf(t) {
4935
+ function xf(t) {
4936
4936
  const { visualElement: e } = t.options;
4937
4937
  e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
4938
4938
  }
@@ -5012,7 +5012,7 @@ const Mf = Eo({
5012
5012
  drag: {
5013
5013
  Feature: Gu,
5014
5014
  ProjectionNode: Vo,
5015
- MeasureLayout: To
5015
+ MeasureLayout: xo
5016
5016
  }
5017
5017
  }, Ln = { current: null }, Do = { current: !1 };
5018
5018
  function Lf() {
@@ -5043,7 +5043,7 @@ function Ff(t, e, n) {
5043
5043
  e[i] === void 0 && t.removeValue(i);
5044
5044
  return e;
5045
5045
  }
5046
- const qs = /* @__PURE__ */ new WeakMap(), Of = [...jr, H, Tt], jf = (t) => Of.find(Or(t)), Zs = [
5046
+ const qs = /* @__PURE__ */ new WeakMap(), Of = [...jr, H, xt], jf = (t) => Of.find(Or(t)), Zs = [
5047
5047
  "AnimationStart",
5048
5048
  "AnimationComplete",
5049
5049
  "Update",
@@ -5223,7 +5223,7 @@ class Bf {
5223
5223
  readValue(e, n) {
5224
5224
  var i;
5225
5225
  let s = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : (i = this.getBaseTargetFromProps(this.props, e)) !== null && i !== void 0 ? i : this.readValueFromInstance(this.current, e, this.options);
5226
- return s != null && (typeof s == "string" && (Lr(s) || kr(s)) ? s = parseFloat(s) : !jf(s) && Tt.test(n) && (s = Kr(e, n)), this.setBaseTarget(e, z(s) ? s.get() : s)), z(s) ? s.get() : s;
5226
+ return s != null && (typeof s == "string" && (Lr(s) || kr(s)) ? s = parseFloat(s) : !jf(s) && xt.test(n) && (s = Kr(e, n)), this.setBaseTarget(e, z(s) ? s.get() : s)), z(s) ? s.get() : s;
5227
5227
  }
5228
5228
  /**
5229
5229
  * Set the base target to later animate back to. This is currently
@@ -5315,7 +5315,7 @@ class Uf extends Mo {
5315
5315
  const i = si(n);
5316
5316
  return i && i.default || 0;
5317
5317
  }
5318
- return n = xr.has(n) ? n : Ue(n), e.getAttribute(n);
5318
+ return n = Tr.has(n) ? n : Ue(n), e.getAttribute(n);
5319
5319
  }
5320
5320
  scrapeMotionValuesFromProps(e, n, i) {
5321
5321
  return br(e, n, i);
@@ -5324,7 +5324,7 @@ class Uf extends Mo {
5324
5324
  qn(e, n, this.isSVGTag, i.transformTemplate);
5325
5325
  }
5326
5326
  renderInstance(e, n, i, s) {
5327
- Tr(e, n, i, s);
5327
+ xr(e, n, i, s);
5328
5328
  }
5329
5329
  mount(e) {
5330
5330
  this.isSVGTag = Zn(e.tagName), super.mount(e);
@@ -5335,7 +5335,7 @@ const Wf = (t, e) => Kn(t) ? new Uf(e) : new Nf(e, {
5335
5335
  }), $f = {
5336
5336
  layout: {
5337
5337
  ProjectionNode: Vo,
5338
- MeasureLayout: To
5338
+ MeasureLayout: xo
5339
5339
  }
5340
5340
  }, Kf = {
5341
5341
  ...bu,
@@ -5447,7 +5447,7 @@ const qf = ({ children: t, exitBeforeEnter: e, custom: n, initial: i = !0, onExi
5447
5447
  return;
5448
5448
  }
5449
5449
  process.env.NODE_ENV !== "production" && r === "wait" && m.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
5450
- const { forceRender: x } = $($n);
5450
+ const { forceRender: T } = $($n);
5451
5451
  return F.jsx(F.Fragment, { children: m.map((y) => {
5452
5452
  const v = Ce(y), w = a === m || l.includes(v), A = () => {
5453
5453
  if (f.has(v))
@@ -5457,7 +5457,7 @@ const qf = ({ children: t, exitBeforeEnter: e, custom: n, initial: i = !0, onExi
5457
5457
  let L = !0;
5458
5458
  f.forEach((q) => {
5459
5459
  q || (L = !1);
5460
- }), L && (x == null || x(), P(u.current), s && s());
5460
+ }), L && (T == null || T(), P(u.current), s && s());
5461
5461
  };
5462
5462
  return F.jsx(Yf, { isPresent: w, initial: !c.current || i ? void 0 : !1, custom: w ? void 0 : n, presenceAffectsLayout: o, mode: r, onExitComplete: w ? void 0 : A, children: y }, v);
5463
5463
  }) });
@@ -5548,7 +5548,7 @@ function fh(t) {
5548
5548
  let e = t.parentElement;
5549
5549
  for (; e; ) {
5550
5550
  const { overflowY: n, position: i } = window.getComputedStyle(e);
5551
- if (i === "fixed" || (n === "auto" || n === "scroll") && e.scrollHeight > e.clientHeight)
5551
+ if ((n === "auto" || n === "scroll") && e.scrollHeight > e.clientHeight)
5552
5552
  return Ae.set(t, e), e;
5553
5553
  e = e.parentElement;
5554
5554
  }
@@ -5561,9 +5561,9 @@ const hh = (t, e, n) => {
5561
5561
  return;
5562
5562
  const o = s.getBoundingClientRect(), r = i.getBoundingClientRect(), a = window.innerHeight, l = window.innerWidth, c = window.pageYOffset || document.documentElement.scrollTop, u = window.pageXOffset || document.documentElement.scrollLeft, f = 8, d = r.top - f, p = a - r.bottom - f;
5563
5563
  let m = p >= d ? lt.bottom : lt.top, P = m === lt.bottom ? p : d;
5564
- const b = o.width, x = r.left + b < l, y = r.right - b > 0;
5564
+ const b = o.width, T = r.left + b < l, y = r.right - b > 0;
5565
5565
  let v = Jt.left;
5566
- !x && y ? v = Jt.right : !x && !y && (v = Jt.left), n(m), s.style.top = m === lt.bottom ? `${r.bottom + c}px` : `${r.top + c - P}px`, s.style.left = v === Jt.left ? `${r.left + u}px` : `${r.right + u - b}px`, s.style.minWidth = `${r.width}px`, s.style.height = `${P}px`, s.style.transformOrigin = m === lt.bottom ? "top" : "bottom", s.style.flexDirection = m === lt.bottom ? "column" : "column-reverse";
5566
+ !T && y ? v = Jt.right : !T && !y && (v = Jt.left), n(m), s.style.top = m === lt.bottom ? `${r.bottom + c}px` : `${r.top + c - P}px`, s.style.left = v === Jt.left ? `${r.left + u}px` : `${r.right + u - b}px`, s.style.minWidth = `${r.width}px`, s.style.height = `${P}px`, s.style.transformOrigin = m === lt.bottom ? "top" : "bottom", s.style.flexDirection = m === lt.bottom ? "column" : "column-reverse";
5567
5567
  }, dh = {
5568
5568
  variants: {
5569
5569
  initial: { position: "absolute", zIndex: 999, opacity: 0, transition: { type: "spring" } },
@@ -5581,27 +5581,29 @@ const hh = (t, e, n) => {
5581
5581
  }
5582
5582
  }, ph = ({
5583
5583
  children: t,
5584
- anchorRef: e
5585
- }, n) => {
5586
- const i = it(null), s = ya(), o = rt(() => {
5587
- hh(e, i, s.setVertical);
5588
- }, [s.setVertical]);
5584
+ isDebug: e = !1,
5585
+ anchorRef: n
5586
+ }, i) => {
5587
+ const s = it(null), o = ya(), r = rt(() => {
5588
+ hh(n, s, o.setVertical);
5589
+ }, [o.setVertical]);
5589
5590
  return ot(() => {
5590
- if (e.current && i.current) {
5591
- const r = fh(e.current);
5592
- return r && (r.addEventListener("scroll", o), window.addEventListener("resize", o)), window.requestAnimationFrame(() => {
5593
- i.current && (i.current.style.display = "flex", o());
5591
+ if (n.current && s.current) {
5592
+ const a = fh(n.current);
5593
+ return a && (a.addEventListener("scroll", r), window.addEventListener("resize", r)), window.requestAnimationFrame(() => {
5594
+ s.current && (s.current.style.display = "flex", r());
5594
5595
  }), () => {
5595
- r && (r.removeEventListener("scroll", o), window.removeEventListener("resize", o));
5596
+ a && (a.removeEventListener("scroll", r), window.removeEventListener("resize", r));
5596
5597
  };
5597
5598
  }
5598
- }, [s.isVisible]), /* @__PURE__ */ F.jsx(F.Fragment, { children: /* @__PURE__ */ F.jsx(
5599
+ }, [o.isVisible]), /* @__PURE__ */ F.jsx(F.Fragment, { children: /* @__PURE__ */ F.jsx(
5599
5600
  Gf.div,
5600
5601
  {
5601
- ref: ko(n, i),
5602
+ ref: ko(i, s),
5602
5603
  transition: { type: "spring", duration: 0.2 },
5603
5604
  style: { display: "none" },
5604
5605
  className: uh.motionAnimationWrapper,
5606
+ "data-debug": e ? "" : void 0,
5605
5607
  variants: dh.variants,
5606
5608
  initial: "initial",
5607
5609
  animate: "show",
@@ -5610,10 +5612,10 @@ const hh = (t, e, n) => {
5610
5612
  }
5611
5613
  ) });
5612
5614
  }, mh = ke(ph);
5613
- function Th(t, e, n) {
5615
+ function xh(t, e, n) {
5614
5616
  const i = ke(t);
5615
5617
  return ke((o, r) => {
5616
- const [a, l] = _t(!1), [c, u] = _t(!1), [f, d] = _t(lt.bottom), [p, m] = _t(), P = it(null), b = it(null), x = it(null), y = it(p), v = (n == null ? void 0 : n.isEnableClickOutSiteHidden) !== !1, w = (n == null ? void 0 : n.isEnableHideSave) !== !1;
5618
+ const [a, l] = _t(!1), [c, u] = _t(!1), [f, d] = _t(lt.bottom), [p, m] = _t(), P = it(null), b = it(null), T = it(null), y = it(p), v = (n == null ? void 0 : n.isEnableClickOutSiteHidden) !== !1, w = (n == null ? void 0 : n.isEnableHideSave) !== !1;
5617
5619
  ot(() => {
5618
5620
  m(o.value);
5619
5621
  }, [JSON.stringify(o.value)]), ot(() => {
@@ -5626,11 +5628,11 @@ function Th(t, e, n) {
5626
5628
  }, []), L = rt((j) => {
5627
5629
  l(!0);
5628
5630
  }, []), q = rt((j) => {
5629
- !P.current && x.current && !x.current.contains(j.target) && u(!1);
5631
+ !P.current && T.current && !T.current.contains(j.target) && u(!1);
5630
5632
  }, []), E = rt((j) => {
5631
5633
  var Y;
5632
5634
  const gt = (Y = P.current) == null ? void 0 : Y.firstChild;
5633
- gt && !gt.contains(j.target) && x.current && !x.current.contains(j.target) && (l(!1), u(!1));
5635
+ gt && !gt.contains(j.target) && T.current && !T.current.contains(j.target) && (l(!1), u(!1));
5634
5636
  }, []), U = rt(() => {
5635
5637
  if (typeof (o == null ? void 0 : o.onChange) > "u") {
5636
5638
  yt.warning("@acrool/react-picker", "createPicker component props onChange is undefined, is no call");
@@ -5657,7 +5659,7 @@ function Th(t, e, n) {
5657
5659
  setVertical: d
5658
5660
  },
5659
5661
  children: /* @__PURE__ */ F.jsxs("div", { className: yn.root, onKeyDown: G, children: [
5660
- /* @__PURE__ */ F.jsx("div", { ref: x, className: yn.mainEl, children: /* @__PURE__ */ F.jsx(
5662
+ /* @__PURE__ */ F.jsx("div", { ref: T, className: yn.mainEl, children: /* @__PURE__ */ F.jsx(
5661
5663
  i,
5662
5664
  {
5663
5665
  ...o,
@@ -5673,7 +5675,8 @@ function Th(t, e, n) {
5673
5675
  mh,
5674
5676
  {
5675
5677
  ref: P,
5676
- anchorRef: x,
5678
+ anchorRef: T,
5679
+ isDebug: n == null ? void 0 : n.isDebug,
5677
5680
  children: /* @__PURE__ */ F.jsx(e, { ...o })
5678
5681
  }
5679
5682
  )
@@ -5714,6 +5717,6 @@ export {
5714
5717
  lt as EVertical,
5715
5718
  vh as PickerProviderConsumer,
5716
5719
  _n as PickerProviderContext,
5717
- Th as createPicker,
5720
+ xh as createPicker,
5718
5721
  ya as usePicker
5719
5722
  };
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .acrool-react-picker__root *,.acrool-react-picker__root *:before,.acrool-react-picker__root *:after{box-sizing:border-box;-webkit-box-sizing:border-box;line-height:normal}.acrool-react-picker__root{position:relative;width:100%}.acrool-react-picker__main-el,.acrool-react-picker__picker-el{display:contents}.acrool-react-picker__motion-animation-wrapper{z-index:1;align-items:flex-start}
1
+ .acrool-react-picker__root *,.acrool-react-picker__root *:before,.acrool-react-picker__root *:after{box-sizing:border-box;-webkit-box-sizing:border-box;line-height:normal}.acrool-react-picker__root{position:relative;width:100%}.acrool-react-picker__main-el,.acrool-react-picker__picker-el{display:contents}.acrool-react-picker__motion-animation-wrapper{z-index:1;align-items:flex-start}.acrool-react-picker__motion-animation-wrapper[data-debug]{background:rgba(255,0,0,.3)}
package/dist/types.d.ts CHANGED
@@ -22,5 +22,6 @@ export interface IValueChange<T = string> {
22
22
  export interface IPickerOption {
23
23
  isEnableHideSave?: boolean;
24
24
  isEnableClickOutSiteHidden?: boolean;
25
+ isDebug?: boolean;
25
26
  }
26
27
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acrool/react-picker",
3
- "version": "0.1.0-alpha.1",
3
+ "version": "0.1.0-alpha.2",
4
4
  "description": "This is a react method to quickly combine buttons with Picker",
5
5
  "keywords": [
6
6
  "acrool",