@thecb/components 11.0.1 → 11.0.2-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -228,58 +228,6 @@ function __rest(s, e) {
228
228
  t[p[i]] = s[p[i]];
229
229
  }
230
230
  return t;
231
- }
232
-
233
- /*! *****************************************************************************
234
- Copyright (c) Microsoft Corporation.
235
-
236
- Permission to use, copy, modify, and/or distribute this software for any
237
- purpose with or without fee is hereby granted.
238
-
239
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
240
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
241
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
242
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
243
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
244
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
245
- PERFORMANCE OF THIS SOFTWARE.
246
- ***************************************************************************** */
247
- /* global Reflect, Promise */
248
-
249
- var extendStatics$1 = function(d, b) {
250
- extendStatics$1 = Object.setPrototypeOf ||
251
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
252
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
253
- return extendStatics$1(d, b);
254
- };
255
-
256
- function __extends$1(d, b) {
257
- extendStatics$1(d, b);
258
- function __() { this.constructor = d; }
259
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
260
- }
261
-
262
- var __assign$1 = function() {
263
- __assign$1 = Object.assign || function __assign(t) {
264
- for (var s, i = 1, n = arguments.length; i < n; i++) {
265
- s = arguments[i];
266
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
267
- }
268
- return t;
269
- };
270
- return __assign$1.apply(this, arguments);
271
- };
272
-
273
- function __rest$1(s, e) {
274
- var t = {};
275
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
276
- t[p] = s[p];
277
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
278
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
279
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
280
- t[p[i]] = s[p[i]];
281
- }
282
- return t;
283
231
  }
284
232
 
