@shipengine/elements 0.21.2 → 0.21.4

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.
Files changed (133) hide show
  1. package/index.cjs +787 -1056
  2. package/index.js +694 -954
  3. package/package.json +2 -6
  4. package/src/components/error-fallback/error-fallback.d.ts +9 -0
  5. package/src/components/error-fallback/index.d.ts +1 -0
  6. package/src/components/field/money-input/hooks/use-utils.d.ts +1 -1
  7. package/src/components/field/money-input/money-input.d.ts +1 -1
  8. package/src/components/field/rate-card/cost-breakdown/cost-breakdown.d.ts +1 -1
  9. package/src/components/field/rate-card/rate-card.d.ts +1 -2
  10. package/src/components/history/history-card/history-card.d.ts +1 -1
  11. package/src/components/index.d.ts +1 -1
  12. package/src/components/items-breakdown/items-breakdown.d.ts +1 -1
  13. package/src/components/label-layout/label-layout-purchase.d.ts +1 -1
  14. package/src/components/label-layout/label-layout-settings.d.ts +1 -1
  15. package/src/components/templates/add-carrier-form/add-carrier-form.d.ts +1 -1
  16. package/src/components/templates/address-display/address-display.d.ts +1 -1
  17. package/src/components/templates/address-form/address-form.d.ts +1 -1
  18. package/src/components/templates/address-preference-display/address-preference-display.d.ts +1 -1
  19. package/src/components/templates/address-preference-select/address-preference-select.d.ts +1 -1
  20. package/src/components/templates/carrier-recovery-form/carrier-recovery-form.d.ts +1 -1
  21. package/src/components/templates/carrier-terms-form/carrier-terms-form.d.ts +1 -1
  22. package/src/components/templates/customs-item-form/customs-item-form.d.ts +1 -1
  23. package/src/components/templates/customs-items-display/customs-items-display.d.ts +1 -1
  24. package/src/components/templates/label/label.d.ts +1 -1
  25. package/src/components/templates/list-carriers/list-carriers.d.ts +2 -2
  26. package/src/components/templates/list-carriers-row/list-carriers-row.d.ts +2 -2
  27. package/src/components/templates/manage-warehouses/manage-warehouses.d.ts +1 -1
  28. package/src/components/templates/onboarding/onboarding.d.ts +1 -1
  29. package/src/components/templates/rate-form/rate-form.d.ts +1 -1
  30. package/src/components/templates/shipment/shipment.d.ts +1 -1
  31. package/src/components/templates/shipment-form/shipment-form.d.ts +1 -1
  32. package/src/components/templates/shipment-form/shipment-schema.d.ts +1 -1
  33. package/src/components/templates/suspend-sales-order/suspend-sales-order.d.ts +1 -1
  34. package/src/components/templates/suspend-shipment/suspend-shipment.d.ts +1 -1
  35. package/src/components/templates/void-label/void-label.d.ts +1 -1
  36. package/src/components/templates/wallet-form/edit-wallet-address-form.d.ts +1 -1
  37. package/src/components/templates/wallet-form/wallet-form.d.ts +1 -1
  38. package/src/components/templates/wallet-form/wallet-schema.d.ts +1 -1
  39. package/src/components/templates/warehouse-display/warehouse-display.d.ts +1 -1
  40. package/src/components/templates/warehouse-form/warehouse-form.d.ts +1 -1
  41. package/src/elements/{components/configure-shipment → configure-shipment}/configure-shipment.d.ts +3 -3
  42. package/src/elements/{components/configure-shipment → configure-shipment}/hooks/use-address.d.ts +3 -3
  43. package/src/elements/{components/configure-shipment → configure-shipment}/hooks/use-customs.d.ts +1 -1
  44. package/src/elements/{components/configure-shipment → configure-shipment}/hooks/use-presets.d.ts +2 -2
  45. package/src/elements/{components/configure-shipment → configure-shipment}/hooks/use-rates-form.d.ts +1 -1
  46. package/src/elements/{components/configure-shipment → configure-shipment}/hooks/use-request-rates.d.ts +1 -1
  47. package/src/elements/{components/configure-shipment → configure-shipment}/hooks/use-shipment-form.d.ts +5 -5
  48. package/src/elements/index.d.ts +6 -6
  49. package/src/elements/{components/list-carriers → list-carriers}/hooks/use-list-connected-carriers.d.ts +3 -3
  50. package/src/elements/list-carriers/index.d.ts +1 -0
  51. package/src/elements/list-carriers/list-carriers.d.ts +578 -0
  52. package/src/elements/manage-warehouses/index.d.ts +1 -0
  53. package/src/elements/manage-warehouses/manage-warehouses.d.ts +582 -0
  54. package/src/elements/onboarding/index.d.ts +1 -0
  55. package/src/elements/onboarding/onboarding.d.ts +581 -0
  56. package/src/elements/{components/purchase-label → purchase-label}/hooks/use-configure-shipment.d.ts +1 -1
  57. package/src/elements/{components/purchase-label → purchase-label}/hooks/use-import-sales-order.d.ts +2 -2
  58. package/src/elements/{components/purchase-label → purchase-label}/hooks/use-load-shipment.d.ts +3 -3
  59. package/src/elements/{components/purchase-label → purchase-label}/hooks/use-pending-shipment.d.ts +1 -1
  60. package/src/elements/purchase-label/index.d.ts +1 -0
  61. package/src/elements/{components/purchase-label → purchase-label}/purchase-label-by-sales-order.d.ts +1 -1
  62. package/src/elements/purchase-label/purchase-label.d.ts +584 -0
  63. package/src/elements/view-shipment/index.d.ts +1 -0
  64. package/src/elements/view-shipment/view-shipment.d.ts +590 -0
  65. package/src/elements/void-label/index.d.ts +1 -0
  66. package/src/elements/void-label/void-label.d.ts +585 -0
  67. package/src/factories/shipengine/address.d.ts +1 -1
  68. package/src/factories/shipengine/carrier.d.ts +1 -1
  69. package/src/factories/shipengine/label.d.ts +1 -1
  70. package/src/factories/shipengine/money.d.ts +1 -1
  71. package/src/factories/shipengine/order-source.d.ts +1 -1
  72. package/src/factories/shipengine/package.d.ts +1 -1
  73. package/src/factories/shipengine/resource.d.ts +1 -1
  74. package/src/factories/shipengine/sales-order.d.ts +1 -1
  75. package/src/factories/shipengine/service.d.ts +1 -1
  76. package/src/factories/shipengine/shipment.d.ts +1 -1
  77. package/src/factories/shipengine/wallet-history.d.ts +1 -1
  78. package/src/factories/shipengine/warehouse.d.ts +1 -1
  79. package/src/factories/shipengine/weight.d.ts +1 -1
  80. package/src/hooks/index.d.ts +0 -1
  81. package/src/hooks/options/use-confirmation-options.d.ts +1 -1
  82. package/src/hooks/options/use-customs-contents-options.d.ts +1 -1
  83. package/src/hooks/options/use-customs-non-delivery-options.d.ts +1 -1
  84. package/src/hooks/options/use-insurance-provider-options.d.ts +1 -1
  85. package/src/hooks/options/use-package-options.d.ts +1 -1
  86. package/src/hooks/options/use-rate-options.d.ts +1 -1
  87. package/src/hooks/options/use-service-code-options.d.ts +1 -1
  88. package/src/hooks/options/use-warehouse-options.d.ts +1 -1
  89. package/src/hooks/use-address-validation.d.ts +1 -1
  90. package/src/hooks/use-carrier-metadata.d.ts +1 -1
  91. package/src/hooks/use-elements.d.ts +1 -1
  92. package/src/hooks/use-scrub-errors.d.ts +1 -1
  93. package/src/index.d.ts +0 -2
  94. package/src/mocks/carriers/handlers.d.ts +1 -1
  95. package/src/mocks/warehouses/handlers.d.ts +1 -1
  96. package/src/schemas/shipengine/money.d.ts +1 -1
  97. package/src/types/carrier-metadata.d.ts +1 -1
  98. package/src/types/shipping-preset/shipping-preset.d.ts +1 -1
  99. package/src/utilities/money.d.ts +1 -1
  100. package/src/utilities/rates.d.ts +1 -1
  101. package/src/utilities/shipengine/address.d.ts +1 -1
  102. package/src/utilities/shipengine/dimensions.d.ts +1 -1
  103. package/src/utilities/shipengine/sales-order.d.ts +1 -1
  104. package/src/utilities/shipengine/shipment.d.ts +1 -1
  105. package/src/utilities/shipengine/weight.d.ts +1 -1
  106. package/src/components/error-boundary/error-boundary.d.ts +0 -31
  107. package/src/components/error-boundary/index.d.ts +0 -1
  108. package/src/elements/components/index.d.ts +0 -7
  109. package/src/elements/components/list-carriers/index.d.ts +0 -1
  110. package/src/elements/components/list-carriers/list-carriers.d.ts +0 -1
  111. package/src/elements/components/manage-warehouses/index.d.ts +0 -1
  112. package/src/elements/components/manage-warehouses/manage-warehouses.d.ts +0 -5
  113. package/src/elements/components/onboarding/index.d.ts +0 -1
  114. package/src/elements/components/onboarding/onboarding.d.ts +0 -4
  115. package/src/elements/components/purchase-label/index.d.ts +0 -3
  116. package/src/elements/components/purchase-label/purchase-label.d.ts +0 -6
  117. package/src/elements/components/shipment/index.d.ts +0 -1
  118. package/src/elements/components/shipment/shipment.d.ts +0 -13
  119. package/src/elements/components/void-label/index.d.ts +0 -1
  120. package/src/elements/components/void-label/void-label.d.ts +0 -8
  121. package/src/elements/list-carriers.d.ts +0 -1
  122. package/src/elements/manage-warehouses.d.ts +0 -1
  123. package/src/elements/onboarding.d.ts +0 -1
  124. package/src/elements/purchase-label.d.ts +0 -3
  125. package/src/elements/view-shipment.d.ts +0 -1
  126. package/src/elements/void-label.d.ts +0 -1
  127. package/src/providers/giger-provider.d.ts +0 -8
  128. package/src/providers/index.d.ts +0 -1
  129. package/src/register.d.ts +0 -16
  130. /package/src/elements/{components/configure-shipment → configure-shipment}/hooks/index.d.ts +0 -0
  131. /package/src/elements/{components/configure-shipment → configure-shipment}/index.d.ts +0 -0
  132. /package/src/elements/{components/purchase-label → purchase-label}/hooks/index.d.ts +0 -0
  133. /package/src/elements/{components/purchase-label → purchase-label}/purchase-label-by-shipment.d.ts +0 -0
package/index.js CHANGED
@@ -1,31 +1,25 @@
1
1
  import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
2
2
  import { useController, get as get$1, set as set$2, useWatch, useFormState, useForm } from 'react-hook-form';
3
- import { useTranslation, Trans, initReactI18next, I18nextProvider } from 'react-i18next';
4
- import { Typography, FormField, FieldMessageType, Checkbox, Input, Icon, Divider, Link, SelectAutocomplete, Select as Select$1, OptionGroup, Option, Button, Switch as Switch$1, Textarea, ButtonVariant, InlineNotification, NotificationType, ButtonColor, Grid, GridChild, Tag, TagColor, Skeleton, SkeletonAnimation, SkeletonVariant, SkeletonBackgroundColor, RadioGroup, Radio, IconSize, Stepper, Step, Spinner, SpinnerSize, ChipList, Chip, ButtonSize, Table, TableBody, TableBaseRow, TableBodyCell, TableHeader, TableHeaderCell, Popover, DropdownOptionList, BottomSheet, DatePicker as DatePicker$1, GigerConfigProvider, EmotionReset, FontsLoader } from '@packlink/giger';
3
+ import { useTranslation, Trans } from 'react-i18next';
4
+ import { Typography, FormField, FieldMessageType, Checkbox, Input, Icon, Divider, Link, SelectAutocomplete, Select as Select$1, OptionGroup, Option, Button, Switch as Switch$1, Textarea, ButtonVariant, InlineNotification, NotificationType, ButtonColor, Grid, GridChild, Tag, TagColor, Skeleton, SkeletonAnimation, SkeletonVariant, SkeletonBackgroundColor, RadioGroup, Radio, IconSize, Stepper, Step, Spinner, SpinnerSize, ChipList, Chip, ButtonSize, Table, TableBody, TableBaseRow, TableBodyCell, TableHeader, TableHeaderCell, Popover, DropdownOptionList, BottomSheet, DatePicker as DatePicker$1 } from '@packlink/giger';
5
5
  import axios from 'axios';
6
- import { logger, ShipEngine, useValidateAddresses, useAddFunds, useGetCarrierById, useUpdateAutoFunding, useGetAutoFundingConfiguration, useListCarriers, useConnectCarrier, useListWarehouses, useUpdateWarehouse, useCreateWarehouse, useDeleteWarehouse, useUpdateSalesOrderShipment, useParseAddress, useListCustomPackageTypes, useCalculateRates, useCreateLabel, useListSalesOrderShipments, useCreateSalesOrderShipment, useGetAccountSettings, useListSalesOrders, useGetSalesOrder, useListOrderSources, useRefreshOrderSource, useGetShipment, useGetSalesOrderShipment, useListLabels, useGetLabel, useVoidLabel } from '@shipengine/react-api';
6
+ import alchemy, { logger, SE, useValidateAddresses, useAddFunds, useGetCarrierById, useUpdateAutoFunding, useGetAutoFundingConfiguration, Currency, useListCarriers, useConnectCarrier, useListWarehouses, useUpdateWarehouse, useCreateWarehouse, useDeleteWarehouse, useUpdateSalesOrderShipment, useParseAddress, useListCustomPackageTypes, useCalculateRates, useCreateLabel, useListSalesOrderShipments, useCreateSalesOrderShipment, useGetAccountSettings, useListSalesOrders, useGetSalesOrder, useListOrderSources, useRefreshOrderSource, useGetShipment, useGetSalesOrderShipment, useListLabels, useGetLabel, useVoidLabel } from '@shipengine/alchemy';
7
7
  import { zodResolver } from '@hookform/resolvers/zod';
8
8
  import { z } from 'zod';
9
9
  import * as React from 'react';
10
10
  import { useEffect, useRef, useCallback, useReducer, useMemo, memo, forwardRef, useState, createContext, useContext, createElement as createElement$3, Fragment as Fragment$1 } from 'react';
11
- import { useTheme, css as css$1, createElement as createElement$2, keyframes, ThemeProvider, CacheProvider } from '@emotion/react';
11
+ import { useTheme, css as css$1, createElement as createElement$2, keyframes } from '@emotion/react';
12
12
  import { camelize } from 'humps';
13
13
  import ReactDatePicker from 'react-datepicker';
14
- import { IconNames, Theme } from '@packlink/giger-theme';
14
+ import { IconNames } from '@packlink/giger-theme';
15
15
  import { css } from '@emotion/css';
16
- import { SE, Currency } from '@shipengine/js-api';
17
16
  import _$2, { isEqual } from 'lodash';
18
17
  import { createPortal } from 'react-dom';
19
18
  import { isValidPhoneNumber } from 'libphonenumber-js/min';
20
19
  import { encode } from 'js-base64';
21
20
  import cardValidator from 'card-validator';
22
21
  import { useQueryClient } from 'react-query';
23
- import { IconNames as IconNames$1, BrandName } from '@packlink/brands';
24
- import createCache from '@emotion/cache';
25
- import memoize from '@emotion/memoize';
26
- import i18n from 'i18next';
27
- import languageDetector from 'i18next-browser-languagedetector';
28
- import { prefixer } from 'stylis';
22
+ import { IconNames as IconNames$1 } from '@packlink/brands';
29
23
 
30
24
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
31
25
 
@@ -46,7 +40,7 @@ var global$p =
46
40
 
47
41
  var objectGetOwnPropertyDescriptor = {};
48
42
 
