@rebilly/instruments 16.126.2 → 16.127.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.
package/dist/index.js CHANGED
@@ -220,7 +220,7 @@ const arrayInstrumentations = {
220
220
  return apply(this, "every", fn, thisArg, void 0, arguments);
221
221
  },
222
222
  filter(fn, thisArg) {
223
- return apply(this, "filter", fn, thisArg, (v) => v.map(toReactive), arguments);
223
+ return apply(this, "filter", fn, thisArg, (v2) => v2.map(toReactive), arguments);
224
224
  },
225
225
  find(fn, thisArg) {
226
226
  return apply(this, "find", fn, thisArg, toReactive, arguments);
@@ -510,7 +510,7 @@ class ReadonlyReactiveHandler extends BaseReactiveHandler {
510
510
  const mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler();
511
511
  const readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler();
512
512
  const toShallow = (value) => value;
513
- const getProto = (v) => Reflect.getPrototypeOf(v);
513
+ const getProto = (v2) => Reflect.getPrototypeOf(v2);
514
514
  function createIterableMethod(method, isReadonly2, isShallow2) {
515
515
  return function(...args) {
516
516
  const target = this["__v_raw"];
@@ -2503,9 +2503,9 @@ function merge() {
2503
2503
  }
2504
2504
  return result;
2505
2505
  }
2506
- const extend = (a, b2, thisArg, { allOwnKeys } = {}) => {
2506
+ const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
2507
2507
  forEach(
2508
- b2,
2508
+ b,
2509
2509
  (val, key) => {
2510
2510
  if (thisArg && isFunction$1(val)) {
2511
2511
  Object.defineProperty(a, key, {
@@ -3774,28 +3774,28 @@ function mergeConfig$1(config1, config2) {
3774
3774
  }
3775
3775
  return source;
3776
3776
  }
3777
- function mergeDeepProperties(a, b2, prop, caseless) {
3778
- if (!utils$1.isUndefined(b2)) {
3779
- return getMergedValue(a, b2, prop, caseless);
3777
+ function mergeDeepProperties(a, b, prop, caseless) {
3778
+ if (!utils$1.isUndefined(b)) {
3779
+ return getMergedValue(a, b, prop, caseless);
3780
3780
  } else if (!utils$1.isUndefined(a)) {
3781
3781
  return getMergedValue(void 0, a, prop, caseless);
3782
3782
  }
3783
3783
  }
3784
- function valueFromConfig2(a, b2) {
3785
- if (!utils$1.isUndefined(b2)) {
3786
- return getMergedValue(void 0, b2);
3784
+ function valueFromConfig2(a, b) {
3785
+ if (!utils$1.isUndefined(b)) {
3786
+ return getMergedValue(void 0, b);
3787
3787
  }
3788
3788
  }
3789
- function defaultToConfig2(a, b2) {
3790
- if (!utils$1.isUndefined(b2)) {
3791
- return getMergedValue(void 0, b2);
3789
+ function defaultToConfig2(a, b) {
3790
+ if (!utils$1.isUndefined(b)) {
3791
+ return getMergedValue(void 0, b);
3792
3792
  } else if (!utils$1.isUndefined(a)) {
3793
3793
  return getMergedValue(void 0, a);
3794
3794
  }
3795
3795
  }
3796
- function mergeDirectKeys(a, b2, prop) {
3796
+ function mergeDirectKeys(a, b, prop) {
3797
3797
  if (prop in config2) {
3798
- return getMergedValue(a, b2);
3798
+ return getMergedValue(a, b);
3799
3799
  } else if (prop in config1) {
3800
3800
  return getMergedValue(void 0, a);
3801
3801
  }
@@ -3829,7 +3829,7 @@ function mergeConfig$1(config1, config2) {
3829
3829
  socketPath: defaultToConfig2,
3830
3830
  responseEncoding: defaultToConfig2,
3831
3831
  validateStatus: mergeDirectKeys,
3832
- headers: (a, b2, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b2), prop, true)
3832
+ headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
3833
3833
  };
3834
3834
  utils$1.forEach(
3835
3835
  Object.keys({ ...config1, ...config2 }),
@@ -4891,19 +4891,19 @@ const {
4891
4891
  getAdapter,
4892
4892
  mergeConfig
4893
4893
  } = axios;
4894
- var it$1 = Object.defineProperty;
4895
- var gt$1 = (e2, t2, s) => t2 in e2 ? it$1(e2, t2, { enumerable: true, configurable: true, writable: true, value: s }) : e2[t2] = s;
4896
- var E$1 = (e2, t2, s) => gt$1(e2, typeof t2 != "symbol" ? t2 + "" : t2, s);
4897
- function d(e2, { exclude: t2 = [] } = {}) {
4894
+ var pt$1 = Object.defineProperty;
4895
+ var ht$1 = (e2, t2, s) => t2 in e2 ? pt$1(e2, t2, { enumerable: true, configurable: true, writable: true, value: s }) : e2[t2] = s;
4896
+ var E$1 = (e2, t2, s) => ht$1(e2, typeof t2 != "symbol" ? t2 + "" : t2, s);
4897
+ function S$1(e2, { exclude: t2 = [] } = {}) {
4898
4898
  Object.freeze(e2);
4899
4899
  const s = typeof e2 == "function";
4900
4900
  return Object.getOwnPropertyNames(e2).forEach((r2) => {
4901
- (!s || r2 !== "caller" && r2 !== "callee" && r2 !== "arguments") && e2[r2] !== null && !t2.includes(r2) && (typeof e2[r2] == "object" || typeof e2[r2] == "function") && !Object.isFrozen(e2[r2]) && d(e2[r2], { exclude: t2 });
4901
+ (!s || r2 !== "caller" && r2 !== "callee" && r2 !== "arguments") && e2[r2] !== null && !t2.includes(r2) && (typeof e2[r2] == "object" || typeof e2[r2] == "function") && !Object.isFrozen(e2[r2]) && S$1(e2[r2], { exclude: t2 });
4902
4902
  }), e2;
4903
4903
  }
4904
- let G$1 = class G {
4904
+ let tt$1 = class tt {
4905
4905
  constructor({ data: t2, status: s, statusText: r2, headers: n2 }, u = {}) {
4906
- this.response = { status: s, statusText: r2, headers: n2 }, this.fields = { ...t2 }, this.config = u, d(this, { exclude: ["cancelToken"] });
4906
+ this.response = { status: s, statusText: r2, headers: n2 }, this.fields = { ...t2 }, this.config = u, S$1(this, { exclude: ["cancelToken"] });
4907
4907
  }
4908
4908
  /**
4909
4909
  * Returns a mutable JSON representation of the Member.
@@ -4913,7 +4913,7 @@ let G$1 = class G {
4913
4913
  return JSON.parse(JSON.stringify({ fields: this.fields }));
4914
4914
  }
4915
4915
  };
4916
- const U$1 = {
4916
+ const G$1 = {
4917
4917
  /**
4918
4918
  * Amount of records requested at once
4919
4919
  */
@@ -4927,14 +4927,14 @@ const U$1 = {
4927
4927
  */
4928
4928
  total: "pagination-total"
4929
4929
  };
4930
- let at$1 = class at {
4930
+ let yt$1 = class yt {
4931
4931
  constructor({ data: t2, status: s, statusText: r2, headers: n2 }, u = {}) {
4932
- this.limit = null, this.offset = null, this.total = null, Object.keys(U$1).forEach((o2) => {
4933
- const l = n2[U$1[o2]];
4932
+ this.limit = null, this.offset = null, this.total = null, Object.keys(G$1).forEach((o2) => {
4933
+ const l = n2[G$1[o2]];
4934
4934
  this[o2] = l ? Number(l) : null;
4935
4935
  }), this.response = { status: s, statusText: r2, headers: n2 }, this.items = t2.map(
4936
- (o2) => new G$1({ data: o2, status: s, statusText: r2, headers: n2 })
4937
- ), this.config = u, d(this, { exclude: ["cancelToken"] });
4936
+ (o2) => new tt$1({ data: o2, status: s, statusText: r2, headers: n2 })
4937
+ ), this.config = u, S$1(this, { exclude: ["cancelToken"] });
4938
4938
  }
4939
4939
  /**
4940
4940
  * Returns a mutable JSON representation of the Collection.
@@ -4944,12 +4944,12 @@ let at$1 = class at {
4944
4944
  return JSON.parse(JSON.stringify({ items: this.items }));
4945
4945
  }
4946
4946
  };
4947
- let mt$1 = class mt {
4947
+ let At$1 = class At {
4948
4948
  constructor({ data: t2, status: s, statusText: r2, headers: n2 }, u = {}) {
4949
4949
  this.response = { status: s, statusText: r2, headers: n2 }, this.data = t2, this.config = u;
4950
4950
  }
4951
4951
  };
4952
- class p extends Error {
4952
+ let A$1 = class A extends Error {
4953
4953
  constructor({ error: t2, name: s = null }) {
4954
4954
  let {
4955
4955
  config: r2 = null,
@@ -4959,158 +4959,165 @@ class p extends Error {
4959
4959
  } = t2 || {}, l = o2 || "Request Error";
4960
4960
  n2 && n2.data && (n2.data.error ? l = n2.data.error : n2.data.detail ? l = n2.data.detail : n2.data.title && (l = n2.data.title)), super(l), this.name = s || "RebillyError", this.response = n2, this.request = u, this.config = r2, this.status = n2 && n2.status ? n2.status : null, this.statusText = n2 && n2.statusText ? n2.statusText : null, this.details = n2 && n2.data && n2.data.details ? n2.data.details : null, this.invalidFields = n2 && n2.data && n2.data.invalidFields ? n2.data.invalidFields : null;
4961
4961
  }
4962
- }
4963
- let ft$1 = class ft extends p {
4962
+ };
4963
+ let bt$1 = class bt extends A$1 {
4964
4964
  constructor(t2) {
4965
4965
  super({ error: t2, name: "RebillyRequestError" });
4966
4966
  }
4967
4967
  };
4968
- let $t$1 = class $t extends p {
4968
+ let Rt$1 = class Rt extends A$1 {
4969
4969
  constructor(t2) {
4970
4970
  super({ error: t2, name: "RebillyValidationError" });
4971
4971
  }
4972
4972
  };
4973
- let pt$1 = class pt extends p {
4973
+ let wt$1 = class wt extends A$1 {
4974
4974
  constructor(t2) {
4975
4975
  super({ error: t2, name: "RebillyNotFoundError" });
4976
4976
  }
4977
4977
  };
4978
- let ht$1 = class ht extends p {
4978
+ let kt$1 = class kt extends A$1 {
4979
4979
  constructor(t2) {
4980
4980
  super({ error: t2, name: "RebillyConflictError" });
4981
4981
  }
4982
4982
  };
4983
- let yt$1 = class yt extends p {
4983
+ let vt$1 = class vt extends A$1 {
4984
4984
  constructor(t2) {
4985
4985
  super({ error: t2, name: "RebillyForbiddenError" });
4986
4986
  }
4987
4987
  };
4988
- let At$1 = class At extends p {
4988
+ let qt$1 = class qt extends A$1 {
4989
4989
  constructor(t2) {
4990
4990
  super({ error: t2, name: "RebillyMethodNotAllowedError" });
4991
4991
  }
4992
4992
  };
4993
- let bt$1 = class bt extends p {
4993
+ let dt$1 = class dt extends A$1 {
4994
4994
  constructor(t2) {
4995
4995
  super({ error: t2, name: "RebillyTimeoutError" });
4996
4996
  }
4997
4997
  };
4998
- let Rt$1 = class Rt extends p {
4998
+ let Tt$1 = class Tt extends A$1 {
4999
4999
  constructor(t2) {
5000
5000
  super({ error: t2, name: "RebillyCanceledError" });
5001
5001
  }
5002
5002
  };
5003
- const $$1 = {
5004
- RebillyError: p,
5005
- RebillyRequestError: ft$1,
5006
- RebillyValidationError: $t$1,
5007
- RebillyNotFoundError: pt$1,
5008
- RebillyConflictError: ht$1,
5009
- RebillyForbiddenError: yt$1,
5010
- RebillyMethodNotAllowedError: At$1,
5011
- RebillyTimeoutError: bt$1,
5012
- RebillyCanceledError: Rt$1
5003
+ const y = {
5004
+ RebillyError: A$1,
5005
+ RebillyRequestError: bt$1,
5006
+ RebillyValidationError: Rt$1,
5007
+ RebillyNotFoundError: wt$1,
5008
+ RebillyConflictError: kt$1,
5009
+ RebillyForbiddenError: vt$1,
5010
+ RebillyMethodNotAllowedError: qt$1,
5011
+ RebillyTimeoutError: dt$1,
5012
+ RebillyCanceledError: Tt$1
5013
5013
  };
5014
- function wt$1(e2) {
5014
+ function It$1(e2) {
5015
5015
  return e2 && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
5016
5016
  }
5017
- var kt$1 = Object.prototype.toString, Y$1 = function(t2) {
5018
- if (t2 === void 0) return "undefined";
5019
- if (t2 === null) return "null";
5020
- var s = typeof t2;
5021
- if (s === "boolean") return "boolean";
5022
- if (s === "string") return "string";
5023
- if (s === "number") return "number";
5024
- if (s === "symbol") return "symbol";
5025
- if (s === "function")
5026
- return It$1(t2) ? "generatorfunction" : "function";
5027
- if (vt$1(t2)) return "array";
5028
- if (xt$1(t2)) return "buffer";
5029
- if (Et$1(t2)) return "arguments";
5030
- if (Tt$1(t2)) return "date";
5031
- if (qt$1(t2)) return "error";
5032
- if (dt$1(t2)) return "regexp";
5033
- switch (Q$1(t2)) {
5034
- case "Symbol":
5035
- return "symbol";
5036
- case "Promise":
5037
- return "promise";
5038
- case "WeakMap":
5039
- return "weakmap";
5040
- case "WeakSet":
5041
- return "weakset";
5042
- case "Map":
5043
- return "map";
5044
- case "Set":
5045
- return "set";
5046
- case "Int8Array":
5047
- return "int8array";
5048
- case "Uint8Array":
5049
- return "uint8array";
5050
- case "Uint8ClampedArray":
5051
- return "uint8clampedarray";
5052
- case "Int16Array":
5053
- return "int16array";
5054
- case "Uint16Array":
5055
- return "uint16array";
5056
- case "Int32Array":
5057
- return "int32array";
5058
- case "Uint32Array":
5059
- return "uint32array";
5060
- case "Float32Array":
5061
- return "float32array";
5062
- case "Float64Array":
5063
- return "float64array";
5064
- }
5065
- if (St$1(t2))
5066
- return "generator";
5067
- switch (s = kt$1.call(t2), s) {
5068
- case "[object Object]":
5069
- return "object";
5070
- case "[object Map Iterator]":
5071
- return "mapiterator";
5072
- case "[object Set Iterator]":
5073
- return "setiterator";
5074
- case "[object String Iterator]":
5075
- return "stringiterator";
5076
- case "[object Array Iterator]":
5077
- return "arrayiterator";
5078
- }
5079
- return s.slice(8, -1).toLowerCase().replace(/\s/g, "");
5080
- };
5081
- function Q$1(e2) {
5082
- return typeof e2.constructor == "function" ? e2.constructor.name : null;
5083
- }
5084
- function vt$1(e2) {
5085
- return Array.isArray ? Array.isArray(e2) : e2 instanceof Array;
5086
- }
5087
- function qt$1(e2) {
5088
- return e2 instanceof Error || typeof e2.message == "string" && e2.constructor && typeof e2.constructor.stackTraceLimit == "number";
5089
- }
5090
- function Tt$1(e2) {
5091
- return e2 instanceof Date ? true : typeof e2.toDateString == "function" && typeof e2.getDate == "function" && typeof e2.setDate == "function";
5092
- }
5093
- function dt$1(e2) {
5094
- return e2 instanceof RegExp ? true : typeof e2.flags == "string" && typeof e2.ignoreCase == "boolean" && typeof e2.multiline == "boolean" && typeof e2.global == "boolean";
5095
- }
5096
- function It$1(e2, t2) {
5097
- return Q$1(e2) === "GeneratorFunction";
5098
- }
5099
- function St$1(e2) {
5100
- return typeof e2.throw == "function" && typeof e2.return == "function" && typeof e2.next == "function";
5101
- }
5102
- function Et$1(e2) {
5103
- try {
5104
- if (typeof e2.length == "number" && typeof e2.callee == "function")
5105
- return true;
5106
- } catch (t2) {
5107
- if (t2.message.indexOf("callee") !== -1)
5108
- return true;
5017
+ var x$1, Y$1;
5018
+ function et$1() {
5019
+ if (Y$1) return x$1;
5020
+ Y$1 = 1;
5021
+ var e2 = Object.prototype.toString;
5022
+ x$1 = function($2) {
5023
+ if ($2 === void 0) return "undefined";
5024
+ if ($2 === null) return "null";
5025
+ var h2 = typeof $2;
5026
+ if (h2 === "boolean") return "boolean";
5027
+ if (h2 === "string") return "string";
5028
+ if (h2 === "number") return "number";
5029
+ if (h2 === "symbol") return "symbol";
5030
+ if (h2 === "function")
5031
+ return o2($2) ? "generatorfunction" : "function";
5032
+ if (s($2)) return "array";
5033
+ if (f($2)) return "buffer";
5034
+ if (i($2)) return "arguments";
5035
+ if (n2($2)) return "date";
5036
+ if (r2($2)) return "error";
5037
+ if (u($2)) return "regexp";
5038
+ switch (t2($2)) {
5039
+ case "Symbol":
5040
+ return "symbol";
5041
+ case "Promise":
5042
+ return "promise";
5043
+ case "WeakMap":
5044
+ return "weakmap";
5045
+ case "WeakSet":
5046
+ return "weakset";
5047
+ case "Map":
5048
+ return "map";
5049
+ case "Set":
5050
+ return "set";
5051
+ case "Int8Array":
5052
+ return "int8array";
5053
+ case "Uint8Array":
5054
+ return "uint8array";
5055
+ case "Uint8ClampedArray":
5056
+ return "uint8clampedarray";
5057
+ case "Int16Array":
5058
+ return "int16array";
5059
+ case "Uint16Array":
5060
+ return "uint16array";
5061
+ case "Int32Array":
5062
+ return "int32array";
5063
+ case "Uint32Array":
5064
+ return "uint32array";
5065
+ case "Float32Array":
5066
+ return "float32array";
5067
+ case "Float64Array":
5068
+ return "float64array";
5069
+ }
5070
+ if (l($2))
5071
+ return "generator";
5072
+ switch (h2 = e2.call($2), h2) {
5073
+ case "[object Object]":
5074
+ return "object";
5075
+ case "[object Map Iterator]":
5076
+ return "mapiterator";
5077
+ case "[object Set Iterator]":
5078
+ return "setiterator";
5079
+ case "[object String Iterator]":
5080
+ return "stringiterator";
5081
+ case "[object Array Iterator]":
5082
+ return "arrayiterator";
5083
+ }
5084
+ return h2.slice(8, -1).toLowerCase().replace(/\s/g, "");
5085
+ };
5086
+ function t2(a) {
5087
+ return typeof a.constructor == "function" ? a.constructor.name : null;
5109
5088
  }
5110
- return false;
5111
- }
5112
- function xt$1(e2) {
5113
- return e2.constructor && typeof e2.constructor.isBuffer == "function" ? e2.constructor.isBuffer(e2) : false;
5089
+ function s(a) {
5090
+ return Array.isArray ? Array.isArray(a) : a instanceof Array;
5091
+ }
5092
+ function r2(a) {
5093
+ return a instanceof Error || typeof a.message == "string" && a.constructor && typeof a.constructor.stackTraceLimit == "number";
5094
+ }
5095
+ function n2(a) {
5096
+ return a instanceof Date ? true : typeof a.toDateString == "function" && typeof a.getDate == "function" && typeof a.setDate == "function";
5097
+ }
5098
+ function u(a) {
5099
+ return a instanceof RegExp ? true : typeof a.flags == "string" && typeof a.ignoreCase == "boolean" && typeof a.multiline == "boolean" && typeof a.global == "boolean";
5100
+ }
5101
+ function o2(a, $2) {
5102
+ return t2(a) === "GeneratorFunction";
5103
+ }
5104
+ function l(a) {
5105
+ return typeof a.throw == "function" && typeof a.return == "function" && typeof a.next == "function";
5106
+ }
5107
+ function i(a) {
5108
+ try {
5109
+ if (typeof a.length == "number" && typeof a.callee == "function")
5110
+ return true;
5111
+ } catch ($2) {
5112
+ if ($2.message.indexOf("callee") !== -1)
5113
+ return true;
5114
+ }
5115
+ return false;
5116
+ }
5117
+ function f(a) {
5118
+ return a.constructor && typeof a.constructor.isBuffer == "function" ? a.constructor.isBuffer(a) : false;
5119
+ }
5120
+ return x$1;
5114
5121
  }
5115
5122
  /*!
5116
5123
  * shallow-clone <https://github.com/jonschlinkert/shallow-clone>
@@ -5118,133 +5125,152 @@ function xt$1(e2) {
5118
5125
  * Copyright (c) 2015-present, Jon Schlinkert.
5119
5126
  * Released under the MIT License.
5120
5127
  */
5121
- const V$1 = Symbol.prototype.valueOf, Pt$1 = Y$1;
5122
- function Ct$1(e2, t2) {
5123
- switch (Pt$1(e2)) {
5124
- case "array":
5125
- return e2.slice();
5126
- case "object":
5127
- return Object.assign({}, e2);
5128
- case "date":
5129
- return new e2.constructor(Number(e2));
5130
- case "map":
5131
- return new Map(e2);
5132
- case "set":
5133
- return new Set(e2);
5134
- case "buffer":
5135
- return Ot$1(e2);
5136
- case "symbol":
5137
- return Ft$1(e2);
5138
- case "arraybuffer":
5139
- return jt$1(e2);
5140
- case "float32array":
5141
- case "float64array":
5142
- case "int16array":
5143
- case "int32array":
5144
- case "int8array":
5145
- case "uint16array":
5146
- case "uint32array":
5147
- case "uint8clampedarray":
5148
- case "uint8array":
5149
- return Mt$1(e2);
5150
- case "regexp":
5151
- return Dt$1(e2);
5152
- case "error":
5153
- return Object.create(e2);
5154
- default:
5155
- return e2;
5128
+ var P, Q$1;
5129
+ function St$1() {
5130
+ if (Q$1) return P;
5131
+ Q$1 = 1;
5132
+ const e2 = Symbol.prototype.valueOf, t2 = et$1();
5133
+ function s(i, f) {
5134
+ switch (t2(i)) {
5135
+ case "array":
5136
+ return i.slice();
5137
+ case "object":
5138
+ return Object.assign({}, i);
5139
+ case "date":
5140
+ return new i.constructor(Number(i));
5141
+ case "map":
5142
+ return new Map(i);
5143
+ case "set":
5144
+ return new Set(i);
5145
+ case "buffer":
5146
+ return o2(i);
5147
+ case "symbol":
5148
+ return l(i);
5149
+ case "arraybuffer":
5150
+ return n2(i);
5151
+ case "float32array":
5152
+ case "float64array":
5153
+ case "int16array":
5154
+ case "int32array":
5155
+ case "int8array":
5156
+ case "uint16array":
5157
+ case "uint32array":
5158
+ case "uint8clampedarray":
5159
+ case "uint8array":
5160
+ return u(i);
5161
+ case "regexp":
5162
+ return r2(i);
5163
+ case "error":
5164
+ return Object.create(i);
5165
+ default:
5166
+ return i;
5167
+ }
5156
5168
  }
5169
+ function r2(i) {
5170
+ const f = i.flags !== void 0 ? i.flags : /\w+$/.exec(i) || void 0, a = new i.constructor(i.source, f);
5171
+ return a.lastIndex = i.lastIndex, a;
5172
+ }
5173
+ function n2(i) {
5174
+ const f = new i.constructor(i.byteLength);
5175
+ return new Uint8Array(f).set(new Uint8Array(i)), f;
5176
+ }
5177
+ function u(i, f) {
5178
+ return new i.constructor(i.buffer, i.byteOffset, i.length);
5179
+ }
5180
+ function o2(i) {
5181
+ const f = i.length, a = Buffer.allocUnsafe ? Buffer.allocUnsafe(f) : Buffer.from(f);
5182
+ return i.copy(a), a;
5183
+ }
5184
+ function l(i) {
5185
+ return e2 ? Object(e2.call(i)) : {};
5186
+ }
5187
+ return P = s, P;
5157
5188
  }
5158
- function Dt$1(e2) {
5159
- const t2 = e2.flags !== void 0 ? e2.flags : /\w+$/.exec(e2) || void 0, s = new e2.constructor(e2.source, t2);
5160
- return s.lastIndex = e2.lastIndex, s;
5161
- }
5162
- function jt$1(e2) {
5163
- const t2 = new e2.constructor(e2.byteLength);
5164
- return new Uint8Array(t2).set(new Uint8Array(e2)), t2;
5165
- }
5166
- function Mt$1(e2, t2) {
5167
- return new e2.constructor(e2.buffer, e2.byteOffset, e2.length);
5168
- }
5169
- function Ot$1(e2) {
5170
- const t2 = e2.length, s = Buffer.allocUnsafe ? Buffer.allocUnsafe(t2) : Buffer.from(t2);
5171
- return e2.copy(s), s;
5172
- }
5173
- function Ft$1(e2) {
5174
- return V$1 ? Object(V$1.call(e2)) : {};
5175
- }
5176
- var Bt$1 = Ct$1;
5177
5189
  /*!
5178
5190
  * isobject <https://github.com/jonschlinkert/isobject>
5179
5191
  *
5180
5192
  * Copyright (c) 2014-2017, Jon Schlinkert.
5181
5193
  * Released under the MIT License.
5182
5194
  */
5183
- var Kt$1 = function(t2) {
5184
- return t2 != null && typeof t2 == "object" && Array.isArray(t2) === false;
5185
- };
5195
+ var C$1, X$1;
5196
+ function Et$1() {
5197
+ return X$1 || (X$1 = 1, C$1 = function(t2) {
5198
+ return t2 != null && typeof t2 == "object" && Array.isArray(t2) === false;
5199
+ }), C$1;
5200
+ }
5186
5201
  /*!
5187
5202
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
5188
5203
  *
5189
5204
  * Copyright (c) 2014-2017, Jon Schlinkert.
5190
5205
  * Released under the MIT License.
5191
5206
  */
5192
- var Nt$1 = Kt$1;
5193
- function J$1(e2) {
5194
- return Nt$1(e2) === true && Object.prototype.toString.call(e2) === "[object Object]";
5195
- }
5196
- var Lt$1 = function(t2) {
5197
- var s, r2;
5198
- return !(J$1(t2) === false || (s = t2.constructor, typeof s != "function") || (r2 = s.prototype, J$1(r2) === false) || r2.hasOwnProperty("isPrototypeOf") === false);
5199
- };
5200
- const zt$1 = Bt$1, Ut$1 = Y$1, Vt$1 = Lt$1;
5201
- function P(e2, t2) {
5202
- switch (Ut$1(e2)) {
5203
- case "object":
5204
- return Jt$1(e2, t2);
5205
- case "array":
5206
- return Wt$1(e2, t2);
5207
- default:
5208
- return zt$1(e2);
5207
+ var D, Z$1;
5208
+ function xt$1() {
5209
+ if (Z$1) return D;
5210
+ Z$1 = 1;
5211
+ var e2 = Et$1();
5212
+ function t2(s) {
5213
+ return e2(s) === true && Object.prototype.toString.call(s) === "[object Object]";
5214
+ }
5215
+ return D = function(r2) {
5216
+ var n2, u;
5217
+ return !(t2(r2) === false || (n2 = r2.constructor, typeof n2 != "function") || (u = n2.prototype, t2(u) === false) || u.hasOwnProperty("isPrototypeOf") === false);
5218
+ }, D;
5219
+ }
5220
+ var j$1, _$1;
5221
+ function Pt$1() {
5222
+ if (_$1) return j$1;
5223
+ _$1 = 1;
5224
+ const e2 = St$1(), t2 = et$1(), s = xt$1();
5225
+ function r2(o2, l) {
5226
+ switch (t2(o2)) {
5227
+ case "object":
5228
+ return n2(o2, l);
5229
+ case "array":
5230
+ return u(o2, l);
5231
+ default:
5232
+ return e2(o2);
5233
+ }
5209
5234
  }
5210
- }
5211
- function Jt$1(e2, t2) {
5212
- if (typeof t2 == "function")
5213
- return t2(e2);
5214
- if (t2 || Vt$1(e2)) {
5215
- const s = new e2.constructor();
5216
- for (let r2 in e2)
5217
- s[r2] = P(e2[r2], t2);
5218
- return s;
5235
+ function n2(o2, l) {
5236
+ if (typeof l == "function")
5237
+ return l(o2);
5238
+ if (l || s(o2)) {
5239
+ const i = new o2.constructor();
5240
+ for (let f in o2)
5241
+ i[f] = r2(o2[f], l);
5242
+ return i;
5243
+ }
5244
+ return o2;
5219
5245
  }
5220
- return e2;
5221
- }
5222
- function Wt$1(e2, t2) {
5223
- const s = new e2.constructor(e2.length);
5224
- for (let r2 = 0; r2 < e2.length; r2++)
5225
- s[r2] = P(e2[r2], t2);
5226
- return s;
5246
+ function u(o2, l) {
5247
+ const i = new o2.constructor(o2.length);
5248
+ for (let f = 0; f < o2.length; f++)
5249
+ i[f] = r2(o2[f], l);
5250
+ return i;
5251
+ }
5252
+ return j$1 = r2, j$1;
5227
5253
  }
5228
- var Gt$1 = P;
5229
- const Yt$1 = /* @__PURE__ */ wt$1(Gt$1);
5230
- let Qt$1 = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Xt$1 = (e2 = 21) => {
5254
+ var Ct$1 = Pt$1();
5255
+ const Dt$1 = /* @__PURE__ */ It$1(Ct$1);
5256
+ let jt$1 = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Mt$1 = (e2 = 21) => {
5231
5257
  let t2 = "", s = e2 | 0;
5232
5258
  for (; s--; )
5233
- t2 += Qt$1[Math.random() * 64 | 0];
5259
+ t2 += jt$1[Math.random() * 64 | 0];
5234
5260
  return t2;
5235
5261
  };
5236
- let Zt$1 = class Zt {
5262
+ let Ot$1 = class Ot {
5237
5263
  constructor({ id: t2 = null, created: s = null } = {}) {
5238
- this.id = t2 || Xt$1(), this.created = s || (/* @__PURE__ */ new Date()).getTime(), this.cancelSource = axios.CancelToken.source(), this.cancel = this.cancelSource.cancel, this.cancelToken = this.cancelSource.token, d(this, {
5264
+ this.id = t2 || Mt$1(), this.created = s || (/* @__PURE__ */ new Date()).getTime(), this.cancelSource = axios.CancelToken.source(), this.cancel = this.cancelSource.cancel, this.cancelToken = this.cancelSource.token, S$1(this, {
5239
5265
  exclude: ["cancelSource", "cancelToken", "cancel"]
5240
5266
  });
5241
5267
  }
5242
5268
  };
5243
- let q$1 = class q {
5269
+ class T {
5244
5270
  constructor() {
5245
- if (q.instance)
5246
- return q.instance;
5247
- this.requests = {}, q.instance = this;
5271
+ if (T.instance)
5272
+ return T.instance;
5273
+ this.requests = {}, T.instance = this;
5248
5274
  }
5249
5275
  /**
5250
5276
  * Returns Array with all CachedRequest from the cache.
@@ -5278,16 +5304,16 @@ let q$1 = class q {
5278
5304
  * @returns {{id:CachedRequestId, cancelToken: CancelToken}}
5279
5305
  */
5280
5306
  save() {
5281
- const t2 = new Zt$1();
5307
+ const t2 = new Ot$1();
5282
5308
  return this.requests[t2.id] = t2, { id: t2.id, cancelToken: t2.cancelToken };
5283
5309
  }
5284
- };
5285
- const k$1 = new q$1();
5286
- class T {
5287
5310
  }
5288
- E$1(T, "cancelById", (t2, s) => {
5311
+ const q$1 = new T();
5312
+ let I$1 = class I {
5313
+ };
5314
+ E$1(I$1, "cancelById", (t2, s) => {
5289
5315
  try {
5290
- k$1.getById(t2).cancel(s), k$1.deleteById(t2);
5316
+ q$1.getById(t2).cancel(s), q$1.deleteById(t2);
5291
5317
  } catch {
5292
5318
  }
5293
5319
  }), /**
@@ -5305,24 +5331,24 @@ E$1(T, "cancelById", (t2, s) => {
5305
5331
  * // cancel all active requests
5306
5332
  * await cancellation.cancelAll();
5307
5333
  */
5308
- E$1(T, "cancelAll", async (t2) => {
5309
- for (const s of k$1.getAll())
5310
- await s.cancel(t2), k$1.deleteById(s.id);
5334
+ E$1(I$1, "cancelAll", async (t2) => {
5335
+ for (const s of q$1.getAll())
5336
+ await s.cancel(t2), q$1.deleteById(s.id);
5311
5337
  });
5312
- const hr = {
5338
+ const er = {
5313
5339
  /**
5314
5340
  * @type Cancellation.cancelAll
5315
5341
  */
5316
- cancelAll: async (...e2) => await T.cancelAll(...e2)
5317
- }, R = {
5342
+ cancelAll: async (...e2) => await I$1.cancelAll(...e2)
5343
+ }, k$1 = {
5318
5344
  request: "request",
5319
5345
  response: "response"
5320
- }, W$1 = (e2) => {
5321
- if (!Object.values(R).includes(e2))
5346
+ }, H$1 = (e2) => {
5347
+ if (!Object.values(k$1).includes(e2))
5322
5348
  throw new Error(`There is no such interceptor type as "${e2}"`);
5323
5349
  return true;
5324
5350
  };
5325
- function C$1({ options: e2 }) {
5351
+ function O$1({ options: e2 }) {
5326
5352
  const t2 = s();
5327
5353
  function s() {
5328
5354
  return axios.create(n2());
@@ -5342,208 +5368,208 @@ function C$1({ options: e2 }) {
5342
5368
  return e2.apiVersion && (c = `${c}/${e2.apiVersion}`), e2.organizationId && (c = `${c}/organizations/${e2.organizationId}`), `${c}`;
5343
5369
  }
5344
5370
  function o2() {
5345
- const i = {
5346
- "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@22e3881`
5371
+ const g = {
5372
+ "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((m2) => m2).join("/")}@baf3d77`
5347
5373
  };
5348
- return e2.apiKey && (i["REB-APIKEY"] = e2.apiKey), i;
5374
+ return e2.apiKey && (g["REB-APIKEY"] = e2.apiKey), g;
5349
5375
  }
5350
5376
  function l() {
5351
- return Yt$1(t2.defaults.headers);
5377
+ return Dt$1(t2.defaults.headers);
5352
5378
  }
5353
- function a(c) {
5379
+ function i(c) {
5354
5380
  e2.requestTimeout = Number(c), t2.defaults.timeout = e2.requestTimeout;
5355
5381
  }
5356
5382
  function f(c = e2.jwt) {
5357
- const i = l();
5358
- e2.apiKey = null, e2.jwt = c, delete i.common["REB-APIKEY"], i.common.Authorization = `Bearer ${c}`, t2.defaults.headers = i;
5383
+ const g = l();
5384
+ e2.apiKey = null, e2.jwt = c, delete g.common["REB-APIKEY"], g.common.Authorization = `Bearer ${c}`, t2.defaults.headers = g;
5359
5385
  }
5360
- function y(c = e2.publishableKey) {
5361
- const i = l();
5362
- e2.publishableKey = c, i.common.Authorization = `${c}`, t2.defaults.headers = i;
5386
+ function a(c = e2.publishableKey) {
5387
+ const g = l();
5388
+ e2.publishableKey = c, g.common.Authorization = `${c}`, t2.defaults.headers = g;
5363
5389
  }
5364
- function I2({ host: c, port: i, auth: g }) {
5390
+ function $2({ host: c, port: g, auth: m2 }) {
5365
5391
  t2.defaults.proxy = {
5366
5392
  host: c,
5367
- port: i,
5368
- auth: g
5393
+ port: g,
5394
+ auth: m2
5369
5395
  };
5370
5396
  }
5371
- function S2({ live: c = null, sandbox: i = null }) {
5372
- c && (e2.apiEndpoints.live = c), i && (e2.apiEndpoints.sandbox = i), t2.defaults.baseURL = u();
5397
+ function h2({ live: c = null, sandbox: g = null }) {
5398
+ c && (e2.apiEndpoints.live = c), g && (e2.apiEndpoints.sandbox = g), t2.defaults.baseURL = u();
5373
5399
  }
5374
- function M2(c, { thenDelegate: i, catchDelegate: g = () => {
5400
+ function K2(c, { thenDelegate: g, catchDelegate: m2 = () => {
5375
5401
  } }) {
5376
- return W$1(c) && t2.interceptors[R[c]].use(
5377
- i,
5378
- g
5402
+ return H$1(c) && t2.interceptors[k$1[c]].use(
5403
+ g,
5404
+ m2
5379
5405
  );
5380
5406
  }
5381
- function O2(c, i) {
5382
- return W$1(c) && t2.interceptors[R[c]].eject(i);
5407
+ function N2(c, g) {
5408
+ return H$1(c) && t2.interceptors[k$1[c]].eject(g);
5383
5409
  }
5384
- function X2({ thenDelegate: c, catchDelegate: i = () => {
5410
+ function st2({ thenDelegate: c, catchDelegate: g = () => {
5385
5411
  } }) {
5386
- return M2(R.request, {
5412
+ return K2(k$1.request, {
5387
5413
  thenDelegate: c,
5388
- catchDelegate: i
5414
+ catchDelegate: g
5389
5415
  });
5390
5416
  }
5391
- function Z2(c) {
5392
- O2(R.request, c);
5417
+ function rt2(c) {
5418
+ N2(k$1.request, c);
5393
5419
  }
5394
- function _2({
5420
+ function nt2({
5395
5421
  thenDelegate: c,
5396
- catchDelegate: i = () => {
5422
+ catchDelegate: g = () => {
5397
5423
  }
5398
5424
  }) {
5399
- return M2(R.response, {
5425
+ return K2(k$1.response, {
5400
5426
  thenDelegate: c,
5401
- catchDelegate: i
5427
+ catchDelegate: g
5402
5428
  });
5403
5429
  }
5404
- function H2(c) {
5405
- O2(R.response, c);
5430
+ function ut2(c) {
5431
+ N2(k$1.response, c);
5406
5432
  }
5407
- function A2({ request: c, isCollection: i, config: g }) {
5408
- const m2 = B2(g), { id: h2, cancelToken: ct2 } = k$1.save();
5409
- m2.cancelToken = ct2;
5410
- const z2 = async function() {
5433
+ function R({ request: c, isCollection: g, config: m2 }) {
5434
+ const p = z2(m2), { id: b, cancelToken: $t2 } = q$1.save();
5435
+ p.cancelToken = $t2;
5436
+ const W2 = async function() {
5411
5437
  try {
5412
- const v = await c(m2);
5413
- return tt2({
5414
- response: v,
5415
- isCollection: i,
5416
- config: m2
5438
+ const d = await c(p);
5439
+ return ot2({
5440
+ response: d,
5441
+ isCollection: g,
5442
+ config: p
5417
5443
  });
5418
- } catch (v) {
5419
- return F2({ error: v });
5444
+ } catch (d) {
5445
+ return L2({ error: d });
5420
5446
  } finally {
5421
- k$1.deleteById(h2);
5447
+ q$1.deleteById(b);
5422
5448
  }
5423
5449
  }();
5424
- return z2.cancel = (v) => T.cancelById(h2, v), z2;
5450
+ return W2.cancel = (d) => I$1.cancelById(b, d), W2;
5425
5451
  }
5426
- function tt2({ response: c, isCollection: i, config: g }) {
5427
- return i ? new at$1(c, g) : new G$1(c, g);
5452
+ function ot2({ response: c, isCollection: g, config: m2 }) {
5453
+ return g ? new yt$1(c, m2) : new tt$1(c, m2);
5428
5454
  }
5429
- function F2({ error: c }) {
5455
+ function L2({ error: c }) {
5430
5456
  if (axios.isCancel(c))
5431
- throw new $$1.RebillyCanceledError(c);
5457
+ throw new y.RebillyCanceledError(c);
5432
5458
  if (c.response)
5433
5459
  switch (Number(c.response.status)) {
5434
5460
  case 401:
5435
- throw new $$1.RebillyForbiddenError(c);
5461
+ throw new y.RebillyForbiddenError(c);
5436
5462
  case 404:
5437
- throw new $$1.RebillyNotFoundError(c);
5463
+ throw new y.RebillyNotFoundError(c);
5438
5464
  case 405:
5439
- throw new $$1.RebillyMethodNotAllowedError(c);
5465
+ throw new y.RebillyMethodNotAllowedError(c);
5440
5466
  case 409:
5441
- throw new $$1.RebillyConflictError(c);
5467
+ throw new y.RebillyConflictError(c);
5442
5468
  case 422:
5443
- throw new $$1.RebillyValidationError(c);
5469
+ throw new y.RebillyValidationError(c);
5444
5470
  default:
5445
- throw new $$1.RebillyRequestError(c);
5471
+ throw new y.RebillyRequestError(c);
5446
5472
  }
5447
- throw c.code === "ECONNABORTED" ? new $$1.RebillyTimeoutError(c) : new $$1.RebillyRequestError(c);
5473
+ throw c.code === "ECONNABORTED" ? new y.RebillyTimeoutError(c) : new y.RebillyRequestError(c);
5448
5474
  }
5449
- function et2(c) {
5475
+ function lt2(c) {
5450
5476
  return c.params !== void 0 && (c.params = Object.keys(c.params).filter(
5451
- (i) => c.params[i] !== null && c.params[i] !== ""
5452
- ).reduce((i, g) => (i[g] = c.params[g], i), {})), c;
5477
+ (g) => c.params[g] !== null && c.params[g] !== ""
5478
+ ).reduce((g, m2) => (g[m2] = c.params[m2], g), {})), c;
5453
5479
  }
5454
- function B2(c = {}) {
5455
- return { ...et2(c) };
5480
+ function z2(c = {}) {
5481
+ return { ...lt2(c) };
5456
5482
  }
5457
- function K2(c, i = {}) {
5458
- return A2({
5459
- request: (g) => t2.get(c, g),
5460
- config: { params: i }
5483
+ function U2(c, g = {}) {
5484
+ return R({
5485
+ request: (m2) => t2.get(c, m2),
5486
+ config: { params: g }
5461
5487
  });
5462
5488
  }
5463
- function st2(c, i) {
5464
- return A2({
5465
- request: (g) => t2.get(c, g),
5466
- config: { params: i },
5489
+ function ct2(c, g) {
5490
+ return R({
5491
+ request: (m2) => t2.get(c, m2),
5492
+ config: { params: g },
5467
5493
  isCollection: true
5468
5494
  });
5469
5495
  }
5470
- function N2(c, i, g = {}) {
5471
- let m2 = {};
5472
- return g.authenticate === false && (m2 = { headers: l() }, delete m2.headers.common["REB-APIKEY"], delete m2.headers.common.Authorization), g.params && (m2.params = { ...g.params }), A2({
5473
- request: (h2) => t2.post(c, i, h2),
5474
- config: m2
5496
+ function V2(c, g, m2 = {}) {
5497
+ let p = {};
5498
+ return m2.authenticate === false && (p = { headers: l() }, delete p.headers.common["REB-APIKEY"], delete p.headers.common.Authorization), m2.params && (p.params = { ...m2.params }), R({
5499
+ request: (b) => t2.post(c, g, b),
5500
+ config: p
5475
5501
  });
5476
5502
  }
5477
- function L2(c, i, g = {}) {
5478
- return A2({
5479
- request: (m2) => t2.put(c, i, m2),
5480
- config: { params: g }
5503
+ function J2(c, g, m2 = {}) {
5504
+ return R({
5505
+ request: (p) => t2.put(c, g, p),
5506
+ config: { params: m2 }
5481
5507
  });
5482
5508
  }
5483
- function rt2(c, i) {
5484
- return A2({
5485
- request: (g) => t2.patch(c, i, g),
5509
+ function it2(c, g) {
5510
+ return R({
5511
+ request: (m2) => t2.patch(c, g, m2),
5486
5512
  config: {}
5487
5513
  });
5488
5514
  }
5489
- function nt2(c) {
5490
- return A2({
5491
- request: (i) => t2.delete(c, i),
5515
+ function gt2(c) {
5516
+ return R({
5517
+ request: (g) => t2.delete(c, g),
5492
5518
  config: {}
5493
5519
  });
5494
5520
  }
5495
- function ut2(c, i) {
5496
- return A2({
5497
- request: (g) => t2.delete(c, g),
5498
- config: { data: { ...i } }
5521
+ function at2(c, g) {
5522
+ return R({
5523
+ request: (m2) => t2.delete(c, m2),
5524
+ config: { data: { ...g } }
5499
5525
  });
5500
5526
  }
5501
- async function ot2(c, i, g, m2 = {}) {
5502
- if (i === "")
5503
- return N2(c, g, { params: m2 });
5527
+ async function mt2(c, g, m2, p = {}) {
5528
+ if (g === "")
5529
+ return V2(c, m2, { params: p });
5504
5530
  try {
5505
- if ((await K2(c)).response.status === 200)
5506
- throw new $$1.RebillyConflictError({
5531
+ if ((await U2(c)).response.status === 200)
5532
+ throw new y.RebillyConflictError({
5507
5533
  message: "A resource already exists with this ID. Please use a different ID."
5508
5534
  });
5509
- } catch (h2) {
5510
- if (h2.name === "RebillyNotFoundError")
5511
- return L2(c, g, m2);
5512
- throw h2;
5535
+ } catch (b) {
5536
+ if (b.name === "RebillyNotFoundError")
5537
+ return J2(c, m2, p);
5538
+ throw b;
5513
5539
  }
5514
5540
  }
5515
- async function lt2(c, i) {
5516
- const g = B2(i);
5541
+ async function ft2(c, g) {
5542
+ const m2 = z2(g);
5517
5543
  try {
5518
- const m2 = await t2.get(c, g);
5519
- return new mt$1(m2, g);
5520
- } catch (m2) {
5521
- return F2({ error: m2 });
5544
+ const p = await t2.get(c, m2);
5545
+ return new At$1(p, m2);
5546
+ } catch (p) {
5547
+ return L2({ error: p });
5522
5548
  }
5523
5549
  }
5524
5550
  return {
5525
5551
  getInstance: r2,
5526
- addRequestInterceptor: X2,
5527
- removeRequestInterceptor: Z2,
5528
- addResponseInterceptor: _2,
5529
- removeResponseInterceptor: H2,
5530
- setTimeout: a,
5531
- setProxyAgent: I2,
5552
+ addRequestInterceptor: st2,
5553
+ removeRequestInterceptor: rt2,
5554
+ addResponseInterceptor: nt2,
5555
+ removeResponseInterceptor: ut2,
5556
+ setTimeout: i,
5557
+ setProxyAgent: $2,
5532
5558
  setSessionToken: f,
5533
- setPublishableKey: y,
5534
- setEndpoints: S2,
5535
- get: K2,
5536
- getAll: st2,
5537
- post: N2,
5538
- put: L2,
5539
- patch: rt2,
5540
- delete: nt2,
5541
- deleteAll: ut2,
5542
- create: ot2,
5543
- download: lt2
5559
+ setPublishableKey: a,
5560
+ setEndpoints: h2,
5561
+ get: U2,
5562
+ getAll: ct2,
5563
+ post: V2,
5564
+ put: J2,
5565
+ patch: it2,
5566
+ delete: gt2,
5567
+ deleteAll: at2,
5568
+ create: mt2,
5569
+ download: ft2
5544
5570
  };
5545
5571
  }
5546
- function _t$1({ apiHandler: e2 }) {
5572
+ function Ft$1({ apiHandler: e2 }) {
5547
5573
  return {
5548
5574
  /**
5549
5575
  * @param { rebilly.GetAccountRegistrationSettingsCollectionRequest } request
@@ -5577,14 +5603,14 @@ function _t$1({ apiHandler: e2 }) {
5577
5603
  }
5578
5604
  };
5579
5605
  }
5580
- function Ht$1({ apiHandler: e2 }) {
5606
+ function Bt$1({ apiHandler: e2 }) {
5581
5607
  return {
5582
5608
  forgotPassword({ data: t2 }) {
5583
5609
  return e2.post("forgot-password", t2, { authenticate: false });
5584
5610
  }
5585
5611
  };
5586
5612
  }
5587
- function te$1({ apiHandler: e2 }) {
5613
+ function Kt$1({ apiHandler: e2 }) {
5588
5614
  return {
5589
5615
  /**
5590
5616
  * @param { rebilly.GetAllowlistCollectionRequest } request
@@ -5613,7 +5639,7 @@ function te$1({ apiHandler: e2 }) {
5613
5639
  }
5614
5640
  };
5615
5641
  }
5616
- function ee$1({ apiHandler: e2 }) {
5642
+ function Nt$1({ apiHandler: e2 }) {
5617
5643
  return {
5618
5644
  /**
5619
5645
  * @param { rebilly.GetAmlCheckCollectionRequest } request
@@ -5646,7 +5672,7 @@ function ee$1({ apiHandler: e2 }) {
5646
5672
  }
5647
5673
  };
5648
5674
  }
5649
- function se$1({ apiHandler: e2 }) {
5675
+ function Lt$1({ apiHandler: e2 }) {
5650
5676
  return {
5651
5677
  /**
5652
5678
  * @returns { rebilly.GetAmlSettingsResponsePromise } response
@@ -5662,7 +5688,7 @@ function se$1({ apiHandler: e2 }) {
5662
5688
  }
5663
5689
  };
5664
5690
  }
5665
- function re$1({ apiHandler: e2 }) {
5691
+ function zt$1({ apiHandler: e2 }) {
5666
5692
  return {
5667
5693
  /**
5668
5694
  * @param { rebilly.GetApiKeyCollectionRequest } request
@@ -5696,7 +5722,7 @@ function re$1({ apiHandler: e2 }) {
5696
5722
  }
5697
5723
  };
5698
5724
  }
5699
- function ne$1({ apiHandler: e2 }) {
5725
+ function Ut$1({ apiHandler: e2 }) {
5700
5726
  return {
5701
5727
  /**
5702
5728
  * @returns { rebilly.GetApplicationInstanceResponsePromise } response
@@ -5732,7 +5758,7 @@ function ne$1({ apiHandler: e2 }) {
5732
5758
  }
5733
5759
  };
5734
5760
  }
5735
- function ue$1({ apiHandler: e2 }) {
5761
+ function Vt$1({ apiHandler: e2 }) {
5736
5762
  return {
5737
5763
  /**
5738
5764
  * @param { rebilly.GetApplicationCollectionRequest } request
@@ -5747,8 +5773,8 @@ function ue$1({ apiHandler: e2 }) {
5747
5773
  fields: o2 = null,
5748
5774
  sort: l = null
5749
5775
  } = {}) {
5750
- const a = { limit: t2, offset: s, filter: r2, q: n2, expand: u, fields: o2, sort: l };
5751
- return e2.getAll("applications", a);
5776
+ const i = { limit: t2, offset: s, filter: r2, q: n2, expand: u, fields: o2, sort: l };
5777
+ return e2.getAll("applications", i);
5752
5778
  },
5753
5779
  create({ data: t2 }) {
5754
5780
  return e2.post("applications", t2);
@@ -5775,7 +5801,7 @@ function ue$1({ apiHandler: e2 }) {
5775
5801
  }
5776
5802
  };
5777
5803
  }
5778
- function oe$1({ apiHandler: e2 }) {
5804
+ function Jt$1({ apiHandler: e2 }) {
5779
5805
  return {
5780
5806
  /**
5781
5807
  * @param { rebilly.GetBalanceTransactionCollectionRequest } request
@@ -5793,7 +5819,7 @@ function oe$1({ apiHandler: e2 }) {
5793
5819
  }
5794
5820
  };
5795
5821
  }
5796
- function le$1({ apiHandler: e2 }) {
5822
+ function Wt$1({ apiHandler: e2 }) {
5797
5823
  return {
5798
5824
  /**
5799
5825
  * @param { rebilly.GetBillingPortalCollectionRequest } request
@@ -5833,7 +5859,7 @@ function le$1({ apiHandler: e2 }) {
5833
5859
  }
5834
5860
  };
5835
5861
  }
5836
- function ce$1({ apiHandler: e2 }) {
5862
+ function Gt$1({ apiHandler: e2 }) {
5837
5863
  return {
5838
5864
  /**
5839
5865
  * @param { rebilly.GetBlocklistCollectionRequest } request
@@ -5867,7 +5893,7 @@ function ce$1({ apiHandler: e2 }) {
5867
5893
  }
5868
5894
  };
5869
5895
  }
5870
- function ie$1({ apiHandler: e2 }) {
5896
+ function Yt$1({ apiHandler: e2 }) {
5871
5897
  return {
5872
5898
  /**
5873
5899
  * @param { rebilly.GetBroadcastMessageCollectionRequest } request
@@ -5894,7 +5920,7 @@ function ie$1({ apiHandler: e2 }) {
5894
5920
  }
5895
5921
  };
5896
5922
  }
5897
- function ge({ apiHandler: e2 }) {
5923
+ function Qt$1({ apiHandler: e2 }) {
5898
5924
  return {
5899
5925
  create({ data: t2 }) {
5900
5926
  return e2.post("cashiers", t2);
@@ -5907,7 +5933,7 @@ function ge({ apiHandler: e2 }) {
5907
5933
  }
5908
5934
  };
5909
5935
  }
5910
- function ae$1({ apiHandler: e2 }) {
5936
+ function Xt$1({ apiHandler: e2 }) {
5911
5937
  return {
5912
5938
  /**
5913
5939
  * @param { rebilly.GetCheckoutFormCollectionRequest } request
@@ -5947,7 +5973,7 @@ function ae$1({ apiHandler: e2 }) {
5947
5973
  }
5948
5974
  };
5949
5975
  }
5950
- function me$1({ apiHandler: e2 }) {
5976
+ function Zt$1({ apiHandler: e2 }) {
5951
5977
  return {
5952
5978
  /**
5953
5979
  * @param { rebilly.GetCouponRedemptionCollectionRequest } request
@@ -6013,8 +6039,8 @@ function me$1({ apiHandler: e2 }) {
6013
6039
  }
6014
6040
  };
6015
6041
  }
6016
- const w = { Accept: "application/pdf" };
6017
- function fe$1({ apiHandler: e2 }) {
6042
+ const v = { Accept: "application/pdf" };
6043
+ function _t$1({ apiHandler: e2 }) {
6018
6044
  return {
6019
6045
  /**
6020
6046
  * @param { rebilly.GetCreditMemoCollectionRequest } request
@@ -6088,14 +6114,14 @@ function fe$1({ apiHandler: e2 }) {
6088
6114
  },
6089
6115
  downloadPDF({ id: t2 }) {
6090
6116
  const s = {
6091
- headers: w,
6117
+ headers: v,
6092
6118
  responseType: "arraybuffer"
6093
6119
  };
6094
6120
  return e2.download(`credit-memos/${t2}`, s);
6095
6121
  }
6096
6122
  };
6097
6123
  }
6098
- function $e$1({ apiHandler: e2 }) {
6124
+ function Ht$1({ apiHandler: e2 }) {
6099
6125
  return {
6100
6126
  /**
6101
6127
  * @param { rebilly.GetCustomDomainCollectionRequest } request
@@ -6125,7 +6151,7 @@ function $e$1({ apiHandler: e2 }) {
6125
6151
  }
6126
6152
  };
6127
6153
  }
6128
- function pe$1({ apiHandler: e2 }) {
6154
+ function te$1({ apiHandler: e2 }) {
6129
6155
  return {
6130
6156
  /**
6131
6157
  * @returns { rebilly.GetCustomFieldCollectionResponsePromise } response
@@ -6154,7 +6180,7 @@ function pe$1({ apiHandler: e2 }) {
6154
6180
  }
6155
6181
  };
6156
6182
  }
6157
- function he$1({ apiHandler: e2 }) {
6183
+ function ee$1({ apiHandler: e2 }) {
6158
6184
  return {
6159
6185
  /**
6160
6186
  * @returns { rebilly.GetAuthenticationOptionResponsePromise } response
@@ -6243,7 +6269,7 @@ function he$1({ apiHandler: e2 }) {
6243
6269
  }
6244
6270
  };
6245
6271
  }
6246
- function ye$1({ apiHandler: e2 }) {
6272
+ function se$1({ apiHandler: e2 }) {
6247
6273
  return {
6248
6274
  /**
6249
6275
  * @param { rebilly.GetCustomerCollectionRequest } request
@@ -6258,8 +6284,8 @@ function ye$1({ apiHandler: e2 }) {
6258
6284
  fields: o2 = null,
6259
6285
  sort: l = null
6260
6286
  } = {}) {
6261
- const a = { limit: t2, offset: s, filter: r2, q: n2, expand: u, fields: o2, sort: l };
6262
- return e2.getAll("customers", a);
6287
+ const i = { limit: t2, offset: s, filter: r2, q: n2, expand: u, fields: o2, sort: l };
6288
+ return e2.getAll("customers", i);
6263
6289
  },
6264
6290
  /**
6265
6291
  * @param { rebilly.CreateCustomerRequest } request
@@ -6344,7 +6370,7 @@ function ye$1({ apiHandler: e2 }) {
6344
6370
  }
6345
6371
  };
6346
6372
  }
6347
- function Ae$1({ apiHandler: e2 }) {
6373
+ function re$1({ apiHandler: e2 }) {
6348
6374
  return {
6349
6375
  /**
6350
6376
  * @param { rebilly.GetDepositCustomPropertySetCollectionRequest } request
@@ -6378,7 +6404,7 @@ function Ae$1({ apiHandler: e2 }) {
6378
6404
  }
6379
6405
  };
6380
6406
  }
6381
- function be({ apiHandler: e2 }) {
6407
+ function ne$1({ apiHandler: e2 }) {
6382
6408
  return {
6383
6409
  /**
6384
6410
  * @param { rebilly.GetDepositRequestCollectionRequest } request
@@ -6406,7 +6432,7 @@ function be({ apiHandler: e2 }) {
6406
6432
  }
6407
6433
  };
6408
6434
  }
6409
- function Re$1({ apiHandler: e2 }) {
6435
+ function ue$1({ apiHandler: e2 }) {
6410
6436
  return {
6411
6437
  /**
6412
6438
  * @param { rebilly.GetDepositStrategyCollectionRequest } request
@@ -6440,7 +6466,7 @@ function Re$1({ apiHandler: e2 }) {
6440
6466
  }
6441
6467
  };
6442
6468
  }
6443
- function we$1({ apiHandler: e2 }) {
6469
+ function oe$1({ apiHandler: e2 }) {
6444
6470
  return {
6445
6471
  validate({ data: t2 }) {
6446
6472
  return e2.post("digital-wallets/validation", t2);
@@ -6450,7 +6476,7 @@ function we$1({ apiHandler: e2 }) {
6450
6476
  }
6451
6477
  };
6452
6478
  }
6453
- function ke$1({ apiHandler: e2 }) {
6479
+ function le$1({ apiHandler: e2 }) {
6454
6480
  return {
6455
6481
  /**
6456
6482
  * @param { rebilly.GetDisputeCollectionRequest } request
@@ -6490,7 +6516,7 @@ function ke$1({ apiHandler: e2 }) {
6490
6516
  }
6491
6517
  };
6492
6518
  }
6493
- function ve$1({ apiHandler: e2 }) {
6519
+ function ce$1({ apiHandler: e2 }) {
6494
6520
  return {
6495
6521
  /**
6496
6522
  * @returns { rebilly.PutEmailDeliverySettingsVerificationResponsePromise } response
@@ -6534,7 +6560,7 @@ function ve$1({ apiHandler: e2 }) {
6534
6560
  }
6535
6561
  };
6536
6562
  }
6537
- function qe$1({ apiHandler: e2 }) {
6563
+ function ie$1({ apiHandler: e2 }) {
6538
6564
  return {
6539
6565
  /**
6540
6566
  * @param { rebilly.GetEmailMessageCollectionRequest } request
@@ -6567,7 +6593,7 @@ function qe$1({ apiHandler: e2 }) {
6567
6593
  }
6568
6594
  };
6569
6595
  }
6570
- function Te$1({ apiHandler: e2 }) {
6596
+ function ge({ apiHandler: e2 }) {
6571
6597
  return {
6572
6598
  /**
6573
6599
  * @param { rebilly.GetEmailNotificationCollectionRequest } request
@@ -6579,7 +6605,7 @@ function Te$1({ apiHandler: e2 }) {
6579
6605
  }
6580
6606
  };
6581
6607
  }
6582
- function de$1({ apiHandler: e2 }) {
6608
+ function ae$1({ apiHandler: e2 }) {
6583
6609
  return {
6584
6610
  /**
6585
6611
  * @param { rebilly.GetEventCollectionRequest } request
@@ -6652,8 +6678,8 @@ function de$1({ apiHandler: e2 }) {
6652
6678
  sort: o2 = null,
6653
6679
  fields: l = null
6654
6680
  }) {
6655
- const a = { limit: s, offset: r2, filter: n2, q: u, sort: o2, fields: l };
6656
- return e2.getAll(`events/${t2}/rules/history`, a);
6681
+ const i = { limit: s, offset: r2, filter: n2, q: u, sort: o2, fields: l };
6682
+ return e2.getAll(`events/${t2}/rules/history`, i);
6657
6683
  },
6658
6684
  /**
6659
6685
  * @returns { rebilly.GetEventRuleHistoryResponsePromise } response
@@ -6687,8 +6713,8 @@ function de$1({ apiHandler: e2 }) {
6687
6713
  sort: o2 = null,
6688
6714
  fields: l = null
6689
6715
  }) {
6690
- const a = { limit: s, offset: r2, filter: n2, q: u, sort: o2, fields: l };
6691
- return e2.getAll(`events/${t2}/rules/drafts`, a);
6716
+ const i = { limit: s, offset: r2, filter: n2, q: u, sort: o2, fields: l };
6717
+ return e2.getAll(`events/${t2}/rules/drafts`, i);
6692
6718
  },
6693
6719
  createDraftRuleset({ eventType: t2, data: s }) {
6694
6720
  return e2.post(`events/${t2}/rules/drafts`, s);
@@ -6711,7 +6737,7 @@ function de$1({ apiHandler: e2 }) {
6711
6737
  }
6712
6738
  };
6713
6739
  }
6714
- function Ie$1({ apiHandler: e2 }) {
6740
+ function me$1({ apiHandler: e2 }) {
6715
6741
  return {
6716
6742
  /**
6717
6743
  * @returns { rebilly.GetExternalIdentifierResponsePromise } response
@@ -6742,7 +6768,7 @@ function Ie$1({ apiHandler: e2 }) {
6742
6768
  }
6743
6769
  };
6744
6770
  }
6745
- function Se$1({ apiHandler: e2 }) {
6771
+ function fe$1({ apiHandler: e2 }) {
6746
6772
  return {
6747
6773
  /**
6748
6774
  * @returns { rebilly.GetExternalServiceSettingsResponsePromise } response
@@ -6758,7 +6784,7 @@ function Se$1({ apiHandler: e2 }) {
6758
6784
  }
6759
6785
  };
6760
6786
  }
6761
- function Ee$1({ apiHandler: e2 }) {
6787
+ function $e$1({ apiHandler: e2 }) {
6762
6788
  return {
6763
6789
  /**
6764
6790
  * @param { rebilly.GetFeeCollectionRequest } request
@@ -6795,7 +6821,7 @@ function Ee$1({ apiHandler: e2 }) {
6795
6821
  }
6796
6822
  };
6797
6823
  }
6798
- function xe$1({ apiHandler: e2 }) {
6824
+ function pe$1({ apiHandler: e2 }) {
6799
6825
  return {
6800
6826
  /**
6801
6827
  * @param { rebilly.GetAttachmentCollectionRequest } request
@@ -6810,8 +6836,8 @@ function xe$1({ apiHandler: e2 }) {
6810
6836
  fields: o2 = null,
6811
6837
  sort: l = null
6812
6838
  } = {}) {
6813
- const a = { limit: t2, offset: s, filter: r2, q: n2, expand: u, fields: o2, sort: l };
6814
- return e2.getAll("attachments", a);
6839
+ const i = { limit: t2, offset: s, filter: r2, q: n2, expand: u, fields: o2, sort: l };
6840
+ return e2.getAll("attachments", i);
6815
6841
  },
6816
6842
  /**
6817
6843
  * @returns { rebilly.PostAttachmentResponsePromise } response
@@ -6883,10 +6909,10 @@ function xe$1({ apiHandler: e2 }) {
6883
6909
  const u = (async () => {
6884
6910
  const o2 = this.getAllAttachments(s);
6885
6911
  r2.push(o2);
6886
- const a = (await o2).items.map(
6887
- (y) => this.detach({ id: y.fields.id })
6912
+ const i = (await o2).items.map(
6913
+ (a) => this.detach({ id: a.fields.id })
6888
6914
  );
6889
- r2 = [...r2, a], await Promise.all(a);
6915
+ r2 = [...r2, i], await Promise.all(i);
6890
6916
  const f = e2.delete(`files/${t2}`);
6891
6917
  return r2.push(f), f;
6892
6918
  })();
@@ -6904,8 +6930,8 @@ function xe$1({ apiHandler: e2 }) {
6904
6930
  description: s.description,
6905
6931
  tags: s.tags,
6906
6932
  url: ""
6907
- }, a = this.update({ id: o2.fields.id, data: l });
6908
- return r2.push(a), a;
6933
+ }, i = this.update({ id: o2.fields.id, data: l });
6934
+ return r2.push(i), i;
6909
6935
  })();
6910
6936
  return u.cancel = () => {
6911
6937
  r2.forEach((o2) => o2.cancel());
@@ -6913,7 +6939,7 @@ function xe$1({ apiHandler: e2 }) {
6913
6939
  }
6914
6940
  };
6915
6941
  }
6916
- function Pe$1({ apiHandler: e2 }) {
6942
+ function he$1({ apiHandler: e2 }) {
6917
6943
  return {
6918
6944
  /**
6919
6945
  * @param { rebilly.GetGatewayAccountCollectionRequest } request
@@ -7069,7 +7095,7 @@ function Pe$1({ apiHandler: e2 }) {
7069
7095
  }
7070
7096
  };
7071
7097
  }
7072
- function Ce$1({ apiHandler: e2 }) {
7098
+ function ye$1({ apiHandler: e2 }) {
7073
7099
  return {
7074
7100
  /**
7075
7101
  * @param { rebilly.GetIntegrationCollectionRequest } request
@@ -7087,7 +7113,7 @@ function Ce$1({ apiHandler: e2 }) {
7087
7113
  }
7088
7114
  };
7089
7115
  }
7090
- function De$1({ apiHandler: e2 }) {
7116
+ function Ae$1({ apiHandler: e2 }) {
7091
7117
  return {
7092
7118
  /**
7093
7119
  * @param { rebilly.GetInvoiceCollectionRequest } request
@@ -7211,14 +7237,14 @@ function De$1({ apiHandler: e2 }) {
7211
7237
  },
7212
7238
  downloadPDF({ id: t2 }) {
7213
7239
  const s = {
7214
- headers: w,
7240
+ headers: v,
7215
7241
  responseType: "arraybuffer"
7216
7242
  };
7217
7243
  return e2.download(`invoices/${t2}`, s);
7218
7244
  }
7219
7245
  };
7220
7246
  }
7221
- function je$1({ apiHandler: e2 }) {
7247
+ function be({ apiHandler: e2 }) {
7222
7248
  return {
7223
7249
  /**
7224
7250
  * @param { rebilly.GetJournalAccountCollectionRequest } request
@@ -7254,7 +7280,7 @@ function je$1({ apiHandler: e2 }) {
7254
7280
  }
7255
7281
  };
7256
7282
  }
7257
- function Me$1({ apiHandler: e2 }) {
7283
+ function Re$1({ apiHandler: e2 }) {
7258
7284
  return {
7259
7285
  /**
7260
7286
  * @param { rebilly.GetJournalEntryCollectionRequest } request
@@ -7290,7 +7316,7 @@ function Me$1({ apiHandler: e2 }) {
7290
7316
  }
7291
7317
  };
7292
7318
  }
7293
- function Oe$1({ apiHandler: e2 }) {
7319
+ function we$1({ apiHandler: e2 }) {
7294
7320
  return {
7295
7321
  /**
7296
7322
  * @param { rebilly.GetJournalRecordCollectionRequest } request
@@ -7330,7 +7356,7 @@ function Oe$1({ apiHandler: e2 }) {
7330
7356
  }
7331
7357
  };
7332
7358
  }
7333
- function Fe$1({ apiHandler: e2 }) {
7359
+ function ke$1({ apiHandler: e2 }) {
7334
7360
  return {
7335
7361
  /**
7336
7362
  * @param { rebilly.GetKycDocumentCollectionRequest } request
@@ -7385,7 +7411,7 @@ function Fe$1({ apiHandler: e2 }) {
7385
7411
  }
7386
7412
  };
7387
7413
  }
7388
- function Be$1({ apiHandler: e2 }) {
7414
+ function ve$1({ apiHandler: e2 }) {
7389
7415
  return {
7390
7416
  /**
7391
7417
  * @param { rebilly.GetKycRequestCollectionRequest } request
@@ -7418,7 +7444,7 @@ function Be$1({ apiHandler: e2 }) {
7418
7444
  }
7419
7445
  };
7420
7446
  }
7421
- function Ke$1({ apiHandler: e2 }) {
7447
+ function qe$1({ apiHandler: e2 }) {
7422
7448
  return {
7423
7449
  /**
7424
7450
  * @returns { rebilly.GetKycSettingsResponsePromise } response
@@ -7434,7 +7460,7 @@ function Ke$1({ apiHandler: e2 }) {
7434
7460
  }
7435
7461
  };
7436
7462
  }
7437
- function Ne$1({ apiHandler: e2 }) {
7463
+ function de$1({ apiHandler: e2 }) {
7438
7464
  return {
7439
7465
  /**
7440
7466
  * @param { rebilly.GetListCollectionRequest } request
@@ -7481,7 +7507,7 @@ function Ne$1({ apiHandler: e2 }) {
7481
7507
  }
7482
7508
  };
7483
7509
  }
7484
- function Le$1({ apiHandler: e2 }) {
7510
+ function Te$1({ apiHandler: e2 }) {
7485
7511
  return {
7486
7512
  /**
7487
7513
  * @param { rebilly.GetMembershipCollectionRequest } request
@@ -7508,7 +7534,7 @@ function Le$1({ apiHandler: e2 }) {
7508
7534
  }
7509
7535
  };
7510
7536
  }
7511
- function ze$1({ apiHandler: e2 }) {
7537
+ function Ie$1({ apiHandler: e2 }) {
7512
7538
  return {
7513
7539
  /**
7514
7540
  * @param { rebilly.GetOrderCancellationCollectionRequest } request
@@ -7545,7 +7571,7 @@ function ze$1({ apiHandler: e2 }) {
7545
7571
  }
7546
7572
  };
7547
7573
  }
7548
- function Ue$1({ apiHandler: e2 }) {
7574
+ function Se$1({ apiHandler: e2 }) {
7549
7575
  return {
7550
7576
  /**
7551
7577
  * @param { rebilly.GetOrderPauseCollectionRequest } request
@@ -7579,7 +7605,7 @@ function Ue$1({ apiHandler: e2 }) {
7579
7605
  }
7580
7606
  };
7581
7607
  }
7582
- function Ve$1({ apiHandler: e2 }) {
7608
+ function Ee$1({ apiHandler: e2 }) {
7583
7609
  return {
7584
7610
  /**
7585
7611
  * @param { rebilly.GetOrderReactivationCollectionRequest } request
@@ -7600,7 +7626,7 @@ function Ve$1({ apiHandler: e2 }) {
7600
7626
  }
7601
7627
  };
7602
7628
  }
7603
- function Je$1({ apiHandler: e2 }) {
7629
+ function xe$1({ apiHandler: e2 }) {
7604
7630
  return {
7605
7631
  /**
7606
7632
  * @param { rebilly.GetOrderCollectionRequest } request
@@ -7664,7 +7690,7 @@ function Je$1({ apiHandler: e2 }) {
7664
7690
  }
7665
7691
  };
7666
7692
  }
7667
- function We$1({ apiHandler: e2 }) {
7693
+ function Pe$1({ apiHandler: e2 }) {
7668
7694
  return {
7669
7695
  /**
7670
7696
  * @param { rebilly.GetOrganizationExportCollectionRequest } request
@@ -7691,7 +7717,7 @@ function We$1({ apiHandler: e2 }) {
7691
7717
  }
7692
7718
  };
7693
7719
  }
7694
- function Ge$1({ apiHandler: e2 }) {
7720
+ function Ce$1({ apiHandler: e2 }) {
7695
7721
  return {
7696
7722
  /**
7697
7723
  * @param { rebilly.GetOrganizationCollectionRequest } request
@@ -7721,7 +7747,7 @@ function Ge$1({ apiHandler: e2 }) {
7721
7747
  }
7722
7748
  };
7723
7749
  }
7724
- function Ye$1({ apiHandler: e2 }) {
7750
+ function De$1({ apiHandler: e2 }) {
7725
7751
  return {
7726
7752
  /**
7727
7753
  * @param { rebilly.GetPaymentCardBankNameCollectionRequest } request
@@ -7733,7 +7759,7 @@ function Ye$1({ apiHandler: e2 }) {
7733
7759
  }
7734
7760
  };
7735
7761
  }
7736
- function Qe$1({ apiHandler: e2 }) {
7762
+ function je$1({ apiHandler: e2 }) {
7737
7763
  return {
7738
7764
  /**
7739
7765
  * @param { rebilly.GetPaymentInstrumentCollectionRequest } request
@@ -7770,7 +7796,7 @@ function Qe$1({ apiHandler: e2 }) {
7770
7796
  }
7771
7797
  };
7772
7798
  }
7773
- function Xe$1({ apiHandler: e2 }) {
7799
+ function Me$1({ apiHandler: e2 }) {
7774
7800
  return {
7775
7801
  /**
7776
7802
  * @param { rebilly.GetPaymentMethodCollectionRequest } request
@@ -7788,7 +7814,7 @@ function Xe$1({ apiHandler: e2 }) {
7788
7814
  }
7789
7815
  };
7790
7816
  }
7791
- function Ze$1({ apiHandler: e2 }) {
7817
+ function Oe$1({ apiHandler: e2 }) {
7792
7818
  return {
7793
7819
  /**
7794
7820
  * @param { rebilly.GetTokenCollectionRequest } request
@@ -7809,7 +7835,7 @@ function Ze$1({ apiHandler: e2 }) {
7809
7835
  }
7810
7836
  };
7811
7837
  }
7812
- function _e$1({ apiHandler: e2 }) {
7838
+ function Fe$1({ apiHandler: e2 }) {
7813
7839
  return {
7814
7840
  /**
7815
7841
  * @param { rebilly.GetPayoutRequestAllocationCollectionRequest } request
@@ -7839,7 +7865,7 @@ function _e$1({ apiHandler: e2 }) {
7839
7865
  }
7840
7866
  };
7841
7867
  }
7842
- function He$1({ apiHandler: e2 }) {
7868
+ function Be$1({ apiHandler: e2 }) {
7843
7869
  return {
7844
7870
  /**
7845
7871
  * @param { rebilly.GetPayoutRequestBatchCollectionRequest } request
@@ -7879,7 +7905,7 @@ function He$1({ apiHandler: e2 }) {
7879
7905
  }
7880
7906
  };
7881
7907
  }
7882
- function ts({ apiHandler: e2 }) {
7908
+ function Ke$1({ apiHandler: e2 }) {
7883
7909
  return {
7884
7910
  /**
7885
7911
  * @param { rebilly.GetPayoutRequestCollectionRequest } request
@@ -7952,14 +7978,14 @@ function ts({ apiHandler: e2 }) {
7952
7978
  }
7953
7979
  };
7954
7980
  }
7955
- function es({ apiHandler: e2 }) {
7981
+ function Ne$1({ apiHandler: e2 }) {
7956
7982
  return {
7957
7983
  create({ data: t2 }) {
7958
7984
  return e2.post("payouts", t2);
7959
7985
  }
7960
7986
  };
7961
7987
  }
7962
- function ss({ apiHandler: e2 }) {
7988
+ function Le$1({ apiHandler: e2 }) {
7963
7989
  return {
7964
7990
  /**
7965
7991
  * @param { rebilly.GetPlanCollectionRequest } request
@@ -7999,7 +8025,7 @@ function ss({ apiHandler: e2 }) {
7999
8025
  }
8000
8026
  };
8001
8027
  }
8002
- function rs({ apiHandler: e2 }) {
8028
+ function ze$1({ apiHandler: e2 }) {
8003
8029
  return {
8004
8030
  order({ data: t2 }) {
8005
8031
  return e2.post("previews/orders", t2);
@@ -8012,7 +8038,7 @@ function rs({ apiHandler: e2 }) {
8012
8038
  }
8013
8039
  };
8014
8040
  }
8015
- function ns({ apiHandler: e2 }) {
8041
+ function Ue$1({ apiHandler: e2 }) {
8016
8042
  return {
8017
8043
  /**
8018
8044
  * @param { rebilly.GetProductCollectionRequest } request
@@ -8052,7 +8078,7 @@ function ns({ apiHandler: e2 }) {
8052
8078
  }
8053
8079
  };
8054
8080
  }
8055
- function us({ apiHandler: e2 }) {
8081
+ function Ve$1({ apiHandler: e2 }) {
8056
8082
  return {
8057
8083
  startPermissionsEmulation({ data: t2 }) {
8058
8084
  return e2.post("permissions-emulation", t2);
@@ -8105,14 +8131,14 @@ function us({ apiHandler: e2 }) {
8105
8131
  }
8106
8132
  };
8107
8133
  }
8108
- function os({ apiHandler: e2 }) {
8134
+ function Je$1({ apiHandler: e2 }) {
8109
8135
  return {
8110
8136
  readyToPay({ data: t2 }) {
8111
8137
  return e2.post("ready-to-pay", t2);
8112
8138
  }
8113
8139
  };
8114
8140
  }
8115
- function ls({ apiHandler: e2 }) {
8141
+ function We$1({ apiHandler: e2 }) {
8116
8142
  return {
8117
8143
  /**
8118
8144
  * @param { rebilly.GetQuoteCollectionRequest } request
@@ -8195,14 +8221,14 @@ function ls({ apiHandler: e2 }) {
8195
8221
  },
8196
8222
  downloadPDF({ id: t2 }) {
8197
8223
  const s = {
8198
- headers: w,
8224
+ headers: v,
8199
8225
  responseType: "arraybuffer"
8200
8226
  };
8201
8227
  return e2.download(`quotes/${t2}`, s);
8202
8228
  }
8203
8229
  };
8204
8230
  }
8205
- function cs({ apiHandler: e2 }) {
8231
+ function Ge$1({ apiHandler: e2 }) {
8206
8232
  return {
8207
8233
  /**
8208
8234
  * @returns { rebilly.GetExternalIdentifierResponsePromise } response
@@ -8233,7 +8259,7 @@ function cs({ apiHandler: e2 }) {
8233
8259
  }
8234
8260
  };
8235
8261
  }
8236
- function is({ apiHandler: e2 }) {
8262
+ function Ye$1({ apiHandler: e2 }) {
8237
8263
  return {
8238
8264
  /**
8239
8265
  * @returns { rebilly.GetRiskScoreRulesResponsePromise } response
@@ -8261,7 +8287,7 @@ function is({ apiHandler: e2 }) {
8261
8287
  }
8262
8288
  };
8263
8289
  }
8264
- function gs({ apiHandler: e2 }) {
8290
+ function Qe$1({ apiHandler: e2 }) {
8265
8291
  return {
8266
8292
  /**
8267
8293
  * @param { rebilly.GetRoleCollectionRequest } request
@@ -8303,7 +8329,7 @@ function gs({ apiHandler: e2 }) {
8303
8329
  }
8304
8330
  };
8305
8331
  }
8306
- function as({ apiHandler: e2 }) {
8332
+ function Xe$1({ apiHandler: e2 }) {
8307
8333
  return {
8308
8334
  /**
8309
8335
  * @returns { rebilly.GetSearchResponsePromise } response
@@ -8314,7 +8340,7 @@ function as({ apiHandler: e2 }) {
8314
8340
  }
8315
8341
  };
8316
8342
  }
8317
- function ms({ apiHandler: e2 }) {
8343
+ function Ze$1({ apiHandler: e2 }) {
8318
8344
  return {
8319
8345
  /**
8320
8346
  * @param { rebilly.GetGridSegmentCollectionRequest } request
@@ -8354,7 +8380,7 @@ function ms({ apiHandler: e2 }) {
8354
8380
  }
8355
8381
  };
8356
8382
  }
8357
- function fs({ apiHandler: e2 }) {
8383
+ function _e$1({ apiHandler: e2 }) {
8358
8384
  return {
8359
8385
  /**
8360
8386
  * @returns { rebilly.GetSendThroughAttributionCollectionResponsePromise } response
@@ -8364,7 +8390,7 @@ function fs({ apiHandler: e2 }) {
8364
8390
  }
8365
8391
  };
8366
8392
  }
8367
- function $s({ apiHandler: e2 }) {
8393
+ function He$1({ apiHandler: e2 }) {
8368
8394
  return {
8369
8395
  /**
8370
8396
  * @param { rebilly.GetServiceCredentialCollectionRequest } request
@@ -8405,9 +8431,9 @@ function $s({ apiHandler: e2 }) {
8405
8431
  filter: u = null,
8406
8432
  q: o2 = null,
8407
8433
  fields: l = null,
8408
- sort: a = null
8434
+ sort: i = null
8409
8435
  }) {
8410
- const f = { limit: r2, offset: n2, filter: u, q: o2, fields: l, sort: a };
8436
+ const f = { limit: r2, offset: n2, filter: u, q: o2, fields: l, sort: i };
8411
8437
  return e2.getAll(
8412
8438
  `service-credentials/${t2}/${s}/items`,
8413
8439
  f
@@ -8415,7 +8441,7 @@ function $s({ apiHandler: e2 }) {
8415
8441
  }
8416
8442
  };
8417
8443
  }
8418
- function ps({ apiHandler: e2 }) {
8444
+ function ts({ apiHandler: e2 }) {
8419
8445
  return {
8420
8446
  /**
8421
8447
  * @param { rebilly.GetShippingRateCollectionRequest } request
@@ -8455,7 +8481,7 @@ function ps({ apiHandler: e2 }) {
8455
8481
  }
8456
8482
  };
8457
8483
  }
8458
- function hs({ apiHandler: e2 }) {
8484
+ function es({ apiHandler: e2 }) {
8459
8485
  return {
8460
8486
  /**
8461
8487
  * @returns { rebilly.GetStatusResponsePromise } response
@@ -8465,7 +8491,7 @@ function hs({ apiHandler: e2 }) {
8465
8491
  }
8466
8492
  };
8467
8493
  }
8468
- function ys({ apiHandler: e2 }) {
8494
+ function ss({ apiHandler: e2 }) {
8469
8495
  return {
8470
8496
  /**
8471
8497
  * @param { rebilly.GetSubscriptionCancellationCollectionRequest } request
@@ -8496,7 +8522,7 @@ function ys({ apiHandler: e2 }) {
8496
8522
  }
8497
8523
  };
8498
8524
  }
8499
- function As({ apiHandler: e2 }) {
8525
+ function rs({ apiHandler: e2 }) {
8500
8526
  return {
8501
8527
  /**
8502
8528
  * @param { rebilly.GetSubscriptionPauseCollectionRequest } request
@@ -8530,7 +8556,7 @@ function As({ apiHandler: e2 }) {
8530
8556
  }
8531
8557
  };
8532
8558
  }
8533
- function bs({ apiHandler: e2 }) {
8559
+ function ns({ apiHandler: e2 }) {
8534
8560
  return {
8535
8561
  /**
8536
8562
  * @param { rebilly.GetSubscriptionReactivationCollectionRequest } request
@@ -8551,7 +8577,7 @@ function bs({ apiHandler: e2 }) {
8551
8577
  }
8552
8578
  };
8553
8579
  }
8554
- function Rs({ apiHandler: e2 }) {
8580
+ function us({ apiHandler: e2 }) {
8555
8581
  return {
8556
8582
  /**
8557
8583
  * @param { rebilly.GetSubscriptionCollectionRequest } request
@@ -8662,7 +8688,7 @@ function Rs({ apiHandler: e2 }) {
8662
8688
  }
8663
8689
  };
8664
8690
  }
8665
- function ws({ apiHandler: e2 }) {
8691
+ function os({ apiHandler: e2 }) {
8666
8692
  return {
8667
8693
  /**
8668
8694
  * @param { rebilly.GetTagCollectionRequest } request
@@ -8731,7 +8757,7 @@ function ws({ apiHandler: e2 }) {
8731
8757
  }
8732
8758
  };
8733
8759
  }
8734
- function ks({ apiHandler: e2 }) {
8760
+ function ls({ apiHandler: e2 }) {
8735
8761
  return {
8736
8762
  /**
8737
8763
  * @param { rebilly.GetTagRuleCollectionRequest } request
@@ -8771,7 +8797,7 @@ function ks({ apiHandler: e2 }) {
8771
8797
  }
8772
8798
  };
8773
8799
  }
8774
- function vs({ apiHandler: e2 }) {
8800
+ function cs({ apiHandler: e2 }) {
8775
8801
  return {
8776
8802
  /**
8777
8803
  * @param { rebilly.GetTrackingApiCollectionRequest } request
@@ -8853,7 +8879,7 @@ function vs({ apiHandler: e2 }) {
8853
8879
  }
8854
8880
  };
8855
8881
  }
8856
- function qs({ apiHandler: e2 }) {
8882
+ function is({ apiHandler: e2 }) {
8857
8883
  return {
8858
8884
  /**
8859
8885
  * @param { rebilly.GetTransactionCollectionRequest } request
@@ -8923,14 +8949,14 @@ function qs({ apiHandler: e2 }) {
8923
8949
  },
8924
8950
  downloadPDF({ id: t2 }) {
8925
8951
  const s = {
8926
- headers: w,
8952
+ headers: v,
8927
8953
  responseType: "arraybuffer"
8928
8954
  };
8929
8955
  return e2.download(`transactions/${t2}`, s);
8930
8956
  }
8931
8957
  };
8932
8958
  }
8933
- function Ts({ apiHandler: e2 }) {
8959
+ function gs({ apiHandler: e2 }) {
8934
8960
  return {
8935
8961
  /**
8936
8962
  * @param { rebilly.GetUsageCollectionRequest } request
@@ -8960,7 +8986,7 @@ function Ts({ apiHandler: e2 }) {
8960
8986
  }
8961
8987
  };
8962
8988
  }
8963
- function ds({ apiHandler: e2 }) {
8989
+ function as({ apiHandler: e2 }) {
8964
8990
  return {
8965
8991
  /**
8966
8992
  * @param { rebilly.GetUserCollectionRequest } request
@@ -9003,7 +9029,7 @@ function ds({ apiHandler: e2 }) {
9003
9029
  }
9004
9030
  };
9005
9031
  }
9006
- function Is({ apiHandler: e2 }) {
9032
+ function ms({ apiHandler: e2 }) {
9007
9033
  return {
9008
9034
  /**
9009
9035
  * @param { rebilly.GetWebhookCollectionRequest } request
@@ -9037,7 +9063,7 @@ function Is({ apiHandler: e2 }) {
9037
9063
  }
9038
9064
  };
9039
9065
  }
9040
- function Ss({ apiHandler: e2 }) {
9066
+ function fs({ apiHandler: e2 }) {
9041
9067
  return {
9042
9068
  /**
9043
9069
  * @param { rebilly.GetWebsiteCollectionRequest } request
@@ -9077,24 +9103,24 @@ function Ss({ apiHandler: e2 }) {
9077
9103
  }
9078
9104
  };
9079
9105
  }
9080
- class Es {
9106
+ class $s {
9081
9107
  constructor({ apiHandler: t2 }) {
9082
- this.accountRegistrationSettings = _t$1({
9108
+ this.accountRegistrationSettings = Ft$1({
9083
9109
  apiHandler: t2
9084
- }), this.account = Ht$1({ apiHandler: t2 }), this.allowlists = te$1({ apiHandler: t2 }), this.amlChecks = ee$1({ apiHandler: t2 }), this.amlSettings = se$1({ apiHandler: t2 }), this.apiKeys = re$1({ apiHandler: t2 }), this.applicationInstances = ne$1({ apiHandler: t2 }), this.applications = ue$1({ apiHandler: t2 }), this.balanceTransactions = oe$1({ apiHandler: t2 }), this.billingPortals = le$1({ apiHandler: t2 }), this.blocklists = ce$1({ apiHandler: t2 }), this.broadcastMessages = ie$1({ apiHandler: t2 }), this.cashiers = ge({ apiHandler: t2 }), this.checkoutForms = ae$1({ apiHandler: t2 }), this.coupons = me$1({ apiHandler: t2 }), this.creditMemos = fe$1({ apiHandler: t2 }), this.customDomains = $e$1({ apiHandler: t2 }), this.customFields = pe$1({ apiHandler: t2 }), this.customerAuthentication = he$1({ apiHandler: t2 }), this.customers = ye$1({ apiHandler: t2 }), this.depositCustomPropertySets = Ae$1({
9110
+ }), this.account = Bt$1({ apiHandler: t2 }), this.allowlists = Kt$1({ apiHandler: t2 }), this.amlChecks = Nt$1({ apiHandler: t2 }), this.amlSettings = Lt$1({ apiHandler: t2 }), this.apiKeys = zt$1({ apiHandler: t2 }), this.applicationInstances = Ut$1({ apiHandler: t2 }), this.applications = Vt$1({ apiHandler: t2 }), this.balanceTransactions = Jt$1({ apiHandler: t2 }), this.billingPortals = Wt$1({ apiHandler: t2 }), this.blocklists = Gt$1({ apiHandler: t2 }), this.broadcastMessages = Yt$1({ apiHandler: t2 }), this.cashiers = Qt$1({ apiHandler: t2 }), this.checkoutForms = Xt$1({ apiHandler: t2 }), this.coupons = Zt$1({ apiHandler: t2 }), this.creditMemos = _t$1({ apiHandler: t2 }), this.customDomains = Ht$1({ apiHandler: t2 }), this.customFields = te$1({ apiHandler: t2 }), this.customerAuthentication = ee$1({ apiHandler: t2 }), this.customers = se$1({ apiHandler: t2 }), this.depositCustomPropertySets = re$1({
9085
9111
  apiHandler: t2
9086
- }), this.depositRequests = be({ apiHandler: t2 }), this.depositStrategies = Re$1({ apiHandler: t2 }), this.digitalWallets = we$1({ apiHandler: t2 }), this.disputes = ke$1({ apiHandler: t2 }), this.emailDeliverySettings = ve$1({ apiHandler: t2 }), this.emailMessages = qe$1({ apiHandler: t2 }), this.emailNotifications = Te$1({ apiHandler: t2 }), this.events = de$1({ apiHandler: t2 }), this.externalIdentifiers = Ie$1({ apiHandler: t2 }), this.externalServicesSettings = Se$1({
9112
+ }), this.depositRequests = ne$1({ apiHandler: t2 }), this.depositStrategies = ue$1({ apiHandler: t2 }), this.digitalWallets = oe$1({ apiHandler: t2 }), this.disputes = le$1({ apiHandler: t2 }), this.emailDeliverySettings = ce$1({ apiHandler: t2 }), this.emailMessages = ie$1({ apiHandler: t2 }), this.emailNotifications = ge({ apiHandler: t2 }), this.events = ae$1({ apiHandler: t2 }), this.externalIdentifiers = me$1({ apiHandler: t2 }), this.externalServicesSettings = fe$1({
9087
9113
  apiHandler: t2
9088
- }), this.fees = Ee$1({ apiHandler: t2 }), this.files = xe$1({ apiHandler: t2 }), this.gatewayAccounts = Pe$1({ apiHandler: t2 }), this.integrations = Ce$1({ apiHandler: t2 }), this.invoices = De$1({ apiHandler: t2 }), this.journalAccounts = je$1({ apiHandler: t2 }), this.journalEntries = Me$1({ apiHandler: t2 }), this.journalRecords = Oe$1({ apiHandler: t2 }), this.kycDocuments = Fe$1({ apiHandler: t2 }), this.kycRequests = Be$1({ apiHandler: t2 }), this.kycSettings = Ke$1({ apiHandler: t2 }), this.lists = Ne$1({ apiHandler: t2 }), this.memberships = Le$1({ apiHandler: t2 }), this.orderCancellations = ze$1({ apiHandler: t2 }), this.orderPauses = Ue$1({ apiHandler: t2 }), this.orderReactivations = Ve$1({ apiHandler: t2 }), this.orders = Je$1({ apiHandler: t2 }), this.organizationExports = We$1({ apiHandler: t2 }), this.organizations = Ge$1({ apiHandler: t2 }), this.paymentCardsBankNames = Ye$1({ apiHandler: t2 }), this.paymentInstruments = Qe$1({ apiHandler: t2 }), this.paymentMethods = Xe$1({ apiHandler: t2 }), this.paymentTokens = Ze$1({ apiHandler: t2 }), this.payoutRequestAllocations = _e$1({
9114
+ }), this.fees = $e$1({ apiHandler: t2 }), this.files = pe$1({ apiHandler: t2 }), this.gatewayAccounts = he$1({ apiHandler: t2 }), this.integrations = ye$1({ apiHandler: t2 }), this.invoices = Ae$1({ apiHandler: t2 }), this.journalAccounts = be({ apiHandler: t2 }), this.journalEntries = Re$1({ apiHandler: t2 }), this.journalRecords = we$1({ apiHandler: t2 }), this.kycDocuments = ke$1({ apiHandler: t2 }), this.kycRequests = ve$1({ apiHandler: t2 }), this.kycSettings = qe$1({ apiHandler: t2 }), this.lists = de$1({ apiHandler: t2 }), this.memberships = Te$1({ apiHandler: t2 }), this.orderCancellations = Ie$1({ apiHandler: t2 }), this.orderPauses = Se$1({ apiHandler: t2 }), this.orderReactivations = Ee$1({ apiHandler: t2 }), this.orders = xe$1({ apiHandler: t2 }), this.organizationExports = Pe$1({ apiHandler: t2 }), this.organizations = Ce$1({ apiHandler: t2 }), this.paymentCardsBankNames = De$1({ apiHandler: t2 }), this.paymentInstruments = je$1({ apiHandler: t2 }), this.paymentMethods = Me$1({ apiHandler: t2 }), this.paymentTokens = Oe$1({ apiHandler: t2 }), this.payoutRequestAllocations = Fe$1({
9089
9115
  apiHandler: t2
9090
- }), this.payoutRequestBatches = He$1({ apiHandler: t2 }), this.payoutRequests = ts({ apiHandler: t2 }), this.payouts = es({ apiHandler: t2 }), this.plans = ss({ apiHandler: t2 }), this.previews = rs({ apiHandler: t2 }), this.products = ns({ apiHandler: t2 }), this.profile = us({ apiHandler: t2 }), this.purchase = os({ apiHandler: t2 }), this.quotes = ls({ apiHandler: t2 }), this.resource = cs({ apiHandler: t2 }), this.riskScoreRules = is({ apiHandler: t2 }), this.roles = gs({ apiHandler: t2 }), this.search = as({ apiHandler: t2 }), this.segments = ms({ apiHandler: t2 }), this.sendThroughAttribution = fs({ apiHandler: t2 }), this.serviceCredentials = $s({ apiHandler: t2 }), this.shippingRates = ps({ apiHandler: t2 }), this.status = hs({ apiHandler: t2 }), this.subscriptionCancellations = ys({
9116
+ }), this.payoutRequestBatches = Be$1({ apiHandler: t2 }), this.payoutRequests = Ke$1({ apiHandler: t2 }), this.payouts = Ne$1({ apiHandler: t2 }), this.plans = Le$1({ apiHandler: t2 }), this.previews = ze$1({ apiHandler: t2 }), this.products = Ue$1({ apiHandler: t2 }), this.profile = Ve$1({ apiHandler: t2 }), this.purchase = Je$1({ apiHandler: t2 }), this.quotes = We$1({ apiHandler: t2 }), this.resource = Ge$1({ apiHandler: t2 }), this.riskScoreRules = Ye$1({ apiHandler: t2 }), this.roles = Qe$1({ apiHandler: t2 }), this.search = Xe$1({ apiHandler: t2 }), this.segments = Ze$1({ apiHandler: t2 }), this.sendThroughAttribution = _e$1({ apiHandler: t2 }), this.serviceCredentials = He$1({ apiHandler: t2 }), this.shippingRates = ts({ apiHandler: t2 }), this.status = es({ apiHandler: t2 }), this.subscriptionCancellations = ss({
9091
9117
  apiHandler: t2
9092
- }), this.subscriptionPauses = As({ apiHandler: t2 }), this.subscriptionReactivations = bs({
9118
+ }), this.subscriptionPauses = rs({ apiHandler: t2 }), this.subscriptionReactivations = ns({
9093
9119
  apiHandler: t2
9094
- }), this.subscriptions = Rs({ apiHandler: t2 }), this.tags = ws({ apiHandler: t2 }), this.tagsRules = ks({ apiHandler: t2 }), this.tracking = vs({ apiHandler: t2 }), this.transactions = qs({ apiHandler: t2 }), this.usages = Ts({ apiHandler: t2 }), this.users = ds({ apiHandler: t2 }), this.webhooks = Is({ apiHandler: t2 }), this.websites = Ss({ apiHandler: t2 }), this.addRequestInterceptor = t2.addRequestInterceptor, this.removeRequestInterceptor = t2.removeRequestInterceptor, this.addResponseInterceptor = t2.addResponseInterceptor, this.removeResponseInterceptor = t2.removeResponseInterceptor, this.setTimeout = t2.setTimeout, this.setProxyAgent = t2.setProxyAgent, this.setSessionToken = t2.setSessionToken, this.setPublishableKey = t2.setPublishableKey, this.setEndpoints = t2.setEndpoints, this.getCancellationToken = t2.getCancellationToken, this.generateSignature = t2.generateSignature;
9120
+ }), this.subscriptions = us({ apiHandler: t2 }), this.tags = os({ apiHandler: t2 }), this.tagsRules = ls({ apiHandler: t2 }), this.tracking = cs({ apiHandler: t2 }), this.transactions = is({ apiHandler: t2 }), this.usages = gs({ apiHandler: t2 }), this.users = as({ apiHandler: t2 }), this.webhooks = ms({ apiHandler: t2 }), this.websites = fs({ apiHandler: t2 }), this.addRequestInterceptor = t2.addRequestInterceptor, this.removeRequestInterceptor = t2.removeRequestInterceptor, this.addResponseInterceptor = t2.addResponseInterceptor, this.removeResponseInterceptor = t2.removeResponseInterceptor, this.setTimeout = t2.setTimeout, this.setProxyAgent = t2.setProxyAgent, this.setSessionToken = t2.setSessionToken, this.setPublishableKey = t2.setPublishableKey, this.setEndpoints = t2.setEndpoints, this.getCancellationToken = t2.getCancellationToken, this.generateSignature = t2.generateSignature;
9095
9121
  }
9096
9122
  }
9097
- function xs({ apiHandler: e2 }) {
9123
+ function ps({ apiHandler: e2 }) {
9098
9124
  return {
9099
9125
  /**
9100
9126
  * @returns { rebilly.GetCustomerSummaryMetricReportResponsePromise } response
@@ -9104,7 +9130,7 @@ function xs({ apiHandler: e2 }) {
9104
9130
  }
9105
9131
  };
9106
9132
  }
9107
- function Ps({ apiHandler: e2 }) {
9133
+ function hs({ apiHandler: e2 }) {
9108
9134
  return {
9109
9135
  /**
9110
9136
  * @param { rebilly.GetDataExportCollectionRequest } request
@@ -9119,8 +9145,8 @@ function Ps({ apiHandler: e2 }) {
9119
9145
  q: o2 = null,
9120
9146
  criteria: l = null
9121
9147
  } = {}) {
9122
- const a = { limit: t2, offset: s, sort: r2, expand: n2, filter: u, q: o2, criteria: l };
9123
- return e2.getAll("data-exports", a);
9148
+ const i = { limit: t2, offset: s, sort: r2, expand: n2, filter: u, q: o2, criteria: l };
9149
+ return e2.getAll("data-exports", i);
9124
9150
  },
9125
9151
  /**
9126
9152
  * @param { rebilly.CreateDataExportRequest } request
@@ -9149,7 +9175,7 @@ function Ps({ apiHandler: e2 }) {
9149
9175
  }
9150
9176
  };
9151
9177
  }
9152
- function Cs({ apiHandler: e2 }) {
9178
+ function ys({ apiHandler: e2 }) {
9153
9179
  return {
9154
9180
  /**
9155
9181
  * @returns { rebilly.GetHistogramAmlCheckReportResponsePromise } response
@@ -9193,7 +9219,7 @@ function Cs({ apiHandler: e2 }) {
9193
9219
  }
9194
9220
  };
9195
9221
  }
9196
- function Ds({ apiHandler: e2 }) {
9222
+ function As({ apiHandler: e2 }) {
9197
9223
  return {
9198
9224
  /**
9199
9225
  * @returns { rebilly.GetApiLogSummaryReportResponsePromise } response
@@ -9390,7 +9416,7 @@ function Ds({ apiHandler: e2 }) {
9390
9416
  aggregationField: u = null,
9391
9417
  limit: o2 = null,
9392
9418
  offset: l = null,
9393
- filter: a = null
9419
+ filter: i = null
9394
9420
  }) {
9395
9421
  const f = {
9396
9422
  currency: t2,
@@ -9400,7 +9426,7 @@ function Ds({ apiHandler: e2 }) {
9400
9426
  aggregationField: u,
9401
9427
  limit: o2,
9402
9428
  offset: l,
9403
- filter: a
9429
+ filter: i
9404
9430
  };
9405
9431
  return e2.get("reports/journal", f);
9406
9432
  },
@@ -9495,10 +9521,10 @@ function Ds({ apiHandler: e2 }) {
9495
9521
  periodEnd: u = null,
9496
9522
  limit: o2 = null,
9497
9523
  offset: l = null,
9498
- filter: a = null,
9524
+ filter: i = null,
9499
9525
  criteria: f = null
9500
9526
  }) {
9501
- const y = {
9527
+ const a = {
9502
9528
  aggregationField: t2,
9503
9529
  aggregationPeriod: s,
9504
9530
  includeSwitchedSubscriptions: r2,
@@ -9506,10 +9532,10 @@ function Ds({ apiHandler: e2 }) {
9506
9532
  periodEnd: u,
9507
9533
  limit: o2,
9508
9534
  offset: l,
9509
- filter: a,
9535
+ filter: i,
9510
9536
  criteria: f
9511
9537
  };
9512
- return e2.get("reports/retention-percentage", y);
9538
+ return e2.get("reports/retention-percentage", a);
9513
9539
  },
9514
9540
  /**
9515
9541
  * @returns { rebilly.GetRetentionValueReportResponsePromise } response
@@ -9522,12 +9548,12 @@ function Ds({ apiHandler: e2 }) {
9522
9548
  periodStart: u = null,
9523
9549
  periodEnd: o2 = null,
9524
9550
  limit: l = null,
9525
- offset: a = null,
9551
+ offset: i = null,
9526
9552
  filter: f = null,
9527
- sort: y = null,
9528
- criteria: I2 = null
9553
+ sort: a = null,
9554
+ criteria: $2 = null
9529
9555
  }) {
9530
- const S2 = {
9556
+ const h2 = {
9531
9557
  aggregationField: t2,
9532
9558
  aggregationPeriod: s,
9533
9559
  includeRefunds: r2,
@@ -9535,12 +9561,12 @@ function Ds({ apiHandler: e2 }) {
9535
9561
  periodStart: u,
9536
9562
  periodEnd: o2,
9537
9563
  limit: l,
9538
- offset: a,
9564
+ offset: i,
9539
9565
  filter: f,
9540
- sort: y,
9541
- criteria: I2
9566
+ sort: a,
9567
+ criteria: $2
9542
9568
  };
9543
- return e2.get("reports/retention-value", S2);
9569
+ return e2.get("reports/retention-value", h2);
9544
9570
  },
9545
9571
  /**
9546
9572
  * @returns { rebilly.GetRevenueWaterfallReportResponsePromise } response
@@ -9665,7 +9691,7 @@ function Ds({ apiHandler: e2 }) {
9665
9691
  }
9666
9692
  };
9667
9693
  }
9668
- function js({ apiHandler: e2 }) {
9694
+ function bs({ apiHandler: e2 }) {
9669
9695
  return {
9670
9696
  /**
9671
9697
  * @returns { rebilly.GetSubscriptionSummaryMetricReportResponsePromise } response
@@ -9675,7 +9701,7 @@ function js({ apiHandler: e2 }) {
9675
9701
  }
9676
9702
  };
9677
9703
  }
9678
- function Ms({ apiHandler: e2 }) {
9704
+ function Rs({ apiHandler: e2 }) {
9679
9705
  return {
9680
9706
  getActivityFeed({ eventTypes: t2 = null, limit: s = 1e3, offset: r2 = 0 }) {
9681
9707
  const n2 = {
@@ -9703,32 +9729,32 @@ function Ms({ apiHandler: e2 }) {
9703
9729
  }
9704
9730
  };
9705
9731
  }
9706
- function Os({ apiHandler: e2 }) {
9732
+ function ws({ apiHandler: e2 }) {
9707
9733
  return {
9708
9734
  query() {
9709
9735
  return e2.get("location");
9710
9736
  }
9711
9737
  };
9712
9738
  }
9713
- const b = {
9714
- CustomersResource: xs,
9715
- DataExportsResource: Ps,
9716
- HistogramsResource: Cs,
9717
- ReportsResource: Ds,
9718
- SubscriptionsResource: js,
9719
- TimelinesResource: Ms,
9720
- LocationResource: Os
9739
+ const w = {
9740
+ CustomersResource: ps,
9741
+ DataExportsResource: hs,
9742
+ HistogramsResource: ys,
9743
+ ReportsResource: As,
9744
+ SubscriptionsResource: bs,
9745
+ TimelinesResource: Rs,
9746
+ LocationResource: ws
9721
9747
  };
9722
- class Fs {
9748
+ class ks {
9723
9749
  constructor({ apiHandler: t2 }) {
9724
- this.customers = b.CustomersResource({ apiHandler: t2 }), this.dataExports = b.DataExportsResource({
9750
+ this.customers = w.CustomersResource({ apiHandler: t2 }), this.dataExports = w.DataExportsResource({
9725
9751
  apiHandler: t2
9726
- }), this.histograms = b.HistogramsResource({ apiHandler: t2 }), this.reports = b.ReportsResource({ apiHandler: t2 }), this.subscriptions = b.SubscriptionsResource({
9752
+ }), this.histograms = w.HistogramsResource({ apiHandler: t2 }), this.reports = w.ReportsResource({ apiHandler: t2 }), this.subscriptions = w.SubscriptionsResource({
9727
9753
  apiHandler: t2
9728
- }), this.timelines = b.TimelinesResource({ apiHandler: t2 }), this.location = b.LocationResource({ apiHandler: t2 }), this.addRequestInterceptor = t2.addRequestInterceptor, this.removeRequestInterceptor = t2.removeRequestInterceptor, this.addResponseInterceptor = t2.addResponseInterceptor, this.removeResponseInterceptor = t2.removeResponseInterceptor, this.setTimeout = t2.setTimeout, this.setProxyAgent = t2.setProxyAgent, this.setSessionToken = t2.setSessionToken, this.setEndpoints = t2.setEndpoints, this.getCancellationToken = t2.getCancellationToken;
9754
+ }), this.timelines = w.TimelinesResource({ apiHandler: t2 }), this.location = w.LocationResource({ apiHandler: t2 }), this.addRequestInterceptor = t2.addRequestInterceptor, this.removeRequestInterceptor = t2.removeRequestInterceptor, this.addResponseInterceptor = t2.addResponseInterceptor, this.removeResponseInterceptor = t2.removeResponseInterceptor, this.setTimeout = t2.setTimeout, this.setProxyAgent = t2.setProxyAgent, this.setSessionToken = t2.setSessionToken, this.setEndpoints = t2.setEndpoints, this.getCancellationToken = t2.getCancellationToken;
9729
9755
  }
9730
9756
  }
9731
- function Bs({ apiHandler: e2 }) {
9757
+ function vs({ apiHandler: e2 }) {
9732
9758
  return {
9733
9759
  /**
9734
9760
  * @returns { rebilly.StorefrontGetAccountResponsePromise } response
@@ -9760,7 +9786,7 @@ function Bs({ apiHandler: e2 }) {
9760
9786
  }
9761
9787
  };
9762
9788
  }
9763
- function Ks({ apiHandler: e2 }) {
9789
+ function qs({ apiHandler: e2 }) {
9764
9790
  return {
9765
9791
  login({ data: t2 }) {
9766
9792
  return e2.post("login", t2);
@@ -9770,7 +9796,7 @@ function Ks({ apiHandler: e2 }) {
9770
9796
  }
9771
9797
  };
9772
9798
  }
9773
- function Ns({ apiHandler: e2 }) {
9799
+ function ds({ apiHandler: e2 }) {
9774
9800
  return {
9775
9801
  /**
9776
9802
  * @returns { rebilly.StorefrontGetBillingPortalResponsePromise } response
@@ -9780,7 +9806,7 @@ function Ns({ apiHandler: e2 }) {
9780
9806
  }
9781
9807
  };
9782
9808
  }
9783
- function Ls({ apiHandler: e2 }) {
9809
+ function Ts({ apiHandler: e2 }) {
9784
9810
  return {
9785
9811
  /**
9786
9812
  * @returns { rebilly.StorefrontGetCashierResponsePromise } response
@@ -9793,7 +9819,7 @@ function Ls({ apiHandler: e2 }) {
9793
9819
  }
9794
9820
  };
9795
9821
  }
9796
- function zs({ apiHandler: e2 }) {
9822
+ function Is({ apiHandler: e2 }) {
9797
9823
  return {
9798
9824
  /**
9799
9825
  * @returns { rebilly.StorefrontGetCheckoutFormResponsePromise } response
@@ -9803,7 +9829,7 @@ function zs({ apiHandler: e2 }) {
9803
9829
  }
9804
9830
  };
9805
9831
  }
9806
- function Us({ apiHandler: e2 }) {
9832
+ function Ss({ apiHandler: e2 }) {
9807
9833
  return {
9808
9834
  /**
9809
9835
  * @param { rebilly.StorefrontGetCustomFieldCollectionRequest } request
@@ -9815,7 +9841,7 @@ function Us({ apiHandler: e2 }) {
9815
9841
  }
9816
9842
  };
9817
9843
  }
9818
- function Vs({ apiHandler: e2 }) {
9844
+ function Es({ apiHandler: e2 }) {
9819
9845
  return {
9820
9846
  /**
9821
9847
  * @returns { rebilly.StorefrontGetDepositRequestResponsePromise } response
@@ -9826,14 +9852,14 @@ function Vs({ apiHandler: e2 }) {
9826
9852
  }
9827
9853
  };
9828
9854
  }
9829
- function Js({ apiHandler: e2 }) {
9855
+ function xs({ apiHandler: e2 }) {
9830
9856
  return {
9831
9857
  create({ data: t2 }) {
9832
9858
  return e2.post("deposit", t2);
9833
9859
  }
9834
9860
  };
9835
9861
  }
9836
- function Ws({ apiHandler: e2 }) {
9862
+ function Ps({ apiHandler: e2 }) {
9837
9863
  return {
9838
9864
  /**
9839
9865
  * @returns { rebilly.StorefrontGetDepositStrategyResponsePromise } response
@@ -9843,7 +9869,7 @@ function Ws({ apiHandler: e2 }) {
9843
9869
  }
9844
9870
  };
9845
9871
  }
9846
- function Gs({ apiHandler: e2 }) {
9872
+ function Cs({ apiHandler: e2 }) {
9847
9873
  return {
9848
9874
  /**
9849
9875
  * @param { rebilly.StorefrontGetInvoiceCollectionRequest } request
@@ -9872,14 +9898,14 @@ function Gs({ apiHandler: e2 }) {
9872
9898
  },
9873
9899
  downloadPDF({ id: t2 }) {
9874
9900
  const s = {
9875
- headers: w,
9901
+ headers: v,
9876
9902
  responseType: "arraybuffer"
9877
9903
  };
9878
9904
  return e2.download(`invoices/${t2}`, s);
9879
9905
  }
9880
9906
  };
9881
9907
  }
9882
- function Ys({ apiHandler: e2 }) {
9908
+ function Ds({ apiHandler: e2 }) {
9883
9909
  return {
9884
9910
  /**
9885
9911
  * @param { rebilly.StorefrontGetKycDocumentCollectionRequest } request
@@ -9903,7 +9929,7 @@ function Ys({ apiHandler: e2 }) {
9903
9929
  }
9904
9930
  };
9905
9931
  }
9906
- function Qs({ apiHandler: e2 }) {
9932
+ function js({ apiHandler: e2 }) {
9907
9933
  return {
9908
9934
  create({ data: t2 }) {
9909
9935
  return e2.post("kyc-liveness-sessions", t2);
@@ -9919,7 +9945,7 @@ function Qs({ apiHandler: e2 }) {
9919
9945
  }
9920
9946
  };
9921
9947
  }
9922
- function Xs({ apiHandler: e2 }) {
9948
+ function Ms({ apiHandler: e2 }) {
9923
9949
  return {
9924
9950
  /**
9925
9951
  * @returns { rebilly.StorefrontGetKycRequestResponsePromise } response
@@ -9930,7 +9956,7 @@ function Xs({ apiHandler: e2 }) {
9930
9956
  }
9931
9957
  };
9932
9958
  }
9933
- function Zs({ apiHandler: e2 }) {
9959
+ function Os({ apiHandler: e2 }) {
9934
9960
  return {
9935
9961
  /**
9936
9962
  * @returns { rebilly.StorefrontGetOrderUpcomingInvoiceResponsePromise } response
@@ -9972,7 +9998,7 @@ function Zs({ apiHandler: e2 }) {
9972
9998
  }
9973
9999
  };
9974
10000
  }
9975
- function _s({ apiHandler: e2 }) {
10001
+ function Fs({ apiHandler: e2 }) {
9976
10002
  return {
9977
10003
  /**
9978
10004
  * @param { rebilly.StorefrontGetPaymentInstrumentCollectionRequest } request
@@ -10015,7 +10041,7 @@ function _s({ apiHandler: e2 }) {
10015
10041
  }
10016
10042
  };
10017
10043
  }
10018
- function Hs({ apiHandler: e2 }) {
10044
+ function Bs({ apiHandler: e2 }) {
10019
10045
  return {
10020
10046
  /**
10021
10047
  * @param { rebilly.StorefrontGetPayoutRequestCollectionRequest } request
@@ -10045,7 +10071,7 @@ function Hs({ apiHandler: e2 }) {
10045
10071
  }
10046
10072
  };
10047
10073
  }
10048
- function tr({ apiHandler: e2 }) {
10074
+ function Ks({ apiHandler: e2 }) {
10049
10075
  return {
10050
10076
  /**
10051
10077
  * @param { rebilly.StorefrontGetPlanCollectionRequest } request
@@ -10071,7 +10097,7 @@ function tr({ apiHandler: e2 }) {
10071
10097
  }
10072
10098
  };
10073
10099
  }
10074
- function er({ apiHandler: e2 }) {
10100
+ function Ns({ apiHandler: e2 }) {
10075
10101
  return {
10076
10102
  /**
10077
10103
  * @param { rebilly.StorefrontGetProductCollectionRequest } request
@@ -10095,7 +10121,7 @@ function er({ apiHandler: e2 }) {
10095
10121
  }
10096
10122
  };
10097
10123
  }
10098
- function sr({ apiHandler: e2 }) {
10124
+ function Ls({ apiHandler: e2 }) {
10099
10125
  return {
10100
10126
  payment({ data: t2 }) {
10101
10127
  return e2.post("payment", t2);
@@ -10111,7 +10137,7 @@ function sr({ apiHandler: e2 }) {
10111
10137
  }
10112
10138
  };
10113
10139
  }
10114
- function rr({ apiHandler: e2 }) {
10140
+ function zs({ apiHandler: e2 }) {
10115
10141
  return {
10116
10142
  /**
10117
10143
  * @returns { rebilly.StorefrontGetQuoteResponsePromise } response
@@ -10128,28 +10154,28 @@ function rr({ apiHandler: e2 }) {
10128
10154
  },
10129
10155
  downloadPDF({ id: t2 }) {
10130
10156
  const s = {
10131
- headers: w,
10157
+ headers: v,
10132
10158
  responseType: "arraybuffer"
10133
10159
  };
10134
10160
  return e2.download(`quotes/${t2}`, s);
10135
10161
  }
10136
10162
  };
10137
10163
  }
10138
- function nr({ apiHandler: e2 }) {
10164
+ function Us({ apiHandler: e2 }) {
10139
10165
  return {
10140
10166
  readyToPayout({ data: t2 }) {
10141
10167
  return e2.post("ready-to-payout", t2);
10142
10168
  }
10143
10169
  };
10144
10170
  }
10145
- function ur({ apiHandler: e2 }) {
10171
+ function Vs({ apiHandler: e2 }) {
10146
10172
  return {
10147
10173
  reactivation({ data: t2 }) {
10148
10174
  return e2.post("subscription-reactivations", t2);
10149
10175
  }
10150
10176
  };
10151
10177
  }
10152
- function or({ apiHandler: e2 }) {
10178
+ function Js({ apiHandler: e2 }) {
10153
10179
  return {
10154
10180
  changeItems({ id: t2, data: s }) {
10155
10181
  return e2.post(`subscriptions/${t2}/change-items`, s);
@@ -10159,7 +10185,7 @@ function or({ apiHandler: e2 }) {
10159
10185
  }
10160
10186
  };
10161
10187
  }
10162
- function lr({ apiHandler: e2 }) {
10188
+ function Ws({ apiHandler: e2 }) {
10163
10189
  return {
10164
10190
  /**
10165
10191
  * @param { rebilly.StorefrontGetTransactionCollectionRequest } request
@@ -10198,7 +10224,7 @@ function lr({ apiHandler: e2 }) {
10198
10224
  },
10199
10225
  downloadPDF({ id: t2 }) {
10200
10226
  const s = {
10201
- headers: w,
10227
+ headers: v,
10202
10228
  responseType: "arraybuffer"
10203
10229
  };
10204
10230
  return e2.download(`transactions/${t2}`, s);
@@ -10208,7 +10234,7 @@ function lr({ apiHandler: e2 }) {
10208
10234
  }
10209
10235
  };
10210
10236
  }
10211
- function cr({ apiHandler: e2 }) {
10237
+ function Gs({ apiHandler: e2 }) {
10212
10238
  return {
10213
10239
  /**
10214
10240
  * @returns { rebilly.StorefrontGetWebsiteResponsePromise } response
@@ -10218,32 +10244,32 @@ function cr({ apiHandler: e2 }) {
10218
10244
  }
10219
10245
  };
10220
10246
  }
10221
- class ir {
10247
+ class Ys {
10222
10248
  constructor({ apiHandler: t2 }) {
10223
- this.account = Bs({ apiHandler: t2 }), this.authorization = Ks({ apiHandler: t2 }), this.billingPortals = Ns({ apiHandler: t2 }), this.cashiers = Ls({ apiHandler: t2 }), this.checkoutForms = zs({ apiHandler: t2 }), this.customFields = Us({ apiHandler: t2 }), this.depositRequests = Vs({ apiHandler: t2 }), this.deposit = Js({ apiHandler: t2 }), this.depositStrategies = Ws({ apiHandler: t2 }), this.invoices = Gs({ apiHandler: t2 }), this.kycDocuments = Ys({ apiHandler: t2 }), this.kycLivenessSessions = Qs({ apiHandler: t2 }), this.kycRequests = Xs({ apiHandler: t2 }), this.orders = Zs({ apiHandler: t2 }), this.paymentInstruments = _s({ apiHandler: t2 }), this.payoutRequests = Hs({ apiHandler: t2 }), this.plans = tr({ apiHandler: t2 }), this.products = er({ apiHandler: t2 }), this.purchase = sr({ apiHandler: t2 }), this.quotes = rr({ apiHandler: t2 }), this.readyToPayout = nr({ apiHandler: t2 }), this.subscriptionReactivations = ur({
10249
+ this.account = vs({ apiHandler: t2 }), this.authorization = qs({ apiHandler: t2 }), this.billingPortals = ds({ apiHandler: t2 }), this.cashiers = Ts({ apiHandler: t2 }), this.checkoutForms = Is({ apiHandler: t2 }), this.customFields = Ss({ apiHandler: t2 }), this.depositRequests = Es({ apiHandler: t2 }), this.deposit = xs({ apiHandler: t2 }), this.depositStrategies = Ps({ apiHandler: t2 }), this.invoices = Cs({ apiHandler: t2 }), this.kycDocuments = Ds({ apiHandler: t2 }), this.kycLivenessSessions = js({ apiHandler: t2 }), this.kycRequests = Ms({ apiHandler: t2 }), this.orders = Os({ apiHandler: t2 }), this.paymentInstruments = Fs({ apiHandler: t2 }), this.payoutRequests = Bs({ apiHandler: t2 }), this.plans = Ks({ apiHandler: t2 }), this.products = Ns({ apiHandler: t2 }), this.purchase = Ls({ apiHandler: t2 }), this.quotes = zs({ apiHandler: t2 }), this.readyToPayout = Us({ apiHandler: t2 }), this.subscriptionReactivations = Vs({
10224
10250
  apiHandler: t2
10225
- }), this.subscriptions = or({ apiHandler: t2 }), this.transactions = lr({ apiHandler: t2 }), this.websites = cr({ apiHandler: t2 }), this.checkoutForm = this.checkoutForms, this.billingPortal = this.billingPortals, this.addRequestInterceptor = t2.addRequestInterceptor, this.removeRequestInterceptor = t2.removeRequestInterceptor, this.addResponseInterceptor = t2.addResponseInterceptor, this.removeResponseInterceptor = t2.removeResponseInterceptor, this.setTimeout = t2.setTimeout, this.setProxyAgent = t2.setProxyAgent, this.setSessionToken = t2.setSessionToken, this.setPublishableKey = t2.setPublishableKey, this.setEndpoints = t2.setEndpoints, this.getCancellationToken = t2.getCancellationToken, this.generateSignature = t2.generateSignature;
10251
+ }), this.subscriptions = Js({ apiHandler: t2 }), this.transactions = Ws({ apiHandler: t2 }), this.websites = Gs({ apiHandler: t2 }), this.checkoutForm = this.checkoutForms, this.billingPortal = this.billingPortals, this.addRequestInterceptor = t2.addRequestInterceptor, this.removeRequestInterceptor = t2.removeRequestInterceptor, this.addResponseInterceptor = t2.addResponseInterceptor, this.removeResponseInterceptor = t2.removeResponseInterceptor, this.setTimeout = t2.setTimeout, this.setProxyAgent = t2.setProxyAgent, this.setSessionToken = t2.setSessionToken, this.setPublishableKey = t2.setPublishableKey, this.setEndpoints = t2.setEndpoints, this.getCancellationToken = t2.getCancellationToken, this.generateSignature = t2.generateSignature;
10226
10252
  }
10227
10253
  }
10228
- function gr({ apiHandler: e2 }) {
10229
- return new Es({ apiHandler: e2 });
10254
+ function Qs({ apiHandler: e2 }) {
10255
+ return new $s({ apiHandler: e2 });
10230
10256
  }
10231
- function ar({ apiHandler: e2 }) {
10232
- return new Fs({ apiHandler: e2 });
10257
+ function Xs({ apiHandler: e2 }) {
10258
+ return new ks({ apiHandler: e2 });
10233
10259
  }
10234
- function mr({ apiHandler: e2 }) {
10235
- return new ir({ apiHandler: e2 });
10260
+ function Zs({ apiHandler: e2 }) {
10261
+ return new Ys({ apiHandler: e2 });
10236
10262
  }
10237
- const D = {
10263
+ const F$1 = {
10238
10264
  live: "https://api.rebilly.com",
10239
10265
  sandbox: "https://api-sandbox.rebilly.com"
10240
- }, j$1 = 6e3;
10241
- function yr({
10266
+ }, B$1 = 6e3;
10267
+ function sr({
10242
10268
  apiKey: e2 = null,
10243
10269
  sandbox: t2 = false,
10244
- timeout: s = j$1,
10270
+ timeout: s = B$1,
10245
10271
  organizationId: r2 = null,
10246
- urls: n2 = D,
10272
+ urls: n2 = F$1,
10247
10273
  internalOptions: u = null
10248
10274
  } = {}) {
10249
10275
  if (!n2.live || !n2.sandbox)
@@ -10263,15 +10289,15 @@ function yr({
10263
10289
  jwt: null,
10264
10290
  organizationId: r2,
10265
10291
  appName: (u == null ? void 0 : u.appName) ?? null
10266
- }, l = C$1({ options: o2 });
10267
- return gr({ apiHandler: l });
10292
+ }, l = O$1({ options: o2 });
10293
+ return Qs({ apiHandler: l });
10268
10294
  }
10269
- function Ar({
10295
+ function rr({
10270
10296
  apiKey: e2 = null,
10271
10297
  sandbox: t2 = false,
10272
- timeout: s = j$1,
10298
+ timeout: s = B$1,
10273
10299
  organizationId: r2 = null,
10274
- urls: n2 = D,
10300
+ urls: n2 = F$1,
10275
10301
  internalOptions: u = null
10276
10302
  } = {}) {
10277
10303
  if (!n2.live || !n2.sandbox)
@@ -10291,16 +10317,16 @@ function Ar({
10291
10317
  jwt: null,
10292
10318
  organizationId: r2,
10293
10319
  appName: (u == null ? void 0 : u.appName) ?? null
10294
- }, l = C$1({ options: o2 });
10295
- return ar({ apiHandler: l });
10320
+ }, l = O$1({ options: o2 });
10321
+ return Xs({ apiHandler: l });
10296
10322
  }
10297
- function br({
10323
+ function nr({
10298
10324
  publishableKey: e2 = null,
10299
10325
  jwt: t2 = null,
10300
10326
  sandbox: s = false,
10301
- timeout: r2 = j$1,
10327
+ timeout: r2 = B$1,
10302
10328
  organizationId: n2 = null,
10303
- urls: u = D,
10329
+ urls: u = F$1,
10304
10330
  internalOptions: o2 = null
10305
10331
  } = {}) {
10306
10332
  if (!u.live || !u.sandbox)
@@ -10320,8 +10346,8 @@ function br({
10320
10346
  requestTimeout: r2,
10321
10347
  organizationId: n2,
10322
10348
  appName: (o2 == null ? void 0 : o2.appName) ?? null
10323
- }, a = C$1({ options: l });
10324
- return a.setSessionToken(l.jwt), mr({ apiHandler: a });
10349
+ }, i = O$1({ options: l });
10350
+ return i.setSessionToken(l.jwt), Zs({ apiHandler: i });
10325
10351
  }
10326
10352
  const TIMEOUT = 6e4;
10327
10353
  function validateStateForStorefront() {
@@ -10362,15 +10388,15 @@ class StorefrontInstance {
10362
10388
  appName: appName ? `${appName}/instruments` : "instruments"
10363
10389
  }
10364
10390
  };
10365
- const api = br(config);
10391
+ const api = nr(config);
10366
10392
  const rebilly = (
10367
10393
  // @ts-expect-error refactor with above todo
10368
- typeof yr.default === "function" ? (
10394
+ typeof sr.default === "function" ? (
10369
10395
  // @ts-expect-error refactor with above todo
10370
- yr.default(config)
10371
- ) : yr(config)
10396
+ sr.default(config)
10397
+ ) : sr(config)
10372
10398
  );
10373
- const experimental = Ar(config);
10399
+ const experimental = rr(config);
10374
10400
  api.setSessionToken(publishableKey || jwt);
10375
10401
  rebilly.setSessionToken(publishableKey || jwt);
10376
10402
  experimental.setSessionToken(publishableKey || jwt);
@@ -10425,7 +10451,7 @@ async function fetchSummary({
10425
10451
  data = null
10426
10452
  } = {}) {
10427
10453
  return Endpoint(async () => {
10428
- var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s2, _t2, _u, _v, _w, _x, _y, _z;
10454
+ var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t2, _u, _v, _w, _x, _y, _z;
10429
10455
  const items = (_a = state.options) == null ? void 0 : _a.items;
10430
10456
  const websiteId = ((_b = state.options) == null ? void 0 : _b.websiteId) || null;
10431
10457
  const bumpOfferProductsIds = ((_d = (_c = state.options) == null ? void 0 : _c.bumpOffer) == null ? void 0 : _d.map(({ planId }) => planId)) || [];
@@ -10468,7 +10494,7 @@ async function fetchSummary({
10468
10494
  }
10469
10495
  }
10470
10496
  if (!((_q = state.data) == null ? void 0 : _q.acceptBumpOffer) && // @ts-expect-error TODO: type "addonLineItems" once "views/common/iframe/events/update-addons-handler.js" is typed.
10471
- ((_t2 = (_s2 = (_r = state.data) == null ? void 0 : _r.previewPurchase) == null ? void 0 : _s2.addonLineItems) == null ? void 0 : _t2.length) > 0) {
10497
+ ((_t2 = (_s = (_r = state.data) == null ? void 0 : _r.previewPurchase) == null ? void 0 : _s.addonLineItems) == null ? void 0 : _t2.length) > 0) {
10472
10498
  payload.data.items = (_u = payload.data.items) == null ? void 0 : _u.concat(
10473
10499
  // @ts-expect-error TODO: type "addonLineItems" once "views/common/iframe/events/update-addons-handler.js" is typed.
10474
10500
  state.data.previewPurchase.addonLineItems
@@ -10692,7 +10718,7 @@ function ue(e2, t2, n2) {
10692
10718
  return e2.concat(r2 || Array.prototype.slice.call(t2));
10693
10719
  }
10694
10720
  var se = "3.4.2";
10695
- function G2(e2, t2) {
10721
+ function G(e2, t2) {
10696
10722
  return new Promise(function(n2) {
10697
10723
  return setTimeout(n2, e2, t2);
10698
10724
  });
@@ -10704,7 +10730,7 @@ function ye(e2, t2) {
10704
10730
  return n2.call(window, function() {
10705
10731
  return a();
10706
10732
  }, { timeout: t2 });
10707
- }) : G2(Math.min(e2, t2));
10733
+ }) : G(Math.min(e2, t2));
10708
10734
  }
10709
10735
  function le(e2) {
10710
10736
  return !!e2 && typeof e2.then == "function";
@@ -10729,7 +10755,7 @@ function _(e2, t2, n2) {
10729
10755
  case 0:
10730
10756
  a = Array(e2.length), i = Date.now(), r2 = 0, c.label = 1;
10731
10757
  case 1:
10732
- return r2 < e2.length ? (a[r2] = t2(e2[r2], r2), o2 = Date.now(), o2 >= i + n2 ? (i = o2, [4, G2(0)]) : [3, 3]) : [3, 4];
10758
+ return r2 < e2.length ? (a[r2] = t2(e2[r2], r2), o2 = Date.now(), o2 >= i + n2 ? (i = o2, [4, G(0)]) : [3, 3]) : [3, 4];
10733
10759
  case 2:
10734
10760
  c.sent(), c.label = 3;
10735
10761
  case 3:
@@ -10754,7 +10780,7 @@ function C(e2, t2) {
10754
10780
  var n2 = [0, 0, 0, 0];
10755
10781
  return n2[3] += e2[3] * t2[3], n2[2] += n2[3] >>> 16, n2[3] &= 65535, n2[2] += e2[2] * t2[3], n2[1] += n2[2] >>> 16, n2[2] &= 65535, n2[2] += e2[3] * t2[2], n2[1] += n2[2] >>> 16, n2[2] &= 65535, n2[1] += e2[1] * t2[3], n2[0] += n2[1] >>> 16, n2[1] &= 65535, n2[1] += e2[2] * t2[2], n2[0] += n2[1] >>> 16, n2[1] &= 65535, n2[1] += e2[3] * t2[1], n2[0] += n2[1] >>> 16, n2[1] &= 65535, n2[0] += e2[0] * t2[3] + e2[1] * t2[2] + e2[2] * t2[1] + e2[3] * t2[0], n2[0] &= 65535, [n2[0] << 16 | n2[1], n2[2] << 16 | n2[3]];
10756
10782
  }
10757
- function A(e2, t2) {
10783
+ function A2(e2, t2) {
10758
10784
  return t2 %= 64, t2 === 32 ? [e2[1], e2[0]] : t2 < 32 ? [e2[0] << t2 | e2[1] >>> 32 - t2, e2[1] << t2 | e2[0] >>> 32 - t2] : (t2 -= 32, [e2[1] << t2 | e2[0] >>> 32 - t2, e2[0] << t2 | e2[1] >>> 32 - t2]);
10759
10785
  }
10760
10786
  function L(e2, t2) {
@@ -10763,7 +10789,7 @@ function L(e2, t2) {
10763
10789
  function h(e2, t2) {
10764
10790
  return [e2[0] ^ t2[0], e2[1] ^ t2[1]];
10765
10791
  }
10766
- function q2(e2) {
10792
+ function q(e2) {
10767
10793
  return e2 = h(e2, [0, e2[0] >>> 1]), e2 = C(e2, [4283543511, 3981806797]), e2 = h(e2, [0, e2[0] >>> 1]), e2 = C(e2, [3301882366, 444984403]), e2 = h(e2, [0, e2[0] >>> 1]), e2;
10768
10794
  }
10769
10795
  function we(e2, t2) {
@@ -10776,7 +10802,7 @@ function we(e2, t2) {
10776
10802
  ], c = [
10777
10803
  e2.charCodeAt(u + 12) & 255 | (e2.charCodeAt(u + 13) & 255) << 8 | (e2.charCodeAt(u + 14) & 255) << 16 | (e2.charCodeAt(u + 15) & 255) << 24,
10778
10804
  e2.charCodeAt(u + 8) & 255 | (e2.charCodeAt(u + 9) & 255) << 8 | (e2.charCodeAt(u + 10) & 255) << 16 | (e2.charCodeAt(u + 11) & 255) << 24
10779
- ], o2 = C(o2, l), o2 = A(o2, 31), o2 = C(o2, s), i = h(i, o2), i = A(i, 27), i = Z(i, r2), i = Z(C(i, [0, 5]), [0, 1390208809]), c = C(c, s), c = A(c, 33), c = C(c, l), r2 = h(r2, c), r2 = A(r2, 31), r2 = Z(r2, i), r2 = Z(C(r2, [0, 5]), [0, 944331445]);
10805
+ ], o2 = C(o2, l), o2 = A2(o2, 31), o2 = C(o2, s), i = h(i, o2), i = A2(i, 27), i = Z(i, r2), i = Z(C(i, [0, 5]), [0, 1390208809]), c = C(c, s), c = A2(c, 33), c = C(c, l), r2 = h(r2, c), r2 = A2(r2, 31), r2 = Z(r2, i), r2 = Z(C(r2, [0, 5]), [0, 944331445]);
10780
10806
  switch (o2 = [0, 0], c = [0, 0], n2) {
10781
10807
  case 15:
10782
10808
  c = h(c, L([0, e2.charCodeAt(u + 14)], 48));
@@ -10791,7 +10817,7 @@ function we(e2, t2) {
10791
10817
  case 10:
10792
10818
  c = h(c, L([0, e2.charCodeAt(u + 9)], 8));
10793
10819
  case 9:
10794
- c = h(c, [0, e2.charCodeAt(u + 8)]), c = C(c, s), c = A(c, 33), c = C(c, l), r2 = h(r2, c);
10820
+ c = h(c, [0, e2.charCodeAt(u + 8)]), c = C(c, s), c = A2(c, 33), c = C(c, l), r2 = h(r2, c);
10795
10821
  case 8:
10796
10822
  o2 = h(o2, L([0, e2.charCodeAt(u + 7)], 56));
10797
10823
  case 7:
@@ -10807,9 +10833,9 @@ function we(e2, t2) {
10807
10833
  case 2:
10808
10834
  o2 = h(o2, L([0, e2.charCodeAt(u + 1)], 8));
10809
10835
  case 1:
10810
- o2 = h(o2, [0, e2.charCodeAt(u)]), o2 = C(o2, l), o2 = A(o2, 31), o2 = C(o2, s), i = h(i, o2);
10836
+ o2 = h(o2, [0, e2.charCodeAt(u)]), o2 = C(o2, l), o2 = A2(o2, 31), o2 = C(o2, s), i = h(i, o2);
10811
10837
  }
10812
- return i = h(i, [0, e2.length]), r2 = h(r2, [0, e2.length]), i = Z(i, r2), r2 = Z(r2, i), i = q2(i), r2 = q2(r2), i = Z(i, r2), r2 = Z(r2, i), ("00000000" + (i[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (i[1] >>> 0).toString(16)).slice(-8) + ("00000000" + (r2[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (r2[1] >>> 0).toString(16)).slice(-8);
10838
+ return i = h(i, [0, e2.length]), r2 = h(r2, [0, e2.length]), i = Z(i, r2), r2 = Z(r2, i), i = q(i), r2 = q(r2), i = Z(i, r2), r2 = Z(r2, i), ("00000000" + (i[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (i[1] >>> 0).toString(16)).slice(-8) + ("00000000" + (r2[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (r2[1] >>> 0).toString(16)).slice(-8);
10813
10839
  }
10814
10840
  function Se(e2) {
10815
10841
  var t2;
@@ -10846,8 +10872,8 @@ function fe(e2, t2) {
10846
10872
  return Math.round(e2 * n2) / n2;
10847
10873
  }
10848
10874
  function xe(e2) {
10849
- for (var t2, n2, a = "Unexpected syntax '".concat(e2, "'"), i = /^\s*([a-z-]*)(.*)$/i.exec(e2), r2 = i[1] || void 0, o2 = {}, c = /([.:#][\w-]+|\[.+?\])/gi, l = function(d2, p2) {
10850
- o2[d2] = o2[d2] || [], o2[d2].push(p2);
10875
+ for (var t2, n2, a = "Unexpected syntax '".concat(e2, "'"), i = /^\s*([a-z-]*)(.*)$/i.exec(e2), r2 = i[1] || void 0, o2 = {}, c = /([.:#][\w-]+|\[.+?\])/gi, l = function(d, p) {
10876
+ o2[d] = o2[d] || [], o2[d].push(p);
10851
10877
  }; ; ) {
10852
10878
  var s = c.exec(i[2]);
10853
10879
  if (!s)
@@ -10900,12 +10926,12 @@ function Ve(e2, t2) {
10900
10926
  return new Promise(function(s) {
10901
10927
  var u = Date.now();
10902
10928
  K(l, function() {
10903
- for (var f = [], d2 = 0; d2 < arguments.length; d2++)
10904
- f[d2] = arguments[d2];
10905
- var p2 = c + Date.now() - u;
10929
+ for (var f = [], d = 0; d < arguments.length; d++)
10930
+ f[d] = arguments[d];
10931
+ var p = c + Date.now() - u;
10906
10932
  if (!f[0])
10907
- return s({ error: $(f[1]), duration: p2 });
10908
- s({ value: f[1], duration: p2 });
10933
+ return s({ error: $(f[1]), duration: p });
10934
+ s({ value: f[1], duration: p });
10909
10935
  });
10910
10936
  });
10911
10937
  });
@@ -10931,9 +10957,9 @@ function Fe(e2, t2, n2) {
10931
10957
  case 0:
10932
10958
  return [4, i];
10933
10959
  case 1:
10934
- return o2 = f.sent(), [4, _(o2, function(d2) {
10935
- var p2 = d2();
10936
- return Y(p2), p2;
10960
+ return o2 = f.sent(), [4, _(o2, function(d) {
10961
+ var p = d();
10962
+ return Y(p), p;
10937
10963
  })];
10938
10964
  case 2:
10939
10965
  return c = f.sent(), [
@@ -11087,33 +11113,33 @@ function Pe(e2) {
11087
11113
  e2.oncomplete = function(g) {
11088
11114
  return c(g.renderedBuffer);
11089
11115
  };
11090
- var d2 = function() {
11116
+ var d = function() {
11091
11117
  setTimeout(function() {
11092
11118
  return l(ee(
11093
11119
  "timeout"
11094
11120
  /* InnerErrorName.Timeout */
11095
11121
  ));
11096
11122
  }, Math.min(a, f + i - Date.now()));
11097
- }, p2 = function() {
11123
+ }, p = function() {
11098
11124
  try {
11099
11125
  var g = e2.startRendering();
11100
11126
  switch (le(g) && Y(g), e2.state) {
11101
11127
  case "running":
11102
- f = Date.now(), s && d2();
11128
+ f = Date.now(), s && d();
11103
11129
  break;
11104
11130
  case "suspended":
11105
11131
  document.hidden || u++, s && u >= t2 ? l(ee(
11106
11132
  "suspended"
11107
11133
  /* InnerErrorName.Suspended */
11108
- )) : setTimeout(p2, n2);
11134
+ )) : setTimeout(p, n2);
11109
11135
  break;
11110
11136
  }
11111
- } catch (y) {
11112
- l(y);
11137
+ } catch (y2) {
11138
+ l(y2);
11113
11139
  }
11114
11140
  };
11115
- p2(), r2 = function() {
11116
- s || (s = true, f > 0 && d2());
11141
+ p(), r2 = function() {
11142
+ s || (s = true, f > 0 && d());
11117
11143
  };
11118
11144
  });
11119
11145
  return [o2, r2];
@@ -11136,31 +11162,31 @@ function ve(e2, t2, n2) {
11136
11162
  case 0:
11137
11163
  o2 = document, l.label = 1;
11138
11164
  case 1:
11139
- return o2.body ? [3, 3] : [4, G2(n2)];
11165
+ return o2.body ? [3, 3] : [4, G(n2)];
11140
11166
  case 2:
11141
11167
  return l.sent(), [3, 1];
11142
11168
  case 3:
11143
11169
  c = o2.createElement("iframe"), l.label = 4;
11144
11170
  case 4:
11145
11171
  return l.trys.push([4, , 10, 11]), [4, new Promise(function(s, u) {
11146
- var f = false, d2 = function() {
11172
+ var f = false, d = function() {
11147
11173
  f = true, s();
11148
- }, p2 = function(b2) {
11149
- f = true, u(b2);
11174
+ }, p = function(b) {
11175
+ f = true, u(b);
11150
11176
  };
11151
- c.onload = d2, c.onerror = p2;
11177
+ c.onload = d, c.onerror = p;
11152
11178
  var g = c.style;
11153
11179
  g.setProperty("display", "block", "important"), g.position = "absolute", g.top = "0", g.left = "0", g.visibility = "hidden", t2 && "srcdoc" in c ? c.srcdoc = t2 : c.src = "about:blank", o2.body.appendChild(c);
11154
- var y = function() {
11155
- var b2, w2;
11156
- f || (((w2 = (b2 = c.contentWindow) === null || b2 === void 0 ? void 0 : b2.document) === null || w2 === void 0 ? void 0 : w2.readyState) === "complete" ? d2() : setTimeout(y, 10));
11180
+ var y2 = function() {
11181
+ var b, w2;
11182
+ f || (((w2 = (b = c.contentWindow) === null || b === void 0 ? void 0 : b.document) === null || w2 === void 0 ? void 0 : w2.readyState) === "complete" ? d() : setTimeout(y2, 10));
11157
11183
  };
11158
- y();
11184
+ y2();
11159
11185
  })];
11160
11186
  case 5:
11161
11187
  l.sent(), l.label = 6;
11162
11188
  case 6:
11163
- return !((i = (a = c.contentWindow) === null || a === void 0 ? void 0 : a.document) === null || i === void 0) && i.body ? [3, 8] : [4, G2(n2)];
11189
+ return !((i = (a = c.contentWindow) === null || a === void 0 ? void 0 : a.document) === null || i === void 0) && i.body ? [3, 8] : [4, G(n2)];
11164
11190
  case 7:
11165
11191
  return l.sent(), [3, 6];
11166
11192
  case 8:
@@ -11256,33 +11282,33 @@ function Je() {
11256
11282
  return ve(function(e2, t2) {
11257
11283
  var n2 = t2.document, a = n2.body;
11258
11284
  a.style.fontSize = He;
11259
- var i = n2.createElement("div"), r2 = {}, o2 = {}, c = function(y) {
11260
- var b2 = n2.createElement("span"), w2 = b2.style;
11261
- return w2.position = "absolute", w2.top = "0", w2.left = "0", w2.fontFamily = y, b2.textContent = Ee, i.appendChild(b2), b2;
11262
- }, l = function(y, b2) {
11263
- return c("'".concat(y, "',").concat(b2));
11285
+ var i = n2.createElement("div"), r2 = {}, o2 = {}, c = function(y2) {
11286
+ var b = n2.createElement("span"), w2 = b.style;
11287
+ return w2.position = "absolute", w2.top = "0", w2.left = "0", w2.fontFamily = y2, b.textContent = Ee, i.appendChild(b), b;
11288
+ }, l = function(y2, b) {
11289
+ return c("'".concat(y2, "',").concat(b));
11264
11290
  }, s = function() {
11265
11291
  return M.map(c);
11266
11292
  }, u = function() {
11267
- for (var y = {}, b2 = function(P2) {
11268
- y[P2] = M.map(function(T2) {
11293
+ for (var y2 = {}, b = function(P2) {
11294
+ y2[P2] = M.map(function(T2) {
11269
11295
  return l(P2, T2);
11270
11296
  });
11271
- }, w2 = 0, R2 = te; w2 < R2.length; w2++) {
11272
- var D2 = R2[w2];
11273
- b2(D2);
11297
+ }, w2 = 0, R = te; w2 < R.length; w2++) {
11298
+ var D2 = R[w2];
11299
+ b(D2);
11274
11300
  }
11275
- return y;
11276
- }, f = function(y) {
11277
- return M.some(function(b2, w2) {
11278
- return y[w2].offsetWidth !== r2[b2] || y[w2].offsetHeight !== o2[b2];
11301
+ return y2;
11302
+ }, f = function(y2) {
11303
+ return M.some(function(b, w2) {
11304
+ return y2[w2].offsetWidth !== r2[b] || y2[w2].offsetHeight !== o2[b];
11279
11305
  });
11280
- }, d2 = s(), p2 = u();
11306
+ }, d = s(), p = u();
11281
11307
  a.appendChild(i);
11282
11308
  for (var g = 0; g < M.length; g++)
11283
- r2[M[g]] = d2[g].offsetWidth, o2[M[g]] = d2[g].offsetHeight;
11284
- return te.filter(function(y) {
11285
- return f(p2[y]);
11309
+ r2[M[g]] = d[g].offsetWidth, o2[M[g]] = d[g].offsetHeight;
11310
+ return te.filter(function(y2) {
11311
+ return f(p[y2]);
11286
11312
  });
11287
11313
  });
11288
11314
  }
@@ -11384,7 +11410,7 @@ function $e() {
11384
11410
  function et() {
11385
11411
  return window.screen.colorDepth;
11386
11412
  }
11387
- function tt() {
11413
+ function tt2() {
11388
11414
  return V(x(navigator.deviceMemory), void 0);
11389
11415
  }
11390
11416
  function nt() {
@@ -11393,7 +11419,7 @@ function nt() {
11393
11419
  }, n2 = [t2(e2.width), t2(e2.height)];
11394
11420
  return n2.sort().reverse(), n2;
11395
11421
  }
11396
- var rt = 2500, at2 = 10, X, H;
11422
+ var rt = 2500, at = 10, X, H;
11397
11423
  function ot() {
11398
11424
  if (H === void 0) {
11399
11425
  var e2 = function() {
@@ -11432,7 +11458,7 @@ function ct() {
11432
11458
  return [4, t2()];
11433
11459
  case 1:
11434
11460
  return n2 = i.sent(), a = function(r2) {
11435
- return r2 === null ? null : fe(r2, at2);
11461
+ return r2 === null ? null : fe(r2, at);
11436
11462
  }, [2, [a(n2[0]), a(n2[1]), a(n2[2]), a(n2[3])]];
11437
11463
  }
11438
11464
  });
@@ -11475,21 +11501,21 @@ function lt() {
11475
11501
  x(new Date(e2, 6, 1).getTimezoneOffset())
11476
11502
  );
11477
11503
  }
11478
- function ft2() {
11504
+ function ft() {
11479
11505
  try {
11480
11506
  return !!window.sessionStorage;
11481
11507
  } catch {
11482
11508
  return true;
11483
11509
  }
11484
11510
  }
11485
- function dt() {
11511
+ function dt2() {
11486
11512
  try {
11487
11513
  return !!window.localStorage;
11488
11514
  } catch {
11489
11515
  return true;
11490
11516
  }
11491
11517
  }
11492
- function mt2() {
11518
+ function mt() {
11493
11519
  if (!(de() || We()))
11494
11520
  try {
11495
11521
  return !!window.indexedDB;
@@ -11497,13 +11523,13 @@ function mt2() {
11497
11523
  return true;
11498
11524
  }
11499
11525
  }
11500
- function vt() {
11526
+ function vt2() {
11501
11527
  return !!window.openDatabase;
11502
11528
  }
11503
- function ht2() {
11529
+ function ht() {
11504
11530
  return navigator.cpuClass;
11505
11531
  }
11506
- function pt2() {
11532
+ function pt() {
11507
11533
  var e2 = navigator.platform;
11508
11534
  return e2 === "MacIntel" && j() && !Q() ? Me() ? "iPad" : "iPhone" : e2;
11509
11535
  }
@@ -11556,7 +11582,7 @@ function yt2() {
11556
11582
  return false;
11557
11583
  }
11558
11584
  }
11559
- function wt() {
11585
+ function wt2() {
11560
11586
  var e2 = atob;
11561
11587
  return {
11562
11588
  abpIndo: [
@@ -11826,15 +11852,15 @@ function St(e2) {
11826
11852
  return W(this, function(s) {
11827
11853
  switch (s.label) {
11828
11854
  case 0:
11829
- return Lt() ? (a = wt(), i = Object.keys(a), r2 = (l = []).concat.apply(l, i.map(function(u) {
11855
+ return Lt() ? (a = wt2(), i = Object.keys(a), r2 = (l = []).concat.apply(l, i.map(function(u) {
11830
11856
  return a[u];
11831
11857
  })), [4, Ct(r2)]) : [2, void 0];
11832
11858
  case 1:
11833
11859
  return o2 = s.sent(), n2 && xt(a, o2), c = i.filter(function(u) {
11834
- var f = a[u], d2 = k(f.map(function(p2) {
11835
- return o2[p2];
11860
+ var f = a[u], d = k(f.map(function(p) {
11861
+ return o2[p];
11836
11862
  }));
11837
- return d2 > f.length * 0.6;
11863
+ return d > f.length * 0.6;
11838
11864
  }), c.sort(), [2, c];
11839
11865
  }
11840
11866
  });
@@ -11854,7 +11880,7 @@ function Ct(e2) {
11854
11880
  o2 = De(e2[l]), o2.tagName === "DIALOG" && o2.show(), c = n2.createElement("div"), ne(c), c.appendChild(o2), a.appendChild(c), i[l] = o2;
11855
11881
  s.label = 1;
11856
11882
  case 1:
11857
- return n2.body ? [3, 3] : [4, G2(50)];
11883
+ return n2.body ? [3, 3] : [4, G(50)];
11858
11884
  case 2:
11859
11885
  return s.sent(), [3, 1];
11860
11886
  case 3:
@@ -11886,7 +11912,7 @@ function xt(e2, t2) {
11886
11912
  }
11887
11913
  console.log("".concat(n2, "\n```"));
11888
11914
  }
11889
- function kt() {
11915
+ function kt2() {
11890
11916
  for (var e2 = 0, t2 = ["rec2020", "p3", "srgb"]; e2 < t2.length; e2++) {
11891
11917
  var n2 = t2[e2];
11892
11918
  if (matchMedia("(color-gamut: ".concat(n2, ")")).matches)
@@ -11912,7 +11938,7 @@ function ae(e2) {
11912
11938
  return matchMedia("(forced-colors: ".concat(e2, ")")).matches;
11913
11939
  }
11914
11940
  var Wt = 100;
11915
- function Zt2() {
11941
+ function Zt() {
11916
11942
  if (matchMedia("(min-monochrome: 0)").matches) {
11917
11943
  for (var e2 = 0; e2 <= Wt; ++e2)
11918
11944
  if (matchMedia("(max-monochrome: ".concat(e2, ")")).matches)
@@ -11921,16 +11947,16 @@ function Zt2() {
11921
11947
  }
11922
11948
  }
11923
11949
  function Rt2() {
11924
- if (I("no-preference"))
11950
+ if (I2("no-preference"))
11925
11951
  return 0;
11926
- if (I("high") || I("more"))
11952
+ if (I2("high") || I2("more"))
11927
11953
  return 1;
11928
- if (I("low") || I("less"))
11954
+ if (I2("low") || I2("less"))
11929
11955
  return -1;
11930
- if (I("forced"))
11956
+ if (I2("forced"))
11931
11957
  return 10;
11932
11958
  }
11933
- function I(e2) {
11959
+ function I2(e2) {
11934
11960
  return matchMedia("(prefers-contrast: ".concat(e2, ")")).matches;
11935
11961
  }
11936
11962
  function At2() {
@@ -11955,34 +11981,34 @@ var m = Math, S = function() {
11955
11981
  return 0;
11956
11982
  };
11957
11983
  function It() {
11958
- var e2 = m.acos || S, t2 = m.acosh || S, n2 = m.asin || S, a = m.asinh || S, i = m.atanh || S, r2 = m.atan || S, o2 = m.sin || S, c = m.sinh || S, l = m.cos || S, s = m.cosh || S, u = m.tan || S, f = m.tanh || S, d2 = m.exp || S, p2 = m.expm1 || S, g = m.log1p || S, y = function(v) {
11959
- return m.pow(m.PI, v);
11960
- }, b2 = function(v) {
11961
- return m.log(v + m.sqrt(v * v - 1));
11962
- }, w2 = function(v) {
11963
- return m.log(v + m.sqrt(v * v + 1));
11964
- }, R2 = function(v) {
11965
- return m.log((1 + v) / (1 - v)) / 2;
11966
- }, D2 = function(v) {
11967
- return m.exp(v) - 1 / m.exp(v) / 2;
11968
- }, P2 = function(v) {
11969
- return (m.exp(v) + 1 / m.exp(v)) / 2;
11970
- }, T2 = function(v) {
11971
- return m.exp(v) - 1;
11972
- }, ge2 = function(v) {
11973
- return (m.exp(2 * v) - 1) / (m.exp(2 * v) + 1);
11974
- }, be2 = function(v) {
11975
- return m.log(1 + v);
11984
+ var e2 = m.acos || S, t2 = m.acosh || S, n2 = m.asin || S, a = m.asinh || S, i = m.atanh || S, r2 = m.atan || S, o2 = m.sin || S, c = m.sinh || S, l = m.cos || S, s = m.cosh || S, u = m.tan || S, f = m.tanh || S, d = m.exp || S, p = m.expm1 || S, g = m.log1p || S, y2 = function(v2) {
11985
+ return m.pow(m.PI, v2);
11986
+ }, b = function(v2) {
11987
+ return m.log(v2 + m.sqrt(v2 * v2 - 1));
11988
+ }, w2 = function(v2) {
11989
+ return m.log(v2 + m.sqrt(v2 * v2 + 1));
11990
+ }, R = function(v2) {
11991
+ return m.log((1 + v2) / (1 - v2)) / 2;
11992
+ }, D2 = function(v2) {
11993
+ return m.exp(v2) - 1 / m.exp(v2) / 2;
11994
+ }, P2 = function(v2) {
11995
+ return (m.exp(v2) + 1 / m.exp(v2)) / 2;
11996
+ }, T2 = function(v2) {
11997
+ return m.exp(v2) - 1;
11998
+ }, ge2 = function(v2) {
11999
+ return (m.exp(2 * v2) - 1) / (m.exp(2 * v2) + 1);
12000
+ }, be2 = function(v2) {
12001
+ return m.log(1 + v2);
11976
12002
  };
11977
12003
  return {
11978
12004
  acos: e2(0.12312423423423424),
11979
12005
  acosh: t2(1e308),
11980
- acoshPf: b2(1e154),
12006
+ acoshPf: b(1e154),
11981
12007
  asin: n2(0.12312423423423424),
11982
12008
  asinh: a(1),
11983
12009
  asinhPf: w2(1),
11984
12010
  atanh: i(0.5),
11985
- atanhPf: R2(0.5),
12011
+ atanhPf: R(0.5),
11986
12012
  atan: r2(0.5),
11987
12013
  sin: o2(-1e300),
11988
12014
  sinh: c(1),
@@ -11993,12 +12019,12 @@ function It() {
11993
12019
  tan: u(-1e300),
11994
12020
  tanh: f(1),
11995
12021
  tanhPf: ge2(1),
11996
- exp: d2(1),
11997
- expm1: p2(1),
12022
+ exp: d(1),
12023
+ expm1: p(1),
11998
12024
  expm1Pf: T2(1),
11999
12025
  log1p: g(10),
12000
12026
  log1pPf: be2(10),
12001
- powPI: y(-100)
12027
+ powPI: y2(-100)
12002
12028
  };
12003
12029
  }
12004
12030
  var Gt = "mmMwWLliI0fiflO&1", J = {
@@ -12026,16 +12052,16 @@ var Gt = "mmMwWLliI0fiflO&1", J = {
12026
12052
  function Yt() {
12027
12053
  return jt(function(e2, t2) {
12028
12054
  for (var n2 = {}, a = {}, i = 0, r2 = Object.keys(J); i < r2.length; i++) {
12029
- var o2 = r2[i], c = J[o2], l = c[0], s = l === void 0 ? {} : l, u = c[1], f = u === void 0 ? Gt : u, d2 = e2.createElement("span");
12030
- d2.textContent = f, d2.style.whiteSpace = "nowrap";
12031
- for (var p2 = 0, g = Object.keys(s); p2 < g.length; p2++) {
12032
- var y = g[p2], b2 = s[y];
12033
- b2 !== void 0 && (d2.style[y] = b2);
12055
+ var o2 = r2[i], c = J[o2], l = c[0], s = l === void 0 ? {} : l, u = c[1], f = u === void 0 ? Gt : u, d = e2.createElement("span");
12056
+ d.textContent = f, d.style.whiteSpace = "nowrap";
12057
+ for (var p = 0, g = Object.keys(s); p < g.length; p++) {
12058
+ var y2 = g[p], b = s[y2];
12059
+ b !== void 0 && (d.style[y2] = b);
12034
12060
  }
12035
- n2[o2] = d2, t2.appendChild(e2.createElement("br")), t2.appendChild(d2);
12061
+ n2[o2] = d, t2.appendChild(e2.createElement("br")), t2.appendChild(d);
12036
12062
  }
12037
- for (var w2 = 0, R2 = Object.keys(J); w2 < R2.length; w2++) {
12038
- var o2 = R2[w2];
12063
+ for (var w2 = 0, R = Object.keys(J); w2 < R.length; w2++) {
12064
+ var o2 = R[w2];
12039
12065
  a[o2] = n2[o2].getBoundingClientRect().width;
12040
12066
  }
12041
12067
  return a;
@@ -12069,7 +12095,7 @@ function Dt() {
12069
12095
  var e2 = new Float32Array(1), t2 = new Uint8Array(e2.buffer);
12070
12096
  return e2[0] = 1 / 0, e2[0] = e2[0] - e2[0], t2[3];
12071
12097
  }
12072
- var Tt = {
12098
+ var Tt2 = {
12073
12099
  // READ FIRST:
12074
12100
  // See https://github.com/fingerprintjs/fingerprintjs/blob/master/contributing.md#how-to-make-an-entropy-source
12075
12101
  // to learn how entropy source works and how to make your own.
@@ -12083,26 +12109,26 @@ var Tt = {
12083
12109
  osCpu: qe,
12084
12110
  languages: $e,
12085
12111
  colorDepth: et,
12086
- deviceMemory: tt,
12112
+ deviceMemory: tt2,
12087
12113
  screenResolution: nt,
12088
12114
  hardwareConcurrency: ut,
12089
12115
  timezone: st,
12090
- sessionStorage: ft2,
12091
- localStorage: dt,
12092
- indexedDB: mt2,
12093
- openDatabase: vt,
12094
- cpuClass: ht2,
12095
- platform: pt2,
12116
+ sessionStorage: ft,
12117
+ localStorage: dt2,
12118
+ indexedDB: mt,
12119
+ openDatabase: vt2,
12120
+ cpuClass: ht,
12121
+ platform: pt,
12096
12122
  plugins: ze,
12097
12123
  canvas: Ne,
12098
12124
  touchSupport: _e,
12099
12125
  vendor: gt,
12100
12126
  vendorFlavors: bt2,
12101
12127
  cookiesEnabled: yt2,
12102
- colorGamut: kt,
12128
+ colorGamut: kt2,
12103
12129
  invertedColors: Vt,
12104
12130
  forcedColors: Ft,
12105
- monochrome: Zt2,
12131
+ monochrome: Zt,
12106
12132
  contrast: Rt2,
12107
12133
  reducedMotion: At2,
12108
12134
  hdr: Mt,
@@ -12112,7 +12138,7 @@ var Tt = {
12112
12138
  architecture: Dt
12113
12139
  };
12114
12140
  function Et(e2) {
12115
- return Fe(Tt, e2, []);
12141
+ return Fe(Tt2, e2, []);
12116
12142
  }
12117
12143
  var Ht = "$ if upgrade to Pro: https://fpjs.dev/pro";
12118
12144
  function Jt(e2) {
@@ -12145,7 +12171,7 @@ function he(e2) {
12145
12171
  function pe(e2) {
12146
12172
  return we(Bt(e2));
12147
12173
  }
12148
- function Ot(e2) {
12174
+ function Ot2(e2) {
12149
12175
  var t2, n2 = Jt(e2);
12150
12176
  return {
12151
12177
  get visitorId() {
@@ -12173,7 +12199,7 @@ function Qt(e2, t2) {
12173
12199
  case 0:
12174
12200
  return i = Date.now(), [4, e2()];
12175
12201
  case 1:
12176
- return r2 = c.sent(), o2 = Ot(r2), (t2 || a != null && a.debug) && console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(o2.version, `
12202
+ return r2 = c.sent(), o2 = Ot2(r2), (t2 || a != null && a.debug) && console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(o2.version, `
12177
12203
  userAgent: `).concat(navigator.userAgent, `
12178
12204
  timeBetweenLoadAndGet: `).concat(i - n2, `
12179
12205
  visitorId: `).concat(o2.visitorId, `
@@ -12207,15 +12233,15 @@ function _t(e2) {
12207
12233
  });
12208
12234
  });
12209
12235
  }
12210
- var qt = { load: _t, hashComponents: pe, componentsToDebugString: he };
12236
+ var qt2 = { load: _t, hashComponents: pe, componentsToDebugString: he };
12211
12237
  async function ce() {
12212
12238
  try {
12213
- return typeof process == "object" && define_process_env_default.NODE_ENV === "test" ? "a-mock-visitor-id" : (await (await qt.load()).get()).visitorId;
12239
+ return typeof process == "object" && define_process_env_default.NODE_ENV === "test" ? "a-mock-visitor-id" : (await (await qt2.load()).get()).visitorId;
12214
12240
  } catch (e2) {
12215
12241
  return console.error(e2), null;
12216
12242
  }
12217
12243
  }
12218
- async function $t2() {
12244
+ async function $t() {
12219
12245
  return new Promise(
12220
12246
  (t2) => {
12221
12247
  window.requestIdleCallback ? requestIdleCallback(
@@ -12285,15 +12311,15 @@ async function cn({
12285
12311
  try {
12286
12312
  [u, l, s] = await Promise.all([
12287
12313
  on$1(),
12288
- $t2(),
12314
+ $t(),
12289
12315
  t2 ? an({
12290
12316
  env: e2,
12291
12317
  kountAccountId: t2,
12292
12318
  kountSessionId: n2
12293
12319
  }) : void 0
12294
12320
  ]);
12295
- } catch (d2) {
12296
- console.error(d2);
12321
+ } catch (d) {
12322
+ console.error(d);
12297
12323
  }
12298
12324
  return {
12299
12325
  riskMetadata: {
@@ -13134,7 +13160,7 @@ async function fetchData({
13134
13160
  fetchDepositRequest: fetchDepositRequest$1 = fetchDepositRequest,
13135
13161
  fetchPayoutRequest: fetchPayoutRequest$1 = fetchPayoutRequest
13136
13162
  } = {}) {
13137
- var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s2, _t2, _u;
13163
+ var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t2, _u;
13138
13164
  try {
13139
13165
  state.data = new DataInstance();
13140
13166
  if (state.storefront && ((_a = state.options) == null ? void 0 : _a.jwt)) {
@@ -13187,7 +13213,7 @@ async function fetchData({
13187
13213
  (_i = (_h = state.options) == null ? void 0 : _h.paymentInstruments) == null ? void 0 : _i.allowDeactivate,
13188
13214
  (_k = (_j = state.options) == null ? void 0 : _j.paymentInstruments) == null ? void 0 : _k.allowUpdate,
13189
13215
  (_m = (_l = state.options) == null ? void 0 : _l.paymentInstruments) == null ? void 0 : _m.allowMakeDefault
13190
- ].some((v) => v);
13216
+ ].some((v2) => v2);
13191
13217
  let readyToPayPromise = Promise.resolve(null);
13192
13218
  let readyToPayoutPromise = Promise.resolve(null);
13193
13219
  let fetchAccountAndWebsitePromise = Promise.resolve();
@@ -13224,7 +13250,7 @@ async function fetchData({
13224
13250
  let plansPromise = new Promise((resolve) => {
13225
13251
  resolve([]);
13226
13252
  });
13227
- if (((_s2 = state.options) == null ? void 0 : _s2.addons) || ((_t2 = state.options) == null ? void 0 : _t2.bumpOffer)) {
13253
+ if (((_s = state.options) == null ? void 0 : _s.addons) || ((_t2 = state.options) == null ? void 0 : _t2.bumpOffer)) {
13228
13254
  plansPromise = fetchPlansFromAddonsBumpOffer();
13229
13255
  }
13230
13256
  let [
@@ -14464,8 +14490,8 @@ function parseAlpha$1(alpha) {
14464
14490
  return clamp$3(a, 0, 1);
14465
14491
  }
14466
14492
  function getHEX$1(hex) {
14467
- const [r2, g, b2, a] = hex2Rgb(hex, { format: "array" });
14468
- return getRGB$1([null, ...[r2, g, b2, a]]);
14493
+ const [r2, g, b, a] = hex2Rgb(hex, { format: "array" });
14494
+ return getRGB$1([null, ...[r2, g, b, a]]);
14469
14495
  }
14470
14496
  function getHSL$1([, h2, s, l, a = 1]) {
14471
14497
  let hh = h2;
@@ -14482,10 +14508,10 @@ function getHSL$1([, h2, s, l, a = 1]) {
14482
14508
  alpha: parseAlpha$1(a === null ? 1 : a)
14483
14509
  };
14484
14510
  }
14485
- function getRGB$1([, r2, g, b2, a = 1]) {
14511
+ function getRGB$1([, r2, g, b, a = 1]) {
14486
14512
  return {
14487
14513
  type: "rgb",
14488
- values: [r2, g, b2].map(parseRGB$1),
14514
+ values: [r2, g, b].map(parseRGB$1),
14489
14515
  alpha: parseAlpha$1(a === null ? 1 : a)
14490
14516
  };
14491
14517
  }
@@ -14555,14 +14581,14 @@ function rgb2hex(rgb) {
14555
14581
  var rgb2hex_1 = rgb2hex;
14556
14582
  const rgb2hex$1 = /* @__PURE__ */ getDefaultExportFromCjs(rgb2hex_1);
14557
14583
  function rgb2hsl(rgb) {
14558
- var r2 = rgb[0] / 255, g = rgb[1] / 255, b2 = rgb[2] / 255, min = Math.min(r2, g, b2), max = Math.max(r2, g, b2), delta = max - min, h2, s, l;
14584
+ var r2 = rgb[0] / 255, g = rgb[1] / 255, b = rgb[2] / 255, min = Math.min(r2, g, b), max = Math.max(r2, g, b), delta = max - min, h2, s, l;
14559
14585
  if (max == min)
14560
14586
  h2 = 0;
14561
14587
  else if (r2 == max)
14562
- h2 = (g - b2) / delta;
14588
+ h2 = (g - b) / delta;
14563
14589
  else if (g == max)
14564
- h2 = 2 + (b2 - r2) / delta;
14565
- else if (b2 == max)
14590
+ h2 = 2 + (b - r2) / delta;
14591
+ else if (b == max)
14566
14592
  h2 = 4 + (r2 - g) / delta;
14567
14593
  h2 = Math.min(h2 * 60, 360);
14568
14594
  if (h2 < 0)
@@ -14594,18 +14620,18 @@ function mix(color1, color2, percentage2 = 50) {
14594
14620
  const c1 = parseColor(color1);
14595
14621
  const c2 = parseColor(color2);
14596
14622
  if (!c1 || !c2) return null;
14597
- const p2 = Math.min(Math.max(0, percentage2), 100) / 100;
14598
- const w2 = p2 * 2 - 1;
14623
+ const p = Math.min(Math.max(0, percentage2), 100) / 100;
14624
+ const w2 = p * 2 - 1;
14599
14625
  const a = c1.alpha - c2.alpha;
14600
14626
  const w1 = ((w2 * a === -1 ? w2 : (w2 + a) / (1 + w2 * a)) + 1) / 2;
14601
14627
  const w22 = 1 - w1;
14602
- const [r2, g, b2] = c1.values.map((c, i) => Math.round(c1.values[i] * w1 + c2.values[i] * w22));
14603
- const alpha = parseFloat((c1.alpha * p2 + c2.alpha * (1 - p2)).toFixed(8));
14628
+ const [r2, g, b] = c1.values.map((c, i) => Math.round(c1.values[i] * w1 + c2.values[i] * w22));
14629
+ const alpha = parseFloat((c1.alpha * p + c2.alpha * (1 - p)).toFixed(8));
14604
14630
  return {
14605
- hex: rgb2hex$1([r2, g, b2]),
14606
- hexa: rgb2hex$1([r2, g, b2, alpha]),
14607
- rgba: [r2, g, b2, alpha],
14608
- hsla: [...rgb2hsl$1([r2, g, b2]).map(Math.round), alpha]
14631
+ hex: rgb2hex$1([r2, g, b]),
14632
+ hexa: rgb2hex$1([r2, g, b, alpha]),
14633
+ rgba: [r2, g, b, alpha],
14634
+ hsla: [...rgb2hsl$1([r2, g, b]).map(Math.round), alpha]
14609
14635
  };
14610
14636
  }
14611
14637
  const pattern = /^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/;
@@ -14689,8 +14715,8 @@ function parseAlpha(alpha) {
14689
14715
  return clamp(a, 0, 1);
14690
14716
  }
14691
14717
  function getHEX(hex) {
14692
- const [r2, g, b2, a] = hex2Rgb(hex, { format: "array" });
14693
- return getRGB([null, ...[r2, g, b2, a]]);
14718
+ const [r2, g, b, a] = hex2Rgb(hex, { format: "array" });
14719
+ return getRGB([null, ...[r2, g, b, a]]);
14694
14720
  }
14695
14721
  function getHSL([, h2, s, l, a = 1]) {
14696
14722
  let hh = h2;
@@ -14707,10 +14733,10 @@ function getHSL([, h2, s, l, a = 1]) {
14707
14733
  alpha: parseAlpha(a === null ? 1 : a)
14708
14734
  };
14709
14735
  }
14710
- function getRGB([, r2, g, b2, a = 1]) {
14736
+ function getRGB([, r2, g, b, a = 1]) {
14711
14737
  return {
14712
14738
  type: "rgb",
14713
- values: [r2, g, b2].map(parseRGB),
14739
+ values: [r2, g, b].map(parseRGB),
14714
14740
  alpha: parseAlpha(a === null ? 1 : a)
14715
14741
  };
14716
14742
  }
@@ -14739,7 +14765,7 @@ const parseCSSColor = (str) => {
14739
14765
  * @link http://noeldelgado.github.io/values.js/
14740
14766
  * @license MIT
14741
14767
  */
14742
- const defaultNumberParam = (v, d2) => v === null || isNaN(v) || typeof v === "string" ? d2 : v;
14768
+ const defaultNumberParam = (v2, d) => v2 === null || isNaN(v2) || typeof v2 === "string" ? d : v2;
14743
14769
  class Values {
14744
14770
  constructor(color = "#000", type = "base", weight = 0) {
14745
14771
  [this.rgb, this.alpha, this.type, this.weight] = [[0, 0, 0], 1, type, weight];
@@ -14780,10 +14806,10 @@ class Values {
14780
14806
  return `${this.alpha >= 1 ? "rgb" : "rgba"}(${channels})`;
14781
14807
  }
14782
14808
  getBrightness() {
14783
- return Math.round(this.rgb.reduce((a, b2) => a + b2) / (255 * 3) * 100);
14809
+ return Math.round(this.rgb.reduce((a, b) => a + b) / (255 * 3) * 100);
14784
14810
  }
14785
- _setFromRGB([r2, g, b2, a]) {
14786
- [this.rgb, this.alpha] = [[r2, g, b2], a];
14811
+ _setFromRGB([r2, g, b, a]) {
14812
+ [this.rgb, this.alpha] = [[r2, g, b], a];
14787
14813
  return this;
14788
14814
  }
14789
14815
  _setFromHSL([h2, s, l, a]) {
@@ -15928,7 +15954,7 @@ const _Theme = class _Theme {
15928
15954
  });
15929
15955
  }
15930
15956
  get cssVars() {
15931
- return Object.keys(this.theme).filter((v) => !_Theme.nonCssProperties.includes(v)).map((p2, i) => `${!i ? "" : " "}--rebilly-${p2}: ${this.theme[p2]};`).join("\n");
15957
+ return Object.keys(this.theme).filter((v2) => !_Theme.nonCssProperties.includes(v2)).map((p, i) => `${!i ? "" : " "}--rebilly-${p}: ${this.theme[p]};`).join("\n");
15932
15958
  }
15933
15959
  build() {
15934
15960
  this.overrideTheme();
@@ -17558,7 +17584,7 @@ function getShadowParent(element) {
17558
17584
  return null;
17559
17585
  }
17560
17586
  async function mount({ ...options } = {}) {
17561
- var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s2, _t2;
17587
+ var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t2;
17562
17588
  try {
17563
17589
  state.data = {};
17564
17590
  state.options = {};
@@ -17635,7 +17661,7 @@ async function mount({ ...options } = {}) {
17635
17661
  }
17636
17662
  let hasNoPaymentMethods = false;
17637
17663
  if (data.payout) {
17638
- hasNoPaymentMethods = !((_s2 = data.readyToPayout) == null ? void 0 : _s2.length);
17664
+ hasNoPaymentMethods = !((_s = data.readyToPayout) == null ? void 0 : _s.length);
17639
17665
  } else {
17640
17666
  hasNoPaymentMethods = !((_t2 = data.readyToPay) == null ? void 0 : _t2.length);
17641
17667
  }
@@ -17673,7 +17699,7 @@ async function destroy() {
17673
17699
  if (state.form instanceof HTMLElement) {
17674
17700
  state.form.textContent = "";
17675
17701
  }
17676
- await hr.cancelAll();
17702
+ await er.cancelAll();
17677
17703
  state.loader.clearAll();
17678
17704
  }
17679
17705
  async function update({ newOptions = {} } = {}) {