285
233
  function __spreadArrays() {
@@ -290,32 +238,6 @@ function __spreadArrays() {
290
238
  return r;
291
239
  }
292
240
 
293
- /*! *****************************************************************************
294
- Copyright (c) Microsoft Corporation.
295
-
296
- Permission to use, copy, modify, and/or distribute this software for any
297
- purpose with or without fee is hereby granted.
298
-
299
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
300
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
301
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
302
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
303
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
304
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
305
- PERFORMANCE OF THIS SOFTWARE.
306
- ***************************************************************************** */
307
-
308
- var __assign$2 = function() {
309
- __assign$2 = Object.assign || function __assign(t) {
310
- for (var s, i = 1, n = arguments.length; i < n; i++) {
311
- s = arguments[i];
312
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
313
- }
314
- return t;
315
- };
316
- return __assign$2.apply(this, arguments);
317
- };
318
-
319
241
  var clamp = function (min, max) { return function (v) {
320
242
  return Math.max(Math.min(v, max), min);
321
243
  }; };
@@ -329,8 +251,8 @@ var number = {
329
251
  parse: parseFloat,
330
252
  transform: function (v) { return v; }
331
253
  };
332
- var alpha = __assign$2(__assign$2({}, number), { transform: clamp(0, 1) });
333
- var scale = __assign$2(__assign$2({}, number), { default: 1 });
254
+ var alpha = __assign(__assign({}, number), { transform: clamp(0, 1) });
255
+ var scale = __assign(__assign({}, number), { default: 1 });
334
256
 
335
257
  var createUnitType = function (unit) { return ({
336
258
  test: function (v) {
@@ -344,7 +266,7 @@ var percent = createUnitType('%');
344
266
  var px = createUnitType('px');
345
267
  var vh = createUnitType('vh');
346
268
  var vw = createUnitType('vw');
347
- var progressPercentage = __assign$2(__assign$2({}, percent), { parse: function (v) { return percent.parse(v) / 100; }, transform: function (v) { return percent.transform(v * 100); } });
269
+ var progressPercentage = __assign(__assign({}, percent), { parse: function (v) { return percent.parse(v) / 100; }, transform: function (v) { return percent.transform(v * 100); } });
348
270
 
349
271
  var getValueFromFunctionString = function (value) {
350
272
  return value.substring(value.indexOf('(') + 1, value.lastIndexOf(')'));
@@ -378,7 +300,7 @@ var hslaTemplate = function (_a) {
378
300
  var hue = _a.hue, saturation = _a.saturation, lightness = _a.lightness, _b = _a.alpha, alpha = _b === void 0 ? 1 : _b;
379
301
  return "hsla(" + hue + ", " + saturation + ", " + lightness + ", " + alpha + ")";
380
302
  };
381
- var rgbUnit = __assign$2(__assign$2({}, number), { transform: function (v) { return Math.round(clampRgbUnit(v)); } });
303
+ var rgbUnit = __assign(__assign({}, number), { transform: function (v) { return Math.round(clampRgbUnit(v)); } });
382
304
  function isColorString(color, colorType) {
383
305
  return color.startsWith(colorType) && singleColorRegex.test(color);
384
306
  }
@@ -408,7 +330,7 @@ var hsla = {
408
330
  });
409
331
  }
410
332
  };
411
- var hex = __assign$2(__assign$2({}, rgba), { test: function (v) { return typeof v === 'string' && isColorString(v, '#'); }, parse: function (v) {
333
+ var hex = __assign(__assign({}, rgba), { test: function (v) { return typeof v === 'string' && isColorString(v, '#'); }, parse: function (v) {
412
334
  var r = '';
413
335
  var g = '';
414
336
  var b = '';
@@ -944,15 +866,15 @@ See the Apache Version 2.0 License for specific language governing permissions
944
866
  and limitations under the License.
945
867
  ***************************************************************************** */
946
868
 
947
- var __assign$3 = function() {
948
- __assign$3 = Object.assign || function __assign(t) {
869
+ var __assign$1 = function() {
870
+ __assign$1 = Object.assign || function __assign(t) {
949
871
  for (var s, i = 1, n = arguments.length; i < n; i++) {
950
872
  s = arguments[i];
951
873
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
952
874
  }
953
875
  return t;
954
876
  };
955
- return __assign$3.apply(this, arguments);
877
+ return __assign$1.apply(this, arguments);
956
878
  };
957
879
 
958
880
  var mixLinearColor = function (from, to, v) {
@@ -975,7 +897,7 @@ var mixColor = (function (from, to) {
975
897
  invariant(fromColorType.transform === toColorType.transform, 'Both colors must be hex/RGBA, OR both must be HSLA.');
976
898
  var fromColor = fromColorType.parse(from);
977
899
  var toColor = toColorType.parse(to);
978
- var blended = __assign$3({}, fromColor);
900
+ var blended = __assign$1({}, fromColor);
979
901
  var mixFunc = fromColorType === hsla ? mix : mixLinearColor;
980
902
  return function (v) {
981
903
  for (var key in blended) {
@@ -1020,7 +942,7 @@ var mixArray = function (from, to) {
1020
942
  };
1021
943
  };
1022
944
  var mixObject = function (origin, target) {
1023
- var output = __assign$3({}, origin, target);
945
+ var output = __assign$1({}, origin, target);
1024
946
  var blendValue = {};
1025
947
  for (var key in output) {
1026
948
  if (origin[key] !== undefined && target[key] !== undefined) {
@@ -1232,44 +1154,6 @@ var wrap$1 = curryRange(wrap);
1232
1154
 
1233
1155
  var clampProgress = clamp$1$1(0, 1);
1234
1156
 
1235
- /*! *****************************************************************************
1236
- Copyright (c) Microsoft Corporation.
1237
-
1238
- Permission to use, copy, modify, and/or distribute this software for any
1239
- purpose with or without fee is hereby granted.
1240
-
1241
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1242
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1243
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1244
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1245
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1246
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1247
- PERFORMANCE OF THIS SOFTWARE.
1248
- ***************************************************************************** */
1249
-
1250
- var __assign$4 = function() {
1251
- __assign$4 = Object.assign || function __assign(t) {
1252
- for (var s, i = 1, n = arguments.length; i < n; i++) {
1253
- s = arguments[i];
1254
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
1255
- }
1256
- return t;
1257
- };
1258
- return __assign$4.apply(this, arguments);
1259
- };
1260
-
1261
- function __rest$2(s, e) {
1262
- var t = {};
1263
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
1264
- t[p] = s[p];
1265
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
1266
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1267
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
1268
- t[p[i]] = s[p[i]];
1269
- }
1270
- return t;
1271
- }
1272
-
1273
1157
  var createStyler = function (_a) {
1274
1158
  var onRead = _a.onRead,
1275
1159
  onRender = _a.onRender,
@@ -1281,7 +1165,7 @@ var createStyler = function (_a) {
1281
1165
  if (_a === void 0) {
1282
1166
  _a = {};
1283
1167
  }
1284
- var props = __rest$2(_a, []);
1168
+ var props = __rest(_a, []);
1285
1169
  var state = {};
1286
1170
  var changedValues = [];
1287
1171
  var hasChanged = false;
@@ -1401,7 +1285,7 @@ function isTransformOriginProp(key) {
1401
1285
  return transformOriginProps.has(key);
1402
1286
  }
1403
1287
 
1404
- var int = /*#__PURE__*/__assign$4( /*#__PURE__*/__assign$4({}, number), { transform: Math.round });
1288
+ var int = /*#__PURE__*/__assign( /*#__PURE__*/__assign({}, number), { transform: Math.round });
1405
1289
  var valueTypes = {
1406
1290
  color: color,
1407
1291
  backgroundColor: color,
@@ -1633,8 +1517,8 @@ function createCssStyler(element, _a) {
1633
1517
  }
1634
1518
  var enableHardwareAcceleration = _a.enableHardwareAcceleration,
1635
1519
  allowTransformNone = _a.allowTransformNone,
1636
- props = __rest$2(_a, ["enableHardwareAcceleration", "allowTransformNone"]);
1637
- return cssStyler(__assign$4({ element: element, buildStyles: createStyleBuilder({
1520
+ props = __rest(_a, ["enableHardwareAcceleration", "allowTransformNone"]);
1521
+ return cssStyler(__assign({ element: element, buildStyles: createStyleBuilder({
1638
1522
  enableHardwareAcceleration: enableHardwareAcceleration,
1639
1523
  allowTransformNone: allowTransformNone
1640
1524
  }), preparseOutput: true }, props));
@@ -1684,7 +1568,7 @@ function buildSVGAttrs(_a, dimensions, totalPathLength, cssBuilder, attrs, isDas
1684
1568
  pathSpacing = _b === void 0 ? 1 : _b,
1685
1569
  _c = _a.pathOffset,
1686
1570
  pathOffset = _c === void 0 ? 0 : _c,
1687
- state = __rest$2(_a, ["attrX", "attrY", "originX", "originY", "pathLength", "pathSpacing", "pathOffset"]);
1571
+ state = __rest(_a, ["attrX", "attrY", "originX", "originY", "pathLength", "pathSpacing", "pathOffset"]);
1688
1572
  var style = cssBuilder(state);
1689
1573
  for (var key in style) {
1690
1574
  if (key === 'transform') {
@@ -1813,7 +1697,7 @@ var Chainable = /*#__PURE__*/function () {
1813
1697
  this.props = props;
1814
1698
  }
1815
1699
  Chainable.prototype.applyMiddleware = function (middleware) {
1816
- return this.create(__assign$1(__assign$1({}, this.props), { middleware: this.props.middleware ? __spreadArrays([middleware], this.props.middleware) : [middleware] }));
1700
+ return this.create(__assign(__assign({}, this.props), { middleware: this.props.middleware ? __spreadArrays([middleware], this.props.middleware) : [middleware] }));
1817
1701
  };
1818
1702
  Chainable.prototype.pipe = function () {
1819
1703
  var funcs = [];
@@ -1885,7 +1769,7 @@ var createObserver = function (observerCandidate, _a, onComplete) {
1885
1769
  };
1886
1770
 
1887
1771
  var Action = /*#__PURE__*/function (_super) {
1888
- __extends$1(Action, _super);
1772
+ __extends(Action, _super);
1889
1773
  function Action() {
1890
1774
  return _super !== null && _super.apply(this, arguments) || this;
1891
1775
  }
@@ -1904,13 +1788,13 @@ var Action = /*#__PURE__*/function (_super) {
1904
1788
  };
1905
1789
  var _a = this.props,
1906
1790
  init = _a.init,
1907
- observerProps = __rest$1(_a, ["init"]);
1791
+ observerProps = __rest(_a, ["init"]);
1908
1792
  var observer = createObserver(observerCandidate, observerProps, function () {
1909
1793
  isComplete = true;
1910
1794
  subscription.stop();
1911
1795
  });
1912
1796
  var api = init(observer);
1913
- subscription = api ? __assign$1(__assign$1({}, subscription), api) : subscription;
1797
+ subscription = api ? __assign(__assign({}, subscription), api) : subscription;
1914
1798
  if (observerCandidate.registerParent) {
1915
1799
  observerCandidate.registerParent(subscription);
1916
1800
  }
@@ -1924,7 +1808,7 @@ var action = function (init) {
1924
1808
  };
1925
1809
 
1926
1810
  var BaseMulticast = /*#__PURE__*/function (_super) {
1927
- __extends$1(BaseMulticast, _super);
1811
+ __extends(BaseMulticast, _super);
1928
1812
  function BaseMulticast() {
1929
1813
  var _this = _super !== null && _super.apply(this, arguments) || this;
1930
1814
  _this.subscribers = [];
@@ -1984,7 +1868,7 @@ var isSingleValue = function (v) {
1984
1868
  return typeOfV === 'string' || typeOfV === 'number';
1985
1869
  };
1986
1870
  var ValueReaction = /*#__PURE__*/function (_super) {
1987
- __extends$1(ValueReaction, _super);
1871
+ __extends(ValueReaction, _super);
1988
1872
  function ValueReaction(props) {
1989
1873
  var _this = _super.call(this, props) || this;
1990
1874
  _this.scheduleVelocityCheck = function () {
@@ -2234,7 +2118,7 @@ var reduceArrayValue = function (i) {
2234
2118
  var createArrayAction = function (action, props, vectorKeys) {
2235
2119
  var firstVectorKey = vectorKeys[0];
2236
2120
  var actionList = props[firstVectorKey].map(function (v, i) {
2237
- var childActionProps = vectorKeys.reduce(reduceArrayValue(i), __assign$1({}, props));
2121
+ var childActionProps = vectorKeys.reduce(reduceArrayValue(i), __assign({}, props));
2238
2122
  return getActionCreator(v)(action, childActionProps);
2239
2123
  });
2240
2124
  return parallel$1.apply(void 0, actionList);
@@ -2248,7 +2132,7 @@ var reduceObjectValue = function (key) {
2248
2132
  var createObjectAction = function (action, props, vectorKeys) {
2249
2133
  var firstVectorKey = vectorKeys[0];
2250
2134
  var actionMap = Object.keys(props[firstVectorKey]).reduce(function (map, key) {
2251
- var childActionProps = vectorKeys.reduce(reduceObjectValue(key), __assign$1({}, props));
2135
+ var childActionProps = vectorKeys.reduce(reduceObjectValue(key), __assign({}, props));
2252
2136
  map[key] = getActionCreator(props[firstVectorKey][key])(action, childActionProps);
2253
2137
  return map;
2254
2138
  }, {});
@@ -2257,18 +2141,18 @@ var createObjectAction = function (action, props, vectorKeys) {
2257
2141
  var createUnitAction = function (action, _a) {
2258
2142
  var from = _a.from,
2259
2143
  to = _a.to,
2260
- props = __rest$1(_a, ["from", "to"]);
2144
+ props = __rest(_a, ["from", "to"]);
2261
2145
  var unitType = findUnitType(from) || findUnitType(to);
2262
2146
  var transform = unitType.transform,
2263
2147
  parse = unitType.parse;
2264
- return action(__assign$1(__assign$1({}, props), { from: typeof from === 'string' ? parse(from) : from, to: typeof to === 'string' ? parse(to) : to })).pipe(transform);
2148
+ return action(__assign(__assign({}, props), { from: typeof from === 'string' ? parse(from) : from, to: typeof to === 'string' ? parse(to) : to })).pipe(transform);
2265
2149
  };
2266
2150
  var createMixerAction = function (mixer) {
2267
2151
  return function (action, _a) {
2268
2152
  var from = _a.from,
2269
2153
  to = _a.to,
2270
- props = __rest$1(_a, ["from", "to"]);
2271
- return action(__assign$1(__assign$1({}, props), { from: 0, to: 1 })).pipe(mixer(from, to));
2154
+ props = __rest(_a, ["from", "to"]);
2155
+ return action(__assign(__assign({}, props), { from: 0, to: 1 })).pipe(mixer(from, to));
2272
2156
  };
2273
2157
  };
2274
2158
  var createColorAction = /*#__PURE__*/createMixerAction(mixColor);
@@ -2614,7 +2498,7 @@ var keyframes = function (_a) {
2614
2498
  ease = _b === void 0 ? linear : _b,
2615
2499
  times = _a.times,
2616
2500
  values = _a.values,
2617
- tweenProps = __rest$1(_a, ["easings", "ease", "times", "values"]);
2501
+ tweenProps = __rest(_a, ["easings", "ease", "times", "values"]);
2618
2502
  easings = Array.isArray(easings) ? easings : defaultEasings(values, easings);
2619
2503
  times = times || defaultTimings(values);
2620
2504
  var scrubbers = easings.map(function (easing, i) {
@@ -2624,7 +2508,7 @@ var keyframes = function (_a) {
2624
2508
  ease: easing
2625
2509
  });
2626
2510
  });
2627
- return tween(__assign$1(__assign$1({}, tweenProps), { ease: ease })).applyMiddleware(function (update) {
2511
+ return tween(__assign(__assign({}, tweenProps), { ease: ease })).applyMiddleware(function (update) {
2628
2512
  return interpolateScrubbers(times, scrubbers, update);
2629
2513
  });
2630
2514
  };
@@ -2868,7 +2752,7 @@ var index$1 = function (_a) {
2868
2752
  }
2869
2753
  var x = _a.x,
2870
2754
  y = _a.y,
2871
- props = __rest$1(_a, ["x", "y"]);
2755
+ props = __rest(_a, ["x", "y"]);
2872
2756
  if (x !== undefined || y !== undefined) {
2873
2757
  var applyXOffset_1 = applyOffset(x || 0);
2874
2758
  var applyYOffset_1 = applyOffset(y || 0);
@@ -2942,7 +2826,7 @@ var steps$1 = function (st, min, max) {
2942
2826
  };
2943
2827
  var transformMap = function (childTransformers) {
2944
2828
  return function (v) {
2945
- var output = __assign$1({}, v);
2829
+ var output = __assign({}, v);
2946
2830
  for (var key in childTransformers) {
2947
2831
  if (childTransformers.hasOwnProperty(key)) {
2948
2832
  var childTransformer = childTransformers[key];
@@ -2973,52 +2857,6 @@ var transformers = /*#__PURE__*/Object.freeze({
2973
2857
  transformMap: transformMap
2974
2858
  });
2975
2859
 
2976
- /*! *****************************************************************************
2977
- Copyright (c) Microsoft Corporation.
2978
-
2979
- Permission to use, copy, modify, and/or distribute this software for any
2980
- purpose with or without fee is hereby granted.
2981
-
2982
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
2983
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
2984
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
2985
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2986
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
2987
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2988
- PERFORMANCE OF THIS SOFTWARE.
2989
- ***************************************************************************** */
2990
-
2991
- var __assign$5 = function() {
2992
- __assign$5 = Object.assign || function __assign(t) {
2993
- for (var s, i = 1, n = arguments.length; i < n; i++) {
2994
- s = arguments[i];
2995
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
2996
- }
2997
- return t;
2998
- };
2999
- return __assign$5.apply(this, arguments);
3000
- };
3001
-
3002
- function __rest$3(s, e) {
3003
- var t = {};
3004
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
3005
- t[p] = s[p];
3006
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
3007
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
3008
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
3009
- t[p[i]] = s[p[i]];
3010
- }
3011
- return t;
3012
- }
3013
-
3014
- function __spreadArrays$1() {
3015
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
3016
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
3017
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
3018
- r[k] = a[j];
3019
- return r;
3020
- }
3021
-
3022
2860
  var getPoseValues = function (_a) {
3023
2861
  var transition = _a.transition,
3024
2862
  flip = _a.flip,
@@ -3031,7 +2869,7 @@ var getPoseValues = function (_a) {
3031
2869
  preTransition = _a.preTransition,
3032
2870
  applyAtStart = _a.applyAtStart,
3033
2871
  applyAtEnd = _a.applyAtEnd,
3034
- props = __rest$3(_a, ["transition", "flip", "delay", "delayChildren", "staggerChildren", "staggerDirection", "afterChildren", "beforeChildren", "preTransition", "applyAtStart", "applyAtEnd"]);
2872
+ props = __rest(_a, ["transition", "flip", "delay", "delayChildren", "staggerChildren", "staggerDirection", "afterChildren", "beforeChildren", "preTransition", "applyAtStart", "applyAtEnd"]);
3035
2873
  return props;
3036
2874
  };
3037
2875
  var selectPoses = function (_a) {
@@ -3043,7 +2881,7 @@ var selectPoses = function (_a) {
3043
2881
  onChange = _a.onChange,
3044
2882
  passive = _a.passive,
3045
2883
  initialPose = _a.initialPose,
3046
- poses = __rest$3(_a, ["label", "props", "values", "parentValues", "ancestorValues", "onChange", "passive", "initialPose"]);
2884
+ poses = __rest(_a, ["label", "props", "values", "parentValues", "ancestorValues", "onChange", "passive", "initialPose"]);
3047
2885
  return poses;
3048
2886
  };
3049
2887
  var selectAllValues = function (values, selectValue) {
@@ -3143,7 +2981,7 @@ var createPoseSetter = function (setterProps) {
3143
2981
  var _a = nextProps.delay,
3144
2982
  delay = _a === void 0 ? 0 : _a;
3145
2983
  var hasChildren = children.size;
3146
- var baseTransitionProps = __assign$5(__assign$5({}, props), nextProps);
2984
+ var baseTransitionProps = __assign(__assign({}, props), nextProps);
3147
2985
  var nextPose = poses[next];
3148
2986
  var getChildAnimations = function () {
3149
2987
  return hasChildren && propagate ? startChildAnimations(children, next, nextPose, baseTransitionProps) : [];
@@ -3169,11 +3007,11 @@ var createPoseSetter = function (setterProps) {
3169
3007
  valuePoses.splice(insertionIndex, 0, next);
3170
3008
  return insertionIndex === 0 ? new Promise(function (complete) {
3171
3009
  var value = values.get(key);
3172
- var transitionProps = __assign$5(__assign$5({}, baseTransitionProps), { key: key,
3010
+ var transitionProps = __assign(__assign({}, baseTransitionProps), { key: key,
3173
3011
  value: value });
3174
3012
  var target = resolveTarget(value, resolveProp(nextPose[key], transitionProps));
3175
3013
  if (activeActions.has(key)) stopAction(activeActions.get(key));
3176
- var resolveTransitionProps = __assign$5(__assign$5({ to: target }, transitionProps), getTransitionProps(value, target, transitionProps));
3014
+ var resolveTransitionProps = __assign(__assign({ to: target }, transitionProps), getTransitionProps(value, target, transitionProps));
3177
3015
  var transition = resolveTransition(getTransition, key, value, resolveTransitionProps, convertTransitionDefinition, getInstantTransition);
3178
3016
  var poseDelay = delay || resolveProp(nextPose.delay, transitionProps);
3179
3017
  if (poseDelay) {
@@ -3197,7 +3035,7 @@ var createPoseSetter = function (setterProps) {
3197
3035
  });
3198
3036
  }
3199
3037
  }
3200
- return Promise.all(__spreadArrays$1(getParentAnimations(), getChildAnimations()));
3038
+ return Promise.all(__spreadArrays(getParentAnimations(), getChildAnimations()));
3201
3039
  };
3202
3040
  };
3203
3041
 
@@ -3323,7 +3161,7 @@ var createValueMap = function (props) {
3323
3161
  };
3324
3162
 
3325
3163
  var applyDefaultTransition = function (pose, key, defaultTransitions) {
3326
- return __assign$5(__assign$5({}, pose), { transition: defaultTransitions.has(key) ? defaultTransitions.get(key) : defaultTransitions.get('default') });
3164
+ return __assign(__assign({}, pose), { transition: defaultTransitions.has(key) ? defaultTransitions.get(key) : defaultTransitions.get('default') });
3327
3165
  };
3328
3166
  var generateTransitions = function (poses, defaultTransitions) {
3329
3167
  Object.keys(poses).forEach(function (key) {
@@ -3377,7 +3215,7 @@ var poseFactory = function (_a) {
3377
3215
  var poses = generateTransitions(selectPoses(config), defaultTransitions);
3378
3216
  var _b = config.props,
3379
3217
  props = _b === void 0 ? {} : _b;
3380
- if (getDefaultProps) props = __assign$5(__assign$5({}, getDefaultProps(config)), props);
3218
+ if (getDefaultProps) props = __assign(__assign({}, getDefaultProps(config)), props);
3381
3219
  var passive = config.passive,
3382
3220
  userSetValues = config.values,
3383
3221
  _c = config.initialPose,
@@ -3452,10 +3290,10 @@ var poseFactory = function (_a) {
3452
3290
  },
3453
3291
  has: has,
3454
3292
  setProps: function (newProps) {
3455
- return state.props = __assign$5(__assign$5({}, state.props), newProps);
3293
+ return state.props = __assign(__assign({}, state.props), newProps);
3456
3294
  },
3457
3295
  _addChild: function (childConfig, factory) {
3458
- var child = factory(__assign$5(__assign$5({ initialPose: initialPose }, childConfig), { ancestorValues: __spreadArrays$1([{ label: config.label, values: values }], ancestorValues) }));
3296
+ var child = factory(__assign(__assign({ initialPose: initialPose }, childConfig), { ancestorValues: __spreadArrays([{ label: config.label, values: values }], ancestorValues) }));
3459
3297
  children.add(child);
3460
3298
  return child;
3461
3299
  },
@@ -3494,18 +3332,18 @@ See the Apache Version 2.0 License for specific language governing permissions
3494
3332
  and limitations under the License.
3495
3333
  ***************************************************************************** */
3496
3334
 
3497
- var __assign$6 = function () {
3498
- __assign$6 = Object.assign || function __assign(t) {
3335
+ var __assign$2 = function () {
3336
+ __assign$2 = Object.assign || function __assign(t) {
3499
3337
  for (var s, i = 1, n = arguments.length; i < n; i++) {
3500
3338
  s = arguments[i];
3501
3339
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
3502
3340
  }
3503
3341
  return t;
3504
3342
  };
3505
- return __assign$6.apply(this, arguments);
3343
+ return __assign$2.apply(this, arguments);
3506
3344
  };
3507
3345
 
3508
- function __rest$4(s, e) {
3346
+ function __rest$1(s, e) {
3509
3347
  var t = {};
3510
3348
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
3511
3349
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -3622,12 +3460,12 @@ var intelligentTransition = {
3622
3460
  opacity: linearTween,
3623
3461
  default: tween
3624
3462
  };
3625
- var dragAction = /*#__PURE__*/__assign$6( /*#__PURE__*/__assign$6({}, intelligentTransition), { x: /*#__PURE__*/createPointer(pointerX, 'left', 'right', BoundingBoxDimension.width), y: /*#__PURE__*/createPointer(pointerY, 'top', 'bottom', BoundingBoxDimension.height) });
3463
+ var dragAction = /*#__PURE__*/__assign$2( /*#__PURE__*/__assign$2({}, intelligentTransition), { x: /*#__PURE__*/createPointer(pointerX, 'left', 'right', BoundingBoxDimension.width), y: /*#__PURE__*/createPointer(pointerY, 'top', 'bottom', BoundingBoxDimension.height) });
3626
3464
  var justAxis = function (_a) {
3627
3465
  var from = _a.from;
3628
3466
  return just(from);
3629
3467
  };
3630
- var intelligentDragEnd = /*#__PURE__*/__assign$6( /*#__PURE__*/__assign$6({}, intelligentTransition), { x: justAxis, y: justAxis });
3468
+ var intelligentDragEnd = /*#__PURE__*/__assign$2( /*#__PURE__*/__assign$2({}, intelligentTransition), { x: justAxis, y: justAxis });
3631
3469
  var defaultTransitions = /*#__PURE__*/new Map([['default', intelligentTransition], ['drag', dragAction], ['dragEnd', intelligentDragEnd]]);
3632
3470
 
3633
3471
  var animationLookup = {
@@ -3697,7 +3535,7 @@ var getAction = function (v, _a, _b) {
3697
3535
  var _c = _a.type,
3698
3536
  type = _c === void 0 ? 'tween' : _c,
3699
3537
  definedEase = _a.ease,
3700
- def = __rest$4(_a, ["type", "ease"]);
3538
+ def = __rest$1(_a, ["type", "ease"]);
3701
3539
  invariant(animationLookup[type] !== undefined, "Invalid transition type '" + type + "'. Valid transition types are: tween, spring, decay, physics and keyframes.");
3702
3540
  var ease;
3703
3541
  if (type === 'tween') {
@@ -3722,7 +3560,7 @@ var getAction = function (v, _a, _b) {
3722
3560
  velocity: velocity,
3723
3561
  ease: ease
3724
3562
  } : { ease: ease };
3725
- return animationLookup[type](__assign$6(__assign$6({}, baseProps), def));
3563
+ return animationLookup[type](__assign$2(__assign$2({}, baseProps), def));
3726
3564
  };
3727
3565
  var isAction = function (action$$1) {
3728
3566
  return typeof action$$1.start !== 'undefined';
@@ -3807,7 +3645,7 @@ var pose = function (_a) {
3807
3645
  min = def.min,
3808
3646
  max = def.max,
3809
3647
  round = def.round,
3810
- remainingDef = __rest$4(def, ["delay", "min", "max", "round"]);
3648
+ remainingDef = __rest$1(def, ["delay", "min", "max", "round"]);
3811
3649
  var action$$1 = getAction(val, remainingDef, props);
3812
3650
  var outputPipe = [];
3813
3651
  if (delay$$1) action$$1 = addActionDelay(delay$$1, action$$1);
@@ -3989,7 +3827,7 @@ var explicitlyFlipPose = function (state, nextPose) {
3989
3827
  bottom = nextPose.bottom,
3990
3828
  right = nextPose.right,
3991
3829
  position = nextPose.position,
3992
- remainingPose = __rest$4(nextPose, ["width", "height", "top", "left", "bottom", "right", "position"]);
3830
+ remainingPose = __rest$1(nextPose, ["width", "height", "top", "left", "bottom", "right", "position"]);
3993
3831
  var propsToSet = positionalProps.concat('position').reduce(function (acc, key) {
3994
3832
  if (nextPose[key] !== undefined) {
3995
3833
  acc[key] = resolveProp$1(nextPose[key], state.props);
@@ -4101,7 +3939,7 @@ var convertPositionalUnits = function (state, nextPose) {
4101
3939
  changedPositionalKeys.push(key);
4102
3940
  if (!applyAtEndHasBeenCopied) {
4103
3941
  applyAtEndHasBeenCopied = true;
4104
- nextPose.applyAtEnd = nextPose.applyAtEnd ? __assign$6({}, nextPose.applyAtEnd) : {};
3942
+ nextPose.applyAtEnd = nextPose.applyAtEnd ? __assign$2({}, nextPose.applyAtEnd) : {};
4105
3943
  }
4106
3944
  nextPose.applyAtEnd[key] = nextPose.applyAtEnd[key] || nextPose[key];
4107
3945
  setValue(state, key, to);
@@ -4157,8 +3995,8 @@ var createPoseConfig = function (element, _a) {
4157
3995
  focusable = _a.focusable,
4158
3996
  pressable = _a.pressable,
4159
3997
  dragBounds = _a.dragBounds,
4160
- config = __rest$4(_a, ["onDragStart", "onDragEnd", "onPressStart", "onPressEnd", "draggable", "hoverable", "focusable", "pressable", "dragBounds"]);
4161
- var poseConfig = __assign$6(__assign$6({ flip: {} }, config), { props: __assign$6(__assign$6({}, config.props), { onDragStart: onDragStart,
3998
+ config = __rest$1(_a, ["onDragStart", "onDragEnd", "onPressStart", "onPressEnd", "draggable", "hoverable", "focusable", "pressable", "dragBounds"]);
3999
+ var poseConfig = __assign$2(__assign$2({ flip: {} }, config), { props: __assign$2(__assign$2({}, config.props), { onDragStart: onDragStart,
4162
4000
  onDragEnd: onDragEnd,
4163
4001
  onPressStart: onPressStart,
4164
4002
  onPressEnd: onPressEnd,
@@ -4172,8 +4010,8 @@ var createPoseConfig = function (element, _a) {
4172
4010
  var _b = dragPoses(draggable),
4173
4011
  drag = _b.drag,
4174
4012
  dragEnd = _b.dragEnd;
4175
- poseConfig.drag = __assign$6(__assign$6({}, drag), poseConfig.drag);
4176
- poseConfig.dragEnd = __assign$6(__assign$6({}, dragEnd), poseConfig.dragEnd);
4013
+ poseConfig.drag = __assign$2(__assign$2({}, drag), poseConfig.drag);
4014
+ poseConfig.dragEnd = __assign$2(__assign$2({}, dragEnd), poseConfig.dragEnd);
4177
4015
  }
4178
4016
  return poseConfig;
4179
4017
  };
@@ -4181,7 +4019,7 @@ var domPose = /*#__PURE__*/pose({
4181
4019
  posePriority: ['drag', 'press', 'focus', 'hover'],
4182
4020
  transformPose: function (_a, name, state) {
4183
4021
  var flip = _a.flip,
4184
- pose$$1 = __rest$4(_a, ["flip"]);
4022
+ pose$$1 = __rest$1(_a, ["flip"]);
4185
4023
  if (isFlipPose(flip, name, state)) {
4186
4024
  return flipPose(state, pose$$1);
4187
4025
  } else if (isPositional(pose$$1)) {
@@ -4219,7 +4057,7 @@ var domPose = /*#__PURE__*/pose({
4219
4057
  var props = _a.props,
4220
4058
  activeActions = _a.activeActions;
4221
4059
  var measure = props.dimensions.measure;
4222
- var poserApi = __assign$6(__assign$6({}, api), { addChild: function (element, childConfig) {
4060
+ var poserApi = __assign$2(__assign$2({}, api), { addChild: function (element, childConfig) {
4223
4061
  return api._addChild(createPoseConfig(element, childConfig), domPose);
4224
4062
  }, measure: measure, flip: function (op) {
4225
4063
  if (op) {
@@ -7247,104 +7085,6 @@ var Imposter = function Imposter(_ref) {
7247
7085
  }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null)));
7248
7086
  };
7249
7087
 
7250
- /*! *****************************************************************************
7251
- Copyright (c) Microsoft Corporation.
7252
-
7253
- Permission to use, copy, modify, and/or distribute this software for any
7254
- purpose with or without fee is hereby granted.
7255
-
7256
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
7257
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
7258
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
7259
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
7260
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
7261
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
7262
- PERFORMANCE OF THIS SOFTWARE.
7263
- ***************************************************************************** */
7264
- /* global Reflect, Promise */
7265
-
7266
- var extendStatics$2 = function(d, b) {
7267
- extendStatics$2 = Object.setPrototypeOf ||
7268
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7269
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
7270
- return extendStatics$2(d, b);
7271
- };
7272
-
7273
- function __extends$2(d, b) {
7274
- extendStatics$2(d, b);
7275
- function __() { this.constructor = d; }
7276
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
7277
- }
7278
-
7279
- var __assign$7 = function() {
7280
- __assign$7 = Object.assign || function __assign(t) {
7281
- for (var s, i = 1, n = arguments.length; i < n; i++) {
7282
- s = arguments[i];
7283
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7284
- }
7285
- return t;
7286
- };
7287
- return __assign$7.apply(this, arguments);
7288
- };
7289
-
7290
- function __rest$5(s, e) {
7291
- var t = {};
7292
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
7293
- t[p] = s[p];
7294
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7295
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7296
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
7297
- t[p[i]] = s[p[i]];
7298
- }
7299
- return t;
7300
- }
7301
-
7302
- function __spreadArrays$2() {
7303
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
7304
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
7305
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
7306
- r[k] = a[j];
7307
- return r;
7308
- }
7309
-
7310
- /*! *****************************************************************************
7311
- Copyright (c) Microsoft Corporation.
7312
-
7313
- Permission to use, copy, modify, and/or distribute this software for any
7314
- purpose with or without fee is hereby granted.
7315
-
7316
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
7317
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
7318
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
7319
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
7320
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
7321
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
7322
- PERFORMANCE OF THIS SOFTWARE.
7323
- ***************************************************************************** */
7324
-
7325
- var __assign$8 = function() {
7326
- __assign$8 = Object.assign || function __assign(t) {
7327
- for (var s, i = 1, n = arguments.length; i < n; i++) {
7328
- s = arguments[i];
7329
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7330
- }
7331
- return t;
7332
- };
7333
- return __assign$8.apply(this, arguments);
7334
- };
7335
-
7336
- function __rest$6(s, e) {
7337
- var t = {};
7338
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
7339
- t[p] = s[p];
7340
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7341
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7342
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
7343
- t[p[i]] = s[p[i]];
7344
- }
7345
- return t;
7346
- }
7347
-
7348
7088
  var Observer$1 = /*#__PURE__*/function () {
7349
7089
  function Observer(_a, observer) {
7350
7090
  var _this = this;
@@ -7407,18 +7147,18 @@ var Action$1 = /*#__PURE__*/function () {
7407
7147
  };
7408
7148
  var _a = this.props,
7409
7149
  init = _a.init,
7410
- observerProps = __rest$6(_a, ["init"]);
7150
+ observerProps = __rest(_a, ["init"]);
7411
7151
  var observer = createObserver$1(observerCandidate, observerProps, function () {
7412
7152
  isComplete = true;
7413
7153
  subscription.stop();
7414
7154
  });
7415
7155
  var api = init(observer);
7416
- subscription = api ? __assign$8({}, subscription, api) : subscription;
7156
+ subscription = api ? __assign({}, subscription, api) : subscription;
7417
7157
  if (isComplete) subscription.stop();
7418
7158
  return subscription;
7419
7159
  };
7420
7160
  Action.prototype.applyMiddleware = function (middleware) {
7421
- return this.create(__assign$8({}, this.props, { middleware: this.props.middleware ? [middleware].concat(this.props.middleware) : [middleware] }));
7161
+ return this.create(__assign({}, this.props, { middleware: this.props.middleware ? [middleware].concat(this.props.middleware) : [middleware] }));
7422
7162
  };
7423
7163
  Action.prototype.pipe = function () {
7424
7164
  var funcs = [];
@@ -7471,18 +7211,18 @@ var createAction$1 = function (action, props) {
7471
7211
  var createUnitAction$1 = function (action, _a) {
7472
7212
  var from = _a.from,
7473
7213
  to = _a.to,
7474
- props = __rest$6(_a, ["from", "to"]);
7214
+ props = __rest(_a, ["from", "to"]);
7475
7215
  var unitType = findUnitType$1(from) || findUnitType$1(to);
7476
7216
  var transform = unitType.transform,
7477
7217
  parse = unitType.parse;
7478
- return action(__assign$8({}, props, { from: typeof from === 'string' ? parse(from) : from, to: typeof to === 'string' ? parse(to) : to })).pipe(transform);
7218
+ return action(__assign({}, props, { from: typeof from === 'string' ? parse(from) : from, to: typeof to === 'string' ? parse(to) : to })).pipe(transform);
7479
7219
  };
7480
7220
  var createMixerAction$1 = function (mixer) {
7481
7221
  return function (action, _a) {
7482
7222
  var from = _a.from,
7483
7223
  to = _a.to,
7484
- props = __rest$6(_a, ["from", "to"]);
7485
- return action(__assign$8({}, props, { from: 0, to: 1 })).pipe(mixer(from, to));
7224
+ props = __rest(_a, ["from", "to"]);
7225
+ return action(__assign({}, props, { from: 0, to: 1 })).pipe(mixer(from, to));
7486
7226
  };
7487
7227
  };
7488
7228
  var createColorAction$1 = /*#__PURE__*/createMixerAction$1(mixColor);
@@ -7695,7 +7435,7 @@ var inertia = function (_a) {
7695
7435
  };
7696
7436
  var startSpring = function (props) {
7697
7437
  isSpring = true;
7698
- startAnimation(vectorSpring$1(__assign$8({}, props, { to: isLessThanMin(props.from) ? min : max, stiffness: bounceStiffness, damping: bounceDamping, restDelta: restDelta })));
7438
+ startAnimation(vectorSpring$1(__assign({}, props, { to: isLessThanMin(props.from) ? min : max, stiffness: bounceStiffness, damping: bounceDamping, restDelta: restDelta })));
7699
7439
  };
7700
7440
  if (isOutOfBounds(from)) {
7701
7441
  startSpring({ from: from, velocity: velocity });
@@ -7927,7 +7667,7 @@ var keyframes$1 = function (_a) {
7927
7667
  ease = _b === void 0 ? linear : _b,
7928
7668
  times = _a.times,
7929
7669
  values = _a.values,
7930
- tweenProps = __rest$6(_a, ["easings", "ease", "times", "values"]);
7670
+ tweenProps = __rest(_a, ["easings", "ease", "times", "values"]);
7931
7671
  easings = Array.isArray(easings) ? easings : defaultEasings$1(values, easings);
7932
7672
  times = times || defaultTimings$1(values);
7933
7673
  var scrubbers = easings.map(function (easing, i) {
@@ -7937,7 +7677,7 @@ var keyframes$1 = function (_a) {
7937
7677
  ease: easing
7938
7678
  });
7939
7679
  });
7940
- return tween$1(__assign$8({}, tweenProps, { ease: ease })).applyMiddleware(function (update) {
7680
+ return tween$1(__assign({}, tweenProps, { ease: ease })).applyMiddleware(function (update) {
7941
7681
  return interpolateScrubbers$1(times, scrubbers, update);
7942
7682
  });
7943
7683
  };
@@ -8139,7 +7879,7 @@ var MotionValue = /** @class */ (function () {
8139
7879
  */
8140
7880
  MotionValue.prototype.addChild = function (config) {
8141
7881
  if (config === void 0) { config = {}; }
8142
- var child = new MotionValue(this.current, __assign$7({ parent: this }, config));
7882
+ var child = new MotionValue(this.current, __assign({ parent: this }, config));
8143
7883
  if (!this.children)
8144
7884
  this.children = new Set();
8145
7885
  this.children.add(child);
@@ -8581,7 +8321,7 @@ var buildStyleAttr = function (values, styleProp, isStatic) {
8581
8321
  ? transformTemplate({}, styleProp.transform)
8582
8322
  : transformTemplate;
8583
8323
  }
8584
- return buildStyleProperty(__assign$7(__assign$7({}, styleProp), motionValueStyles), !isStatic);
8324
+ return buildStyleProperty(__assign(__assign({}, styleProp), motionValueStyles), !isStatic);
8585
8325
  };
8586
8326
  var useMotionStyles = function (values, styleProp, isStatic, transformValues) {
8587
8327
  if (styleProp === void 0) { styleProp = {}; }
@@ -8635,7 +8375,7 @@ var auto$1 = {
8635
8375
  parse: function (v) { return v; },
8636
8376
  };
8637
8377
  var dimensionTypes = [number, px, percent, degrees, vw, vh, auto$1];
8638
- var valueTypes$1 = __spreadArrays$2(dimensionTypes, [color, complex]);
8378
+ var valueTypes$1 = __spreadArrays(dimensionTypes, [color, complex]);
8639
8379
  var testValueType$1 = function (v) { return function (type) { return type.test(v); }; };
8640
8380
  var getDimensionValueType = function (v) {
8641
8381
  return dimensionTypes.find(testValueType$1(v));
@@ -8688,7 +8428,7 @@ var getDefaultTransition = function (valueKey, to) {
8688
8428
  transitionFactory =
8689
8429
  defaultTransitions$1[valueKey] || defaultTransitions$1.default;
8690
8430
  }
8691
- return __assign$7({ to: to }, transitionFactory(to));
8431
+ return __assign({ to: to }, transitionFactory(to));
8692
8432
  };
8693
8433
 
8694
8434
  /**
@@ -8784,9 +8524,9 @@ var transitionOptionParser = {
8784
8524
  return opts;
8785
8525
  },
8786
8526
  keyframes: function (_a) {
8787
- var from = _a.from, to = _a.to, velocity = _a.velocity, opts = __rest$5(_a, ["from", "to", "velocity"]);
8527
+ var from = _a.from, to = _a.to, velocity = _a.velocity, opts = __rest(_a, ["from", "to", "velocity"]);
8788
8528
  if (opts.values && opts.values[0] === null) {
8789
- var values = __spreadArrays$2(opts.values);
8529
+ var values = __spreadArrays(opts.values);
8790
8530
  values[0] = from;
8791
8531
  opts.values = values;
8792
8532
  }
@@ -8800,7 +8540,7 @@ var transitionOptionParser = {
8800
8540
  },
8801
8541
  };
8802
8542
  var isTransitionDefined = function (_a) {
8803
- var when = _a.when, delay = _a.delay, delayChildren = _a.delayChildren, staggerChildren = _a.staggerChildren, staggerDirection = _a.staggerDirection, transition = __rest$5(_a, ["when", "delay", "delayChildren", "staggerChildren", "staggerDirection"]);
8543
+ var when = _a.when, delay = _a.delay, delayChildren = _a.delayChildren, staggerChildren = _a.staggerChildren, staggerDirection = _a.staggerDirection, transition = __rest(_a, ["when", "delay", "delayChildren", "staggerChildren", "staggerDirection"]);
8804
8544
  return Object.keys(transition).length;
8805
8545
  };
8806
8546
  var getTransitionDefinition = function (key, to, transitionDefinition) {
@@ -8810,7 +8550,7 @@ var getTransitionDefinition = function (key, to, transitionDefinition) {
8810
8550
  // and see if there's any props remaining
8811
8551
  if (transitionDefinition === undefined ||
8812
8552
  !isTransitionDefined(transitionDefinition)) {
8813
- return __assign$7({ delay: delay }, getDefaultTransition(key, to));
8553
+ return __assign({ delay: delay }, getDefaultTransition(key, to));
8814
8554
  }
8815
8555
  var valueTransitionDefinition = transitionDefinition[key] ||
8816
8556
  transitionDefinition.default ||
@@ -8827,12 +8567,12 @@ var getTransitionDefinition = function (key, to, transitionDefinition) {
8827
8567
  };
8828
8568
  }
8829
8569
  else if (isKeyframesTarget(to)) {
8830
- return __assign$7(__assign$7({ values: to, duration: 0.8, delay: delay, ease: "linear" }, valueTransitionDefinition), {
8570
+ return __assign(__assign({ values: to, duration: 0.8, delay: delay, ease: "linear" }, valueTransitionDefinition), {
8831
8571
  // This animation must be keyframes if we're animating through an array
8832
8572
  type: "keyframes" });
8833
8573
  }
8834
8574
  else {
8835
- return __assign$7({ type: "tween", to: to,
8575
+ return __assign({ type: "tween", to: to,
8836
8576
  delay: delay }, valueTransitionDefinition);
8837
8577
  }
8838
8578
  };
@@ -8849,12 +8589,12 @@ var getAnimation = function (key, value, target, transition) {
8849
8589
  // for instance 100 to #fff. This might live better in Popmotion.
8850
8590
  warning(isOriginAnimatable === isTargetAnimatable, "You are trying to animate " + key + " from \"" + origin + "\" to " + target + ". \"" + origin + "\" is not an animatable value - to enable this animation set " + origin + " to a value animatable to " + target + " via the `style` property.");
8851
8591
  // Parse the `transition` prop and return options for the Popmotion animation
8852
- var _a = getTransitionDefinition(key, target, transition), _b = _a.type, type = _b === void 0 ? "tween" : _b, transitionDefinition = __rest$5(_a, ["type"]);
8592
+ var _a = getTransitionDefinition(key, target, transition), _b = _a.type, type = _b === void 0 ? "tween" : _b, transitionDefinition = __rest(_a, ["type"]);
8853
8593
  // If this is an animatable pair of values, return an animation, otherwise use `just`
8854
8594
  var actionFactory = isOriginAnimatable && isTargetAnimatable
8855
8595
  ? transitions[type]
8856
8596
  : just$1;
8857
- var opts = preprocessOptions(type, __assign$7({ from: origin, velocity: value.getVelocity() }, transitionDefinition));
8597
+ var opts = preprocessOptions(type, __assign({ from: origin, velocity: value.getVelocity() }, transitionDefinition));
8858
8598
  // Convert duration from Framer Motion's seconds into Popmotion's milliseconds
8859
8599
  if (isDurationAnimation(opts)) {
8860
8600
  if (opts.duration) {
@@ -8872,10 +8612,10 @@ var getAnimation = function (key, value, target, transition) {
8872
8612
  * @internal
8873
8613
  */
8874
8614
  function startAnimation(key, value, target, _a) {
8875
- var _b = _a.delay, delay$1$1 = _b === void 0 ? 0 : _b, transition = __rest$5(_a, ["delay"]);
8615
+ var _b = _a.delay, delay$1$1 = _b === void 0 ? 0 : _b, transition = __rest(_a, ["delay"]);
8876
8616
  return value.start(function (complete) {
8877
8617
  var activeAnimation;
8878
- var _a = getAnimation(key, value, target, transition), animationFactory = _a[0], _b = _a[1], valueDelay = _b.delay, options = __rest$5(_b, ["delay"]);
8618
+ var _a = getAnimation(key, value, target, transition), animationFactory = _a[0], _b = _a[1], valueDelay = _b.delay, options = __rest(_b, ["delay"]);
8879
8619
  if (valueDelay !== undefined) {
8880
8620
  delay$1$1 = valueDelay;
8881
8621
  }
@@ -9021,7 +8761,7 @@ var ValueAnimationControls = /** @class */ (function () {
9021
8761
  var _this = this;
9022
8762
  var _b = _a === void 0 ? {} : _a, _c = _b.isActive, isActive = _c === void 0 ? new Set() : _c, priority = _b.priority;
9023
8763
  var _d = this.resolveVariant(definition), target = _d.target, transitionEnd = _d.transitionEnd;
9024
- target = this.transformValues(__assign$7(__assign$7({}, target), transitionEnd));
8764
+ target = this.transformValues(__assign(__assign({}, target), transitionEnd));
9025
8765
  return Object.keys(target).forEach(function (key) {
9026
8766
  if (isActive.has(key))
9027
8767
  return;
@@ -9111,7 +8851,7 @@ var ValueAnimationControls = /** @class */ (function () {
9111
8851
  // resolve current and velocity
9112
8852
  variant = variant(this.props.custom, getCurrent$1(this.values), getVelocity(this.values));
9113
8853
  }
9114
- var _a = variant.transition, transition = _a === void 0 ? this.defaultTransition : _a, transitionEnd = variant.transitionEnd, target = __rest$5(variant, ["transition", "transitionEnd"]);
8854
+ var _a = variant.transition, transition = _a === void 0 ? this.defaultTransition : _a, transitionEnd = variant.transitionEnd, target = __rest(variant, ["transition", "transitionEnd"]);
9115
8855
  return { transition: transition, transitionEnd: transitionEnd, target: target };
9116
8856
  };
9117
8857
  /**
@@ -9202,7 +8942,7 @@ var ValueAnimationControls = /** @class */ (function () {
9202
8942
  ValueAnimationControls.prototype.applyVariantLabels = function (variantLabelList) {
9203
8943
  var _this = this;
9204
8944
  var isActive = new Set();
9205
- var reversedList = __spreadArrays$2(variantLabelList).reverse();
8945
+ var reversedList = __spreadArrays(variantLabelList).reverse();
9206
8946
  reversedList.forEach(function (key) {
9207
8947
  var _a = _this.resolveVariant(_this.variants[key]), target = _a.target, transitionEnd = _a.transitionEnd;
9208
8948
  if (transitionEnd) {
@@ -9273,7 +9013,7 @@ var ValueAnimationControls = /** @class */ (function () {
9273
9013
  if (this.isAnimating.has(key))
9274
9014
  continue;
9275
9015
  this.isAnimating.add(key);
9276
- animations.push(startAnimation(key, value, valueTarget, __assign$7({ delay: delay }, transition)));
9016
+ animations.push(startAnimation(key, value, valueTarget, __assign({ delay: delay }, transition)));
9277
9017
  }
9278
9018
  var allAnimations = Promise.all(animations);
9279
9019
  return transitionEnd
@@ -9284,7 +9024,7 @@ var ValueAnimationControls = /** @class */ (function () {
9284
9024
  };
9285
9025
  ValueAnimationControls.prototype.animateVariantLabels = function (variantLabels, opts) {
9286
9026
  var _this = this;
9287
- var animations = __spreadArrays$2(variantLabels).reverse()
9027
+ var animations = __spreadArrays(variantLabels).reverse()
9288
9028
  .map(function (label) { return _this.animateVariant(label, opts); });
9289
9029
  return Promise.all(animations);
9290
9030
  };
@@ -9728,7 +9468,7 @@ function useValueAnimationControls(config, props, subscribeToParentControls) {
9728
9468
  // Remove reference to onAnimationComplete from controls. All the MotionValues
9729
9469
  // are unsubscribed from this component separately. We let animations run out
9730
9470
  // as they might be animating other components.
9731
- var onAnimationComplete = props.onAnimationComplete, unmountProps = __rest$5(props, ["onAnimationComplete"]);
9471
+ var onAnimationComplete = props.onAnimationComplete, unmountProps = __rest(props, ["onAnimationComplete"]);
9732
9472
  controls.setProps(unmountProps);
9733
9473
  parentControls && parentControls.removeChild(controls);
9734
9474
  };
@@ -10213,7 +9953,7 @@ var PanSession = /** @class */ (function () {
10213
9953
  return;
10214
9954
  var point = info.point;
10215
9955
  var timestamp = getFrameData().timestamp;
10216
- _this.history.push(__assign$7(__assign$7({}, point), { timestamp: timestamp }));
9956
+ _this.history.push(__assign(__assign({}, point), { timestamp: timestamp }));
10217
9957
  var _a = _this.handlers, onStart = _a.onStart, onMove = _a.onMove;
10218
9958
  if (!isPanStarted) {
10219
9959
  onStart && onStart(_this.lastMoveEvent, info);
@@ -10230,7 +9970,7 @@ var PanSession = /** @class */ (function () {
10230
9970
  var initialInfo = transformPoint(info, this.transformPagePoint);
10231
9971
  var point = initialInfo.point;
10232
9972
  var timestamp = getFrameData().timestamp;
10233
- this.history = [__assign$7(__assign$7({}, point), { timestamp: timestamp })];
9973
+ this.history = [__assign(__assign({}, point), { timestamp: timestamp })];
10234
9974
  var onSessionStart = handlers.onSessionStart;
10235
9975
  onSessionStart &&
10236
9976
  onSessionStart(event, getPanInfo(initialInfo, this.history));
@@ -10558,7 +10298,7 @@ var Gestures = {
10558
10298
  return gestureProps.some(function (key) { return props.hasOwnProperty(key); });
10559
10299
  },
10560
10300
  Component: makeRenderlessComponent(function (_a) {
10561
- var innerRef = _a.innerRef, props = __rest$5(_a, ["innerRef"]);
10301
+ var innerRef = _a.innerRef, props = __rest(_a, ["innerRef"]);
10562
10302
  useGestures(props, innerRef);
10563
10303
  }),
10564
10304
  };
@@ -10798,8 +10538,8 @@ var ComponentDragControls = /** @class */ (function () {
10798
10538
  };
10799
10539
  ComponentDragControls.prototype.updateProps = function (_a) {
10800
10540
  var _this = this;
10801
- var _b = _a.drag, drag = _b === void 0 ? false : _b, _c = _a.dragDirectionLock, dragDirectionLock = _c === void 0 ? false : _c, _d = _a.dragPropagation, dragPropagation = _d === void 0 ? false : _d, _e = _a.dragConstraints, dragConstraints = _e === void 0 ? false : _e, _f = _a.dragElastic, dragElastic = _f === void 0 ? true : _f, _g = _a.dragMomentum, dragMomentum = _g === void 0 ? true : _g, remainingProps = __rest$5(_a, ["drag", "dragDirectionLock", "dragPropagation", "dragConstraints", "dragElastic", "dragMomentum"]);
10802
- this.props = __assign$7({ drag: drag,
10541
+ var _b = _a.drag, drag = _b === void 0 ? false : _b, _c = _a.dragDirectionLock, dragDirectionLock = _c === void 0 ? false : _c, _d = _a.dragPropagation, dragPropagation = _d === void 0 ? false : _d, _e = _a.dragConstraints, dragConstraints = _e === void 0 ? false : _e, _f = _a.dragElastic, dragElastic = _f === void 0 ? true : _f, _g = _a.dragMomentum, dragMomentum = _g === void 0 ? true : _g, remainingProps = __rest(_a, ["drag", "dragDirectionLock", "dragPropagation", "dragConstraints", "dragElastic", "dragMomentum"]);
10542
+ this.props = __assign({ drag: drag,
10803
10543
  dragDirectionLock: dragDirectionLock,
10804
10544
  dragPropagation: dragPropagation,
10805
10545
  dragConstraints: dragConstraints,
@@ -10855,7 +10595,7 @@ var ComponentDragControls = /** @class */ (function () {
10855
10595
  var bounceStiffness = dragElastic ? 200 : 1000000;
10856
10596
  var bounceDamping = dragElastic ? 40 : 10000000;
10857
10597
  var animationControls = _dragTransitionControls || _this.controls;
10858
- var inertia = __assign$7(__assign$7({ type: "inertia", velocity: dragMomentum ? velocity[axis] : 0, bounceStiffness: bounceStiffness,
10598
+ var inertia = __assign(__assign({ type: "inertia", velocity: dragMomentum ? velocity[axis] : 0, bounceStiffness: bounceStiffness,
10859
10599
  bounceDamping: bounceDamping, timeConstant: 750, restDelta: 1 }, dragTransition), transition);
10860
10600
  var externalAxisMotionValue = axis === "x" ? _dragValueX : _dragValueY;
10861
10601
  // If we're not animating on an externally-provided `MotionValue` we can use the
@@ -10936,7 +10676,7 @@ function bothAxis(handler) {
10936
10676
  return [handler("x"), handler("y")];
10937
10677
  }
10938
10678
  function convertPanToDrag(info, point) {
10939
- return __assign$7(__assign$7({}, info), { point: {
10679
+ return __assign(__assign({}, info), { point: {
10940
10680
  x: point.x ? point.x.get() : 0,
10941
10681
  y: point.y ? point.y.get() : 0,
10942
10682
  } });
@@ -11047,7 +10787,7 @@ function useDrag(props, ref, values, controls) {
11047
10787
  var groupDragControls = props.dragControls;
11048
10788
  var transformPagePoint = useContext(MotionPluginContext).transformPagePoint;
11049
10789
  var dragControls = useConstant(function () { return new ComponentDragControls({ ref: ref, values: values, controls: controls }); });
11050
- dragControls.updateProps(__assign$7(__assign$7({}, props), { transformPagePoint: transformPagePoint }));
10790
+ dragControls.updateProps(__assign(__assign({}, props), { transformPagePoint: transformPagePoint }));
11051
10791
  useEffect$1(function () { return groupDragControls && groupDragControls.subscribe(dragControls); }, [dragControls]);
11052
10792
  useEffect$1(function () { return dragControls.mount(ref.current); }, []);
11053
10793
  }
@@ -11056,7 +10796,7 @@ var Drag = {
11056
10796
  key: "drag",
11057
10797
  shouldRender: function (props) { return !!props.drag; },
11058
10798
  Component: makeRenderlessComponent(function (_a) {
11059
- var innerRef = _a.innerRef, values = _a.values, controls = _a.controls, props = __rest$5(_a, ["innerRef", "values", "controls"]);
10799
+ var innerRef = _a.innerRef, values = _a.values, controls = _a.controls, props = __rest(_a, ["innerRef", "values", "controls"]);
11060
10800
  return useDrag(props, innerRef, values, controls);
11061
10801
  }),
11062
10802
  };
@@ -11108,14 +10848,14 @@ function getVariableValue(current, element, depth) {
11108
10848
  * @internal
11109
10849
  */
11110
10850
  function resolveCSSVariables(values, ref, _a, transitionEnd) {
11111
- var target = __rest$5(_a, []);
10851
+ var target = __rest(_a, []);
11112
10852
  var element = ref.current;
11113
10853
  if (!(element instanceof HTMLElement))
11114
10854
  return { target: target, transitionEnd: transitionEnd };
11115
10855
  // If `transitionEnd` isn't `undefined`, clone it. We could clone `target` and `transitionEnd`
11116
10856
  // only if they change but I think this reads clearer and this isn't a performance-critical path.
11117
10857
  if (transitionEnd) {
11118
- transitionEnd = __assign$7({}, transitionEnd);
10858
+ transitionEnd = __assign({}, transitionEnd);
11119
10859
  }
11120
10860
  // Go through existing `MotionValue`s and ensure any existing CSS variables are resolved
11121
10861
  values.forEach(function (value) {
@@ -11272,8 +11012,8 @@ var convertChangedValueTypes = function (target, values, element, elementStyler,
11272
11012
  };
11273
11013
  var checkAndConvertChangedValueTypes = function (values, ref, target, transitionEnd) {
11274
11014
  if (transitionEnd === void 0) { transitionEnd = {}; }
11275
- target = __assign$7({}, target);
11276
- transitionEnd = __assign$7({}, transitionEnd);
11015
+ target = __assign({}, target);
11016
+ transitionEnd = __assign({}, transitionEnd);
11277
11017
  var element = ref.current;
11278
11018
  var elementStyler = index(element);
11279
11019
  var targetPositionalKeys = Object.keys(target).filter(isPositionalKey$1);
@@ -11501,7 +11241,7 @@ function calcAxisDelta(prev, next, names) {
11501
11241
  return delta;
11502
11242
  }
11503
11243
  function calcDelta(prev, next) {
11504
- var delta = __assign$7(__assign$7({}, calcAxisDelta(prev, next, axisLabels.x)), calcAxisDelta(prev, next, axisLabels.y));
11244
+ var delta = __assign(__assign({}, calcAxisDelta(prev, next, axisLabels.x)), calcAxisDelta(prev, next, axisLabels.y));
11505
11245
  return delta;
11506
11246
  }
11507
11247
  var offset = {
@@ -11545,7 +11285,7 @@ function getTransition(_a) {
11545
11285
  return layoutTransition || positionTransition;
11546
11286
  }
11547
11287
  var LayoutAnimation = /** @class */ (function (_super) {
11548
- __extends$2(LayoutAnimation, _super);
11288
+ __extends(LayoutAnimation, _super);
11549
11289
  function LayoutAnimation() {
11550
11290
  return _super !== null && _super.apply(this, arguments) || this;
11551
11291
  }
@@ -11612,11 +11352,11 @@ var LayoutAnimation = /** @class */ (function (_super) {
11612
11352
  if (!delta[deltaKey])
11613
11353
  return;
11614
11354
  var baseTransition = typeof transitionDefinition === "boolean"
11615
- ? __assign$7({}, getDefaultLayoutTransition(isPositionOnly)) : transitionDefinition;
11355
+ ? __assign({}, getDefaultLayoutTransition(isPositionOnly)) : transitionDefinition;
11616
11356
  var value = values.get(transformKey, targetValue);
11617
11357
  var velocity = value.getVelocity();
11618
11358
  transition[transformKey] = baseTransition[transformKey]
11619
- ? __assign$7({}, baseTransition[transformKey]) : __assign$7({}, baseTransition);
11359
+ ? __assign({}, baseTransition[transformKey]) : __assign({}, baseTransition);
11620
11360
  if (transition[transformKey].velocity === undefined) {
11621
11361
  transition[transformKey].velocity = velocity || 0;
11622
11362
  }
@@ -11757,9 +11497,9 @@ var hasUpdated = function (prev, next) {
11757
11497
  };
11758
11498
  function targetWithoutTransition(_a, mergeTransitionEnd) {
11759
11499
  if (mergeTransitionEnd === void 0) { mergeTransitionEnd = false; }
11760
- var transition = _a.transition, transitionEnd = _a.transitionEnd, target = __rest$5(_a, ["transition", "transitionEnd"]);
11500
+ var transition = _a.transition, transitionEnd = _a.transitionEnd, target = __rest(_a, ["transition", "transitionEnd"]);
11761
11501
  return mergeTransitionEnd
11762
- ? __assign$7(__assign$7({}, target), transitionEnd)
11502
+ ? __assign(__assign({}, target), transitionEnd)
11763
11503
  : target;
11764
11504
  }
11765
11505
  /**
@@ -11811,9 +11551,9 @@ function useAnimateProp(targetAndTransition, controls, values, defaultTransition
11811
11551
  }
11812
11552
  }
11813
11553
  isInitialRender.current = false;
11814
- prevValues.current = __assign$7(__assign$7({}, prevValues.current), finalTarget);
11554
+ prevValues.current = __assign(__assign({}, prevValues.current), finalTarget);
11815
11555
  if (Object.keys(targetToAnimate).length) {
11816
- controls.start(__assign$7(__assign$7({}, targetToAnimate), { transition: targetAndTransition.transition || defaultTransition, transitionEnd: targetAndTransition.transitionEnd }));
11556
+ controls.start(__assign(__assign({}, targetToAnimate), { transition: targetAndTransition.transition || defaultTransition, transitionEnd: targetAndTransition.transitionEnd }));
11817
11557
  }
11818
11558
  }, [targetAndTransition]);
11819
11559
  }
@@ -11987,7 +11727,7 @@ var Exit = {
11987
11727
  useEffect$1(function () {
11988
11728
  if (!isPresent) {
11989
11729
  if (!isPlayingExitAnimation.current && exit) {
11990
- controls.setProps(__assign$7(__assign$7({}, props), { custom: custom }));
11730
+ controls.setProps(__assign(__assign({}, props), { custom: custom }));
11991
11731
  controls.start(exit).then(onExitComplete);
11992
11732
  }
11993
11733
  isPlayingExitAnimation.current = true;
@@ -12058,7 +11798,7 @@ var buildHTMLProps = function (values, style, isStatic, isDrag) {
12058
11798
  var buildSVGProps = function (values, style) {
12059
11799
  var motionValueStyles = resolveCurrent(values);
12060
11800
  var props = buildSVGAttrs(motionValueStyles, undefined, undefined, undefined, undefined, false);
12061
- props.style = __assign$7(__assign$7({}, style), props.style);
11801
+ props.style = __assign(__assign({}, style), props.style);
12062
11802
  return props;
12063
11803
  };
12064
11804
  var functionalityComponents = [Layout, Drag, Gestures, Exit];
@@ -12077,7 +11817,7 @@ function createDomMotionConfig(Component) {
12077
11817
  var staticVisualStyles = isSVG
12078
11818
  ? buildSVGProps(values, style)
12079
11819
  : buildHTMLProps(values, style, isStatic, !!props.drag);
12080
- return createElement(Component, __assign$7(__assign$7(__assign$7({}, forwardedProps), { ref: ref }), staticVisualStyles));
11820
+ return createElement(Component, __assign(__assign(__assign({}, forwardedProps), { ref: ref }), staticVisualStyles));
12081
11821
  },
12082
11822
  /**
12083
11823
  * loadFunctionalityComponents gets used by the `motion` component
@@ -12108,7 +11848,7 @@ function createDomMotionConfig(Component) {
12108
11848
  for (var i = 0; i < numFunctionalityComponents; i++) {
12109
11849
  var _a = functionalityComponents[i], shouldRender = _a.shouldRender, key = _a.key, Component_1 = _a.Component;
12110
11850
  if (shouldRender(props, context)) {
12111
- activeComponents.push(createElement(Component_1, __assign$7({ key: key }, props, { parentContext: context, values: values, controls: controls, innerRef: ref })));
11851
+ activeComponents.push(createElement(Component_1, __assign({ key: key }, props, { parentContext: context, values: values, controls: controls, innerRef: ref })));
12112
11852
  }
12113
11853
  }
12114
11854
  return activeComponents;
@@ -12160,7 +11900,7 @@ var svgMotionComponents = svgElements.reduce(function (acc, Component) {
12160
11900
  *
12161
11901
  * @public
12162
11902
  */
12163
- var motion = __assign$7(__assign$7({
11903
+ var motion = __assign(__assign({
12164
11904
  /**
12165
11905
  * Convert a custom React component into a `motion` component.
12166
11906
  *
@@ -12212,7 +11952,7 @@ var PresenceChild = function (_a) {
12212
11952
  return function () { return numPresenceChildren.current--; };
12213
11953
  };
12214
11954
  }, [isPresent]);
12215
- return (createElement(PresenceContext.Provider, { value: __assign$7(__assign$7({}, context), { register: register }) }, children));
11955
+ return (createElement(PresenceContext.Provider, { value: __assign(__assign({}, context), { register: register }) }, children));
12216
11956
  };
12217
11957
 
12218
11958
  function getChildKey(child) {
@@ -12328,7 +12068,7 @@ var AnimatePresence = function (_a) {
12328
12068
  return (createElement(Fragment$1, null, filteredChildren.map(function (child) { return (createElement(PresenceChild, { key: getChildKey(child), isPresent: true, initial: initial ? undefined : false }, child)); })));
12329
12069
  }
12330
12070
  // If this is a subsequent render, deal with entering and exiting children
12331
- var childrenToRender = __spreadArrays$2(filteredChildren);
12071
+ var childrenToRender = __spreadArrays(filteredChildren);
12332
12072
  // Diff the keys of the currently-present and target children to update our
12333
12073
  // exiting list.
12334
12074
  var presentKeys = presentChildren.current.map(getChildKey);
@@ -21335,6 +21075,7 @@ function _wrapNativeSuper(Class) {
21335
21075
  }
21336
21076
 
21337
21077
  // based on https://github.com/styled-components/styled-components/blob/fcf6f3804c57a14dd7984dfab7bc06ee2edca044/src/utils/error.js
21078
+
21338
21079
  /**
21339
21080
  * Parse errors.md and turn it into a simple hash of code: message
21340
21081
  * @private
@@ -21419,71 +21160,84 @@ var ERRORS = {
21419
21160
  "77": "remToPx expects a value in \"rem\" but you provided it in \"%s\".\n\n",
21420
21161
  "78": "base must be set in \"px\" or \"%\" but you set it in \"%s\".\n"
21421
21162
  };
21422
-
21423
21163
  /**
21424
21164
  * super basic version of sprintf
21425
21165
  * @private
21426
21166
  */
21167
+
21427
21168
  function format() {
21428
21169
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
21429
21170
  args[_key] = arguments[_key];
21430
21171
  }
21172
+
21431
21173
  var a = args[0];
21432
21174
  var b = [];
21433
21175
  var c;
21176
+
21434
21177
  for (c = 1; c < args.length; c += 1) {
21435
21178
  b.push(args[c]);
21436
21179
  }
21180
+
21437
21181
  b.forEach(function (d) {
21438
21182
  a = a.replace(/%[a-z]/, d);
21439
21183
  });
21440
21184
  return a;
21441
21185
  }
21442
-
21443
21186
  /**
21444
21187
  * Create an error file out of errors.md for development and a simple web link to the full errors
21445
21188
  * in production mode.
21446
21189
  * @private
21447
21190
  */
21191
+
21192
+
21448
21193
  var PolishedError = /*#__PURE__*/function (_Error) {
21449
21194
  _inheritsLoose(PolishedError, _Error);
21195
+
21450
21196
  function PolishedError(code) {
21451
21197
  var _this;
21198
+
21452
21199
  if (process.env.NODE_ENV === 'production') {
21453
21200
  _this = _Error.call(this, "An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#" + code + " for more information.") || this;
21454
21201
  } else {
21455
21202
  for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
21456
21203
  args[_key2 - 1] = arguments[_key2];
21457
21204
  }
21205
+
21458
21206
  _this = _Error.call(this, format.apply(void 0, [ERRORS[code]].concat(args))) || this;
21459
21207
  }
21208
+
21460
21209
  return _assertThisInitialized(_this);
21461
21210
  }
21211
+
21462
21212
  return PolishedError;
21463
21213
  }( /*#__PURE__*/_wrapNativeSuper(Error));
21464
21214
 
21465
21215
  function colorToInt(color) {
21466
21216
  return Math.round(color * 255);
21467
21217
  }
21218
+
21468
21219
  function convertToInt(red, green, blue) {
21469
21220
  return colorToInt(red) + "," + colorToInt(green) + "," + colorToInt(blue);
21470
21221
  }
21222
+
21471
21223
  function hslToRgb(hue, saturation, lightness, convert) {
21472
21224
  if (convert === void 0) {
21473
21225
  convert = convertToInt;
21474
21226
  }
21227
+
21475
21228
  if (saturation === 0) {
21476
21229
  // achromatic
21477
21230
  return convert(lightness, lightness, lightness);
21478
- }
21231
+ } // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV
21232
+
21479
21233
 
21480
- // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV
21481
21234
  var huePrime = (hue % 360 + 360) % 360 / 60;
21482
21235
  var chroma = (1 - Math.abs(2 * lightness - 1)) * saturation;
21483
21236
  var secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));
21484
21237
  var red = 0;
21485
21238
  var green = 0;
21486
21239
  var blue = 0;
21240
+
21487
21241
  if (huePrime >= 0 && huePrime < 1) {
21488
21242
  red = chroma;
21489
21243
  green = secondComponent;
@@ -21503,6 +21257,7 @@ function hslToRgb(hue, saturation, lightness, convert) {
21503
21257
  red = chroma;
21504
21258
  blue = secondComponent;
21505
21259
  }
21260
+
21506
21261
  var lightnessModification = lightness - chroma / 2;
21507
21262
  var finalRed = red + lightnessModification;
21508
21263
  var finalGreen = green + lightnessModification;
@@ -21660,11 +21415,11 @@ var namedColorMap = {
21660
21415
  yellow: 'ff0',
21661
21416
  yellowgreen: '9acd32'
21662
21417
  };
21663
-
21664
21418
  /**
21665
21419
  * Checks if a string is a CSS named color and returns its equivalent hex value, otherwise returns the original color.
21666
21420
  * @private
21667
21421
  */
21422
+
21668
21423
  function nameToHex(color) {
21669
21424
  if (typeof color !== 'string') return color;
21670
21425
  var normalizedColorName = color.toLowerCase();
@@ -21679,7 +21434,6 @@ var rgbRegex = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\
21679
21434
  var rgbaRegex = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
21680
21435
  var hslRegex = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i;
21681
21436
  var hslaRegex = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
21682
-
21683
21437
  /**
21684
21438
  * Returns an RgbColor or RgbaColor object. This utility function is only useful
21685
21439
  * if want to extract a color component. With the color util `toColorString` you
@@ -21691,11 +21445,14 @@ var hslaRegex = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[
21691
21445
  * // Assigns `{ red: 92, green: 102, blue: 112, alpha: 0.75 }` to color2
21692
21446
  * const color2 = parseToRgb('hsla(210, 10%, 40%, 0.75)');
21693
21447
  */
21448
+
21694
21449
  function parseToRgb(color) {
21695
21450
  if (typeof color !== 'string') {
21696
21451
  throw new PolishedError(3);
21697
21452
  }
21453
+
21698
21454
  var normalizedColor = nameToHex(color);
21455
+
21699
21456
  if (normalizedColor.match(hexRegex)) {
21700
21457
  return {
21701
21458
  red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
@@ -21703,6 +21460,7 @@ function parseToRgb(color) {
21703
21460
  blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16)
21704
21461
  };
21705
21462
  }
21463
+
21706
21464
  if (normalizedColor.match(hexRgbaRegex)) {
21707
21465
  var alpha = parseFloat((parseInt("" + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2));
21708
21466
  return {
@@ -21712,6 +21470,7 @@ function parseToRgb(color) {
21712
21470
  alpha: alpha
21713
21471
  };
21714
21472
  }
21473
+
21715
21474
  if (normalizedColor.match(reducedHexRegex)) {
21716
21475
  return {
21717
21476
  red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
@@ -21719,8 +21478,10 @@ function parseToRgb(color) {
21719
21478
  blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16)
21720
21479
  };
21721
21480
  }
21481
+
21722
21482
  if (normalizedColor.match(reducedRgbaHexRegex)) {
21723
21483
  var _alpha = parseFloat((parseInt("" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2));
21484
+
21724
21485
  return {
21725
21486
  red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
21726
21487
  green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
@@ -21728,7 +21489,9 @@ function parseToRgb(color) {
21728
21489
  alpha: _alpha
21729
21490
  };
21730
21491
  }
21492
+
21731
21493
  var rgbMatched = rgbRegex.exec(normalizedColor);
21494
+
21732
21495
  if (rgbMatched) {
21733
21496
  return {
21734
21497
  red: parseInt("" + rgbMatched[1], 10),
@@ -21736,7 +21499,9 @@ function parseToRgb(color) {
21736
21499
  blue: parseInt("" + rgbMatched[3], 10)
21737
21500
  };
21738
21501
  }
21502
+
21739
21503
  var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50));
21504
+
21740
21505
  if (rgbaMatched) {
21741
21506
  return {
21742
21507
  red: parseInt("" + rgbaMatched[1], 10),
@@ -21745,32 +21510,44 @@ function parseToRgb(color) {
21745
21510
  alpha: parseFloat("" + rgbaMatched[4]) > 1 ? parseFloat("" + rgbaMatched[4]) / 100 : parseFloat("" + rgbaMatched[4])
21746
21511
  };
21747
21512
  }
21513
+
21748
21514
  var hslMatched = hslRegex.exec(normalizedColor);
21515
+
21749
21516
  if (hslMatched) {
21750
21517
  var hue = parseInt("" + hslMatched[1], 10);
21751
21518
  var saturation = parseInt("" + hslMatched[2], 10) / 100;
21752
21519
  var lightness = parseInt("" + hslMatched[3], 10) / 100;
21753
21520
  var rgbColorString = "rgb(" + hslToRgb(hue, saturation, lightness) + ")";
21754
21521
  var hslRgbMatched = rgbRegex.exec(rgbColorString);
21522
+
21755
21523
  if (!hslRgbMatched) {
21756
21524
  throw new PolishedError(4, normalizedColor, rgbColorString);
21757
21525
  }
21526
+
21758
21527
  return {
21759
21528
  red: parseInt("" + hslRgbMatched[1], 10),
21760
21529
  green: parseInt("" + hslRgbMatched[2], 10),
21761
21530
  blue: parseInt("" + hslRgbMatched[3], 10)
21762
21531
  };
21763
21532
  }
21533
+
21764
21534
  var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50));
21535
+
21765
21536
  if (hslaMatched) {
21766
21537
  var _hue = parseInt("" + hslaMatched[1], 10);
21538
+
21767
21539
  var _saturation = parseInt("" + hslaMatched[2], 10) / 100;
21540
+
21768
21541
  var _lightness = parseInt("" + hslaMatched[3], 10) / 100;
21542
+
21769
21543
  var _rgbColorString = "rgb(" + hslToRgb(_hue, _saturation, _lightness) + ")";
21544
+
21770
21545
  var _hslRgbMatched = rgbRegex.exec(_rgbColorString);
21546
+
21771
21547
  if (!_hslRgbMatched) {
21772
21548
  throw new PolishedError(4, normalizedColor, _rgbColorString);
21773
21549
  }
21550
+
21774
21551
  return {
21775
21552
  red: parseInt("" + _hslRgbMatched[1], 10),
21776
21553
  green: parseInt("" + _hslRgbMatched[2], 10),
@@ -21778,80 +21555,8 @@ function parseToRgb(color) {
21778
21555
  alpha: parseFloat("" + hslaMatched[4]) > 1 ? parseFloat("" + hslaMatched[4]) / 100 : parseFloat("" + hslaMatched[4])
21779
21556
  };
21780
21557
  }
21781
- throw new PolishedError(5);
21782
- }
21783
-
21784
- function rgbToHsl(color) {
21785
- // make sure rgb are contained in a set of [0, 255]
21786
- var red = color.red / 255;
21787
- var green = color.green / 255;
21788
- var blue = color.blue / 255;
21789
- var max = Math.max(red, green, blue);
21790
- var min = Math.min(red, green, blue);
21791
- var lightness = (max + min) / 2;
21792
- if (max === min) {
21793
- // achromatic
21794
- if (color.alpha !== undefined) {
21795
- return {
21796
- hue: 0,
21797
- saturation: 0,
21798
- lightness: lightness,
21799
- alpha: color.alpha
21800
- };
21801
- } else {
21802
- return {
21803
- hue: 0,
21804
- saturation: 0,
21805
- lightness: lightness
21806
- };
21807
- }
21808
- }
21809
- var hue;
21810
- var delta = max - min;
21811
- var saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min);
21812
- switch (max) {
21813
- case red:
21814
- hue = (green - blue) / delta + (green < blue ? 6 : 0);
21815
- break;
21816
- case green:
21817
- hue = (blue - red) / delta + 2;
21818
- break;
21819
- default:
21820
- // blue case
21821
- hue = (red - green) / delta + 4;
21822
- break;
21823
- }
21824
- hue *= 60;
21825
- if (color.alpha !== undefined) {
21826
- return {
21827
- hue: hue,
21828
- saturation: saturation,
21829
- lightness: lightness,
21830
- alpha: color.alpha
21831
- };
21832
- }
21833
- return {
21834
- hue: hue,
21835
- saturation: saturation,
21836
- lightness: lightness
21837
- };
21838
- }
21839
21558
 
21840
- /**
21841
- * Returns an HslColor or HslaColor object. This utility function is only useful
21842
- * if want to extract a color component. With the color util `toColorString` you
21843
- * can convert a HslColor or HslaColor object back to a string.
21844
- *
21845
- * @example
21846
- * // Assigns `{ hue: 0, saturation: 1, lightness: 0.5 }` to color1
21847
- * const color1 = parseToHsl('rgb(255, 0, 0)');
21848
- * // Assigns `{ hue: 128, saturation: 1, lightness: 0.5, alpha: 0.75 }` to color2
21849
- * const color2 = parseToHsl('hsla(128, 100%, 50%, 0.75)');
21850
- */
21851
- function parseToHsl(color) {
21852
- // Note: At a later stage we can optimize this function as right now a hsl
21853
- // color would be parsed converted to rgb values and converted back to hsl.
21854
- return rgbToHsl(parseToRgb(color));
21559
+ throw new PolishedError(5);
21855
21560
  }
21856
21561
 
21857
21562
  /**
@@ -21862,8 +21567,10 @@ var reduceHexValue = function reduceHexValue(value) {
21862
21567
  if (value.length === 7 && value[1] === value[2] && value[3] === value[4] && value[5] === value[6]) {
21863
21568
  return "#" + value[1] + value[3] + value[5];
21864
21569
  }
21570
+
21865
21571
  return value;
21866
21572
  };
21573
+
21867
21574
  var reduceHexValue$1 = reduceHexValue;
21868
21575
 
21869
21576
  function numberToHex(value) {
@@ -21871,83 +21578,6 @@ function numberToHex(value) {
21871
21578
  return hex.length === 1 ? "0" + hex : hex;
21872
21579
  }
21873
21580
 
21874
- function colorToHex(color) {
21875
- return numberToHex(Math.round(color * 255));
21876
- }
21877
- function convertToHex(red, green, blue) {
21878
- return reduceHexValue$1("#" + colorToHex(red) + colorToHex(green) + colorToHex(blue));
21879
- }
21880
- function hslToHex(hue, saturation, lightness) {
21881
- return hslToRgb(hue, saturation, lightness, convertToHex);
21882
- }
21883
-
21884
- /**
21885
- * Returns a string value for the color. The returned result is the smallest possible hex notation.
21886
- *
21887
- * @example
21888
- * // Styles as object usage
21889
- * const styles = {
21890
- * background: hsl(359, 0.75, 0.4),
21891
- * background: hsl({ hue: 360, saturation: 0.75, lightness: 0.4 }),
21892
- * }
21893
- *
21894
- * // styled-components usage
21895
- * const div = styled.div`
21896
- * background: ${hsl(359, 0.75, 0.4)};
21897
- * background: ${hsl({ hue: 360, saturation: 0.75, lightness: 0.4 })};
21898
- * `
21899
- *
21900
- * // CSS in JS Output
21901
- *
21902
- * element {
21903
- * background: "#b3191c";
21904
- * background: "#b3191c";
21905
- * }
21906
- */
21907
- function hsl(value, saturation, lightness) {
21908
- if (typeof value === 'number' && typeof saturation === 'number' && typeof lightness === 'number') {
21909
- return hslToHex(value, saturation, lightness);
21910
- } else if (typeof value === 'object' && saturation === undefined && lightness === undefined) {
21911
- return hslToHex(value.hue, value.saturation, value.lightness);
21912
- }
21913
- throw new PolishedError(1);
21914
- }
21915
-
21916
- /**
21917
- * Returns a string value for the color. The returned result is the smallest possible rgba or hex notation.
21918
- *
21919
- * @example
21920
- * // Styles as object usage
21921
- * const styles = {
21922
- * background: hsla(359, 0.75, 0.4, 0.7),
21923
- * background: hsla({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0,7 }),
21924
- * background: hsla(359, 0.75, 0.4, 1),
21925
- * }
21926
- *
21927
- * // styled-components usage
21928
- * const div = styled.div`
21929
- * background: ${hsla(359, 0.75, 0.4, 0.7)};
21930
- * background: ${hsla({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0,7 })};
21931
- * background: ${hsla(359, 0.75, 0.4, 1)};
21932
- * `
21933
- *
21934
- * // CSS in JS Output
21935
- *
21936
- * element {
21937
- * background: "rgba(179,25,28,0.7)";
21938
- * background: "rgba(179,25,28,0.7)";
21939
- * background: "#b3191c";
21940
- * }
21941
- */
21942
- function hsla$1(value, saturation, lightness, alpha) {
21943
- if (typeof value === 'number' && typeof saturation === 'number' && typeof lightness === 'number' && typeof alpha === 'number') {
21944
- return alpha >= 1 ? hslToHex(value, saturation, lightness) : "rgba(" + hslToRgb(value, saturation, lightness) + "," + alpha + ")";
21945
- } else if (typeof value === 'object' && saturation === undefined && lightness === undefined && alpha === undefined) {
21946
- return value.alpha >= 1 ? hslToHex(value.hue, value.saturation, value.lightness) : "rgba(" + hslToRgb(value.hue, value.saturation, value.lightness) + "," + value.alpha + ")";
21947
- }
21948
- throw new PolishedError(2);
21949
- }
21950
-
21951
21581
  /**
21952
21582
  * Returns a string value for the color. The returned result is the smallest possible hex notation.
21953
21583
  *
@@ -21977,6 +21607,7 @@ function rgb(value, green, blue) {
21977
21607
  } else if (typeof value === 'object' && green === undefined && blue === undefined) {
21978
21608
  return reduceHexValue$1("#" + numberToHex(value.red) + numberToHex(value.green) + numberToHex(value.blue));
21979
21609
  }
21610
+
21980
21611
  throw new PolishedError(6);
21981
21612
  }
21982
21613
 
@@ -22023,60 +21654,8 @@ function rgba$1(firstValue, secondValue, thirdValue, fourthValue) {
22023
21654
  } else if (typeof firstValue === 'object' && secondValue === undefined && thirdValue === undefined && fourthValue === undefined) {
22024
21655
  return firstValue.alpha >= 1 ? rgb(firstValue.red, firstValue.green, firstValue.blue) : "rgba(" + firstValue.red + "," + firstValue.green + "," + firstValue.blue + "," + firstValue.alpha + ")";
22025
21656
  }
22026
- throw new PolishedError(7);
22027
- }
22028
-
22029
- var isRgb = function isRgb(color) {
22030
- return typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number' && (typeof color.alpha !== 'number' || typeof color.alpha === 'undefined');
22031
- };
22032
- var isRgba$1 = function isRgba(color) {
22033
- return typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number' && typeof color.alpha === 'number';
22034
- };
22035
- var isHsl = function isHsl(color) {
22036
- return typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number' && (typeof color.alpha !== 'number' || typeof color.alpha === 'undefined');
22037
- };
22038
- var isHsla$1 = function isHsla(color) {
22039
- return typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number' && typeof color.alpha === 'number';
22040
- };
22041
21657
 
22042
- /**
22043
- * Converts a RgbColor, RgbaColor, HslColor or HslaColor object to a color string.
22044
- * This util is useful in case you only know on runtime which color object is
22045
- * used. Otherwise we recommend to rely on `rgb`, `rgba`, `hsl` or `hsla`.
22046
- *
22047
- * @example
22048
- * // Styles as object usage
22049
- * const styles = {
22050
- * background: toColorString({ red: 255, green: 205, blue: 100 }),
22051
- * background: toColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 }),
22052
- * background: toColorString({ hue: 240, saturation: 1, lightness: 0.5 }),
22053
- * background: toColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 }),
22054
- * }
22055
- *
22056
- * // styled-components usage
22057
- * const div = styled.div`
22058
- * background: ${toColorString({ red: 255, green: 205, blue: 100 })};
22059
- * background: ${toColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 })};
22060
- * background: ${toColorString({ hue: 240, saturation: 1, lightness: 0.5 })};
22061
- * background: ${toColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 })};
22062
- * `
22063
- *
22064
- * // CSS in JS Output
22065
- * element {
22066
- * background: "#ffcd64";
22067
- * background: "rgba(255,205,100,0.72)";
22068
- * background: "#00f";
22069
- * background: "rgba(179,25,25,0.72)";
22070
- * }
22071
- */
22072
-
22073
- function toColorString(color) {
22074
- if (typeof color !== 'object') throw new PolishedError(8);
22075
- if (isRgba$1(color)) return rgba$1(color);
22076
- if (isRgb(color)) return rgb(color);
22077
- if (isHsla$1(color)) return hsla$1(color);
22078
- if (isHsl(color)) return hsl(color);
22079
- throw new PolishedError(8);
21658
+ throw new PolishedError(7);
22080
21659
  }
22081
21660
 
22082
21661
  // Type definitions taken from https://github.com/gcanti/flow-static-land/blob/master/src/Fun.js
@@ -22089,156 +21668,14 @@ function curried(f, length, acc) {
22089
21668
  var combined = acc.concat(Array.prototype.slice.call(arguments));
22090
21669
  return combined.length >= length ? f.apply(this, combined) : curried(f, length, combined);
22091
21670
  };
22092
- }
21671
+ } // eslint-disable-next-line no-redeclare
21672
+
22093
21673
 
22094
- // eslint-disable-next-line no-redeclare
22095
21674
  function curry(f) {
22096
21675
  // eslint-disable-line no-redeclare
22097
21676
  return curried(f, f.length, []);
22098
21677
  }
22099
21678
 
22100
- /**
22101
- * Changes the hue of the color. Hue is a number between 0 to 360. The first
22102
- * argument for adjustHue is the amount of degrees the color is rotated around
22103
- * the color wheel, always producing a positive hue value.
22104
- *
22105
- * @example
22106
- * // Styles as object usage
22107
- * const styles = {
22108
- * background: adjustHue(180, '#448'),
22109
- * background: adjustHue('180', 'rgba(101,100,205,0.7)'),
22110
- * }
22111
- *
22112
- * // styled-components usage
22113
- * const div = styled.div`
22114
- * background: ${adjustHue(180, '#448')};
22115
- * background: ${adjustHue('180', 'rgba(101,100,205,0.7)')};
22116
- * `
22117
- *
22118
- * // CSS in JS Output
22119
- * element {
22120
- * background: "#888844";
22121
- * background: "rgba(136,136,68,0.7)";
22122
- * }
22123
- */
22124
- function adjustHue(degree, color) {
22125
- if (color === 'transparent') return color;
22126
- var hslColor = parseToHsl(color);
22127
- return toColorString(_extends$1({}, hslColor, {
22128
- hue: hslColor.hue + parseFloat(degree)
22129
- }));
22130
- }
22131
-
22132
- // prettier-ignore
22133
- var curriedAdjustHue = curry /* ::<number | string, string, string> */(adjustHue);
22134
-
22135
- function guard(lowerBoundary, upperBoundary, value) {
22136
- return Math.max(lowerBoundary, Math.min(upperBoundary, value));
22137
- }
22138
-
22139
- /**
22140
- * Returns a string value for the darkened color.
22141
- *
22142
- * @example
22143
- * // Styles as object usage
22144
- * const styles = {
22145
- * background: darken(0.2, '#FFCD64'),
22146
- * background: darken('0.2', 'rgba(255,205,100,0.7)'),
22147
- * }
22148
- *
22149
- * // styled-components usage
22150
- * const div = styled.div`
22151
- * background: ${darken(0.2, '#FFCD64')};
22152
- * background: ${darken('0.2', 'rgba(255,205,100,0.7)')};
22153
- * `
22154
- *
22155
- * // CSS in JS Output
22156
- *
22157
- * element {
22158
- * background: "#ffbd31";
22159
- * background: "rgba(255,189,49,0.7)";
22160
- * }
22161
- */
22162
- function darken(amount, color) {
22163
- if (color === 'transparent') return color;
22164
- var hslColor = parseToHsl(color);
22165
- return toColorString(_extends$1({}, hslColor, {
22166
- lightness: guard(0, 1, hslColor.lightness - parseFloat(amount))
22167
- }));
22168
- }
22169
-
22170
- // prettier-ignore
22171
- var curriedDarken = curry /* ::<number | string, string, string> */(darken);
22172
-
22173
- /**
22174
- * Decreases the intensity of a color. Its range is between 0 to 1. The first
22175
- * argument of the desaturate function is the amount by how much the color
22176
- * intensity should be decreased.
22177
- *
22178
- * @example
22179
- * // Styles as object usage
22180
- * const styles = {
22181
- * background: desaturate(0.2, '#CCCD64'),
22182
- * background: desaturate('0.2', 'rgba(204,205,100,0.7)'),
22183
- * }
22184
- *
22185
- * // styled-components usage
22186
- * const div = styled.div`
22187
- * background: ${desaturate(0.2, '#CCCD64')};
22188
- * background: ${desaturate('0.2', 'rgba(204,205,100,0.7)')};
22189
- * `
22190
- *
22191
- * // CSS in JS Output
22192
- * element {
22193
- * background: "#b8b979";
22194
- * background: "rgba(184,185,121,0.7)";
22195
- * }
22196
- */
22197
- function desaturate(amount, color) {
22198
- if (color === 'transparent') return color;
22199
- var hslColor = parseToHsl(color);
22200
- return toColorString(_extends$1({}, hslColor, {
22201
- saturation: guard(0, 1, hslColor.saturation - parseFloat(amount))
22202
- }));
22203
- }
22204
-
22205
- // prettier-ignore
22206
- var curriedDesaturate = curry /* ::<number | string, string, string> */(desaturate);
22207
-
22208
- /**
22209
- * Returns a string value for the lightened color.
22210
- *
22211
- * @example
22212
- * // Styles as object usage
22213
- * const styles = {
22214
- * background: lighten(0.2, '#CCCD64'),
22215
- * background: lighten('0.2', 'rgba(204,205,100,0.7)'),
22216
- * }
22217
- *
22218
- * // styled-components usage
22219
- * const div = styled.div`
22220
- * background: ${lighten(0.2, '#FFCD64')};
22221
- * background: ${lighten('0.2', 'rgba(204,205,100,0.7)')};
22222
- * `
22223
- *
22224
- * // CSS in JS Output
22225
- *
22226
- * element {
22227
- * background: "#e5e6b1";
22228
- * background: "rgba(229,230,177,0.7)";
22229
- * }
22230
- */
22231
- function lighten(amount, color) {
22232
- if (color === 'transparent') return color;
22233
- var hslColor = parseToHsl(color);
22234
- return toColorString(_extends$1({}, hslColor, {
22235
- lightness: guard(0, 1, hslColor.lightness + parseFloat(amount))
22236
- }));
22237
- }
22238
-
22239
- // prettier-ignore
22240
- var curriedLighten = curry /* ::<number | string, string, string> */(lighten);
22241
-
22242
21679
  /**
22243
21680
  * Mixes the two provided colors together by calculating the average of each of the RGB components weighted to the first color by the provided weight.
22244
21681
  *
@@ -22265,21 +21702,25 @@ var curriedLighten = curry /* ::<number | string, string, string> */(lighten);
22265
21702
  * background: "rgba(63, 0, 191, 0.75)";
22266
21703
  * }
22267
21704
  */
21705
+
22268
21706
  function mix$1(weight, color, otherColor) {
22269
21707
  if (color === 'transparent') return otherColor;
22270
21708
  if (otherColor === 'transparent') return color;
22271
21709
  if (weight === 0) return otherColor;
22272
21710
  var parsedColor1 = parseToRgb(color);
21711
+
22273
21712
  var color1 = _extends$1({}, parsedColor1, {
22274
21713
  alpha: typeof parsedColor1.alpha === 'number' ? parsedColor1.alpha : 1
22275
21714
  });
21715
+
22276
21716
  var parsedColor2 = parseToRgb(otherColor);
21717
+
22277
21718
  var color2 = _extends$1({}, parsedColor2, {
22278
21719
  alpha: typeof parsedColor2.alpha === 'number' ? parsedColor2.alpha : 1
22279
- });
22280
-
22281
- // The formula is copied from the original Sass implementation:
21720
+ }); // The formula is copied from the original Sass implementation:
22282
21721
  // http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method
21722
+
21723
+
22283
21724
  var alphaDelta = color1.alpha - color2.alpha;
22284
21725
  var x = parseFloat(weight) * 2 - 1;
22285
21726
  var y = x * alphaDelta === -1 ? x : x + alphaDelta;
@@ -22293,217 +21734,13 @@ function mix$1(weight, color, otherColor) {
22293
21734
  alpha: color1.alpha * parseFloat(weight) + color2.alpha * (1 - parseFloat(weight))
22294
21735
  };
22295
21736
  return rgba$1(mixedColor);
22296
- }
22297
-
22298
- // prettier-ignore
22299
- var curriedMix = curry /* ::<number | string, string, string, string> */(mix$1);
22300
- var mix$1$1 = curriedMix;
22301
-
22302
- /**
22303
- * Increases the opacity of a color. Its range for the amount is between 0 to 1.
22304
- *
22305
- *
22306
- * @example
22307
- * // Styles as object usage
22308
- * const styles = {
22309
- * background: opacify(0.1, 'rgba(255, 255, 255, 0.9)');
22310
- * background: opacify(0.2, 'hsla(0, 0%, 100%, 0.5)'),
22311
- * background: opacify('0.5', 'rgba(255, 0, 0, 0.2)'),
22312
- * }
22313
- *
22314
- * // styled-components usage
22315
- * const div = styled.div`
22316
- * background: ${opacify(0.1, 'rgba(255, 255, 255, 0.9)')};
22317
- * background: ${opacify(0.2, 'hsla(0, 0%, 100%, 0.5)')},
22318
- * background: ${opacify('0.5', 'rgba(255, 0, 0, 0.2)')},
22319
- * `
22320
- *
22321
- * // CSS in JS Output
22322
- *
22323
- * element {
22324
- * background: "#fff";
22325
- * background: "rgba(255,255,255,0.7)";
22326
- * background: "rgba(255,0,0,0.7)";
22327
- * }
22328
- */
22329
- function opacify(amount, color) {
22330
- if (color === 'transparent') return color;
22331
- var parsedColor = parseToRgb(color);
22332
- var alpha = typeof parsedColor.alpha === 'number' ? parsedColor.alpha : 1;
22333
- var colorWithAlpha = _extends$1({}, parsedColor, {
22334
- alpha: guard(0, 1, (alpha * 100 + parseFloat(amount) * 100) / 100)
22335
- });
22336
- return rgba$1(colorWithAlpha);
22337
- }
22338
-
22339
- // prettier-ignore
22340
- var curriedOpacify = curry /* ::<number | string, string, string> */(opacify);
22341
-
22342
- /**
22343
- * Increases the intensity of a color. Its range is between 0 to 1. The first
22344
- * argument of the saturate function is the amount by how much the color
22345
- * intensity should be increased.
22346
- *
22347
- * @example
22348
- * // Styles as object usage
22349
- * const styles = {
22350
- * background: saturate(0.2, '#CCCD64'),
22351
- * background: saturate('0.2', 'rgba(204,205,100,0.7)'),
22352
- * }
22353
- *
22354
- * // styled-components usage
22355
- * const div = styled.div`
22356
- * background: ${saturate(0.2, '#FFCD64')};
22357
- * background: ${saturate('0.2', 'rgba(204,205,100,0.7)')};
22358
- * `
22359
- *
22360
- * // CSS in JS Output
22361
- *
22362
- * element {
22363
- * background: "#e0e250";
22364
- * background: "rgba(224,226,80,0.7)";
22365
- * }
22366
- */
22367
- function saturate(amount, color) {
22368
- if (color === 'transparent') return color;
22369
- var hslColor = parseToHsl(color);
22370
- return toColorString(_extends$1({}, hslColor, {
22371
- saturation: guard(0, 1, hslColor.saturation + parseFloat(amount))
22372
- }));
22373
- }
22374
-
22375
- // prettier-ignore
22376
- var curriedSaturate = curry /* ::<number | string, string, string> */(saturate);
22377
-
22378
- /**
22379
- * Sets the hue of a color to the provided value. The hue range can be
22380
- * from 0 and 359.
22381
- *
22382
- * @example
22383
- * // Styles as object usage
22384
- * const styles = {
22385
- * background: setHue(42, '#CCCD64'),
22386
- * background: setHue('244', 'rgba(204,205,100,0.7)'),
22387
- * }
22388
- *
22389
- * // styled-components usage
22390
- * const div = styled.div`
22391
- * background: ${setHue(42, '#CCCD64')};
22392
- * background: ${setHue('244', 'rgba(204,205,100,0.7)')};
22393
- * `
22394
- *
22395
- * // CSS in JS Output
22396
- * element {
22397
- * background: "#cdae64";
22398
- * background: "rgba(107,100,205,0.7)";
22399
- * }
22400
- */
22401
- function setHue(hue, color) {
22402
- if (color === 'transparent') return color;
22403
- return toColorString(_extends$1({}, parseToHsl(color), {
22404
- hue: parseFloat(hue)
22405
- }));
22406
- }
22407
-
22408
- // prettier-ignore
22409
- var curriedSetHue = curry /* ::<number | string, string, string> */(setHue);
22410
-
22411
- /**
22412
- * Sets the lightness of a color to the provided value. The lightness range can be
22413
- * from 0 and 1.
22414
- *
22415
- * @example
22416
- * // Styles as object usage
22417
- * const styles = {
22418
- * background: setLightness(0.2, '#CCCD64'),
22419
- * background: setLightness('0.75', 'rgba(204,205,100,0.7)'),
22420
- * }
22421
- *
22422
- * // styled-components usage
22423
- * const div = styled.div`
22424
- * background: ${setLightness(0.2, '#CCCD64')};
22425
- * background: ${setLightness('0.75', 'rgba(204,205,100,0.7)')};
22426
- * `
22427
- *
22428
- * // CSS in JS Output
22429
- * element {
22430
- * background: "#4d4d19";
22431
- * background: "rgba(223,224,159,0.7)";
22432
- * }
22433
- */
22434
- function setLightness(lightness, color) {
22435
- if (color === 'transparent') return color;
22436
- return toColorString(_extends$1({}, parseToHsl(color), {
22437
- lightness: parseFloat(lightness)
22438
- }));
22439
- }
22440
-
22441
- // prettier-ignore
22442
- var curriedSetLightness = curry /* ::<number | string, string, string> */(setLightness);
22443
-
22444
- /**
22445
- * Sets the saturation of a color to the provided value. The saturation range can be
22446
- * from 0 and 1.
22447
- *
22448
- * @example
22449
- * // Styles as object usage
22450
- * const styles = {
22451
- * background: setSaturation(0.2, '#CCCD64'),
22452
- * background: setSaturation('0.75', 'rgba(204,205,100,0.7)'),
22453
- * }
22454
- *
22455
- * // styled-components usage
22456
- * const div = styled.div`
22457
- * background: ${setSaturation(0.2, '#CCCD64')};
22458
- * background: ${setSaturation('0.75', 'rgba(204,205,100,0.7)')};
22459
- * `
22460
- *
22461
- * // CSS in JS Output
22462
- * element {
22463
- * background: "#adad84";
22464
- * background: "rgba(228,229,76,0.7)";
22465
- * }
22466
- */
22467
- function setSaturation(saturation, color) {
22468
- if (color === 'transparent') return color;
22469
- return toColorString(_extends$1({}, parseToHsl(color), {
22470
- saturation: parseFloat(saturation)
22471
- }));
22472
- }
21737
+ } // prettier-ignore
22473
21738
 
22474
- // prettier-ignore
22475
- var curriedSetSaturation = curry /* ::<number | string, string, string> */(setSaturation);
22476
21739
 
22477
- /**
22478
- * Shades a color by mixing it with black. `shade` can produce
22479
- * hue shifts, where as `darken` manipulates the luminance channel and therefore
22480
- * doesn't produce hue shifts.
22481
- *
22482
- * @example
22483
- * // Styles as object usage
22484
- * const styles = {
22485
- * background: shade(0.25, '#00f')
22486
- * }
22487
- *
22488
- * // styled-components usage
22489
- * const div = styled.div`
22490
- * background: ${shade(0.25, '#00f')};
22491
- * `
22492
- *
22493
- * // CSS in JS Output
22494
- *
22495
- * element {
22496
- * background: "#00003f";
22497
- * }
22498
- */
22499
-
22500
- function shade(percentage, color) {
22501
- if (color === 'transparent') return color;
22502
- return mix$1$1(parseFloat(percentage), 'rgb(0, 0, 0)', color);
22503
- }
22504
-
22505
- // prettier-ignore
22506
- var curriedShade = curry /* ::<number | string, string, string> */(shade);
21740
+ var curriedMix = /*#__PURE__*/curry
21741
+ /* ::<number | string, string, string, string> */
21742
+ (mix$1);
21743
+ var mix$1$1 = curriedMix;
22507
21744
 
22508
21745
  /**
22509
21746
  * Tints a color by mixing it with white. `tint` can produce
@@ -22531,51 +21768,13 @@ var curriedShade = curry /* ::<number | string, string, string> */(shade);
22531
21768
  function tint(percentage, color) {
22532
21769
  if (color === 'transparent') return color;
22533
21770
  return mix$1$1(parseFloat(percentage), 'rgb(255, 255, 255)', color);
22534
- }
21771
+ } // prettier-ignore
22535
21772
 
22536
- // prettier-ignore
22537
- var curriedTint = curry /* ::<number | string, string, string> */(tint);
22538
- var curriedTint$1 = curriedTint;
22539
21773
 
22540
- /**
22541
- * Decreases the opacity of a color. Its range for the amount is between 0 to 1.
22542
- *
22543
- *
22544
- * @example
22545
- * // Styles as object usage
22546
- * const styles = {
22547
- * background: transparentize(0.1, '#fff'),
22548
- * background: transparentize(0.2, 'hsl(0, 0%, 100%)'),
22549
- * background: transparentize('0.5', 'rgba(255, 0, 0, 0.8)'),
22550
- * }
22551
- *
22552
- * // styled-components usage
22553
- * const div = styled.div`
22554
- * background: ${transparentize(0.1, '#fff')};
22555
- * background: ${transparentize(0.2, 'hsl(0, 0%, 100%)')};
22556
- * background: ${transparentize('0.5', 'rgba(255, 0, 0, 0.8)')};
22557
- * `
22558
- *
22559
- * // CSS in JS Output
22560
- *
22561
- * element {
22562
- * background: "rgba(255,255,255,0.9)";
22563
- * background: "rgba(255,255,255,0.8)";
22564
- * background: "rgba(255,0,0,0.3)";
22565
- * }
22566
- */
22567
- function transparentize(amount, color) {
22568
- if (color === 'transparent') return color;
22569
- var parsedColor = parseToRgb(color);
22570
- var alpha = typeof parsedColor.alpha === 'number' ? parsedColor.alpha : 1;
22571
- var colorWithAlpha = _extends$1({}, parsedColor, {
22572
- alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100)
22573
- });
22574
- return rgba$1(colorWithAlpha);
22575
- }
22576
-
22577
- // prettier-ignore
22578
- var curriedTransparentize = curry /* ::<number | string, string, string> */(transparentize);
21774
+ var curriedTint = /*#__PURE__*/curry
21775
+ /* ::<number | string, string, string> */
21776
+ (tint);
21777
+ var curriedTint$1 = curriedTint;
22579
21778
 
22580
21779
  var linkColor = MATISSE_BLUE;
22581
21780
  var fallbackValues$8 = {
@@ -22710,6 +21909,8 @@ var ExternalLink = /*#__PURE__*/forwardRef(function (_ref, ref) {
22710
21909
  extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles,
22711
21910
  _ref$variant = _ref.variant,
22712
21911
  variant = _ref$variant === void 0 ? "primary" : _ref$variant,
21912
+ _ref$containerTabInde = _ref.containerTabIndex,
21913
+ containerTabIndex = _ref$containerTabInde === void 0 ? "-1" : _ref$containerTabInde,
22713
21914
  _ref$tabIndex = _ref.tabIndex,
22714
21915
  tabIndex = _ref$tabIndex === void 0 ? "0" : _ref$tabIndex,
22715
21916
  dataQa = _ref.dataQa,
@@ -22717,7 +21918,21 @@ var ExternalLink = /*#__PURE__*/forwardRef(function (_ref, ref) {
22717
21918
  children = _ref.children;
22718
21919
  var themeContext = useContext(ThemeContext);
22719
21920
  var themeValues = createThemeValues(themeContext, fallbackValues$a, "Link", variant);
22720
- return /*#__PURE__*/React.createElement(StyledExternalLink, {
21921
+ var handleKeyDown = function handleKeyDown(event) {
21922
+ // This is to address an issue on Safari where the link's tab order and Enter key were not being recognized
21923
+ if (event.key === "Enter" || event.keyCode === 13) {
21924
+ if (newTab) {
21925
+ window.open(href, "_blank");
21926
+ } else {
21927
+ window.location.href = href;
21928
+ }
21929
+ }
21930
+ };
21931
+ return /*#__PURE__*/React.createElement(Box, {
21932
+ padding: "0",
21933
+ tabIndex: containerTabIndex,
21934
+ onKeyDown: handleKeyDown
21935
+ }, /*#__PURE__*/React.createElement(StyledExternalLink, {
22721
21936
  href: href,
22722
21937
  target: newTab ? "_blank" : "",
22723
21938
  color: themeValues.externalLinkColor,
@@ -22733,7 +21948,7 @@ var ExternalLink = /*#__PURE__*/forwardRef(function (_ref, ref) {
22733
21948
  "data-qa": dataQa,
22734
21949
  "aria-label": ariaLabel,
22735
21950
  ref: ref
22736
- }, safeChildren(children, /*#__PURE__*/React.createElement("span", null)));
21951
+ }, safeChildren(children, /*#__PURE__*/React.createElement("span", null))));
22737
21952
  });
22738
21953
 
22739
21954
  var _excluded$s = ["hoverColor", "activeColor", "active", "color", "extrastyles"];
@@ -23879,19 +23094,32 @@ var toIndexedObject = function (it) {
23879
23094
  return indexedObject(requireObjectCoercible(it));
23880
23095
  };
23881
23096
 
23882
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
23883
23097
  var documentAll = typeof document == 'object' && document.all;
23884
23098
 
23099
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
23100
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
23101
+ var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
23102
+
23103
+ var documentAll_1 = {
23104
+ all: documentAll,
23105
+ IS_HTMLDDA: IS_HTMLDDA
23106
+ };
23107
+
23108
+ var documentAll$1 = documentAll_1.all;
23109
+
23885
23110
  // `IsCallable` abstract operation
23886
23111
  // https://tc39.es/ecma262/#sec-iscallable
23887
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
23888
- var isCallable = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
23889
- return typeof argument == 'function' || argument === documentAll;
23112
+ var isCallable = documentAll_1.IS_HTMLDDA ? function (argument) {
23113
+ return typeof argument == 'function' || argument === documentAll$1;
23890
23114
  } : function (argument) {
23891
23115
  return typeof argument == 'function';
23892
23116
  };
23893
23117
 
23894
- var isObject = function (it) {
23118
+ var documentAll$2 = documentAll_1.all;
23119
+
23120
+ var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
23121
+ return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
23122
+ } : function (it) {
23895
23123
  return typeof it == 'object' ? it !== null : isCallable(it);
23896
23124
  };
23897
23125
 
@@ -24027,10 +23255,10 @@ var shared = createCommonjsModule(function (module) {
24027
23255
  (module.exports = function (key, value) {
24028
23256
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
24029
23257
  })('versions', []).push({
24030
- version: '3.35.1',
23258
+ version: '3.33.3',
24031
23259
  mode: 'global',
24032
- copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
24033
- license: 'https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE',
23260
+ copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
23261
+ license: 'https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE',
24034
23262
  source: 'https://github.com/zloirock/core-js'
24035
23263
  });
24036
23264
  });
@@ -24327,7 +23555,7 @@ var TEMPLATE = String(String).split('String');
24327
23555
 
24328
23556
  var makeBuiltIn = module.exports = function (value, name, options) {
24329
23557
  if (stringSlice($String(name), 0, 7) === 'Symbol(') {
24330
- name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
23558
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
24331
23559
  }
24332
23560
  if (options && options.getter) name = 'get ' + name;
24333
23561
  if (options && options.setter) name = 'set ' + name;
@@ -24415,8 +23643,7 @@ var min$1 = Math.min;
24415
23643
  // `ToLength` abstract operation
24416
23644
  // https://tc39.es/ecma262/#sec-tolength
24417
23645
  var toLength = function (argument) {
24418
- var len = toIntegerOrInfinity(argument);
24419
- return len > 0 ? min$1(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
23646
+ return argument > 0 ? min$1(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
24420
23647
  };
24421
23648
 
24422
23649
  // `LengthOfArrayLike` abstract operation
@@ -24576,7 +23803,7 @@ var _export = function (options, source) {
24576
23803
  } else if (STATIC) {
24577
23804
  target = global_1[TARGET] || defineGlobalProperty(TARGET, {});
24578
23805
  } else {
24579
- target = global_1[TARGET] && global_1[TARGET].prototype;
23806
+ target = (global_1[TARGET] || {}).prototype;
24580
23807
  }
24581
23808
  if (target) for (key in source) {
24582
23809
  sourceProperty = source[key];
@@ -24839,15 +24066,11 @@ var functionUncurryThisAccessor = function (object, key, method) {
24839
24066
  } catch (error) { /* empty */ }
24840
24067
  };
24841
24068
 
24842
- var isPossiblePrototype = function (argument) {
24843
- return isObject(argument) || argument === null;
24844
- };
24845
-
24846
24069
  var $String$4 = String;
24847
24070
  var $TypeError$6 = TypeError;
24848
24071
 
24849
24072
  var aPossiblePrototype = function (argument) {
24850
- if (isPossiblePrototype(argument)) return argument;
24073
+ if (typeof argument == 'object' || isCallable(argument)) return argument;
24851
24074
  throw new $TypeError$6("Can't set " + $String$4(argument) + ' as a prototype');
24852
24075
  };
24853
24076
 
@@ -45739,6 +44962,7 @@ var Modal$1 = function Modal(_ref) {
45739
44962
  }))) : /*#__PURE__*/React.createElement(Box, {
45740
44963
  padding: "0.5rem"
45741
44964
  }, /*#__PURE__*/React.createElement(ButtonWithAction, {
44965
+ tabIndex: "0",
45742
44966
  action: hideModal,
45743
44967
  variant: "primary",
45744
44968
  text: closeButtonText,