49
- var fails$r = function (exec) {
43
+ var fails$q = function (exec) {
50
44
  try {
51
45
  return !!exec();
52
46
  } catch (error) {
@@ -54,17 +48,17 @@ var fails$r = function (exec) {
54
48
  }
55
49
  };
56
50
 
57
- var fails$q = fails$r;
51
+ var fails$p = fails$q;
58
52
 
59
53
  // Detect IE8's incomplete defineProperty implementation
60
- var descriptors = !fails$q(function () {
54
+ var descriptors = !fails$p(function () {
61
55
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
62
56
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
63
57
  });
64
58
 
65
- var fails$p = fails$r;
59
+ var fails$o = fails$q;
66
60
 
67
- var functionBindNative = !fails$p(function () {
61
+ var functionBindNative = !fails$o(function () {
68
62
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
69
63
  var test = (function () { /* empty */ }).bind();
70
64
  // eslint-disable-next-line no-prototype-builtins -- safe
@@ -83,15 +77,15 @@ var objectPropertyIsEnumerable = {};
83
77
 
84
78
  var $propertyIsEnumerable = {}.propertyIsEnumerable;
85
79
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
86
- var getOwnPropertyDescriptor$3 = Object.getOwnPropertyDescriptor;
80
+ var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
87
81
 
88
82
  // Nashorn ~ JDK8 bug
89
- var NASHORN_BUG = getOwnPropertyDescriptor$3 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
83
+ var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
90
84
 
91
85
  // `Object.prototype.propertyIsEnumerable` method implementation
92
86
  // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
93
87
  objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
94
- var descriptor = getOwnPropertyDescriptor$3(this, V);
88
+ var descriptor = getOwnPropertyDescriptor$2(this, V);
95
89
  return !!descriptor && descriptor.enumerable;
96
90
  } : $propertyIsEnumerable;
97
91
 
@@ -116,24 +110,24 @@ var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
116
110
  };
117
111
  };
118
112
 
119
- var uncurryThis$r = functionUncurryThis;
113
+ var uncurryThis$q = functionUncurryThis;
120
114
 
121
- var toString$e = uncurryThis$r({}.toString);
122
- var stringSlice$7 = uncurryThis$r(''.slice);
115
+ var toString$d = uncurryThis$q({}.toString);
116
+ var stringSlice$6 = uncurryThis$q(''.slice);
123
117
 
124
118
  var classofRaw$2 = function (it) {
125
- return stringSlice$7(toString$e(it), 8, -1);
119
+ return stringSlice$6(toString$d(it), 8, -1);
126
120
  };
127
121
 
128
- var uncurryThis$q = functionUncurryThis;
129
- var fails$o = fails$r;
122
+ var uncurryThis$p = functionUncurryThis;
123
+ var fails$n = fails$q;
130
124
  var classof$8 = classofRaw$2;
131
125
 
132
126
  var $Object$4 = Object;
133
- var split = uncurryThis$q(''.split);
127
+ var split = uncurryThis$p(''.split);
134
128
 
135
129
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
136
- var indexedObject = fails$o(function () {
130
+ var indexedObject = fails$n(function () {
137
131
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
138
132
  // eslint-disable-next-line no-prototype-builtins -- safe
139
133
  return !$Object$4('z').propertyIsEnumerable(0);
@@ -153,17 +147,17 @@ var $TypeError$h = TypeError;
153
147
 
154
148
  // `RequireObjectCoercible` abstract operation
155
149
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
156
- var requireObjectCoercible$9 = function (it) {
150
+ var requireObjectCoercible$8 = function (it) {
157
151
  if (isNullOrUndefined$5(it)) throw $TypeError$h("Can't call method on " + it);
158
152
  return it;
159
153
  };
160
154
 
161
155
  // toObject with fallback for non-array-like ES3 strings
162
156
  var IndexedObject$2 = indexedObject;
163
- var requireObjectCoercible$8 = requireObjectCoercible$9;
157
+ var requireObjectCoercible$7 = requireObjectCoercible$8;
164
158
 
165
159
  var toIndexedObject$5 = function (it) {
166
- return IndexedObject$2(requireObjectCoercible$8(it));
160
+ return IndexedObject$2(requireObjectCoercible$7(it));
167
161
  };
168
162
 
169
163
  var documentAll$2 = typeof document == 'object' && document.all;
@@ -182,41 +176,41 @@ var documentAll$1 = $documentAll$1.all;
182
176
 
183
177
  // `IsCallable` abstract operation
184
178
  // https://tc39.es/ecma262/#sec-iscallable
185
- var isCallable$o = $documentAll$1.IS_HTMLDDA ? function (argument) {
179
+ var isCallable$n = $documentAll$1.IS_HTMLDDA ? function (argument) {
186
180
  return typeof argument == 'function' || argument === documentAll$1;
187
181
  } : function (argument) {
188
182
  return typeof argument == 'function';
189
183
  };
190
184
 
191
- var isCallable$n = isCallable$o;
185
+ var isCallable$m = isCallable$n;
192
186
  var $documentAll = documentAll_1;
193
187
 
194
188
  var documentAll = $documentAll.all;
195
189
 
196
190
  var isObject$a = $documentAll.IS_HTMLDDA ? function (it) {
197
- return typeof it == 'object' ? it !== null : isCallable$n(it) || it === documentAll;
191
+ return typeof it == 'object' ? it !== null : isCallable$m(it) || it === documentAll;
198
192
  } : function (it) {
199
- return typeof it == 'object' ? it !== null : isCallable$n(it);
193
+ return typeof it == 'object' ? it !== null : isCallable$m(it);
200
194
  };
201
195
 
202
196
  var global$o = global$p;
203
- var isCallable$m = isCallable$o;
197
+ var isCallable$l = isCallable$n;
204
198
 
205
199
  var aFunction = function (argument) {
206
- return isCallable$m(argument) ? argument : undefined;
200
+ return isCallable$l(argument) ? argument : undefined;
207
201
  };
208
202
 
209
- var getBuiltIn$9 = function (namespace, method) {
203
+ var getBuiltIn$8 = function (namespace, method) {
210
204
  return arguments.length < 2 ? aFunction(global$o[namespace]) : global$o[namespace] && global$o[namespace][method];
211
205
  };
212
206
 
213
- var uncurryThis$p = functionUncurryThis;
207
+ var uncurryThis$o = functionUncurryThis;
214
208
 
215
- var objectIsPrototypeOf = uncurryThis$p({}.isPrototypeOf);
209
+ var objectIsPrototypeOf = uncurryThis$o({}.isPrototypeOf);
216
210
 
217
- var getBuiltIn$8 = getBuiltIn$9;
211
+ var getBuiltIn$7 = getBuiltIn$8;
218
212
 
219
- var engineUserAgent = getBuiltIn$8('navigator', 'userAgent') || '';
213
+ var engineUserAgent = getBuiltIn$7('navigator', 'userAgent') || '';
220
214
 
221
215
  var global$n = global$p;
222
216
  var userAgent$5 = engineUserAgent;
@@ -249,10 +243,10 @@ var engineV8Version = version;
249
243
  /* eslint-disable es/no-symbol -- required for testing */
250
244
 
251
245
  var V8_VERSION$1 = engineV8Version;
252
- var fails$n = fails$r;
246
+ var fails$m = fails$q;
253
247
 
254
248
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
255
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$n(function () {
249
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$m(function () {
256
250
  var symbol = Symbol();
257
251
  // Chrome 38 Symbol has incorrect toString conversion
258
252
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -269,8 +263,8 @@ var useSymbolAsUid = NATIVE_SYMBOL$2
269
263
  && !Symbol.sham
270
264
  && typeof Symbol.iterator == 'symbol';
271
265
 
272
- var getBuiltIn$7 = getBuiltIn$9;
273
- var isCallable$l = isCallable$o;
266
+ var getBuiltIn$6 = getBuiltIn$8;
267
+ var isCallable$k = isCallable$n;
274
268
  var isPrototypeOf$4 = objectIsPrototypeOf;
275
269
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
276
270
 
@@ -279,8 +273,8 @@ var $Object$3 = Object;
279
273
  var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
280
274
  return typeof it == 'symbol';
281
275
  } : function (it) {
282
- var $Symbol = getBuiltIn$7('Symbol');
283
- return isCallable$l($Symbol) && isPrototypeOf$4($Symbol.prototype, $Object$3(it));
276
+ var $Symbol = getBuiltIn$6('Symbol');
277
+ return isCallable$k($Symbol) && isPrototypeOf$4($Symbol.prototype, $Object$3(it));
284
278
  };
285
279
 
286
280
  var $String$4 = String;
@@ -293,14 +287,14 @@ var tryToString$5 = function (argument) {
293
287
  }
294
288
  };
295
289
 
296
- var isCallable$k = isCallable$o;
290
+ var isCallable$j = isCallable$n;
297
291
  var tryToString$4 = tryToString$5;
298
292
 
299
293
  var $TypeError$g = TypeError;
300
294
 
301
295
  // `Assert: IsCallable(argument) is true`
302
296
  var aCallable$a = function (argument) {
303
- if (isCallable$k(argument)) return argument;
297
+ if (isCallable$j(argument)) return argument;
304
298
  throw $TypeError$g(tryToString$4(argument) + ' is not a function');
305
299
  };
306
300
 
@@ -315,7 +309,7 @@ var getMethod$5 = function (V, P) {
315
309
  };
316
310
 
317
311
  var call$h = functionCall;
318
- var isCallable$j = isCallable$o;
312
+ var isCallable$i = isCallable$n;
319
313
  var isObject$9 = isObject$a;
320
314
 
321
315
  var $TypeError$f = TypeError;
@@ -324,9 +318,9 @@ var $TypeError$f = TypeError;
324
318
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
325
319
  var ordinaryToPrimitive$1 = function (input, pref) {
326
320
  var fn, val;
327
- if (pref === 'string' && isCallable$j(fn = input.toString) && !isObject$9(val = call$h(fn, input))) return val;
328
- if (isCallable$j(fn = input.valueOf) && !isObject$9(val = call$h(fn, input))) return val;
329
- if (pref !== 'string' && isCallable$j(fn = input.toString) && !isObject$9(val = call$h(fn, input))) return val;
321
+ if (pref === 'string' && isCallable$i(fn = input.toString) && !isObject$9(val = call$h(fn, input))) return val;
322
+ if (isCallable$i(fn = input.valueOf) && !isObject$9(val = call$h(fn, input))) return val;
323
+ if (pref !== 'string' && isCallable$i(fn = input.toString) && !isObject$9(val = call$h(fn, input))) return val;
330
324
  throw $TypeError$f("Can't convert object to primitive value");
331
325
  };
332
326
 
@@ -365,36 +359,36 @@ var store$2 = sharedStore;
365
359
  source: 'https://github.com/zloirock/core-js'
366
360
  });
367
361
 
368
- var requireObjectCoercible$7 = requireObjectCoercible$9;
362
+ var requireObjectCoercible$6 = requireObjectCoercible$8;
369
363
 
370
364
  var $Object$2 = Object;
371
365
 
372
366
  // `ToObject` abstract operation
373
367
  // https://tc39.es/ecma262/#sec-toobject
374
- var toObject$8 = function (argument) {
375
- return $Object$2(requireObjectCoercible$7(argument));
368
+ var toObject$7 = function (argument) {
369
+ return $Object$2(requireObjectCoercible$6(argument));
376
370
  };
377
371
 
378
- var uncurryThis$o = functionUncurryThis;
379
- var toObject$7 = toObject$8;
372
+ var uncurryThis$n = functionUncurryThis;
373
+ var toObject$6 = toObject$7;
380
374
 
381
- var hasOwnProperty = uncurryThis$o({}.hasOwnProperty);
375
+ var hasOwnProperty = uncurryThis$n({}.hasOwnProperty);
382
376
 
383
377
  // `HasOwnProperty` abstract operation
384
378
  // https://tc39.es/ecma262/#sec-hasownproperty
385
379
  // eslint-disable-next-line es/no-object-hasown -- safe
386
380
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
387
- return hasOwnProperty(toObject$7(it), key);
381
+ return hasOwnProperty(toObject$6(it), key);
388
382
  };
389
383
 
390
- var uncurryThis$n = functionUncurryThis;
384
+ var uncurryThis$m = functionUncurryThis;
391
385
 
392
386
  var id = 0;
393
387
  var postfix = Math.random();
394
- var toString$d = uncurryThis$n(1.0.toString);
388
+ var toString$c = uncurryThis$m(1.0.toString);
395
389
 
396
390
  var uid$2 = function (key) {
397
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$d(++id + postfix, 36);
391
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$c(++id + postfix, 36);
398
392
  };
399
393
 
400
394
  var global$k = global$p;
@@ -470,11 +464,11 @@ var documentCreateElement$2 = function (it) {
470
464
  };
471
465
 
472
466
  var DESCRIPTORS$b = descriptors;
473
- var fails$m = fails$r;
467
+ var fails$l = fails$q;
474
468
  var createElement$1 = documentCreateElement$2;
475
469
 
476
470
  // Thanks to IE8 for its funny defineProperty
477
- var ie8DomDefine = !DESCRIPTORS$b && !fails$m(function () {
471
+ var ie8DomDefine = !DESCRIPTORS$b && !fails$l(function () {
478
472
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
479
473
  return Object.defineProperty(createElement$1('div'), 'a', {
480
474
  get: function () { return 7; }
@@ -507,11 +501,11 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$a ? $getOwnPropertyDescriptor$1 :
507
501
  var objectDefineProperty = {};
508
502
 
509
503
  var DESCRIPTORS$9 = descriptors;
510
- var fails$l = fails$r;
504
+ var fails$k = fails$q;
511
505
 
512
506
  // V8 ~ Chrome 36-
513
507
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
514
- var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$l(function () {
508
+ var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$k(function () {
515
509
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
516
510
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
517
511
  value: 42,
@@ -605,14 +599,14 @@ var functionName = {
605
599
  CONFIGURABLE: CONFIGURABLE
606
600
  };
607
601
 
608
- var uncurryThis$m = functionUncurryThis;
609
- var isCallable$i = isCallable$o;
602
+ var uncurryThis$l = functionUncurryThis;
603
+ var isCallable$h = isCallable$n;
610
604
  var store$1 = sharedStore;
611
605
 
612
- var functionToString = uncurryThis$m(Function.toString);
606
+ var functionToString = uncurryThis$l(Function.toString);
613
607
 
614
608
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
615
- if (!isCallable$i(store$1.inspectSource)) {
609
+ if (!isCallable$h(store$1.inspectSource)) {
616
610
  store$1.inspectSource = function (it) {
617
611
  return functionToString(it);
618
612
  };
@@ -621,11 +615,11 @@ if (!isCallable$i(store$1.inspectSource)) {
621
615
  var inspectSource$3 = store$1.inspectSource;
622
616
 
623
617
  var global$i = global$p;
624
- var isCallable$h = isCallable$o;
618
+ var isCallable$g = isCallable$n;
625
619
 
626
620
  var WeakMap$1 = global$i.WeakMap;
627
621
 
628
- var weakMapBasicDetection = isCallable$h(WeakMap$1) && /native code/.test(String(WeakMap$1));
622
+ var weakMapBasicDetection = isCallable$g(WeakMap$1) && /native code/.test(String(WeakMap$1));
629
623
 
630
624
  var shared$2 = shared$4.exports;
631
625
  var uid = uid$2;
@@ -709,8 +703,8 @@ var internalState = {
709
703
  getterFor: getterFor
710
704
  };
711
705
 
712
- var fails$k = fails$r;
713
- var isCallable$g = isCallable$o;
706
+ var fails$j = fails$q;
707
+ var isCallable$f = isCallable$n;
714
708
  var hasOwn$7 = hasOwnProperty_1;
715
709
  var DESCRIPTORS$5 = descriptors;
716
710
  var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
@@ -722,7 +716,7 @@ var getInternalState$2 = InternalStateModule$2.get;
722
716
  // eslint-disable-next-line es/no-object-defineproperty -- safe
723
717
  var defineProperty$5 = Object.defineProperty;
724
718
 
725
- var CONFIGURABLE_LENGTH = DESCRIPTORS$5 && !fails$k(function () {
719
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$5 && !fails$j(function () {
726
720
  return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
727
721
  });
728
722
 
@@ -756,19 +750,19 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
756
750
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
757
751
  // eslint-disable-next-line no-extend-native -- required
758
752
  Function.prototype.toString = makeBuiltIn$1(function toString() {
759
- return isCallable$g(this) && getInternalState$2(this).source || inspectSource$2(this);
753
+ return isCallable$f(this) && getInternalState$2(this).source || inspectSource$2(this);
760
754
  }, 'toString');
761
755
 
762
- var isCallable$f = isCallable$o;
756
+ var isCallable$e = isCallable$n;
763
757
  var definePropertyModule$4 = objectDefineProperty;
764
758
  var makeBuiltIn = makeBuiltIn$2.exports;
765
759
  var defineGlobalProperty$1 = defineGlobalProperty$3;
766
760
 
767
- var defineBuiltIn$8 = function (O, key, value, options) {
761
+ var defineBuiltIn$7 = function (O, key, value, options) {
768
762
  if (!options) options = {};
769
763
  var simple = options.enumerable;
770
764
  var name = options.name !== undefined ? options.name : key;
771
- if (isCallable$f(value)) makeBuiltIn(value, name, options);
765
+ if (isCallable$e(value)) makeBuiltIn(value, name, options);
772
766
  if (options.global) {
773
767
  if (simple) O[key] = value;
774
768
  else defineGlobalProperty$1(key, value);
@@ -804,52 +798,52 @@ var trunc = mathTrunc;
804
798
 
805
799
  // `ToIntegerOrInfinity` abstract operation
806
800
  // https://tc39.es/ecma262/#sec-tointegerorinfinity
807
- var toIntegerOrInfinity$7 = function (argument) {
801
+ var toIntegerOrInfinity$6 = function (argument) {
808
802
  var number = +argument;
809
803
  // eslint-disable-next-line no-self-compare -- NaN check
810
804
  return number !== number || number === 0 ? 0 : trunc(number);
811
805
  };
812
806
 
813
- var toIntegerOrInfinity$6 = toIntegerOrInfinity$7;
807
+ var toIntegerOrInfinity$5 = toIntegerOrInfinity$6;
814
808
 
815
809
  var max$2 = Math.max;
816
- var min$3 = Math.min;
810
+ var min$2 = Math.min;
817
811
 
818
812
  // Helper for a popular repeating case of the spec:
819
813
  // Let integer be ? ToInteger(index).
820
814
  // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
821
815
  var toAbsoluteIndex$2 = function (index, length) {
822
- var integer = toIntegerOrInfinity$6(index);
823
- return integer < 0 ? max$2(integer + length, 0) : min$3(integer, length);
816
+ var integer = toIntegerOrInfinity$5(index);
817
+ return integer < 0 ? max$2(integer + length, 0) : min$2(integer, length);
824
818
  };
825
819
 
826
- var toIntegerOrInfinity$5 = toIntegerOrInfinity$7;
820
+ var toIntegerOrInfinity$4 = toIntegerOrInfinity$6;
827
821
 
828
- var min$2 = Math.min;
822
+ var min$1 = Math.min;
829
823
 
830
824
  // `ToLength` abstract operation
831
825
  // https://tc39.es/ecma262/#sec-tolength
832
- var toLength$4 = function (argument) {
833
- return argument > 0 ? min$2(toIntegerOrInfinity$5(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
826
+ var toLength$3 = function (argument) {
827
+ return argument > 0 ? min$1(toIntegerOrInfinity$4(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
834
828
  };
835
829
 
836
- var toLength$3 = toLength$4;
830
+ var toLength$2 = toLength$3;
837
831
 
838
832
  // `LengthOfArrayLike` abstract operation
839
833
  // https://tc39.es/ecma262/#sec-lengthofarraylike
840
- var lengthOfArrayLike$8 = function (obj) {
841
- return toLength$3(obj.length);
834
+ var lengthOfArrayLike$7 = function (obj) {
835
+ return toLength$2(obj.length);
842
836
  };
843
837
 
844
838
  var toIndexedObject$3 = toIndexedObject$5;
845
839
  var toAbsoluteIndex$1 = toAbsoluteIndex$2;
846
- var lengthOfArrayLike$7 = lengthOfArrayLike$8;
840
+ var lengthOfArrayLike$6 = lengthOfArrayLike$7;
847
841
 
848
842
  // `Array.prototype.{ indexOf, includes }` methods implementation
849
843
  var createMethod$3 = function (IS_INCLUDES) {
850
844
  return function ($this, el, fromIndex) {
851
845
  var O = toIndexedObject$3($this);
852
- var length = lengthOfArrayLike$7(O);
846
+ var length = lengthOfArrayLike$6(O);
853
847
  var index = toAbsoluteIndex$1(fromIndex, length);
854
848
  var value;
855
849
  // Array#includes uses SameValueZero equality algorithm
@@ -874,13 +868,13 @@ var arrayIncludes = {
874
868
  indexOf: createMethod$3(false)
875
869
  };
876
870
 
877
- var uncurryThis$l = functionUncurryThis;
871
+ var uncurryThis$k = functionUncurryThis;
878
872
  var hasOwn$6 = hasOwnProperty_1;
879
873
  var toIndexedObject$2 = toIndexedObject$5;
880
874
  var indexOf$1 = arrayIncludes.indexOf;
881
875
  var hiddenKeys$2 = hiddenKeys$4;
882
876
 
883
- var push$2 = uncurryThis$l([].push);
877
+ var push$2 = uncurryThis$k([].push);
884
878
 
885
879
  var objectKeysInternal = function (object, names) {
886
880
  var O = toIndexedObject$2(object);
@@ -923,16 +917,16 @@ var objectGetOwnPropertySymbols = {};
923
917
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
924
918
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
925
919
 
926
- var getBuiltIn$6 = getBuiltIn$9;
927
- var uncurryThis$k = functionUncurryThis;
920
+ var getBuiltIn$5 = getBuiltIn$8;
921
+ var uncurryThis$j = functionUncurryThis;
928
922
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
929
923
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
930
924
  var anObject$d = anObject$f;
931
925
 
932
- var concat$2 = uncurryThis$k([].concat);
926
+ var concat$2 = uncurryThis$j([].concat);
933
927
 
934
928
  // all object keys, includes non-enumerable and symbols
935
- var ownKeys$1 = getBuiltIn$6('Reflect', 'ownKeys') || function ownKeys(it) {
929
+ var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
936
930
  var keys = getOwnPropertyNamesModule.f(anObject$d(it));
937
931
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
938
932
  return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
@@ -955,8 +949,8 @@ var copyConstructorProperties$2 = function (target, source, exceptions) {
955
949
  }
956
950
  };
957
951
 
958
- var fails$j = fails$r;
959
- var isCallable$e = isCallable$o;
952
+ var fails$i = fails$q;
953
+ var isCallable$d = isCallable$n;
960
954
 
961
955
  var replacement = /#|\.prototype\./;
962
956
 
@@ -964,7 +958,7 @@ var isForced$2 = function (feature, detection) {
964
958
  var value = data[normalize(feature)];
965
959
  return value == POLYFILL ? true
966
960
  : value == NATIVE ? false
967
- : isCallable$e(detection) ? fails$j(detection)
961
+ : isCallable$d(detection) ? fails$i(detection)
968
962
  : !!detection;
969
963
  };
970
964
 
@@ -979,9 +973,9 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
979
973
  var isForced_1 = isForced$2;
980
974
 
981
975
  var global$g = global$p;
982
- var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
976
+ var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
983
977
  var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
984
- var defineBuiltIn$7 = defineBuiltIn$8;
978
+ var defineBuiltIn$6 = defineBuiltIn$7;
985
979
  var defineGlobalProperty = defineGlobalProperty$3;
986
980
  var copyConstructorProperties$1 = copyConstructorProperties$2;
987
981
  var isForced$1 = isForced_1;
@@ -1016,7 +1010,7 @@ var _export = function (options, source) {
1016
1010
  if (target) for (key in source) {
1017
1011
  sourceProperty = source[key];
1018
1012
  if (options.dontCallGetSet) {
1019
- descriptor = getOwnPropertyDescriptor$2(target, key);
1013
+ descriptor = getOwnPropertyDescriptor$1(target, key);
1020
1014
  targetProperty = descriptor && descriptor.value;
1021
1015
  } else targetProperty = target[key];
1022
1016
  FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
@@ -1029,7 +1023,7 @@ var _export = function (options, source) {
1029
1023
  if (options.sham || (targetProperty && targetProperty.sham)) {
1030
1024
  createNonEnumerableProperty$3(sourceProperty, 'sham', true);
1031
1025
  }
1032
- defineBuiltIn$7(target, key, sourceProperty, options);
1026
+ defineBuiltIn$6(target, key, sourceProperty, options);
1033
1027
  }
1034
1028
  };
1035
1029
 
@@ -1044,24 +1038,24 @@ var objectKeys$2 = Object.keys || function keys(O) {
1044
1038
  };
1045
1039
 
1046
1040
  var DESCRIPTORS$4 = descriptors;
1047
- var uncurryThis$j = functionUncurryThis;
1041
+ var uncurryThis$i = functionUncurryThis;
1048
1042
  var call$e = functionCall;
1049
- var fails$i = fails$r;
1043
+ var fails$h = fails$q;
1050
1044
  var objectKeys$1 = objectKeys$2;
1051
1045
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1052
1046
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1053
- var toObject$6 = toObject$8;
1047
+ var toObject$5 = toObject$7;
1054
1048
  var IndexedObject$1 = indexedObject;
1055
1049
 
1056
1050
  // eslint-disable-next-line es/no-object-assign -- safe
1057
1051
  var $assign = Object.assign;
1058
1052
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1059
1053
  var defineProperty$4 = Object.defineProperty;
1060
- var concat$1 = uncurryThis$j([].concat);
1054
+ var concat$1 = uncurryThis$i([].concat);
1061
1055
 
1062
1056
  // `Object.assign` method
1063
1057
  // https://tc39.es/ecma262/#sec-object.assign
1064
- var objectAssign = !$assign || fails$i(function () {
1058
+ var objectAssign = !$assign || fails$h(function () {
1065
1059
  // should have correct order of operations (Edge bug)
1066
1060
  if (DESCRIPTORS$4 && $assign({ b: 1 }, $assign(defineProperty$4({}, 'a', {
1067
1061
  enumerable: true,
@@ -1082,7 +1076,7 @@ var objectAssign = !$assign || fails$i(function () {
1082
1076
  alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1083
1077
  return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
1084
1078
  }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1085
- var T = toObject$6(target);
1079
+ var T = toObject$5(target);
1086
1080
  var argumentsLength = arguments.length;
1087
1081
  var index = 1;
1088
1082
  var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
@@ -1100,13 +1094,13 @@ var objectAssign = !$assign || fails$i(function () {
1100
1094
  } return T;
1101
1095
  } : $assign;
1102
1096
 
1103
- var $$m = _export;
1097
+ var $$j = _export;
1104
1098
  var assign = objectAssign;
1105
1099
 
1106
1100
  // `Object.assign` method
1107
1101
  // https://tc39.es/ecma262/#sec-object.assign
1108
1102
  // eslint-disable-next-line es/no-object-assign -- required for testing
1109
- $$m({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1103
+ $$j({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1110
1104
  assign: assign
1111
1105
  });
1112
1106
 
@@ -1148,9 +1142,9 @@ function __awaiter(thisArg, _arguments, P, generator) {
1148
1142
  }
1149
1143
 
1150
1144
  var aCallable$8 = aCallable$a;
1151
- var toObject$5 = toObject$8;
1145
+ var toObject$4 = toObject$7;
1152
1146
  var IndexedObject = indexedObject;
1153
- var lengthOfArrayLike$6 = lengthOfArrayLike$8;
1147
+ var lengthOfArrayLike$5 = lengthOfArrayLike$7;
1154
1148
 
1155
1149
  var $TypeError$b = TypeError;
1156
1150
 
@@ -1158,9 +1152,9 @@ var $TypeError$b = TypeError;
1158
1152
  var createMethod$2 = function (IS_RIGHT) {
1159
1153
  return function (that, callbackfn, argumentsLength, memo) {
1160
1154
  aCallable$8(callbackfn);
1161
- var O = toObject$5(that);
1155
+ var O = toObject$4(that);
1162
1156
  var self = IndexedObject(O);
1163
- var length = lengthOfArrayLike$6(O);
1157
+ var length = lengthOfArrayLike$5(O);
1164
1158
  var index = IS_RIGHT ? length - 1 : 0;
1165
1159
  var i = IS_RIGHT ? -1 : 1;
1166
1160
  if (argumentsLength < 2) while (true) {
@@ -1190,11 +1184,11 @@ var arrayReduce = {
1190
1184
  right: createMethod$2(true)
1191
1185
  };
1192
1186
 
1193
- var fails$h = fails$r;
1187
+ var fails$g = fails$q;
1194
1188
 
1195
1189
  var arrayMethodIsStrict$2 = function (METHOD_NAME, argument) {
1196
1190
  var method = [][METHOD_NAME];
1197
- return !!method && fails$h(function () {
1191
+ return !!method && fails$g(function () {
1198
1192
  // eslint-disable-next-line no-useless-call -- required for testing
1199
1193
  method.call(null, argument || function () { return 1; }, 1);
1200
1194
  });
@@ -1205,7 +1199,7 @@ var global$f = global$p;
1205
1199
 
1206
1200
  var engineIsNode = classof$7(global$f.process) == 'process';
1207
1201
 
1208
- var $$l = _export;
1202
+ var $$i = _export;
1209
1203
  var $reduce = arrayReduce.left;
1210
1204
  var arrayMethodIsStrict$1 = arrayMethodIsStrict$2;
1211
1205
  var CHROME_VERSION = engineV8Version;
@@ -1218,7 +1212,7 @@ var CHROME_BUG = !IS_NODE$4 && CHROME_VERSION > 79 && CHROME_VERSION < 83;
1218
1212
 
1219
1213
  // `Array.prototype.reduce` method
1220
1214
  // https://tc39.es/ecma262/#sec-array.prototype.reduce
1221
- $$l({ target: 'Array', proto: true, forced: !STRICT_METHOD$1 || CHROME_BUG }, {
1215
+ $$i({ target: 'Array', proto: true, forced: !STRICT_METHOD$1 || CHROME_BUG }, {
1222
1216
  reduce: function reduce(callbackfn /* , initialValue */) {
1223
1217
  var length = arguments.length;
1224
1218
  return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
@@ -1256,9 +1250,9 @@ objectDefineProperties.f = DESCRIPTORS$3 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
1256
1250
  return O;
1257
1251
  };
1258
1252
 
1259
- var getBuiltIn$5 = getBuiltIn$9;
1253
+ var getBuiltIn$4 = getBuiltIn$8;
1260
1254
 
1261
- var html$2 = getBuiltIn$5('document', 'documentElement');
1255
+ var html$2 = getBuiltIn$4('document', 'documentElement');
1262
1256
 
1263
1257
  /* global ActiveXObject -- old IE, WSH */
1264
1258
 
@@ -1362,15 +1356,15 @@ if (ArrayPrototype$1[UNSCOPABLES] == undefined) {
1362
1356
  }
1363
1357
 
1364
1358
  // add a key to Array.prototype[@@unscopables]
1365
- var addToUnscopables$4 = function (key) {
1359
+ var addToUnscopables$3 = function (key) {
1366
1360
  ArrayPrototype$1[UNSCOPABLES][key] = true;
1367
1361
  };
1368
1362
 
1369
1363
  var iterators = {};
1370
1364
 
1371
- var fails$g = fails$r;
1365
+ var fails$f = fails$q;
1372
1366
 
1373
- var correctPrototypeGetter = !fails$g(function () {
1367
+ var correctPrototypeGetter = !fails$f(function () {
1374
1368
  function F() { /* empty */ }
1375
1369
  F.prototype.constructor = null;
1376
1370
  // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
@@ -1378,8 +1372,8 @@ var correctPrototypeGetter = !fails$g(function () {
1378
1372
  });
1379
1373
 
1380
1374
  var hasOwn$4 = hasOwnProperty_1;
1381
- var isCallable$d = isCallable$o;
1382
- var toObject$4 = toObject$8;
1375
+ var isCallable$c = isCallable$n;
1376
+ var toObject$3 = toObject$7;
1383
1377
  var sharedKey = sharedKey$3;
1384
1378
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1385
1379
 
@@ -1391,19 +1385,19 @@ var ObjectPrototype = $Object$1.prototype;
1391
1385
  // https://tc39.es/ecma262/#sec-object.getprototypeof
1392
1386
  // eslint-disable-next-line es/no-object-getprototypeof -- safe
1393
1387
  var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1394
- var object = toObject$4(O);
1388
+ var object = toObject$3(O);
1395
1389
  if (hasOwn$4(object, IE_PROTO)) return object[IE_PROTO];
1396
1390
  var constructor = object.constructor;
1397
- if (isCallable$d(constructor) && object instanceof constructor) {
1391
+ if (isCallable$c(constructor) && object instanceof constructor) {
1398
1392
  return constructor.prototype;
1399
1393
  } return object instanceof $Object$1 ? ObjectPrototype : null;
1400
1394
  };
1401
1395
 
1402
- var fails$f = fails$r;
1403
- var isCallable$c = isCallable$o;
1396
+ var fails$e = fails$q;
1397
+ var isCallable$b = isCallable$n;
1404
1398
  var isObject$4 = isObject$a;
1405
1399
  var getPrototypeOf$1 = objectGetPrototypeOf;
1406
- var defineBuiltIn$6 = defineBuiltIn$8;
1400
+ var defineBuiltIn$5 = defineBuiltIn$7;
1407
1401
  var wellKnownSymbol$g = wellKnownSymbol$j;
1408
1402
 
1409
1403
  var ITERATOR$7 = wellKnownSymbol$g('iterator');
@@ -1424,7 +1418,7 @@ if ([].keys) {
1424
1418
  }
1425
1419
  }
1426
1420
 
1427
- var NEW_ITERATOR_PROTOTYPE = !isObject$4(IteratorPrototype$2) || fails$f(function () {
1421
+ var NEW_ITERATOR_PROTOTYPE = !isObject$4(IteratorPrototype$2) || fails$e(function () {
1428
1422
  var test = {};
1429
1423
  // FF44- legacy iterators case
1430
1424
  return IteratorPrototype$2[ITERATOR$7].call(test) !== test;
@@ -1434,8 +1428,8 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1434
1428
 
1435
1429
  // `%IteratorPrototype%[@@iterator]()` method
1436
1430
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1437
- if (!isCallable$c(IteratorPrototype$2[ITERATOR$7])) {
1438
- defineBuiltIn$6(IteratorPrototype$2, ITERATOR$7, function () {
1431
+ if (!isCallable$b(IteratorPrototype$2[ITERATOR$7])) {
1432
+ defineBuiltIn$5(IteratorPrototype$2, ITERATOR$7, function () {
1439
1433
  return this;
1440
1434
  });
1441
1435
  }
@@ -1474,19 +1468,19 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
1474
1468
  return IteratorConstructor;
1475
1469
  };
1476
1470
 
1477
- var isCallable$b = isCallable$o;
1471
+ var isCallable$a = isCallable$n;
1478
1472
 
1479
1473
  var $String$2 = String;
1480
1474
  var $TypeError$a = TypeError;
1481
1475
 
1482
1476
  var aPossiblePrototype$1 = function (argument) {
1483
- if (typeof argument == 'object' || isCallable$b(argument)) return argument;
1477
+ if (typeof argument == 'object' || isCallable$a(argument)) return argument;
1484
1478
  throw $TypeError$a("Can't set " + $String$2(argument) + ' as a prototype');
1485
1479
  };
1486
1480
 
1487
1481
  /* eslint-disable no-proto -- safe */
1488
1482
 
1489
- var uncurryThis$i = functionUncurryThis;
1483
+ var uncurryThis$h = functionUncurryThis;
1490
1484
  var anObject$a = anObject$f;
1491
1485
  var aPossiblePrototype = aPossiblePrototype$1;
1492
1486
 
@@ -1500,7 +1494,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1500
1494
  var setter;
1501
1495
  try {
1502
1496
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1503
- setter = uncurryThis$i(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1497
+ setter = uncurryThis$h(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1504
1498
  setter(test, []);
1505
1499
  CORRECT_SETTER = test instanceof Array;
1506
1500
  } catch (error) { /* empty */ }
@@ -1513,16 +1507,16 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1513
1507
  };
1514
1508
  }() : undefined);
1515
1509
 
1516
- var $$k = _export;
1510
+ var $$h = _export;
1517
1511
  var call$d = functionCall;
1518
1512
  var FunctionName = functionName;
1519
- var isCallable$a = isCallable$o;
1513
+ var isCallable$9 = isCallable$n;
1520
1514
  var createIteratorConstructor = iteratorCreateConstructor;
1521
1515
  var getPrototypeOf = objectGetPrototypeOf;
1522
1516
  var setPrototypeOf$1 = objectSetPrototypeOf;
1523
1517
  var setToStringTag$1 = setToStringTag$3;
1524
1518
  var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
1525
- var defineBuiltIn$5 = defineBuiltIn$8;
1519
+ var defineBuiltIn$4 = defineBuiltIn$7;
1526
1520
  var wellKnownSymbol$e = wellKnownSymbol$j;
1527
1521
  var Iterators$3 = iterators;
1528
1522
  var IteratorsCore = iteratorsCore;
@@ -1568,8 +1562,8 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1568
1562
  if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1569
1563
  if (setPrototypeOf$1) {
1570
1564
  setPrototypeOf$1(CurrentIteratorPrototype, IteratorPrototype);
1571
- } else if (!isCallable$a(CurrentIteratorPrototype[ITERATOR$6])) {
1572
- defineBuiltIn$5(CurrentIteratorPrototype, ITERATOR$6, returnThis);
1565
+ } else if (!isCallable$9(CurrentIteratorPrototype[ITERATOR$6])) {
1566
+ defineBuiltIn$4(CurrentIteratorPrototype, ITERATOR$6, returnThis);
1573
1567
  }
1574
1568
  }
1575
1569
  // Set @@toStringTag to native iterators
@@ -1596,14 +1590,14 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1596
1590
  };
1597
1591
  if (FORCED) for (KEY in methods) {
1598
1592
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1599
- defineBuiltIn$5(IterablePrototype, KEY, methods[KEY]);
1593
+ defineBuiltIn$4(IterablePrototype, KEY, methods[KEY]);
1600
1594
  }
1601
- } else $$k({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1595
+ } else $$h({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1602
1596
  }
1603
1597
 
1604
1598
  // define iterator
1605
1599
  if (IterablePrototype[ITERATOR$6] !== defaultIterator) {
1606
- defineBuiltIn$5(IterablePrototype, ITERATOR$6, defaultIterator, { name: DEFAULT });
1600
+ defineBuiltIn$4(IterablePrototype, ITERATOR$6, defaultIterator, { name: DEFAULT });
1607
1601
  }
1608
1602
  Iterators$3[NAME] = defaultIterator;
1609
1603
 
@@ -1617,7 +1611,7 @@ var createIterResultObject$1 = function (value, done) {
1617
1611
  };
1618
1612
 
1619
1613
  var toIndexedObject = toIndexedObject$5;
1620
- var addToUnscopables$3 = addToUnscopables$4;
1614
+ var addToUnscopables$2 = addToUnscopables$3;
1621
1615
  var Iterators$2 = iterators;
1622
1616
  var InternalStateModule$1 = internalState;
1623
1617
  var defineProperty$1 = objectDefineProperty.f;
@@ -1668,9 +1662,9 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
1668
1662
  var values = Iterators$2.Arguments = Iterators$2.Array;
1669
1663
 
1670
1664
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1671
- addToUnscopables$3('keys');
1672
- addToUnscopables$3('values');
1673
- addToUnscopables$3('entries');
1665
+ addToUnscopables$2('keys');
1666
+ addToUnscopables$2('values');
1667
+ addToUnscopables$2('entries');
1674
1668
 
1675
1669
  // V8 ~ Chrome 45- bug
1676
1670
  if (DESCRIPTORS$2 && values.name !== 'values') try {
@@ -1887,7 +1881,7 @@ test$1[TO_STRING_TAG$1] = 'z';
1887
1881
  var toStringTagSupport = String(test$1) === '[object z]';
1888
1882
 
1889
1883
  var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1890
- var isCallable$9 = isCallable$o;
1884
+ var isCallable$8 = isCallable$n;
1891
1885
  var classofRaw$1 = classofRaw$2;
1892
1886
  var wellKnownSymbol$b = wellKnownSymbol$j;
1893
1887
 
@@ -1913,14 +1907,14 @@ var classof$6 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1913
1907
  // builtinTag case
1914
1908
  : CORRECT_ARGUMENTS ? classofRaw$1(O)
1915
1909
  // ES3 arguments fallback
1916
- : (result = classofRaw$1(O)) == 'Object' && isCallable$9(O.callee) ? 'Arguments' : result;
1910
+ : (result = classofRaw$1(O)) == 'Object' && isCallable$8(O.callee) ? 'Arguments' : result;
1917
1911
  };
1918
1912
 
1919
1913
  var classof$5 = classof$6;
1920
1914
 
1921
1915
  var $String$1 = String;
1922
1916
 
1923
- var toString$c = function (argument) {
1917
+ var toString$b = function (argument) {
1924
1918
  if (classof$5(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1925
1919
  return $String$1(argument);
1926
1920
  };
@@ -1929,12 +1923,12 @@ var toString$c = function (argument) {
1929
1923
  var whitespaces$4 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
1930
1924
  '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
1931
1925
 
1932
- var uncurryThis$h = functionUncurryThis;
1933
- var requireObjectCoercible$6 = requireObjectCoercible$9;
1934
- var toString$b = toString$c;
1926
+ var uncurryThis$g = functionUncurryThis;
1927
+ var requireObjectCoercible$5 = requireObjectCoercible$8;
1928
+ var toString$a = toString$b;
1935
1929
  var whitespaces$3 = whitespaces$4;
1936
1930
 
1937
- var replace$3 = uncurryThis$h(''.replace);
1931
+ var replace$3 = uncurryThis$g(''.replace);
1938
1932
  var whitespace = '[' + whitespaces$3 + ']';
1939
1933
  var ltrim = RegExp('^' + whitespace + whitespace + '*');
1940
1934
  var rtrim = RegExp(whitespace + whitespace + '*$');
@@ -1942,7 +1936,7 @@ var rtrim = RegExp(whitespace + whitespace + '*$');
1942
1936
  // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
1943
1937
  var createMethod$1 = function (TYPE) {
1944
1938
  return function ($this) {
1945
- var string = toString$b(requireObjectCoercible$6($this));
1939
+ var string = toString$a(requireObjectCoercible$5($this));
1946
1940
  if (TYPE & 1) string = replace$3(string, ltrim, '');
1947
1941
  if (TYPE & 2) string = replace$3(string, rtrim, '');
1948
1942
  return string;
@@ -1962,7 +1956,7 @@ var stringTrim = {
1962
1956
  };
1963
1957
 
1964
1958
  var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
1965
- var fails$e = fails$r;
1959
+ var fails$d = fails$q;
1966
1960
  var whitespaces$2 = whitespaces$4;
1967
1961
 
1968
1962
  var non = '\u200B\u0085\u180E';
@@ -1970,20 +1964,20 @@ var non = '\u200B\u0085\u180E';
1970
1964
  // check that a method works with the correct list
1971
1965
  // of whitespaces and has a correct name
1972
1966
  var stringTrimForced = function (METHOD_NAME) {
1973
- return fails$e(function () {
1967
+ return fails$d(function () {
1974
1968
  return !!whitespaces$2[METHOD_NAME]()
1975
1969
  || non[METHOD_NAME]() !== non
1976
1970
  || (PROPER_FUNCTION_NAME$1 && whitespaces$2[METHOD_NAME].name !== METHOD_NAME);
1977
1971
  });
1978
1972
  };
1979
1973
 
1980
- var $$j = _export;
1974
+ var $$g = _export;
1981
1975
  var $trim = stringTrim.trim;
1982
1976
  var forcedStringTrimMethod = stringTrimForced;
1983
1977
 
1984
1978
  // `String.prototype.trim` method
1985
1979
  // https://tc39.es/ecma262/#sec-string.prototype.trim
1986
- $$j({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
1980
+ $$g({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
1987
1981
  trim: function trim() {
1988
1982
  return $trim(this);
1989
1983
  }
@@ -2007,13 +2001,13 @@ var regexpFlags$1 = function () {
2007
2001
  return result;
2008
2002
  };
2009
2003
 
2010
- var fails$d = fails$r;
2004
+ var fails$c = fails$q;
2011
2005
  var global$d = global$p;
2012
2006
 
2013
2007
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
2014
2008
  var $RegExp$2 = global$d.RegExp;
2015
2009
 
2016
- var UNSUPPORTED_Y$1 = fails$d(function () {
2010
+ var UNSUPPORTED_Y$1 = fails$c(function () {
2017
2011
  var re = $RegExp$2('a', 'y');
2018
2012
  re.lastIndex = 2;
2019
2013
  return re.exec('abcd') != null;
@@ -2021,11 +2015,11 @@ var UNSUPPORTED_Y$1 = fails$d(function () {
2021
2015
 
2022
2016
  // UC Browser bug
2023
2017
  // https://github.com/zloirock/core-js/issues/1008
2024
- var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$d(function () {
2018
+ var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$c(function () {
2025
2019
  return !$RegExp$2('a', 'y').sticky;
2026
2020
  });
2027
2021
 
2028
- var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$d(function () {
2022
+ var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$c(function () {
2029
2023
  // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
2030
2024
  var re = $RegExp$2('^r', 'gy');
2031
2025
  re.lastIndex = 2;
@@ -2038,24 +2032,24 @@ var regexpStickyHelpers = {
2038
2032
  UNSUPPORTED_Y: UNSUPPORTED_Y$1
2039
2033
  };
2040
2034
 
2041
- var fails$c = fails$r;
2035
+ var fails$b = fails$q;
2042
2036
  var global$c = global$p;
2043
2037
 
2044
2038
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
2045
2039
  var $RegExp$1 = global$c.RegExp;
2046
2040
 
2047
- var regexpUnsupportedDotAll = fails$c(function () {
2041
+ var regexpUnsupportedDotAll = fails$b(function () {
2048
2042
  var re = $RegExp$1('.', 's');
2049
2043
  return !(re.dotAll && re.exec('\n') && re.flags === 's');
2050
2044
  });
2051
2045
 
2052
- var fails$b = fails$r;
2046
+ var fails$a = fails$q;
2053
2047
  var global$b = global$p;
2054
2048
 
2055
2049
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
2056
2050
  var $RegExp = global$b.RegExp;
2057
2051
 
2058
- var regexpUnsupportedNcg = fails$b(function () {
2052
+ var regexpUnsupportedNcg = fails$a(function () {
2059
2053
  var re = $RegExp('(?<a>b)', 'g');
2060
2054
  return re.exec('b').groups.a !== 'b' ||
2061
2055
  'b'.replace(re, '$<a>c') !== 'bc';
@@ -2064,8 +2058,8 @@ var regexpUnsupportedNcg = fails$b(function () {
2064
2058
  /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
2065
2059
  /* eslint-disable regexp/no-useless-quantifier -- testing */
2066
2060
  var call$c = functionCall;
2067
- var uncurryThis$g = functionUncurryThis;
2068
- var toString$a = toString$c;
2061
+ var uncurryThis$f = functionUncurryThis;
2062
+ var toString$9 = toString$b;
2069
2063
  var regexpFlags = regexpFlags$1;
2070
2064
  var stickyHelpers = regexpStickyHelpers;
2071
2065
  var shared = shared$4.exports;
@@ -2077,10 +2071,10 @@ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
2077
2071
  var nativeReplace = shared('native-string-replace', String.prototype.replace);
2078
2072
  var nativeExec = RegExp.prototype.exec;
2079
2073
  var patchedExec = nativeExec;
2080
- var charAt$4 = uncurryThis$g(''.charAt);
2081
- var indexOf = uncurryThis$g(''.indexOf);
2082
- var replace$2 = uncurryThis$g(''.replace);
2083
- var stringSlice$6 = uncurryThis$g(''.slice);
2074
+ var charAt$4 = uncurryThis$f(''.charAt);
2075
+ var indexOf = uncurryThis$f(''.indexOf);
2076
+ var replace$2 = uncurryThis$f(''.replace);
2077
+ var stringSlice$5 = uncurryThis$f(''.slice);
2084
2078
 
2085
2079
  var UPDATES_LAST_INDEX_WRONG = (function () {
2086
2080
  var re1 = /a/;
@@ -2101,7 +2095,7 @@ if (PATCH) {
2101
2095
  patchedExec = function exec(string) {
2102
2096
  var re = this;
2103
2097
  var state = getInternalState(re);
2104
- var str = toString$a(string);
2098
+ var str = toString$9(string);
2105
2099
  var raw = state.raw;
2106
2100
  var result, reCopy, lastIndex, match, i, object, group;
2107
2101
 
@@ -2125,7 +2119,7 @@ if (PATCH) {
2125
2119
  flags += 'g';
2126
2120
  }
2127
2121
 
2128
- strCopy = stringSlice$6(str, re.lastIndex);
2122
+ strCopy = stringSlice$5(str, re.lastIndex);
2129
2123
  // Support anchored sticky behavior.
2130
2124
  if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$4(str, re.lastIndex - 1) !== '\n')) {
2131
2125
  source = '(?: ' + source + ')';
@@ -2146,8 +2140,8 @@ if (PATCH) {
2146
2140
 
2147
2141
  if (sticky) {
2148
2142
  if (match) {
2149
- match.input = stringSlice$6(match.input, charsAdded);
2150
- match[0] = stringSlice$6(match[0], charsAdded);
2143
+ match.input = stringSlice$5(match.input, charsAdded);
2144
+ match[0] = stringSlice$5(match[0], charsAdded);
2151
2145
  match.index = re.lastIndex;
2152
2146
  re.lastIndex += match[0].length;
2153
2147
  } else re.lastIndex = 0;
@@ -2178,12 +2172,12 @@ if (PATCH) {
2178
2172
 
2179
2173
  var regexpExec$2 = patchedExec;
2180
2174
 
2181
- var $$i = _export;
2175
+ var $$f = _export;
2182
2176
  var exec$2 = regexpExec$2;
2183
2177
 
2184
2178
  // `RegExp.prototype.exec` method
2185
2179
  // https://tc39.es/ecma262/#sec-regexp.prototype.exec
2186
- $$i({ target: 'RegExp', proto: true, forced: /./.exec !== exec$2 }, {
2180
+ $$f({ target: 'RegExp', proto: true, forced: /./.exec !== exec$2 }, {
2187
2181
  exec: exec$2
2188
2182
  });
2189
2183
 
@@ -2199,21 +2193,21 @@ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$
2199
2193
  });
2200
2194
 
2201
2195
  var classofRaw = classofRaw$2;
2202
- var uncurryThis$f = functionUncurryThis;
2196
+ var uncurryThis$e = functionUncurryThis;
2203
2197
 
2204
2198
  var functionUncurryThisClause = function (fn) {
2205
2199
  // Nashorn bug:
2206
2200
  // https://github.com/zloirock/core-js/issues/1128
2207
2201
  // https://github.com/zloirock/core-js/issues/1130
2208
- if (classofRaw(fn) === 'Function') return uncurryThis$f(fn);
2202
+ if (classofRaw(fn) === 'Function') return uncurryThis$e(fn);
2209
2203
  };
2210
2204
 
2211
2205
  // TODO: Remove from `core-js@4` since it's moved to entry points
2212
2206
 
2213
- var uncurryThis$e = functionUncurryThisClause;
2214
- var defineBuiltIn$4 = defineBuiltIn$8;
2207
+ var uncurryThis$d = functionUncurryThisClause;
2208
+ var defineBuiltIn$3 = defineBuiltIn$7;
2215
2209
  var regexpExec$1 = regexpExec$2;
2216
- var fails$a = fails$r;
2210
+ var fails$9 = fails$q;
2217
2211
  var wellKnownSymbol$a = wellKnownSymbol$j;
2218
2212
  var createNonEnumerableProperty = createNonEnumerableProperty$5;
2219
2213
 
@@ -2223,14 +2217,14 @@ var RegExpPrototype$2 = RegExp.prototype;
2223
2217
  var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
2224
2218
  var SYMBOL = wellKnownSymbol$a(KEY);
2225
2219
 
2226
- var DELEGATES_TO_SYMBOL = !fails$a(function () {
2220
+ var DELEGATES_TO_SYMBOL = !fails$9(function () {
2227
2221
  // String methods call symbol-named RegEp methods
2228
2222
  var O = {};
2229
2223
  O[SYMBOL] = function () { return 7; };
2230
2224
  return ''[KEY](O) != 7;
2231
2225
  });
2232
2226
 
2233
- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$a(function () {
2227
+ var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$9(function () {
2234
2228
  // Symbol-named RegExp methods call .exec
2235
2229
  var execCalled = false;
2236
2230
  var re = /a/;
@@ -2259,9 +2253,9 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
2259
2253
  !DELEGATES_TO_EXEC ||
2260
2254
  FORCED
2261
2255
  ) {
2262
- var uncurriedNativeRegExpMethod = uncurryThis$e(/./[SYMBOL]);
2256
+ var uncurriedNativeRegExpMethod = uncurryThis$d(/./[SYMBOL]);
2263
2257
  var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
2264
- var uncurriedNativeMethod = uncurryThis$e(nativeMethod);
2258
+ var uncurriedNativeMethod = uncurryThis$d(nativeMethod);
2265
2259
  var $exec = regexp.exec;
2266
2260
  if ($exec === regexpExec$1 || $exec === RegExpPrototype$2.exec) {
2267
2261
  if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
@@ -2275,26 +2269,26 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
2275
2269
  return { done: false };
2276
2270
  });
2277
2271
 
2278
- defineBuiltIn$4(String.prototype, KEY, methods[0]);
2279
- defineBuiltIn$4(RegExpPrototype$2, SYMBOL, methods[1]);
2272
+ defineBuiltIn$3(String.prototype, KEY, methods[0]);
2273
+ defineBuiltIn$3(RegExpPrototype$2, SYMBOL, methods[1]);
2280
2274
  }
2281
2275
 
2282
2276
  if (SHAM) createNonEnumerableProperty(RegExpPrototype$2[SYMBOL], 'sham', true);
2283
2277
  };
2284
2278
 
2285
- var uncurryThis$d = functionUncurryThis;
2286
- var toIntegerOrInfinity$4 = toIntegerOrInfinity$7;
2287
- var toString$9 = toString$c;
2288
- var requireObjectCoercible$5 = requireObjectCoercible$9;
2279
+ var uncurryThis$c = functionUncurryThis;
2280
+ var toIntegerOrInfinity$3 = toIntegerOrInfinity$6;
2281
+ var toString$8 = toString$b;
2282
+ var requireObjectCoercible$4 = requireObjectCoercible$8;
2289
2283
 
2290
- var charAt$3 = uncurryThis$d(''.charAt);
2291
- var charCodeAt = uncurryThis$d(''.charCodeAt);
2292
- var stringSlice$5 = uncurryThis$d(''.slice);
2284
+ var charAt$3 = uncurryThis$c(''.charAt);
2285
+ var charCodeAt = uncurryThis$c(''.charCodeAt);
2286
+ var stringSlice$4 = uncurryThis$c(''.slice);
2293
2287
 
2294
2288
  var createMethod = function (CONVERT_TO_STRING) {
2295
2289
  return function ($this, pos) {
2296
- var S = toString$9(requireObjectCoercible$5($this));
2297
- var position = toIntegerOrInfinity$4(pos);
2290
+ var S = toString$8(requireObjectCoercible$4($this));
2291
+ var position = toIntegerOrInfinity$3(pos);
2298
2292
  var size = S.length;
2299
2293
  var first, second;
2300
2294
  if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
@@ -2305,7 +2299,7 @@ var createMethod = function (CONVERT_TO_STRING) {
2305
2299
  ? charAt$3(S, position)
2306
2300
  : first
2307
2301
  : CONVERT_TO_STRING
2308
- ? stringSlice$5(S, position, position + 2)
2302
+ ? stringSlice$4(S, position, position + 2)
2309
2303
  : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
2310
2304
  };
2311
2305
  };
@@ -2327,13 +2321,13 @@ var advanceStringIndex$2 = function (S, index, unicode) {
2327
2321
  return index + (unicode ? charAt$2(S, index).length : 1);
2328
2322
  };
2329
2323
 
2330
- var uncurryThis$c = functionUncurryThis;
2331
- var toObject$3 = toObject$8;
2324
+ var uncurryThis$b = functionUncurryThis;
2325
+ var toObject$2 = toObject$7;
2332
2326
 
2333
2327
  var floor$2 = Math.floor;
2334
- var charAt$1 = uncurryThis$c(''.charAt);
2335
- var replace$1 = uncurryThis$c(''.replace);
2336
- var stringSlice$4 = uncurryThis$c(''.slice);
2328
+ var charAt$1 = uncurryThis$b(''.charAt);
2329
+ var replace$1 = uncurryThis$b(''.replace);
2330
+ var stringSlice$3 = uncurryThis$b(''.slice);
2337
2331
  var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
2338
2332
  var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
2339
2333
 
@@ -2344,7 +2338,7 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
2344
2338
  var m = captures.length;
2345
2339
  var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
2346
2340
  if (namedCaptures !== undefined) {
2347
- namedCaptures = toObject$3(namedCaptures);
2341
+ namedCaptures = toObject$2(namedCaptures);
2348
2342
  symbols = SUBSTITUTION_SYMBOLS;
2349
2343
  }
2350
2344
  return replace$1(replacement, symbols, function (match, ch) {
@@ -2352,10 +2346,10 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
2352
2346
  switch (charAt$1(ch, 0)) {
2353
2347
  case '$': return '$';
2354
2348
  case '&': return matched;
2355
- case '`': return stringSlice$4(str, 0, position);
2356
- case "'": return stringSlice$4(str, tailPos);
2349
+ case '`': return stringSlice$3(str, 0, position);
2350
+ case "'": return stringSlice$3(str, tailPos);
2357
2351
  case '<':
2358
- capture = namedCaptures[stringSlice$4(ch, 1, -1)];
2352
+ capture = namedCaptures[stringSlice$3(ch, 1, -1)];
2359
2353
  break;
2360
2354
  default: // \d\d?
2361
2355
  var n = +ch;
@@ -2374,7 +2368,7 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
2374
2368
 
2375
2369
  var call$a = functionCall;
2376
2370
  var anObject$8 = anObject$f;
2377
- var isCallable$8 = isCallable$o;
2371
+ var isCallable$7 = isCallable$n;
2378
2372
  var classof$4 = classofRaw$2;
2379
2373
  var regexpExec = regexpExec$2;
2380
2374
 
@@ -2384,7 +2378,7 @@ var $TypeError$9 = TypeError;
2384
2378
  // https://tc39.es/ecma262/#sec-regexpexec
2385
2379
  var regexpExecAbstract = function (R, S) {
2386
2380
  var exec = R.exec;
2387
- if (isCallable$8(exec)) {
2381
+ if (isCallable$7(exec)) {
2388
2382
  var result = call$a(exec, R, S);
2389
2383
  if (result !== null) anObject$8(result);
2390
2384
  return result;
@@ -2395,16 +2389,16 @@ var regexpExecAbstract = function (R, S) {
2395
2389
 
2396
2390
  var apply$1 = functionApply;
2397
2391
  var call$9 = functionCall;
2398
- var uncurryThis$b = functionUncurryThis;
2392
+ var uncurryThis$a = functionUncurryThis;
2399
2393
  var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
2400
- var fails$9 = fails$r;
2394
+ var fails$8 = fails$q;
2401
2395
  var anObject$7 = anObject$f;
2402
- var isCallable$7 = isCallable$o;
2396
+ var isCallable$6 = isCallable$n;
2403
2397
  var isNullOrUndefined$3 = isNullOrUndefined$6;
2404
- var toIntegerOrInfinity$3 = toIntegerOrInfinity$7;
2405
- var toLength$2 = toLength$4;
2406
- var toString$8 = toString$c;
2407
- var requireObjectCoercible$4 = requireObjectCoercible$9;
2398
+ var toIntegerOrInfinity$2 = toIntegerOrInfinity$6;
2399
+ var toLength$1 = toLength$3;
2400
+ var toString$7 = toString$b;
2401
+ var requireObjectCoercible$3 = requireObjectCoercible$8;
2408
2402
  var advanceStringIndex$1 = advanceStringIndex$2;
2409
2403
  var getMethod$3 = getMethod$5;
2410
2404
  var getSubstitution = getSubstitution$1;
@@ -2413,11 +2407,11 @@ var wellKnownSymbol$9 = wellKnownSymbol$j;
2413
2407
 
2414
2408
  var REPLACE = wellKnownSymbol$9('replace');
2415
2409
  var max$1 = Math.max;
2416
- var min$1 = Math.min;
2417
- var concat = uncurryThis$b([].concat);
2418
- var push$1 = uncurryThis$b([].push);
2419
- var stringIndexOf$1 = uncurryThis$b(''.indexOf);
2420
- var stringSlice$3 = uncurryThis$b(''.slice);
2410
+ var min = Math.min;
2411
+ var concat = uncurryThis$a([].concat);
2412
+ var push$1 = uncurryThis$a([].push);
2413
+ var stringIndexOf$1 = uncurryThis$a(''.indexOf);
2414
+ var stringSlice$2 = uncurryThis$a(''.slice);
2421
2415
 
2422
2416
  var maybeToString = function (it) {
2423
2417
  return it === undefined ? it : String(it);
@@ -2438,7 +2432,7 @@ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
2438
2432
  return false;
2439
2433
  })();
2440
2434
 
2441
- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$9(function () {
2435
+ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$8(function () {
2442
2436
  var re = /./;
2443
2437
  re.exec = function () {
2444
2438
  var result = [];
@@ -2457,17 +2451,17 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
2457
2451
  // `String.prototype.replace` method
2458
2452
  // https://tc39.es/ecma262/#sec-string.prototype.replace
2459
2453
  function replace(searchValue, replaceValue) {
2460
- var O = requireObjectCoercible$4(this);
2454
+ var O = requireObjectCoercible$3(this);
2461
2455
  var replacer = isNullOrUndefined$3(searchValue) ? undefined : getMethod$3(searchValue, REPLACE);
2462
2456
  return replacer
2463
2457
  ? call$9(replacer, searchValue, O, replaceValue)
2464
- : call$9(nativeReplace, toString$8(O), searchValue, replaceValue);
2458
+ : call$9(nativeReplace, toString$7(O), searchValue, replaceValue);
2465
2459
  },
2466
2460
  // `RegExp.prototype[@@replace]` method
2467
2461
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
2468
2462
  function (string, replaceValue) {
2469
2463
  var rx = anObject$7(this);
2470
- var S = toString$8(string);
2464
+ var S = toString$7(string);
2471
2465
 
2472
2466
  if (
2473
2467
  typeof replaceValue == 'string' &&
@@ -2478,8 +2472,8 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
2478
2472
  if (res.done) return res.value;
2479
2473
  }
2480
2474
 
2481
- var functionalReplace = isCallable$7(replaceValue);
2482
- if (!functionalReplace) replaceValue = toString$8(replaceValue);
2475
+ var functionalReplace = isCallable$6(replaceValue);
2476
+ if (!functionalReplace) replaceValue = toString$7(replaceValue);
2483
2477
 
2484
2478
  var global = rx.global;
2485
2479
  if (global) {
@@ -2494,8 +2488,8 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
2494
2488
  push$1(results, result);
2495
2489
  if (!global) break;
2496
2490
 
2497
- var matchStr = toString$8(result[0]);
2498
- if (matchStr === '') rx.lastIndex = advanceStringIndex$1(S, toLength$2(rx.lastIndex), fullUnicode);
2491
+ var matchStr = toString$7(result[0]);
2492
+ if (matchStr === '') rx.lastIndex = advanceStringIndex$1(S, toLength$1(rx.lastIndex), fullUnicode);
2499
2493
  }
2500
2494
 
2501
2495
  var accumulatedResult = '';
@@ -2503,8 +2497,8 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
2503
2497
  for (var i = 0; i < results.length; i++) {
2504
2498
  result = results[i];
2505
2499
 
2506
- var matched = toString$8(result[0]);
2507
- var position = max$1(min$1(toIntegerOrInfinity$3(result.index), S.length), 0);
2500
+ var matched = toString$7(result[0]);
2501
+ var position = max$1(min(toIntegerOrInfinity$2(result.index), S.length), 0);
2508
2502
  var captures = [];
2509
2503
  // NOTE: This is equivalent to
2510
2504
  // captures = result.slice(1).map(maybeToString)
@@ -2516,16 +2510,16 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
2516
2510
  if (functionalReplace) {
2517
2511
  var replacerArgs = concat([matched], captures, position, S);
2518
2512
  if (namedCaptures !== undefined) push$1(replacerArgs, namedCaptures);
2519
- var replacement = toString$8(apply$1(replaceValue, undefined, replacerArgs));
2513
+ var replacement = toString$7(apply$1(replaceValue, undefined, replacerArgs));
2520
2514
  } else {
2521
2515
  replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
2522
2516
  }
2523
2517
  if (position >= nextSourcePosition) {
2524
- accumulatedResult += stringSlice$3(S, nextSourcePosition, position) + replacement;
2518
+ accumulatedResult += stringSlice$2(S, nextSourcePosition, position) + replacement;
2525
2519
  nextSourcePosition = position + matched.length;
2526
2520
  }
2527
2521
  }
2528
- return accumulatedResult + stringSlice$3(S, nextSourcePosition);
2522
+ return accumulatedResult + stringSlice$2(S, nextSourcePosition);
2529
2523
  }
2530
2524
  ];
2531
2525
  }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
@@ -2800,26 +2794,26 @@ const isPoBox = addressLine => PO_BOX_REGEX.test(addressLine);
2800
2794
  */
2801
2795
  const isPoBoxAddress = address => !!(isPoBox(address.addressLine1) || address.addressLine2 && isPoBox(address.addressLine2));
2802
2796
 
2803
- var $$h = _export;
2797
+ var $$e = _export;
2804
2798
  var $includes = arrayIncludes.includes;
2805
- var fails$8 = fails$r;
2806
- var addToUnscopables$2 = addToUnscopables$4;
2799
+ var fails$7 = fails$q;
2800
+ var addToUnscopables$1 = addToUnscopables$3;
2807
2801
 
2808
2802
  // FF99+ bug
2809
- var BROKEN_ON_SPARSE = fails$8(function () {
2803
+ var BROKEN_ON_SPARSE = fails$7(function () {
2810
2804
  return !Array(1).includes();
2811
2805
  });
2812
2806
 
2813
2807
  // `Array.prototype.includes` method
2814
2808
  // https://tc39.es/ecma262/#sec-array.prototype.includes
2815
- $$h({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
2809
+ $$e({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
2816
2810
  includes: function includes(el /* , fromIndex = 0 */) {
2817
2811
  return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
2818
2812
  }
2819
2813
  });
2820
2814
 
2821
2815
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2822
- addToUnscopables$2('includes');
2816
+ addToUnscopables$1('includes');
2823
2817
 
2824
2818
  const USPS_CARRIER_CODES = ["usps", "stamps_com"];
2825
2819
  const isUspsCarrier = carrierCode => USPS_CARRIER_CODES.includes(carrierCode);
@@ -2904,14 +2898,14 @@ var createProperty$2 = function (object, key, value) {
2904
2898
  };
2905
2899
 
2906
2900
  var toAbsoluteIndex = toAbsoluteIndex$2;
2907
- var lengthOfArrayLike$5 = lengthOfArrayLike$8;
2901
+ var lengthOfArrayLike$4 = lengthOfArrayLike$7;
2908
2902
  var createProperty$1 = createProperty$2;
2909
2903
 
2910
2904
  var $Array$1 = Array;
2911
2905
  var max = Math.max;
2912
2906
 
2913
2907
  var arraySliceSimple = function (O, start, end) {
2914
- var length = lengthOfArrayLike$5(O);
2908
+ var length = lengthOfArrayLike$4(O);
2915
2909
  var k = toAbsoluteIndex(start, length);
2916
2910
  var fin = toAbsoluteIndex(end === undefined ? length : end, length);
2917
2911
  var result = $Array$1(max(fin - k, 0));
@@ -2981,14 +2975,14 @@ var webkit = userAgent$3.match(/AppleWebKit\/(\d+)\./);
2981
2975
 
2982
2976
  var engineWebkitVersion = !!webkit && +webkit[1];
2983
2977
 
2984
- var $$g = _export;
2985
- var uncurryThis$a = functionUncurryThis;
2978
+ var $$d = _export;
2979
+ var uncurryThis$9 = functionUncurryThis;
2986
2980
  var aCallable$7 = aCallable$a;
2987
- var toObject$2 = toObject$8;
2988
- var lengthOfArrayLike$4 = lengthOfArrayLike$8;
2981
+ var toObject$1 = toObject$7;
2982
+ var lengthOfArrayLike$3 = lengthOfArrayLike$7;
2989
2983
  var deletePropertyOrThrow = deletePropertyOrThrow$1;
2990
- var toString$7 = toString$c;
2991
- var fails$7 = fails$r;
2984
+ var toString$6 = toString$b;
2985
+ var fails$6 = fails$q;
2992
2986
  var internalSort = arraySort;
2993
2987
  var arrayMethodIsStrict = arrayMethodIsStrict$2;
2994
2988
  var FF = engineFfVersion;
@@ -2997,21 +2991,21 @@ var V8 = engineV8Version;
2997
2991
  var WEBKIT = engineWebkitVersion;
2998
2992
 
2999
2993
  var test = [];
3000
- var nativeSort = uncurryThis$a(test.sort);
3001
- var push = uncurryThis$a(test.push);
2994
+ var nativeSort = uncurryThis$9(test.sort);
2995
+ var push = uncurryThis$9(test.push);
3002
2996
 
3003
2997
  // IE8-
3004
- var FAILS_ON_UNDEFINED = fails$7(function () {
2998
+ var FAILS_ON_UNDEFINED = fails$6(function () {
3005
2999
  test.sort(undefined);
3006
3000
  });
3007
3001
  // V8 bug
3008
- var FAILS_ON_NULL = fails$7(function () {
3002
+ var FAILS_ON_NULL = fails$6(function () {
3009
3003
  test.sort(null);
3010
3004
  });
3011
3005
  // Old WebKit
3012
3006
  var STRICT_METHOD = arrayMethodIsStrict('sort');
3013
3007
 
3014
- var STABLE_SORT = !fails$7(function () {
3008
+ var STABLE_SORT = !fails$6(function () {
3015
3009
  // feature detection can be too slow, so check engines versions
3016
3010
  if (V8) return V8 < 70;
3017
3011
  if (FF && FF > 3) return;
@@ -3053,22 +3047,22 @@ var getSortCompare = function (comparefn) {
3053
3047
  if (y === undefined) return -1;
3054
3048
  if (x === undefined) return 1;
3055
3049
  if (comparefn !== undefined) return +comparefn(x, y) || 0;
3056
- return toString$7(x) > toString$7(y) ? 1 : -1;
3050
+ return toString$6(x) > toString$6(y) ? 1 : -1;
3057
3051
  };
3058
3052
  };
3059
3053
 
3060
3054
  // `Array.prototype.sort` method
3061
3055
  // https://tc39.es/ecma262/#sec-array.prototype.sort
3062
- $$g({ target: 'Array', proto: true, forced: FORCED$3 }, {
3056
+ $$d({ target: 'Array', proto: true, forced: FORCED$3 }, {
3063
3057
  sort: function sort(comparefn) {
3064
3058
  if (comparefn !== undefined) aCallable$7(comparefn);
3065
3059
 
3066
- var array = toObject$2(this);
3060
+ var array = toObject$1(this);
3067
3061
 
3068
3062
  if (STABLE_SORT) return comparefn === undefined ? nativeSort(array) : nativeSort(array, comparefn);
3069
3063
 
3070
3064
  var items = [];
3071
- var arrayLength = lengthOfArrayLike$4(array);
3065
+ var arrayLength = lengthOfArrayLike$3(array);
3072
3066
  var itemsLength, index;
3073
3067
 
3074
3068
  for (index = 0; index < arrayLength; index++) {
@@ -3077,7 +3071,7 @@ $$g({ target: 'Array', proto: true, forced: FORCED$3 }, {
3077
3071
 
3078
3072
  internalSort(items, getSortCompare(comparefn));
3079
3073
 
3080
- itemsLength = lengthOfArrayLike$4(items);
3074
+ itemsLength = lengthOfArrayLike$3(items);
3081
3075
  index = 0;
3082
3076
 
3083
3077
  while (index < itemsLength) array[index] = items[index++];
@@ -3174,22 +3168,22 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
3174
3168
  } return false;
3175
3169
  };
3176
3170
 
3177
- var $$f = _export;
3178
- var uncurryThis$9 = functionUncurryThis;
3179
- var notARegExp$1 = notARegexp;
3180
- var requireObjectCoercible$3 = requireObjectCoercible$9;
3181
- var toString$6 = toString$c;
3182
- var correctIsRegExpLogic$1 = correctIsRegexpLogic;
3171
+ var $$c = _export;
3172
+ var uncurryThis$8 = functionUncurryThis;
3173
+ var notARegExp = notARegexp;
3174
+ var requireObjectCoercible$2 = requireObjectCoercible$8;
3175
+ var toString$5 = toString$b;
3176
+ var correctIsRegExpLogic = correctIsRegexpLogic;
3183
3177
 
3184
- var stringIndexOf = uncurryThis$9(''.indexOf);
3178
+ var stringIndexOf = uncurryThis$8(''.indexOf);
3185
3179
 
3186
3180
  // `String.prototype.includes` method
3187
3181
  // https://tc39.es/ecma262/#sec-string.prototype.includes
3188
- $$f({ target: 'String', proto: true, forced: !correctIsRegExpLogic$1('includes') }, {
3182
+ $$c({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
3189
3183
  includes: function includes(searchString /* , position = 0 */) {
3190
3184
  return !!~stringIndexOf(
3191
- toString$6(requireObjectCoercible$3(this)),
3192
- toString$6(notARegExp$1(searchString)),
3185
+ toString$5(requireObjectCoercible$2(this)),
3186
+ toString$5(notARegExp(searchString)),
3193
3187
  arguments.length > 1 ? arguments[1] : undefined
3194
3188
  );
3195
3189
  }
@@ -3660,11 +3654,11 @@ var doesNotExceedSafeInteger$1 = function (it) {
3660
3654
  return it;
3661
3655
  };
3662
3656
 
3663
- var uncurryThis$8 = functionUncurryThisClause;
3657
+ var uncurryThis$7 = functionUncurryThisClause;
3664
3658
  var aCallable$6 = aCallable$a;
3665
3659
  var NATIVE_BIND = functionBindNative;
3666
3660
 
3667
- var bind$5 = uncurryThis$8(uncurryThis$8.bind);
3661
+ var bind$5 = uncurryThis$7(uncurryThis$7.bind);
3668
3662
 
3669
3663
  // optional / simple context binding
3670
3664
  var functionBindContext = function (fn, that) {
@@ -3675,13 +3669,13 @@ var functionBindContext = function (fn, that) {
3675
3669
  };
3676
3670
 
3677
3671
  var isArray$1 = isArray$2;
3678
- var lengthOfArrayLike$3 = lengthOfArrayLike$8;
3672
+ var lengthOfArrayLike$2 = lengthOfArrayLike$7;
3679
3673
  var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
3680
3674
  var bind$4 = functionBindContext;
3681
3675
 
3682
3676
  // `FlattenIntoArray` abstract operation
3683
3677
  // https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray
3684
- var flattenIntoArray$2 = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {
3678
+ var flattenIntoArray$1 = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {
3685
3679
  var targetIndex = start;
3686
3680
  var sourceIndex = 0;
3687
3681
  var mapFn = mapper ? bind$4(mapper, thisArg) : false;
@@ -3692,8 +3686,8 @@ var flattenIntoArray$2 = function (target, original, source, sourceLen, start, d
3692
3686
  element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];
3693
3687
 
3694
3688
  if (depth > 0 && isArray$1(element)) {
3695
- elementLen = lengthOfArrayLike$3(element);
3696
- targetIndex = flattenIntoArray$2(target, original, element, elementLen, targetIndex, depth - 1) - 1;
3689
+ elementLen = lengthOfArrayLike$2(element);
3690
+ targetIndex = flattenIntoArray$1(target, original, element, elementLen, targetIndex, depth - 1) - 1;
3697
3691
  } else {
3698
3692
  doesNotExceedSafeInteger(targetIndex + 1);
3699
3693
  target[targetIndex] = element;
@@ -3706,24 +3700,24 @@ var flattenIntoArray$2 = function (target, original, source, sourceLen, start, d
3706
3700
  return targetIndex;
3707
3701
  };
3708
3702
 
3709
- var flattenIntoArray_1 = flattenIntoArray$2;
3703
+ var flattenIntoArray_1 = flattenIntoArray$1;
3710
3704
 
3711
- var uncurryThis$7 = functionUncurryThis;
3712
- var fails$6 = fails$r;
3713
- var isCallable$6 = isCallable$o;
3705
+ var uncurryThis$6 = functionUncurryThis;
3706
+ var fails$5 = fails$q;
3707
+ var isCallable$5 = isCallable$n;
3714
3708
  var classof$1 = classof$6;
3715
- var getBuiltIn$4 = getBuiltIn$9;
3709
+ var getBuiltIn$3 = getBuiltIn$8;
3716
3710
  var inspectSource$1 = inspectSource$3;
3717
3711
 
3718
3712
  var noop = function () { /* empty */ };
3719
3713
  var empty = [];
3720
- var construct = getBuiltIn$4('Reflect', 'construct');
3714
+ var construct = getBuiltIn$3('Reflect', 'construct');
3721
3715
  var constructorRegExp = /^\s*(?:class|function)\b/;
3722
- var exec$1 = uncurryThis$7(constructorRegExp.exec);
3716
+ var exec$1 = uncurryThis$6(constructorRegExp.exec);
3723
3717
  var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
3724
3718
 
3725
3719
  var isConstructorModern = function isConstructor(argument) {
3726
- if (!isCallable$6(argument)) return false;
3720
+ if (!isCallable$5(argument)) return false;
3727
3721
  try {
3728
3722
  construct(noop, empty, argument);
3729
3723
  return true;
@@ -3733,7 +3727,7 @@ var isConstructorModern = function isConstructor(argument) {
3733
3727
  };
3734
3728
 
3735
3729
  var isConstructorLegacy = function isConstructor(argument) {
3736
- if (!isCallable$6(argument)) return false;
3730
+ if (!isCallable$5(argument)) return false;
3737
3731
  switch (classof$1(argument)) {
3738
3732
  case 'AsyncFunction':
3739
3733
  case 'GeneratorFunction':
@@ -3753,7 +3747,7 @@ isConstructorLegacy.sham = true;
3753
3747
 
3754
3748
  // `IsConstructor` abstract operation
3755
3749
  // https://tc39.es/ecma262/#sec-isconstructor
3756
- var isConstructor$2 = !construct || fails$6(function () {
3750
+ var isConstructor$2 = !construct || fails$5(function () {
3757
3751
  var called;
3758
3752
  return isConstructorModern(isConstructorModern.call)
3759
3753
  || !isConstructorModern(Object)
@@ -3788,37 +3782,37 @@ var arraySpeciesConstructor = arraySpeciesConstructor$1;
3788
3782
 
3789
3783
  // `ArraySpeciesCreate` abstract operation
3790
3784
  // https://tc39.es/ecma262/#sec-arrayspeciescreate
3791
- var arraySpeciesCreate$2 = function (originalArray, length) {
3785
+ var arraySpeciesCreate$1 = function (originalArray, length) {
3792
3786
  return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
3793
3787
  };
3794
3788
 
3795
- var $$e = _export;
3796
- var flattenIntoArray$1 = flattenIntoArray_1;
3789
+ var $$b = _export;
3790
+ var flattenIntoArray = flattenIntoArray_1;
3797
3791
  var aCallable$5 = aCallable$a;
3798
- var toObject$1 = toObject$8;
3799
- var lengthOfArrayLike$2 = lengthOfArrayLike$8;
3800
- var arraySpeciesCreate$1 = arraySpeciesCreate$2;
3792
+ var toObject = toObject$7;
3793
+ var lengthOfArrayLike$1 = lengthOfArrayLike$7;
3794
+ var arraySpeciesCreate = arraySpeciesCreate$1;
3801
3795
 
3802
3796
  // `Array.prototype.flatMap` method
3803
3797
  // https://tc39.es/ecma262/#sec-array.prototype.flatmap
3804
- $$e({ target: 'Array', proto: true }, {
3798
+ $$b({ target: 'Array', proto: true }, {
3805
3799
  flatMap: function flatMap(callbackfn /* , thisArg */) {
3806
- var O = toObject$1(this);
3807
- var sourceLen = lengthOfArrayLike$2(O);
3800
+ var O = toObject(this);
3801
+ var sourceLen = lengthOfArrayLike$1(O);
3808
3802
  var A;
3809
3803
  aCallable$5(callbackfn);
3810
- A = arraySpeciesCreate$1(O, 0);
3811
- A.length = flattenIntoArray$1(A, O, O, sourceLen, 0, 1, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
3804
+ A = arraySpeciesCreate(O, 0);
3805
+ A.length = flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
3812
3806
  return A;
3813
3807
  }
3814
3808
  });
3815
3809
 
3816
3810
  // this method was added to unscopables after implementation
3817
3811
  // in popular engines, so it's moved to a separate module
3818
- var addToUnscopables$1 = addToUnscopables$4;
3812
+ var addToUnscopables = addToUnscopables$3;
3819
3813
 
3820
3814
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
3821
- addToUnscopables$1('flatMap');
3815
+ addToUnscopables('flatMap');
3822
3816
 
3823
3817
  const renderDivider = (divider, index) => Array.isArray(divider) ? divider[index] : divider;
3824
3818
  const InputGroup = _a => {
@@ -3938,42 +3932,42 @@ const InputGroup = _a => {
3938
3932
  }));
3939
3933
  };
3940
3934
 
3941
- var uncurryThis$6 = functionUncurryThis;
3935
+ var uncurryThis$5 = functionUncurryThis;
3942
3936
 
3943
3937
  // `thisNumberValue` abstract operation
3944
3938
  // https://tc39.es/ecma262/#sec-thisnumbervalue
3945
- var thisNumberValue$1 = uncurryThis$6(1.0.valueOf);
3939
+ var thisNumberValue$1 = uncurryThis$5(1.0.valueOf);
3946
3940
 
3947
- var toIntegerOrInfinity$2 = toIntegerOrInfinity$7;
3948
- var toString$5 = toString$c;
3949
- var requireObjectCoercible$2 = requireObjectCoercible$9;
3941
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$6;
3942
+ var toString$4 = toString$b;
3943
+ var requireObjectCoercible$1 = requireObjectCoercible$8;
3950
3944
 
3951
3945
  var $RangeError$1 = RangeError;
3952
3946
 
3953
3947
  // `String.prototype.repeat` method implementation
3954
3948
  // https://tc39.es/ecma262/#sec-string.prototype.repeat
3955
3949
  var stringRepeat = function repeat(count) {
3956
- var str = toString$5(requireObjectCoercible$2(this));
3950
+ var str = toString$4(requireObjectCoercible$1(this));
3957
3951
  var result = '';
3958
- var n = toIntegerOrInfinity$2(count);
3952
+ var n = toIntegerOrInfinity$1(count);
3959
3953
  if (n < 0 || n == Infinity) throw $RangeError$1('Wrong number of repetitions');
3960
3954
  for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str;
3961
3955
  return result;
3962
3956
  };
3963
3957
 
3964
- var $$d = _export;
3965
- var uncurryThis$5 = functionUncurryThis;
3966
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$7;
3958
+ var $$a = _export;
3959
+ var uncurryThis$4 = functionUncurryThis;
3960
+ var toIntegerOrInfinity = toIntegerOrInfinity$6;
3967
3961
  var thisNumberValue = thisNumberValue$1;
3968
3962
  var $repeat = stringRepeat;
3969
- var fails$5 = fails$r;
3963
+ var fails$4 = fails$q;
3970
3964
 
3971
3965
  var $RangeError = RangeError;
3972
3966
  var $String = String;
3973
3967
  var floor = Math.floor;
3974
- var repeat = uncurryThis$5($repeat);
3975
- var stringSlice$2 = uncurryThis$5(''.slice);
3976
- var nativeToFixed = uncurryThis$5(1.0.toFixed);
3968
+ var repeat = uncurryThis$4($repeat);
3969
+ var stringSlice$1 = uncurryThis$4(''.slice);
3970
+ var nativeToFixed = uncurryThis$4(1.0.toFixed);
3977
3971
 
3978
3972
  var pow = function (x, n, acc) {
3979
3973
  return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc);
@@ -4023,22 +4017,22 @@ var dataToString = function (data) {
4023
4017
  } return s;
4024
4018
  };
4025
4019
 
4026
- var FORCED$2 = fails$5(function () {
4020
+ var FORCED$2 = fails$4(function () {
4027
4021
  return nativeToFixed(0.00008, 3) !== '0.000' ||
4028
4022
  nativeToFixed(0.9, 0) !== '1' ||
4029
4023
  nativeToFixed(1.255, 2) !== '1.25' ||
4030
4024
  nativeToFixed(1000000000000000128.0, 0) !== '1000000000000000128';
4031
- }) || !fails$5(function () {
4025
+ }) || !fails$4(function () {
4032
4026
  // V8 ~ Android 4.3-
4033
4027
  nativeToFixed({});
4034
4028
  });
4035
4029
 
4036
4030
  // `Number.prototype.toFixed` method
4037
4031
  // https://tc39.es/ecma262/#sec-number.prototype.tofixed
4038
- $$d({ target: 'Number', proto: true, forced: FORCED$2 }, {
4032
+ $$a({ target: 'Number', proto: true, forced: FORCED$2 }, {
4039
4033
  toFixed: function toFixed(fractionDigits) {
4040
4034
  var number = thisNumberValue(this);
4041
- var fractDigits = toIntegerOrInfinity$1(fractionDigits);
4035
+ var fractDigits = toIntegerOrInfinity(fractionDigits);
4042
4036
  var data = [0, 0, 0, 0, 0, 0];
4043
4037
  var sign = '';
4044
4038
  var result = '0';
@@ -4085,7 +4079,7 @@ $$d({ target: 'Number', proto: true, forced: FORCED$2 }, {
4085
4079
  k = result.length;
4086
4080
  result = sign + (k <= fractDigits
4087
4081
  ? '0.' + repeat('0', fractDigits - k) + result
4088
- : stringSlice$2(result, 0, k - fractDigits) + '.' + stringSlice$2(result, k - fractDigits));
4082
+ : stringSlice$1(result, 0, k - fractDigits) + '.' + stringSlice$1(result, k - fractDigits));
4089
4083
  } else {
4090
4084
  result = sign + result;
4091
4085
  } return result;
@@ -4093,34 +4087,34 @@ $$d({ target: 'Number', proto: true, forced: FORCED$2 }, {
4093
4087
  });
4094
4088
 
4095
4089
  var global$a = global$p;
4096
- var fails$4 = fails$r;
4097
- var uncurryThis$4 = functionUncurryThis;
4098
- var toString$4 = toString$c;
4090
+ var fails$3 = fails$q;
4091
+ var uncurryThis$3 = functionUncurryThis;
4092
+ var toString$3 = toString$b;
4099
4093
  var trim$1 = stringTrim.trim;
4100
4094
  var whitespaces$1 = whitespaces$4;
4101
4095
 
4102
- var charAt = uncurryThis$4(''.charAt);
4096
+ var charAt = uncurryThis$3(''.charAt);
4103
4097
  var $parseFloat$1 = global$a.parseFloat;
4104
4098
  var Symbol$2 = global$a.Symbol;
4105
4099
  var ITERATOR$4 = Symbol$2 && Symbol$2.iterator;
4106
4100
  var FORCED$1 = 1 / $parseFloat$1(whitespaces$1 + '-0') !== -Infinity
4107
4101
  // MS Edge 18- broken with boxed symbols
4108
- || (ITERATOR$4 && !fails$4(function () { $parseFloat$1(Object(ITERATOR$4)); }));
4102
+ || (ITERATOR$4 && !fails$3(function () { $parseFloat$1(Object(ITERATOR$4)); }));
4109
4103
 
4110
4104
  // `parseFloat` method
4111
4105
  // https://tc39.es/ecma262/#sec-parsefloat-string
4112
4106
  var numberParseFloat = FORCED$1 ? function parseFloat(string) {
4113
- var trimmedString = trim$1(toString$4(string));
4107
+ var trimmedString = trim$1(toString$3(string));
4114
4108
  var result = $parseFloat$1(trimmedString);
4115
4109
  return result === 0 && charAt(trimmedString, 0) == '-' ? -0 : result;
4116
4110
  } : $parseFloat$1;
4117
4111
 
4118
- var $$c = _export;
4112
+ var $$9 = _export;
4119
4113
  var $parseFloat = numberParseFloat;
4120
4114
 
4121
4115
  // `parseFloat` method
4122
4116
  // https://tc39.es/ecma262/#sec-parsefloat-string
4123
- $$c({ global: true, forced: parseFloat != $parseFloat }, {
4117
+ $$9({ global: true, forced: parseFloat != $parseFloat }, {
4124
4118
  parseFloat: $parseFloat
4125
4119
  });
4126
4120
 
@@ -4253,9 +4247,9 @@ const MoneyInput = _a => {
4253
4247
  };
4254
4248
 
4255
4249
  var global$9 = global$p;
4256
- var fails$3 = fails$r;
4257
- var uncurryThis$3 = functionUncurryThis;
4258
- var toString$3 = toString$c;
4250
+ var fails$2 = fails$q;
4251
+ var uncurryThis$2 = functionUncurryThis;
4252
+ var toString$2 = toString$b;
4259
4253
  var trim = stringTrim.trim;
4260
4254
  var whitespaces = whitespaces$4;
4261
4255
 
@@ -4263,24 +4257,24 @@ var $parseInt$1 = global$9.parseInt;
4263
4257
  var Symbol$1 = global$9.Symbol;
4264
4258
  var ITERATOR$3 = Symbol$1 && Symbol$1.iterator;
4265
4259
  var hex = /^[+-]?0x/i;
4266
- var exec = uncurryThis$3(hex.exec);
4260
+ var exec = uncurryThis$2(hex.exec);
4267
4261
  var FORCED = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
4268
4262
  // MS Edge 18- broken with boxed symbols
4269
- || (ITERATOR$3 && !fails$3(function () { $parseInt$1(Object(ITERATOR$3)); }));
4263
+ || (ITERATOR$3 && !fails$2(function () { $parseInt$1(Object(ITERATOR$3)); }));
4270
4264
 
4271
4265
  // `parseInt` method
4272
4266
  // https://tc39.es/ecma262/#sec-parseint-string-radix
4273
4267
  var numberParseInt = FORCED ? function parseInt(string, radix) {
4274
- var S = trim(toString$3(string));
4268
+ var S = trim(toString$2(string));
4275
4269
  return $parseInt$1(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));
4276
4270
  } : $parseInt$1;
4277
4271
 
4278
- var $$b = _export;
4272
+ var $$8 = _export;
4279
4273
  var $parseInt = numberParseInt;
4280
4274
 
4281
4275
  // `parseInt` method
4282
4276
  // https://tc39.es/ecma262/#sec-parseint-string-radix
4283
- $$b({ global: true, forced: parseInt != $parseInt }, {
4277
+ $$8({ global: true, forced: parseInt != $parseInt }, {
4284
4278
  parseInt: $parseInt
4285
4279
  });
4286
4280
 
@@ -4341,24 +4335,24 @@ var regexpGetFlags = function (R) {
4341
4335
  };
4342
4336
 
4343
4337
  var PROPER_FUNCTION_NAME = functionName.PROPER;
4344
- var defineBuiltIn$3 = defineBuiltIn$8;
4338
+ var defineBuiltIn$2 = defineBuiltIn$7;
4345
4339
  var anObject$6 = anObject$f;
4346
- var $toString = toString$c;
4347
- var fails$2 = fails$r;
4340
+ var $toString = toString$b;
4341
+ var fails$1 = fails$q;
4348
4342
  var getRegExpFlags = regexpGetFlags;
4349
4343
 
4350
4344
  var TO_STRING = 'toString';
4351
4345
  var RegExpPrototype = RegExp.prototype;
4352
4346
  var nativeToString = RegExpPrototype[TO_STRING];
4353
4347
 
4354
- var NOT_GENERIC = fails$2(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
4348
+ var NOT_GENERIC = fails$1(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
4355
4349
  // FF44- RegExp#toString has a wrong name
4356
4350
  var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name != TO_STRING;
4357
4351
 
4358
4352
  // `RegExp.prototype.toString` method
4359
4353
  // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
4360
4354
  if (NOT_GENERIC || INCORRECT_NAME) {
4361
- defineBuiltIn$3(RegExp.prototype, TO_STRING, function toString() {
4355
+ defineBuiltIn$2(RegExp.prototype, TO_STRING, function toString() {
4362
4356
  var R = anObject$6(this);
4363
4357
  var pattern = $toString(R.source);
4364
4358
  var flags = $toString(getRegExpFlags(R));
@@ -4621,7 +4615,6 @@ const RateCard = ({
4621
4615
  insuranceAmount,
4622
4616
  isAcknowledged,
4623
4617
  messages,
4624
- displayNickname,
4625
4618
  onClick,
4626
4619
  onClickAcknowledgement,
4627
4620
  otherAmount,
@@ -4666,7 +4659,7 @@ const RateCard = ({
4666
4659
  css: getServiceTypeStyles
4667
4660
  }, {
4668
4661
  children: serviceType
4669
- })), displayNickname && carrierNickname && jsx(Typography, Object.assign({
4662
+ })), carrierNickname && jsx(Typography, Object.assign({
4670
4663
  css: getCarrierNameStyles
4671
4664
  }, {
4672
4665
  children: carrierNickname
@@ -4748,8 +4741,8 @@ const RateSelect = _a => {
4748
4741
  role: "radiogroup"
4749
4742
  }, {
4750
4743
  children: options === null || options === void 0 ? void 0 : options.map(option => createElement$2(RateCard, Object.assign({}, optionWithEnabledData(option), {
4744
+ carrierNickname: nicknameFeature ? option.carrierNickname : undefined,
4751
4745
  css: getRateCardOptionStyles,
4752
- displayNickname: nicknameFeature,
4753
4746
  isAcknowledged: field.value.isAcknowledged,
4754
4747
  key: option.rateId,
4755
4748
  onClick: rateId => {
@@ -5412,6 +5405,24 @@ const useCarrierMetadata = carrierCodes => {
5412
5405
  }) : carrierMetadatas;
5413
5406
  };
5414
5407
 
5408
+ /**
5409
+ * A no-frills wrapper around React.createPortal for more elegant DOM composition
5410
+ *
5411
+ * @category Components
5412
+ *
5413
+ * @see {@link useNestedForm}
5414
+ */
5415
+ const Portal = ({
5416
+ children,
5417
+ target
5418
+ }) => {
5419
+ if (target) {
5420
+ if (target instanceof HTMLElement) return /*#__PURE__*/createPortal(children, target);
5421
+ if (target.current) return /*#__PURE__*/createPortal(children, target.current);
5422
+ }
5423
+ return null;
5424
+ };
5425
+
5415
5426
  const RootPortalContext = /*#__PURE__*/createContext(undefined);
5416
5427
  RootPortalContext.displayName = "RootPortalContext";
5417
5428
  /**
@@ -5452,75 +5463,6 @@ const useRootPortal = () => {
5452
5463
  return rootPortal;
5453
5464
  };
5454
5465
 
5455
- /**
5456
- * @category Contexts
5457
- */
5458
- const ElementsContext = /*#__PURE__*/createContext(undefined);
5459
- /**
5460
- * @category Providers
5461
- */
5462
- const ElementsProvider = ({
5463
- baseURL,
5464
- brandName,
5465
- children,
5466
- environment: _environment = "production",
5467
- getToken,
5468
- onError
5469
- }) => {
5470
- const value = useMemo(() => ({
5471
- brandName,
5472
- environment: _environment,
5473
- onError
5474
- }), [_environment, onError, brandName]);
5475
- return jsx(ShipEngine, Object.assign({
5476
- baseURL: baseURL,
5477
- getToken: getToken,
5478
- headers: {
5479
- "x-shipengine-environment": `${_environment}`
5480
- }
5481
- }, {
5482
- children: jsx(ElementsContext.Provider, Object.assign({
5483
- value: value
5484
- }, {
5485
- children: jsx(RootPortalProvider, {
5486
- children: children
5487
- })
5488
- }))
5489
- }));
5490
- };
5491
- /**
5492
- * Must be used within {@link ElementsProvider}
5493
- *
5494
- * @category Elements Hooks
5495
- *
5496
- * @see {@link registerElement}
5497
- */
5498
- const useElements = () => {
5499
- const context = useContext(ElementsContext);
5500
- if (!context) {
5501
- throw new Error("useElements must be called from within the scope of ElementsProvider");
5502
- }
5503
- return context;
5504
- };
5505
-
5506
- /**
5507
- * A no-frills wrapper around React.createPortal for more elegant DOM composition
5508
- *
5509
- * @category Components
5510
- *
5511
- * @see {@link useNestedForm}
5512
- */
5513
- const Portal = ({
5514
- children,
5515
- target
5516
- }) => {
5517
- if (target) {
5518
- if (target instanceof HTMLElement) return /*#__PURE__*/createPortal(children, target);
5519
- if (target.current) return /*#__PURE__*/createPortal(children, target.current);
5520
- }
5521
- return null;
5522
- };
5523
-
5524
5466
  /**
5525
5467
  * Returns a nested form element that can be rendered within another form
5526
5468
  *
@@ -5726,7 +5668,7 @@ var call$5 = functionCall;
5726
5668
  var anObject$3 = anObject$f;
5727
5669
  var tryToString$1 = tryToString$5;
5728
5670
  var isArrayIteratorMethod = isArrayIteratorMethod$1;
5729
- var lengthOfArrayLike$1 = lengthOfArrayLike$8;
5671
+ var lengthOfArrayLike = lengthOfArrayLike$7;
5730
5672
  var isPrototypeOf$2 = objectIsPrototypeOf;
5731
5673
  var getIterator = getIterator$1;
5732
5674
  var getIteratorMethod = getIteratorMethod$2;
@@ -5771,7 +5713,7 @@ var iterate$3 = function (iterable, unboundFunction, options) {
5771
5713
  if (!iterFn) throw $TypeError$4(tryToString$1(iterable) + ' is not iterable');
5772
5714
  // optimisation for array iterators
5773
5715
  if (isArrayIteratorMethod(iterFn)) {
5774
- for (index = 0, length = lengthOfArrayLike$1(iterable); length > index; index++) {
5716
+ for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
5775
5717
  result = callFn(iterable[index]);
5776
5718
  if (result && isPrototypeOf$2(ResultPrototype, result)) return result;
5777
5719
  } return new Result(false);
@@ -5790,13 +5732,13 @@ var iterate$3 = function (iterable, unboundFunction, options) {
5790
5732
  } return new Result(false);
5791
5733
  };
5792
5734
 
5793
- var $$a = _export;
5735
+ var $$7 = _export;
5794
5736
  var iterate$2 = iterate$3;
5795
5737
  var createProperty = createProperty$2;
5796
5738
 
5797
5739
  // `Object.fromEntries` method
5798
5740
  // https://github.com/tc39/proposal-object-from-entries
5799
- $$a({ target: 'Object', stat: true }, {
5741
+ $$7({ target: 'Object', stat: true }, {
5800
5742
  fromEntries: function fromEntries(iterable) {
5801
5743
  var obj = {};
5802
5744
  iterate$2(iterable, function (k, v) {
@@ -6122,9 +6064,9 @@ var call$4 = functionCall;
6122
6064
  var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
6123
6065
  var anObject$2 = anObject$f;
6124
6066
  var isNullOrUndefined$1 = isNullOrUndefined$6;
6125
- var toLength$1 = toLength$4;
6126
- var toString$2 = toString$c;
6127
- var requireObjectCoercible$1 = requireObjectCoercible$9;
6067
+ var toLength = toLength$3;
6068
+ var toString$1 = toString$b;
6069
+ var requireObjectCoercible = requireObjectCoercible$8;
6128
6070
  var getMethod = getMethod$5;
6129
6071
  var advanceStringIndex = advanceStringIndex$2;
6130
6072
  var regExpExec = regexpExecAbstract;
@@ -6135,15 +6077,15 @@ fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNa
6135
6077
  // `String.prototype.match` method
6136
6078
  // https://tc39.es/ecma262/#sec-string.prototype.match
6137
6079
  function match(regexp) {
6138
- var O = requireObjectCoercible$1(this);
6080
+ var O = requireObjectCoercible(this);
6139
6081
  var matcher = isNullOrUndefined$1(regexp) ? undefined : getMethod(regexp, MATCH);
6140
- return matcher ? call$4(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString$2(O));
6082
+ return matcher ? call$4(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString$1(O));
6141
6083
  },
6142
6084
  // `RegExp.prototype[@@match]` method
6143
6085
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@match
6144
6086
  function (string) {
6145
6087
  var rx = anObject$2(this);
6146
- var S = toString$2(string);
6088
+ var S = toString$1(string);
6147
6089
  var res = maybeCallNative(nativeMatch, rx, S);
6148
6090
 
6149
6091
  if (res.done) return res.value;
@@ -6156,9 +6098,9 @@ fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNa
6156
6098
  var n = 0;
6157
6099
  var result;
6158
6100
  while ((result = regExpExec(rx, S)) !== null) {
6159
- var matchStr = toString$2(result[0]);
6101
+ var matchStr = toString$1(result[0]);
6160
6102
  A[n] = matchStr;
6161
- if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength$1(rx.lastIndex), fullUnicode);
6103
+ if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
6162
6104
  n++;
6163
6105
  }
6164
6106
  return n === 0 ? null : A;
@@ -6736,6 +6678,16 @@ const AddressPreferenceDisplay = ({
6736
6678
  yield onChangePreference === null || onChangePreference === void 0 ? void 0 : onChangePreference(selectedAddress);
6737
6679
  }), [addressPreference, onChangePreference]);
6738
6680
  const disclosureContentTitle = useMemo(() => addressPreference.status === "verified" ? t(`address.preference.${addressPreference.alternativeSource}`) : t("address.preference.addressNotValidated"), [addressPreference, t]);
6681
+ const isVerified = useMemo(() => {
6682
+ if (isDomesticAddress(addressPreference.selection) || addressPreference.selectionSource === "matchedAddress") {
6683
+ return addressPreference.status === "verified";
6684
+ }
6685
+ // If the address is international and is modified, We might get "verified" even though we are displaying original "not verified" address
6686
+ if (addressPreference.isModified) {
6687
+ return false;
6688
+ }
6689
+ return addressPreference.status === "verified";
6690
+ }, [addressPreference]);
6739
6691
  return jsxs(Fragment, {
6740
6692
  children: [jsx(AddressDisplay, {
6741
6693
  address: addressPreference.selection,
@@ -6746,13 +6698,13 @@ const AddressPreferenceDisplay = ({
6746
6698
  }), jsx(Disclosure, Object.assign({
6747
6699
  "data-testid": "address-preference-disclosure",
6748
6700
  label: jsx(Tag, Object.assign({
6749
- color: addressPreference.status === "verified" ? TagColor.SUCCESS : TagColor.ERROR
6701
+ color: isVerified ? TagColor.SUCCESS : TagColor.ERROR
6750
6702
  }, {
6751
- children: addressPreference.status === "verified" ? t("address.validation.validated") : t("address.validation.notValidated")
6703
+ children: isVerified ? t("address.validation.validated") : t("address.validation.notValidated")
6752
6704
  })),
6753
6705
  onToggle: isOpen => onToggleDisclosure === null || onToggleDisclosure === void 0 ? void 0 : onToggleDisclosure(isOpen, addressPreference),
6754
6706
  // Only default to open if the address was unable to be verified
6755
- open: addressPreference.status !== "verified",
6707
+ open: !isVerified,
6756
6708
  showToggle: addressPreference.status === "error" || !!addressPreference.alternative
6757
6709
  }, {
6758
6710
  children: toggleDisclosure => jsxs(Fragment, {
@@ -7072,28 +7024,28 @@ const CarrierTermsForm = ({
7072
7024
  }));
7073
7025
  };
7074
7026
 
7075
- var $$9 = _export;
7027
+ var $$6 = _export;
7076
7028
  var DESCRIPTORS$1 = descriptors;
7077
7029
  var global$8 = global$p;
7078
- var uncurryThis$2 = functionUncurryThis;
7030
+ var uncurryThis$1 = functionUncurryThis;
7079
7031
  var hasOwn$1 = hasOwnProperty_1;
7080
- var isCallable$5 = isCallable$o;
7032
+ var isCallable$4 = isCallable$n;
7081
7033
  var isPrototypeOf$1 = objectIsPrototypeOf;
7082
- var toString$1 = toString$c;
7034
+ var toString = toString$b;
7083
7035
  var defineProperty = objectDefineProperty.f;
7084
7036
  var copyConstructorProperties = copyConstructorProperties$2;
7085
7037
 
7086
7038
  var NativeSymbol = global$8.Symbol;
7087
7039
  var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
7088
7040
 
7089
- if (DESCRIPTORS$1 && isCallable$5(NativeSymbol) && (!('description' in SymbolPrototype) ||
7041
+ if (DESCRIPTORS$1 && isCallable$4(NativeSymbol) && (!('description' in SymbolPrototype) ||
7090
7042
  // Safari 12 bug
7091
7043
  NativeSymbol().description !== undefined
7092
7044
  )) {
7093
7045
  var EmptyStringDescriptionStore = {};
7094
7046
  // wrap Symbol constructor for correct work with undefined description
7095
7047
  var SymbolWrapper = function Symbol() {
7096
- var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString$1(arguments[0]);
7048
+ var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString(arguments[0]);
7097
7049
  var result = isPrototypeOf$1(SymbolPrototype, this)
7098
7050
  ? new NativeSymbol(description)
7099
7051
  // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
@@ -7107,11 +7059,11 @@ if (DESCRIPTORS$1 && isCallable$5(NativeSymbol) && (!('description' in SymbolPro
7107
7059
  SymbolPrototype.constructor = SymbolWrapper;
7108
7060
 
7109
7061
  var NATIVE_SYMBOL = String(NativeSymbol('test')) == 'Symbol(test)';
7110
- var thisSymbolValue = uncurryThis$2(SymbolPrototype.valueOf);
7111
- var symbolDescriptiveString = uncurryThis$2(SymbolPrototype.toString);
7062
+ var thisSymbolValue = uncurryThis$1(SymbolPrototype.valueOf);
7063
+ var symbolDescriptiveString = uncurryThis$1(SymbolPrototype.toString);
7112
7064
  var regexp = /^Symbol\((.*)\)[^)]+$/;
7113
- var replace = uncurryThis$2(''.replace);
7114
- var stringSlice$1 = uncurryThis$2(''.slice);
7065
+ var replace = uncurryThis$1(''.replace);
7066
+ var stringSlice = uncurryThis$1(''.slice);
7115
7067
 
7116
7068
  defineProperty(SymbolPrototype, 'description', {
7117
7069
  configurable: true,
@@ -7119,12 +7071,12 @@ if (DESCRIPTORS$1 && isCallable$5(NativeSymbol) && (!('description' in SymbolPro
7119
7071
  var symbol = thisSymbolValue(this);
7120
7072
  if (hasOwn$1(EmptyStringDescriptionStore, symbol)) return '';
7121
7073
  var string = symbolDescriptiveString(symbol);
7122
- var desc = NATIVE_SYMBOL ? stringSlice$1(string, 7, -1) : replace(string, regexp, '$1');
7074
+ var desc = NATIVE_SYMBOL ? stringSlice(string, 7, -1) : replace(string, regexp, '$1');
7123
7075
  return desc === '' ? undefined : desc;
7124
7076
  }
7125
7077
  });
7126
7078
 
7127
- $$9({ global: true, constructor: true, forced: true }, {
7079
+ $$6({ global: true, constructor: true, forced: true }, {
7128
7080
  Symbol: SymbolWrapper
7129
7081
  });
7130
7082
  }
@@ -7704,7 +7656,7 @@ const styles$6 = createStyles({
7704
7656
  })
7705
7657
  });
7706
7658
 
7707
- const ListCarriers$1 = ({
7659
+ const ListCarriers = ({
7708
7660
  carriers: _carriers = [],
7709
7661
  errors,
7710
7662
  isLoading,
@@ -8428,7 +8380,7 @@ const styles$4 = createStyles({
8428
8380
  })
8429
8381
  });
8430
8382
 
8431
- const ManageWarehouses$1 = ({
8383
+ const ManageWarehouses = ({
8432
8384
  errors,
8433
8385
  onAdd,
8434
8386
  onDelete,
@@ -8461,11 +8413,15 @@ const ManageWarehouses$1 = ({
8461
8413
  } = payload,
8462
8414
  rest = __rest(payload, ["passengerData"]);
8463
8415
  onAdd(Object.assign(Object.assign({}, rest), passengerData));
8416
+ toggleShowAddNewWarehouseForm(false);
8464
8417
  }
8465
8418
  }, {
8466
8419
  children: jsx(WarehouseForm, {
8467
8420
  onCancel: () => toggleShowAddNewWarehouseForm(false),
8468
- onSubmit: payload => onAdd(payload),
8421
+ onSubmit: payload => {
8422
+ onAdd(payload);
8423
+ toggleShowAddNewWarehouseForm(false);
8424
+ },
8469
8425
  submitButtonTitle: t("actions.save")
8470
8426
  })
8471
8427
  })) : jsx(ButtonGroup, Object.assign({
@@ -8488,10 +8444,7 @@ const ManageWarehouses$1 = ({
8488
8444
  })), jsx("div", Object.assign({
8489
8445
  css: styles$4.cardSpacing
8490
8446
  }, {
8491
- children: warehouses.sort((a, b) => {
8492
- if (b.isDefault) return 1;
8493
- return sortByCreationDate(a, b, "desc");
8494
- }).map(warehouse => {
8447
+ children: warehouses.map(warehouse => {
8495
8448
  if (editWarehouseId && editWarehouseId === warehouse.warehouseId) {
8496
8449
  return jsx(AddressPreferenceProvider, Object.assign({
8497
8450
  css: styles$4.well,
@@ -8519,7 +8472,8 @@ const ManageWarehouses$1 = ({
8519
8472
  onCancel: () => setEditWarehouseId(undefined),
8520
8473
  onDelete: warehouse.isDefault ? undefined : () => onDelete(warehouse.warehouseId),
8521
8474
  onSubmit: payload => __awaiter(void 0, void 0, void 0, function* () {
8522
- return onEdit(payload, warehouse.warehouseId);
8475
+ onEdit(payload, warehouse.warehouseId);
8476
+ setEditWarehouseId(undefined);
8523
8477
  }),
8524
8478
  submitButtonTitle: t("actions.save"),
8525
8479
  warehouse: warehouse
@@ -8551,7 +8505,7 @@ const ManageWarehouses$1 = ({
8551
8505
  });
8552
8506
  };
8553
8507
 
8554
- var getBuiltIn$3 = getBuiltIn$9;
8508
+ var getBuiltIn$2 = getBuiltIn$8;
8555
8509
  var definePropertyModule = objectDefineProperty;
8556
8510
  var wellKnownSymbol$3 = wellKnownSymbol$j;
8557
8511
  var DESCRIPTORS = descriptors;
@@ -8559,7 +8513,7 @@ var DESCRIPTORS = descriptors;
8559
8513
  var SPECIES$2 = wellKnownSymbol$3('species');
8560
8514
 
8561
8515
  var setSpecies$1 = function (CONSTRUCTOR_NAME) {
8562
- var Constructor = getBuiltIn$3(CONSTRUCTOR_NAME);
8516
+ var Constructor = getBuiltIn$2(CONSTRUCTOR_NAME);
8563
8517
  var defineProperty = definePropertyModule.f;
8564
8518
 
8565
8519
  if (DESCRIPTORS && Constructor && !Constructor[SPECIES$2]) {
@@ -8599,15 +8553,15 @@ var SPECIES$1 = wellKnownSymbol$2('species');
8599
8553
 
8600
8554
  // `SpeciesConstructor` abstract operation
8601
8555
  // https://tc39.es/ecma262/#sec-speciesconstructor
8602
- var speciesConstructor$2 = function (O, defaultConstructor) {
8556
+ var speciesConstructor$1 = function (O, defaultConstructor) {
8603
8557
  var C = anObject$1(O).constructor;
8604
8558
  var S;
8605
8559
  return C === undefined || isNullOrUndefined(S = anObject$1(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
8606
8560
  };
8607
8561
 
8608
- var uncurryThis$1 = functionUncurryThis;
8562
+ var uncurryThis = functionUncurryThis;
8609
8563
 
8610
- var arraySlice$1 = uncurryThis$1([].slice);
8564
+ var arraySlice$1 = uncurryThis([].slice);
8611
8565
 
8612
8566
  var $TypeError$1 = TypeError;
8613
8567
 
@@ -8623,9 +8577,9 @@ var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
8623
8577
  var global$7 = global$p;
8624
8578
  var apply = functionApply;
8625
8579
  var bind$2 = functionBindContext;
8626
- var isCallable$4 = isCallable$o;
8580
+ var isCallable$3 = isCallable$n;
8627
8581
  var hasOwn = hasOwnProperty_1;
8628
- var fails$1 = fails$r;
8582
+ var fails = fails$q;
8629
8583
  var html = html$2;
8630
8584
  var arraySlice = arraySlice$1;
8631
8585
  var createElement = documentCreateElement$2;
@@ -8677,7 +8631,7 @@ var post = function (id) {
8677
8631
  if (!set || !clear) {
8678
8632
  set = function setImmediate(handler) {
8679
8633
  validateArgumentsLength(arguments.length, 1);
8680
- var fn = isCallable$4(handler) ? handler : Function$1(handler);
8634
+ var fn = isCallable$3(handler) ? handler : Function$1(handler);
8681
8635
  var args = arraySlice(arguments, 1);
8682
8636
  queue$1[++counter] = function () {
8683
8637
  apply(fn, undefined, args);
@@ -8709,10 +8663,10 @@ if (!set || !clear) {
8709
8663
  // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
8710
8664
  } else if (
8711
8665
  global$7.addEventListener &&
8712
- isCallable$4(global$7.postMessage) &&
8666
+ isCallable$3(global$7.postMessage) &&
8713
8667
  !global$7.importScripts &&
8714
8668
  $location && $location.protocol !== 'file:' &&
8715
- !fails$1(post)
8669
+ !fails(post)
8716
8670
  ) {
8717
8671
  defer = post;
8718
8672
  global$7.addEventListener('message', listener, false);
@@ -8748,7 +8702,7 @@ var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
8748
8702
 
8749
8703
  var global$5 = global$p;
8750
8704
  var bind$1 = functionBindContext;
8751
- var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
8705
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
8752
8706
  var macrotask = task$1.set;
8753
8707
  var IS_IOS = engineIsIos;
8754
8708
  var IS_IOS_PEBBLE = engineIsIosPebble;
@@ -8760,7 +8714,7 @@ var document$2 = global$5.document;
8760
8714
  var process$2 = global$5.process;
8761
8715
  var Promise$1 = global$5.Promise;
8762
8716
  // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
8763
- var queueMicrotaskDescriptor = getOwnPropertyDescriptor$1(global$5, 'queueMicrotask');
8717
+ var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$5, 'queueMicrotask');
8764
8718
  var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
8765
8719
 
8766
8720
  var flush, head, last, notify$1, toggle, node, promise, then;
@@ -8889,8 +8843,8 @@ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
8889
8843
  && typeof document == 'object';
8890
8844
 
8891
8845
  var global$2 = global$p;
8892
- var NativePromiseConstructor$4 = promiseNativeConstructor;
8893
- var isCallable$3 = isCallable$o;
8846
+ var NativePromiseConstructor$3 = promiseNativeConstructor;
8847
+ var isCallable$2 = isCallable$n;
8894
8848
  var isForced = isForced_1;
8895
8849
  var inspectSource = inspectSource$3;
8896
8850
  var wellKnownSymbol$1 = wellKnownSymbol$j;
@@ -8898,14 +8852,14 @@ var IS_BROWSER = engineIsBrowser;
8898
8852
  var IS_DENO = engineIsDeno;
8899
8853
  var V8_VERSION = engineV8Version;
8900
8854
 
8901
- NativePromiseConstructor$4 && NativePromiseConstructor$4.prototype;
8855
+ NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
8902
8856
  var SPECIES = wellKnownSymbol$1('species');
8903
8857
  var SUBCLASSING = false;
8904
- var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$3(global$2.PromiseRejectionEvent);
8858
+ var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$2(global$2.PromiseRejectionEvent);
8905
8859
 
8906
8860
  var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
8907
- var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$4);
8908
- var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$4);
8861
+ var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
8862
+ var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$3);
8909
8863
  // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
8910
8864
  // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
8911
8865
  // We can't detect it synchronously, so just check versions
@@ -8915,7 +8869,7 @@ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
8915
8869
  // https://github.com/zloirock/core-js/issues/679
8916
8870
  if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
8917
8871
  // Detect correctness of subclassing with @@species support
8918
- var promise = new NativePromiseConstructor$4(function (resolve) { resolve(1); });
8872
+ var promise = new NativePromiseConstructor$3(function (resolve) { resolve(1); });
8919
8873
  var FakePromise = function (exec) {
8920
8874
  exec(function () { /* empty */ }, function () { /* empty */ });
8921
8875
  };
@@ -8956,26 +8910,26 @@ newPromiseCapability$2.f = function (C) {
8956
8910
  return new PromiseCapability(C);
8957
8911
  };
8958
8912
 
8959
- var $$8 = _export;
8913
+ var $$5 = _export;
8960
8914
  var IS_NODE = engineIsNode;
8961
8915
  var global$1 = global$p;
8962
8916
  var call$3 = functionCall;
8963
- var defineBuiltIn$2 = defineBuiltIn$8;
8917
+ var defineBuiltIn$1 = defineBuiltIn$7;
8964
8918
  var setPrototypeOf = objectSetPrototypeOf;
8965
8919
  var setToStringTag = setToStringTag$3;
8966
8920
  var setSpecies = setSpecies$1;
8967
8921
  var aCallable$2 = aCallable$a;
8968
- var isCallable$2 = isCallable$o;
8922
+ var isCallable$1 = isCallable$n;
8969
8923
  var isObject$1 = isObject$a;
8970
8924
  var anInstance = anInstance$1;
8971
- var speciesConstructor$1 = speciesConstructor$2;
8925
+ var speciesConstructor = speciesConstructor$1;
8972
8926
  var task = task$1.set;
8973
8927
  var microtask = microtask$1;
8974
8928
  var hostReportErrors = hostReportErrors$1;
8975
8929
  var perform$2 = perform$3;
8976
8930
  var Queue = queue;
8977
8931
  var InternalStateModule = internalState;
8978
- var NativePromiseConstructor$3 = promiseNativeConstructor;
8932
+ var NativePromiseConstructor$2 = promiseNativeConstructor;
8979
8933
  var PromiseConstructorDetection = promiseConstructorDetection;
8980
8934
  var newPromiseCapabilityModule$3 = newPromiseCapability$2;
8981
8935
 
@@ -8985,9 +8939,9 @@ var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT
8985
8939
  var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
8986
8940
  var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
8987
8941
  var setInternalState = InternalStateModule.set;
8988
- var NativePromisePrototype$2 = NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
8989
- var PromiseConstructor = NativePromiseConstructor$3;
8990
- var PromisePrototype = NativePromisePrototype$2;
8942
+ var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
8943
+ var PromiseConstructor = NativePromiseConstructor$2;
8944
+ var PromisePrototype = NativePromisePrototype$1;
8991
8945
  var TypeError$1 = global$1.TypeError;
8992
8946
  var document$1 = global$1.document;
8993
8947
  var process$1 = global$1.process;
@@ -9008,7 +8962,7 @@ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
9008
8962
  // helpers
9009
8963
  var isThenable = function (it) {
9010
8964
  var then;
9011
- return isObject$1(it) && isCallable$2(then = it.then) ? then : false;
8965
+ return isObject$1(it) && isCallable$1(then = it.then) ? then : false;
9012
8966
  };
9013
8967
 
9014
8968
  var callReaction = function (reaction, state) {
@@ -9182,12 +9136,12 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
9182
9136
 
9183
9137
  // `Promise.prototype.then` method
9184
9138
  // https://tc39.es/ecma262/#sec-promise.prototype.then
9185
- Internal.prototype = defineBuiltIn$2(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
9139
+ Internal.prototype = defineBuiltIn$1(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
9186
9140
  var state = getInternalPromiseState(this);
9187
- var reaction = newPromiseCapability$1(speciesConstructor$1(this, PromiseConstructor));
9141
+ var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
9188
9142
  state.parent = true;
9189
- reaction.ok = isCallable$2(onFulfilled) ? onFulfilled : true;
9190
- reaction.fail = isCallable$2(onRejected) && onRejected;
9143
+ reaction.ok = isCallable$1(onFulfilled) ? onFulfilled : true;
9144
+ reaction.fail = isCallable$1(onRejected) && onRejected;
9191
9145
  reaction.domain = IS_NODE ? process$1.domain : undefined;
9192
9146
  if (state.state == PENDING) state.reactions.add(reaction);
9193
9147
  else microtask(function () {
@@ -9210,12 +9164,12 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
9210
9164
  : newGenericPromiseCapability(C);
9211
9165
  };
9212
9166
 
9213
- if (isCallable$2(NativePromiseConstructor$3) && NativePromisePrototype$2 !== Object.prototype) {
9214
- nativeThen = NativePromisePrototype$2.then;
9167
+ if (isCallable$1(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
9168
+ nativeThen = NativePromisePrototype$1.then;
9215
9169
 
9216
9170
  if (!NATIVE_PROMISE_SUBCLASSING) {
9217
9171
  // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
9218
- defineBuiltIn$2(NativePromisePrototype$2, 'then', function then(onFulfilled, onRejected) {
9172
+ defineBuiltIn$1(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
9219
9173
  var that = this;
9220
9174
  return new PromiseConstructor(function (resolve, reject) {
9221
9175
  call$3(nativeThen, that, resolve, reject);
@@ -9226,17 +9180,17 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
9226
9180
 
9227
9181
  // make `.constructor === Promise` work for native promise-based APIs
9228
9182
  try {
9229
- delete NativePromisePrototype$2.constructor;
9183
+ delete NativePromisePrototype$1.constructor;
9230
9184
  } catch (error) { /* empty */ }
9231
9185
 
9232
9186
  // make `instanceof Promise` work for native promise-based APIs
9233
9187
  if (setPrototypeOf) {
9234
- setPrototypeOf(NativePromisePrototype$2, PromisePrototype);
9188
+ setPrototypeOf(NativePromisePrototype$1, PromisePrototype);
9235
9189
  }
9236
9190
  }
9237
9191
  }
9238
9192
 
9239
- $$8({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
9193
+ $$5({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
9240
9194
  Promise: PromiseConstructor
9241
9195
  });
9242
9196
 
@@ -9282,15 +9236,15 @@ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
9282
9236
  return ITERATION_SUPPORT;
9283
9237
  };
9284
9238
 
9285
- var NativePromiseConstructor$2 = promiseNativeConstructor;
9239
+ var NativePromiseConstructor$1 = promiseNativeConstructor;
9286
9240
  var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
9287
9241
  var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
9288
9242
 
9289
9243
  var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
9290
- NativePromiseConstructor$2.all(iterable).then(undefined, function () { /* empty */ });
9244
+ NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
9291
9245
  });
9292
9246
 
9293
- var $$7 = _export;
9247
+ var $$4 = _export;
9294
9248
  var call$2 = functionCall;
9295
9249
  var aCallable$1 = aCallable$a;
9296
9250
  var newPromiseCapabilityModule$2 = newPromiseCapability$2;
@@ -9300,7 +9254,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
9300
9254
 
9301
9255
  // `Promise.all` method
9302
9256
  // https://tc39.es/ecma262/#sec-promise.all
9303
- $$7({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
9257
+ $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
9304
9258
  all: function all(iterable) {
9305
9259
  var C = this;
9306
9260
  var capability = newPromiseCapabilityModule$2.f(C);
@@ -9329,32 +9283,32 @@ $$7({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
9329
9283
  }
9330
9284
  });
9331
9285
 
9332
- var $$6 = _export;
9286
+ var $$3 = _export;
9333
9287
  var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
9334
- var NativePromiseConstructor$1 = promiseNativeConstructor;
9335
- var getBuiltIn$2 = getBuiltIn$9;
9336
- var isCallable$1 = isCallable$o;
9337
- var defineBuiltIn$1 = defineBuiltIn$8;
9288
+ var NativePromiseConstructor = promiseNativeConstructor;
9289
+ var getBuiltIn$1 = getBuiltIn$8;
9290
+ var isCallable = isCallable$n;
9291
+ var defineBuiltIn = defineBuiltIn$7;
9338
9292
 
9339
- var NativePromisePrototype$1 = NativePromiseConstructor$1 && NativePromiseConstructor$1.prototype;
9293
+ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
9340
9294
 
9341
9295
  // `Promise.prototype.catch` method
9342
9296
  // https://tc39.es/ecma262/#sec-promise.prototype.catch
9343
- $$6({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
9297
+ $$3({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
9344
9298
  'catch': function (onRejected) {
9345
9299
  return this.then(undefined, onRejected);
9346
9300
  }
9347
9301
  });
9348
9302
 
9349
9303
  // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
9350
- if (isCallable$1(NativePromiseConstructor$1)) {
9351
- var method$1 = getBuiltIn$2('Promise').prototype['catch'];
9352
- if (NativePromisePrototype$1['catch'] !== method$1) {
9353
- defineBuiltIn$1(NativePromisePrototype$1, 'catch', method$1, { unsafe: true });
9304
+ if (isCallable(NativePromiseConstructor)) {
9305
+ var method = getBuiltIn$1('Promise').prototype['catch'];
9306
+ if (NativePromisePrototype['catch'] !== method) {
9307
+ defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
9354
9308
  }
9355
9309
  }
9356
9310
 
9357
- var $$5 = _export;
9311
+ var $$2 = _export;
9358
9312
  var call$1 = functionCall;
9359
9313
  var aCallable = aCallable$a;
9360
9314
  var newPromiseCapabilityModule$1 = newPromiseCapability$2;
@@ -9364,7 +9318,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
9364
9318
 
9365
9319
  // `Promise.race` method
9366
9320
  // https://tc39.es/ecma262/#sec-promise.race
9367
- $$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
9321
+ $$2({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
9368
9322
  race: function race(iterable) {
9369
9323
  var C = this;
9370
9324
  var capability = newPromiseCapabilityModule$1.f(C);
@@ -9380,14 +9334,14 @@ $$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
9380
9334
  }
9381
9335
  });
9382
9336
 
9383
- var $$4 = _export;
9337
+ var $$1 = _export;
9384
9338
  var call = functionCall;
9385
9339
  var newPromiseCapabilityModule = newPromiseCapability$2;
9386
9340
  var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
9387
9341
 
9388
9342
  // `Promise.reject` method
9389
9343
  // https://tc39.es/ecma262/#sec-promise.reject
9390
- $$4({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
9344
+ $$1({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
9391
9345
  reject: function reject(r) {
9392
9346
  var capability = newPromiseCapabilityModule.f(this);
9393
9347
  call(capability.reject, undefined, r);
@@ -9399,7 +9353,7 @@ var anObject = anObject$f;
9399
9353
  var isObject = isObject$a;
9400
9354
  var newPromiseCapability = newPromiseCapability$2;
9401
9355
 
9402
- var promiseResolve$2 = function (C, x) {
9356
+ var promiseResolve$1 = function (C, x) {
9403
9357
  anObject(C);
9404
9358
  if (isObject(x) && x.constructor === C) return x;
9405
9359
  var promiseCapability = newPromiseCapability.f(C);
@@ -9408,18 +9362,18 @@ var promiseResolve$2 = function (C, x) {
9408
9362
  return promiseCapability.promise;
9409
9363
  };
9410
9364
 
9411
- var $$3 = _export;
9412
- var getBuiltIn$1 = getBuiltIn$9;
9365
+ var $ = _export;
9366
+ var getBuiltIn = getBuiltIn$8;
9413
9367
  var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
9414
- var promiseResolve$1 = promiseResolve$2;
9368
+ var promiseResolve = promiseResolve$1;
9415
9369
 
9416
- getBuiltIn$1('Promise');
9370
+ getBuiltIn('Promise');
9417
9371
 
9418
9372
  // `Promise.resolve` method
9419
9373
  // https://tc39.es/ecma262/#sec-promise.resolve
9420
- $$3({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
9374
+ $({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
9421
9375
  resolve: function resolve(x) {
9422
- return promiseResolve$1(this, x);
9376
+ return promiseResolve(this, x);
9423
9377
  }
9424
9378
  });
9425
9379
 
@@ -9839,7 +9793,7 @@ const styles$2 = createStyles({
9839
9793
  })
9840
9794
  });
9841
9795
 
9842
- const Onboarding$1 = ({
9796
+ const Onboarding = ({
9843
9797
  carriers,
9844
9798
  createWarehouse,
9845
9799
  onCarrierCreated,
@@ -10815,7 +10769,17 @@ const RateForm = ({
10815
10769
  // },
10816
10770
  // }
10817
10771
  );
10818
-
10772
+ // Return true if User has multiple accounts for a single carrier.
10773
+ const hasDuplicateCarrierCode = carriers => {
10774
+ const uniqueCarrierCodes = new Set();
10775
+ for (const carrier of carriers) {
10776
+ if (uniqueCarrierCodes.has(carrier.carrierCode)) {
10777
+ return true;
10778
+ }
10779
+ uniqueCarrierCodes.add(carrier.carrierCode);
10780
+ }
10781
+ return false;
10782
+ };
10819
10783
  const selectedRate = useMemo(() => rateOptions === null || rateOptions === void 0 ? void 0 : rateOptions.find(r => r.rateId === selectedRateId), [rateOptions, selectedRateId]);
10820
10784
  const handleSaveRate = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
10821
10785
  const isValid = yield form.trigger();
@@ -10865,7 +10829,9 @@ const RateForm = ({
10865
10829
  control: form.control,
10866
10830
  label: "Rate",
10867
10831
  name: "rate",
10868
- nicknameFeature: features.nicknameRate,
10832
+ nicknameFeature:
10833
+ // if feature flag is on, and if account has duplicate carrierCodes, then show nickname
10834
+ features.nicknameRate && carriers && hasDuplicateCarrierCode(carriers),
10869
10835
  onClick: onSelectRate,
10870
10836
  options: showHiddenRates ? rateOptions : filteredRateOptions
10871
10837
  }), rateOptions.some(option => option.requiresAcknowledgement) && rateOptions.length > 5 && jsx(Link, Object.assign({
@@ -12157,7 +12123,7 @@ const isHighValueRequired = (shipment, carriers = []) => {
12157
12123
  var _a;
12158
12124
  return shipment.packages.some(p => p.insuredValue ? p.insuredValue.amount > 1000 : false) && shipment.insuranceProvider === "carrier" && ((_a = carriers.find(c => c.carrierId === shipment.carrierId)) === null || _a === void 0 ? void 0 : _a.carrierCode) === "ups";
12159
12125
  };
12160
- const Shipment$1 = ({
12126
+ const Shipment = ({
12161
12127
  carriers,
12162
12128
  features,
12163
12129
  labels,
@@ -12377,7 +12343,7 @@ const SuspendShipment = ({
12377
12343
  }));
12378
12344
  };
12379
12345
 
12380
- const VoidLabel$1 = ({
12346
+ const VoidLabel = ({
12381
12347
  onComplete,
12382
12348
  onSubmit,
12383
12349
  onViewShipment,
@@ -12486,7 +12452,7 @@ const VoidLabel$1 = ({
12486
12452
  });
12487
12453
  };
12488
12454
 
12489
- var index$1 = /*#__PURE__*/Object.freeze({
12455
+ var index = /*#__PURE__*/Object.freeze({
12490
12456
  __proto__: null,
12491
12457
  AddCarrierForm: AddCarrierForm,
12492
12458
  addCarrierSchema: addCarrierSchema,
@@ -12508,17 +12474,17 @@ var index$1 = /*#__PURE__*/Object.freeze({
12508
12474
  getCustomsItemFormSchema: getCustomsItemFormSchema,
12509
12475
  Label: Label,
12510
12476
  LandingPage: LandingPage,
12511
- ListCarriers: ListCarriers$1,
12512
- ManageWarehouses: ManageWarehouses$1,
12513
- Onboarding: Onboarding$1,
12477
+ ListCarriers: ListCarriers,
12478
+ ManageWarehouses: ManageWarehouses,
12479
+ Onboarding: Onboarding,
12514
12480
  RateForm: RateForm,
12515
12481
  SuspendSalesOrder: SuspendSalesOrder,
12516
12482
  ShipmentForm: ShipmentForm,
12517
12483
  schedulePickupForCarrier: schedulePickupForCarrier,
12518
- Shipment: Shipment$1,
12484
+ Shipment: Shipment,
12519
12485
  SuspendShipment: SuspendShipment,
12520
12486
  WarehouseForm: WarehouseForm,
12521
- VoidLabel: VoidLabel$1,
12487
+ VoidLabel: VoidLabel,
12522
12488
  WalletForm: WalletForm,
12523
12489
  styles: styles$3,
12524
12490
  billingAddressSchema: billingAddressSchema,
@@ -12818,67 +12784,40 @@ const DateRangeCombo = ({
12818
12784
  };
12819
12785
 
12820
12786
  /**
12821
- * Captures errors thrown within an Element, logs them and displays a fallback component
12822
- *
12823
- * @category Components
12787
+ * Fallback component for the Elements ErrorBoundary
12824
12788
  *
12825
12789
  * @see {@link registerElement}
12826
12790
  */
12827
- class ErrorBoundary extends React.Component {
12828
- constructor(props) {
12829
- super(props);
12830
- this.state = {
12831
- error: null
12832
- };
12833
- }
12834
- componentDidCatch(error, {
12835
- componentStack
12836
- }) {
12837
- const {
12838
- onError,
12839
- element
12840
- } = this.props;
12841
- const errorBoundaryError = new Error(error.message);
12842
- errorBoundaryError.name = `React ErrorBoundary ${errorBoundaryError.name}`;
12843
- errorBoundaryError.stack = componentStack;
12844
- error.cause = errorBoundaryError;
12845
- onError === null || onError === void 0 ? void 0 : onError(error, {
12846
- componentStack,
12847
- element
12848
- });
12849
- logger.error({
12850
- componentStack,
12851
- error
12852
- }, error.message);
12853
- this.setState({
12854
- error
12855
- });
12856
- }
12857
- render() {
12858
- const {
12859
- fallback,
12860
- children
12861
- } = this.props;
12862
- const {
12863
- error
12864
- } = this.state;
12865
- if (error) {
12866
- let element;
12867
- if (typeof fallback === "function") {
12868
- element = fallback({
12869
- error
12870
- });
12871
- } else {
12872
- element = fallback;
12873
- }
12874
- return element;
12875
- }
12876
- if (typeof children === "function") {
12877
- return children();
12791
+ const ErrorFallback = ({
12792
+ error
12793
+ }) => {
12794
+ const {
12795
+ t
12796
+ } = useTranslation("common");
12797
+ return jsxs("div", Object.assign({
12798
+ css: {
12799
+ alignItems: "center",
12800
+ display: "flex",
12801
+ flexDirection: "column",
12802
+ height: "100%",
12803
+ justifyContent: "center",
12804
+ textAlign: "center",
12805
+ width: "100%"
12878
12806
  }
12879
- return children;
12880
- }
12881
- }
12807
+ }, {
12808
+ children: [jsx("div", Object.assign({
12809
+ css: theme => ({
12810
+ color: theme.palette.error.main,
12811
+ marginBottom: theme.spacing(2)
12812
+ })
12813
+ }, {
12814
+ children: jsx(Icon, {
12815
+ name: IconNames.CANCEL,
12816
+ size: IconSize.SIZE_LARGE
12817
+ })
12818
+ })), t([typeof error === "string" ? error : error.message, "errorMessages.unknown"])]
12819
+ }));
12820
+ };
12882
12821
 
12883
12822
  const ManageFunding = ({
12884
12823
  carrierId
@@ -12966,68 +12905,6 @@ const StoryNotes = ({
12966
12905
  }), children]
12967
12906
  });
12968
12907
 
12969
- var $$2 = _export;
12970
- var uncurryThis = functionUncurryThisClause;
12971
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
12972
- var toLength = toLength$4;
12973
- var toString = toString$c;
12974
- var notARegExp = notARegexp;
12975
- var requireObjectCoercible = requireObjectCoercible$9;
12976
- var correctIsRegExpLogic = correctIsRegexpLogic;
12977
-
12978
- // eslint-disable-next-line es/no-string-prototype-startswith -- safe
12979
- var nativeStartsWith = uncurryThis(''.startsWith);
12980
- var stringSlice = uncurryThis(''.slice);
12981
- var min = Math.min;
12982
-
12983
- var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith');
12984
- // https://github.com/zloirock/core-js/pull/702
12985
- var MDN_POLYFILL_BUG = !CORRECT_IS_REGEXP_LOGIC && !!function () {
12986
- var descriptor = getOwnPropertyDescriptor(String.prototype, 'startsWith');
12987
- return descriptor && !descriptor.writable;
12988
- }();
12989
-
12990
- // `String.prototype.startsWith` method
12991
- // https://tc39.es/ecma262/#sec-string.prototype.startswith
12992
- $$2({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
12993
- startsWith: function startsWith(searchString /* , position = 0 */) {
12994
- var that = toString(requireObjectCoercible(this));
12995
- notARegExp(searchString);
12996
- var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));
12997
- var search = toString(searchString);
12998
- return nativeStartsWith
12999
- ? nativeStartsWith(that, search, index)
13000
- : stringSlice(that, index, index + search.length) === search;
13001
- }
13002
- });
13003
-
13004
- var $$1 = _export;
13005
- var flattenIntoArray = flattenIntoArray_1;
13006
- var toObject = toObject$8;
13007
- var lengthOfArrayLike = lengthOfArrayLike$8;
13008
- var toIntegerOrInfinity = toIntegerOrInfinity$7;
13009
- var arraySpeciesCreate = arraySpeciesCreate$2;
13010
-
13011
- // `Array.prototype.flat` method
13012
- // https://tc39.es/ecma262/#sec-array.prototype.flat
13013
- $$1({ target: 'Array', proto: true }, {
13014
- flat: function flat(/* depthArg = 1 */) {
13015
- var depthArg = arguments.length ? arguments[0] : undefined;
13016
- var O = toObject(this);
13017
- var sourceLen = lengthOfArrayLike(O);
13018
- var A = arraySpeciesCreate(O, 0);
13019
- A.length = flattenIntoArray(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toIntegerOrInfinity(depthArg));
13020
- return A;
13021
- }
13022
- });
13023
-
13024
- // this method was added to unscopables after implementation
13025
- // in popular engines, so it's moved to a separate module
13026
- var addToUnscopables = addToUnscopables$4;
13027
-
13028
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
13029
- addToUnscopables('flat');
13030
-
13031
12908
  var common = {
13032
12909
  actions: {
13033
12910
  add: "Add",
@@ -13266,7 +13143,7 @@ var common$1 = {
13266
13143
  common: common
13267
13144
  };
13268
13145
 
13269
- var listCarriers = {
13146
+ var listCarriers$1 = {
13270
13147
  "list-carriers": {
13271
13148
  headers: {
13272
13149
  accountCarriers: "ShipEngine Carrier Accounts",
@@ -13369,7 +13246,7 @@ var manageFunding = {
13369
13246
  }
13370
13247
  };
13371
13248
 
13372
- var manageWarehouses = {
13249
+ var manageWarehouses$1 = {
13373
13250
  "manage-warehouses": {
13374
13251
  addNew: "Add New Address",
13375
13252
  editWarehouse: "Edit Address",
@@ -13385,7 +13262,7 @@ var manageWarehouses = {
13385
13262
  }
13386
13263
  };
13387
13264
 
13388
- var onboarding = {
13265
+ var onboarding$1 = {
13389
13266
  inlineTitle: "Why are we asking?",
13390
13267
  landing: {
13391
13268
  action: "Login",
@@ -13412,11 +13289,11 @@ var onboarding = {
13412
13289
  action: "Let's get started"
13413
13290
  }
13414
13291
  };
13415
- var onboarding$1 = {
13416
- onboarding: onboarding
13292
+ var onboarding$2 = {
13293
+ onboarding: onboarding$1
13417
13294
  };
13418
13295
 
13419
- var purchaseLabel = {
13296
+ var purchaseLabel$1 = {
13420
13297
  "purchase-label": {
13421
13298
  actions: {
13422
13299
  calculateRates_one: "Calculate Rate",
@@ -13563,7 +13440,7 @@ var registerWallet = {
13563
13440
  }
13564
13441
  };
13565
13442
 
13566
- var viewShipment = {
13443
+ var viewShipment$1 = {
13567
13444
  "view-shipment": {
13568
13445
  actions: {
13569
13446
  buyAnotherLabel: "Buy Another Label",
@@ -13596,7 +13473,7 @@ var viewShipment = {
13596
13473
  }
13597
13474
  };
13598
13475
 
13599
- var voidLabel = {
13476
+ var voidLabel$1 = {
13600
13477
  "void-label": {
13601
13478
  actions: {
13602
13479
  complete: "Done",
@@ -13635,228 +13512,7 @@ var walletHistory = {
13635
13512
  }
13636
13513
  };
13637
13514
 
13638
- var index = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, common$1), listCarriers), manageDefaults), manageFunding), manageWarehouses), manageDefaults), onboarding$1), purchaseLabel), registerCarrier), registerWallet), viewShipment), voidLabel), walletHistory);
13639
-
13640
- var resources = /*#__PURE__*/Object.freeze({
13641
- __proto__: null,
13642
- en: index
13643
- });
13644
-
13645
- var $ = _export;
13646
- var NativePromiseConstructor = promiseNativeConstructor;
13647
- var fails = fails$r;
13648
- var getBuiltIn = getBuiltIn$9;
13649
- var isCallable = isCallable$o;
13650
- var speciesConstructor = speciesConstructor$2;
13651
- var promiseResolve = promiseResolve$2;
13652
- var defineBuiltIn = defineBuiltIn$8;
13653
-
13654
- var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
13655
-
13656
- // Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829
13657
- var NON_GENERIC = !!NativePromiseConstructor && fails(function () {
13658
- // eslint-disable-next-line unicorn/no-thenable -- required for testing
13659
- NativePromisePrototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });
13660
- });
13661
-
13662
- // `Promise.prototype.finally` method
13663
- // https://tc39.es/ecma262/#sec-promise.prototype.finally
13664
- $({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {
13665
- 'finally': function (onFinally) {
13666
- var C = speciesConstructor(this, getBuiltIn('Promise'));
13667
- var isFunction = isCallable(onFinally);
13668
- return this.then(
13669
- isFunction ? function (x) {
13670
- return promiseResolve(C, onFinally()).then(function () { return x; });
13671
- } : onFinally,
13672
- isFunction ? function (e) {
13673
- return promiseResolve(C, onFinally()).then(function () { throw e; });
13674
- } : onFinally
13675
- );
13676
- }
13677
- });
13678
-
13679
- // makes sure that native promise-based APIs `Promise#finally` properly works with patched `Promise#then`
13680
- if (isCallable(NativePromiseConstructor)) {
13681
- var method = getBuiltIn('Promise').prototype['finally'];
13682
- if (NativePromisePrototype['finally'] !== method) {
13683
- defineBuiltIn(NativePromisePrototype, 'finally', method, { unsafe: true });
13684
- }
13685
- }
13686
-
13687
- function useJsonFromCDN(url, defaultValue) {
13688
- const [value, setValue] = useState(defaultValue);
13689
- const [loading, setLoading] = useState(true);
13690
- useEffect(() => {
13691
- setLoading(true);
13692
- fetch(url).then(response => response.json()).then(data => setValue(data)).finally(() => setLoading(false));
13693
- }, [url]);
13694
- return [value, loading];
13695
- }
13696
- const cdnUrl = "https://cdn.packlink.com";
13697
- const fallbackTheme = new Theme();
13698
- /**
13699
- * @category Providers
13700
- */
13701
- const GigerProvider = ({
13702
- children,
13703
- brandName: _brandName = BrandName.PAYPAL_SHIPCENTER,
13704
- rootId
13705
- }) => {
13706
- const [theme, themeLoading] = useJsonFromCDN(`${cdnUrl}/brand/${_brandName}/theme.json`, fallbackTheme);
13707
- const [iconIndex, iconIndexLoading] = useJsonFromCDN(`${cdnUrl}/brand/iconIndex.json`, null);
13708
- const deserializedTheme = useMemo(() => new Theme(theme), [theme]);
13709
- // Function get icon from cdn depending on the brand
13710
- const resolveIcon = useCallback(iconName => __awaiter(void 0, void 0, void 0, function* () {
13711
- if (!iconIndexLoading && iconIndex && iconName) {
13712
- const iconBrand = (iconIndex[iconName.toLowerCase()] || []).includes(_brandName) ? _brandName : BrandName.PACKLINK_CONS;
13713
- const response = yield fetch(`${cdnUrl}/brand/${iconBrand}/icons/${iconName.toLowerCase()}.svg`);
13714
- return yield response.text();
13715
- }
13716
- return "";
13717
- }), [iconIndex, _brandName, iconIndexLoading]);
13718
- const root = document.getElementById(rootId);
13719
- const themeRoot = document.getElementById(`${rootId}-theme`);
13720
- return jsx(ThemeProvider, Object.assign({
13721
- theme: deserializedTheme
13722
- }, {
13723
- children: jsxs(GigerConfigProvider, Object.assign({
13724
- resolveIcon: resolveIcon
13725
- }, {
13726
- children: [root && jsx(EmotionReset, {
13727
- reference: root
13728
- }), themeRoot && jsx(FontsLoader, {
13729
- cdnUrl: cdnUrl,
13730
- reference: themeRoot,
13731
- theme: deserializedTheme
13732
- }), jsx("div", Object.assign({
13733
- css: {
13734
- height: "100%",
13735
- width: "100%"
13736
- },
13737
- id: `${rootId}-theme`
13738
- }, {
13739
- children: !themeLoading && children
13740
- }))]
13741
- }))
13742
- }));
13743
- };
13744
-
13745
- /**
13746
- * Scopes emotion CSS cache to the specific Element instead of the page body
13747
- *
13748
- * @see {@link registerElement}
13749
- */
13750
- const memoizedCreateCacheWithScope = memoize(scope => {
13751
- const scopeSelectors = element => {
13752
- if ((element === null || element === void 0 ? void 0 : element.type) === "rule" && (element === null || element === void 0 ? void 0 : element.value.startsWith(".css"))) {
13753
- element.props = [element.props].flat().map(value => {
13754
- if (value.includes(scope)) return value;
13755
- return `${scope} ${value}`;
13756
- });
13757
- }
13758
- };
13759
- return createCache({
13760
- key: "css",
13761
- stylisPlugins: [scopeSelectors, prefixer]
13762
- });
13763
- });
13764
- /**
13765
- * Fallback component for the Elements ErrorBoundary
13766
- *
13767
- * @see {@link registerElement}
13768
- */
13769
- const ErrorFallback = ({
13770
- error
13771
- }) => {
13772
- const {
13773
- t
13774
- } = useTranslation("common");
13775
- return jsxs("div", Object.assign({
13776
- css: {
13777
- alignItems: "center",
13778
- display: "flex",
13779
- flexDirection: "column",
13780
- height: "100%",
13781
- justifyContent: "center",
13782
- textAlign: "center",
13783
- width: "100%"
13784
- }
13785
- }, {
13786
- children: [jsx("div", Object.assign({
13787
- css: theme => ({
13788
- color: theme.palette.error.main,
13789
- marginBottom: theme.spacing(2)
13790
- })
13791
- }, {
13792
- children: jsx(Icon, {
13793
- name: IconNames.CANCEL,
13794
- size: IconSize.SIZE_LARGE
13795
- })
13796
- })), t([typeof error === "string" ? error : error.message, "errorMessages.unknown"])]
13797
- }));
13798
- };
13799
- /**
13800
- * Registers element with all necessary providers and wrappers
13801
- */
13802
- const registerElement = (name, Element, rootId = `lmnt-${name}`) => {
13803
- const fallback = ({
13804
- error
13805
- }) => jsx(ErrorFallback, {
13806
- error: error
13807
- });
13808
- const i18next = i18n.createInstance({
13809
- defaultNS: "common",
13810
- fallbackLng: "en",
13811
- fallbackNS: "common",
13812
- load: "languageOnly",
13813
- ns: ["common", name],
13814
- overloadTranslationOptionHandler: args => ({
13815
- defaultValue: args[1]
13816
- }),
13817
- react: {
13818
- useSuspense: false
13819
- },
13820
- resources,
13821
- supportedLngs: Object.keys(resources)
13822
- }, (err, t) => {
13823
- if (err) return console.log(err);
13824
- }).use(languageDetector).use(initReactI18next);
13825
- return props => {
13826
- const {
13827
- onError,
13828
- brandName
13829
- } = useElements();
13830
- return jsx("div", Object.assign({
13831
- css: {
13832
- height: "100%",
13833
- width: "100%"
13834
- },
13835
- id: rootId
13836
- }, {
13837
- children: jsx(I18nextProvider, Object.assign({
13838
- i18n: i18next
13839
- }, {
13840
- children: jsx(CacheProvider, Object.assign({
13841
- value: memoizedCreateCacheWithScope(".giger-emotion-reset")
13842
- }, {
13843
- children: jsx(GigerProvider, Object.assign({
13844
- brandName: brandName,
13845
- rootId: rootId
13846
- }, {
13847
- children: jsx(ErrorBoundary, Object.assign({
13848
- element: name,
13849
- fallback: fallback,
13850
- onError: onError
13851
- }, {
13852
- children: jsx(Element, Object.assign({}, props))
13853
- }))
13854
- }))
13855
- }))
13856
- }))
13857
- }));
13858
- };
13859
- };
13515
+ var en = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, common$1), listCarriers$1), manageDefaults), manageFunding), manageWarehouses$1), manageDefaults), onboarding$2), purchaseLabel$1), registerCarrier), registerWallet), viewShipment$1), voidLabel$1), walletHistory);
13860
13516
 
13861
13517
  const useListConnectedCarriers = () => {
13862
13518
  const {
@@ -13878,7 +13534,7 @@ const useListConnectedCarriers = () => {
13878
13534
  };
13879
13535
  };
13880
13536
 
13881
- const ListCarriers = () => {
13537
+ const Component$5 = () => {
13882
13538
  const {
13883
13539
  data: carriersConnectedStatus,
13884
13540
  error,
@@ -13898,7 +13554,7 @@ const ListCarriers = () => {
13898
13554
  yield refetchCarriers();
13899
13555
  });
13900
13556
  // TODO: How to pass two sets of errors and isLoading, possible example is to join errors like in RateForm and ShipmentForm.
13901
- return jsx(ListCarriers$1, {
13557
+ return jsx(ListCarriers, {
13902
13558
  carriers: carriersConnectedStatus,
13903
13559
  errors: error,
13904
13560
  isLoading: isLoading,
@@ -13906,10 +13562,23 @@ const ListCarriers = () => {
13906
13562
  registerCarrierErrors: registerCarrierErrors
13907
13563
  });
13908
13564
  };
13565
+ const Element$5 = alchemy.createElement(Component$5, ErrorFallback, {
13566
+ css: {
13567
+ height: "100%",
13568
+ width: "100%"
13569
+ },
13570
+ resources: {
13571
+ en
13572
+ }
13573
+ });
13909
13574
 
13910
- const Element$5 = registerElement("list-carriers", ListCarriers);
13575
+ var listCarriers = /*#__PURE__*/Object.freeze({
13576
+ __proto__: null,
13577
+ Component: Component$5,
13578
+ Element: Element$5
13579
+ });
13911
13580
 
13912
- const ManageWarehouses = ({
13581
+ const Component$4 = ({
13913
13582
  onWarehouseAddressValidation
13914
13583
  }) => {
13915
13584
  const {
@@ -13945,6 +13614,7 @@ const ManageWarehouses = ({
13945
13614
  });
13946
13615
  const handleSubmitEditWarehouse = (payload, warehouseId) => __awaiter(void 0, void 0, void 0, function* () {
13947
13616
  yield updateWarehouse({
13617
+ isDefault: payload.isDefault,
13948
13618
  name: payload.name,
13949
13619
  originAddress: payload.originAddress,
13950
13620
  returnAddress: payload.returnAddress,
@@ -13966,18 +13636,108 @@ const ManageWarehouses = ({
13966
13636
  if (listWarehouseErrors) throw new Error(listWarehouseErrors.map(e => e.message).join(", "));
13967
13637
  throw new Error("errorMessages.unableToLoad.warehouses");
13968
13638
  }
13639
+ const sortedWarehouses = warehouses.sort((a, b) => {
13640
+ if (b.isDefault && !a.isDefault) return 1;
13641
+ if (a.isDefault && !b.isDefault) return -1;
13642
+ return sortByCreationDate(a, b, "desc");
13643
+ });
13969
13644
  const errors = [...(updateWarehouseErrors !== null && updateWarehouseErrors !== void 0 ? updateWarehouseErrors : []), ...(createWarehouseErrors !== null && createWarehouseErrors !== void 0 ? createWarehouseErrors : []), ...(deleteWarehouseErrors !== null && deleteWarehouseErrors !== void 0 ? deleteWarehouseErrors : [])];
13970
- return jsx(ManageWarehouses$1, {
13645
+ return jsx(ManageWarehouses, {
13971
13646
  errors: errors,
13972
13647
  onAdd: handleSubmitAddNewWarehouse,
13973
13648
  onDelete: handleDeleteWarehouse,
13974
13649
  onEdit: handleSubmitEditWarehouse,
13975
13650
  onSetDefault: handleSetDefault,
13651
+ warehouses: sortedWarehouses
13652
+ });
13653
+ };
13654
+ const Element$4 = alchemy.createElement(Component$4, ErrorFallback, {
13655
+ css: {
13656
+ height: "100%",
13657
+ width: "100%"
13658
+ },
13659
+ resources: {
13660
+ en
13661
+ }
13662
+ });
13663
+
13664
+ var manageWarehouses = /*#__PURE__*/Object.freeze({
13665
+ __proto__: null,
13666
+ Component: Component$4,
13667
+ Element: Element$4
13668
+ });
13669
+
13670
+ const Component$3 = ({
13671
+ onCompleteOnboarding
13672
+ }) => {
13673
+ const {
13674
+ t
13675
+ } = useTranslation();
13676
+ const {
13677
+ data: warehouses,
13678
+ refetch: refetchWarehouses
13679
+ } = useListWarehouses();
13680
+ const {
13681
+ mutateAsync: createWarehouse
13682
+ } = useCreateWarehouse();
13683
+ const {
13684
+ data: carriers,
13685
+ refetch: refetchCarriers
13686
+ } = useListCarriers();
13687
+ const {
13688
+ error: registerStampsCarrierErrors,
13689
+ mutateAsync: registerStampsCarrier
13690
+ } = useConnectCarrier();
13691
+ const {
13692
+ error: registerUpsCarrierErrors,
13693
+ mutateAsync: registerUpsCarrier
13694
+ } = useConnectCarrier();
13695
+ const {
13696
+ error: registerDhlCarrierErrors,
13697
+ mutateAsync: registerDhlCarrier
13698
+ } = useConnectCarrier();
13699
+ const onWarehouseCreated = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
13700
+ yield refetchWarehouses();
13701
+ }), [refetchWarehouses]);
13702
+ const onCarrierCreated = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
13703
+ yield refetchCarriers();
13704
+ }), [refetchCarriers]);
13705
+ if (!carriers) return jsx(Loader, {
13706
+ message: t("errorMessages.unableToLoad.carriers")
13707
+ });
13708
+ if (!warehouses) return jsx(Loader, {
13709
+ message: t("errorMessages.unableToLoad.warehouses")
13710
+ });
13711
+ return jsx(Onboarding, {
13712
+ carriers: carriers,
13713
+ createWarehouse: createWarehouse,
13714
+ onCarrierCreated: onCarrierCreated,
13715
+ onCompleteOnboarding: onCompleteOnboarding,
13716
+ onWarehouseCreated: onWarehouseCreated,
13717
+ registerDhlCarrier: registerDhlCarrier,
13718
+ registerDhlCarrierErrors: registerDhlCarrierErrors,
13719
+ registerStampsCarrier: registerStampsCarrier,
13720
+ registerStampsCarrierErrors: registerStampsCarrierErrors,
13721
+ registerUpsCarrier: registerUpsCarrier,
13722
+ registerUpsCarrierErrors: registerUpsCarrierErrors,
13976
13723
  warehouses: warehouses
13977
13724
  });
13978
13725
  };
13726
+ const Element$3 = alchemy.createElement(Component$3, ErrorFallback, {
13727
+ css: {
13728
+ height: "100%",
13729
+ width: "100%"
13730
+ },
13731
+ resources: {
13732
+ en
13733
+ }
13734
+ });
13979
13735
 
13980
- const Element$4 = registerElement("manage-warehouses", ManageWarehouses);
13736
+ var onboarding = /*#__PURE__*/Object.freeze({
13737
+ __proto__: null,
13738
+ Component: Component$3,
13739
+ Element: Element$3
13740
+ });
13981
13741
 
13982
13742
  const useAddress = ({
13983
13743
  compatibleCountryCodes,
@@ -14624,63 +14384,6 @@ const ConfigureShipment = _a => {
14624
14384
  });
14625
14385
  };
14626
14386
 
14627
- const Onboarding = ({
14628
- onCompleteOnboarding
14629
- }) => {
14630
- const {
14631
- t
14632
- } = useTranslation();
14633
- const {
14634
- data: warehouses,
14635
- refetch: refetchWarehouses
14636
- } = useListWarehouses();
14637
- const {
14638
- mutateAsync: createWarehouse
14639
- } = useCreateWarehouse();
14640
- const {
14641
- data: carriers,
14642
- refetch: refetchCarriers
14643
- } = useListCarriers();
14644
- const {
14645
- error: registerStampsCarrierErrors,
14646
- mutateAsync: registerStampsCarrier
14647
- } = useConnectCarrier();
14648
- const {
14649
- error: registerUpsCarrierErrors,
14650
- mutateAsync: registerUpsCarrier
14651
- } = useConnectCarrier();
14652
- const {
14653
- error: registerDhlCarrierErrors,
14654
- mutateAsync: registerDhlCarrier
14655
- } = useConnectCarrier();
14656
- const onWarehouseCreated = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
14657
- yield refetchWarehouses();
14658
- }), [refetchWarehouses]);
14659
- const onCarrierCreated = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
14660
- yield refetchCarriers();
14661
- }), [refetchCarriers]);
14662
- if (!carriers) return jsx(Loader, {
14663
- message: t("errorMessages.unableToLoad.carriers")
14664
- });
14665
- if (!warehouses) return jsx(Loader, {
14666
- message: t("errorMessages.unableToLoad.warehouses")
14667
- });
14668
- return jsx(Onboarding$1, {
14669
- carriers: carriers,
14670
- createWarehouse: createWarehouse,
14671
- onCarrierCreated: onCarrierCreated,
14672
- onCompleteOnboarding: onCompleteOnboarding,
14673
- onWarehouseCreated: onWarehouseCreated,
14674
- registerDhlCarrier: registerDhlCarrier,
14675
- registerDhlCarrierErrors: registerDhlCarrierErrors,
14676
- registerStampsCarrier: registerStampsCarrier,
14677
- registerStampsCarrierErrors: registerStampsCarrierErrors,
14678
- registerUpsCarrier: registerUpsCarrier,
14679
- registerUpsCarrierErrors: registerUpsCarrierErrors,
14680
- warehouses: warehouses
14681
- });
14682
- };
14683
-
14684
14387
  const usePendingShipment = ({
14685
14388
  onLoad,
14686
14389
  salesOrder,
@@ -14935,7 +14638,7 @@ const PurchaseLabelByShipment = _a => {
14935
14638
  }));
14936
14639
  };
14937
14640
 
14938
- const PurchaseLabel = _a => {
14641
+ const Component$2 = _a => {
14939
14642
  var {
14940
14643
  shipmentId
14941
14644
  } = _a,
@@ -14948,8 +14651,23 @@ const PurchaseLabel = _a => {
14948
14651
  return jsx(PurchaseLabelBySalesOrder, Object.assign({}, props));
14949
14652
  }
14950
14653
  };
14654
+ const Element$2 = alchemy.createElement(Component$2, ErrorFallback, {
14655
+ css: {
14656
+ height: "100%",
14657
+ width: "100%"
14658
+ },
14659
+ resources: {
14660
+ en
14661
+ }
14662
+ });
14951
14663
 
14952
- const Shipment = ({
14664
+ var purchaseLabel = /*#__PURE__*/Object.freeze({
14665
+ __proto__: null,
14666
+ Component: Component$2,
14667
+ Element: Element$2
14668
+ });
14669
+
14670
+ const Component$1 = ({
14953
14671
  features,
14954
14672
  onClickPrintLabel,
14955
14673
  onClickPurchaseLabel,
@@ -14976,7 +14694,7 @@ const Shipment = ({
14976
14694
  var _a;
14977
14695
  return w.warehouseId === ((_a = shipment.data) === null || _a === void 0 ? void 0 : _a.warehouseId);
14978
14696
  });
14979
- return jsx(Shipment$1, {
14697
+ return jsx(Shipment, {
14980
14698
  carriers: carriers.data,
14981
14699
  features: features === null || features === void 0 ? void 0 : features.shipment,
14982
14700
  labels: labels.data,
@@ -14988,8 +14706,23 @@ const Shipment = ({
14988
14706
  warehouse: warehouse
14989
14707
  });
14990
14708
  };
14709
+ const Element$1 = alchemy.createElement(Component$1, ErrorFallback, {
14710
+ css: {
14711
+ height: "100%",
14712
+ width: "100%"
14713
+ },
14714
+ resources: {
14715
+ en
14716
+ }
14717
+ });
14991
14718
 
14992
- const VoidLabel = ({
14719
+ var viewShipment = /*#__PURE__*/Object.freeze({
14720
+ __proto__: null,
14721
+ Component: Component$1,
14722
+ Element: Element$1
14723
+ });
14724
+
14725
+ const Component = ({
14993
14726
  labelId,
14994
14727
  onComplete,
14995
14728
  onSuccess,
@@ -15008,7 +14741,7 @@ const VoidLabel = ({
15008
14741
  onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(label.data, shipment.data);
15009
14742
  }
15010
14743
  });
15011
- return jsx(VoidLabel$1, {
14744
+ return jsx(VoidLabel, {
15012
14745
  onComplete: onComplete,
15013
14746
  onSubmit: handleVoidLabelSubmit,
15014
14747
  onViewShipment: onViewShipment,
@@ -15016,13 +14749,20 @@ const VoidLabel = ({
15016
14749
  voidRequest: voidLabel.data
15017
14750
  });
15018
14751
  };
14752
+ const Element = alchemy.createElement(Component, ErrorFallback, {
14753
+ css: {
14754
+ height: "100%",
14755
+ width: "100%"
14756
+ },
14757
+ resources: {
14758
+ en
14759
+ }
14760
+ });
15019
14761
 
15020
- const Element$3 = registerElement("purchase-label", PurchaseLabel);
15021
-
15022
- const Element$2 = registerElement("onboarding", Onboarding);
15023
-
15024
- const Element$1 = registerElement("view-shipment", Shipment);
15025
-
15026
- const Element = registerElement("void-label", VoidLabel);
14762
+ var voidLabel = /*#__PURE__*/Object.freeze({
14763
+ __proto__: null,
14764
+ Component: Component,
14765
+ Element: Element
14766
+ });
15027
14767
 
15028
- export { AddFundsForm, AutoFundingForm, ButtonGroup, CarrierBalance, Country, Cube, DateRangeCombo, DateRangeSelect, ElementsContext, ElementsProvider, ErrorBoundary, ErrorFallback, fields as Field, FieldLabel, FormPortal, FundAndPurchase, GigerProvider, InlineLabel, ItemsBreakdown, LinkAction, Element$5 as ListCarriers, Loader, ManageFunding, Element$4 as ManageWarehouses, Element$2 as Onboarding, PageLayoutProvider, Portal, Element$3 as PurchaseLabel, RootPortalProvider, Section, Spacer, Spread, StoryNotes, index$1 as Templates, UsState, UsaCity, Element$1 as ViewShipment, Element as VoidLabel, autoFundingSchema, calculateTotal, capitalizeFirstLetter, convertDimensions, convertWeight, countries, countryCodes, createCodedErrors, createDictionary, createStyles, currencySymbol, daysAfter, errorMap, euCountryCodes, extendZod, formLogger, formatCreditCardNumber, formatDate, formatExpiration, formatFractionalWeight, formatMoney, getAddFundsSchema, getCustomsFromSalesOrder, getExpirationYears, getIsCustomsRequiredForSalesOrder, getIsCustomsRequiredForShipment, getIsInternationalShipment, getPendingShipment, getRateRequiresAcknowledgement, getRelativeDates, getRequestedServices, getSalesOrderItemsFromSalesOrderOrShipment, getTotalRateAmount, isDomesticAddress, isFlatRatePackageCode, isMilitaryAddress, isNowOrInTheFuture, isPoBox, isPoBoxAddress, isString, isUnitedStatesTerritory, isUspsCarrier, moneySchema, mostRecent, nextDayCutoff, omitTime, overrideCarrierCodes$1 as overrideCarrierCodes, phoneSchema, phoneSchemaUnvalidated, postalCodeRegex$3 as postalCodeRegex, registerElement, sortByCreationDate, usCities, usStateCodes, usStates, useAddressValidation, useCarrierMetadata, useConfirmationOptions, useCountryCodeOptions, useCustomsContentsOptions, useCustomsNonDeliveryOptions, useDateRangeOptions, useElements, useExpirationMonthOptions, useInsuranceProviderOptions, useNestedForm, usePackageOptions, usePageLayout, useRateOptions, useRootPortal, useRunOnceOnTrue, useServiceCodeOptions, useShippingPresetsOptions, useStateCodeOptions, useToggle, useWarehouseOptions, validationResolver };
14768
+ export { AddFundsForm, AutoFundingForm, ButtonGroup, CarrierBalance, Country, Cube, DateRangeCombo, DateRangeSelect, ErrorFallback, fields as Field, FieldLabel, FormPortal, FundAndPurchase, InlineLabel, ItemsBreakdown, LinkAction, listCarriers as ListCarriers, Loader, ManageFunding, manageWarehouses as ManageWarehouses, onboarding as Onboarding, PageLayoutProvider, Portal, purchaseLabel as PurchaseLabel, RootPortalProvider, Section, Spacer, Spread, StoryNotes, index as Templates, UsState, UsaCity, viewShipment as ViewShipment, voidLabel as VoidLabel, autoFundingSchema, calculateTotal, capitalizeFirstLetter, convertDimensions, convertWeight, countries, countryCodes, createCodedErrors, createDictionary, createStyles, currencySymbol, daysAfter, errorMap, euCountryCodes, extendZod, formLogger, formatCreditCardNumber, formatDate, formatExpiration, formatFractionalWeight, formatMoney, getAddFundsSchema, getCustomsFromSalesOrder, getExpirationYears, getIsCustomsRequiredForSalesOrder, getIsCustomsRequiredForShipment, getIsInternationalShipment, getPendingShipment, getRateRequiresAcknowledgement, getRelativeDates, getRequestedServices, getSalesOrderItemsFromSalesOrderOrShipment, getTotalRateAmount, isDomesticAddress, isFlatRatePackageCode, isMilitaryAddress, isNowOrInTheFuture, isPoBox, isPoBoxAddress, isString, isUnitedStatesTerritory, isUspsCarrier, moneySchema, mostRecent, nextDayCutoff, omitTime, overrideCarrierCodes$1 as overrideCarrierCodes, phoneSchema, phoneSchemaUnvalidated, postalCodeRegex$3 as postalCodeRegex, sortByCreationDate, usCities, usStateCodes, usStates, useAddressValidation, useCarrierMetadata, useConfirmationOptions, useCountryCodeOptions, useCustomsContentsOptions, useCustomsNonDeliveryOptions, useDateRangeOptions, useExpirationMonthOptions, useInsuranceProviderOptions, useNestedForm, usePackageOptions, usePageLayout, useRateOptions, useRootPortal, useRunOnceOnTrue, useServiceCodeOptions, useShippingPresetsOptions, useStateCodeOptions, useToggle, useWarehouseOptions, validationResolver };