@spothero/ui 22.3.9-beta.0 → 22.3.9-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1450,31 +1450,6 @@ function getDefaultExportFromCjs (x) {
1450
1450
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
1451
1451
  }
1452
1452
 
1453
- function getAugmentedNamespace(n) {
1454
- if (n.__esModule) return n;
1455
- var f = n.default;
1456
- if (typeof f == "function") {
1457
- var a = function a () {
1458
- if (this instanceof a) {
1459
- return Reflect.construct(f, arguments, this.constructor);
1460
- }
1461
- return f.apply(this, arguments);
1462
- };
1463
- a.prototype = f.prototype;
1464
- } else a = {};
1465
- Object.defineProperty(a, '__esModule', {value: true});
1466
- Object.keys(n).forEach(function (k) {
1467
- var d = Object.getOwnPropertyDescriptor(n, k);
1468
- Object.defineProperty(a, k, d.get ? d : {
1469
- enumerable: true,
1470
- get: function () {
1471
- return n[k];
1472
- }
1473
- });
1474
- });
1475
- return a;
1476
- }
1477
-
1478
1453
  var reactIs = {exports: {}};
1479
1454
 
1480
1455
  var reactIs_production_min = {};
@@ -4770,12 +4745,12 @@ function isUndefined(value) {
4770
4745
  return typeof value === "undefined" || value === undefined;
4771
4746
  } // Object assertions
4772
4747
 
