@shipengine/alchemy 6.0.82 → 6.0.84-next.0

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 (3) hide show
  1. package/index.js +808 -958
  2. package/index.mjs +808 -959
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -3435,20 +3435,12 @@ var _baseConvert = baseConvert$1;
3435
3435
  * // => true
3436
3436
  */
3437
3437
 
3438
- var identity_1;
3439
- var hasRequiredIdentity;
3440
-
3441
- function requireIdentity () {
3442
- if (hasRequiredIdentity) return identity_1;
3443
- hasRequiredIdentity = 1;
3444
- function identity(value) {
3445
- return value;
3446
- }
3447
-
3448
- identity_1 = identity;
3449
- return identity_1;
3438
+ function identity$3(value) {
3439
+ return value;
3450
3440
  }
3451
3441
 
3442
+ var identity_1 = identity$3;
3443
+
3452
3444
  /** Detect free variable `global` from Node.js. */
3453
3445
 
3454
3446
  var freeGlobal$1 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
@@ -3461,14 +3453,14 @@ var freeGlobal = _freeGlobal;
3461
3453
  var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
3462
3454
 
3463
3455
  /** Used as a reference to the global object. */
3464
- var root$b = freeGlobal || freeSelf || Function('return this')();
3456
+ var root$c = freeGlobal || freeSelf || Function('return this')();
3465
3457
 
3466
- var _root = root$b;
3458
+ var _root = root$c;
3467
3459
 
3468
- var root$a = _root;
3460
+ var root$b = _root;
3469
3461
 
3470
3462
  /** Built-in value references. */
3471
- var Symbol$7 = root$a.Symbol;
3463
+ var Symbol$7 = root$b.Symbol;
3472
3464
 
3473
3465
  var _Symbol = Symbol$7;
3474
3466
 
@@ -3561,7 +3553,7 @@ var symToStringTag = Symbol$5 ? Symbol$5.toStringTag : undefined;
3561
3553
  * @param {*} value The value to query.
3562
3554
  * @returns {string} Returns the `toStringTag`.
3563
3555
  */
3564
- function baseGetTag$5(value) {
3556
+ function baseGetTag$6(value) {
3565
3557
  if (value == null) {
3566
3558
  return value === undefined ? undefinedTag : nullTag;
3567
3559
  }
@@ -3570,7 +3562,7 @@ function baseGetTag$5(value) {
3570
3562
  : objectToString$1(value);
3571
3563
  }
3572
3564
 
3573
- var _baseGetTag = baseGetTag$5;
3565
+ var _baseGetTag = baseGetTag$6;
3574
3566
 
3575
3567
  /**
3576
3568
  * Checks if `value` is the
@@ -3598,27 +3590,19 @@ var _baseGetTag = baseGetTag$5;
3598
3590
  * // => false
3599
3591
  */
3600
3592
 
3601
- var isObject_1;
3602
- var hasRequiredIsObject;
3603
-
3604
- function requireIsObject () {
3605
- if (hasRequiredIsObject) return isObject_1;
3606
- hasRequiredIsObject = 1;
3607
- function isObject(value) {
3608
- var type = typeof value;
3609
- return value != null && (type == 'object' || type == 'function');
3610
- }
3611
-
3612
- isObject_1 = isObject;
3613
- return isObject_1;
3593
+ function isObject$8(value) {
3594
+ var type = typeof value;
3595
+ return value != null && (type == 'object' || type == 'function');
3614
3596
  }
3615
3597
 
3616
- var baseGetTag$4 = _baseGetTag,
3617
- isObject$6 = requireIsObject();
3598
+ var isObject_1 = isObject$8;
3599
+
3600
+ var baseGetTag$5 = _baseGetTag,
3601
+ isObject$7 = isObject_1;
3618
3602
 
3619
3603
  /** `Object#toString` result references. */
3620
3604
  var asyncTag = '[object AsyncFunction]',
3621
- funcTag$1 = '[object Function]',
3605
+ funcTag$2 = '[object Function]',
3622
3606
  genTag$1 = '[object GeneratorFunction]',
3623
3607
  proxyTag = '[object Proxy]';
3624
3608
 
@@ -3639,22 +3623,22 @@ var asyncTag = '[object AsyncFunction]',
3639
3623
  * _.isFunction(/abc/);
3640
3624
  * // => false
3641
3625
  */
3642
- function isFunction$2(value) {
3643
- if (!isObject$6(value)) {
3626
+ function isFunction$3(value) {
3627
+ if (!isObject$7(value)) {
3644
3628
  return false;
3645
3629
  }
3646
3630
  // The use of `Object#toString` avoids issues with the `typeof` operator
3647
3631
  // in Safari 9 which returns 'object' for typed arrays and other constructors.
3648
- var tag = baseGetTag$4(value);
3649
- return tag == funcTag$1 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
3632
+ var tag = baseGetTag$5(value);
3633
+ return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
3650
3634
  }
3651
3635
 
3652
- var isFunction_1 = isFunction$2;
3636
+ var isFunction_1 = isFunction$3;
3653
3637
 
3654
- var root$9 = _root;
3638
+ var root$a = _root;
3655
3639
 
3656
3640
  /** Used to detect overreaching core-js shims. */
3657
- var coreJsData$1 = root$9['__core-js_shared__'];
3641
+ var coreJsData$1 = root$a['__core-js_shared__'];
3658
3642
 
3659
3643
  var _coreJsData = coreJsData$1;
3660
3644
 
@@ -3707,9 +3691,9 @@ function toSource$2(func) {
3707
3691
 
3708
3692
  var _toSource = toSource$2;
3709
3693
 
3710
- var isFunction$1 = isFunction_1,
3694
+ var isFunction$2 = isFunction_1,
3711
3695
  isMasked = _isMasked,
3712
- isObject$5 = requireIsObject(),
3696
+ isObject$6 = isObject_1,
3713
3697
  toSource$1 = _toSource;
3714
3698
 
3715
3699
  /**
@@ -3746,10 +3730,10 @@ var reIsNative = RegExp('^' +
3746
3730
  * else `false`.
3747
3731
  */
3748
3732
  function baseIsNative$1(value) {
3749
- if (!isObject$5(value) || isMasked(value)) {
3733
+ if (!isObject$6(value) || isMasked(value)) {
3750
3734
  return false;
3751
3735
  }
3752
- var pattern = isFunction$1(value) ? reIsNative : reIsHostCtor;
3736
+ var pattern = isFunction$2(value) ? reIsNative : reIsHostCtor;
3753
3737
  return pattern.test(toSource$1(value));
3754
3738
  }
3755
3739
 
@@ -3781,18 +3765,18 @@ var baseIsNative = _baseIsNative,
3781
3765
  * @param {string} key The key of the method to get.
3782
3766
  * @returns {*} Returns the function if it's native, else `undefined`.
3783
3767
  */
3784
- function getNative$5(object, key) {
3768
+ function getNative$6(object, key) {
3785
3769
  var value = getValue(object, key);
3786
3770
  return baseIsNative(value) ? value : undefined;
3787
3771
  }
3788
3772
 
3789
- var _getNative = getNative$5;
3773
+ var _getNative = getNative$6;
3790
3774
 
3791
- var getNative$4 = _getNative,
3792
- root$8 = _root;
3775
+ var getNative$5 = _getNative,
3776
+ root$9 = _root;
3793
3777
 
3794
3778
  /* Built-in method references that are verified to be native. */
3795
- var WeakMap$3 = getNative$4(root$8, 'WeakMap');
3779
+ var WeakMap$3 = getNative$5(root$9, 'WeakMap');
3796
3780
 
3797
3781
  var _WeakMap = WeakMap$3;
3798
3782
 
@@ -3803,7 +3787,7 @@ var metaMap$2 = WeakMap$2 && new WeakMap$2;
3803
3787
 
3804
3788
  var _metaMap = metaMap$2;
3805
3789
 
3806
- var identity$1 = requireIdentity(),
3790
+ var identity$2 = identity_1,
3807
3791
  metaMap$1 = _metaMap;
3808
3792
 
3809
3793
  /**
@@ -3814,54 +3798,46 @@ var identity$1 = requireIdentity(),
3814
3798
  * @param {*} data The metadata.
3815
3799
  * @returns {Function} Returns `func`.
3816
3800
  */
3817
- var baseSetData$2 = !metaMap$1 ? identity$1 : function(func, data) {
3801
+ var baseSetData$2 = !metaMap$1 ? identity$2 : function(func, data) {
3818
3802
  metaMap$1.set(func, data);
3819
3803
  return func;
3820
3804
  };
3821
3805
 
3822
3806
  var _baseSetData = baseSetData$2;
3823
3807
 
3824
- var _baseCreate;
3825
- var hasRequired_baseCreate;
3808
+ var isObject$5 = isObject_1;
3826
3809
 
3827
- function require_baseCreate () {
3828
- if (hasRequired_baseCreate) return _baseCreate;
3829
- hasRequired_baseCreate = 1;
3830
- var isObject = requireIsObject();
3831
-
3832
- /** Built-in value references. */
3833
- var objectCreate = Object.create;
3810
+ /** Built-in value references. */
3811
+ var objectCreate = Object.create;
3834
3812
 
3835
- /**
3836
- * The base implementation of `_.create` without support for assigning
3837
- * properties to the created object.
3838
- *
3839
- * @private
3840
- * @param {Object} proto The object to inherit from.
3841
- * @returns {Object} Returns the new object.
3842
- */
3843
- var baseCreate = (function() {
3844
- function object() {}
3845
- return function(proto) {
3846
- if (!isObject(proto)) {
3847
- return {};
3848
- }
3849
- if (objectCreate) {
3850
- return objectCreate(proto);
3851
- }
3852
- object.prototype = proto;
3853
- var result = new object;
3854
- object.prototype = undefined;
3855
- return result;
3856
- };
3857
- }());
3813
+ /**
3814
+ * The base implementation of `_.create` without support for assigning
3815
+ * properties to the created object.
3816
+ *
3817
+ * @private
3818
+ * @param {Object} proto The object to inherit from.
3819
+ * @returns {Object} Returns the new object.
3820
+ */
3821
+ var baseCreate$4 = (function() {
3822
+ function object() {}
3823
+ return function(proto) {
3824
+ if (!isObject$5(proto)) {
3825
+ return {};
3826
+ }
3827
+ if (objectCreate) {
3828
+ return objectCreate(proto);
3829
+ }
3830
+ object.prototype = proto;
3831
+ var result = new object;
3832
+ object.prototype = undefined;
3833
+ return result;
3834
+ };
3835
+ }());
3858
3836
 
3859
- _baseCreate = baseCreate;
3860
- return _baseCreate;
3861
- }
3837
+ var _baseCreate = baseCreate$4;
3862
3838
 
3863
- var baseCreate$2 = require_baseCreate(),
3864
- isObject$4 = requireIsObject();
3839
+ var baseCreate$3 = _baseCreate,
3840
+ isObject$4 = isObject_1;
3865
3841
 
3866
3842
  /**
3867
3843
  * Creates a function that produces an instance of `Ctor` regardless of
@@ -3887,7 +3863,7 @@ function createCtor$4(Ctor) {
3887
3863
  case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);
3888
3864
  case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
3889
3865
  }
3890
- var thisBinding = baseCreate$2(Ctor.prototype),
3866
+ var thisBinding = baseCreate$3(Ctor.prototype),
3891
3867
  result = Ctor.apply(thisBinding, args);
3892
3868
 
3893
3869
  // Mimic the constructor's `return` behavior.
@@ -3899,7 +3875,7 @@ function createCtor$4(Ctor) {
3899
3875
  var _createCtor = createCtor$4;
3900
3876
 
3901
3877
  var createCtor$3 = _createCtor,
3902
- root$7 = _root;
3878
+ root$8 = _root;
3903
3879
 
3904
3880
  /** Used to compose bitmasks for function metadata. */
3905
3881
  var WRAP_BIND_FLAG$6 = 1;
@@ -3919,7 +3895,7 @@ function createBind$1(func, bitmask, thisArg) {
3919
3895
  Ctor = createCtor$3(func);
3920
3896
 
3921
3897
  function wrapper() {
3922
- var fn = (this && this !== root$7 && this instanceof wrapper) ? Ctor : func;
3898
+ var fn = (this && this !== root$8 && this instanceof wrapper) ? Ctor : func;
3923
3899
  return fn.apply(isBind ? thisArg : this, arguments);
3924
3900
  }
3925
3901
  return wrapper;
@@ -3938,29 +3914,21 @@ var _createBind = createBind$1;
3938
3914
  * @returns {*} Returns the result of `func`.
3939
3915
  */
3940
3916
 
3941
- var _apply;
3942
- var hasRequired_apply;
3943
-
3944
- function require_apply () {
3945
- if (hasRequired_apply) return _apply;
3946
- hasRequired_apply = 1;
3947
- function apply(func, thisArg, args) {
3948
- switch (args.length) {
3949
- case 0: return func.call(thisArg);
3950
- case 1: return func.call(thisArg, args[0]);
3951
- case 2: return func.call(thisArg, args[0], args[1]);
3952
- case 3: return func.call(thisArg, args[0], args[1], args[2]);
3953
- }
3954
- return func.apply(thisArg, args);
3955
- }
3956
-
3957
- _apply = apply;
3958
- return _apply;
3917
+ function apply$3(func, thisArg, args) {
3918
+ switch (args.length) {
3919
+ case 0: return func.call(thisArg);
3920
+ case 1: return func.call(thisArg, args[0]);
3921
+ case 2: return func.call(thisArg, args[0], args[1]);
3922
+ case 3: return func.call(thisArg, args[0], args[1], args[2]);
3923
+ }
3924
+ return func.apply(thisArg, args);
3959
3925
  }
3960
3926
 
3927
+ var _apply = apply$3;
3928
+
3961
3929
  /* Built-in method references for those with the same name as other `lodash` methods. */
3962
3930
 
3963
- var nativeMax$2 = Math.max;
3931
+ var nativeMax$3 = Math.max;
3964
3932
 
3965
3933
  /**
3966
3934
  * Creates an array that is the composition of partially applied arguments,
@@ -3979,7 +3947,7 @@ function composeArgs$2(args, partials, holders, isCurried) {
3979
3947
  holdersLength = holders.length,
3980
3948
  leftIndex = -1,
3981
3949
  leftLength = partials.length,
3982
- rangeLength = nativeMax$2(argsLength - holdersLength, 0),
3950
+ rangeLength = nativeMax$3(argsLength - holdersLength, 0),
3983
3951
  result = Array(leftLength + rangeLength),
3984
3952
  isUncurried = !isCurried;
3985
3953
 
@@ -4001,7 +3969,7 @@ var _composeArgs = composeArgs$2;
4001
3969
 
4002
3970
  /* Built-in method references for those with the same name as other `lodash` methods. */
4003
3971
 
4004
- var nativeMax$1 = Math.max;
3972
+ var nativeMax$2 = Math.max;
4005
3973
 
4006
3974
  /**
4007
3975
  * This function is like `composeArgs` except that the arguments composition
@@ -4021,7 +3989,7 @@ function composeArgsRight$2(args, partials, holders, isCurried) {
4021
3989
  holdersLength = holders.length,
4022
3990
  rightIndex = -1,
4023
3991
  rightLength = partials.length,
4024
- rangeLength = nativeMax$1(argsLength - holdersLength, 0),
3992
+ rangeLength = nativeMax$2(argsLength - holdersLength, 0),
4025
3993
  result = Array(rangeLength + rightLength),
4026
3994
  isUncurried = !isCurried;
4027
3995
 
@@ -4077,7 +4045,7 @@ function baseLodash$3() {
4077
4045
 
4078
4046
  var _baseLodash = baseLodash$3;
4079
4047
 
4080
- var baseCreate$1 = require_baseCreate(),
4048
+ var baseCreate$2 = _baseCreate,
4081
4049
  baseLodash$2 = _baseLodash;
4082
4050
 
4083
4051
  /** Used as references for the maximum length and index of an array. */
@@ -4101,7 +4069,7 @@ function LazyWrapper$3(value) {
4101
4069
  }
4102
4070
 
4103
4071
  // Ensure `LazyWrapper` is an instance of `baseLodash`.
4104
- LazyWrapper$3.prototype = baseCreate$1(baseLodash$2.prototype);
4072
+ LazyWrapper$3.prototype = baseCreate$2(baseLodash$2.prototype);
4105
4073
  LazyWrapper$3.prototype.constructor = LazyWrapper$3;
4106
4074
 
4107
4075
  var _LazyWrapper = LazyWrapper$3;
@@ -4179,7 +4147,7 @@ function getFuncName$1(func) {
4179
4147
 
4180
4148
  var _getFuncName = getFuncName$1;
4181
4149
 
4182
- var baseCreate = require_baseCreate(),
4150
+ var baseCreate$1 = _baseCreate,
4183
4151
  baseLodash$1 = _baseLodash;
4184
4152
 
4185
4153
  /**
@@ -4197,7 +4165,7 @@ function LodashWrapper$2(value, chainAll) {
4197
4165
  this.__values__ = undefined;
4198
4166
  }
4199
4167
 
4200
- LodashWrapper$2.prototype = baseCreate(baseLodash$1.prototype);
4168
+ LodashWrapper$2.prototype = baseCreate$1(baseLodash$1.prototype);
4201
4169
  LodashWrapper$2.prototype.constructor = LodashWrapper$2;
4202
4170
 
4203
4171
  var _LodashWrapper = LodashWrapper$2;
@@ -4255,11 +4223,11 @@ var isArray_1 = isArray$h;
4255
4223
  * // => false
4256
4224
  */
4257
4225
 
4258
- function isObjectLike$8(value) {
4226
+ function isObjectLike$9(value) {
4259
4227
  return value != null && typeof value == 'object';
4260
4228
  }
4261
4229
 
4262
- var isObjectLike_1 = isObjectLike$8;
4230
+ var isObjectLike_1 = isObjectLike$9;
4263
4231
 
4264
4232
  /**
4265
4233
  * Copies the values of `source` to `array`.
@@ -4311,7 +4279,7 @@ var LazyWrapper$1 = _LazyWrapper,
4311
4279
  LodashWrapper = _LodashWrapper,
4312
4280
  baseLodash = _baseLodash,
4313
4281
  isArray$g = isArray_1,
4314
- isObjectLike$7 = isObjectLike_1,
4282
+ isObjectLike$8 = isObjectLike_1,
4315
4283
  wrapperClone = _wrapperClone;
4316
4284
 
4317
4285
  /** Used for built-in method references. */
@@ -4438,7 +4406,7 @@ var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
4438
4406
  * // => true
4439
4407
  */
4440
4408
  function lodash$2(value) {
4441
- if (isObjectLike$7(value) && !isArray$g(value) && !(value instanceof LazyWrapper$1)) {
4409
+ if (isObjectLike$8(value) && !isArray$g(value) && !(value instanceof LazyWrapper$1)) {
4442
4410
  if (value instanceof LodashWrapper) {
4443
4411
  return value;
4444
4412
  }
@@ -4486,53 +4454,45 @@ var _isLaziable = isLaziable$1;
4486
4454
 
4487
4455
  /** Used to detect hot functions by number of calls within a span of milliseconds. */
4488
4456
 
4489
- var _shortOut;
4490
- var hasRequired_shortOut;
4491
-
4492
- function require_shortOut () {
4493
- if (hasRequired_shortOut) return _shortOut;
4494
- hasRequired_shortOut = 1;
4495
- var HOT_COUNT = 800,
4496
- HOT_SPAN = 16;
4457
+ var HOT_COUNT = 800,
4458
+ HOT_SPAN = 16;
4497
4459
 
4498
- /* Built-in method references for those with the same name as other `lodash` methods. */
4499
- var nativeNow = Date.now;
4500
-
4501
- /**
4502
- * Creates a function that'll short out and invoke `identity` instead
4503
- * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
4504
- * milliseconds.
4505
- *
4506
- * @private
4507
- * @param {Function} func The function to restrict.
4508
- * @returns {Function} Returns the new shortable function.
4509
- */
4510
- function shortOut(func) {
4511
- var count = 0,
4512
- lastCalled = 0;
4460
+ /* Built-in method references for those with the same name as other `lodash` methods. */
4461
+ var nativeNow = Date.now;
4513
4462
 
4514
- return function() {
4515
- var stamp = nativeNow(),
4516
- remaining = HOT_SPAN - (stamp - lastCalled);
4463
+ /**
4464
+ * Creates a function that'll short out and invoke `identity` instead
4465
+ * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
4466
+ * milliseconds.
4467
+ *
4468
+ * @private
4469
+ * @param {Function} func The function to restrict.
4470
+ * @returns {Function} Returns the new shortable function.
4471
+ */
4472
+ function shortOut$2(func) {
4473
+ var count = 0,
4474
+ lastCalled = 0;
4517
4475
 
4518
- lastCalled = stamp;
4519
- if (remaining > 0) {
4520
- if (++count >= HOT_COUNT) {
4521
- return arguments[0];
4522
- }
4523
- } else {
4524
- count = 0;
4525
- }
4526
- return func.apply(undefined, arguments);
4527
- };
4528
- }
4476
+ return function() {
4477
+ var stamp = nativeNow(),
4478
+ remaining = HOT_SPAN - (stamp - lastCalled);
4529
4479
 
4530
- _shortOut = shortOut;
4531
- return _shortOut;
4480
+ lastCalled = stamp;
4481
+ if (remaining > 0) {
4482
+ if (++count >= HOT_COUNT) {
4483
+ return arguments[0];
4484
+ }
4485
+ } else {
4486
+ count = 0;
4487
+ }
4488
+ return func.apply(undefined, arguments);
4489
+ };
4532
4490
  }
4533
4491
 
4492
+ var _shortOut = shortOut$2;
4493
+
4534
4494
  var baseSetData$1 = _baseSetData,
4535
- shortOut = require_shortOut();
4495
+ shortOut$1 = _shortOut;
4536
4496
 
4537
4497
  /**
4538
4498
  * Sets metadata for `func`.
@@ -4548,7 +4508,7 @@ var baseSetData$1 = _baseSetData,
4548
4508
  * @param {*} data The metadata.
4549
4509
  * @returns {Function} Returns `func`.
4550
4510
  */
4551
- var setData$2 = shortOut(baseSetData$1);
4511
+ var setData$2 = shortOut$1(baseSetData$1);
4552
4512
 
4553
4513
  var _setData = setData$2;
4554
4514
 
@@ -4616,95 +4576,63 @@ var _insertWrapDetails = insertWrapDetails$1;
4616
4576
  * // => true
4617
4577
  */
4618
4578
 
4619
- var constant_1;
4620
- var hasRequiredConstant;
4621
-
4622
- function requireConstant () {
4623
- if (hasRequiredConstant) return constant_1;
4624
- hasRequiredConstant = 1;
4625
- function constant(value) {
4626
- return function() {
4627
- return value;
4628
- };
4629
- }
4630
-
4631
- constant_1 = constant;
4632
- return constant_1;
4579
+ function constant$1(value) {
4580
+ return function() {
4581
+ return value;
4582
+ };
4633
4583
  }
4634
4584
 
4635
- var _defineProperty;
4636
- var hasRequired_defineProperty;
4637
-
4638
- function require_defineProperty () {
4639
- if (hasRequired_defineProperty) return _defineProperty;
4640
- hasRequired_defineProperty = 1;
4641
- var getNative = _getNative;
4585
+ var constant_1 = constant$1;
4642
4586
 
4643
- var defineProperty = (function() {
4644
- try {
4645
- var func = getNative(Object, 'defineProperty');
4646
- func({}, '', {});
4647
- return func;
4648
- } catch (e) {}
4649
- }());
4587
+ var getNative$4 = _getNative;
4650
4588
 
4651
- _defineProperty = defineProperty;
4652
- return _defineProperty;
4653
- }
4589
+ var defineProperty$2 = (function() {
4590
+ try {
4591
+ var func = getNative$4(Object, 'defineProperty');
4592
+ func({}, '', {});
4593
+ return func;
4594
+ } catch (e) {}
4595
+ }());
4654
4596
 
4655
- var _baseSetToString;
4656
- var hasRequired_baseSetToString;
4597
+ var _defineProperty = defineProperty$2;
4657
4598
 
4658
- function require_baseSetToString () {
4659
- if (hasRequired_baseSetToString) return _baseSetToString;
4660
- hasRequired_baseSetToString = 1;
4661
- var constant = requireConstant(),
4662
- defineProperty = require_defineProperty(),
4663
- identity = requireIdentity();
4599
+ var constant = constant_1,
4600
+ defineProperty$1 = _defineProperty,
4601
+ identity$1 = identity_1;
4664
4602
 
4665
- /**
4666
- * The base implementation of `setToString` without support for hot loop shorting.
4667
- *
4668
- * @private
4669
- * @param {Function} func The function to modify.
4670
- * @param {Function} string The `toString` result.
4671
- * @returns {Function} Returns `func`.
4672
- */
4673
- var baseSetToString = !defineProperty ? identity : function(func, string) {
4674
- return defineProperty(func, 'toString', {
4675
- 'configurable': true,
4676
- 'enumerable': false,
4677
- 'value': constant(string),
4678
- 'writable': true
4679
- });
4680
- };
4681
-
4682
- _baseSetToString = baseSetToString;
4683
- return _baseSetToString;
4684
- }
4603
+ /**
4604
+ * The base implementation of `setToString` without support for hot loop shorting.
4605
+ *
4606
+ * @private
4607
+ * @param {Function} func The function to modify.
4608
+ * @param {Function} string The `toString` result.
4609
+ * @returns {Function} Returns `func`.
4610
+ */
4611
+ var baseSetToString$1 = !defineProperty$1 ? identity$1 : function(func, string) {
4612
+ return defineProperty$1(func, 'toString', {
4613
+ 'configurable': true,
4614
+ 'enumerable': false,
4615
+ 'value': constant(string),
4616
+ 'writable': true
4617
+ });
4618
+ };
4685
4619
 
4686
- var _setToString;
4687
- var hasRequired_setToString;
4620
+ var _baseSetToString = baseSetToString$1;
4688
4621
 
4689
- function require_setToString () {
4690
- if (hasRequired_setToString) return _setToString;
4691
- hasRequired_setToString = 1;
4692
- var baseSetToString = require_baseSetToString(),
4693
- shortOut = require_shortOut();
4622
+ var baseSetToString = _baseSetToString,
4623
+ shortOut = _shortOut;
4694
4624
 
4695
- /**
4696
- * Sets the `toString` method of `func` to return `string`.
4697
- *
4698
- * @private
4699
- * @param {Function} func The function to modify.
4700
- * @param {Function} string The `toString` result.
4701
- * @returns {Function} Returns `func`.
4702
- */
4703
- var setToString = shortOut(baseSetToString);
4625
+ /**
4626
+ * Sets the `toString` method of `func` to return `string`.
4627
+ *
4628
+ * @private
4629
+ * @param {Function} func The function to modify.
4630
+ * @param {Function} string The `toString` result.
4631
+ * @returns {Function} Returns `func`.
4632
+ */
4633
+ var setToString$2 = shortOut(baseSetToString);
4704
4634
 
4705
- _setToString = setToString;
4706
- return _setToString;
4707
- }
4635
+ var _setToString = setToString$2;
4708
4636
 
4709
4637
  /**
4710
4638
  * A specialized version of `_.forEach` for arrays without support for
@@ -4883,7 +4811,7 @@ var _updateWrapDetails = updateWrapDetails$1;
4883
4811
 
4884
4812
  var getWrapDetails = _getWrapDetails,
4885
4813
  insertWrapDetails = _insertWrapDetails,
4886
- setToString$1 = require_setToString(),
4814
+ setToString$1 = _setToString,
4887
4815
  updateWrapDetails = _updateWrapDetails;
4888
4816
 
4889
4817
  /**
@@ -4977,41 +4905,33 @@ var _getHolder = getHolder$2;
4977
4905
 
4978
4906
  /** Used as references for various `Number` constants. */
4979
4907
 
4980
- var _isIndex;
4981
- var hasRequired_isIndex;
4908
+ var MAX_SAFE_INTEGER$1 = 9007199254740991;
4982
4909
 
4983
- function require_isIndex () {
4984
- if (hasRequired_isIndex) return _isIndex;
4985
- hasRequired_isIndex = 1;
4986
- var MAX_SAFE_INTEGER = 9007199254740991;
4910
+ /** Used to detect unsigned integer values. */
4911
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
4987
4912
 
4988
- /** Used to detect unsigned integer values. */
4989
- var reIsUint = /^(?:0|[1-9]\d*)$/;
4990
-
4991
- /**
4992
- * Checks if `value` is a valid array-like index.
4993
- *
4994
- * @private
4995
- * @param {*} value The value to check.
4996
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
4997
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
4998
- */
4999
- function isIndex(value, length) {
5000
- var type = typeof value;
5001
- length = length == null ? MAX_SAFE_INTEGER : length;
5002
-
5003
- return !!length &&
5004
- (type == 'number' ||
5005
- (type != 'symbol' && reIsUint.test(value))) &&
5006
- (value > -1 && value % 1 == 0 && value < length);
5007
- }
4913
+ /**
4914
+ * Checks if `value` is a valid array-like index.
4915
+ *
4916
+ * @private
4917
+ * @param {*} value The value to check.
4918
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
4919
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
4920
+ */
4921
+ function isIndex$3(value, length) {
4922
+ var type = typeof value;
4923
+ length = length == null ? MAX_SAFE_INTEGER$1 : length;
5008
4924
 
5009
- _isIndex = isIndex;
5010
- return _isIndex;
4925
+ return !!length &&
4926
+ (type == 'number' ||
4927
+ (type != 'symbol' && reIsUint.test(value))) &&
4928
+ (value > -1 && value % 1 == 0 && value < length);
5011
4929
  }
5012
4930
 
4931
+ var _isIndex = isIndex$3;
4932
+
5013
4933
  var copyArray$2 = _copyArray,
5014
- isIndex$2 = require_isIndex();
4934
+ isIndex$2 = _isIndex;
5015
4935
 
5016
4936
  /* Built-in method references for those with the same name as other `lodash` methods. */
5017
4937
  var nativeMin$1 = Math.min;
@@ -5079,7 +4999,7 @@ var composeArgs$1 = _composeArgs,
5079
4999
  getHolder$1 = _getHolder,
5080
5000
  reorder = _reorder,
5081
5001
  replaceHolders$2 = _replaceHolders,
5082
- root$6 = _root;
5002
+ root$7 = _root;
5083
5003
 
5084
5004
  /** Used to compose bitmasks for function metadata. */
5085
5005
  var WRAP_BIND_FLAG$3 = 1,
@@ -5154,7 +5074,7 @@ function createHybrid$2(func, bitmask, thisArg, partials, holders, partialsRight
5154
5074
  if (isAry && ary < length) {
5155
5075
  args.length = ary;
5156
5076
  }
5157
- if (this && this !== root$6 && this instanceof wrapper) {
5077
+ if (this && this !== root$7 && this instanceof wrapper) {
5158
5078
  fn = Ctor || createCtor$2(fn);
5159
5079
  }
5160
5080
  return fn.apply(thisBinding, args);
@@ -5164,13 +5084,13 @@ function createHybrid$2(func, bitmask, thisArg, partials, holders, partialsRight
5164
5084
 
5165
5085
  var _createHybrid = createHybrid$2;
5166
5086
 
5167
- var apply$1 = require_apply(),
5087
+ var apply$2 = _apply,
5168
5088
  createCtor$1 = _createCtor,
5169
5089
  createHybrid$1 = _createHybrid,
5170
5090
  createRecurry = _createRecurry,
5171
5091
  getHolder = _getHolder,
5172
5092
  replaceHolders$1 = _replaceHolders,
5173
- root$5 = _root;
5093
+ root$6 = _root;
5174
5094
 
5175
5095
  /**
5176
5096
  * Creates a function that wraps `func` to enable currying.
@@ -5203,17 +5123,17 @@ function createCurry$1(func, bitmask, arity) {
5203
5123
  func, bitmask, createHybrid$1, wrapper.placeholder, undefined,
5204
5124
  args, holders, undefined, undefined, arity - length);
5205
5125
  }
5206
- var fn = (this && this !== root$5 && this instanceof wrapper) ? Ctor : func;
5207
- return apply$1(fn, this, args);
5126
+ var fn = (this && this !== root$6 && this instanceof wrapper) ? Ctor : func;
5127
+ return apply$2(fn, this, args);
5208
5128
  }
5209
5129
  return wrapper;
5210
5130
  }
5211
5131
 
5212
5132
  var _createCurry = createCurry$1;
5213
5133
 
5214
- var apply = require_apply(),
5134
+ var apply$1 = _apply,
5215
5135
  createCtor = _createCtor,
5216
- root$4 = _root;
5136
+ root$5 = _root;
5217
5137
 
5218
5138
  /** Used to compose bitmasks for function metadata. */
5219
5139
  var WRAP_BIND_FLAG$2 = 1;
@@ -5240,7 +5160,7 @@ function createPartial$1(func, bitmask, thisArg, partials) {
5240
5160
  leftIndex = -1,
5241
5161
  leftLength = partials.length,
5242
5162
  args = Array(leftLength + argsLength),
5243
- fn = (this && this !== root$4 && this instanceof wrapper) ? Ctor : func;
5163
+ fn = (this && this !== root$5 && this instanceof wrapper) ? Ctor : func;
5244
5164
 
5245
5165
  while (++leftIndex < leftLength) {
5246
5166
  args[leftIndex] = partials[leftIndex];
@@ -5248,7 +5168,7 @@ function createPartial$1(func, bitmask, thisArg, partials) {
5248
5168
  while (argsLength--) {
5249
5169
  args[leftIndex++] = arguments[++argsIndex];
5250
5170
  }
5251
- return apply(fn, isBind ? thisArg : this, args);
5171
+ return apply$1(fn, isBind ? thisArg : this, args);
5252
5172
  }
5253
5173
  return wrapper;
5254
5174
  }
@@ -5387,8 +5307,8 @@ function baseTrim$1(string) {
5387
5307
 
5388
5308
  var _baseTrim = baseTrim$1;
5389
5309
 
5390
- var baseGetTag$3 = _baseGetTag,
5391
- isObjectLike$6 = isObjectLike_1;
5310
+ var baseGetTag$4 = _baseGetTag,
5311
+ isObjectLike$7 = isObjectLike_1;
5392
5312
 
5393
5313
  /** `Object#toString` result references. */
5394
5314
  var symbolTag$3 = '[object Symbol]';
@@ -5412,13 +5332,13 @@ var symbolTag$3 = '[object Symbol]';
5412
5332
  */
5413
5333
  function isSymbol$6(value) {
5414
5334
  return typeof value == 'symbol' ||
5415
- (isObjectLike$6(value) && baseGetTag$3(value) == symbolTag$3);
5335
+ (isObjectLike$7(value) && baseGetTag$4(value) == symbolTag$3);
5416
5336
  }
5417
5337
 
5418
5338
  var isSymbol_1 = isSymbol$6;
5419
5339
 
5420
5340
  var baseTrim = _baseTrim,
5421
- isObject$3 = requireIsObject(),
5341
+ isObject$3 = isObject_1,
5422
5342
  isSymbol$5 = isSymbol_1;
5423
5343
 
5424
5344
  /** Used as references for various `Number` constants. */
@@ -5585,7 +5505,7 @@ var WRAP_BIND_FLAG = 1,
5585
5505
  WRAP_PARTIAL_RIGHT_FLAG = 64;
5586
5506
 
5587
5507
  /* Built-in method references for those with the same name as other `lodash` methods. */
5588
- var nativeMax = Math.max;
5508
+ var nativeMax$1 = Math.max;
5589
5509
 
5590
5510
  /**
5591
5511
  * Creates a function that either curries or invokes `func` with optional
@@ -5622,7 +5542,7 @@ function createWrap$3(func, bitmask, thisArg, partials, holders, argPos, ary, ar
5622
5542
  bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);
5623
5543
  partials = holders = undefined;
5624
5544
  }
5625
- ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);
5545
+ ary = ary === undefined ? ary : nativeMax$1(toInteger(ary), 0);
5626
5546
  arity = arity === undefined ? arity : toInteger(arity);
5627
5547
  length -= holders ? holders.length : 0;
5628
5548
 
@@ -5649,7 +5569,7 @@ function createWrap$3(func, bitmask, thisArg, partials, holders, argPos, ary, ar
5649
5569
  holders = newData[4];
5650
5570
  arity = newData[9] = newData[9] === undefined
5651
5571
  ? (isBindKey ? 0 : func.length)
5652
- : nativeMax(newData[9] - length, 0);
5572
+ : nativeMax$1(newData[9] - length, 0);
5653
5573
 
5654
5574
  if (!arity && bitmask & (WRAP_CURRY_FLAG$1 | WRAP_CURRY_RIGHT_FLAG)) {
5655
5575
  bitmask &= ~(WRAP_CURRY_FLAG$1 | WRAP_CURRY_RIGHT_FLAG);
@@ -5699,40 +5619,32 @@ function ary(func, n, guard) {
5699
5619
 
5700
5620
  var ary_1 = ary;
5701
5621
 
5702
- var _baseAssignValue;
5703
- var hasRequired_baseAssignValue;
5622
+ var defineProperty = _defineProperty;
5704
5623
 
5705
- function require_baseAssignValue () {
5706
- if (hasRequired_baseAssignValue) return _baseAssignValue;
5707
- hasRequired_baseAssignValue = 1;
5708
- var defineProperty = require_defineProperty();
5709
-
5710
- /**
5711
- * The base implementation of `assignValue` and `assignMergeValue` without
5712
- * value checks.
5713
- *
5714
- * @private
5715
- * @param {Object} object The object to modify.
5716
- * @param {string} key The key of the property to assign.
5717
- * @param {*} value The value to assign.
5718
- */
5719
- function baseAssignValue(object, key, value) {
5720
- if (key == '__proto__' && defineProperty) {
5721
- defineProperty(object, key, {
5722
- 'configurable': true,
5723
- 'enumerable': true,
5724
- 'value': value,
5725
- 'writable': true
5726
- });
5727
- } else {
5728
- object[key] = value;
5729
- }
5730
- }
5731
-
5732
- _baseAssignValue = baseAssignValue;
5733
- return _baseAssignValue;
5624
+ /**
5625
+ * The base implementation of `assignValue` and `assignMergeValue` without
5626
+ * value checks.
5627
+ *
5628
+ * @private
5629
+ * @param {Object} object The object to modify.
5630
+ * @param {string} key The key of the property to assign.
5631
+ * @param {*} value The value to assign.
5632
+ */
5633
+ function baseAssignValue$2(object, key, value) {
5634
+ if (key == '__proto__' && defineProperty) {
5635
+ defineProperty(object, key, {
5636
+ 'configurable': true,
5637
+ 'enumerable': true,
5638
+ 'value': value,
5639
+ 'writable': true
5640
+ });
5641
+ } else {
5642
+ object[key] = value;
5643
+ }
5734
5644
  }
5735
5645
 
5646
+ var _baseAssignValue = baseAssignValue$2;
5647
+
5736
5648
  /**
5737
5649
  * Performs a
5738
5650
  * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
@@ -5780,7 +5692,7 @@ function requireEq () {
5780
5692
  return eq_1;
5781
5693
  }
5782
5694
 
5783
- var baseAssignValue$1 = require_baseAssignValue(),
5695
+ var baseAssignValue$1 = _baseAssignValue,
5784
5696
  eq$1 = requireEq();
5785
5697
 
5786
5698
  /** Used for built-in method references. */
@@ -5810,7 +5722,7 @@ function assignValue$2(object, key, value) {
5810
5722
  var _assignValue = assignValue$2;
5811
5723
 
5812
5724
  var assignValue$1 = _assignValue,
5813
- baseAssignValue = require_baseAssignValue();
5725
+ baseAssignValue = _baseAssignValue;
5814
5726
 
5815
5727
  /**
5816
5728
  * Copies properties of `source` to `object`.
@@ -5964,182 +5876,151 @@ var isBuffer$5 = {
5964
5876
  * // => [false, false]
5965
5877
  */
5966
5878
 
5967
- var stubFalse_1;
5968
- var hasRequiredStubFalse;
5879
+ function stubFalse() {
5880
+ return false;
5881
+ }
5969
5882
 
5970
- function requireStubFalse () {
5971
- if (hasRequiredStubFalse) return stubFalse_1;
5972
- hasRequiredStubFalse = 1;
5973
- function stubFalse() {
5974
- return false;
5975
- }
5883
+ var stubFalse_1 = stubFalse;
5976
5884
 
5977
- stubFalse_1 = stubFalse;
5978
- return stubFalse_1;
5979
- }
5980
-
5981
- var hasRequiredIsBuffer;
5982
-
5983
- function requireIsBuffer () {
5984
- if (hasRequiredIsBuffer) return isBufferExports;
5985
- hasRequiredIsBuffer = 1;
5986
- (function (module, exports) {
5987
- var root = _root,
5988
- stubFalse = requireStubFalse();
5989
-
5990
- /** Detect free variable `exports`. */
5991
- var freeExports = exports && !exports.nodeType && exports;
5992
-
5993
- /** Detect free variable `module`. */
5994
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
5995
-
5996
- /** Detect the popular CommonJS extension `module.exports`. */
5997
- var moduleExports = freeModule && freeModule.exports === freeExports;
5998
-
5999
- /** Built-in value references. */
6000
- var Buffer = moduleExports ? root.Buffer : undefined;
6001
-
6002
- /* Built-in method references for those with the same name as other `lodash` methods. */
6003
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
6004
-
6005
- /**
6006
- * Checks if `value` is a buffer.
6007
- *
6008
- * @static
6009
- * @memberOf _
6010
- * @since 4.3.0
6011
- * @category Lang
6012
- * @param {*} value The value to check.
6013
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
6014
- * @example
6015
- *
6016
- * _.isBuffer(new Buffer(2));
6017
- * // => true
6018
- *
6019
- * _.isBuffer(new Uint8Array(2));
6020
- * // => false
6021
- */
6022
- var isBuffer = nativeIsBuffer || stubFalse;
6023
-
6024
- module.exports = isBuffer;
6025
- } (isBuffer$5, isBufferExports));
6026
- return isBufferExports;
6027
- }
5885
+ (function (module, exports) {
5886
+ var root = _root,
5887
+ stubFalse = stubFalse_1;
6028
5888
 
6029
- /** Used as references for various `Number` constants. */
5889
+ /** Detect free variable `exports`. */
5890
+ var freeExports = exports && !exports.nodeType && exports;
5891
+
5892
+ /** Detect free variable `module`. */
5893
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
6030
5894
 
6031
- var isLength_1;
6032
- var hasRequiredIsLength;
5895
+ /** Detect the popular CommonJS extension `module.exports`. */
5896
+ var moduleExports = freeModule && freeModule.exports === freeExports;
6033
5897
 
6034
- function requireIsLength () {
6035
- if (hasRequiredIsLength) return isLength_1;
6036
- hasRequiredIsLength = 1;
6037
- var MAX_SAFE_INTEGER = 9007199254740991;
5898
+ /** Built-in value references. */
5899
+ var Buffer = moduleExports ? root.Buffer : undefined;
5900
+
5901
+ /* Built-in method references for those with the same name as other `lodash` methods. */
5902
+ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
6038
5903
 
6039
5904
  /**
6040
- * Checks if `value` is a valid array-like length.
6041
- *
6042
- * **Note:** This method is loosely based on
6043
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
5905
+ * Checks if `value` is a buffer.
6044
5906
  *
6045
5907
  * @static
6046
5908
  * @memberOf _
6047
- * @since 4.0.0
5909
+ * @since 4.3.0
6048
5910
  * @category Lang
6049
5911
  * @param {*} value The value to check.
6050
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
5912
+ * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
6051
5913
  * @example
6052
5914
  *
6053
- * _.isLength(3);
5915
+ * _.isBuffer(new Buffer(2));
6054
5916
  * // => true
6055
5917
  *
6056
- * _.isLength(Number.MIN_VALUE);
6057
- * // => false
6058
- *
6059
- * _.isLength(Infinity);
6060
- * // => false
6061
- *
6062
- * _.isLength('3');
5918
+ * _.isBuffer(new Uint8Array(2));
6063
5919
  * // => false
6064
5920
  */
6065
- function isLength(value) {
6066
- return typeof value == 'number' &&
6067
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
6068
- }
5921
+ var isBuffer = nativeIsBuffer || stubFalse;
6069
5922
 
6070
- isLength_1 = isLength;
6071
- return isLength_1;
6072
- }
5923
+ module.exports = isBuffer;
5924
+ } (isBuffer$5, isBufferExports));
6073
5925
 
6074
- var _baseIsTypedArray;
6075
- var hasRequired_baseIsTypedArray;
5926
+ /** Used as references for various `Number` constants. */
6076
5927
 
6077
- function require_baseIsTypedArray () {
6078
- if (hasRequired_baseIsTypedArray) return _baseIsTypedArray;
6079
- hasRequired_baseIsTypedArray = 1;
6080
- var baseGetTag = _baseGetTag,
6081
- isLength = requireIsLength(),
6082
- isObjectLike = isObjectLike_1;
5928
+ var MAX_SAFE_INTEGER = 9007199254740991;
6083
5929
 
6084
- /** `Object#toString` result references. */
6085
- var argsTag = '[object Arguments]',
6086
- arrayTag = '[object Array]',
6087
- boolTag = '[object Boolean]',
6088
- dateTag = '[object Date]',
6089
- errorTag = '[object Error]',
6090
- funcTag = '[object Function]',
6091
- mapTag = '[object Map]',
6092
- numberTag = '[object Number]',
6093
- objectTag = '[object Object]',
6094
- regexpTag = '[object RegExp]',
6095
- setTag = '[object Set]',
6096
- stringTag = '[object String]',
6097
- weakMapTag = '[object WeakMap]';
6098
-
6099
- var arrayBufferTag = '[object ArrayBuffer]',
6100
- dataViewTag = '[object DataView]',
6101
- float32Tag = '[object Float32Array]',
6102
- float64Tag = '[object Float64Array]',
6103
- int8Tag = '[object Int8Array]',
6104
- int16Tag = '[object Int16Array]',
6105
- int32Tag = '[object Int32Array]',
6106
- uint8Tag = '[object Uint8Array]',
6107
- uint8ClampedTag = '[object Uint8ClampedArray]',
6108
- uint16Tag = '[object Uint16Array]',
6109
- uint32Tag = '[object Uint32Array]';
6110
-
6111
- /** Used to identify `toStringTag` values of typed arrays. */
6112
- var typedArrayTags = {};
6113
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
6114
- typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
6115
- typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
6116
- typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
6117
- typedArrayTags[uint32Tag] = true;
6118
- typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
6119
- typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
6120
- typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
6121
- typedArrayTags[errorTag] = typedArrayTags[funcTag] =
6122
- typedArrayTags[mapTag] = typedArrayTags[numberTag] =
6123
- typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
6124
- typedArrayTags[setTag] = typedArrayTags[stringTag] =
6125
- typedArrayTags[weakMapTag] = false;
5930
+ /**
5931
+ * Checks if `value` is a valid array-like length.
5932
+ *
5933
+ * **Note:** This method is loosely based on
5934
+ * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
5935
+ *
5936
+ * @static
5937
+ * @memberOf _
5938
+ * @since 4.0.0
5939
+ * @category Lang
5940
+ * @param {*} value The value to check.
5941
+ * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
5942
+ * @example
5943
+ *
5944
+ * _.isLength(3);
5945
+ * // => true
5946
+ *
5947
+ * _.isLength(Number.MIN_VALUE);
5948
+ * // => false
5949
+ *
5950
+ * _.isLength(Infinity);
5951
+ * // => false
5952
+ *
5953
+ * _.isLength('3');
5954
+ * // => false
5955
+ */
5956
+ function isLength$3(value) {
5957
+ return typeof value == 'number' &&
5958
+ value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
5959
+ }
6126
5960
 
6127
- /**
6128
- * The base implementation of `_.isTypedArray` without Node.js optimizations.
6129
- *
6130
- * @private
6131
- * @param {*} value The value to check.
6132
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
6133
- */
6134
- function baseIsTypedArray(value) {
6135
- return isObjectLike(value) &&
6136
- isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
6137
- }
5961
+ var isLength_1 = isLength$3;
5962
+
5963
+ var baseGetTag$3 = _baseGetTag,
5964
+ isLength$2 = isLength_1,
5965
+ isObjectLike$6 = isObjectLike_1;
5966
+
5967
+ /** `Object#toString` result references. */
5968
+ var argsTag$2 = '[object Arguments]',
5969
+ arrayTag$2 = '[object Array]',
5970
+ boolTag$3 = '[object Boolean]',
5971
+ dateTag$3 = '[object Date]',
5972
+ errorTag$3 = '[object Error]',
5973
+ funcTag$1 = '[object Function]',
5974
+ mapTag$5 = '[object Map]',
5975
+ numberTag$3 = '[object Number]',
5976
+ objectTag$4 = '[object Object]',
5977
+ regexpTag$3 = '[object RegExp]',
5978
+ setTag$5 = '[object Set]',
5979
+ stringTag$3 = '[object String]',
5980
+ weakMapTag$3 = '[object WeakMap]';
5981
+
5982
+ var arrayBufferTag$3 = '[object ArrayBuffer]',
5983
+ dataViewTag$4 = '[object DataView]',
5984
+ float32Tag$2 = '[object Float32Array]',
5985
+ float64Tag$2 = '[object Float64Array]',
5986
+ int8Tag$2 = '[object Int8Array]',
5987
+ int16Tag$2 = '[object Int16Array]',
5988
+ int32Tag$2 = '[object Int32Array]',
5989
+ uint8Tag$2 = '[object Uint8Array]',
5990
+ uint8ClampedTag$2 = '[object Uint8ClampedArray]',
5991
+ uint16Tag$2 = '[object Uint16Array]',
5992
+ uint32Tag$2 = '[object Uint32Array]';
5993
+
5994
+ /** Used to identify `toStringTag` values of typed arrays. */
5995
+ var typedArrayTags = {};
5996
+ typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] =
5997
+ typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] =
5998
+ typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] =
5999
+ typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] =
6000
+ typedArrayTags[uint32Tag$2] = true;
6001
+ typedArrayTags[argsTag$2] = typedArrayTags[arrayTag$2] =
6002
+ typedArrayTags[arrayBufferTag$3] = typedArrayTags[boolTag$3] =
6003
+ typedArrayTags[dataViewTag$4] = typedArrayTags[dateTag$3] =
6004
+ typedArrayTags[errorTag$3] = typedArrayTags[funcTag$1] =
6005
+ typedArrayTags[mapTag$5] = typedArrayTags[numberTag$3] =
6006
+ typedArrayTags[objectTag$4] = typedArrayTags[regexpTag$3] =
6007
+ typedArrayTags[setTag$5] = typedArrayTags[stringTag$3] =
6008
+ typedArrayTags[weakMapTag$3] = false;
6138
6009
 
6139
- _baseIsTypedArray = baseIsTypedArray;
6140
- return _baseIsTypedArray;
6010
+ /**
6011
+ * The base implementation of `_.isTypedArray` without Node.js optimizations.
6012
+ *
6013
+ * @private
6014
+ * @param {*} value The value to check.
6015
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
6016
+ */
6017
+ function baseIsTypedArray$1(value) {
6018
+ return isObjectLike$6(value) &&
6019
+ isLength$2(value.length) && !!typedArrayTags[baseGetTag$3(value)];
6141
6020
  }
6142
6021
 
6022
+ var _baseIsTypedArray = baseIsTypedArray$1;
6023
+
6143
6024
  /**
6144
6025
  * The base implementation of `_.unary` without support for storing metadata.
6145
6026
  *
@@ -6148,110 +6029,87 @@ function require_baseIsTypedArray () {
6148
6029
  * @returns {Function} Returns the new capped function.
6149
6030
  */
6150
6031
 
6151
- var _baseUnary;
6152
- var hasRequired_baseUnary;
6153
-
6154
- function require_baseUnary () {
6155
- if (hasRequired_baseUnary) return _baseUnary;
6156
- hasRequired_baseUnary = 1;
6157
- function baseUnary(func) {
6158
- return function(value) {
6159
- return func(value);
6160
- };
6161
- }
6162
-
6163
- _baseUnary = baseUnary;
6164
- return _baseUnary;
6032
+ function baseUnary$3(func) {
6033
+ return function(value) {
6034
+ return func(value);
6035
+ };
6165
6036
  }
6166
6037
 
6038
+ var _baseUnary = baseUnary$3;
6039
+
6167
6040
  var _nodeUtilExports = {};
6168
6041
  var _nodeUtil = {
6169
6042
  get exports(){ return _nodeUtilExports; },
6170
6043
  set exports(v){ _nodeUtilExports = v; },
6171
6044
  };
6172
6045
 
6173
- var hasRequired_nodeUtil;
6174
-
6175
- function require_nodeUtil () {
6176
- if (hasRequired_nodeUtil) return _nodeUtilExports;
6177
- hasRequired_nodeUtil = 1;
6178
- (function (module, exports) {
6179
- var freeGlobal = _freeGlobal;
6046
+ (function (module, exports) {
6047
+ var freeGlobal = _freeGlobal;
6180
6048
 
6181
- /** Detect free variable `exports`. */
6182
- var freeExports = exports && !exports.nodeType && exports;
6049
+ /** Detect free variable `exports`. */
6050
+ var freeExports = exports && !exports.nodeType && exports;
6183
6051
 
6184
- /** Detect free variable `module`. */
6185
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
6052
+ /** Detect free variable `module`. */
6053
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
6186
6054
 
6187
- /** Detect the popular CommonJS extension `module.exports`. */
6188
- var moduleExports = freeModule && freeModule.exports === freeExports;
6055
+ /** Detect the popular CommonJS extension `module.exports`. */
6056
+ var moduleExports = freeModule && freeModule.exports === freeExports;
6189
6057
 
6190
- /** Detect free variable `process` from Node.js. */
6191
- var freeProcess = moduleExports && freeGlobal.process;
6058
+ /** Detect free variable `process` from Node.js. */
6059
+ var freeProcess = moduleExports && freeGlobal.process;
6192
6060
 
6193
- /** Used to access faster Node.js helpers. */
6194
- var nodeUtil = (function() {
6195
- try {
6196
- // Use `util.types` for Node.js 10+.
6197
- var types = freeModule && freeModule.require && freeModule.require('util').types;
6061
+ /** Used to access faster Node.js helpers. */
6062
+ var nodeUtil = (function() {
6063
+ try {
6064
+ // Use `util.types` for Node.js 10+.
6065
+ var types = freeModule && freeModule.require && freeModule.require('util').types;
6198
6066
 
6199
- if (types) {
6200
- return types;
6201
- }
6067
+ if (types) {
6068
+ return types;
6069
+ }
6202
6070
 
6203
- // Legacy `process.binding('util')` for Node.js < 10.
6204
- return freeProcess && freeProcess.binding && freeProcess.binding('util');
6205
- } catch (e) {}
6206
- }());
6071
+ // Legacy `process.binding('util')` for Node.js < 10.
6072
+ return freeProcess && freeProcess.binding && freeProcess.binding('util');
6073
+ } catch (e) {}
6074
+ }());
6207
6075
 
6208
- module.exports = nodeUtil;
6076
+ module.exports = nodeUtil;
6209
6077
  } (_nodeUtil, _nodeUtilExports));
6210
- return _nodeUtilExports;
6211
- }
6212
6078
 
6213
- var isTypedArray_1;
6214
- var hasRequiredIsTypedArray;
6079
+ var baseIsTypedArray = _baseIsTypedArray,
6080
+ baseUnary$2 = _baseUnary,
6081
+ nodeUtil$2 = _nodeUtilExports;
6215
6082
 
6216
- function requireIsTypedArray () {
6217
- if (hasRequiredIsTypedArray) return isTypedArray_1;
6218
- hasRequiredIsTypedArray = 1;
6219
- var baseIsTypedArray = require_baseIsTypedArray(),
6220
- baseUnary = require_baseUnary(),
6221
- nodeUtil = require_nodeUtil();
6222
-
6223
- /* Node.js helper references. */
6224
- var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
6083
+ /* Node.js helper references. */
6084
+ var nodeIsTypedArray = nodeUtil$2 && nodeUtil$2.isTypedArray;
6225
6085
 
6226
- /**
6227
- * Checks if `value` is classified as a typed array.
6228
- *
6229
- * @static
6230
- * @memberOf _
6231
- * @since 3.0.0
6232
- * @category Lang
6233
- * @param {*} value The value to check.
6234
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
6235
- * @example
6236
- *
6237
- * _.isTypedArray(new Uint8Array);
6238
- * // => true
6239
- *
6240
- * _.isTypedArray([]);
6241
- * // => false
6242
- */
6243
- var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
6086
+ /**
6087
+ * Checks if `value` is classified as a typed array.
6088
+ *
6089
+ * @static
6090
+ * @memberOf _
6091
+ * @since 3.0.0
6092
+ * @category Lang
6093
+ * @param {*} value The value to check.
6094
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
6095
+ * @example
6096
+ *
6097
+ * _.isTypedArray(new Uint8Array);
6098
+ * // => true
6099
+ *
6100
+ * _.isTypedArray([]);
6101
+ * // => false
6102
+ */
6103
+ var isTypedArray$2 = nodeIsTypedArray ? baseUnary$2(nodeIsTypedArray) : baseIsTypedArray;
6244
6104
 
6245
- isTypedArray_1 = isTypedArray;
6246
- return isTypedArray_1;
6247
- }
6105
+ var isTypedArray_1 = isTypedArray$2;
6248
6106
 
6249
6107
  var baseTimes = _baseTimes,
6250
6108
  isArguments$2 = requireIsArguments(),
6251
6109
  isArray$f = isArray_1,
6252
- isBuffer$4 = requireIsBuffer(),
6253
- isIndex$1 = require_isIndex(),
6254
- isTypedArray$1 = requireIsTypedArray();
6110
+ isBuffer$4 = isBufferExports,
6111
+ isIndex$1 = _isIndex,
6112
+ isTypedArray$1 = isTypedArray_1;
6255
6113
 
6256
6114
  /** Used for built-in method references. */
6257
6115
  var objectProto$7 = Object.prototype;
@@ -6307,14 +6165,14 @@ var objectProto$6 = Object.prototype;
6307
6165
  * @param {*} value The value to check.
6308
6166
  * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
6309
6167
  */
6310
- function isPrototype$1(value) {
6168
+ function isPrototype$2(value) {
6311
6169
  var Ctor = value && value.constructor,
6312
6170
  proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$6;
6313
6171
 
6314
6172
  return value === proto;
6315
6173
  }
6316
6174
 
6317
- var _isPrototype = isPrototype$1;
6175
+ var _isPrototype = isPrototype$2;
6318
6176
 
6319
6177
  /**
6320
6178
  * Creates a unary function that invokes `func` with its argument transformed.
@@ -6340,7 +6198,7 @@ var nativeKeys$1 = overArg$1(Object.keys, Object);
6340
6198
 
6341
6199
  var _nativeKeys = nativeKeys$1;
6342
6200
 
6343
- var isPrototype = _isPrototype,
6201
+ var isPrototype$1 = _isPrototype,
6344
6202
  nativeKeys = _nativeKeys;
6345
6203
 
6346
6204
  /** Used for built-in method references. */
@@ -6357,7 +6215,7 @@ var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
6357
6215
  * @returns {Array} Returns the array of property names.
6358
6216
  */
6359
6217
  function baseKeys$1(object) {
6360
- if (!isPrototype(object)) {
6218
+ if (!isPrototype$1(object)) {
6361
6219
  return nativeKeys(object);
6362
6220
  }
6363
6221
  var result = [];
@@ -6371,51 +6229,43 @@ function baseKeys$1(object) {
6371
6229
 
6372
6230
  var _baseKeys = baseKeys$1;
6373
6231
 
6374
- var isArrayLike_1;
6375
- var hasRequiredIsArrayLike;
6376
-
6377
- function requireIsArrayLike () {
6378
- if (hasRequiredIsArrayLike) return isArrayLike_1;
6379
- hasRequiredIsArrayLike = 1;
6380
- var isFunction = isFunction_1,
6381
- isLength = requireIsLength();
6382
-
6383
- /**
6384
- * Checks if `value` is array-like. A value is considered array-like if it's
6385
- * not a function and has a `value.length` that's an integer greater than or
6386
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
6387
- *
6388
- * @static
6389
- * @memberOf _
6390
- * @since 4.0.0
6391
- * @category Lang
6392
- * @param {*} value The value to check.
6393
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
6394
- * @example
6395
- *
6396
- * _.isArrayLike([1, 2, 3]);
6397
- * // => true
6398
- *
6399
- * _.isArrayLike(document.body.children);
6400
- * // => true
6401
- *
6402
- * _.isArrayLike('abc');
6403
- * // => true
6404
- *
6405
- * _.isArrayLike(_.noop);
6406
- * // => false
6407
- */
6408
- function isArrayLike(value) {
6409
- return value != null && isLength(value.length) && !isFunction(value);
6410
- }
6232
+ var isFunction$1 = isFunction_1,
6233
+ isLength$1 = isLength_1;
6411
6234
 
6412
- isArrayLike_1 = isArrayLike;
6413
- return isArrayLike_1;
6235
+ /**
6236
+ * Checks if `value` is array-like. A value is considered array-like if it's
6237
+ * not a function and has a `value.length` that's an integer greater than or
6238
+ * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
6239
+ *
6240
+ * @static
6241
+ * @memberOf _
6242
+ * @since 4.0.0
6243
+ * @category Lang
6244
+ * @param {*} value The value to check.
6245
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
6246
+ * @example
6247
+ *
6248
+ * _.isArrayLike([1, 2, 3]);
6249
+ * // => true
6250
+ *
6251
+ * _.isArrayLike(document.body.children);
6252
+ * // => true
6253
+ *
6254
+ * _.isArrayLike('abc');
6255
+ * // => true
6256
+ *
6257
+ * _.isArrayLike(_.noop);
6258
+ * // => false
6259
+ */
6260
+ function isArrayLike$1(value) {
6261
+ return value != null && isLength$1(value.length) && !isFunction$1(value);
6414
6262
  }
6415
6263
 
6264
+ var isArrayLike_1 = isArrayLike$1;
6265
+
6416
6266
  var arrayLikeKeys = _arrayLikeKeys,
6417
6267
  baseKeys = _baseKeys,
6418
- isArrayLike = requireIsArrayLike();
6268
+ isArrayLike = isArrayLike_1;
6419
6269
 
6420
6270
  /**
6421
6271
  * Creates an array of the own enumerable property names of `object`.
@@ -6796,10 +6646,10 @@ function require_stackHas () {
6796
6646
  }
6797
6647
 
6798
6648
  var getNative$3 = _getNative,
6799
- root$3 = _root;
6649
+ root$4 = _root;
6800
6650
 
6801
6651
  /* Built-in method references that are verified to be native. */
6802
- var Map$2 = getNative$3(root$3, 'Map');
6652
+ var Map$2 = getNative$3(root$4, 'Map');
6803
6653
 
6804
6654
  var _Map = Map$2;
6805
6655
 
@@ -7359,7 +7209,7 @@ var hasRequired_baseKeysIn;
7359
7209
  function require_baseKeysIn () {
7360
7210
  if (hasRequired_baseKeysIn) return _baseKeysIn;
7361
7211
  hasRequired_baseKeysIn = 1;
7362
- var isObject = requireIsObject(),
7212
+ var isObject = isObject_1,
7363
7213
  isPrototype = _isPrototype,
7364
7214
  nativeKeysIn = require_nativeKeysIn();
7365
7215
 
@@ -7403,7 +7253,7 @@ function requireKeysIn () {
7403
7253
  hasRequiredKeysIn = 1;
7404
7254
  var arrayLikeKeys = _arrayLikeKeys,
7405
7255
  baseKeysIn = require_baseKeysIn(),
7406
- isArrayLike = requireIsArrayLike();
7256
+ isArrayLike = isArrayLike_1;
7407
7257
 
7408
7258
  /**
7409
7259
  * Creates an array of the own and inherited enumerable property names of `object`.
@@ -7460,50 +7310,43 @@ var _cloneBuffer = {
7460
7310
  set exports(v){ _cloneBufferExports = v; },
7461
7311
  };
7462
7312
 
7463
- var hasRequired_cloneBuffer;
7464
-
7465
- function require_cloneBuffer () {
7466
- if (hasRequired_cloneBuffer) return _cloneBufferExports;
7467
- hasRequired_cloneBuffer = 1;
7468
- (function (module, exports) {
7469
- var root = _root;
7470
-
7471
- /** Detect free variable `exports`. */
7472
- var freeExports = exports && !exports.nodeType && exports;
7473
-
7474
- /** Detect free variable `module`. */
7475
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
7476
-
7477
- /** Detect the popular CommonJS extension `module.exports`. */
7478
- var moduleExports = freeModule && freeModule.exports === freeExports;
7479
-
7480
- /** Built-in value references. */
7481
- var Buffer = moduleExports ? root.Buffer : undefined,
7482
- allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
7483
-
7484
- /**
7485
- * Creates a clone of `buffer`.
7486
- *
7487
- * @private
7488
- * @param {Buffer} buffer The buffer to clone.
7489
- * @param {boolean} [isDeep] Specify a deep clone.
7490
- * @returns {Buffer} Returns the cloned buffer.
7491
- */
7492
- function cloneBuffer(buffer, isDeep) {
7493
- if (isDeep) {
7494
- return buffer.slice();
7495
- }
7496
- var length = buffer.length,
7497
- result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
7498
-
7499
- buffer.copy(result);
7500
- return result;
7501
- }
7313
+ (function (module, exports) {
7314
+ var root = _root;
7315
+
7316
+ /** Detect free variable `exports`. */
7317
+ var freeExports = exports && !exports.nodeType && exports;
7318
+
7319
+ /** Detect free variable `module`. */
7320
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
7502
7321
 
7503
- module.exports = cloneBuffer;
7322
+ /** Detect the popular CommonJS extension `module.exports`. */
7323
+ var moduleExports = freeModule && freeModule.exports === freeExports;
7324
+
7325
+ /** Built-in value references. */
7326
+ var Buffer = moduleExports ? root.Buffer : undefined,
7327
+ allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
7328
+
7329
+ /**
7330
+ * Creates a clone of `buffer`.
7331
+ *
7332
+ * @private
7333
+ * @param {Buffer} buffer The buffer to clone.
7334
+ * @param {boolean} [isDeep] Specify a deep clone.
7335
+ * @returns {Buffer} Returns the cloned buffer.
7336
+ */
7337
+ function cloneBuffer(buffer, isDeep) {
7338
+ if (isDeep) {
7339
+ return buffer.slice();
7340
+ }
7341
+ var length = buffer.length,
7342
+ result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
7343
+
7344
+ buffer.copy(result);
7345
+ return result;
7346
+ }
7347
+
7348
+ module.exports = cloneBuffer;
7504
7349
  } (_cloneBuffer, _cloneBufferExports));
7505
- return _cloneBufferExports;
7506
- }
7507
7350
 
7508
7351
  /**
7509
7352
  * A specialized version of `_.filter` for arrays without support for
@@ -7630,12 +7473,12 @@ var _arrayPush = arrayPush$3;
7630
7473
  var overArg = _overArg;
7631
7474
 
7632
7475
  /** Built-in value references. */
7633
- var getPrototype$2 = overArg(Object.getPrototypeOf, Object);
7476
+ var getPrototype$3 = overArg(Object.getPrototypeOf, Object);
7634
7477
 
7635
- var _getPrototype = getPrototype$2;
7478
+ var _getPrototype = getPrototype$3;
7636
7479
 
7637
7480
  var arrayPush$2 = _arrayPush,
7638
- getPrototype$1 = _getPrototype,
7481
+ getPrototype$2 = _getPrototype,
7639
7482
  getSymbols$1 = _getSymbols,
7640
7483
  stubArray = stubArray_1;
7641
7484
 
@@ -7653,7 +7496,7 @@ var getSymbolsIn$2 = !nativeGetSymbols ? stubArray : function(object) {
7653
7496
  var result = [];
7654
7497
  while (object) {
7655
7498
  arrayPush$2(result, getSymbols$1(object));
7656
- object = getPrototype$1(object);
7499
+ object = getPrototype$2(object);
7657
7500
  }
7658
7501
  return result;
7659
7502
  };
@@ -7734,26 +7577,26 @@ function getAllKeysIn$1(object) {
7734
7577
  var _getAllKeysIn = getAllKeysIn$1;
7735
7578
 
7736
7579
  var getNative$2 = _getNative,
7737
- root$2 = _root;
7580
+ root$3 = _root;
7738
7581
 
7739
7582
  /* Built-in method references that are verified to be native. */
7740
- var DataView$2 = getNative$2(root$2, 'DataView');
7583
+ var DataView$2 = getNative$2(root$3, 'DataView');
7741
7584
 
7742
7585
  var _DataView = DataView$2;
7743
7586
 
7744
7587
  var getNative$1 = _getNative,
7745
- root$1 = _root;
7588
+ root$2 = _root;
7746
7589
 
7747
7590
  /* Built-in method references that are verified to be native. */
7748
- var Promise$2 = getNative$1(root$1, 'Promise');
7591
+ var Promise$2 = getNative$1(root$2, 'Promise');
7749
7592
 
7750
7593
  var _Promise = Promise$2;
7751
7594
 
7752
7595
  var getNative = _getNative,
7753
- root = _root;
7596
+ root$1 = _root;
7754
7597
 
7755
7598
  /* Built-in method references that are verified to be native. */
7756
- var Set$2 = getNative(root, 'Set');
7599
+ var Set$2 = getNative(root$1, 'Set');
7757
7600
 
7758
7601
  var _Set = Set$2;
7759
7602
 
@@ -7844,47 +7687,31 @@ function initCloneArray$1(array) {
7844
7687
 
7845
7688
  var _initCloneArray = initCloneArray$1;
7846
7689
 
7847
- var _Uint8Array;
7848
- var hasRequired_Uint8Array;
7690
+ var root = _root;
7849
7691
 
7850
- function require_Uint8Array () {
7851
- if (hasRequired_Uint8Array) return _Uint8Array;
7852
- hasRequired_Uint8Array = 1;
7853
- var root = _root;
7854
-
7855
- /** Built-in value references. */
7856
- var Uint8Array = root.Uint8Array;
7857
-
7858
- _Uint8Array = Uint8Array;
7859
- return _Uint8Array;
7860
- }
7861
-
7862
- var _cloneArrayBuffer;
7863
- var hasRequired_cloneArrayBuffer;
7692
+ /** Built-in value references. */
7693
+ var Uint8Array$3 = root.Uint8Array;
7864
7694
 
7865
- function require_cloneArrayBuffer () {
7866
- if (hasRequired_cloneArrayBuffer) return _cloneArrayBuffer;
7867
- hasRequired_cloneArrayBuffer = 1;
7868
- var Uint8Array = require_Uint8Array();
7695
+ var _Uint8Array = Uint8Array$3;
7869
7696
 
7870
- /**
7871
- * Creates a clone of `arrayBuffer`.
7872
- *
7873
- * @private
7874
- * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
7875
- * @returns {ArrayBuffer} Returns the cloned array buffer.
7876
- */
7877
- function cloneArrayBuffer(arrayBuffer) {
7878
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
7879
- new Uint8Array(result).set(new Uint8Array(arrayBuffer));
7880
- return result;
7881
- }
7697
+ var Uint8Array$2 = _Uint8Array;
7882
7698
 
7883
- _cloneArrayBuffer = cloneArrayBuffer;
7884
- return _cloneArrayBuffer;
7699
+ /**
7700
+ * Creates a clone of `arrayBuffer`.
7701
+ *
7702
+ * @private
7703
+ * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
7704
+ * @returns {ArrayBuffer} Returns the cloned array buffer.
7705
+ */
7706
+ function cloneArrayBuffer$2(arrayBuffer) {
7707
+ var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
7708
+ new Uint8Array$2(result).set(new Uint8Array$2(arrayBuffer));
7709
+ return result;
7885
7710
  }
7886
7711
 
7887
- var cloneArrayBuffer$1 = require_cloneArrayBuffer();
7712
+ var _cloneArrayBuffer = cloneArrayBuffer$2;
7713
+
7714
+ var cloneArrayBuffer$1 = _cloneArrayBuffer;
7888
7715
 
7889
7716
  /**
7890
7717
  * Creates a clone of `dataView`.
@@ -7945,7 +7772,7 @@ var hasRequired_cloneTypedArray;
7945
7772
  function require_cloneTypedArray () {
7946
7773
  if (hasRequired_cloneTypedArray) return _cloneTypedArray;
7947
7774
  hasRequired_cloneTypedArray = 1;
7948
- var cloneArrayBuffer = require_cloneArrayBuffer();
7775
+ var cloneArrayBuffer = _cloneArrayBuffer;
7949
7776
 
7950
7777
  /**
7951
7778
  * Creates a clone of `typedArray`.
@@ -7964,7 +7791,7 @@ function require_cloneTypedArray () {
7964
7791
  return _cloneTypedArray;
7965
7792
  }
7966
7793
 
7967
- var cloneArrayBuffer = require_cloneArrayBuffer(),
7794
+ var cloneArrayBuffer = _cloneArrayBuffer,
7968
7795
  cloneDataView = _cloneDataView,
7969
7796
  cloneRegExp = _cloneRegExp,
7970
7797
  cloneSymbol = _cloneSymbol,
@@ -8042,33 +7869,25 @@ function initCloneByTag$1(object, tag, isDeep) {
8042
7869
 
8043
7870
  var _initCloneByTag = initCloneByTag$1;
8044
7871
 
8045
- var _initCloneObject;
8046
- var hasRequired_initCloneObject;
8047
-
8048
- function require_initCloneObject () {
8049
- if (hasRequired_initCloneObject) return _initCloneObject;
8050
- hasRequired_initCloneObject = 1;
8051
- var baseCreate = require_baseCreate(),
8052
- getPrototype = _getPrototype,
8053
- isPrototype = _isPrototype;
8054
-
8055
- /**
8056
- * Initializes an object clone.
8057
- *
8058
- * @private
8059
- * @param {Object} object The object to clone.
8060
- * @returns {Object} Returns the initialized clone.
8061
- */
8062
- function initCloneObject(object) {
8063
- return (typeof object.constructor == 'function' && !isPrototype(object))
8064
- ? baseCreate(getPrototype(object))
8065
- : {};
8066
- }
7872
+ var baseCreate = _baseCreate,
7873
+ getPrototype$1 = _getPrototype,
7874
+ isPrototype = _isPrototype;
8067
7875
 
8068
- _initCloneObject = initCloneObject;
8069
- return _initCloneObject;
7876
+ /**
7877
+ * Initializes an object clone.
7878
+ *
7879
+ * @private
7880
+ * @param {Object} object The object to clone.
7881
+ * @returns {Object} Returns the initialized clone.
7882
+ */
7883
+ function initCloneObject$1(object) {
7884
+ return (typeof object.constructor == 'function' && !isPrototype(object))
7885
+ ? baseCreate(getPrototype$1(object))
7886
+ : {};
8070
7887
  }
8071
7888
 
7889
+ var _initCloneObject = initCloneObject$1;
7890
+
8072
7891
  var getTag$4 = _getTag,
8073
7892
  isObjectLike$5 = isObjectLike_1;
8074
7893
 
@@ -8089,8 +7908,8 @@ function baseIsMap$1(value) {
8089
7908
  var _baseIsMap = baseIsMap$1;
8090
7909
 
8091
7910
  var baseIsMap = _baseIsMap,
8092
- baseUnary$1 = require_baseUnary(),
8093
- nodeUtil$1 = require_nodeUtil();
7911
+ baseUnary$1 = _baseUnary,
7912
+ nodeUtil$1 = _nodeUtilExports;
8094
7913
 
8095
7914
  /* Node.js helper references. */
8096
7915
  var nodeIsMap = nodeUtil$1 && nodeUtil$1.isMap;
@@ -8136,8 +7955,8 @@ function baseIsSet$1(value) {
8136
7955
  var _baseIsSet = baseIsSet$1;
8137
7956
 
8138
7957
  var baseIsSet = _baseIsSet,
8139
- baseUnary = require_baseUnary(),
8140
- nodeUtil = require_nodeUtil();
7958
+ baseUnary = _baseUnary,
7959
+ nodeUtil = _nodeUtilExports;
8141
7960
 
8142
7961
  /* Node.js helper references. */
8143
7962
  var nodeIsSet = nodeUtil && nodeUtil.isSet;
@@ -8168,7 +7987,7 @@ var Stack$2 = require_Stack(),
8168
7987
  assignValue = _assignValue,
8169
7988
  baseAssign = _baseAssign,
8170
7989
  baseAssignIn = _baseAssignIn,
8171
- cloneBuffer = require_cloneBuffer(),
7990
+ cloneBuffer = _cloneBufferExports,
8172
7991
  copyArray$1 = _copyArray,
8173
7992
  copySymbols = _copySymbols,
8174
7993
  copySymbolsIn = _copySymbolsIn,
@@ -8177,11 +7996,11 @@ var Stack$2 = require_Stack(),
8177
7996
  getTag$2 = _getTag,
8178
7997
  initCloneArray = _initCloneArray,
8179
7998
  initCloneByTag = _initCloneByTag,
8180
- initCloneObject = require_initCloneObject(),
7999
+ initCloneObject = _initCloneObject,
8181
8000
  isArray$d = isArray_1,
8182
- isBuffer$3 = requireIsBuffer(),
8001
+ isBuffer$3 = isBufferExports,
8183
8002
  isMap$1 = isMap_1,
8184
- isObject$2 = requireIsObject(),
8003
+ isObject$2 = isObject_1,
8185
8004
  isSet$1 = isSet_1,
8186
8005
  keys$1 = keys_1,
8187
8006
  keysIn = requireKeysIn();
@@ -8785,7 +8604,7 @@ function setToArray$1(set) {
8785
8604
  var _setToArray = setToArray$1;
8786
8605
 
8787
8606
  var Symbol$3 = _Symbol,
8788
- Uint8Array$1 = require_Uint8Array(),
8607
+ Uint8Array$1 = _Uint8Array,
8789
8608
  eq = requireEq(),
8790
8609
  equalArrays$1 = _equalArrays,
8791
8610
  mapToArray = _mapToArray,
@@ -8994,8 +8813,8 @@ var Stack$1 = require_Stack(),
8994
8813
  equalObjects = _equalObjects,
8995
8814
  getTag = _getTag,
8996
8815
  isArray$c = isArray_1,
8997
- isBuffer$2 = requireIsBuffer(),
8998
- isTypedArray = requireIsTypedArray();
8816
+ isBuffer$2 = isBufferExports,
8817
+ isTypedArray = isTypedArray_1;
8999
8818
 
9000
8819
  /** Used to compose bitmasks for value comparisons. */
9001
8820
  var COMPARE_PARTIAL_FLAG$2 = 1;
@@ -9164,7 +8983,7 @@ function baseIsMatch$1(object, source, matchData, customizer) {
9164
8983
 
9165
8984
  var _baseIsMatch = baseIsMatch$1;
9166
8985
 
9167
- var isObject$1 = requireIsObject();
8986
+ var isObject$1 = isObject_1;
9168
8987
 
9169
8988
  /**
9170
8989
  * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
@@ -9620,8 +9439,8 @@ var _baseHasIn = baseHasIn$1;
9620
9439
  var castPath = _castPath,
9621
9440
  isArguments$1 = requireIsArguments(),
9622
9441
  isArray$8 = isArray_1,
9623
- isIndex = require_isIndex(),
9624
- isLength = requireIsLength(),
9442
+ isIndex = _isIndex,
9443
+ isLength = isLength_1,
9625
9444
  toKey$3 = _toKey;
9626
9445
 
9627
9446
  /**
@@ -9794,7 +9613,7 @@ var property_1 = property$1;
9794
9613
 
9795
9614
  var baseMatches = _baseMatches,
9796
9615
  baseMatchesProperty = _baseMatchesProperty,
9797
- identity = requireIdentity(),
9616
+ identity = identity_1,
9798
9617
  isArray$7 = isArray_1,
9799
9618
  property = property_1;
9800
9619
 
@@ -9961,54 +9780,46 @@ function flatten$1(array) {
9961
9780
 
9962
9781
  var flatten_1 = flatten$1;
9963
9782
 
9964
- var _overRest;
9965
- var hasRequired_overRest;
9783
+ var apply = _apply;
9966
9784
 
9967
- function require_overRest () {
9968
- if (hasRequired_overRest) return _overRest;
9969
- hasRequired_overRest = 1;
9970
- var apply = require_apply();
9971
-
9972
- /* Built-in method references for those with the same name as other `lodash` methods. */
9973
- var nativeMax = Math.max;
9974
-
9975
- /**
9976
- * A specialized version of `baseRest` which transforms the rest array.
9977
- *
9978
- * @private
9979
- * @param {Function} func The function to apply a rest parameter to.
9980
- * @param {number} [start=func.length-1] The start position of the rest parameter.
9981
- * @param {Function} transform The rest array transform.
9982
- * @returns {Function} Returns the new function.
9983
- */
9984
- function overRest(func, start, transform) {
9985
- start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
9986
- return function() {
9987
- var args = arguments,
9988
- index = -1,
9989
- length = nativeMax(args.length - start, 0),
9990
- array = Array(length);
9785
+ /* Built-in method references for those with the same name as other `lodash` methods. */
9786
+ var nativeMax = Math.max;
9991
9787
 
9992
- while (++index < length) {
9993
- array[index] = args[start + index];
9994
- }
9995
- index = -1;
9996
- var otherArgs = Array(start + 1);
9997
- while (++index < start) {
9998
- otherArgs[index] = args[index];
9999
- }
10000
- otherArgs[start] = transform(array);
10001
- return apply(func, this, otherArgs);
10002
- };
10003
- }
9788
+ /**
9789
+ * A specialized version of `baseRest` which transforms the rest array.
9790
+ *
9791
+ * @private
9792
+ * @param {Function} func The function to apply a rest parameter to.
9793
+ * @param {number} [start=func.length-1] The start position of the rest parameter.
9794
+ * @param {Function} transform The rest array transform.
9795
+ * @returns {Function} Returns the new function.
9796
+ */
9797
+ function overRest$1(func, start, transform) {
9798
+ start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
9799
+ return function() {
9800
+ var args = arguments,
9801
+ index = -1,
9802
+ length = nativeMax(args.length - start, 0),
9803
+ array = Array(length);
10004
9804
 
10005
- _overRest = overRest;
10006
- return _overRest;
9805
+ while (++index < length) {
9806
+ array[index] = args[start + index];
9807
+ }
9808
+ index = -1;
9809
+ var otherArgs = Array(start + 1);
9810
+ while (++index < start) {
9811
+ otherArgs[index] = args[index];
9812
+ }
9813
+ otherArgs[start] = transform(array);
9814
+ return apply(func, this, otherArgs);
9815
+ };
10007
9816
  }
10008
9817
 
9818
+ var _overRest = overRest$1;
9819
+
10009
9820
  var flatten = flatten_1,
10010
- overRest = require_overRest(),
10011
- setToString = require_setToString();
9821
+ overRest = _overRest,
9822
+ setToString = _setToString;
10012
9823
 
10013
9824
  /**
10014
9825
  * A specialized version of `baseRest` which flattens the rest array.
@@ -10133,7 +9944,7 @@ var hasRequired_assignMergeValue;
10133
9944
  function require_assignMergeValue () {
10134
9945
  if (hasRequired_assignMergeValue) return _assignMergeValue;
10135
9946
  hasRequired_assignMergeValue = 1;
10136
- var baseAssignValue = require_baseAssignValue(),
9947
+ var baseAssignValue = _baseAssignValue,
10137
9948
  eq = requireEq();
10138
9949
 
10139
9950
  /**
@@ -10222,7 +10033,7 @@ var hasRequiredIsArrayLikeObject;
10222
10033
  function requireIsArrayLikeObject () {
10223
10034
  if (hasRequiredIsArrayLikeObject) return isArrayLikeObject_1;
10224
10035
  hasRequiredIsArrayLikeObject = 1;
10225
- var isArrayLike = requireIsArrayLike(),
10036
+ var isArrayLike = isArrayLike_1,
10226
10037
  isObjectLike = isObjectLike_1;
10227
10038
 
10228
10039
  /**
@@ -10337,18 +10148,18 @@ function require_baseMergeDeep () {
10337
10148
  if (hasRequired_baseMergeDeep) return _baseMergeDeep;
10338
10149
  hasRequired_baseMergeDeep = 1;
10339
10150
  var assignMergeValue = require_assignMergeValue(),
10340
- cloneBuffer = require_cloneBuffer(),
10151
+ cloneBuffer = _cloneBufferExports,
10341
10152
  cloneTypedArray = require_cloneTypedArray(),
10342
10153
  copyArray = _copyArray,
10343
- initCloneObject = require_initCloneObject(),
10154
+ initCloneObject = _initCloneObject,
10344
10155
  isArguments = requireIsArguments(),
10345
10156
  isArray = isArray_1,
10346
10157
  isArrayLikeObject = requireIsArrayLikeObject(),
10347
- isBuffer = requireIsBuffer(),
10158
+ isBuffer = isBufferExports,
10348
10159
  isFunction = isFunction_1,
10349
- isObject = requireIsObject(),
10160
+ isObject = isObject_1,
10350
10161
  isPlainObject = isPlainObject_1,
10351
- isTypedArray = requireIsTypedArray(),
10162
+ isTypedArray = isTypedArray_1,
10352
10163
  safeGet = require_safeGet(),
10353
10164
  toPlainObject = requireToPlainObject();
10354
10165
 
@@ -10443,7 +10254,7 @@ function require_baseMerge () {
10443
10254
  assignMergeValue = require_assignMergeValue(),
10444
10255
  baseFor = require_baseFor(),
10445
10256
  baseMergeDeep = require_baseMergeDeep(),
10446
- isObject = requireIsObject(),
10257
+ isObject = isObject_1,
10447
10258
  keysIn = requireKeysIn(),
10448
10259
  safeGet = require_safeGet();
10449
10260
 
@@ -10490,9 +10301,9 @@ var hasRequired_baseRest;
10490
10301
  function require_baseRest () {
10491
10302
  if (hasRequired_baseRest) return _baseRest;
10492
10303
  hasRequired_baseRest = 1;
10493
- var identity = requireIdentity(),
10494
- overRest = require_overRest(),
10495
- setToString = require_setToString();
10304
+ var identity = identity_1,
10305
+ overRest = _overRest,
10306
+ setToString = _setToString;
10496
10307
 
10497
10308
  /**
10498
10309
  * The base implementation of `_.rest` which doesn't validate or coerce arguments.
@@ -10517,9 +10328,9 @@ function require_isIterateeCall () {
10517
10328
  if (hasRequired_isIterateeCall) return _isIterateeCall;
10518
10329
  hasRequired_isIterateeCall = 1;
10519
10330
  var eq = requireEq(),
10520
- isArrayLike = requireIsArrayLike(),
10521
- isIndex = require_isIndex(),
10522
- isObject = requireIsObject();
10331
+ isArrayLike = isArrayLike_1,
10332
+ isIndex = _isIndex,
10333
+ isObject = isObject_1;
10523
10334
 
10524
10335
  /**
10525
10336
  * Checks if the given arguments are from an iteratee call.
@@ -14086,7 +13897,7 @@ var ipaddr = {
14086
13897
  }).call(commonjsGlobal);
14087
13898
  } (ipaddr));
14088
13899
 
14089
- var __async$1c = (__this, __arguments, generator) => {
13900
+ var __async$1d = (__this, __arguments, generator) => {
14090
13901
  return new Promise((resolve, reject) => {
14091
13902
  var fulfilled = (value) => {
14092
13903
  try {
@@ -14106,7 +13917,7 @@ var __async$1c = (__this, __arguments, generator) => {
14106
13917
  step((generator = generator.apply(__this, __arguments)).next());
14107
13918
  });
14108
13919
  };
14109
- const getEndUserIpAddress = () => __async$1c(void 0, null, function* () {
13920
+ const getEndUserIpAddress = () => __async$1d(void 0, null, function* () {
14110
13921
  try {
14111
13922
  const response = yield axios.get("https://api.ipify.org/?format=json");
14112
13923
  if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
@@ -14198,7 +14009,7 @@ var __objRest$v = (source, exclude) => {
14198
14009
  }
14199
14010
  return target;
14200
14011
  };
14201
- var __async$1b = (__this, __arguments, generator) => {
14012
+ var __async$1c = (__this, __arguments, generator) => {
14202
14013
  return new Promise((resolve, reject) => {
14203
14014
  var fulfilled = (value) => {
14204
14015
  try {
@@ -14238,7 +14049,7 @@ class CarriersAPI {
14238
14049
  /**
14239
14050
  * The `connect` method connects a carrier account to a user's ShipEngine account.
14240
14051
  */
14241
- this.connect = (_a) => __async$1b(this, null, function* () {
14052
+ this.connect = (_a) => __async$1c(this, null, function* () {
14242
14053
  var _b = _a, { carrierCode } = _b, connection = __objRest$v(_b, ["carrierCode"]);
14243
14054
  const endUserIpAddress = yield getEndUserIpAddress();
14244
14055
  if (!endUserIpAddress)
@@ -14352,7 +14163,7 @@ var __objRest$u = (source, exclude) => {
14352
14163
  }
14353
14164
  return target;
14354
14165
  };
14355
- var __async$1a = (__this, __arguments, generator) => {
14166
+ var __async$1b = (__this, __arguments, generator) => {
14356
14167
  return new Promise((resolve, reject) => {
14357
14168
  var fulfilled = (value) => {
14358
14169
  try {
@@ -14394,7 +14205,7 @@ class ConnectionsAPI {
14394
14205
  /**
14395
14206
  * The `connectCarrier` method connects a carrier to account.
14396
14207
  */
14397
- this.connectCarrier = (carrierName, formData) => __async$1a(this, null, function* () {
14208
+ this.connectCarrier = (carrierName, formData) => __async$1b(this, null, function* () {
14398
14209
  return yield this.client.post(
14399
14210
  `/v1/connections/carriers/${carrierName}`,
14400
14211
  formData,
@@ -16578,7 +16389,7 @@ var __spreadValues$U = (a, b) => {
16578
16389
  }
16579
16390
  return a;
16580
16391
  };
16581
- var __async$19 = (__this, __arguments, generator) => {
16392
+ var __async$1a = (__this, __arguments, generator) => {
16582
16393
  return new Promise((resolve, reject) => {
16583
16394
  var fulfilled = (value) => {
16584
16395
  try {
@@ -16617,7 +16428,7 @@ class FundingSourcesAPI {
16617
16428
  * The `create` method creates a new funding source for a given user. This requires
16618
16429
  * payment information to be collected from the user.
16619
16430
  */
16620
- this.create = (createFundingSource) => __async$19(this, null, function* () {
16431
+ this.create = (createFundingSource) => __async$1a(this, null, function* () {
16621
16432
  const endUserIpAddress = yield getEndUserIpAddress();
16622
16433
  if (!endUserIpAddress) {
16623
16434
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16631,7 +16442,7 @@ class FundingSourcesAPI {
16631
16442
  * user to update the billing address or payment information associated with the
16632
16443
  * funding source.
16633
16444
  */
16634
- this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$19(this, null, function* () {
16445
+ this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$1a(this, null, function* () {
16635
16446
  const endUserIpAddress = yield getEndUserIpAddress();
16636
16447
  if (!endUserIpAddress) {
16637
16448
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16651,7 +16462,7 @@ class FundingSourcesAPI {
16651
16462
  * The `registerCarrier` method registers a carrier account and associates
16652
16463
  * it with a given funding source.
16653
16464
  */
16654
- this.registerCarrier = (carrier) => __async$19(this, null, function* () {
16465
+ this.registerCarrier = (carrier) => __async$1a(this, null, function* () {
16655
16466
  const endUserIpAddress = yield getEndUserIpAddress();
16656
16467
  if (!endUserIpAddress) {
16657
16468
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16663,7 +16474,7 @@ class FundingSourcesAPI {
16663
16474
  /**
16664
16475
  * The `addFunds` method allows you to add funds to a funding source.
16665
16476
  */
16666
- this.addFunds = (amount, fundingSourceId) => __async$19(this, null, function* () {
16477
+ this.addFunds = (amount, fundingSourceId) => __async$1a(this, null, function* () {
16667
16478
  return yield this.client.put(
16668
16479
  `/v1/funding_sources/${fundingSourceId}/add_funds`,
16669
16480
  amount
@@ -16673,7 +16484,7 @@ class FundingSourcesAPI {
16673
16484
  * The `metadata` method returns seller-specific requirements for creating funding sources
16674
16485
  * and attaching carriers
16675
16486
  */
16676
- this.metadata = () => __async$19(this, null, function* () {
16487
+ this.metadata = () => __async$1a(this, null, function* () {
16677
16488
  return yield this.client.get("/v1/funding_sources/metadata");
16678
16489
  });
16679
16490
  /**
@@ -16742,7 +16553,7 @@ class InsuranceAPI {
16742
16553
  }
16743
16554
  }
16744
16555
 
16745
- var __async$18 = (__this, __arguments, generator) => {
16556
+ var __async$19 = (__this, __arguments, generator) => {
16746
16557
  return new Promise((resolve, reject) => {
16747
16558
  var fulfilled = (value) => {
16748
16559
  try {
@@ -16774,13 +16585,13 @@ class InvoiceAddressAPI {
16774
16585
  /**
16775
16586
  * The `create` method creates a new invoice address for a given user.
16776
16587
  */
16777
- this.create = (invoiceAddress) => __async$18(this, null, function* () {
16588
+ this.create = (invoiceAddress) => __async$19(this, null, function* () {
16778
16589
  return yield this.client.post("/v1/invoice_address", invoiceAddress);
16779
16590
  });
16780
16591
  /**
16781
16592
  * The `update` method updates a invoice address for a given user.
16782
16593
  */
16783
- this.update = (invoiceAddress) => __async$18(this, null, function* () {
16594
+ this.update = (invoiceAddress) => __async$19(this, null, function* () {
16784
16595
  return yield this.client.put("/v1/invoice_address", invoiceAddress);
16785
16596
  });
16786
16597
  this.client = client;
@@ -16826,6 +16637,12 @@ class LabelsAPI {
16826
16637
  this.void = (labelId) => {
16827
16638
  return this.client.put(`/v1/labels/${labelId}/void`);
16828
16639
  };
16640
+ /**
16641
+ * The `cancelRefund` method allows a user to cancel a refund request for a label by `labelId`.
16642
+ */
16643
+ this.cancelRefund = (labelId) => {
16644
+ return this.client.post(`/v1/labels/${labelId}/cancel_refund`);
16645
+ };
16829
16646
  /**
16830
16647
  * The `export` method allows to export a CSV document of labels based on the provided parameters.
16831
16648
  */
@@ -17087,7 +16904,7 @@ class SalesOrdersAPI {
17087
16904
  }
17088
16905
  }
17089
16906
 
17090
- var __async$17 = (__this, __arguments, generator) => {
16907
+ var __async$18 = (__this, __arguments, generator) => {
17091
16908
  return new Promise((resolve, reject) => {
17092
16909
  var fulfilled = (value) => {
17093
16910
  try {
@@ -17145,7 +16962,7 @@ class SellersAPI {
17145
16962
  /**
17146
16963
  * Deletes an API Key
17147
16964
  */
17148
- this.deleteSellerApiKey = (_0) => __async$17(this, [_0], function* ({
16965
+ this.deleteSellerApiKey = (_0) => __async$18(this, [_0], function* ({
17149
16966
  encryptedApiKey,
17150
16967
  sellerId,
17151
16968
  isSandbox
@@ -17233,7 +17050,7 @@ class ServicePointsAPI {
17233
17050
  }
17234
17051
  }
17235
17052
 
17236
- var __async$16 = (__this, __arguments, generator) => {
17053
+ var __async$17 = (__this, __arguments, generator) => {
17237
17054
  return new Promise((resolve, reject) => {
17238
17055
  var fulfilled = (value) => {
17239
17056
  try {
@@ -17282,7 +17099,7 @@ class ShipmentsAPI {
17282
17099
  * The `create` method allows for creating shipments based on a list of shipment
17283
17100
  * items passed into this method.
17284
17101
  */
17285
- this.create = (...shipments) => __async$16(this, null, function* () {
17102
+ this.create = (...shipments) => __async$17(this, null, function* () {
17286
17103
  return this.client.post("/v1/shipments", {
17287
17104
  shipments
17288
17105
  });
@@ -34730,7 +34547,7 @@ var __objRest$s = (source, exclude) => {
34730
34547
  }
34731
34548
  return target;
34732
34549
  };
34733
- var __async$15 = (__this, __arguments, generator) => {
34550
+ var __async$16 = (__this, __arguments, generator) => {
34734
34551
  return new Promise((resolve, reject) => {
34735
34552
  var fulfilled = (value) => {
34736
34553
  try {
@@ -34818,7 +34635,7 @@ class ShipEngineAPI {
34818
34635
  });
34819
34636
  client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
34820
34637
  client.interceptors.request.use(
34821
- (config) => __async$15(this, null, function* () {
34638
+ (config) => __async$16(this, null, function* () {
34822
34639
  if (config.isSandbox) {
34823
34640
  if (!this.sandboxToken) {
34824
34641
  this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
@@ -34847,7 +34664,7 @@ class ShipEngineAPI {
34847
34664
  }
34848
34665
  return res;
34849
34666
  },
34850
- (err) => __async$15(this, null, function* () {
34667
+ (err) => __async$16(this, null, function* () {
34851
34668
  var _a, _b, _c, _d, _e;
34852
34669
  if (debug) {
34853
34670
  logger$1.error(
@@ -34896,7 +34713,7 @@ class ShipEngineAPI {
34896
34713
  * that token (also known as Seller ID)
34897
34714
  */
34898
34715
  getTenant(isSandbox) {
34899
- return __async$15(this, null, function* () {
34716
+ return __async$16(this, null, function* () {
34900
34717
  var _a;
34901
34718
  if (!isSandbox) {
34902
34719
  return this.getTenantFromToken(this.token);
@@ -35274,7 +35091,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
35274
35091
  throw error;
35275
35092
  });
35276
35093
 
35277
- var __async$14 = (__this, __arguments, generator) => {
35094
+ var __async$15 = (__this, __arguments, generator) => {
35278
35095
  return new Promise((resolve, reject) => {
35279
35096
  var fulfilled = (value) => {
35280
35097
  try {
@@ -35297,7 +35114,7 @@ var __async$14 = (__this, __arguments, generator) => {
35297
35114
  const useCreateAccountImage = () => {
35298
35115
  const { client } = useShipEngine();
35299
35116
  return reactQuery.useMutation({
35300
- mutationFn: (data) => __async$14(void 0, null, function* () {
35117
+ mutationFn: (data) => __async$15(void 0, null, function* () {
35301
35118
  const result = yield client.accountSettings.createImage(data);
35302
35119
  return result.data;
35303
35120
  }),
@@ -35306,7 +35123,7 @@ const useCreateAccountImage = () => {
35306
35123
  });
35307
35124
  };
35308
35125
 
35309
- var __async$13 = (__this, __arguments, generator) => {
35126
+ var __async$14 = (__this, __arguments, generator) => {
35310
35127
  return new Promise((resolve, reject) => {
35311
35128
  var fulfilled = (value) => {
35312
35129
  try {
@@ -35329,7 +35146,7 @@ var __async$13 = (__this, __arguments, generator) => {
35329
35146
  const useDeleteAccountImage = () => {
35330
35147
  const { client } = useShipEngine();
35331
35148
  return reactQuery.useMutation({
35332
- mutationFn: (labelImageId) => __async$13(void 0, null, function* () {
35149
+ mutationFn: (labelImageId) => __async$14(void 0, null, function* () {
35333
35150
  const result = yield client.accountSettings.deleteImage(labelImageId);
35334
35151
  return result.data;
35335
35152
  }),
@@ -35358,7 +35175,7 @@ const useGetAccountSettings = () => {
35358
35175
  });
35359
35176
  };
35360
35177
 
35361
- var __async$12 = (__this, __arguments, generator) => {
35178
+ var __async$13 = (__this, __arguments, generator) => {
35362
35179
  return new Promise((resolve, reject) => {
35363
35180
  var fulfilled = (value) => {
35364
35181
  try {
@@ -35381,7 +35198,7 @@ var __async$12 = (__this, __arguments, generator) => {
35381
35198
  const useUpdateAccountImage = () => {
35382
35199
  const { client } = useShipEngine();
35383
35200
  return reactQuery.useMutation({
35384
- mutationFn: (data) => __async$12(void 0, null, function* () {
35201
+ mutationFn: (data) => __async$13(void 0, null, function* () {
35385
35202
  const result = yield client.accountSettings.updateImage(data);
35386
35203
  return result.data;
35387
35204
  }),
@@ -35390,7 +35207,7 @@ const useUpdateAccountImage = () => {
35390
35207
  });
35391
35208
  };
35392
35209
 
35393
- var __async$11 = (__this, __arguments, generator) => {
35210
+ var __async$12 = (__this, __arguments, generator) => {
35394
35211
  return new Promise((resolve, reject) => {
35395
35212
  var fulfilled = (value) => {
35396
35213
  try {
@@ -35413,7 +35230,7 @@ var __async$11 = (__this, __arguments, generator) => {
35413
35230
  const useUpdateAccountSettings = () => {
35414
35231
  const { client } = useShipEngine();
35415
35232
  return reactQuery.useMutation({
35416
- mutationFn: (settings) => __async$11(void 0, null, function* () {
35233
+ mutationFn: (settings) => __async$12(void 0, null, function* () {
35417
35234
  const result = yield client.accountSettings.update(settings);
35418
35235
  return result.data;
35419
35236
  }),
@@ -35470,7 +35287,7 @@ var __spreadValues$O = (a, b) => {
35470
35287
  return a;
35471
35288
  };
35472
35289
  var __spreadProps$L = (a, b) => __defProps$L(a, __getOwnPropDescs$L(b));
35473
- var __async$10 = (__this, __arguments, generator) => {
35290
+ var __async$11 = (__this, __arguments, generator) => {
35474
35291
  return new Promise((resolve, reject) => {
35475
35292
  var fulfilled = (value) => {
35476
35293
  try {
@@ -35493,7 +35310,7 @@ var __async$10 = (__this, __arguments, generator) => {
35493
35310
  const useEnableAccountAddon = (params) => {
35494
35311
  const { client } = useShipEngine();
35495
35312
  return reactQuery.useMutation(__spreadProps$L(__spreadValues$O({}, params), {
35496
- mutationFn: (addonType) => __async$10(void 0, null, function* () {
35313
+ mutationFn: (addonType) => __async$11(void 0, null, function* () {
35497
35314
  const result = yield client.accountAddons.enable(addonType);
35498
35315
  return result.data;
35499
35316
  }),
@@ -35521,7 +35338,7 @@ var __spreadValues$N = (a, b) => {
35521
35338
  return a;
35522
35339
  };
35523
35340
  var __spreadProps$K = (a, b) => __defProps$K(a, __getOwnPropDescs$K(b));
35524
- var __async$$ = (__this, __arguments, generator) => {
35341
+ var __async$10 = (__this, __arguments, generator) => {
35525
35342
  return new Promise((resolve, reject) => {
35526
35343
  var fulfilled = (value) => {
35527
35344
  try {
@@ -35544,7 +35361,7 @@ var __async$$ = (__this, __arguments, generator) => {
35544
35361
  const useDisableAccountAddon = (params) => {
35545
35362
  const { client } = useShipEngine();
35546
35363
  return reactQuery.useMutation(__spreadProps$K(__spreadValues$N({}, params), {
35547
- mutationFn: (addonType) => __async$$(void 0, null, function* () {
35364
+ mutationFn: (addonType) => __async$10(void 0, null, function* () {
35548
35365
  const result = yield client.accountAddons.disable(addonType);
35549
35366
  return result.data;
35550
35367
  }),
@@ -35582,7 +35399,7 @@ const useListAccountFeatures = (params) => {
35582
35399
  }));
35583
35400
  };
35584
35401
 
35585
- var __async$_ = (__this, __arguments, generator) => {
35402
+ var __async$$ = (__this, __arguments, generator) => {
35586
35403
  return new Promise((resolve, reject) => {
35587
35404
  var fulfilled = (value) => {
35588
35405
  try {
@@ -35605,7 +35422,7 @@ var __async$_ = (__this, __arguments, generator) => {
35605
35422
  const useRequestAccountFeature = () => {
35606
35423
  const { client } = useShipEngine();
35607
35424
  return reactQuery.useMutation({
35608
- mutationFn: (request) => __async$_(void 0, null, function* () {
35425
+ mutationFn: (request) => __async$$(void 0, null, function* () {
35609
35426
  const result = yield client.accountFeatures.request(request);
35610
35427
  return result.data;
35611
35428
  }),
@@ -35633,7 +35450,7 @@ var __spreadValues$L = (a, b) => {
35633
35450
  return a;
35634
35451
  };
35635
35452
  var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
35636
- var __async$Z = (__this, __arguments, generator) => {
35453
+ var __async$_ = (__this, __arguments, generator) => {
35637
35454
  return new Promise((resolve, reject) => {
35638
35455
  var fulfilled = (value) => {
35639
35456
  try {
@@ -35656,7 +35473,7 @@ var __async$Z = (__this, __arguments, generator) => {
35656
35473
  const useDisableRefundAssist = (params) => {
35657
35474
  const { client } = useShipEngine();
35658
35475
  return reactQuery.useMutation(__spreadProps$I(__spreadValues$L({}, params), {
35659
- mutationFn: () => __async$Z(void 0, null, function* () {
35476
+ mutationFn: () => __async$_(void 0, null, function* () {
35660
35477
  yield client.accountRefundAssist.disable();
35661
35478
  }),
35662
35479
  mutationKey: ["useDisableRefundAssist"],
@@ -35683,7 +35500,7 @@ var __spreadValues$K = (a, b) => {
35683
35500
  return a;
35684
35501
  };
35685
35502
  var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
35686
- var __async$Y = (__this, __arguments, generator) => {
35503
+ var __async$Z = (__this, __arguments, generator) => {
35687
35504
  return new Promise((resolve, reject) => {
35688
35505
  var fulfilled = (value) => {
35689
35506
  try {
@@ -35706,7 +35523,7 @@ var __async$Y = (__this, __arguments, generator) => {
35706
35523
  const useEnableRefundAssist = (params) => {
35707
35524
  const { client } = useShipEngine();
35708
35525
  return reactQuery.useMutation(__spreadProps$H(__spreadValues$K({}, params), {
35709
- mutationFn: () => __async$Y(void 0, null, function* () {
35526
+ mutationFn: () => __async$Z(void 0, null, function* () {
35710
35527
  yield client.accountRefundAssist.enable();
35711
35528
  }),
35712
35529
  mutationKey: ["useEnableRefundAssist"],
@@ -35743,7 +35560,7 @@ const useGetRefundAssist = (params) => {
35743
35560
  }));
35744
35561
  };
35745
35562
 
35746
- var __async$X = (__this, __arguments, generator) => {
35563
+ var __async$Y = (__this, __arguments, generator) => {
35747
35564
  return new Promise((resolve, reject) => {
35748
35565
  var fulfilled = (value) => {
35749
35566
  try {
@@ -35766,7 +35583,7 @@ var __async$X = (__this, __arguments, generator) => {
35766
35583
  const useParseAddress = () => {
35767
35584
  const { client } = useShipEngine();
35768
35585
  return reactQuery.useMutation({
35769
- mutationFn: (_0) => __async$X(void 0, [_0], function* ({ address, text }) {
35586
+ mutationFn: (_0) => __async$Y(void 0, [_0], function* ({ address, text }) {
35770
35587
  const result = yield client.addresses.parse(text, address);
35771
35588
  return result.data;
35772
35589
  }),
@@ -35775,7 +35592,7 @@ const useParseAddress = () => {
35775
35592
  });
35776
35593
  };
35777
35594
 
35778
- var __async$W = (__this, __arguments, generator) => {
35595
+ var __async$X = (__this, __arguments, generator) => {
35779
35596
  return new Promise((resolve, reject) => {
35780
35597
  var fulfilled = (value) => {
35781
35598
  try {
@@ -35798,7 +35615,7 @@ var __async$W = (__this, __arguments, generator) => {
35798
35615
  const useValidateAddresses = () => {
35799
35616
  const { client } = useShipEngine();
35800
35617
  return reactQuery.useMutation({
35801
- mutationFn: (addresses) => __async$W(void 0, null, function* () {
35618
+ mutationFn: (addresses) => __async$X(void 0, null, function* () {
35802
35619
  const result = yield client.addresses.validate(addresses);
35803
35620
  return result.data;
35804
35621
  }),
@@ -35826,7 +35643,7 @@ var __spreadValues$I = (a, b) => {
35826
35643
  return a;
35827
35644
  };
35828
35645
  var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
35829
- var __async$V = (__this, __arguments, generator) => {
35646
+ var __async$W = (__this, __arguments, generator) => {
35830
35647
  return new Promise((resolve, reject) => {
35831
35648
  var fulfilled = (value) => {
35832
35649
  try {
@@ -35849,7 +35666,7 @@ var __async$V = (__this, __arguments, generator) => {
35849
35666
  const useCreateAuctanePaySession = (params) => {
35850
35667
  const { client } = useShipEngine();
35851
35668
  return reactQuery.useMutation(__spreadProps$F(__spreadValues$I({}, params), {
35852
- mutationFn: (request) => __async$V(void 0, null, function* () {
35669
+ mutationFn: (request) => __async$W(void 0, null, function* () {
35853
35670
  const result = yield client.auctanePay.createSession(request);
35854
35671
  return result.data;
35855
35672
  }),
@@ -35907,7 +35724,7 @@ var __spreadValues$G = (a, b) => {
35907
35724
  return a;
35908
35725
  };
35909
35726
  var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
35910
- var __async$U = (__this, __arguments, generator) => {
35727
+ var __async$V = (__this, __arguments, generator) => {
35911
35728
  return new Promise((resolve, reject) => {
35912
35729
  var fulfilled = (value) => {
35913
35730
  try {
@@ -35930,7 +35747,7 @@ var __async$U = (__this, __arguments, generator) => {
35930
35747
  const usePreviewTransaction = (params) => {
35931
35748
  const { client } = useShipEngine();
35932
35749
  return reactQuery.useMutation(__spreadProps$D(__spreadValues$G({}, params), {
35933
- mutationFn: (_0) => __async$U(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
35750
+ mutationFn: (_0) => __async$V(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
35934
35751
  const request = {
35935
35752
  amount,
35936
35753
  transactionCategory
@@ -35992,7 +35809,7 @@ var __spreadValues$E = (a, b) => {
35992
35809
  return a;
35993
35810
  };
35994
35811
  var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
35995
- var __async$T = (__this, __arguments, generator) => {
35812
+ var __async$U = (__this, __arguments, generator) => {
35996
35813
  return new Promise((resolve, reject) => {
35997
35814
  var fulfilled = (value) => {
35998
35815
  try {
@@ -36015,7 +35832,7 @@ var __async$T = (__this, __arguments, generator) => {
36015
35832
  const useDeletePaymentMethod = (params) => {
36016
35833
  const { client } = useShipEngine();
36017
35834
  return reactQuery.useMutation(__spreadProps$B(__spreadValues$E({}, params), {
36018
- mutationFn: (paymentMethodId) => __async$T(void 0, null, function* () {
35835
+ mutationFn: (paymentMethodId) => __async$U(void 0, null, function* () {
36019
35836
  const result = yield client.auctanePay.deletePaymentMethod(paymentMethodId);
36020
35837
  return result.data;
36021
35838
  }),
@@ -36043,7 +35860,7 @@ var __spreadValues$D = (a, b) => {
36043
35860
  return a;
36044
35861
  };
36045
35862
  var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
36046
- var __async$S = (__this, __arguments, generator) => {
35863
+ var __async$T = (__this, __arguments, generator) => {
36047
35864
  return new Promise((resolve, reject) => {
36048
35865
  var fulfilled = (value) => {
36049
35866
  try {
@@ -36066,7 +35883,7 @@ var __async$S = (__this, __arguments, generator) => {
36066
35883
  const useUpdatePaymentMethod = (params) => {
36067
35884
  const { client } = useShipEngine();
36068
35885
  return reactQuery.useMutation(__spreadProps$A(__spreadValues$D({}, params), {
36069
- mutationFn: (_0) => __async$S(void 0, [_0], function* ({ paymentMethodId, payload }) {
35886
+ mutationFn: (_0) => __async$T(void 0, [_0], function* ({ paymentMethodId, payload }) {
36070
35887
  const result = yield client.auctanePay.updatePaymentMethod(paymentMethodId, payload);
36071
35888
  return result.data;
36072
35889
  }),
@@ -36094,7 +35911,7 @@ var __spreadValues$C = (a, b) => {
36094
35911
  return a;
36095
35912
  };
36096
35913
  var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
36097
- var __async$R = (__this, __arguments, generator) => {
35914
+ var __async$S = (__this, __arguments, generator) => {
36098
35915
  return new Promise((resolve, reject) => {
36099
35916
  var fulfilled = (value) => {
36100
35917
  try {
@@ -36117,7 +35934,7 @@ var __async$R = (__this, __arguments, generator) => {
36117
35934
  const useIdentityVerification = (params) => {
36118
35935
  const { client } = useShipEngine();
36119
35936
  return reactQuery.useMutation(__spreadProps$z(__spreadValues$C({}, params), {
36120
- mutationFn: () => __async$R(void 0, null, function* () {
35937
+ mutationFn: () => __async$S(void 0, null, function* () {
36121
35938
  const result = yield client.auctanePay.identityVerification();
36122
35939
  return result.data;
36123
35940
  }),
@@ -36156,7 +35973,7 @@ const useGetPaymentAccount = (params) => {
36156
35973
  }));
36157
35974
  };
36158
35975
 
36159
- var __async$Q = (__this, __arguments, generator) => {
35976
+ var __async$R = (__this, __arguments, generator) => {
36160
35977
  return new Promise((resolve, reject) => {
36161
35978
  var fulfilled = (value) => {
36162
35979
  try {
@@ -36179,7 +35996,7 @@ var __async$Q = (__this, __arguments, generator) => {
36179
35996
  const useAcceptCarrierTerms = (carrierId) => {
36180
35997
  const { client } = useShipEngine();
36181
35998
  return reactQuery.useMutation({
36182
- mutationFn: (request) => __async$Q(void 0, null, function* () {
35999
+ mutationFn: (request) => __async$R(void 0, null, function* () {
36183
36000
  const result = yield client.carriers.acceptTerms(carrierId, request);
36184
36001
  return result.data.acceptedTerms;
36185
36002
  }),
@@ -36188,7 +36005,7 @@ const useAcceptCarrierTerms = (carrierId) => {
36188
36005
  });
36189
36006
  };
36190
36007
 
36191
- var __async$P = (__this, __arguments, generator) => {
36008
+ var __async$Q = (__this, __arguments, generator) => {
36192
36009
  return new Promise((resolve, reject) => {
36193
36010
  var fulfilled = (value) => {
36194
36011
  try {
@@ -36211,7 +36028,7 @@ var __async$P = (__this, __arguments, generator) => {
36211
36028
  const useAddFunds = () => {
36212
36029
  const { client } = useShipEngine();
36213
36030
  return reactQuery.useMutation({
36214
- mutationFn: (_0) => __async$P(void 0, [_0], function* ({ carrierId, funds }) {
36031
+ mutationFn: (_0) => __async$Q(void 0, [_0], function* ({ carrierId, funds }) {
36215
36032
  const result = yield client.carriers.addFunds(carrierId, funds);
36216
36033
  return result.data;
36217
36034
  }),
@@ -36220,7 +36037,7 @@ const useAddFunds = () => {
36220
36037
  });
36221
36038
  };
36222
36039
 
36223
- var __async$O = (__this, __arguments, generator) => {
36040
+ var __async$P = (__this, __arguments, generator) => {
36224
36041
  return new Promise((resolve, reject) => {
36225
36042
  var fulfilled = (value) => {
36226
36043
  try {
@@ -36243,7 +36060,7 @@ var __async$O = (__this, __arguments, generator) => {
36243
36060
  const useConnectCarrier = () => {
36244
36061
  const { client } = useShipEngine();
36245
36062
  return reactQuery.useMutation({
36246
- mutationFn: (params) => __async$O(void 0, null, function* () {
36063
+ mutationFn: (params) => __async$P(void 0, null, function* () {
36247
36064
  const result = yield client.carriers.connect(params);
36248
36065
  return result.data;
36249
36066
  }),
@@ -36409,7 +36226,7 @@ var __objRest$q = (source, exclude) => {
36409
36226
  }
36410
36227
  return target;
36411
36228
  };
36412
- var __async$N = (__this, __arguments, generator) => {
36229
+ var __async$O = (__this, __arguments, generator) => {
36413
36230
  return new Promise((resolve, reject) => {
36414
36231
  var fulfilled = (value) => {
36415
36232
  try {
@@ -36433,7 +36250,7 @@ const useUpdateAutoFunding = () => {
36433
36250
  const { client } = useShipEngine();
36434
36251
  const queryClient = reactQuery.useQueryClient();
36435
36252
  return reactQuery.useMutation({
36436
- mutationFn: (_a) => __async$N(void 0, null, function* () {
36253
+ mutationFn: (_a) => __async$O(void 0, null, function* () {
36437
36254
  var _b = _a, { carrierId } = _b, options = __objRest$q(_b, ["carrierId"]);
36438
36255
  const result = yield client.carriers.updateAutoFunding(carrierId, options);
36439
36256
  return result.data;
@@ -36463,7 +36280,7 @@ const useGetZonesByCarrier = (carrierId) => {
36463
36280
  });
36464
36281
  };
36465
36282
 
36466
- var __async$M = (__this, __arguments, generator) => {
36283
+ var __async$N = (__this, __arguments, generator) => {
36467
36284
  return new Promise((resolve, reject) => {
36468
36285
  var fulfilled = (value) => {
36469
36286
  try {
@@ -36486,7 +36303,7 @@ var __async$M = (__this, __arguments, generator) => {
36486
36303
  const useDeleteCarrier = () => {
36487
36304
  const { client } = useShipEngine();
36488
36305
  return reactQuery.useMutation({
36489
- mutationFn: (carrierId) => __async$M(void 0, null, function* () {
36306
+ mutationFn: (carrierId) => __async$N(void 0, null, function* () {
36490
36307
  const result = yield client.carriers.delete(carrierId);
36491
36308
  return result.data;
36492
36309
  }),
@@ -36568,7 +36385,7 @@ var __spreadValues$z = (a, b) => {
36568
36385
  return a;
36569
36386
  };
36570
36387
  var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
36571
- var __async$L = (__this, __arguments, generator) => {
36388
+ var __async$M = (__this, __arguments, generator) => {
36572
36389
  return new Promise((resolve, reject) => {
36573
36390
  var fulfilled = (value) => {
36574
36391
  try {
@@ -36591,7 +36408,7 @@ var __async$L = (__this, __arguments, generator) => {
36591
36408
  const useConnectCarrierAccount = () => {
36592
36409
  const { client } = useShipEngine();
36593
36410
  return reactQuery.useMutation({
36594
- mutationFn: (_0) => __async$L(void 0, [_0], function* ({ carrierName, formData }) {
36411
+ mutationFn: (_0) => __async$M(void 0, [_0], function* ({ carrierName, formData }) {
36595
36412
  const formDataWithFlag = __spreadProps$w(__spreadValues$z({}, formData), { __skipDecamelize: true });
36596
36413
  const result = yield client.connections.connectCarrier(carrierName, formDataWithFlag);
36597
36414
  return result.data;
@@ -36678,7 +36495,7 @@ var __spreadValues$x = (a, b) => {
36678
36495
  return a;
36679
36496
  };
36680
36497
  var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
36681
- var __async$K = (__this, __arguments, generator) => {
36498
+ var __async$L = (__this, __arguments, generator) => {
36682
36499
  return new Promise((resolve, reject) => {
36683
36500
  var fulfilled = (value) => {
36684
36501
  try {
@@ -36701,7 +36518,7 @@ var __async$K = (__this, __arguments, generator) => {
36701
36518
  const useUpdateConnectionsCarrierSettings = (params) => {
36702
36519
  const { client } = useShipEngine();
36703
36520
  return reactQuery.useMutation(__spreadProps$u(__spreadValues$x({}, params), {
36704
- mutationFn: (_0) => __async$K(void 0, [_0], function* ({
36521
+ mutationFn: (_0) => __async$L(void 0, [_0], function* ({
36705
36522
  carrierName,
36706
36523
  carrierId,
36707
36524
  formData
@@ -36737,7 +36554,7 @@ var __spreadValues$w = (a, b) => {
36737
36554
  return a;
36738
36555
  };
36739
36556
  var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
36740
- var __async$J = (__this, __arguments, generator) => {
36557
+ var __async$K = (__this, __arguments, generator) => {
36741
36558
  return new Promise((resolve, reject) => {
36742
36559
  var fulfilled = (value) => {
36743
36560
  try {
@@ -36760,7 +36577,7 @@ var __async$J = (__this, __arguments, generator) => {
36760
36577
  const useRequestStampsAccountUrls = (params) => {
36761
36578
  const { client } = useShipEngine();
36762
36579
  return reactQuery.useMutation(__spreadProps$t(__spreadValues$w({}, params), {
36763
- mutationFn: (request) => __async$J(void 0, null, function* () {
36580
+ mutationFn: (request) => __async$K(void 0, null, function* () {
36764
36581
  const result = yield client.connections.requestStampsAccountUrls(request);
36765
36582
  return result.data;
36766
36583
  }),
@@ -36779,7 +36596,7 @@ const useListCustomPackageTypes = () => {
36779
36596
  });
36780
36597
  };
36781
36598
 
36782
- var __async$I = (__this, __arguments, generator) => {
36599
+ var __async$J = (__this, __arguments, generator) => {
36783
36600
  return new Promise((resolve, reject) => {
36784
36601
  var fulfilled = (value) => {
36785
36602
  try {
@@ -36802,7 +36619,7 @@ var __async$I = (__this, __arguments, generator) => {
36802
36619
  const useAcceptFundingSourceTerms = (fundingSourceId) => {
36803
36620
  const { client } = useShipEngine();
36804
36621
  return reactQuery.useMutation({
36805
- mutationFn: (request) => __async$I(void 0, null, function* () {
36622
+ mutationFn: (request) => __async$J(void 0, null, function* () {
36806
36623
  const result = yield client.fundingSources.acceptTerms(fundingSourceId, request);
36807
36624
  return result.data.acceptedTerms;
36808
36625
  }),
@@ -36811,7 +36628,7 @@ const useAcceptFundingSourceTerms = (fundingSourceId) => {
36811
36628
  });
36812
36629
  };
36813
36630
 
36814
- var __async$H = (__this, __arguments, generator) => {
36631
+ var __async$I = (__this, __arguments, generator) => {
36815
36632
  return new Promise((resolve, reject) => {
36816
36633
  var fulfilled = (value) => {
36817
36634
  try {
@@ -36834,7 +36651,7 @@ var __async$H = (__this, __arguments, generator) => {
36834
36651
  const useCreateFundingSource = () => {
36835
36652
  const { client } = useShipEngine();
36836
36653
  return reactQuery.useMutation({
36837
- mutationFn: (fundingSource) => __async$H(void 0, null, function* () {
36654
+ mutationFn: (fundingSource) => __async$I(void 0, null, function* () {
36838
36655
  const result = yield client.fundingSources.create(fundingSource);
36839
36656
  return result.data;
36840
36657
  }),
@@ -36843,7 +36660,7 @@ const useCreateFundingSource = () => {
36843
36660
  });
36844
36661
  };
36845
36662
 
36846
- var __async$G = (__this, __arguments, generator) => {
36663
+ var __async$H = (__this, __arguments, generator) => {
36847
36664
  return new Promise((resolve, reject) => {
36848
36665
  var fulfilled = (value) => {
36849
36666
  try {
@@ -36866,7 +36683,7 @@ var __async$G = (__this, __arguments, generator) => {
36866
36683
  const useFundingSourcesAddFunds = () => {
36867
36684
  const { client } = useShipEngine();
36868
36685
  return reactQuery.useMutation({
36869
- mutationFn: (_0) => __async$G(void 0, [_0], function* ({ funds, fundingSourceId }) {
36686
+ mutationFn: (_0) => __async$H(void 0, [_0], function* ({ funds, fundingSourceId }) {
36870
36687
  const result = yield client.fundingSources.addFunds(funds, fundingSourceId);
36871
36688
  return result.data;
36872
36689
  }),
@@ -36925,7 +36742,7 @@ const useListFundingSources = () => {
36925
36742
  });
36926
36743
  };
36927
36744
 
36928
- var __async$F = (__this, __arguments, generator) => {
36745
+ var __async$G = (__this, __arguments, generator) => {
36929
36746
  return new Promise((resolve, reject) => {
36930
36747
  var fulfilled = (value) => {
36931
36748
  try {
@@ -36948,7 +36765,7 @@ var __async$F = (__this, __arguments, generator) => {
36948
36765
  const useRegisterCarrier = () => {
36949
36766
  const { client } = useShipEngine();
36950
36767
  return reactQuery.useMutation({
36951
- mutationFn: (carrier) => __async$F(void 0, null, function* () {
36768
+ mutationFn: (carrier) => __async$G(void 0, null, function* () {
36952
36769
  const result = yield client.fundingSources.registerCarrier(carrier);
36953
36770
  return result.data;
36954
36771
  }),
@@ -36957,7 +36774,7 @@ const useRegisterCarrier = () => {
36957
36774
  });
36958
36775
  };
36959
36776
 
36960
- var __async$E = (__this, __arguments, generator) => {
36777
+ var __async$F = (__this, __arguments, generator) => {
36961
36778
  return new Promise((resolve, reject) => {
36962
36779
  var fulfilled = (value) => {
36963
36780
  try {
@@ -36980,7 +36797,7 @@ var __async$E = (__this, __arguments, generator) => {
36980
36797
  const useUpdateFundingSource = () => {
36981
36798
  const { client } = useShipEngine();
36982
36799
  return reactQuery.useMutation({
36983
- mutationFn: (_0) => __async$E(void 0, [_0], function* ({
36800
+ mutationFn: (_0) => __async$F(void 0, [_0], function* ({
36984
36801
  billingInfo,
36985
36802
  creditCardInfo,
36986
36803
  fundingSourceId,
@@ -37081,7 +36898,7 @@ var __objRest$m = (source, exclude) => {
37081
36898
  }
37082
36899
  return target;
37083
36900
  };
37084
- var __async$D = (__this, __arguments, generator) => {
36901
+ var __async$E = (__this, __arguments, generator) => {
37085
36902
  return new Promise((resolve, reject) => {
37086
36903
  var fulfilled = (value) => {
37087
36904
  try {
@@ -37104,7 +36921,7 @@ var __async$D = (__this, __arguments, generator) => {
37104
36921
  const useAddInsuranceFunds = () => {
37105
36922
  const { client } = useShipEngine();
37106
36923
  return reactQuery.useMutation({
37107
- mutationFn: (_a) => __async$D(void 0, null, function* () {
36924
+ mutationFn: (_a) => __async$E(void 0, null, function* () {
37108
36925
  var _b = _a, { insuranceProvider } = _b, rest = __objRest$m(_b, ["insuranceProvider"]);
37109
36926
  const result = yield client.insurance.addFunds(insuranceProvider, rest);
37110
36927
  return result.data;
@@ -37133,7 +36950,7 @@ var __spreadValues$t = (a, b) => {
37133
36950
  return a;
37134
36951
  };
37135
36952
  var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
37136
- var __async$C = (__this, __arguments, generator) => {
36953
+ var __async$D = (__this, __arguments, generator) => {
37137
36954
  return new Promise((resolve, reject) => {
37138
36955
  var fulfilled = (value) => {
37139
36956
  try {
@@ -37156,7 +36973,7 @@ var __async$C = (__this, __arguments, generator) => {
37156
36973
  const useCreateInvoiceAddress = (params) => {
37157
36974
  const { client } = useShipEngine();
37158
36975
  return reactQuery.useMutation(__spreadProps$q(__spreadValues$t({}, params), {
37159
- mutationFn: (invoiceAddress) => __async$C(void 0, null, function* () {
36976
+ mutationFn: (invoiceAddress) => __async$D(void 0, null, function* () {
37160
36977
  const result = yield client.invoiceAddress.create(invoiceAddress);
37161
36978
  return result.data;
37162
36979
  }),
@@ -37184,7 +37001,7 @@ var __spreadValues$s = (a, b) => {
37184
37001
  return a;
37185
37002
  };
37186
37003
  var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
37187
- var __async$B = (__this, __arguments, generator) => {
37004
+ var __async$C = (__this, __arguments, generator) => {
37188
37005
  return new Promise((resolve, reject) => {
37189
37006
  var fulfilled = (value) => {
37190
37007
  try {
@@ -37207,7 +37024,7 @@ var __async$B = (__this, __arguments, generator) => {
37207
37024
  const useUpdateInvoiceAddress = (params) => {
37208
37025
  const { client } = useShipEngine();
37209
37026
  return reactQuery.useMutation(__spreadProps$p(__spreadValues$s({}, params), {
37210
- mutationFn: (invoiceAddress) => __async$B(void 0, null, function* () {
37027
+ mutationFn: (invoiceAddress) => __async$C(void 0, null, function* () {
37211
37028
  const result = yield client.invoiceAddress.update(invoiceAddress);
37212
37029
  return result.data;
37213
37030
  }),
@@ -37245,6 +37062,38 @@ const useGetInvoiceAddress = (params) => {
37245
37062
  }));
37246
37063
  };
37247
37064
 
37065
+ var __async$B = (__this, __arguments, generator) => {
37066
+ return new Promise((resolve, reject) => {
37067
+ var fulfilled = (value) => {
37068
+ try {
37069
+ step(generator.next(value));
37070
+ } catch (e) {
37071
+ reject(e);
37072
+ }
37073
+ };
37074
+ var rejected = (value) => {
37075
+ try {
37076
+ step(generator.throw(value));
37077
+ } catch (e) {
37078
+ reject(e);
37079
+ }
37080
+ };
37081
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
37082
+ step((generator = generator.apply(__this, __arguments)).next());
37083
+ });
37084
+ };
37085
+ const useCancelRefund = () => {
37086
+ const { client } = useShipEngine();
37087
+ return reactQuery.useMutation({
37088
+ mutationFn: (labelId) => __async$B(void 0, null, function* () {
37089
+ const result = yield client.labels.cancelRefund(labelId);
37090
+ return result.data;
37091
+ }),
37092
+ mutationKey: ["useCancelRefund"],
37093
+ onError
37094
+ });
37095
+ };
37096
+
37248
37097
  var __defProp$q = Object.defineProperty;
37249
37098
  var __defProps$n = Object.defineProperties;
37250
37099
  var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
@@ -37437,21 +37286,6 @@ const useCreateLabel = (params) => {
37437
37286
  }));
37438
37287
  };
37439
37288
 
37440
- const useGetLabel = (labelId) => {
37441
- const { client } = useShipEngine();
37442
- return reactQuery.useQuery({
37443
- enabled: labelId !== void 0,
37444
- onError,
37445
- queryFn: () => {
37446
- if (labelId)
37447
- return client.labels.get(labelId);
37448
- return Promise.reject(new Error("labelId is require"));
37449
- },
37450
- queryKey: ["useGetLabel", labelId],
37451
- select: (result) => result.data
37452
- });
37453
- };
37454
-
37455
37289
  var __defProp$n = Object.defineProperty;
37456
37290
  var __defProps$k = Object.defineProperties;
37457
37291
  var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
@@ -37483,46 +37317,28 @@ var __objRest$i = (source, exclude) => {
37483
37317
  }
37484
37318
  return target;
37485
37319
  };
37486
- const useListLabels = (params) => {
37320
+ const useExportLabels = (params) => {
37487
37321
  const { client } = useShipEngine();
37488
37322
  const _a = __spreadValues$n({}, params), { queryFnParams } = _a, rest = __objRest$i(_a, ["queryFnParams"]);
37489
37323
  return reactQuery.useQuery(__spreadProps$k(__spreadValues$n({}, rest), {
37490
37324
  onError,
37491
- queryFn: () => client.labels.list(queryFnParams),
37492
- queryKey: ["useListLabels", params],
37493
- select: (result) => result.data
37325
+ queryFn: () => client.labels.export(queryFnParams),
37326
+ queryKey: ["useExportLabels", params]
37494
37327
  }));
37495
37328
  };
37496
37329
 
37497
- var __async$x = (__this, __arguments, generator) => {
37498
- return new Promise((resolve, reject) => {
37499
- var fulfilled = (value) => {
37500
- try {
37501
- step(generator.next(value));
37502
- } catch (e) {
37503
- reject(e);
37504
- }
37505
- };
37506
- var rejected = (value) => {
37507
- try {
37508
- step(generator.throw(value));
37509
- } catch (e) {
37510
- reject(e);
37511
- }
37512
- };
37513
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
37514
- step((generator = generator.apply(__this, __arguments)).next());
37515
- });
37516
- };
37517
- const useVoidLabel = () => {
37330
+ const useGetLabel = (labelId) => {
37518
37331
  const { client } = useShipEngine();
37519
- return reactQuery.useMutation({
37520
- mutationFn: (labelId) => __async$x(void 0, null, function* () {
37521
- const result = yield client.labels.void(labelId);
37522
- return result.data;
37523
- }),
37524
- mutationKey: ["useVoidLabel"],
37525
- onError
37332
+ return reactQuery.useQuery({
37333
+ enabled: labelId !== void 0,
37334
+ onError,
37335
+ queryFn: () => {
37336
+ if (labelId)
37337
+ return client.labels.get(labelId);
37338
+ return Promise.reject(new Error("labelId is require"));
37339
+ },
37340
+ queryKey: ["useGetLabel", labelId],
37341
+ select: (result) => result.data
37526
37342
  });
37527
37343
  };
37528
37344
 
@@ -37557,7 +37373,49 @@ var __objRest$h = (source, exclude) => {
37557
37373
  }
37558
37374
  return target;
37559
37375
  };
37560
- var __async$w = (__this, __arguments, generator) => {
37376
+ const useListLabels = (params) => {
37377
+ const { client } = useShipEngine();
37378
+ const _a = __spreadValues$m({}, params), { queryFnParams } = _a, rest = __objRest$h(_a, ["queryFnParams"]);
37379
+ return reactQuery.useQuery(__spreadProps$j(__spreadValues$m({}, rest), {
37380
+ onError,
37381
+ queryFn: () => client.labels.list(queryFnParams),
37382
+ queryKey: ["useListLabels", params],
37383
+ select: (result) => result.data
37384
+ }));
37385
+ };
37386
+
37387
+ var __defProp$l = Object.defineProperty;
37388
+ var __defProps$i = Object.defineProperties;
37389
+ var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
37390
+ var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
37391
+ var __hasOwnProp$q = Object.prototype.hasOwnProperty;
37392
+ var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
37393
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37394
+ var __spreadValues$l = (a, b) => {
37395
+ for (var prop in b || (b = {}))
37396
+ if (__hasOwnProp$q.call(b, prop))
37397
+ __defNormalProp$l(a, prop, b[prop]);
37398
+ if (__getOwnPropSymbols$q)
37399
+ for (var prop of __getOwnPropSymbols$q(b)) {
37400
+ if (__propIsEnum$q.call(b, prop))
37401
+ __defNormalProp$l(a, prop, b[prop]);
37402
+ }
37403
+ return a;
37404
+ };
37405
+ var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
37406
+ var __objRest$g = (source, exclude) => {
37407
+ var target = {};
37408
+ for (var prop in source)
37409
+ if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
37410
+ target[prop] = source[prop];
37411
+ if (source != null && __getOwnPropSymbols$q)
37412
+ for (var prop of __getOwnPropSymbols$q(source)) {
37413
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
37414
+ target[prop] = source[prop];
37415
+ }
37416
+ return target;
37417
+ };
37418
+ var __async$x = (__this, __arguments, generator) => {
37561
37419
  return new Promise((resolve, reject) => {
37562
37420
  var fulfilled = (value) => {
37563
37421
  try {
@@ -37579,8 +37437,8 @@ var __async$w = (__this, __arguments, generator) => {
37579
37437
  };
37580
37438
  const useListLabelsInfinite = (params) => {
37581
37439
  const { client } = useShipEngine();
37582
- const _a = __spreadValues$m({}, params), { queryFnParams } = _a, rest = __objRest$h(_a, ["queryFnParams"]);
37583
- return reactQuery.useInfiniteQuery(__spreadProps$j(__spreadValues$m({}, rest), {
37440
+ const _a = __spreadValues$l({}, params), { queryFnParams } = _a, rest = __objRest$g(_a, ["queryFnParams"]);
37441
+ return reactQuery.useInfiniteQuery(__spreadProps$i(__spreadValues$l({}, rest), {
37584
37442
  getNextPageParam: (lastPage) => {
37585
37443
  if (lastPage.page < lastPage.pages) {
37586
37444
  return lastPage.page + 1;
@@ -37588,8 +37446,8 @@ const useListLabelsInfinite = (params) => {
37588
37446
  return void 0;
37589
37447
  },
37590
37448
  onError,
37591
- queryFn: (_0) => __async$w(void 0, [_0], function* ({ pageParam = 1 }) {
37592
- const response = yield client.labels.list(__spreadProps$j(__spreadValues$m({}, queryFnParams), { page: pageParam }));
37449
+ queryFn: (_0) => __async$x(void 0, [_0], function* ({ pageParam = 1 }) {
37450
+ const response = yield client.labels.list(__spreadProps$i(__spreadValues$l({}, queryFnParams), { page: pageParam }));
37593
37451
  return response.data;
37594
37452
  }),
37595
37453
  queryKey: ["useListLabelsInfinite", params],
@@ -37603,45 +37461,36 @@ const useListLabelsInfinite = (params) => {
37603
37461
  }));
37604
37462
  };
37605
37463
 
37606
- var __defProp$l = Object.defineProperty;
37607
- var __defProps$i = Object.defineProperties;
37608
- var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
37609
- var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
37610
- var __hasOwnProp$q = Object.prototype.hasOwnProperty;
37611
- var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
37612
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37613
- var __spreadValues$l = (a, b) => {
37614
- for (var prop in b || (b = {}))
37615
- if (__hasOwnProp$q.call(b, prop))
37616
- __defNormalProp$l(a, prop, b[prop]);
37617
- if (__getOwnPropSymbols$q)
37618
- for (var prop of __getOwnPropSymbols$q(b)) {
37619
- if (__propIsEnum$q.call(b, prop))
37620
- __defNormalProp$l(a, prop, b[prop]);
37621
- }
37622
- return a;
37623
- };
37624
- var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
37625
- var __objRest$g = (source, exclude) => {
37626
- var target = {};
37627
- for (var prop in source)
37628
- if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
37629
- target[prop] = source[prop];
37630
- if (source != null && __getOwnPropSymbols$q)
37631
- for (var prop of __getOwnPropSymbols$q(source)) {
37632
- if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
37633
- target[prop] = source[prop];
37634
- }
37635
- return target;
37464
+ var __async$w = (__this, __arguments, generator) => {
37465
+ return new Promise((resolve, reject) => {
37466
+ var fulfilled = (value) => {
37467
+ try {
37468
+ step(generator.next(value));
37469
+ } catch (e) {
37470
+ reject(e);
37471
+ }
37472
+ };
37473
+ var rejected = (value) => {
37474
+ try {
37475
+ step(generator.throw(value));
37476
+ } catch (e) {
37477
+ reject(e);
37478
+ }
37479
+ };
37480
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
37481
+ step((generator = generator.apply(__this, __arguments)).next());
37482
+ });
37636
37483
  };
37637
- const useExportLabels = (params) => {
37484
+ const useVoidLabel = () => {
37638
37485
  const { client } = useShipEngine();
37639
- const _a = __spreadValues$l({}, params), { queryFnParams } = _a, rest = __objRest$g(_a, ["queryFnParams"]);
37640
- return reactQuery.useQuery(__spreadProps$i(__spreadValues$l({}, rest), {
37641
- onError,
37642
- queryFn: () => client.labels.export(queryFnParams),
37643
- queryKey: ["useExportLabels", params]
37644
- }));
37486
+ return reactQuery.useMutation({
37487
+ mutationFn: (labelId) => __async$w(void 0, null, function* () {
37488
+ const result = yield client.labels.void(labelId);
37489
+ return result.data;
37490
+ }),
37491
+ mutationKey: ["useVoidLabel"],
37492
+ onError
37493
+ });
37645
37494
  };
37646
37495
 
37647
37496
  var __defProp$k = Object.defineProperty;
@@ -40838,6 +40687,7 @@ exports.useAddInsuranceFunds = useAddInsuranceFunds;
40838
40687
  exports.useAddSandboxCarriers = useAddSandboxCarriers;
40839
40688
  exports.useAlchemy = useAlchemy;
40840
40689
  exports.useCalculateRates = useCalculateRates;
40690
+ exports.useCancelRefund = useCancelRefund;
40841
40691
  exports.useCancelShipment = useCancelShipment;
40842
40692
  exports.useCarrierConnectionsServicesList = useCarrierConnectionsServicesList;
40843
40693
  exports.useConnectCarrier = useConnectCarrier;