4773
- function isObject$1(value) {
4748
+ function isObject(value) {
4774
4749
  var type = _typeof$1(value);
4775
4750
  return value != null && (type === "object" || type === "function") && !isArray$1(value);
4776
4751
  }
4777
4752
  function isEmptyObject(value) {
4778
- return isObject$1(value) && Object.keys(value).length === 0;
4753
+ return isObject(value) && Object.keys(value).length === 0;
4779
4754
  }
4780
4755
  function isNull(value) {
4781
4756
  return value == null;
@@ -4793,7 +4768,7 @@ function isRefObject$1(val) {
4793
4768
  return "current" in val;
4794
4769
  }
4795
4770
  function isInputEvent(value) {
4796
- return value && isObject$1(value) && isObject$1(value.target);
4771
+ return value && isObject(value) && isObject(value.target);
4797
4772
  }
4798
4773
  function omit(object, keys) {
4799
4774
  var result = {};
@@ -4991,7 +4966,7 @@ function analyzeBreakpoints(breakpoints) {
4991
4966
  return queryString(minW);
4992
4967
  }).slice(1)),
4993
4968
  toArrayValue: function toArrayValue(test) {
4994
- if (!isObject$1(test)) {
4969
+ if (!isObject(test)) {
4995
4970
  throw new Error("toArrayValue: value must be an object");
4996
4971
  }
4997
4972
  var result = _keysArr.map(function (bp) {
@@ -5336,13 +5311,13 @@ function flatten(target, maxDepth) {
5336
5311
  if (maxDepth === void 0) {
5337
5312
  maxDepth = Infinity;
5338
5313
  }
5339
- if (!isObject$1(target) && !Array.isArray(target) || !maxDepth) {
5314
+ if (!isObject(target) && !Array.isArray(target) || !maxDepth) {
5340
5315
  return target;
5341
5316
  }
5342
5317
  return Object.entries(target).reduce(function (result, _ref) {
5343
5318
  var key = _ref[0],
5344
5319
  value = _ref[1];
5345
- if (isObject$1(value) || isArray$1(value)) {
5320
+ if (isObject(value) || isArray$1(value)) {
5346
5321
  Object.entries(flatten(value, maxDepth - 1)).forEach(function (_ref2) {
5347
5322
  var childKey = _ref2[0],
5348
5323
  childValue = _ref2[1];
@@ -5497,7 +5472,7 @@ function mapResponsive(prop, mapper) {
5497
5472
  return mapper(item);
5498
5473
  });
5499
5474
  }
5500
- if (isObject$1(prop)) {
5475
+ if (isObject(prop)) {
5501
5476
  return objectKeys(prop).reduce(function (result, key) {
5502
5477
  result[key] = mapper(prop[key]);
5503
5478
  return result;
@@ -6688,7 +6663,7 @@ if (__DEV__) {
6688
6663
  Portal.displayName = "Portal";
6689
6664
  }
6690
6665
 
6691
- var doc$1 = {
6666
+ var doc = {
6692
6667
  body: {
6693
6668
  classList: {
6694
6669
  add: function add() {},
@@ -6727,10 +6702,10 @@ var doc$1 = {
6727
6702
  };
6728
6703
  }
6729
6704
  };
6730
- var ssrDocument$1 = doc$1;
6705
+ var ssrDocument = doc;
6731
6706
  var noop$2 = function noop() {};
6732
- var win$1 = {
6733
- document: ssrDocument$1,
6707
+ var win = {
6708
+ document: ssrDocument,
6734
6709
  navigator: {
6735
6710
  userAgent: ""
6736
6711
  },
@@ -6773,10 +6748,10 @@ var win$1 = {
6773
6748
  },
6774
6749
  clearInterval: noop$2
6775
6750
  };
6776
- var ssrWindow$1 = win$1;
6751
+ var ssrWindow = win;
6777
6752
  var mockEnv = {
6778
- window: ssrWindow$1,
6779
- document: ssrDocument$1
6753
+ window: ssrWindow,
6754
+ document: ssrDocument
6780
6755
  };
6781
6756
  var defaultEnv = isBrowser$5 ? {
6782
6757
  window: window,
@@ -7076,7 +7051,7 @@ var tokenToCSSVar = function tokenToCSSVar(scale, value) {
7076
7051
  return function (theme) {
7077
7052
  var valueStr = String(value);
7078
7053
  var key = scale ? scale + "." + valueStr : valueStr;
7079
- return isObject$1(theme.__cssMap) && key in theme.__cssMap ? theme.__cssMap[key].varRef : value;
7054
+ return isObject(theme.__cssMap) && key in theme.__cssMap ? theme.__cssMap[key].varRef : value;
7080
7055
  };
7081
7056
  };
7082
7057
  function createTransform(options) {
@@ -8434,7 +8409,7 @@ var expandResponsive = function expandResponsive(styles) {
8434
8409
  var value = runIfFn(styles[key], theme);
8435
8410
  if (value == null) continue; // converts the object responsive syntax to array syntax
8436
8411
 
8437
- value = isObject$1(value) && isResponsive(value) ? toArrayValue(value) : value;
8412
+ value = isObject(value) && isResponsive(value) ? toArrayValue(value) : value;
8438
8413
  if (!Array.isArray(value)) {
8439
8414
  computedStyles[key] = value;
8440
8415
  continue;
@@ -8525,7 +8500,7 @@ function getCss(options) {
8525
8500
  property: key
8526
8501
  };
8527
8502
  }
8528
- if (isObject$1(value)) {
8503
+ if (isObject(value)) {
8529
8504
  var _computedStyles$key;
8530
8505
  computedStyles[key] = (_computedStyles$key = computedStyles[key]) != null ? _computedStyles$key : {};
8531
8506
  computedStyles[key] = mergeWith({}, computedStyles[key], css(value, true));
@@ -8562,14 +8537,14 @@ function getCss(options) {
8562
8537
  continue;
8563
8538
  }
8564
8539
  if (configProperty) {
8565
- if (configProperty === "&" && isObject$1(rawValue)) {
8540
+ if (configProperty === "&" && isObject(rawValue)) {
8566
8541
  computedStyles = mergeWith({}, computedStyles, rawValue);
8567
8542
  } else {
8568
8543
  computedStyles[configProperty] = rawValue;
8569
8544
  }
8570
8545
  continue;
8571
8546
  }
8572
- if (isObject$1(rawValue)) {
8547
+ if (isObject(rawValue)) {
8573
8548
  computedStyles = mergeWith({}, computedStyles, rawValue);
8574
8549
  continue;
8575
8550
  }
@@ -8595,7 +8570,7 @@ var css$3 = function css(styles) {
8595
8570
  */
8596
8571
 
8597
8572
  function resolveReference(operand) {
8598
- if (isObject$1(operand) && operand.reference) {
8573
+ if (isObject(operand) && operand.reference) {
8599
8574
  return operand.reference;
8600
8575
  }
8601
8576
  return String(operand);
@@ -8772,7 +8747,7 @@ function createThemeVars(flatTokens, options) {
8772
8747
  reference = _tokenToCssVar2.reference;
8773
8748
  return reference;
8774
8749
  };
8775
- var normalizedValue = isObject$1(value) ? value : {
8750
+ var normalizedValue = isObject(value) ? value : {
8776
8751
  "default": value
8777
8752
  };
8778
8753
  cssVars = mergeWith(cssVars, Object.entries(normalizedValue).reduce(function (acc, _ref) {
@@ -11269,7 +11244,7 @@ function anatomy$1(name) {
11269
11244
  return new Anatomy$1(name);
11270
11245
  }
11271
11246
  function toRef$1(operand) {
11272
- if (isObject$1(operand) && operand.reference) {
11247
+ if (isObject(operand) && operand.reference) {
11273
11248
  return operand.reference;
11274
11249
  }
11275
11250
  return String(operand);
@@ -14470,7 +14445,7 @@ var styles$4 = {
14470
14445
  var styles$1$2 = styles$4;
14471
14446
  var requiredChakraThemeKeys = ["borders", "breakpoints", "colors", "components", "config", "direction", "fonts", "fontSizes", "fontWeights", "letterSpacings", "lineHeights", "radii", "shadows", "sizes", "space", "styles", "transition", "zIndices"];
14472
14447
  function isChakraTheme(unit) {
14473
- if (!isObject$1(unit)) {
14448
+ if (!isObject(unit)) {
14474
14449
  return false;
14475
14450
  }
14476
14451
  return requiredChakraThemeKeys.every(function (propertyName) {
@@ -14609,19 +14584,19 @@ function createIcon(options) {
14609
14584
  return Comp;
14610
14585
  }
14611
14586
 
14612
- /******************************************************************************
14613
- Copyright (c) Microsoft Corporation.
14614
-
14615
- Permission to use, copy, modify, and/or distribute this software for any
14616
- purpose with or without fee is hereby granted.
14617
-
14618
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14619
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
14620
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
14621
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
14622
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14623
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14624
- PERFORMANCE OF THIS SOFTWARE.
14587
+ /******************************************************************************
14588
+ Copyright (c) Microsoft Corporation.
14589
+
14590
+ Permission to use, copy, modify, and/or distribute this software for any
14591
+ purpose with or without fee is hereby granted.
14592
+
14593
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14594
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
14595
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
14596
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
14597
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14598
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14599
+ PERFORMANCE OF THIS SOFTWARE.
14625
14600
  ***************************************************************************** */
14626
14601
  /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
14627
14602
 
@@ -14643,17 +14618,17 @@ function __extends(d, b) {
14643
14618
  }
14644
14619
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14645
14620
  }
14646
- var _assign$1 = function __assign() {
14647
- _assign$1 = Object.assign || function __assign(t) {
14621
+ var _assign = function __assign() {
14622
+ _assign = Object.assign || function __assign(t) {
14648
14623
  for (var s, i = 1, n = arguments.length; i < n; i++) {
14649
14624
  s = arguments[i];
14650
14625
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
14651
14626
  }
14652
14627
  return t;
14653
14628
  };
14654
- return _assign$1.apply(this, arguments);
14629
+ return _assign.apply(this, arguments);
14655
14630
  };
14656
- function __rest$1(s, e) {
14631
+ function __rest(s, e) {
14657
14632
  var t = {};
14658
14633
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
14659
14634
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -14770,7 +14745,7 @@ function useFeatures(props, visualElement, preloadedFeatures) {
14770
14745
  * was producing a lot of duplication amongst bundles.
14771
14746
  */
14772
14747
  if (isEnabled(props) && Component) {
14773
- features.push( /*#__PURE__*/React.createElement(Component, _assign$1({
14748
+ features.push( /*#__PURE__*/React.createElement(Component, _assign({
14774
14749
  key: name_1
14775
14750
  }, props, {
14776
14751
  visualElement: visualElement
@@ -14919,7 +14894,7 @@ function useVisualElement(Component, visualState, props, createVisualElement) {
14919
14894
  visualElementRef.current = createVisualElement(Component, {
14920
14895
  visualState: visualState,
14921
14896
  parent: parent,
14922
- props: _assign$1(_assign$1({}, props), {
14897
+ props: _assign(_assign({}, props), {
14923
14898
  layoutId: layoutId
14924
14899
  }),
14925
14900
  presenceId: presenceContext === null || presenceContext === void 0 ? void 0 : presenceContext.id,
@@ -14929,7 +14904,7 @@ function useVisualElement(Component, visualState, props, createVisualElement) {
14929
14904
  var visualElement = visualElementRef.current;
14930
14905
  useIsomorphicLayoutEffect(function () {
14931
14906
  if (!visualElement) return;
14932
- visualElement.setProps(_assign$1(_assign$1(_assign$1({}, config), props), {
14907
+ visualElement.setProps(_assign(_assign(_assign({}, config), props), {
14933
14908
  layoutId: layoutId
14934
14909
  }));
14935
14910
  visualElement.isPresent = isPresent(presenceContext);
@@ -15374,10 +15349,10 @@ var number = {
15374
15349
  return v;
15375
15350
  }
15376
15351
  };
15377
- var alpha = _assign$1(_assign$1({}, number), {
15352
+ var alpha = _assign(_assign({}, number), {
15378
15353
  transform: clamp$1(0, 1)
15379
15354
  });
15380
- var scale$1 = _assign$1(_assign$1({}, number), {
15355
+ var scale$1 = _assign(_assign({}, number), {
15381
15356
  "default": 1
15382
15357
  });
15383
15358
 
@@ -15397,7 +15372,7 @@ var percent = createUnitType('%');
15397
15372
  var px = createUnitType('px');
15398
15373
  var vh = createUnitType('vh');
15399
15374
  var vw = createUnitType('vw');
15400
- var progressPercentage = _assign$1(_assign$1({}, percent), {
15375
+ var progressPercentage = _assign(_assign({}, percent), {
15401
15376
  parse: function parse(v) {
15402
15377
  return percent.parse(v) / 100;
15403
15378
  },
@@ -15438,7 +15413,7 @@ var hsla = {
15438
15413
  };
15439
15414
 
15440
15415
  var clampRgbUnit = clamp$1(0, 255);
15441
- var rgbUnit = _assign$1(_assign$1({}, number), {
15416
+ var rgbUnit = _assign(_assign({}, number), {
15442
15417
  transform: function transform(v) {
15443
15418
  return Math.round(clampRgbUnit(v));
15444
15419
  }
@@ -15579,14 +15554,14 @@ function applyDefaultFilter(v) {
15579
15554
  return name + '(' + defaultValue + unit + ')';
15580
15555
  }
15581
15556
  var functionRegex = /([a-z-]*)\(.*?\)/g;
15582
- var filter = _assign$1(_assign$1({}, complex), {
15557
+ var filter = _assign(_assign({}, complex), {
15583
15558
  getAnimatableNone: function getAnimatableNone(v) {
15584
15559
  var functions = v.match(functionRegex);
15585
15560
  return functions ? functions.map(applyDefaultFilter).join(' ') : v;
15586
15561
  }
15587
15562
  });
15588
15563
 
15589
- var _int = _assign$1(_assign$1({}, number), {
15564
+ var _int = _assign(_assign({}, number), {
15590
15565
  transform: Math.round
15591
15566
  });
15592
15567
 
@@ -15771,7 +15746,7 @@ function useInitialMotionValues(_a, visualState, isStatic) {
15771
15746
  }, transformTemplate);
15772
15747
  var vars = state.vars,
15773
15748
  style = state.style;
15774
- return _assign$1(_assign$1({}, vars), style);
15749
+ return _assign(_assign({}, vars), style);
15775
15750
  }, [visualState]);
15776
15751
  }
15777
15752
  function useStyle(props, visualState, isStatic) {
@@ -15921,7 +15896,7 @@ function buildSVGAttrs(state, _a, projection, layoutState, options, transformTem
15921
15896
  _c = _a.pathOffset,
15922
15897
  pathOffset = _c === void 0 ? 0 : _c,
15923
15898
  // This is object creation, which we try to avoid per-frame.
15924
- latest = __rest$1(_a, ["attrX", "attrY", "originX", "originY", "pathLength", "pathSpacing", "pathOffset"]);
15899
+ latest = __rest(_a, ["attrX", "attrY", "originX", "originY", "pathLength", "pathSpacing", "pathOffset"]);
15925
15900
  buildHTMLStyles(state, latest, projection, layoutState, options, transformTemplate, buildProjectionTransform, buildProjectionTransformOrigin);
15926
15901
  state.attrs = state.style;
15927
15902
  state.style = {};
@@ -15951,7 +15926,7 @@ function buildSVGAttrs(state, _a, projection, layoutState, options, transformTem
15951
15926
  }
15952
15927
 
15953
15928
  var createSvgRenderState = function createSvgRenderState() {
15954
- return _assign$1(_assign$1({}, createHtmlRenderState()), {
15929
+ return _assign(_assign({}, createHtmlRenderState()), {
15955
15930
  attrs: {}
15956
15931
  });
15957
15932
  };
@@ -15962,14 +15937,14 @@ function useSVGProps(props, visualState) {
15962
15937
  buildSVGAttrs(state, visualState, undefined, undefined, {
15963
15938
  enableHardwareAcceleration: false
15964
15939
  }, props.transformTemplate);
15965
- return _assign$1(_assign$1({}, state.attrs), {
15966
- style: _assign$1({}, state.style)
15940
+ return _assign(_assign({}, state.attrs), {
15941
+ style: _assign({}, state.style)
15967
15942
  });
15968
15943
  }, [visualState]);
15969
15944
  if (props.style) {
15970
15945
  var rawStyles = {};
15971
15946
  copyRawValuesOnly(rawStyles, props.style, props);
15972
- visualProps.style = _assign$1(_assign$1({}, rawStyles), visualProps.style);
15947
+ visualProps.style = _assign(_assign({}, rawStyles), visualProps.style);
15973
15948
  }
15974
15949
  return visualProps;
15975
15950
  }
@@ -15983,7 +15958,7 @@ function createUseRender(forwardMotionProps) {
15983
15958
  var useVisualProps = isSVGComponent(Component) ? useSVGProps : useHTMLProps;
15984
15959
  var visualProps = useVisualProps(props, latestValues, isStatic);
15985
15960
  var filteredProps = filterProps(props, typeof Component === "string", forwardMotionProps);
15986
- var elementProps = _assign$1(_assign$1(_assign$1({}, filteredProps), visualProps), {
15961
+ var elementProps = _assign(_assign(_assign({}, filteredProps), visualProps), {
15987
15962
  ref: ref
15988
15963
  });
15989
15964
  return /*#__PURE__*/createElement(Component, elementProps);
@@ -16121,7 +16096,7 @@ function makeLatestValues(props, context, presenceContext, scrapeMotionValues) {
16121
16096
  if (!resolved) return;
16122
16097
  var transitionEnd = resolved.transitionEnd;
16123
16098
  resolved.transition;
16124
- var target = __rest$1(resolved, ["transitionEnd", "transition"]);
16099
+ var target = __rest(resolved, ["transitionEnd", "transition"]);
16125
16100
  for (var key in target) values[key] = target[key];
16126
16101
  for (var key in transitionEnd) values[key] = transitionEnd[key];
16127
16102
  });
@@ -16173,7 +16148,7 @@ function createDomMotionConfig(Component, _a, preloadedFeatures, createVisualEle
16173
16148
  var _b = _a.forwardMotionProps,
16174
16149
  forwardMotionProps = _b === void 0 ? false : _b;
16175
16150
  var baseConfig = isSVGComponent(Component) ? svgMotionConfig : htmlMotionConfig;
16176
- return _assign$1(_assign$1({}, baseConfig), {
16151
+ return _assign(_assign({}, baseConfig), {
16177
16152
  preloadedFeatures: preloadedFeatures,
16178
16153
  useRender: createUseRender(forwardMotionProps),
16179
16154
  createVisualElement: createVisualElement,
@@ -16543,7 +16518,7 @@ function isSpringType(options, keys) {
16543
16518
  });
16544
16519
  }
16545
16520
  function getSpringOptions(options) {
16546
- var springOptions = _assign$1({
16521
+ var springOptions = _assign({
16547
16522
  velocity: 0.0,
16548
16523
  stiffness: 100,
16549
16524
  damping: 10,
@@ -16552,7 +16527,7 @@ function getSpringOptions(options) {
16552
16527
  }, options);
16553
16528
  if (!isSpringType(options, physicsKeys) && isSpringType(options, durationKeys)) {
16554
16529
  var derived = findSpring(options);
16555
- springOptions = _assign$1(_assign$1(_assign$1({}, springOptions), derived), {
16530
+ springOptions = _assign(_assign(_assign({}, springOptions), derived), {
16556
16531
  velocity: 0.0,
16557
16532
  mass: 1.0
16558
16533
  });
@@ -16568,7 +16543,7 @@ function spring(_a) {
16568
16543
  _d = _a.restSpeed,
16569
16544
  restSpeed = _d === void 0 ? 2 : _d,
16570
16545
  restDelta = _a.restDelta,
16571
- options = __rest$1(_a, ["from", "to", "restSpeed", "restDelta"]);
16546
+ options = __rest(_a, ["from", "to", "restSpeed", "restDelta"]);
16572
16547
  var state = {
16573
16548
  done: false,
16574
16549
  value: from
@@ -16672,7 +16647,7 @@ var mixColor = function mixColor(from, to) {
16672
16647
  invariant(fromColorType.transform === toColorType.transform, "Both colors must be hex/RGBA, OR both must be HSLA.");
16673
16648
  var fromColor = fromColorType.parse(from);
16674
16649
  var toColor = toColorType.parse(to);
16675
- var blended = _assign$1({}, fromColor);
16650
+ var blended = _assign({}, fromColor);
16676
16651
  var mixFunc = fromColorType === hsla ? mix : mixLinearColor;
16677
16652
  return function (v) {
16678
16653
  for (var key in blended) {
@@ -16727,7 +16702,7 @@ var mixArray = function mixArray(from, to) {
16727
16702
  };
16728
16703
  };
16729
16704
  var mixObject = function mixObject(origin, target) {
16730
- var output = _assign$1(_assign$1({}, origin), target);
16705
+ var output = _assign(_assign({}, origin), target);
16731
16706
  var blendValue = {};
16732
16707
  for (var key in output) {
16733
16708
  if (origin[key] !== undefined && target[key] !== undefined) {
@@ -17075,7 +17050,7 @@ function animate(_a) {
17075
17050
  onComplete = _a.onComplete,
17076
17051
  onRepeat = _a.onRepeat,
17077
17052
  onUpdate = _a.onUpdate,
17078
- options = __rest$1(_a, ["from", "autoplay", "driver", "elapsed", "repeat", "repeatType", "repeatDelay", "onPlay", "onStop", "onComplete", "onRepeat", "onUpdate"]);
17053
+ options = __rest(_a, ["from", "autoplay", "driver", "elapsed", "repeat", "repeatType", "repeatDelay", "onPlay", "onStop", "onComplete", "onRepeat", "onUpdate"]);
17079
17054
  var to = options.to;
17080
17055
  var driverControls;
17081
17056
  var repeatCount = 0;
@@ -17092,7 +17067,7 @@ function animate(_a) {
17092
17067
  from = 0;
17093
17068
  to = 100;
17094
17069
  }
17095
- var animation = animator(_assign$1(_assign$1({}, options), {
17070
+ var animation = animator(_assign(_assign({}, options), {
17096
17071
  from: from,
17097
17072
  to: to
17098
17073
  }));
@@ -17181,7 +17156,7 @@ function inertia(_a) {
17181
17156
  }
17182
17157
  function startAnimation(options) {
17183
17158
  currentAnimation === null || currentAnimation === void 0 ? void 0 : currentAnimation.stop();
17184
- currentAnimation = animate(_assign$1(_assign$1({}, options), {
17159
+ currentAnimation = animate(_assign(_assign({}, options), {
17185
17160
  driver: driver,
17186
17161
  onUpdate: function onUpdate(v) {
17187
17162
  var _a;
@@ -17192,7 +17167,7 @@ function inertia(_a) {
17192
17167
  }));
17193
17168
  }
17194
17169
  function startSpring(options) {
17195
- startAnimation(_assign$1({
17170
+ startAnimation(_assign({
17196
17171
  type: "spring",
17197
17172
  stiffness: bounceStiffness,
17198
17173
  damping: bounceDamping,
@@ -17543,7 +17518,7 @@ var getDefaultTransition = function getDefaultTransition(valueKey, to) {
17543
17518
  } else {
17544
17519
  transitionFactory = defaultTransitions$1[valueKey] || defaultTransitions$1["default"];
17545
17520
  }
17546
- return _assign$1({
17521
+ return _assign({
17547
17522
  to: to
17548
17523
  }, transitionFactory(to));
17549
17524
  };
@@ -17551,7 +17526,7 @@ var getDefaultTransition = function getDefaultTransition(valueKey, to) {
17551
17526
  /**
17552
17527
  * A map of default value types for common values
17553
17528
  */
17554
- var defaultValueTypes = _assign$1(_assign$1({}, numberValueTypes), {
17529
+ var defaultValueTypes = _assign(_assign({}, numberValueTypes), {
17555
17530
  // Color props
17556
17531
  color: color,
17557
17532
  backgroundColor: color,
@@ -17597,7 +17572,7 @@ function isTransitionDefined(_a) {
17597
17572
  _a.repeatType;
17598
17573
  _a.repeatDelay;
17599
17574
  _a.from;
17600
- var transition = __rest$1(_a, ["when", "delay", "delayChildren", "staggerChildren", "staggerDirection", "repeat", "repeatType", "repeatDelay", "from"]);
17575
+ var transition = __rest(_a, ["when", "delay", "delayChildren", "staggerChildren", "staggerDirection", "repeat", "repeatType", "repeatDelay", "from"]);
17601
17576
  return !!Object.keys(transition).length;
17602
17577
  }
17603
17578
  var legacyRepeatWarning = false;
@@ -17610,8 +17585,8 @@ function convertTransitionToAnimationOptions(_a) {
17610
17585
  yoyo = _a.yoyo,
17611
17586
  flip = _a.flip,
17612
17587
  loop = _a.loop,
17613
- transition = __rest$1(_a, ["ease", "times", "yoyo", "flip", "loop"]);
17614
- var options = _assign$1({}, transition);
17588
+ transition = __rest(_a, ["ease", "times", "yoyo", "flip", "loop"]);
17589
+ var options = _assign({}, transition);
17615
17590
  if (times) options["offset"] = times;
17616
17591
  /**
17617
17592
  * Convert any existing durations from seconds to milliseconds
@@ -17676,9 +17651,9 @@ function getPopmotionAnimationOptions(transition, options, key) {
17676
17651
  * Get a default transition if none is determined to be defined.
17677
17652
  */
17678
17653
  if (!isTransitionDefined(transition)) {
17679
- transition = _assign$1(_assign$1({}, transition), getDefaultTransition(key, options.to));
17654
+ transition = _assign(_assign({}, transition), getDefaultTransition(key, options.to));
17680
17655
  }
17681
- return _assign$1(_assign$1({}, options), convertTransitionToAnimationOptions(transition));
17656
+ return _assign(_assign({}, options), convertTransitionToAnimationOptions(transition));
17682
17657
  }
17683
17658
  /**
17684
17659
  *
@@ -17711,7 +17686,7 @@ function getAnimation(key, value, target, transition, onComplete) {
17711
17686
  return value.set(v);
17712
17687
  }
17713
17688
  };
17714
- return valueTransition.type === "inertia" || valueTransition.type === "decay" ? inertia(_assign$1(_assign$1({}, options), valueTransition)) : animate(_assign$1(_assign$1({}, getPopmotionAnimationOptions(valueTransition, options, key)), {
17689
+ return valueTransition.type === "inertia" || valueTransition.type === "decay" ? inertia(_assign(_assign({}, options), valueTransition)) : animate(_assign(_assign({}, getPopmotionAnimationOptions(valueTransition, options, key)), {
17715
17690
  onUpdate: function onUpdate(v) {
17716
17691
  var _a;
17717
17692
  options.onUpdate(v);
@@ -18228,8 +18203,8 @@ function setTarget(visualElement, definition) {
18228
18203
  _b = _a.transitionEnd,
18229
18204
  transitionEnd = _b === void 0 ? {} : _b;
18230
18205
  _a.transition;
18231
- var target = __rest$1(_a, ["transitionEnd", "transition"]);
18232
- target = _assign$1(_assign$1({}, target), transitionEnd);
18206
+ var target = __rest(_a, ["transitionEnd", "transition"]);
18207
+ target = _assign(_assign({}, target), transitionEnd);
18233
18208
  for (var key in target) {
18234
18209
  var value = resolveFinalValueInKeyframes(target[key]);
18235
18210
  setMotionValue(visualElement, key, value);
@@ -18380,7 +18355,7 @@ function animateTarget(visualElement, definition, _a) {
18380
18355
  _f = _e.transition,
18381
18356
  transition = _f === void 0 ? visualElement.getDefaultTransition() : _f,
18382
18357
  transitionEnd = _e.transitionEnd,
18383
- target = __rest$1(_e, ["transition", "transitionEnd"]);
18358
+ target = __rest(_e, ["transition", "transitionEnd"]);
18384
18359
  if (transitionOverride) transition = transitionOverride;
18385
18360
  var animations = [];
18386
18361
  var animationTypeState = type && ((_b = visualElement.animationState) === null || _b === void 0 ? void 0 : _b.getState()[type]);
@@ -18390,7 +18365,7 @@ function animateTarget(visualElement, definition, _a) {
18390
18365
  if (!value || valueTarget === undefined || animationTypeState && shouldBlockAnimation(animationTypeState, key)) {
18391
18366
  continue;
18392
18367
  }
18393
- var animation = startAnimation(key, value, valueTarget, _assign$1({
18368
+ var animation = startAnimation(key, value, valueTarget, _assign({
18394
18369
  delay: delay
18395
18370
  }, transition));
18396
18371
  animations.push(animation);
@@ -18423,7 +18398,7 @@ function animateChildren(visualElement, variant, delayChildren, staggerChildren,
18423
18398
  return maxStaggerDuration - i * staggerChildren;
18424
18399
  };
18425
18400
  Array.from(visualElement.variantChildren).sort(sortByTreeOrder).forEach(function (child, i) {
18426
- animations.push(animateVariant(child, variant, _assign$1(_assign$1({}, options), {
18401
+ animations.push(animateVariant(child, variant, _assign(_assign({}, options), {
18427
18402
  delay: delayChildren + generateStaggerDuration(i)
18428
18403
  })).then(function () {
18429
18404
  return child.notifyAnimationComplete(variant);
@@ -18474,8 +18449,8 @@ function createAnimationState(visualElement) {
18474
18449
  if (resolved) {
18475
18450
  resolved.transition;
18476
18451
  var transitionEnd = resolved.transitionEnd,
18477
- target = __rest$1(resolved, ["transition", "transitionEnd"]);
18478
- acc = _assign$1(_assign$1(_assign$1({}, acc), target), transitionEnd);
18452
+ target = __rest(resolved, ["transition", "transitionEnd"]);
18453
+ acc = _assign(_assign(_assign({}, acc), target), transitionEnd);
18479
18454
  }
18480
18455
  return acc;
18481
18456
  };
@@ -18552,7 +18527,7 @@ function createAnimationState(visualElement) {
18552
18527
  * Set all encountered keys so far as the protected keys for this type. This will
18553
18528
  * be any key that has been animated or otherwise handled by active, higher-priortiy types.
18554
18529
  */
18555
- typeState.protectedKeys = _assign$1({}, encounteredKeys);
18530
+ typeState.protectedKeys = _assign({}, encounteredKeys);
18556
18531
  // Check if we can skip analysing this prop early
18557
18532
  if (
18558
18533
  // If it isn't active and hasn't *just* been set as inactive
@@ -18595,7 +18570,7 @@ function createAnimationState(visualElement) {
18595
18570
  */
18596
18571
  var _b = typeState.prevResolvedValues,
18597
18572
  prevResolvedValues = _b === void 0 ? {} : _b;
18598
- var allKeys = _assign$1(_assign$1({}, prevResolvedValues), resolvedValues);
18573
+ var allKeys = _assign(_assign({}, prevResolvedValues), resolvedValues);
18599
18574
  var markToAnimate = function markToAnimate(key) {
18600
18575
  shouldAnimateType = true;
18601
18576
  removedKeys["delete"](key);
@@ -18655,7 +18630,7 @@ function createAnimationState(visualElement) {
18655
18630
  *
18656
18631
  */
18657
18632
  if (typeState.isActive) {
18658
- encounteredKeys = _assign$1(_assign$1({}, encounteredKeys), resolvedValues);
18633
+ encounteredKeys = _assign(_assign({}, encounteredKeys), resolvedValues);
18659
18634
  }
18660
18635
  if (isInitialRender && visualElement.blockInitialAnimation) {
18661
18636
  shouldAnimateType = false;
@@ -18669,7 +18644,7 @@ function createAnimationState(visualElement) {
18669
18644
  animations.push.apply(animations, __spreadArray([], __read(definitionList.map(function (animation) {
18670
18645
  return {
18671
18646
  animation: animation,
18672
- options: _assign$1({
18647
+ options: _assign({
18673
18648
  type: type
18674
18649
  }, options)
18675
18650
  };
@@ -18685,7 +18660,7 @@ function createAnimationState(visualElement) {
18685
18660
  for (var i = 0; i < numAnimationTypes; i++) {
18686
18661
  _loop_1(i);
18687
18662
  }
18688
- allAnimatedKeys = _assign$1({}, encounteredKeys);
18663
+ allAnimatedKeys = _assign({}, encounteredKeys);
18689
18664
  /**
18690
18665
  * If there are some removed value that haven't been dealt with,
18691
18666
  * we need to create a new animation that falls back either to the value
@@ -18833,7 +18808,7 @@ var PanSession = /** @class */function () {
18833
18808
  if (!isPanStarted && !isDistancePastThreshold) return;
18834
18809
  var point = info.point;
18835
18810
  var timestamp = getFrameData().timestamp;
18836
- _this.history.push(_assign$1(_assign$1({}, point), {
18811
+ _this.history.push(_assign(_assign({}, point), {
18837
18812
  timestamp: timestamp
18838
18813
  }));
18839
18814
  var _a = _this.handlers,
@@ -18875,7 +18850,7 @@ var PanSession = /** @class */function () {
18875
18850
  var initialInfo = transformPoint(info, this.transformPagePoint);
18876
18851
  var point = initialInfo.point;
18877
18852
  var timestamp = getFrameData().timestamp;
18878
- this.history = [_assign$1(_assign$1({}, point), {
18853
+ this.history = [_assign(_assign({}, point), {
18879
18854
  timestamp: timestamp
18880
18855
  })];
18881
18856
  var onSessionStart = handlers.onSessionStart;
@@ -19040,8 +19015,8 @@ function axisBox() {
19040
19015
  }
19041
19016
  function copyAxisBox(box) {
19042
19017
  return {
19043
- x: _assign$1({}, box.x),
19044
- y: _assign$1({}, box.y)
19018
+ x: _assign({}, box.x),
19019
+ y: _assign({}, box.y)
19045
19020
  };
19046
19021
  }
19047
19022
  /**
@@ -19055,8 +19030,8 @@ var zeroDelta = {
19055
19030
  };
19056
19031
  function delta() {
19057
19032
  return {
19058
- x: _assign$1({}, zeroDelta),
19059
- y: _assign$1({}, zeroDelta)
19033
+ x: _assign({}, zeroDelta),
19034
+ y: _assign({}, zeroDelta)
19060
19035
  };
19061
19036
  }
19062
19037
 
@@ -19953,8 +19928,8 @@ var VisualElementDragControls = /** @class */function () {
19953
19928
  dragElastic = _f === void 0 ? defaultElastic : _f,
19954
19929
  _g = _a.dragMomentum,
19955
19930
  dragMomentum = _g === void 0 ? true : _g,
19956
- remainingProps = __rest$1(_a, ["drag", "dragDirectionLock", "dragPropagation", "dragConstraints", "dragElastic", "dragMomentum"]);
19957
- this.props = _assign$1({
19931
+ remainingProps = __rest(_a, ["drag", "dragDirectionLock", "dragPropagation", "dragConstraints", "dragElastic", "dragMomentum"]);
19932
+ this.props = _assign({
19958
19933
  drag: drag,
19959
19934
  dragDirectionLock: dragDirectionLock,
19960
19935
  dragPropagation: dragPropagation,
@@ -20037,7 +20012,7 @@ var VisualElementDragControls = /** @class */function () {
20037
20012
  */
20038
20013
  var bounceStiffness = dragElastic ? 200 : 1000000;
20039
20014
  var bounceDamping = dragElastic ? 40 : 10000000;
20040
- var inertia = _assign$1(_assign$1({
20015
+ var inertia = _assign(_assign({
20041
20016
  type: "inertia",
20042
20017
  velocity: dragMomentum ? velocity[axis] : 0,
20043
20018
  bounceStiffness: bounceStiffness,
@@ -20221,7 +20196,7 @@ function useDrag(props) {
20221
20196
  visualElement: visualElement
20222
20197
  });
20223
20198
  });
20224
- dragControls.setProps(_assign$1(_assign$1({}, props), {
20199
+ dragControls.setProps(_assign(_assign({}, props), {
20225
20200
  transformPagePoint: transformPagePoint
20226
20201
  }));
20227
20202
  // If we've been provided a DragControls for manual control over the drag gesture,
@@ -20354,7 +20329,7 @@ function getVariableValue(current, element, depth) {
20354
20329
  */
20355
20330
  function resolveCSSVariables(visualElement, _a, transitionEnd) {
20356
20331
  var _b;
20357
- var target = __rest$1(_a, []);
20332
+ var target = __rest(_a, []);
20358
20333
  var element = visualElement.getInstance();
20359
20334
  if (!(element instanceof HTMLElement)) return {
20360
20335
  target: target,
@@ -20363,7 +20338,7 @@ function resolveCSSVariables(visualElement, _a, transitionEnd) {
20363
20338
  // If `transitionEnd` isn't `undefined`, clone it. We could clone `target` and `transitionEnd`
20364
20339
  // only if they change but I think this reads clearer and this isn't a performance-critical path.
20365
20340
  if (transitionEnd) {
20366
- transitionEnd = _assign$1({}, transitionEnd);
20341
+ transitionEnd = _assign({}, transitionEnd);
20367
20342
  }
20368
20343
  // Go through existing `MotionValue`s and ensure any existing CSS variables are resolved
20369
20344
  visualElement.forEachValue(function (value) {
@@ -20475,7 +20450,7 @@ var borderCorrectionDefinition = {
20475
20450
  process: correctBorderRadius
20476
20451
  };
20477
20452
  var defaultScaleCorrectors = {
20478
- borderRadius: _assign$1(_assign$1({}, borderCorrectionDefinition), {
20453
+ borderRadius: _assign(_assign({}, borderCorrectionDefinition), {
20479
20454
  applyTo: ["borderTopLeftRadius", "borderTopRightRadius", "borderBottomLeftRadius", "borderBottomRightRadius"]
20480
20455
  }),
20481
20456
  borderTopLeftRadius: borderCorrectionDefinition,
@@ -20524,7 +20499,7 @@ var Animate = /** @class */function (_super) {
20524
20499
  shouldStackAnimate = _a.shouldStackAnimate,
20525
20500
  onComplete = _a.onComplete,
20526
20501
  prevParent = _a.prevParent,
20527
- config = __rest$1(_a, ["originBox", "targetBox", "visibilityAction", "shouldStackAnimate", "onComplete", "prevParent"]);
20502
+ config = __rest(_a, ["originBox", "targetBox", "visibilityAction", "shouldStackAnimate", "onComplete", "prevParent"]);
20528
20503
  var _b = _this.props,
20529
20504
  visualElement = _b.visualElement,
20530
20505
  layout = _b.layout;
@@ -20604,7 +20579,7 @@ var Animate = /** @class */function (_super) {
20604
20579
  } else if (boxHasMoved) {
20605
20580
  // If the box has moved, animate between it's current visual state and its
20606
20581
  // final state
20607
- return _this.animateAxis(axis, target[axis], origin[axis], _assign$1(_assign$1({}, config), {
20582
+ return _this.animateAxis(axis, target[axis], origin[axis], _assign(_assign({}, config), {
20608
20583
  isRelative: isRelative
20609
20584
  }));
20610
20585
  } else {
@@ -20715,7 +20690,7 @@ var Animate = /** @class */function (_super) {
20715
20690
  function AnimateLayoutContextProvider(props) {
20716
20691
  var _a = __read(usePresence(), 2),
20717
20692
  safeToRemove = _a[1];
20718
- return /*#__PURE__*/React.createElement(Animate, _assign$1({}, props, {
20693
+ return /*#__PURE__*/React.createElement(Animate, _assign({}, props, {
20719
20694
  safeToRemove: safeToRemove
20720
20695
  }));
20721
20696
  }
@@ -20890,7 +20865,7 @@ var Measure = /** @class */function (_super) {
20890
20865
  function MeasureContextProvider(props) {
20891
20866
  var syncLayout = useContext(SharedLayoutContext);
20892
20867
  var framerSyncLayout = useContext(FramerTreeLayoutContext);
20893
- return /*#__PURE__*/React__default.createElement(Measure, _assign$1({}, props, {
20868
+ return /*#__PURE__*/React__default.createElement(Measure, _assign({}, props, {
20894
20869
  syncLayout: syncLayout,
20895
20870
  framerSyncLayout: framerSyncLayout
20896
20871
  }));
@@ -21207,7 +21182,7 @@ var visualElement = function visualElement(_a) {
21207
21182
  * When values are removed from all animation props we need to search
21208
21183
  * for a fallback value to animate to. These values are tracked in baseTarget.
21209
21184
  */
21210
- var baseTarget = _assign$1({}, latestValues);
21185
+ var baseTarget = _assign({}, latestValues);
21211
21186
  // Internal methods ========================
21212
21187
  /**
21213
21188
  * On mount, this will be hydrated with a callback to disconnect
@@ -21305,7 +21280,7 @@ var visualElement = function visualElement(_a) {
21305
21280
  */
21306
21281
  var isControllingVariants = checkIfControllingVariants(props);
21307
21282
  var isVariantNode = checkIfVariantNode(props);
21308
- var element = _assign$1(_assign$1({
21283
+ var element = _assign(_assign({
21309
21284
  treeType: treeType,
21310
21285
  /**
21311
21286
  * This is a mirror of the internal instance prop, which keeps
@@ -21976,8 +21951,8 @@ var checkAndConvertChangedValueTypes = function checkAndConvertChangedValueTypes
21976
21951
  if (transitionEnd === void 0) {
21977
21952
  transitionEnd = {};
21978
21953
  }
21979
- target = _assign$1({}, target);
21980
- transitionEnd = _assign$1({}, transitionEnd);
21954
+ target = _assign({}, target);
21955
+ transitionEnd = _assign({}, transitionEnd);
21981
21956
  var targetPositionalKeys = Object.keys(target).filter(isPositionalKey);
21982
21957
  // We want to remove any transform values that could affect the element's bounding box before
21983
21958
  // it's measured. We'll reapply these later.
@@ -22154,7 +22129,7 @@ var htmlConfig = {
22154
22129
  }
22155
22130
  var transition = _a.transition,
22156
22131
  transitionEnd = _a.transitionEnd,
22157
- target = __rest$1(_a, ["transition", "transitionEnd"]);
22132
+ target = __rest(_a, ["transition", "transitionEnd"]);
22158
22133
  var origin = getOrigin(target, transition || {}, element);
22159
22134
  /**
22160
22135
  * If Framer has provided a function to convert `Color` etc value types, convert them
@@ -22170,7 +22145,7 @@ var htmlConfig = {
22170
22145
  transitionEnd = parsed.transitionEnd;
22171
22146
  target = parsed.target;
22172
22147
  }
22173
- return _assign$1({
22148
+ return _assign({
22174
22149
  transition: transition,
22175
22150
  transitionEnd: transitionEnd
22176
22151
  }, target);
@@ -22187,7 +22162,7 @@ var htmlConfig = {
22187
22162
  };
22188
22163
  var htmlVisualElement = visualElement(htmlConfig);
22189
22164
 
22190
- var svgVisualElement = visualElement(_assign$1(_assign$1({}, htmlConfig), {
22165
+ var svgVisualElement = visualElement(_assign(_assign({}, htmlConfig), {
22191
22166
  getBaseTarget: function getBaseTarget(props, key) {
22192
22167
  return props[key];
22193
22168
  },
@@ -22215,7 +22190,7 @@ var createDomVisualElement = function createDomVisualElement(Component, options)
22215
22190
  });
22216
22191
  };
22217
22192
 
22218
- var featureBundle = _assign$1(_assign$1(_assign$1(_assign$1({}, animations), gestureAnimations), drag), layoutAnimations);
22193
+ var featureBundle = _assign(_assign(_assign(_assign({}, animations), gestureAnimations), drag), layoutAnimations);
22219
22194
  /**
22220
22195
  * HTML & SVG components, optimised for use with gestures and animation. These can be used as
22221
22196
  * drop-in replacements for any HTML & SVG component, all CSS & SVG properties are supported.
@@ -30919,7 +30894,7 @@ function createSidecarMedium(options) {
30919
30894
  options = {};
30920
30895
  }
30921
30896
  var medium = innerCreateMedium(null);
30922
- medium.options = _assign$1({
30897
+ medium.options = _assign({
30923
30898
  async: true,
30924
30899
  ssr: false
30925
30900
  }, options);
@@ -30928,7 +30903,7 @@ function createSidecarMedium(options) {
30928
30903
 
30929
30904
  var SideCar$1 = function SideCar(_a) {
30930
30905
  var sideCar = _a.sideCar,
30931
- rest = __rest$1(_a, ["sideCar"]);
30906
+ rest = __rest(_a, ["sideCar"]);
30932
30907
  if (!sideCar) {
30933
30908
  throw new Error('Sidecar: please provide `sideCar` property to import the right car');
30934
30909
  }
@@ -30936,7 +30911,7 @@ var SideCar$1 = function SideCar(_a) {
30936
30911
  if (!Target) {
30937
30912
  throw new Error('Sidecar medium not found');
30938
30913
  }
30939
- return /*#__PURE__*/React.createElement(Target, _assign$1({}, rest));
30914
+ return /*#__PURE__*/React.createElement(Target, _assign({}, rest));
30940
30915
  };
30941
30916
  SideCar$1.isSideCarExport = true;
30942
30917
  function exportSidecar(medium, exported) {
@@ -31920,25 +31895,6 @@ if (__DEV__) {
31920
31895
  FocusLock.displayName = "FocusLock";
31921
31896
  }
31922
31897
 
31923
- var _assign = function __assign() {
31924
- _assign = Object.assign || function __assign(t) {
31925
- for (var s, i = 1, n = arguments.length; i < n; i++) {
31926
- s = arguments[i];
31927
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
31928
- }
31929
- return t;
31930
- };
31931
- return _assign.apply(this, arguments);
31932
- };
31933
- function __rest(s, e) {
31934
- var t = {};
31935
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
31936
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
31937
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
31938
- }
31939
- return t;
31940
- }
31941
-
31942
31898
  var zeroRightClassName = 'right-scroll-bar-position';
31943
31899
  var fullWidthClassName = 'width-before-scroll-bar';
31944
31900
  var noScrollbarsClassName = 'with-scroll-bars-hidden';
@@ -36942,6 +36898,8 @@ var sizes$n = {
36942
36898
  // 14px
36943
36899
  4: '1rem',
36944
36900
  // 16px
36901
+ 4.5: '1.125rem',
36902
+ // 18px
36945
36903
  5: '1.25rem',
36946
36904
  // 20px
36947
36905
  5.5: '1.375rem',
@@ -40420,7 +40378,7 @@ function anatomy(name) {
40420
40378
  return new Anatomy(name);
40421
40379
  }
40422
40380
  function toRef(operand) {
40423
- if (isObject$1(operand) && operand.reference) {
40381
+ if (isObject(operand) && operand.reference) {
40424
40382
  return operand.reference;
40425
40383
  }
40426
40384
  return String(operand);
@@ -45222,72 +45180,72 @@ var Link_styles = merge$1(theme.components.Link, {
45222
45180
  defaultProps: defaultProps$6
45223
45181
  });
45224
45182
 
45225
- var baseStyle$8 = {
45226
- icon: {
45227
- color: 'primary.default'
45228
- },
45229
- button: {
45230
- display: 'flex',
45231
- gridGap: 3.5,
45232
- alignItems: 'center',
45233
- fontSize: 'sm',
45234
- fontWeight: 'semibold',
45235
- _hover: {
45236
- backgroundColor: 'gray.50'
45237
- }
45238
- },
45239
- container: {
45240
- borderColor: 'gray.medium'
45241
- }
45242
- };
45243
- var variants$8 = {
45244
- lined: {
45183
+ const baseStyle$8 = {
45184
+ icon: {
45185
+ color: 'primary.default',
45186
+ },
45245
45187
  button: {
45246
- px: 2,
45247
- py: 3
45188
+ display: 'flex',
45189
+ gridGap: 3.5,
45190
+ alignItems: 'center',
45191
+ fontSize: 'sm',
45192
+ fontWeight: 'semibold',
45193
+ _hover: {
45194
+ backgroundColor: 'gray.50',
45195
+ },
45248
45196
  },
45249
45197
  container: {
45250
- borderTopWidth: 1,
45251
- _last: {
45252
- borderBottomWidth: 1
45253
- }
45198
+ borderColor: 'gray.medium',
45254
45199
  },
45255
- panel: {
45256
- px: 2,
45257
- py: 3
45258
- }
45259
- },
45260
- contained: {
45261
- button: {
45262
- px: 4,
45263
- py: 3
45200
+ };
45201
+ const variants$8 = {
45202
+ lined: {
45203
+ button: {
45204
+ px: 2,
45205
+ py: 3,
45206
+ },
45207
+ container: {
45208
+ borderTopWidth: 1,
45209
+ _last: {
45210
+ borderBottomWidth: 1,
45211
+ },
45212
+ },
45213
+ panel: {
45214
+ px: 2,
45215
+ py: 3,
45216
+ },
45264
45217
  },
45265
- container: {
45266
- borderLeftWidth: 1,
45267
- borderRightWidth: 1,
45268
- _first: {
45269
- borderTopLeftRadius: 4,
45270
- borderTopRightRadius: 4
45271
- },
45272
- _last: {
45273
- borderBottomLeftRadius: 4,
45274
- borderBottomRightRadius: 4
45275
- }
45218
+ contained: {
45219
+ button: {
45220
+ px: 4,
45221
+ py: 3,
45222
+ },
45223
+ container: {
45224
+ borderLeftWidth: 1,
45225
+ borderRightWidth: 1,
45226
+ _first: {
45227
+ borderTopLeftRadius: 4,
45228
+ borderTopRightRadius: 4,
45229
+ },
45230
+ _last: {
45231
+ borderBottomLeftRadius: 4,
45232
+ borderBottomRightRadius: 4,
45233
+ },
45234
+ },
45235
+ panel: {
45236
+ p: 4,
45237
+ borderColor: 'gray.medium',
45238
+ borderTopWidth: 1,
45239
+ },
45276
45240
  },
45277
- panel: {
45278
- p: 4,
45279
- borderColor: 'gray.medium',
45280
- borderTopWidth: 1
45281
- }
45282
- }
45283
45241
  };
45284
- var defaultProps$5 = {
45285
- variant: 'lined'
45242
+ const defaultProps$5 = {
45243
+ variant: 'lined',
45286
45244
  };
45287
45245
  var index$a = merge$1(theme.components.Accordion, {
45288
- variants: variants$8,
45289
- baseStyle: baseStyle$8,
45290
- defaultProps: defaultProps$5
45246
+ variants: variants$8,
45247
+ baseStyle: baseStyle$8,
45248
+ defaultProps: defaultProps$5,
45291
45249
  });
45292
45250
 
45293
45251
  var colorScheme = {
@@ -47195,526 +47153,13 @@ function requireTemplate() {
47195
47153
  var templateExports = requireTemplate();
47196
47154
  var template = /*@__PURE__*/getDefaultExportFromCjs(templateExports);
47197
47155
 
47198
- var environment$1 = {};
47199
-
47200
- /**
47201
- * SSR Window 2.0.0
47202
- * Better handling for window object in SSR environment
47203
- * https://github.com/nolimits4web/ssr-window
47204
- *
47205
- * Copyright 2020, Vladimir Kharlampidi
47206
- *
47207
- * Licensed under MIT
47208
- *
47209
- * Released on: May 12, 2020
47210
- */
47211
- /* eslint-disable no-param-reassign */
47212
- function isObject(obj) {
47213
- return obj !== null && _typeof$1(obj) === 'object' && 'constructor' in obj && obj.constructor === Object;
47214
- }
47215
- function extend(target, src) {
47216
- if (target === void 0) {
47217
- target = {};
47218
- }
47219
- if (src === void 0) {
47220
- src = {};
47221
- }
47222
- Object.keys(src).forEach(function (key) {
47223
- if (typeof target[key] === 'undefined') target[key] = src[key];else if (isObject(src[key]) && isObject(target[key]) && Object.keys(src[key]).length > 0) {
47224
- extend(target[key], src[key]);
47225
- }
47226
- });
47227
- }
47228
- var doc = typeof document !== 'undefined' ? document : {};
47229
- var ssrDocument = {
47230
- body: {},
47231
- addEventListener: function addEventListener() {},
47232
- removeEventListener: function removeEventListener() {},
47233
- activeElement: {
47234
- blur: function blur() {},
47235
- nodeName: ''
47236
- },
47237
- querySelector: function querySelector() {
47238
- return null;
47239
- },
47240
- querySelectorAll: function querySelectorAll() {
47241
- return [];
47242
- },
47243
- getElementById: function getElementById() {
47244
- return null;
47245
- },
47246
- createEvent: function createEvent() {
47247
- return {
47248
- initEvent: function initEvent() {}
47249
- };
47250
- },
47251
- createElement: function createElement() {
47252
- return {
47253
- children: [],
47254
- childNodes: [],
47255
- style: {},
47256
- setAttribute: function setAttribute() {},
47257
- getElementsByTagName: function getElementsByTagName() {
47258
- return [];
47259
- }
47260
- };
47261
- },
47262
- createElementNS: function createElementNS() {
47263
- return {};
47264
- },
47265
- importNode: function importNode() {
47266
- return null;
47267
- },
47268
- location: {
47269
- hash: '',
47270
- host: '',
47271
- hostname: '',
47272
- href: '',
47273
- origin: '',
47274
- pathname: '',
47275
- protocol: '',
47276
- search: ''
47277
- }
47278
- };
47279
- extend(doc, ssrDocument);
47280
- var win = typeof window !== 'undefined' ? window : {};
47281
- var ssrWindow = {
47282
- document: ssrDocument,
47283
- navigator: {
47284
- userAgent: ''
47285
- },
47286
- location: {
47287
- hash: '',
47288
- host: '',
47289
- hostname: '',
47290
- href: '',
47291
- origin: '',
47292
- pathname: '',
47293
- protocol: '',
47294
- search: ''
47295
- },
47296
- history: {
47297
- replaceState: function replaceState() {},
47298
- pushState: function pushState() {},
47299
- go: function go() {},
47300
- back: function back() {}
47301
- },
47302
- CustomEvent: function CustomEvent() {
47303
- return this;
47304
- },
47305
- addEventListener: function addEventListener() {},
47306
- removeEventListener: function removeEventListener() {},
47307
- getComputedStyle: function getComputedStyle() {
47308
- return {
47309
- getPropertyValue: function getPropertyValue() {
47310
- return '';
47311
- }
47312
- };
47313
- },
47314
- Image: function Image() {},
47315
- Date: function Date() {},
47316
- screen: {},
47317
- setTimeout: function setTimeout() {},
47318
- clearTimeout: function clearTimeout() {},
47319
- matchMedia: function matchMedia() {
47320
- return {};
47156
+ var _excluded$l = ["isSSR", "cloudinaryImageId", "cloudinaryTemplate", "cloudinaryCloudName", "htmlWidth", "htmlHeight", "quality", "lazyLoad"];
47157
+ function isHighDensityDisplay() {
47158
+ if (typeof window === 'undefined') {
47159
+ return false;
47321
47160
  }
47322
- };
47323
- extend(win, ssrWindow);
47324
-
47325
- var ssrWindow_esm = /*#__PURE__*/Object.freeze({
47326
- __proto__: null,
47327
- document: doc,
47328
- extend: extend,
47329
- window: win
47330
- });
47331
-
47332
- var require$$0 = /*@__PURE__*/getAugmentedNamespace(ssrWindow_esm);
47333
-
47334
- var hasRequiredEnvironment$1;
47335
- function requireEnvironment$1() {
47336
- if (hasRequiredEnvironment$1) return environment$1;
47337
- hasRequiredEnvironment$1 = 1;
47338
- Object.defineProperty(environment$1, "__esModule", {
47339
- value: true
47340
- });
47341
- environment$1["default"] = void 0;
47342
- var _ssrWindow = require$$0;
47343
- // Most of the methods are pulled from https://is.js.org/. That library has many others that we'll never use so they are added here and made to work with SSR.
47344
-
47345
- var appVersion = (_ssrWindow.window.navigator && _ssrWindow.window.navigator.appVersion || '').toLowerCase();
47346
- var userAgent = (_ssrWindow.window.navigator && _ssrWindow.window.navigator.userAgent || '').toLowerCase();
47347
- var vendor = (_ssrWindow.window.navigator && _ssrWindow.window.navigator.vendor || '').toLowerCase();
47348
- var comparator = {
47349
- '<': function _(a, b) {
47350
- return a < b;
47351
- },
47352
- '<=': function _(a, b) {
47353
- return a <= b;
47354
- },
47355
- '>': function _(a, b) {
47356
- return a > b;
47357
- },
47358
- '>=': function _(a, b) {
47359
- return a >= b;
47360
- }
47361
- };
47362
- var compareVersion = function compareVersion(version, range) {
47363
- var string = String(range);
47364
- var n = Number(string.match(/\d+/) || NaN);
47365
- var op = string.match(/^[<>]=?|/)[0];
47366
- return comparator[op] ? comparator[op](version, n) : version === n || n !== n; // eslint-disable-line no-self-compare
47367
- };
47368
-
47369
- /**
47370
- * Utilities for working with the execution environment.
47371
- * @module EnvironmentUtils
47372
- */
47373
- var EnvironmentUtils = {
47374
- /**
47375
- * Determines whether the code is being executed in the browser.
47376
- * @static
47377
- * @function isBrowser
47378
- * @example
47379
- * EnvironmentUtils.isBrowser();
47380
- * @returns {Boolean} - Whether the environment is the browser.
47381
- */
47382
- isBrowser: function isBrowser() {
47383
- return typeof window !== 'undefined';
47384
- },
47385
- /**
47386
- * Determines whether the code is being executed in Google Chrome.
47387
- * @static
47388
- * @function isChrome
47389
- * @param {Number|String} [range] - The version range to test against.
47390
- * @param {String} [ua=navigator.userAgent] - The user agent to test against.
47391
- * @example
47392
- * EnvironmentUtils.isChrome();
47393
- * @returns {Boolean} - Whether the environment is Google Chrome.
47394
- */
47395
- isChrome: function isChrome(range) {
47396
- var ua = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : userAgent;
47397
- var match = /google inc/.test(vendor) ? ua.match(/(?:chrome|crios)\/(\d+)/) : null;
47398
- return match !== null && !this.isOpera(range, ua) && compareVersion(match[1], range);
47399
- },
47400
- /**
47401
- * Determines whether the code is being executed in Mozilla Firefox.
47402
- * @static
47403
- * @function isFirefox
47404
- * @param {Number|String} [range] - The version range to test against.
47405
- * @param {String} [ua=navigator.userAgent] - The user agent to test against.
47406
- * @example
47407
- * EnvironmentUtils.isFirefox();
47408
- * @returns {Boolean} - Whether the environment is Mozilla Firefox.
47409
- */
47410
- isFirefox: function isFirefox(range) {
47411
- var ua = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : userAgent;
47412
- var match = ua.match(/(?:firefox|fxios)\/(\d+)/);
47413
- return match !== null && compareVersion(match[1], range);
47414
- },
47415
- /**
47416
- * Determines whether the code is being executed in Apple Safari.
47417
- * @static
47418
- * @function isSafari
47419
- * @param {Number|String} [range] - The version range to test against.
47420
- * @param {String} [ua=navigator.userAgent] - The user agent to test against.
47421
- * @example
47422
- * EnvironmentUtils.isSafari();
47423
- * @returns {Boolean} - Whether the environment is Apple Safari.
47424
- */
47425
- isSafari: function isSafari(range) {
47426
- var ua = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : userAgent;
47427
- var match = ua.match(/version\/(\d+).+?safari/);
47428
- return match !== null && compareVersion(match[1], range);
47429
- },
47430
- /**
47431
- * Determines whether the code is being executed in Microsoft Edge.
47432
- * @static
47433
- * @function isEdge
47434
- * @param {Number|String} [range] - The version range to test against.
47435
- * @param {String} [ua=navigator.userAgent] - The user agent to test against.
47436
- * @example
47437
- * EnvironmentUtils.isEdge();
47438
- * @returns {Boolean} - Whether the environment is Microsoft Edge.
47439
- */
47440
- isEdge: function isEdge(range) {
47441
- var ua = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : userAgent;
47442
- var match = ua.match(/edge\/(\d+)/);
47443
- return match !== null && compareVersion(match[1], range);
47444
- },
47445
- /**
47446
- * Determines whether the code is being executed in Microsoft Internet Explorer.
47447
- * @static
47448
- * @function isIE
47449
- * @param {Number|String} [range] - The version range to test against.
47450
- * @param {String} [ua=navigator.userAgent] - The user agent to test against.
47451
- * @example
47452
- * EnvironmentUtils.isIE();
47453
- * @returns {Boolean} - Whether the environment is Microsoft Internet Explorer.
47454
- */
47455
- isIE: function isIE(range) {
47456
- var ua = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : userAgent;
47457
- var match = ua.match(/(?:msie |trident.+?; rv:)(\d+)/);
47458
- return match !== null && compareVersion(match[1], range);
47459
- },
47460
- /**
47461
- * Determines whether the code is being executed in Opera.
47462
- * @static
47463
- * @function isOpera
47464
- * @param {Number|String} [range] - The version range to test against.
47465
- * @param {String} [ua=navigator.userAgent] - The user agent to test against.
47466
- * @example
47467
- * EnvironmentUtils.isOpera();
47468
- * @returns {Boolean} - Whether the environment is Opera.
47469
- */
47470
- isOpera: function isOpera(range) {
47471
- var ua = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : userAgent;
47472
- var match = ua.match(/(?:^opera.+?version|opr)\/(\d+)/);
47473
- return match !== null && compareVersion(match[1], range);
47474
- },
47475
- /**
47476
- * Determines whether the code is being executed in iOS.
47477
- * @static
47478
- * @function isiOS
47479
- * @param {String} [ua=navigator.userAgent] - The user agent to test against.
47480
- * @example
47481
- * EnvironmentUtils.isiOS();
47482
- * @returns {Boolean} - Whether the environment is iOS.
47483
- */
47484
- isiOS: function isiOS() {
47485
- var ua = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : userAgent;
47486
- return this.isiPhone(null, ua) || this.isiPad(null, ua) || this.isiPod(null, ua);
47487
- },
47488
- /**
47489
- * Determines whether the code is being executed on an iPhone.
47490
- * @static
47491
- * @function isiPhone
47492
- * @param {Number|String} [range] - The version range to test against.
47493
- * @param {String} [ua=navigator.userAgent] - The user agent to test against.
47494
- * @example
47495
- * EnvironmentUtils.isiPhone();
47496
- * EnvironmentUtils.isiPhone(9);
47497
- * EnvironmentUtils.isiPhone('>=7');
47498
- * EnvironmentUtils.isiPhone('<8');
47499
- * @returns {Boolean} - Whether the environment is iPhone.
47500
- */
47501
- isiPhone: function isiPhone(range) {
47502
- var ua = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : userAgent;
47503
- // avoid false positive for Facebook in-app browser on ipad;
47504
- // original iphone doesn't have the OS portion of the UA
47505
- var match = this.isiPad(null, ua) ? null : ua.match(/iphone(?:.+?os (\d+))?/i);
47506
- return match !== null && compareVersion(match[1] || 1, range);
47507
- },
47508
- /**
47509
- * Determines whether the code is being executed on an iPad.
47510
- * @static
47511
- * @function isiPad
47512
- * @param {Number|String} [range] - The version range to test against.
47513
- * @param {String} [ua=navigator.userAgent] - The user agent to test against.
47514
- * @example
47515
- * EnvironmentUtils.isiPad();
47516
- * EnvironmentUtils.isiPad(9);
47517
- * EnvironmentUtils.isiPad('>=7');
47518
- * EnvironmentUtils.isiPad('<8');
47519
- * @returns {Boolean} - Whether the environment is iPad.
47520
- */
47521
- isiPad: function isiPad(range) {
47522
- var ua = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : userAgent;
47523
- var match = ua.match(/ipad.+?os (\d+)/i);
47524
- return match !== null && compareVersion(match[1], range);
47525
- },
47526
- /**
47527
- * Determines whether the code is being executed on an iPod.
47528
- * @static
47529
- * @function isiPod
47530
- * @param {Number|String} [range] - The version range to test against.
47531
- * @param {String} [ua=navigator.userAgent] - The user agent to test against.
47532
- * @example
47533
- * EnvironmentUtils.isiPod();
47534
- * EnvironmentUtils.isiPod(9);
47535
- * EnvironmentUtils.isiPod('>=7');
47536
- * EnvironmentUtils.isiPod('<8');
47537
- * @returns {Boolean} - Whether the environment is iPod.
47538
- */
47539
- isiPod: function isiPod(range) {
47540
- var ua = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : userAgent;
47541
- var match = ua.match(/ipod.+?os (\d+)/i);
47542
- return match !== null && compareVersion(match[1], range);
47543
- },
47544
- /**
47545
- * Determines whether the code is being executed in Android.
47546
- * @static
47547
- * @function isAndroid
47548
- * @param {String} [ua=navigator.userAgent] - The user agent to test against.
47549
- * @example
47550
- * EnvironmentUtils.isAndroid();
47551
- * @returns {Boolean} - Whether the environment is Android.
47552
- */
47553
- isAndroid: function isAndroid() {
47554
- var ua = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : userAgent;
47555
- return /android/i.test(ua);
47556
- },
47557
- /**
47558
- * Determines whether the code is being executed on an Android phone.
47559
- * @static
47560
- * @function isAndroidPhone
47561
- * @param {String} [ua=navigator.userAgent] - The user agent to test against.
47562
- * @example
47563
- * EnvironmentUtils.isAndroidPhone();
47564
- * @returns {Boolean} - Whether the environment is Android phone.
47565
- */
47566
- isAndroidPhone: function isAndroidPhone() {
47567
- var ua = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : userAgent;
47568
- return /android/i.test(ua) && /mobile/i.test(ua);
47569
- },
47570
- /**
47571
- * Determines whether the code is being executed on an Android tablet.
47572
- * @static
47573
- * @function isAndroidTablet
47574
- * @param {String} [ua=navigator.userAgent] - The user agent to test against.
47575
- * @example
47576
- * EnvironmentUtils.isAndroidTablet();
47577
- * @returns {Boolean} - Whether the environment is Android tablet.
47578
- */
47579
- isAndroidTablet: function isAndroidTablet() {
47580
- var ua = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : userAgent;
47581
- return /android/i.test(ua) && !/mobile/i.test(ua);
47582
- },
47583
- /**
47584
- * Determines whether the code is being executed on a Blackberry.
47585
- * @static
47586
- * @function isBlackberry
47587
- * @param {String} [ua=navigator.userAgent] - The user agent to test against.
47588
- * @example
47589
- * EnvironmentUtils.isBlackberry();
47590
- * @returns {Boolean} - Whether the environment is Blackberry.
47591
- */
47592
- isBlackberry: function isBlackberry() {
47593
- var ua = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : userAgent;
47594
- return /blackberry/i.test(ua) || /bb10/i.test(ua);
47595
- },
47596
- /**
47597
- * Determines whether the code is being executed on a Windows phone.
47598
- * @static
47599
- * @function isWindowsPhone
47600
- * @param {String} [ua=navigator.userAgent] - The user agent to test against.
47601
- * @example
47602
- * EnvironmentUtils.isWindowsPhone();
47603
- * @returns {Boolean} - Whether the environment is Windows phone.
47604
- */
47605
- isWindowsPhone: function isWindowsPhone() {
47606
- var ua = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : userAgent;
47607
- return this.isWindows() && /phone/i.test(ua);
47608
- },
47609
- /**
47610
- * Determines whether the code is being executed on a Windows tablet.
47611
- * @static
47612
- * @function isWindowsTablet
47613
- * @param {String} [ua=navigator.userAgent] - The user agent to test against.
47614
- * @example
47615
- * EnvironmentUtils.isWindowsTablet();
47616
- * @returns {Boolean} - Whether the environment is Windows tablet.
47617
- */
47618
- isWindowsTablet: function isWindowsTablet() {
47619
- var ua = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : userAgent;
47620
- return this.isWindows() && !this.isWindowsPhone(ua) && /touch/i.test(ua);
47621
- },
47622
- /**
47623
- * Determines whether the code is being executed on Windows.
47624
- * @static
47625
- * @function isWindows
47626
- * @param {String} [ua=navigator.userAgent] - The user agent to test against.
47627
- * @example
47628
- * EnvironmentUtils.isWindows();
47629
- * @returns {Boolean} - Whether the environment is Windows.
47630
- */
47631
- isWindows: function isWindows() {
47632
- return /win/i.test(appVersion);
47633
- },
47634
- /**
47635
- * Determines whether the code is being executed on a tablet.
47636
- * @static
47637
- * @function isTablet
47638
- * @param {String} [ua=navigator.userAgent] - The user agent to test against.
47639
- * @example
47640
- * EnvironmentUtils.isTablet();
47641
- * @returns {Boolean} - Whether the environment is a tablet.
47642
- */
47643
- isTablet: function isTablet() {
47644
- var ua = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : userAgent;
47645
- return this.isiPad(null, ua) || this.isAndroidTablet(ua) || this.isWindowsTablet(ua);
47646
- },
47647
- /**
47648
- * Determines whether the code is being executed on a mobile device.
47649
- * @static
47650
- * @function isMobileDevice
47651
- * @param {String} [ua=navigator.userAgent] - The user agent to test against.
47652
- * @example
47653
- * EnvironmentUtils.isMobileDevice();
47654
- * @returns {Boolean} - Whether the environment is a mobile device.
47655
- */
47656
- isMobileDevice: function isMobileDevice() {
47657
- var ua = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : userAgent;
47658
- return this.isiPhone(null, ua) || this.isiPod(null, ua) || this.isAndroidPhone(ua) || this.isBlackberry(ua) || this.isWindowsPhone(ua);
47659
- },
47660
- /**
47661
- * Determines whether the code is being executed on a touch device.
47662
- * @static
47663
- * @function isTouchDevice
47664
- * @example
47665
- * EnvironmentUtils.isTouchDevice();
47666
- * @returns {Boolean} - Whether the environment is a touch device.
47667
- */
47668
- isTouchDevice: function isTouchDevice() {
47669
- return Boolean(_ssrWindow.document) && ('ontouchstart' in _ssrWindow.document.documentElement || 'DocumentTouch' in _ssrWindow.document.documentElement && _ssrWindow.document instanceof window.DocumentTouch);
47670
- },
47671
- /**
47672
- * Determines whether the display has a high density.
47673
- * @static
47674
- * @function isHighDensityDisplay
47675
- * @example
47676
- * EnvironmentUtils.isHighDensityDisplay();
47677
- * @returns {Boolean} - Whether the display is high density.
47678
- */
47679
- isHighDensityDisplay: function isHighDensityDisplay() {
47680
- return _ssrWindow.window.matchMedia && (_ssrWindow.window.matchMedia('only screen and (min-resolution: 124dpi), only screen and (min-resolution: 1.3dppx), only screen and (min-resolution: 48.8dpcm)').matches || _ssrWindow.window.matchMedia('only screen and (-webkit-min-device-pixel-ratio: 1.3), only screen and (-o-min-device-pixel-ratio: 2.6/2), only screen and (min--moz-device-pixel-ratio: 1.3), only screen and (min-device-pixel-ratio: 1.3)').matches) || _ssrWindow.window.devicePixelRatio && _ssrWindow.window.devicePixelRatio > 1.3;
47681
- },
47682
- /**
47683
- * Returns a string based on browser util booleans, consumed by Segment and Optimizely
47684
- * @static
47685
- * @function getBrowserCategory
47686
- * @returns {String} - The browser string
47687
- */
47688
- getBrowserCategory: function getBrowserCategory() {
47689
- if (this.isChrome()) {
47690
- return 'Chrome';
47691
- } else if (this.isFirefox()) {
47692
- return 'Firefox';
47693
- } else if (this.isSafari()) {
47694
- return 'Safari';
47695
- } else if (this.isEdge() || this.isIE()) {
47696
- return 'IE/Edge';
47697
- }
47698
- return 'Other';
47699
- }
47700
- };
47701
- environment$1["default"] = EnvironmentUtils;
47702
- return environment$1;
47703
- }
47704
-
47705
- var environment;
47706
- var hasRequiredEnvironment;
47707
- function requireEnvironment() {
47708
- if (hasRequiredEnvironment) return environment;
47709
- hasRequiredEnvironment = 1;
47710
- environment = requireEnvironment$1();
47711
- return environment;
47161
+ return window.matchMedia && (window.matchMedia('only screen and (min-resolution: 124dpi), only screen and (min-resolution: 1.3dppx), only screen and (min-resolution: 48.8dpcm)').matches || window.matchMedia('only screen and (-webkit-min-device-pixel-ratio: 1.3), only screen and (-o-min-device-pixel-ratio: 2.6/2), only screen and (min--moz-device-pixel-ratio: 1.3), only screen and (min-device-pixel-ratio: 1.3)').matches) || window.devicePixelRatio && window.devicePixelRatio > 1.3;
47712
47162
  }
47713
-
47714
- var environmentExports = requireEnvironment();
47715
- var EnvironmentUtils = /*@__PURE__*/getDefaultExportFromCjs(environmentExports);
47716
-
47717
- var _excluded$l = ["isSSR", "cloudinaryImageId", "cloudinaryTemplate", "cloudinaryCloudName", "htmlWidth", "htmlHeight", "quality", "lazyLoad"];
47718
47163
  var buildCloudinarySrc = function buildCloudinarySrc(_ref) {
47719
47164
  var cloudinaryImageId = _ref.cloudinaryImageId,
47720
47165
  cloudinaryTemplate = _ref.cloudinaryTemplate,
@@ -47722,7 +47167,7 @@ var buildCloudinarySrc = function buildCloudinarySrc(_ref) {
47722
47167
  htmlWidth = _ref.htmlWidth,
47723
47168
  htmlHeight = _ref.htmlHeight,
47724
47169
  quality = _ref.quality;
47725
- var defaultTemplate = "https://res.cloudinary.com/".concat(cloudinaryCloudName, "/image/upload/$w_{{WIDTH}},$h_{{HEIGHT}},$q_{{QUALITY}}/c_fill,f_auto,fl_progressive,dpr_").concat(EnvironmentUtils.isHighDensityDisplay() ? 2 : 1, ",h_$h,q_$q,w_$w/").concat(cloudinaryImageId);
47170
+ var defaultTemplate = "https://res.cloudinary.com/".concat(cloudinaryCloudName, "/image/upload/$w_{{WIDTH}},$h_{{HEIGHT}},$q_{{QUALITY}}/c_fill,f_auto,fl_progressive,dpr_").concat(isHighDensityDisplay() ? 2 : 1, ",h_$h,q_$q,w_$w/").concat(cloudinaryImageId);
47726
47171
  var tmpl = cloudinaryTemplate ? cloudinaryTemplate : defaultTemplate;
47727
47172
  return template(tmpl, {
47728
47173
  interpolate: /{{([\s\S]+?)}}/g // matches template vars in the format '{{ var }}' or '{{var}}'