@rebilly/instruments 16.126.2 → 16.128.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"];
@@ -1154,126 +1154,15 @@ function kebabCase(str) {
1154
1154
  const words$1 = words(str);
1155
1155
  return words$1.map((word) => word.toLowerCase()).join("-");
1156
1156
  }
1157
- const en$1 = {
1158
- summary: {
1159
- subTotal: "Subtotal",
1160
- discounts: "Discounts",
1161
- taxes: "Taxes",
1162
- shipping: "Shipping",
1163
- total: "Total"
1164
- },
1165
- deposit: {
1166
- goBack: "Choose another amount"
1167
- },
1168
- form: {
1169
- expressCheckout: "Express checkout",
1170
- or: "Or",
1171
- popupOverlayText: "Click here to show popup window",
1172
- andMore: "and more",
1173
- error: {
1174
- noPaymentMethods: "No payment methods available for this transaction, please contact support.",
1175
- invoiceIsPaid: "The invoice has been fully paid.",
1176
- invoiceIsVoid: "The invoice has been voided.",
1177
- invoiceIsAbandoned: "The invoice has been abandoned.",
1178
- invoiceIsRefunded: "The invoice has been refunded.",
1179
- transactionIsCompleted: "The transaction is completed and cannot be updated.",
1180
- payoutCannotSelectPaymentInstrument: "The payout request cannot be updated."
1181
- },
1182
- loaderMessages: {
1183
- processingPayment: "Processing payment instrument."
1184
- },
1185
- bumpOffer: {
1186
- title: "Yes, I want to upgrade!",
1187
- startingAt: "Starting at {basePrice}"
1188
- }
1189
- },
1190
- paymentMethods: {
1191
- "payment-card": "Payment card",
1192
- ach: "Bank account"
1193
- }
1194
- };
1157
+ const en$1 = { "summary": { "subTotal": "Subtotal", "discounts": "Discounts", "taxes": "Taxes", "shipping": "Shipping", "total": "Total" }, "deposit": { "goBack": "Choose another amount" }, "form": { "expressCheckout": "Express checkout", "or": "Or", "popupOverlayText": "Click here to show popup window", "andMore": "and more", "error": { "noPaymentMethods": "No payment methods available for this transaction, please contact support.", "invoiceIsPaid": "The invoice has been fully paid.", "invoiceIsVoid": "The invoice has been voided.", "invoiceIsAbandoned": "The invoice has been abandoned.", "invoiceIsRefunded": "The invoice has been refunded.", "transactionIsCompleted": "The transaction is completed and cannot be updated.", "payoutCannotSelectPaymentInstrument": "The payout request cannot be updated." }, "loaderMessages": { "processingPayment": "Processing payment instrument." }, "bumpOffer": { "title": "Yes, I want to upgrade!", "startingAt": "Starting at {basePrice}" } }, "paymentMethods": { "payment-card": "Payment card", "ach": "Bank account" } };
1195
1158
  const en$2 = {
1196
1159
  en: en$1
1197
1160
  };
1198
- const es$1 = {
1199
- summary: {
1200
- subTotal: "Subtotal",
1201
- discounts: "Descuentos",
1202
- taxes: "Impuestos",
1203
- shipping: "Envío",
1204
- total: "Total"
1205
- },
1206
- deposit: {
1207
- goBack: "Elija otro monto a depositar"
1208
- },
1209
- form: {
1210
- expressCheckout: "Chequeo rápido",
1211
- or: "O pague con",
1212
- popupOverlayText: "Haga clic aquí para mostrar la ventana emergente",
1213
- andMore: "y más",
1214
- error: {
1215
- noPaymentMethods: "No hay métodos de pago disponibles para esta transacción, por favor, póngase en contacto con el servicio de asistencia.",
1216
- invoiceIsPaid: "La factura ha sido completamente pagada.",
1217
- invoiceIsVoid: "La factura ha sido anulada.",
1218
- invoiceIsAbandoned: "La factura ha sido abandonada.",
1219
- invoiceIsRefunded: "La factura ha reembolsada.",
1220
- transactionIsCompleted: "La transacción está finalizada y no se puede actualizar.",
1221
- payoutCannotSelectPaymentInstrument: "La solicitud de pago no se puede actualizar."
1222
- },
1223
- loaderMessages: {
1224
- processingPayment: "Procesamiento de instrumento de pago."
1225
- },
1226
- bumpOffer: {
1227
- title: "¡Sí, me gustaría actualizar!",
1228
- startingAt: "A partir de {basePrice}"
1229
- }
1230
- },
1231
- paymentMethods: {
1232
- "payment-card": "Tarjeta de crédito",
1233
- ach: "Cuenta bancaria"
1234
- }
1235
- };
1161
+ const es$1 = { "summary": { "subTotal": "Subtotal", "discounts": "Descuentos", "taxes": "Impuestos", "shipping": "Envío", "total": "Total" }, "deposit": { "goBack": "Elija otro monto a depositar" }, "form": { "expressCheckout": "Chequeo rápido", "or": "O pague con", "popupOverlayText": "Haga clic aquí para mostrar la ventana emergente", "andMore": "y más", "error": { "noPaymentMethods": "No hay métodos de pago disponibles para esta transacción, por favor, póngase en contacto con el servicio de asistencia.", "invoiceIsPaid": "La factura ha sido completamente pagada.", "invoiceIsVoid": "La factura ha sido anulada.", "invoiceIsAbandoned": "La factura ha sido abandonada.", "invoiceIsRefunded": "La factura ha reembolsada.", "transactionIsCompleted": "La transacción está finalizada y no se puede actualizar.", "payoutCannotSelectPaymentInstrument": "La solicitud de pago no se puede actualizar." }, "loaderMessages": { "processingPayment": "Procesamiento de instrumento de pago." }, "bumpOffer": { "title": "¡Sí, me gustaría actualizar!", "startingAt": "A partir de {basePrice}" } }, "paymentMethods": { "payment-card": "Tarjeta de crédito", "ach": "Cuenta bancaria" } };
1236
1162
  const es$2 = {
1237
1163
  es: es$1
1238
1164
  };
1239
- const ja = {
1240
- summary: {
1241
- subTotal: "Subtotal",
1242
- discounts: "Discounts",
1243
- taxes: "Taxes",
1244
- shipping: "Shipping",
1245
- total: "Total"
1246
- },
1247
- deposit: {
1248
- goBack: "Choose another amount"
1249
- },
1250
- form: {
1251
- expressCheckout: "Express checkout",
1252
- or: "Or",
1253
- popupOverlayText: "Click here to show popup window",
1254
- andMore: "and more",
1255
- error: {
1256
- noPaymentMethods: "No payment methods available for this transaction, please contact support.",
1257
- invoiceIsPaid: "The invoice has been fully paid.",
1258
- invoiceIsVoid: "The invoice has been voided.",
1259
- invoiceIsAbandoned: "The invoice has been abandoned.",
1260
- invoiceIsRefunded: "The invoice has been refunded.",
1261
- transactionIsCompleted: "The transaction is completed and cannot be updated.",
1262
- payoutCannotSelectPaymentInstrument: "The payout request cannot be updated."
1263
- },
1264
- loaderMessages: {
1265
- processingPayment: "Processing payment instrument."
1266
- },
1267
- bumpOffer: {
1268
- title: "Yes, I want to upgrade!",
1269
- startingAt: "Starting at {basePrice}"
1270
- }
1271
- },
1272
- paymentMethods: {
1273
- "payment-card": "Payment card",
1274
- ach: "Bank account"
1275
- }
1276
- };
1165
+ const ja = { "summary": { "subTotal": "Subtotal", "discounts": "Discounts", "taxes": "Taxes", "shipping": "Shipping", "total": "Total" }, "deposit": { "goBack": "Choose another amount" }, "form": { "expressCheckout": "Express checkout", "or": "Or", "popupOverlayText": "Click here to show popup window", "andMore": "and more", "error": { "noPaymentMethods": "No payment methods available for this transaction, please contact support.", "invoiceIsPaid": "The invoice has been fully paid.", "invoiceIsVoid": "The invoice has been voided.", "invoiceIsAbandoned": "The invoice has been abandoned.", "invoiceIsRefunded": "The invoice has been refunded.", "transactionIsCompleted": "The transaction is completed and cannot be updated.", "payoutCannotSelectPaymentInstrument": "The payout request cannot be updated." }, "loaderMessages": { "processingPayment": "Processing payment instrument." }, "bumpOffer": { "title": "Yes, I want to upgrade!", "startingAt": "Starting at {basePrice}" } }, "paymentMethods": { "payment-card": "Payment card", "ach": "Bank account" } };
1277
1166
  const ja$1 = {
1278
1167
  ja
1279
1168
  };
@@ -1512,7 +1401,7 @@ var resolveValue = function resolveValue2(model, property) {
1512
1401
  var unwrappedContext = typeof model[property] === "function" ? model[property]() : model[property];
1513
1402
  return Postmate.Promise.resolve(unwrappedContext);
1514
1403
  };
1515
- var ParentAPI = /* @__PURE__ */ function() {
1404
+ var ParentAPI = /* @__PURE__ */ (function() {
1516
1405
  function ParentAPI2(info) {
1517
1406
  var _this = this;
1518
1407
  this.parent = info.parent;
@@ -1579,8 +1468,8 @@ var ParentAPI = /* @__PURE__ */ function() {
1579
1468
  this.frame.parentNode.removeChild(this.frame);
1580
1469
  };
1581
1470
  return ParentAPI2;
1582
- }();
1583
- var ChildAPI = /* @__PURE__ */ function() {
1471
+ })();
1472
+ var ChildAPI = /* @__PURE__ */ (function() {
1584
1473
  function ChildAPI2(info) {
1585
1474
  var _this3 = this;
1586
1475
  this.model = info.model;
@@ -1627,8 +1516,8 @@ var ChildAPI = /* @__PURE__ */ function() {
1627
1516
  }, this.parentOrigin);
1628
1517
  };
1629
1518
  return ChildAPI2;
1630
- }();
1631
- var Postmate = /* @__PURE__ */ function() {
1519
+ })();
1520
+ var Postmate = /* @__PURE__ */ (function() {
1632
1521
  function Postmate2(_ref2) {
1633
1522
  var _ref2$container = _ref2.container, container = _ref2$container === void 0 ? typeof container !== "undefined" ? container : document.body : _ref2$container, model = _ref2.model, url = _ref2.url, name = _ref2.name, _ref2$classListArray = _ref2.classListArray, classListArray = _ref2$classListArray === void 0 ? [] : _ref2$classListArray, _ref2$logger = _ref2.logger, logger = _ref2$logger === void 0 ? {} : _ref2$logger;
1634
1523
  this.parent = window;
@@ -1698,16 +1587,16 @@ var Postmate = /* @__PURE__ */ function() {
1698
1587
  });
1699
1588
  };
1700
1589
  return Postmate2;
1701
- }();
1590
+ })();
1702
1591
  Postmate.maxHandshakeRequests = 5;
1703
- Postmate.Promise = function() {
1592
+ Postmate.Promise = (function() {
1704
1593
  try {
1705
1594
  return window ? window.Promise : Promise;
1706
1595
  } catch (e2) {
1707
1596
  return null;
1708
1597
  }
1709
- }();
1710
- Postmate.Model = /* @__PURE__ */ function() {
1598
+ })();
1599
+ Postmate.Model = /* @__PURE__ */ (function() {
1711
1600
  function Model(model, logger) {
1712
1601
  if (logger === void 0) {
1713
1602
  logger = {};
@@ -1754,7 +1643,7 @@ Postmate.Model = /* @__PURE__ */ function() {
1754
1643
  });
1755
1644
  };
1756
1645
  return Model;
1757
- }();
1646
+ })();
1758
1647
  class BaseIframe {
1759
1648
  constructor({
1760
1649
  name = "",
@@ -2503,9 +2392,9 @@ function merge() {
2503
2392
  }
2504
2393
  return result;
2505
2394
  }
2506
- const extend = (a, b2, thisArg, { allOwnKeys } = {}) => {
2395
+ const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
2507
2396
  forEach(
2508
- b2,
2397
+ b,
2509
2398
  (val, key) => {
2510
2399
  if (thisArg && isFunction$1(val)) {
2511
2400
  Object.defineProperty(a, key, {
@@ -3774,28 +3663,28 @@ function mergeConfig$1(config1, config2) {
3774
3663
  }
3775
3664
  return source;
3776
3665
  }
3777
- function mergeDeepProperties(a, b2, prop, caseless) {
3778
- if (!utils$1.isUndefined(b2)) {
3779
- return getMergedValue(a, b2, prop, caseless);
3666
+ function mergeDeepProperties(a, b, prop, caseless) {
3667
+ if (!utils$1.isUndefined(b)) {
3668
+ return getMergedValue(a, b, prop, caseless);
3780
3669
  } else if (!utils$1.isUndefined(a)) {
3781
3670
  return getMergedValue(void 0, a, prop, caseless);
3782
3671
  }
3783
3672
  }
3784
- function valueFromConfig2(a, b2) {
3785
- if (!utils$1.isUndefined(b2)) {
3786
- return getMergedValue(void 0, b2);
3673
+ function valueFromConfig2(a, b) {
3674
+ if (!utils$1.isUndefined(b)) {
3675
+ return getMergedValue(void 0, b);
3787
3676
  }
3788
3677
  }
3789
- function defaultToConfig2(a, b2) {
3790
- if (!utils$1.isUndefined(b2)) {
3791
- return getMergedValue(void 0, b2);
3678
+ function defaultToConfig2(a, b) {
3679
+ if (!utils$1.isUndefined(b)) {
3680
+ return getMergedValue(void 0, b);
3792
3681
  } else if (!utils$1.isUndefined(a)) {
3793
3682
  return getMergedValue(void 0, a);
3794
3683
  }
3795
3684
  }
3796
- function mergeDirectKeys(a, b2, prop) {
3685
+ function mergeDirectKeys(a, b, prop) {
3797
3686
  if (prop in config2) {
3798
- return getMergedValue(a, b2);
3687
+ return getMergedValue(a, b);
3799
3688
  } else if (prop in config1) {
3800
3689
  return getMergedValue(void 0, a);
3801
3690
  }
@@ -3829,7 +3718,7 @@ function mergeConfig$1(config1, config2) {
3829
3718
  socketPath: defaultToConfig2,
3830
3719
  responseEncoding: defaultToConfig2,
3831
3720
  validateStatus: mergeDirectKeys,
3832
- headers: (a, b2, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b2), prop, true)
3721
+ headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
3833
3722
  };
3834
3723
  utils$1.forEach(
3835
3724
  Object.keys({ ...config1, ...config2 }),
@@ -4891,19 +4780,19 @@ const {
4891
4780
  getAdapter,
4892
4781
  mergeConfig
4893
4782
  } = 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 = [] } = {}) {
4783
+ var pt$1 = Object.defineProperty;
4784
+ var ht$1 = (e2, t2, s) => t2 in e2 ? pt$1(e2, t2, { enumerable: true, configurable: true, writable: true, value: s }) : e2[t2] = s;
4785
+ var E$1 = (e2, t2, s) => ht$1(e2, typeof t2 != "symbol" ? t2 + "" : t2, s);
4786
+ function S$1(e2, { exclude: t2 = [] } = {}) {
4898
4787
  Object.freeze(e2);
4899
4788
  const s = typeof e2 == "function";
4900
4789
  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 });
4790
+ (!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
4791
  }), e2;
4903
4792
  }
4904
- let G$1 = class G {
4793
+ let tt$1 = class tt {
4905
4794
  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"] });
4795
+ this.response = { status: s, statusText: r2, headers: n2 }, this.fields = { ...t2 }, this.config = u, S$1(this, { exclude: ["cancelToken"] });
4907
4796
  }
4908
4797
  /**
4909
4798
  * Returns a mutable JSON representation of the Member.
@@ -4913,7 +4802,7 @@ let G$1 = class G {
4913
4802
  return JSON.parse(JSON.stringify({ fields: this.fields }));
4914
4803
  }
4915
4804
  };
4916
- const U$1 = {
4805
+ const G$1 = {
4917
4806
  /**
4918
4807
  * Amount of records requested at once
4919
4808
  */
@@ -4927,14 +4816,14 @@ const U$1 = {
4927
4816
  */
4928
4817
  total: "pagination-total"
4929
4818
  };
4930
- let at$1 = class at {
4819
+ let yt$1 = class yt {
4931
4820
  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]];
4821
+ this.limit = null, this.offset = null, this.total = null, Object.keys(G$1).forEach((o2) => {
4822
+ const l = n2[G$1[o2]];
4934
4823
  this[o2] = l ? Number(l) : null;
4935
4824
  }), 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"] });
4825
+ (o2) => new tt$1({ data: o2, status: s, statusText: r2, headers: n2 })
4826
+ ), this.config = u, S$1(this, { exclude: ["cancelToken"] });
4938
4827
  }
4939
4828
  /**
4940
4829
  * Returns a mutable JSON representation of the Collection.
@@ -4944,12 +4833,12 @@ let at$1 = class at {
4944
4833
  return JSON.parse(JSON.stringify({ items: this.items }));
4945
4834
  }
4946
4835
  };
4947
- let mt$1 = class mt {
4836
+ let At$1 = class At {
4948
4837
  constructor({ data: t2, status: s, statusText: r2, headers: n2 }, u = {}) {
4949
4838
  this.response = { status: s, statusText: r2, headers: n2 }, this.data = t2, this.config = u;
4950
4839
  }
4951
4840
  };
4952
- class p extends Error {
4841
+ let A$1 = class A extends Error {
4953
4842
  constructor({ error: t2, name: s = null }) {
4954
4843
  let {
4955
4844
  config: r2 = null,
@@ -4959,158 +4848,170 @@ class p extends Error {
4959
4848
  } = t2 || {}, l = o2 || "Request Error";
4960
4849
  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
4850
  }
4962
- }
4963
- let ft$1 = class ft extends p {
4851
+ };
4852
+ let bt$1 = class bt extends A$1 {
4964
4853
  constructor(t2) {
4965
4854
  super({ error: t2, name: "RebillyRequestError" });
4966
4855
  }
4967
4856
  };
4968
- let $t$1 = class $t extends p {
4857
+ let Rt$1 = class Rt extends A$1 {
4969
4858
  constructor(t2) {
4970
4859
  super({ error: t2, name: "RebillyValidationError" });
4971
4860
  }
4972
4861
  };
4973
- let pt$1 = class pt extends p {
4862
+ let wt$1 = class wt extends A$1 {
4974
4863
  constructor(t2) {
4975
4864
  super({ error: t2, name: "RebillyNotFoundError" });
4976
4865
  }
4977
4866
  };
4978
- let ht$1 = class ht extends p {
4867
+ let kt$1 = class kt extends A$1 {
4979
4868
  constructor(t2) {
4980
4869
  super({ error: t2, name: "RebillyConflictError" });
4981
4870
  }
4982
4871
  };
4983
- let yt$1 = class yt extends p {
4872
+ let vt$1 = class vt extends A$1 {
4984
4873
  constructor(t2) {
4985
4874
  super({ error: t2, name: "RebillyForbiddenError" });
4986
4875
  }
4987
4876
  };
4988
- let At$1 = class At extends p {
4877
+ let qt$1 = class qt extends A$1 {
4989
4878
  constructor(t2) {
4990
4879
  super({ error: t2, name: "RebillyMethodNotAllowedError" });
4991
4880
  }
4992
4881
  };
4993
- let bt$1 = class bt extends p {
4882
+ let dt$1 = class dt extends A$1 {
4994
4883
  constructor(t2) {
4995
4884
  super({ error: t2, name: "RebillyTimeoutError" });
4996
4885
  }
4997
4886
  };
4998
- let Rt$1 = class Rt extends p {
4887
+ let Tt$1 = class Tt extends A$1 {
4999
4888
  constructor(t2) {
5000
4889
  super({ error: t2, name: "RebillyCanceledError" });
5001
4890
  }
5002
4891
  };
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
4892
+ const y = {
4893
+ RebillyError: A$1,
4894
+ RebillyRequestError: bt$1,
4895
+ RebillyValidationError: Rt$1,
4896
+ RebillyNotFoundError: wt$1,
4897
+ RebillyConflictError: kt$1,
4898
+ RebillyForbiddenError: vt$1,
4899
+ RebillyMethodNotAllowedError: qt$1,
4900
+ RebillyTimeoutError: dt$1,
4901
+ RebillyCanceledError: Tt$1
5013
4902
  };
5014
- function wt$1(e2) {
4903
+ function It$1(e2) {
5015
4904
  return e2 && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
5016
4905
  }
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;
4906
+ var x$1, Y$1;
4907
+ function et$1() {
4908
+ if (Y$1) return x$1;
4909
+ Y$1 = 1;
4910
+ var e2 = Object.prototype.toString;
4911
+ x$1 = function($2) {
4912
+ if ($2 === void 0) return "undefined";
4913
+ if ($2 === null) return "null";
4914
+ var h2 = typeof $2;
4915
+ if (h2 === "boolean") return "boolean";
4916
+ if (h2 === "string") return "string";
4917
+ if (h2 === "number") return "number";
4918
+ if (h2 === "symbol") return "symbol";
4919
+ if (h2 === "function")
4920
+ return o2($2) ? "generatorfunction" : "function";
4921
+ if (s($2)) return "array";
4922
+ if (f($2)) return "buffer";
4923
+ if (i($2)) return "arguments";
4924
+ if (n2($2)) return "date";
4925
+ if (r2($2)) return "error";
4926
+ if (u($2)) return "regexp";
4927
+ switch (t2($2)) {
4928
+ case "Symbol":
4929
+ return "symbol";
4930
+ case "Promise":
4931
+ return "promise";
4932
+ // Set, Map, WeakSet, WeakMap
4933
+ case "WeakMap":
4934
+ return "weakmap";
4935
+ case "WeakSet":
4936
+ return "weakset";
4937
+ case "Map":
4938
+ return "map";
4939
+ case "Set":
4940
+ return "set";
4941
+ // 8-bit typed arrays
4942
+ case "Int8Array":
4943
+ return "int8array";
4944
+ case "Uint8Array":
4945
+ return "uint8array";
4946
+ case "Uint8ClampedArray":
4947
+ return "uint8clampedarray";
4948
+ // 16-bit typed arrays
4949
+ case "Int16Array":
4950
+ return "int16array";
4951
+ case "Uint16Array":
4952
+ return "uint16array";
4953
+ // 32-bit typed arrays
4954
+ case "Int32Array":
4955
+ return "int32array";
4956
+ case "Uint32Array":
4957
+ return "uint32array";
4958
+ case "Float32Array":
4959
+ return "float32array";
4960
+ case "Float64Array":
4961
+ return "float64array";
4962
+ }
4963
+ if (l($2))
4964
+ return "generator";
4965
+ switch (h2 = e2.call($2), h2) {
4966
+ case "[object Object]":
4967
+ return "object";
4968
+ // iterators
4969
+ case "[object Map Iterator]":
4970
+ return "mapiterator";
4971
+ case "[object Set Iterator]":
4972
+ return "setiterator";
4973
+ case "[object String Iterator]":
4974
+ return "stringiterator";
4975
+ case "[object Array Iterator]":
4976
+ return "arrayiterator";
4977
+ }
4978
+ return h2.slice(8, -1).toLowerCase().replace(/\s/g, "");
4979
+ };
4980
+ function t2(a) {
4981
+ return typeof a.constructor == "function" ? a.constructor.name : null;
5109
4982
  }
5110
- return false;
5111
- }
5112
- function xt$1(e2) {
5113
- return e2.constructor && typeof e2.constructor.isBuffer == "function" ? e2.constructor.isBuffer(e2) : false;
4983
+ function s(a) {
4984
+ return Array.isArray ? Array.isArray(a) : a instanceof Array;
4985
+ }
4986
+ function r2(a) {
4987
+ return a instanceof Error || typeof a.message == "string" && a.constructor && typeof a.constructor.stackTraceLimit == "number";
4988
+ }
4989
+ function n2(a) {
4990
+ return a instanceof Date ? true : typeof a.toDateString == "function" && typeof a.getDate == "function" && typeof a.setDate == "function";
4991
+ }
4992
+ function u(a) {
4993
+ return a instanceof RegExp ? true : typeof a.flags == "string" && typeof a.ignoreCase == "boolean" && typeof a.multiline == "boolean" && typeof a.global == "boolean";
4994
+ }
4995
+ function o2(a, $2) {
4996
+ return t2(a) === "GeneratorFunction";
4997
+ }
4998
+ function l(a) {
4999
+ return typeof a.throw == "function" && typeof a.return == "function" && typeof a.next == "function";
5000
+ }
5001
+ function i(a) {
5002
+ try {
5003
+ if (typeof a.length == "number" && typeof a.callee == "function")
5004
+ return true;
5005
+ } catch ($2) {
5006
+ if ($2.message.indexOf("callee") !== -1)
5007
+ return true;
5008
+ }
5009
+ return false;
5010
+ }
5011
+ function f(a) {
5012
+ return a.constructor && typeof a.constructor.isBuffer == "function" ? a.constructor.isBuffer(a) : false;
5013
+ }
5014
+ return x$1;
5114
5015
  }
5115
5016
  /*!
5116
5017
  * shallow-clone <https://github.com/jonschlinkert/shallow-clone>
@@ -5118,133 +5019,152 @@ function xt$1(e2) {
5118
5019
  * Copyright (c) 2015-present, Jon Schlinkert.
5119
5020
  * Released under the MIT License.
5120
5021
  */
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;
5022
+ var P, Q$1;
5023
+ function St$1() {
5024
+ if (Q$1) return P;
5025
+ Q$1 = 1;
5026
+ const e2 = Symbol.prototype.valueOf, t2 = et$1();
5027
+ function s(i, f) {
5028
+ switch (t2(i)) {
5029
+ case "array":
5030
+ return i.slice();
5031
+ case "object":
5032
+ return Object.assign({}, i);
5033
+ case "date":
5034
+ return new i.constructor(Number(i));
5035
+ case "map":
5036
+ return new Map(i);
5037
+ case "set":
5038
+ return new Set(i);
5039
+ case "buffer":
5040
+ return o2(i);
5041
+ case "symbol":
5042
+ return l(i);
5043
+ case "arraybuffer":
5044
+ return n2(i);
5045
+ case "float32array":
5046
+ case "float64array":
5047
+ case "int16array":
5048
+ case "int32array":
5049
+ case "int8array":
5050
+ case "uint16array":
5051
+ case "uint32array":
5052
+ case "uint8clampedarray":
5053
+ case "uint8array":
5054
+ return u(i);
5055
+ case "regexp":
5056
+ return r2(i);
5057
+ case "error":
5058
+ return Object.create(i);
5059
+ default:
5060
+ return i;
5061
+ }
5156
5062
  }
5063
+ function r2(i) {
5064
+ const f = i.flags !== void 0 ? i.flags : /\w+$/.exec(i) || void 0, a = new i.constructor(i.source, f);
5065
+ return a.lastIndex = i.lastIndex, a;
5066
+ }
5067
+ function n2(i) {
5068
+ const f = new i.constructor(i.byteLength);
5069
+ return new Uint8Array(f).set(new Uint8Array(i)), f;
5070
+ }
5071
+ function u(i, f) {
5072
+ return new i.constructor(i.buffer, i.byteOffset, i.length);
5073
+ }
5074
+ function o2(i) {
5075
+ const f = i.length, a = Buffer.allocUnsafe ? Buffer.allocUnsafe(f) : Buffer.from(f);
5076
+ return i.copy(a), a;
5077
+ }
5078
+ function l(i) {
5079
+ return e2 ? Object(e2.call(i)) : {};
5080
+ }
5081
+ return P = s, P;
5157
5082
  }
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
5083
  /*!
5178
5084
  * isobject <https://github.com/jonschlinkert/isobject>
5179
5085
  *
5180
5086
  * Copyright (c) 2014-2017, Jon Schlinkert.
5181
5087
  * Released under the MIT License.
5182
5088
  */
5183
- var Kt$1 = function(t2) {
5184
- return t2 != null && typeof t2 == "object" && Array.isArray(t2) === false;
5185
- };
5089
+ var C$1, X$1;
5090
+ function Et$1() {
5091
+ return X$1 || (X$1 = 1, C$1 = function(t2) {
5092
+ return t2 != null && typeof t2 == "object" && Array.isArray(t2) === false;
5093
+ }), C$1;
5094
+ }
5186
5095
  /*!
5187
5096
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
5188
5097
  *
5189
5098
  * Copyright (c) 2014-2017, Jon Schlinkert.
5190
5099
  * Released under the MIT License.
5191
5100
  */
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);
5101
+ var D, Z$1;
5102
+ function xt$1() {
5103
+ if (Z$1) return D;
5104
+ Z$1 = 1;
5105
+ var e2 = Et$1();
5106
+ function t2(s) {
5107
+ return e2(s) === true && Object.prototype.toString.call(s) === "[object Object]";
5108
+ }
5109
+ return D = function(r2) {
5110
+ var n2, u;
5111
+ return !(t2(r2) === false || (n2 = r2.constructor, typeof n2 != "function") || (u = n2.prototype, t2(u) === false) || u.hasOwnProperty("isPrototypeOf") === false);
5112
+ }, D;
5113
+ }
5114
+ var j$1, _$1;
5115
+ function Pt$1() {
5116
+ if (_$1) return j$1;
5117
+ _$1 = 1;
5118
+ const e2 = St$1(), t2 = et$1(), s = xt$1();
5119
+ function r2(o2, l) {
5120
+ switch (t2(o2)) {
5121
+ case "object":
5122
+ return n2(o2, l);
5123
+ case "array":
5124
+ return u(o2, l);
5125
+ default:
5126
+ return e2(o2);
5127
+ }
5209
5128
  }
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;
5129
+ function n2(o2, l) {
5130
+ if (typeof l == "function")
5131
+ return l(o2);
5132
+ if (l || s(o2)) {
5133
+ const i = new o2.constructor();
5134
+ for (let f in o2)
5135
+ i[f] = r2(o2[f], l);
5136
+ return i;
5137
+ }
5138
+ return o2;
5219
5139
  }
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;
5140
+ function u(o2, l) {
5141
+ const i = new o2.constructor(o2.length);
5142
+ for (let f = 0; f < o2.length; f++)
5143
+ i[f] = r2(o2[f], l);
5144
+ return i;
5145
+ }
5146
+ return j$1 = r2, j$1;
5227
5147
  }
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) => {
5148
+ var Ct$1 = Pt$1();
5149
+ const Dt$1 = /* @__PURE__ */ It$1(Ct$1);
5150
+ let jt$1 = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Mt$1 = (e2 = 21) => {
5231
5151
  let t2 = "", s = e2 | 0;
5232
5152
  for (; s--; )
5233
- t2 += Qt$1[Math.random() * 64 | 0];
5153
+ t2 += jt$1[Math.random() * 64 | 0];
5234
5154
  return t2;
5235
5155
  };
5236
- let Zt$1 = class Zt {
5156
+ let Ot$1 = class Ot {
5237
5157
  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, {
5158
+ 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
5159
  exclude: ["cancelSource", "cancelToken", "cancel"]
5240
5160
  });
5241
5161
  }
5242
5162
  };
5243
- let q$1 = class q {
5163
+ class T {
5244
5164
  constructor() {
5245
- if (q.instance)
5246
- return q.instance;
5247
- this.requests = {}, q.instance = this;
5165
+ if (T.instance)
5166
+ return T.instance;
5167
+ this.requests = {}, T.instance = this;
5248
5168
  }
5249
5169
  /**
5250
5170
  * Returns Array with all CachedRequest from the cache.
@@ -5278,16 +5198,16 @@ let q$1 = class q {
5278
5198
  * @returns {{id:CachedRequestId, cancelToken: CancelToken}}
5279
5199
  */
5280
5200
  save() {
5281
- const t2 = new Zt$1();
5201
+ const t2 = new Ot$1();
5282
5202
  return this.requests[t2.id] = t2, { id: t2.id, cancelToken: t2.cancelToken };
5283
5203
  }
5284
- };
5285
- const k$1 = new q$1();
5286
- class T {
5287
5204
  }
5288
- E$1(T, "cancelById", (t2, s) => {
5205
+ const q$1 = new T();
5206
+ let I$1 = class I {
5207
+ };
5208
+ E$1(I$1, "cancelById", (t2, s) => {
5289
5209
  try {
5290
- k$1.getById(t2).cancel(s), k$1.deleteById(t2);
5210
+ q$1.getById(t2).cancel(s), q$1.deleteById(t2);
5291
5211
  } catch {
5292
5212
  }
5293
5213
  }), /**
@@ -5305,24 +5225,24 @@ E$1(T, "cancelById", (t2, s) => {
5305
5225
  * // cancel all active requests
5306
5226
  * await cancellation.cancelAll();
5307
5227
  */
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);
5228
+ E$1(I$1, "cancelAll", async (t2) => {
5229
+ for (const s of q$1.getAll())
5230
+ await s.cancel(t2), q$1.deleteById(s.id);
5311
5231
  });
5312
- const hr = {
5232
+ const er = {
5313
5233
  /**
5314
5234
  * @type Cancellation.cancelAll
5315
5235
  */
5316
- cancelAll: async (...e2) => await T.cancelAll(...e2)
5317
- }, R = {
5236
+ cancelAll: async (...e2) => await I$1.cancelAll(...e2)
5237
+ }, k$1 = {
5318
5238
  request: "request",
5319
5239
  response: "response"
5320
- }, W$1 = (e2) => {
5321
- if (!Object.values(R).includes(e2))
5240
+ }, H$1 = (e2) => {
5241
+ if (!Object.values(k$1).includes(e2))
5322
5242
  throw new Error(`There is no such interceptor type as "${e2}"`);
5323
5243
  return true;
5324
5244
  };
5325
- function C$1({ options: e2 }) {
5245
+ function O$1({ options: e2 }) {
5326
5246
  const t2 = s();
5327
5247
  function s() {
5328
5248
  return axios.create(n2());
@@ -5342,208 +5262,208 @@ function C$1({ options: e2 }) {
5342
5262
  return e2.apiVersion && (c = `${c}/${e2.apiVersion}`), e2.organizationId && (c = `${c}/organizations/${e2.organizationId}`), `${c}`;
5343
5263
  }
5344
5264
  function o2() {
5345
- const i = {
5346
- "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@22e3881`
5265
+ const g = {
5266
+ "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((m2) => m2).join("/")}@8ebc3c3`
5347
5267
  };
5348
- return e2.apiKey && (i["REB-APIKEY"] = e2.apiKey), i;
5268
+ return e2.apiKey && (g["REB-APIKEY"] = e2.apiKey), g;
5349
5269
  }
5350
5270
  function l() {
5351
- return Yt$1(t2.defaults.headers);
5271
+ return Dt$1(t2.defaults.headers);
5352
5272
  }
5353
- function a(c) {
5273
+ function i(c) {
5354
5274
  e2.requestTimeout = Number(c), t2.defaults.timeout = e2.requestTimeout;
5355
5275
  }
5356
5276
  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;
5277
+ const g = l();
5278
+ e2.apiKey = null, e2.jwt = c, delete g.common["REB-APIKEY"], g.common.Authorization = `Bearer ${c}`, t2.defaults.headers = g;
5359
5279
  }
5360
- function y(c = e2.publishableKey) {
5361
- const i = l();
5362
- e2.publishableKey = c, i.common.Authorization = `${c}`, t2.defaults.headers = i;
5280
+ function a(c = e2.publishableKey) {
5281
+ const g = l();
5282
+ e2.publishableKey = c, g.common.Authorization = `${c}`, t2.defaults.headers = g;
5363
5283
  }
5364
- function I2({ host: c, port: i, auth: g }) {
5284
+ function $2({ host: c, port: g, auth: m2 }) {
5365
5285
  t2.defaults.proxy = {
5366
5286
  host: c,
5367
- port: i,
5368
- auth: g
5287
+ port: g,
5288
+ auth: m2
5369
5289
  };
5370
5290
  }
5371
- function S2({ live: c = null, sandbox: i = null }) {
5372
- c && (e2.apiEndpoints.live = c), i && (e2.apiEndpoints.sandbox = i), t2.defaults.baseURL = u();
5291
+ function h2({ live: c = null, sandbox: g = null }) {
5292
+ c && (e2.apiEndpoints.live = c), g && (e2.apiEndpoints.sandbox = g), t2.defaults.baseURL = u();
5373
5293
  }
5374
- function M2(c, { thenDelegate: i, catchDelegate: g = () => {
5294
+ function K2(c, { thenDelegate: g, catchDelegate: m2 = () => {
5375
5295
  } }) {
5376
- return W$1(c) && t2.interceptors[R[c]].use(
5377
- i,
5378
- g
5296
+ return H$1(c) && t2.interceptors[k$1[c]].use(
5297
+ g,
5298
+ m2
5379
5299
  );
5380
5300
  }
5381
- function O2(c, i) {
5382
- return W$1(c) && t2.interceptors[R[c]].eject(i);
5301
+ function N2(c, g) {
5302
+ return H$1(c) && t2.interceptors[k$1[c]].eject(g);
5383
5303
  }
5384
- function X2({ thenDelegate: c, catchDelegate: i = () => {
5304
+ function st2({ thenDelegate: c, catchDelegate: g = () => {
5385
5305
  } }) {
5386
- return M2(R.request, {
5306
+ return K2(k$1.request, {
5387
5307
  thenDelegate: c,
5388
- catchDelegate: i
5308
+ catchDelegate: g
5389
5309
  });
5390
5310
  }
5391
- function Z2(c) {
5392
- O2(R.request, c);
5311
+ function rt2(c) {
5312
+ N2(k$1.request, c);
5393
5313
  }
5394
- function _2({
5314
+ function nt2({
5395
5315
  thenDelegate: c,
5396
- catchDelegate: i = () => {
5316
+ catchDelegate: g = () => {
5397
5317
  }
5398
5318
  }) {
5399
- return M2(R.response, {
5319
+ return K2(k$1.response, {
5400
5320
  thenDelegate: c,
5401
- catchDelegate: i
5321
+ catchDelegate: g
5402
5322
  });
5403
5323
  }
5404
- function H2(c) {
5405
- O2(R.response, c);
5324
+ function ut2(c) {
5325
+ N2(k$1.response, c);
5406
5326
  }
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() {
5327
+ function R({ request: c, isCollection: g, config: m2 }) {
5328
+ const p = z2(m2), { id: b, cancelToken: $t2 } = q$1.save();
5329
+ p.cancelToken = $t2;
5330
+ const W2 = (async function() {
5411
5331
  try {
5412
- const v = await c(m2);
5413
- return tt2({
5414
- response: v,
5415
- isCollection: i,
5416
- config: m2
5332
+ const d = await c(p);
5333
+ return ot2({
5334
+ response: d,
5335
+ isCollection: g,
5336
+ config: p
5417
5337
  });
5418
- } catch (v) {
5419
- return F2({ error: v });
5338
+ } catch (d) {
5339
+ return L2({ error: d });
5420
5340
  } finally {
5421
- k$1.deleteById(h2);
5341
+ q$1.deleteById(b);
5422
5342
  }
5423
- }();
5424
- return z2.cancel = (v) => T.cancelById(h2, v), z2;
5343
+ })();
5344
+ return W2.cancel = (d) => I$1.cancelById(b, d), W2;
5425
5345
  }
5426
- function tt2({ response: c, isCollection: i, config: g }) {
5427
- return i ? new at$1(c, g) : new G$1(c, g);
5346
+ function ot2({ response: c, isCollection: g, config: m2 }) {
5347
+ return g ? new yt$1(c, m2) : new tt$1(c, m2);
5428
5348
  }
5429
- function F2({ error: c }) {
5349
+ function L2({ error: c }) {
5430
5350
  if (axios.isCancel(c))
5431
- throw new $$1.RebillyCanceledError(c);
5351
+ throw new y.RebillyCanceledError(c);
5432
5352
  if (c.response)
5433
5353
  switch (Number(c.response.status)) {
5434
5354
  case 401:
5435
- throw new $$1.RebillyForbiddenError(c);
5355
+ throw new y.RebillyForbiddenError(c);
5436
5356
  case 404:
5437
- throw new $$1.RebillyNotFoundError(c);
5357
+ throw new y.RebillyNotFoundError(c);
5438
5358
  case 405:
5439
- throw new $$1.RebillyMethodNotAllowedError(c);
5359
+ throw new y.RebillyMethodNotAllowedError(c);
5440
5360
  case 409:
5441
- throw new $$1.RebillyConflictError(c);
5361
+ throw new y.RebillyConflictError(c);
5442
5362
  case 422:
5443
- throw new $$1.RebillyValidationError(c);
5363
+ throw new y.RebillyValidationError(c);
5444
5364
  default:
5445
- throw new $$1.RebillyRequestError(c);
5365
+ throw new y.RebillyRequestError(c);
5446
5366
  }
5447
- throw c.code === "ECONNABORTED" ? new $$1.RebillyTimeoutError(c) : new $$1.RebillyRequestError(c);
5367
+ throw c.code === "ECONNABORTED" ? new y.RebillyTimeoutError(c) : new y.RebillyRequestError(c);
5448
5368
  }
5449
- function et2(c) {
5369
+ function lt2(c) {
5450
5370
  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;
5371
+ (g) => c.params[g] !== null && c.params[g] !== ""
5372
+ ).reduce((g, m2) => (g[m2] = c.params[m2], g), {})), c;
5453
5373
  }
5454
- function B2(c = {}) {
5455
- return { ...et2(c) };
5374
+ function z2(c = {}) {
5375
+ return { ...lt2(c) };
5456
5376
  }
5457
- function K2(c, i = {}) {
5458
- return A2({
5459
- request: (g) => t2.get(c, g),
5460
- config: { params: i }
5377
+ function U2(c, g = {}) {
5378
+ return R({
5379
+ request: (m2) => t2.get(c, m2),
5380
+ config: { params: g }
5461
5381
  });
5462
5382
  }
5463
- function st2(c, i) {
5464
- return A2({
5465
- request: (g) => t2.get(c, g),
5466
- config: { params: i },
5383
+ function ct2(c, g) {
5384
+ return R({
5385
+ request: (m2) => t2.get(c, m2),
5386
+ config: { params: g },
5467
5387
  isCollection: true
5468
5388
  });
5469
5389
  }
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
5390
+ function V2(c, g, m2 = {}) {
5391
+ let p = {};
5392
+ 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({
5393
+ request: (b) => t2.post(c, g, b),
5394
+ config: p
5475
5395
  });
5476
5396
  }
5477
- function L2(c, i, g = {}) {
5478
- return A2({
5479
- request: (m2) => t2.put(c, i, m2),
5480
- config: { params: g }
5397
+ function J2(c, g, m2 = {}) {
5398
+ return R({
5399
+ request: (p) => t2.put(c, g, p),
5400
+ config: { params: m2 }
5481
5401
  });
5482
5402
  }
5483
- function rt2(c, i) {
5484
- return A2({
5485
- request: (g) => t2.patch(c, i, g),
5403
+ function it2(c, g) {
5404
+ return R({
5405
+ request: (m2) => t2.patch(c, g, m2),
5486
5406
  config: {}
5487
5407
  });
5488
5408
  }
5489
- function nt2(c) {
5490
- return A2({
5491
- request: (i) => t2.delete(c, i),
5409
+ function gt2(c) {
5410
+ return R({
5411
+ request: (g) => t2.delete(c, g),
5492
5412
  config: {}
5493
5413
  });
5494
5414
  }
5495
- function ut2(c, i) {
5496
- return A2({
5497
- request: (g) => t2.delete(c, g),
5498
- config: { data: { ...i } }
5415
+ function at2(c, g) {
5416
+ return R({
5417
+ request: (m2) => t2.delete(c, m2),
5418
+ config: { data: { ...g } }
5499
5419
  });
5500
5420
  }
5501
- async function ot2(c, i, g, m2 = {}) {
5502
- if (i === "")
5503
- return N2(c, g, { params: m2 });
5421
+ async function mt2(c, g, m2, p = {}) {
5422
+ if (g === "")
5423
+ return V2(c, m2, { params: p });
5504
5424
  try {
5505
- if ((await K2(c)).response.status === 200)
5506
- throw new $$1.RebillyConflictError({
5425
+ if ((await U2(c)).response.status === 200)
5426
+ throw new y.RebillyConflictError({
5507
5427
  message: "A resource already exists with this ID. Please use a different ID."
5508
5428
  });
5509
- } catch (h2) {
5510
- if (h2.name === "RebillyNotFoundError")
5511
- return L2(c, g, m2);
5512
- throw h2;
5429
+ } catch (b) {
5430
+ if (b.name === "RebillyNotFoundError")
5431
+ return J2(c, m2, p);
5432
+ throw b;
5513
5433
  }
5514
5434
  }
5515
- async function lt2(c, i) {
5516
- const g = B2(i);
5435
+ async function ft2(c, g) {
5436
+ const m2 = z2(g);
5517
5437
  try {
5518
- const m2 = await t2.get(c, g);
5519
- return new mt$1(m2, g);
5520
- } catch (m2) {
5521
- return F2({ error: m2 });
5438
+ const p = await t2.get(c, m2);
5439
+ return new At$1(p, m2);
5440
+ } catch (p) {
5441
+ return L2({ error: p });
5522
5442
  }
5523
5443
  }
5524
5444
  return {
5525
5445
  getInstance: r2,
5526
- addRequestInterceptor: X2,
5527
- removeRequestInterceptor: Z2,
5528
- addResponseInterceptor: _2,
5529
- removeResponseInterceptor: H2,
5530
- setTimeout: a,
5531
- setProxyAgent: I2,
5446
+ addRequestInterceptor: st2,
5447
+ removeRequestInterceptor: rt2,
5448
+ addResponseInterceptor: nt2,
5449
+ removeResponseInterceptor: ut2,
5450
+ setTimeout: i,
5451
+ setProxyAgent: $2,
5532
5452
  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
5453
+ setPublishableKey: a,
5454
+ setEndpoints: h2,
5455
+ get: U2,
5456
+ getAll: ct2,
5457
+ post: V2,
5458
+ put: J2,
5459
+ patch: it2,
5460
+ delete: gt2,
5461
+ deleteAll: at2,
5462
+ create: mt2,
5463
+ download: ft2
5544
5464
  };
5545
5465
  }
5546
- function _t$1({ apiHandler: e2 }) {
5466
+ function Ft$1({ apiHandler: e2 }) {
5547
5467
  return {
5548
5468
  /**
5549
5469
  * @param { rebilly.GetAccountRegistrationSettingsCollectionRequest } request
@@ -5577,14 +5497,14 @@ function _t$1({ apiHandler: e2 }) {
5577
5497
  }
5578
5498
  };
5579
5499
  }
5580
- function Ht$1({ apiHandler: e2 }) {
5500
+ function Bt$1({ apiHandler: e2 }) {
5581
5501
  return {
5582
5502
  forgotPassword({ data: t2 }) {
5583
5503
  return e2.post("forgot-password", t2, { authenticate: false });
5584
5504
  }
5585
5505
  };
5586
5506
  }
5587
- function te$1({ apiHandler: e2 }) {
5507
+ function Kt$1({ apiHandler: e2 }) {
5588
5508
  return {
5589
5509
  /**
5590
5510
  * @param { rebilly.GetAllowlistCollectionRequest } request
@@ -5613,7 +5533,7 @@ function te$1({ apiHandler: e2 }) {
5613
5533
  }
5614
5534
  };
5615
5535
  }
5616
- function ee$1({ apiHandler: e2 }) {
5536
+ function Nt$1({ apiHandler: e2 }) {
5617
5537
  return {
5618
5538
  /**
5619
5539
  * @param { rebilly.GetAmlCheckCollectionRequest } request
@@ -5646,7 +5566,7 @@ function ee$1({ apiHandler: e2 }) {
5646
5566
  }
5647
5567
  };
5648
5568
  }
5649
- function se$1({ apiHandler: e2 }) {
5569
+ function Lt$1({ apiHandler: e2 }) {
5650
5570
  return {
5651
5571
  /**
5652
5572
  * @returns { rebilly.GetAmlSettingsResponsePromise } response
@@ -5662,7 +5582,7 @@ function se$1({ apiHandler: e2 }) {
5662
5582
  }
5663
5583
  };
5664
5584
  }
5665
- function re$1({ apiHandler: e2 }) {
5585
+ function zt$1({ apiHandler: e2 }) {
5666
5586
  return {
5667
5587
  /**
5668
5588
  * @param { rebilly.GetApiKeyCollectionRequest } request
@@ -5696,7 +5616,7 @@ function re$1({ apiHandler: e2 }) {
5696
5616
  }
5697
5617
  };
5698
5618
  }
5699
- function ne$1({ apiHandler: e2 }) {
5619
+ function Ut$1({ apiHandler: e2 }) {
5700
5620
  return {
5701
5621
  /**
5702
5622
  * @returns { rebilly.GetApplicationInstanceResponsePromise } response
@@ -5732,7 +5652,7 @@ function ne$1({ apiHandler: e2 }) {
5732
5652
  }
5733
5653
  };
5734
5654
  }
5735
- function ue$1({ apiHandler: e2 }) {
5655
+ function Vt$1({ apiHandler: e2 }) {
5736
5656
  return {
5737
5657
  /**
5738
5658
  * @param { rebilly.GetApplicationCollectionRequest } request
@@ -5747,8 +5667,8 @@ function ue$1({ apiHandler: e2 }) {
5747
5667
  fields: o2 = null,
5748
5668
  sort: l = null
5749
5669
  } = {}) {
5750
- const a = { limit: t2, offset: s, filter: r2, q: n2, expand: u, fields: o2, sort: l };
5751
- return e2.getAll("applications", a);
5670
+ const i = { limit: t2, offset: s, filter: r2, q: n2, expand: u, fields: o2, sort: l };
5671
+ return e2.getAll("applications", i);
5752
5672
  },
5753
5673
  create({ data: t2 }) {
5754
5674
  return e2.post("applications", t2);
@@ -5775,7 +5695,7 @@ function ue$1({ apiHandler: e2 }) {
5775
5695
  }
5776
5696
  };
5777
5697
  }
5778
- function oe$1({ apiHandler: e2 }) {
5698
+ function Jt$1({ apiHandler: e2 }) {
5779
5699
  return {
5780
5700
  /**
5781
5701
  * @param { rebilly.GetBalanceTransactionCollectionRequest } request
@@ -5793,7 +5713,7 @@ function oe$1({ apiHandler: e2 }) {
5793
5713
  }
5794
5714
  };
5795
5715
  }
5796
- function le$1({ apiHandler: e2 }) {
5716
+ function Wt$1({ apiHandler: e2 }) {
5797
5717
  return {
5798
5718
  /**
5799
5719
  * @param { rebilly.GetBillingPortalCollectionRequest } request
@@ -5833,7 +5753,7 @@ function le$1({ apiHandler: e2 }) {
5833
5753
  }
5834
5754
  };
5835
5755
  }
5836
- function ce$1({ apiHandler: e2 }) {
5756
+ function Gt$1({ apiHandler: e2 }) {
5837
5757
  return {
5838
5758
  /**
5839
5759
  * @param { rebilly.GetBlocklistCollectionRequest } request
@@ -5867,7 +5787,7 @@ function ce$1({ apiHandler: e2 }) {
5867
5787
  }
5868
5788
  };
5869
5789
  }
5870
- function ie$1({ apiHandler: e2 }) {
5790
+ function Yt$1({ apiHandler: e2 }) {
5871
5791
  return {
5872
5792
  /**
5873
5793
  * @param { rebilly.GetBroadcastMessageCollectionRequest } request
@@ -5894,7 +5814,7 @@ function ie$1({ apiHandler: e2 }) {
5894
5814
  }
5895
5815
  };
5896
5816
  }
5897
- function ge({ apiHandler: e2 }) {
5817
+ function Qt$1({ apiHandler: e2 }) {
5898
5818
  return {
5899
5819
  create({ data: t2 }) {
5900
5820
  return e2.post("cashiers", t2);
@@ -5907,7 +5827,7 @@ function ge({ apiHandler: e2 }) {
5907
5827
  }
5908
5828
  };
5909
5829
  }
5910
- function ae$1({ apiHandler: e2 }) {
5830
+ function Xt$1({ apiHandler: e2 }) {
5911
5831
  return {
5912
5832
  /**
5913
5833
  * @param { rebilly.GetCheckoutFormCollectionRequest } request
@@ -5947,7 +5867,7 @@ function ae$1({ apiHandler: e2 }) {
5947
5867
  }
5948
5868
  };
5949
5869
  }
5950
- function me$1({ apiHandler: e2 }) {
5870
+ function Zt$1({ apiHandler: e2 }) {
5951
5871
  return {
5952
5872
  /**
5953
5873
  * @param { rebilly.GetCouponRedemptionCollectionRequest } request
@@ -6013,8 +5933,8 @@ function me$1({ apiHandler: e2 }) {
6013
5933
  }
6014
5934
  };
6015
5935
  }
6016
- const w = { Accept: "application/pdf" };
6017
- function fe$1({ apiHandler: e2 }) {
5936
+ const v = { Accept: "application/pdf" };
5937
+ function _t$1({ apiHandler: e2 }) {
6018
5938
  return {
6019
5939
  /**
6020
5940
  * @param { rebilly.GetCreditMemoCollectionRequest } request
@@ -6088,14 +6008,14 @@ function fe$1({ apiHandler: e2 }) {
6088
6008
  },
6089
6009
  downloadPDF({ id: t2 }) {
6090
6010
  const s = {
6091
- headers: w,
6011
+ headers: v,
6092
6012
  responseType: "arraybuffer"
6093
6013
  };
6094
6014
  return e2.download(`credit-memos/${t2}`, s);
6095
6015
  }
6096
6016
  };
6097
6017
  }
6098
- function $e$1({ apiHandler: e2 }) {
6018
+ function Ht$1({ apiHandler: e2 }) {
6099
6019
  return {
6100
6020
  /**
6101
6021
  * @param { rebilly.GetCustomDomainCollectionRequest } request
@@ -6125,7 +6045,7 @@ function $e$1({ apiHandler: e2 }) {
6125
6045
  }
6126
6046
  };
6127
6047
  }
6128
- function pe$1({ apiHandler: e2 }) {
6048
+ function te$1({ apiHandler: e2 }) {
6129
6049
  return {
6130
6050
  /**
6131
6051
  * @returns { rebilly.GetCustomFieldCollectionResponsePromise } response
@@ -6154,7 +6074,7 @@ function pe$1({ apiHandler: e2 }) {
6154
6074
  }
6155
6075
  };
6156
6076
  }
6157
- function he$1({ apiHandler: e2 }) {
6077
+ function ee$1({ apiHandler: e2 }) {
6158
6078
  return {
6159
6079
  /**
6160
6080
  * @returns { rebilly.GetAuthenticationOptionResponsePromise } response
@@ -6243,7 +6163,7 @@ function he$1({ apiHandler: e2 }) {
6243
6163
  }
6244
6164
  };
6245
6165
  }
6246
- function ye$1({ apiHandler: e2 }) {
6166
+ function se$1({ apiHandler: e2 }) {
6247
6167
  return {
6248
6168
  /**
6249
6169
  * @param { rebilly.GetCustomerCollectionRequest } request
@@ -6258,8 +6178,8 @@ function ye$1({ apiHandler: e2 }) {
6258
6178
  fields: o2 = null,
6259
6179
  sort: l = null
6260
6180
  } = {}) {
6261
- const a = { limit: t2, offset: s, filter: r2, q: n2, expand: u, fields: o2, sort: l };
6262
- return e2.getAll("customers", a);
6181
+ const i = { limit: t2, offset: s, filter: r2, q: n2, expand: u, fields: o2, sort: l };
6182
+ return e2.getAll("customers", i);
6263
6183
  },
6264
6184
  /**
6265
6185
  * @param { rebilly.CreateCustomerRequest } request
@@ -6344,7 +6264,7 @@ function ye$1({ apiHandler: e2 }) {
6344
6264
  }
6345
6265
  };
6346
6266
  }
6347
- function Ae$1({ apiHandler: e2 }) {
6267
+ function re$1({ apiHandler: e2 }) {
6348
6268
  return {
6349
6269
  /**
6350
6270
  * @param { rebilly.GetDepositCustomPropertySetCollectionRequest } request
@@ -6378,7 +6298,7 @@ function Ae$1({ apiHandler: e2 }) {
6378
6298
  }
6379
6299
  };
6380
6300
  }
6381
- function be({ apiHandler: e2 }) {
6301
+ function ne$1({ apiHandler: e2 }) {
6382
6302
  return {
6383
6303
  /**
6384
6304
  * @param { rebilly.GetDepositRequestCollectionRequest } request
@@ -6406,7 +6326,7 @@ function be({ apiHandler: e2 }) {
6406
6326
  }
6407
6327
  };
6408
6328
  }
6409
- function Re$1({ apiHandler: e2 }) {
6329
+ function ue$1({ apiHandler: e2 }) {
6410
6330
  return {
6411
6331
  /**
6412
6332
  * @param { rebilly.GetDepositStrategyCollectionRequest } request
@@ -6440,7 +6360,7 @@ function Re$1({ apiHandler: e2 }) {
6440
6360
  }
6441
6361
  };
6442
6362
  }
6443
- function we$1({ apiHandler: e2 }) {
6363
+ function oe$1({ apiHandler: e2 }) {
6444
6364
  return {
6445
6365
  validate({ data: t2 }) {
6446
6366
  return e2.post("digital-wallets/validation", t2);
@@ -6450,7 +6370,7 @@ function we$1({ apiHandler: e2 }) {
6450
6370
  }
6451
6371
  };
6452
6372
  }
6453
- function ke$1({ apiHandler: e2 }) {
6373
+ function le$1({ apiHandler: e2 }) {
6454
6374
  return {
6455
6375
  /**
6456
6376
  * @param { rebilly.GetDisputeCollectionRequest } request
@@ -6490,7 +6410,7 @@ function ke$1({ apiHandler: e2 }) {
6490
6410
  }
6491
6411
  };
6492
6412
  }
6493
- function ve$1({ apiHandler: e2 }) {
6413
+ function ce$1({ apiHandler: e2 }) {
6494
6414
  return {
6495
6415
  /**
6496
6416
  * @returns { rebilly.PutEmailDeliverySettingsVerificationResponsePromise } response
@@ -6534,7 +6454,7 @@ function ve$1({ apiHandler: e2 }) {
6534
6454
  }
6535
6455
  };
6536
6456
  }
6537
- function qe$1({ apiHandler: e2 }) {
6457
+ function ie$1({ apiHandler: e2 }) {
6538
6458
  return {
6539
6459
  /**
6540
6460
  * @param { rebilly.GetEmailMessageCollectionRequest } request
@@ -6567,7 +6487,7 @@ function qe$1({ apiHandler: e2 }) {
6567
6487
  }
6568
6488
  };
6569
6489
  }
6570
- function Te$1({ apiHandler: e2 }) {
6490
+ function ge({ apiHandler: e2 }) {
6571
6491
  return {
6572
6492
  /**
6573
6493
  * @param { rebilly.GetEmailNotificationCollectionRequest } request
@@ -6579,7 +6499,7 @@ function Te$1({ apiHandler: e2 }) {
6579
6499
  }
6580
6500
  };
6581
6501
  }
6582
- function de$1({ apiHandler: e2 }) {
6502
+ function ae$1({ apiHandler: e2 }) {
6583
6503
  return {
6584
6504
  /**
6585
6505
  * @param { rebilly.GetEventCollectionRequest } request
@@ -6652,8 +6572,8 @@ function de$1({ apiHandler: e2 }) {
6652
6572
  sort: o2 = null,
6653
6573
  fields: l = null
6654
6574
  }) {
6655
- const a = { limit: s, offset: r2, filter: n2, q: u, sort: o2, fields: l };
6656
- return e2.getAll(`events/${t2}/rules/history`, a);
6575
+ const i = { limit: s, offset: r2, filter: n2, q: u, sort: o2, fields: l };
6576
+ return e2.getAll(`events/${t2}/rules/history`, i);
6657
6577
  },
6658
6578
  /**
6659
6579
  * @returns { rebilly.GetEventRuleHistoryResponsePromise } response
@@ -6687,8 +6607,8 @@ function de$1({ apiHandler: e2 }) {
6687
6607
  sort: o2 = null,
6688
6608
  fields: l = null
6689
6609
  }) {
6690
- const a = { limit: s, offset: r2, filter: n2, q: u, sort: o2, fields: l };
6691
- return e2.getAll(`events/${t2}/rules/drafts`, a);
6610
+ const i = { limit: s, offset: r2, filter: n2, q: u, sort: o2, fields: l };
6611
+ return e2.getAll(`events/${t2}/rules/drafts`, i);
6692
6612
  },
6693
6613
  createDraftRuleset({ eventType: t2, data: s }) {
6694
6614
  return e2.post(`events/${t2}/rules/drafts`, s);
@@ -6711,7 +6631,7 @@ function de$1({ apiHandler: e2 }) {
6711
6631
  }
6712
6632
  };
6713
6633
  }
6714
- function Ie$1({ apiHandler: e2 }) {
6634
+ function me$1({ apiHandler: e2 }) {
6715
6635
  return {
6716
6636
  /**
6717
6637
  * @returns { rebilly.GetExternalIdentifierResponsePromise } response
@@ -6742,7 +6662,7 @@ function Ie$1({ apiHandler: e2 }) {
6742
6662
  }
6743
6663
  };
6744
6664
  }
6745
- function Se$1({ apiHandler: e2 }) {
6665
+ function fe$1({ apiHandler: e2 }) {
6746
6666
  return {
6747
6667
  /**
6748
6668
  * @returns { rebilly.GetExternalServiceSettingsResponsePromise } response
@@ -6758,7 +6678,7 @@ function Se$1({ apiHandler: e2 }) {
6758
6678
  }
6759
6679
  };
6760
6680
  }
6761
- function Ee$1({ apiHandler: e2 }) {
6681
+ function $e$1({ apiHandler: e2 }) {
6762
6682
  return {
6763
6683
  /**
6764
6684
  * @param { rebilly.GetFeeCollectionRequest } request
@@ -6795,7 +6715,7 @@ function Ee$1({ apiHandler: e2 }) {
6795
6715
  }
6796
6716
  };
6797
6717
  }
6798
- function xe$1({ apiHandler: e2 }) {
6718
+ function pe$1({ apiHandler: e2 }) {
6799
6719
  return {
6800
6720
  /**
6801
6721
  * @param { rebilly.GetAttachmentCollectionRequest } request
@@ -6810,8 +6730,8 @@ function xe$1({ apiHandler: e2 }) {
6810
6730
  fields: o2 = null,
6811
6731
  sort: l = null
6812
6732
  } = {}) {
6813
- const a = { limit: t2, offset: s, filter: r2, q: n2, expand: u, fields: o2, sort: l };
6814
- return e2.getAll("attachments", a);
6733
+ const i = { limit: t2, offset: s, filter: r2, q: n2, expand: u, fields: o2, sort: l };
6734
+ return e2.getAll("attachments", i);
6815
6735
  },
6816
6736
  /**
6817
6737
  * @returns { rebilly.PostAttachmentResponsePromise } response
@@ -6883,10 +6803,10 @@ function xe$1({ apiHandler: e2 }) {
6883
6803
  const u = (async () => {
6884
6804
  const o2 = this.getAllAttachments(s);
6885
6805
  r2.push(o2);
6886
- const a = (await o2).items.map(
6887
- (y) => this.detach({ id: y.fields.id })
6806
+ const i = (await o2).items.map(
6807
+ (a) => this.detach({ id: a.fields.id })
6888
6808
  );
6889
- r2 = [...r2, a], await Promise.all(a);
6809
+ r2 = [...r2, i], await Promise.all(i);
6890
6810
  const f = e2.delete(`files/${t2}`);
6891
6811
  return r2.push(f), f;
6892
6812
  })();
@@ -6904,8 +6824,8 @@ function xe$1({ apiHandler: e2 }) {
6904
6824
  description: s.description,
6905
6825
  tags: s.tags,
6906
6826
  url: ""
6907
- }, a = this.update({ id: o2.fields.id, data: l });
6908
- return r2.push(a), a;
6827
+ }, i = this.update({ id: o2.fields.id, data: l });
6828
+ return r2.push(i), i;
6909
6829
  })();
6910
6830
  return u.cancel = () => {
6911
6831
  r2.forEach((o2) => o2.cancel());
@@ -6913,7 +6833,7 @@ function xe$1({ apiHandler: e2 }) {
6913
6833
  }
6914
6834
  };
6915
6835
  }
6916
- function Pe$1({ apiHandler: e2 }) {
6836
+ function he$1({ apiHandler: e2 }) {
6917
6837
  return {
6918
6838
  /**
6919
6839
  * @param { rebilly.GetGatewayAccountCollectionRequest } request
@@ -7069,7 +6989,7 @@ function Pe$1({ apiHandler: e2 }) {
7069
6989
  }
7070
6990
  };
7071
6991
  }
7072
- function Ce$1({ apiHandler: e2 }) {
6992
+ function ye$1({ apiHandler: e2 }) {
7073
6993
  return {
7074
6994
  /**
7075
6995
  * @param { rebilly.GetIntegrationCollectionRequest } request
@@ -7087,7 +7007,7 @@ function Ce$1({ apiHandler: e2 }) {
7087
7007
  }
7088
7008
  };
7089
7009
  }
7090
- function De$1({ apiHandler: e2 }) {
7010
+ function Ae$1({ apiHandler: e2 }) {
7091
7011
  return {
7092
7012
  /**
7093
7013
  * @param { rebilly.GetInvoiceCollectionRequest } request
@@ -7211,14 +7131,14 @@ function De$1({ apiHandler: e2 }) {
7211
7131
  },
7212
7132
  downloadPDF({ id: t2 }) {
7213
7133
  const s = {
7214
- headers: w,
7134
+ headers: v,
7215
7135
  responseType: "arraybuffer"
7216
7136
  };
7217
7137
  return e2.download(`invoices/${t2}`, s);
7218
7138
  }
7219
7139
  };
7220
7140
  }
7221
- function je$1({ apiHandler: e2 }) {
7141
+ function be({ apiHandler: e2 }) {
7222
7142
  return {
7223
7143
  /**
7224
7144
  * @param { rebilly.GetJournalAccountCollectionRequest } request
@@ -7254,7 +7174,7 @@ function je$1({ apiHandler: e2 }) {
7254
7174
  }
7255
7175
  };
7256
7176
  }
7257
- function Me$1({ apiHandler: e2 }) {
7177
+ function Re$1({ apiHandler: e2 }) {
7258
7178
  return {
7259
7179
  /**
7260
7180
  * @param { rebilly.GetJournalEntryCollectionRequest } request
@@ -7290,7 +7210,7 @@ function Me$1({ apiHandler: e2 }) {
7290
7210
  }
7291
7211
  };
7292
7212
  }
7293
- function Oe$1({ apiHandler: e2 }) {
7213
+ function we$1({ apiHandler: e2 }) {
7294
7214
  return {
7295
7215
  /**
7296
7216
  * @param { rebilly.GetJournalRecordCollectionRequest } request
@@ -7330,7 +7250,7 @@ function Oe$1({ apiHandler: e2 }) {
7330
7250
  }
7331
7251
  };
7332
7252
  }
7333
- function Fe$1({ apiHandler: e2 }) {
7253
+ function ke$1({ apiHandler: e2 }) {
7334
7254
  return {
7335
7255
  /**
7336
7256
  * @param { rebilly.GetKycDocumentCollectionRequest } request
@@ -7385,7 +7305,7 @@ function Fe$1({ apiHandler: e2 }) {
7385
7305
  }
7386
7306
  };
7387
7307
  }
7388
- function Be$1({ apiHandler: e2 }) {
7308
+ function ve$1({ apiHandler: e2 }) {
7389
7309
  return {
7390
7310
  /**
7391
7311
  * @param { rebilly.GetKycRequestCollectionRequest } request
@@ -7418,7 +7338,7 @@ function Be$1({ apiHandler: e2 }) {
7418
7338
  }
7419
7339
  };
7420
7340
  }
7421
- function Ke$1({ apiHandler: e2 }) {
7341
+ function qe$1({ apiHandler: e2 }) {
7422
7342
  return {
7423
7343
  /**
7424
7344
  * @returns { rebilly.GetKycSettingsResponsePromise } response
@@ -7434,7 +7354,7 @@ function Ke$1({ apiHandler: e2 }) {
7434
7354
  }
7435
7355
  };
7436
7356
  }
7437
- function Ne$1({ apiHandler: e2 }) {
7357
+ function de$1({ apiHandler: e2 }) {
7438
7358
  return {
7439
7359
  /**
7440
7360
  * @param { rebilly.GetListCollectionRequest } request
@@ -7481,7 +7401,7 @@ function Ne$1({ apiHandler: e2 }) {
7481
7401
  }
7482
7402
  };
7483
7403
  }
7484
- function Le$1({ apiHandler: e2 }) {
7404
+ function Te$1({ apiHandler: e2 }) {
7485
7405
  return {
7486
7406
  /**
7487
7407
  * @param { rebilly.GetMembershipCollectionRequest } request
@@ -7508,7 +7428,7 @@ function Le$1({ apiHandler: e2 }) {
7508
7428
  }
7509
7429
  };
7510
7430
  }
7511
- function ze$1({ apiHandler: e2 }) {
7431
+ function Ie$1({ apiHandler: e2 }) {
7512
7432
  return {
7513
7433
  /**
7514
7434
  * @param { rebilly.GetOrderCancellationCollectionRequest } request
@@ -7545,7 +7465,7 @@ function ze$1({ apiHandler: e2 }) {
7545
7465
  }
7546
7466
  };
7547
7467
  }
7548
- function Ue$1({ apiHandler: e2 }) {
7468
+ function Se$1({ apiHandler: e2 }) {
7549
7469
  return {
7550
7470
  /**
7551
7471
  * @param { rebilly.GetOrderPauseCollectionRequest } request
@@ -7579,7 +7499,7 @@ function Ue$1({ apiHandler: e2 }) {
7579
7499
  }
7580
7500
  };
7581
7501
  }
7582
- function Ve$1({ apiHandler: e2 }) {
7502
+ function Ee$1({ apiHandler: e2 }) {
7583
7503
  return {
7584
7504
  /**
7585
7505
  * @param { rebilly.GetOrderReactivationCollectionRequest } request
@@ -7600,7 +7520,7 @@ function Ve$1({ apiHandler: e2 }) {
7600
7520
  }
7601
7521
  };
7602
7522
  }
7603
- function Je$1({ apiHandler: e2 }) {
7523
+ function xe$1({ apiHandler: e2 }) {
7604
7524
  return {
7605
7525
  /**
7606
7526
  * @param { rebilly.GetOrderCollectionRequest } request
@@ -7664,7 +7584,7 @@ function Je$1({ apiHandler: e2 }) {
7664
7584
  }
7665
7585
  };
7666
7586
  }
7667
- function We$1({ apiHandler: e2 }) {
7587
+ function Pe$1({ apiHandler: e2 }) {
7668
7588
  return {
7669
7589
  /**
7670
7590
  * @param { rebilly.GetOrganizationExportCollectionRequest } request
@@ -7691,7 +7611,7 @@ function We$1({ apiHandler: e2 }) {
7691
7611
  }
7692
7612
  };
7693
7613
  }
7694
- function Ge$1({ apiHandler: e2 }) {
7614
+ function Ce$1({ apiHandler: e2 }) {
7695
7615
  return {
7696
7616
  /**
7697
7617
  * @param { rebilly.GetOrganizationCollectionRequest } request
@@ -7721,7 +7641,7 @@ function Ge$1({ apiHandler: e2 }) {
7721
7641
  }
7722
7642
  };
7723
7643
  }
7724
- function Ye$1({ apiHandler: e2 }) {
7644
+ function De$1({ apiHandler: e2 }) {
7725
7645
  return {
7726
7646
  /**
7727
7647
  * @param { rebilly.GetPaymentCardBankNameCollectionRequest } request
@@ -7733,7 +7653,7 @@ function Ye$1({ apiHandler: e2 }) {
7733
7653
  }
7734
7654
  };
7735
7655
  }
7736
- function Qe$1({ apiHandler: e2 }) {
7656
+ function je$1({ apiHandler: e2 }) {
7737
7657
  return {
7738
7658
  /**
7739
7659
  * @param { rebilly.GetPaymentInstrumentCollectionRequest } request
@@ -7770,7 +7690,7 @@ function Qe$1({ apiHandler: e2 }) {
7770
7690
  }
7771
7691
  };
7772
7692
  }
7773
- function Xe$1({ apiHandler: e2 }) {
7693
+ function Me$1({ apiHandler: e2 }) {
7774
7694
  return {
7775
7695
  /**
7776
7696
  * @param { rebilly.GetPaymentMethodCollectionRequest } request
@@ -7788,7 +7708,7 @@ function Xe$1({ apiHandler: e2 }) {
7788
7708
  }
7789
7709
  };
7790
7710
  }
7791
- function Ze$1({ apiHandler: e2 }) {
7711
+ function Oe$1({ apiHandler: e2 }) {
7792
7712
  return {
7793
7713
  /**
7794
7714
  * @param { rebilly.GetTokenCollectionRequest } request
@@ -7809,7 +7729,7 @@ function Ze$1({ apiHandler: e2 }) {
7809
7729
  }
7810
7730
  };
7811
7731
  }
7812
- function _e$1({ apiHandler: e2 }) {
7732
+ function Fe$1({ apiHandler: e2 }) {
7813
7733
  return {
7814
7734
  /**
7815
7735
  * @param { rebilly.GetPayoutRequestAllocationCollectionRequest } request
@@ -7839,7 +7759,7 @@ function _e$1({ apiHandler: e2 }) {
7839
7759
  }
7840
7760
  };
7841
7761
  }
7842
- function He$1({ apiHandler: e2 }) {
7762
+ function Be$1({ apiHandler: e2 }) {
7843
7763
  return {
7844
7764
  /**
7845
7765
  * @param { rebilly.GetPayoutRequestBatchCollectionRequest } request
@@ -7879,7 +7799,7 @@ function He$1({ apiHandler: e2 }) {
7879
7799
  }
7880
7800
  };
7881
7801
  }
7882
- function ts({ apiHandler: e2 }) {
7802
+ function Ke$1({ apiHandler: e2 }) {
7883
7803
  return {
7884
7804
  /**
7885
7805
  * @param { rebilly.GetPayoutRequestCollectionRequest } request
@@ -7952,14 +7872,14 @@ function ts({ apiHandler: e2 }) {
7952
7872
  }
7953
7873
  };
7954
7874
  }
7955
- function es({ apiHandler: e2 }) {
7875
+ function Ne$1({ apiHandler: e2 }) {
7956
7876
  return {
7957
7877
  create({ data: t2 }) {
7958
7878
  return e2.post("payouts", t2);
7959
7879
  }
7960
7880
  };
7961
7881
  }
7962
- function ss({ apiHandler: e2 }) {
7882
+ function Le$1({ apiHandler: e2 }) {
7963
7883
  return {
7964
7884
  /**
7965
7885
  * @param { rebilly.GetPlanCollectionRequest } request
@@ -7999,7 +7919,7 @@ function ss({ apiHandler: e2 }) {
7999
7919
  }
8000
7920
  };
8001
7921
  }
8002
- function rs({ apiHandler: e2 }) {
7922
+ function ze$1({ apiHandler: e2 }) {
8003
7923
  return {
8004
7924
  order({ data: t2 }) {
8005
7925
  return e2.post("previews/orders", t2);
@@ -8012,7 +7932,7 @@ function rs({ apiHandler: e2 }) {
8012
7932
  }
8013
7933
  };
8014
7934
  }
8015
- function ns({ apiHandler: e2 }) {
7935
+ function Ue$1({ apiHandler: e2 }) {
8016
7936
  return {
8017
7937
  /**
8018
7938
  * @param { rebilly.GetProductCollectionRequest } request
@@ -8052,7 +7972,7 @@ function ns({ apiHandler: e2 }) {
8052
7972
  }
8053
7973
  };
8054
7974
  }
8055
- function us({ apiHandler: e2 }) {
7975
+ function Ve$1({ apiHandler: e2 }) {
8056
7976
  return {
8057
7977
  startPermissionsEmulation({ data: t2 }) {
8058
7978
  return e2.post("permissions-emulation", t2);
@@ -8105,14 +8025,14 @@ function us({ apiHandler: e2 }) {
8105
8025
  }
8106
8026
  };
8107
8027
  }
8108
- function os({ apiHandler: e2 }) {
8028
+ function Je$1({ apiHandler: e2 }) {
8109
8029
  return {
8110
8030
  readyToPay({ data: t2 }) {
8111
8031
  return e2.post("ready-to-pay", t2);
8112
8032
  }
8113
8033
  };
8114
8034
  }
8115
- function ls({ apiHandler: e2 }) {
8035
+ function We$1({ apiHandler: e2 }) {
8116
8036
  return {
8117
8037
  /**
8118
8038
  * @param { rebilly.GetQuoteCollectionRequest } request
@@ -8195,14 +8115,14 @@ function ls({ apiHandler: e2 }) {
8195
8115
  },
8196
8116
  downloadPDF({ id: t2 }) {
8197
8117
  const s = {
8198
- headers: w,
8118
+ headers: v,
8199
8119
  responseType: "arraybuffer"
8200
8120
  };
8201
8121
  return e2.download(`quotes/${t2}`, s);
8202
8122
  }
8203
8123
  };
8204
8124
  }
8205
- function cs({ apiHandler: e2 }) {
8125
+ function Ge$1({ apiHandler: e2 }) {
8206
8126
  return {
8207
8127
  /**
8208
8128
  * @returns { rebilly.GetExternalIdentifierResponsePromise } response
@@ -8233,7 +8153,7 @@ function cs({ apiHandler: e2 }) {
8233
8153
  }
8234
8154
  };
8235
8155
  }
8236
- function is({ apiHandler: e2 }) {
8156
+ function Ye$1({ apiHandler: e2 }) {
8237
8157
  return {
8238
8158
  /**
8239
8159
  * @returns { rebilly.GetRiskScoreRulesResponsePromise } response
@@ -8261,7 +8181,7 @@ function is({ apiHandler: e2 }) {
8261
8181
  }
8262
8182
  };
8263
8183
  }
8264
- function gs({ apiHandler: e2 }) {
8184
+ function Qe$1({ apiHandler: e2 }) {
8265
8185
  return {
8266
8186
  /**
8267
8187
  * @param { rebilly.GetRoleCollectionRequest } request
@@ -8303,7 +8223,7 @@ function gs({ apiHandler: e2 }) {
8303
8223
  }
8304
8224
  };
8305
8225
  }
8306
- function as({ apiHandler: e2 }) {
8226
+ function Xe$1({ apiHandler: e2 }) {
8307
8227
  return {
8308
8228
  /**
8309
8229
  * @returns { rebilly.GetSearchResponsePromise } response
@@ -8314,7 +8234,7 @@ function as({ apiHandler: e2 }) {
8314
8234
  }
8315
8235
  };
8316
8236
  }
8317
- function ms({ apiHandler: e2 }) {
8237
+ function Ze$1({ apiHandler: e2 }) {
8318
8238
  return {
8319
8239
  /**
8320
8240
  * @param { rebilly.GetGridSegmentCollectionRequest } request
@@ -8354,7 +8274,7 @@ function ms({ apiHandler: e2 }) {
8354
8274
  }
8355
8275
  };
8356
8276
  }
8357
- function fs({ apiHandler: e2 }) {
8277
+ function _e$1({ apiHandler: e2 }) {
8358
8278
  return {
8359
8279
  /**
8360
8280
  * @returns { rebilly.GetSendThroughAttributionCollectionResponsePromise } response
@@ -8364,7 +8284,7 @@ function fs({ apiHandler: e2 }) {
8364
8284
  }
8365
8285
  };
8366
8286
  }
8367
- function $s({ apiHandler: e2 }) {
8287
+ function He$1({ apiHandler: e2 }) {
8368
8288
  return {
8369
8289
  /**
8370
8290
  * @param { rebilly.GetServiceCredentialCollectionRequest } request
@@ -8405,9 +8325,9 @@ function $s({ apiHandler: e2 }) {
8405
8325
  filter: u = null,
8406
8326
  q: o2 = null,
8407
8327
  fields: l = null,
8408
- sort: a = null
8328
+ sort: i = null
8409
8329
  }) {
8410
- const f = { limit: r2, offset: n2, filter: u, q: o2, fields: l, sort: a };
8330
+ const f = { limit: r2, offset: n2, filter: u, q: o2, fields: l, sort: i };
8411
8331
  return e2.getAll(
8412
8332
  `service-credentials/${t2}/${s}/items`,
8413
8333
  f
@@ -8415,7 +8335,7 @@ function $s({ apiHandler: e2 }) {
8415
8335
  }
8416
8336
  };
8417
8337
  }
8418
- function ps({ apiHandler: e2 }) {
8338
+ function ts({ apiHandler: e2 }) {
8419
8339
  return {
8420
8340
  /**
8421
8341
  * @param { rebilly.GetShippingRateCollectionRequest } request
@@ -8455,7 +8375,7 @@ function ps({ apiHandler: e2 }) {
8455
8375
  }
8456
8376
  };
8457
8377
  }
8458
- function hs({ apiHandler: e2 }) {
8378
+ function es({ apiHandler: e2 }) {
8459
8379
  return {
8460
8380
  /**
8461
8381
  * @returns { rebilly.GetStatusResponsePromise } response
@@ -8465,7 +8385,7 @@ function hs({ apiHandler: e2 }) {
8465
8385
  }
8466
8386
  };
8467
8387
  }
8468
- function ys({ apiHandler: e2 }) {
8388
+ function ss({ apiHandler: e2 }) {
8469
8389
  return {
8470
8390
  /**
8471
8391
  * @param { rebilly.GetSubscriptionCancellationCollectionRequest } request
@@ -8496,7 +8416,7 @@ function ys({ apiHandler: e2 }) {
8496
8416
  }
8497
8417
  };
8498
8418
  }
8499
- function As({ apiHandler: e2 }) {
8419
+ function rs({ apiHandler: e2 }) {
8500
8420
  return {
8501
8421
  /**
8502
8422
  * @param { rebilly.GetSubscriptionPauseCollectionRequest } request
@@ -8530,7 +8450,7 @@ function As({ apiHandler: e2 }) {
8530
8450
  }
8531
8451
  };
8532
8452
  }
8533
- function bs({ apiHandler: e2 }) {
8453
+ function ns({ apiHandler: e2 }) {
8534
8454
  return {
8535
8455
  /**
8536
8456
  * @param { rebilly.GetSubscriptionReactivationCollectionRequest } request
@@ -8551,7 +8471,7 @@ function bs({ apiHandler: e2 }) {
8551
8471
  }
8552
8472
  };
8553
8473
  }
8554
- function Rs({ apiHandler: e2 }) {
8474
+ function us({ apiHandler: e2 }) {
8555
8475
  return {
8556
8476
  /**
8557
8477
  * @param { rebilly.GetSubscriptionCollectionRequest } request
@@ -8662,7 +8582,7 @@ function Rs({ apiHandler: e2 }) {
8662
8582
  }
8663
8583
  };
8664
8584
  }
8665
- function ws({ apiHandler: e2 }) {
8585
+ function os({ apiHandler: e2 }) {
8666
8586
  return {
8667
8587
  /**
8668
8588
  * @param { rebilly.GetTagCollectionRequest } request
@@ -8731,7 +8651,7 @@ function ws({ apiHandler: e2 }) {
8731
8651
  }
8732
8652
  };
8733
8653
  }
8734
- function ks({ apiHandler: e2 }) {
8654
+ function ls({ apiHandler: e2 }) {
8735
8655
  return {
8736
8656
  /**
8737
8657
  * @param { rebilly.GetTagRuleCollectionRequest } request
@@ -8771,7 +8691,7 @@ function ks({ apiHandler: e2 }) {
8771
8691
  }
8772
8692
  };
8773
8693
  }
8774
- function vs({ apiHandler: e2 }) {
8694
+ function cs({ apiHandler: e2 }) {
8775
8695
  return {
8776
8696
  /**
8777
8697
  * @param { rebilly.GetTrackingApiCollectionRequest } request
@@ -8853,7 +8773,7 @@ function vs({ apiHandler: e2 }) {
8853
8773
  }
8854
8774
  };
8855
8775
  }
8856
- function qs({ apiHandler: e2 }) {
8776
+ function is({ apiHandler: e2 }) {
8857
8777
  return {
8858
8778
  /**
8859
8779
  * @param { rebilly.GetTransactionCollectionRequest } request
@@ -8923,14 +8843,14 @@ function qs({ apiHandler: e2 }) {
8923
8843
  },
8924
8844
  downloadPDF({ id: t2 }) {
8925
8845
  const s = {
8926
- headers: w,
8846
+ headers: v,
8927
8847
  responseType: "arraybuffer"
8928
8848
  };
8929
8849
  return e2.download(`transactions/${t2}`, s);
8930
8850
  }
8931
8851
  };
8932
8852
  }
8933
- function Ts({ apiHandler: e2 }) {
8853
+ function gs({ apiHandler: e2 }) {
8934
8854
  return {
8935
8855
  /**
8936
8856
  * @param { rebilly.GetUsageCollectionRequest } request
@@ -8960,7 +8880,7 @@ function Ts({ apiHandler: e2 }) {
8960
8880
  }
8961
8881
  };
8962
8882
  }
8963
- function ds({ apiHandler: e2 }) {
8883
+ function as({ apiHandler: e2 }) {
8964
8884
  return {
8965
8885
  /**
8966
8886
  * @param { rebilly.GetUserCollectionRequest } request
@@ -9003,7 +8923,7 @@ function ds({ apiHandler: e2 }) {
9003
8923
  }
9004
8924
  };
9005
8925
  }
9006
- function Is({ apiHandler: e2 }) {
8926
+ function ms({ apiHandler: e2 }) {
9007
8927
  return {
9008
8928
  /**
9009
8929
  * @param { rebilly.GetWebhookCollectionRequest } request
@@ -9037,7 +8957,7 @@ function Is({ apiHandler: e2 }) {
9037
8957
  }
9038
8958
  };
9039
8959
  }
9040
- function Ss({ apiHandler: e2 }) {
8960
+ function fs({ apiHandler: e2 }) {
9041
8961
  return {
9042
8962
  /**
9043
8963
  * @param { rebilly.GetWebsiteCollectionRequest } request
@@ -9077,24 +8997,24 @@ function Ss({ apiHandler: e2 }) {
9077
8997
  }
9078
8998
  };
9079
8999
  }
9080
- class Es {
9000
+ class $s {
9081
9001
  constructor({ apiHandler: t2 }) {
9082
- this.accountRegistrationSettings = _t$1({
9002
+ this.accountRegistrationSettings = Ft$1({
9083
9003
  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({
9004
+ }), 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
9005
  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({
9006
+ }), 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
9007
  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({
9008
+ }), 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
9009
  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({
9010
+ }), 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
9011
  apiHandler: t2
9092
- }), this.subscriptionPauses = As({ apiHandler: t2 }), this.subscriptionReactivations = bs({
9012
+ }), this.subscriptionPauses = rs({ apiHandler: t2 }), this.subscriptionReactivations = ns({
9093
9013
  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;
9014
+ }), 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
9015
  }
9096
9016
  }
9097
- function xs({ apiHandler: e2 }) {
9017
+ function ps({ apiHandler: e2 }) {
9098
9018
  return {
9099
9019
  /**
9100
9020
  * @returns { rebilly.GetCustomerSummaryMetricReportResponsePromise } response
@@ -9104,7 +9024,7 @@ function xs({ apiHandler: e2 }) {
9104
9024
  }
9105
9025
  };
9106
9026
  }
9107
- function Ps({ apiHandler: e2 }) {
9027
+ function hs({ apiHandler: e2 }) {
9108
9028
  return {
9109
9029
  /**
9110
9030
  * @param { rebilly.GetDataExportCollectionRequest } request
@@ -9119,8 +9039,8 @@ function Ps({ apiHandler: e2 }) {
9119
9039
  q: o2 = null,
9120
9040
  criteria: l = null
9121
9041
  } = {}) {
9122
- const a = { limit: t2, offset: s, sort: r2, expand: n2, filter: u, q: o2, criteria: l };
9123
- return e2.getAll("data-exports", a);
9042
+ const i = { limit: t2, offset: s, sort: r2, expand: n2, filter: u, q: o2, criteria: l };
9043
+ return e2.getAll("data-exports", i);
9124
9044
  },
9125
9045
  /**
9126
9046
  * @param { rebilly.CreateDataExportRequest } request
@@ -9149,7 +9069,7 @@ function Ps({ apiHandler: e2 }) {
9149
9069
  }
9150
9070
  };
9151
9071
  }
9152
- function Cs({ apiHandler: e2 }) {
9072
+ function ys({ apiHandler: e2 }) {
9153
9073
  return {
9154
9074
  /**
9155
9075
  * @returns { rebilly.GetHistogramAmlCheckReportResponsePromise } response
@@ -9193,7 +9113,7 @@ function Cs({ apiHandler: e2 }) {
9193
9113
  }
9194
9114
  };
9195
9115
  }
9196
- function Ds({ apiHandler: e2 }) {
9116
+ function As({ apiHandler: e2 }) {
9197
9117
  return {
9198
9118
  /**
9199
9119
  * @returns { rebilly.GetApiLogSummaryReportResponsePromise } response
@@ -9390,7 +9310,7 @@ function Ds({ apiHandler: e2 }) {
9390
9310
  aggregationField: u = null,
9391
9311
  limit: o2 = null,
9392
9312
  offset: l = null,
9393
- filter: a = null
9313
+ filter: i = null
9394
9314
  }) {
9395
9315
  const f = {
9396
9316
  currency: t2,
@@ -9400,7 +9320,7 @@ function Ds({ apiHandler: e2 }) {
9400
9320
  aggregationField: u,
9401
9321
  limit: o2,
9402
9322
  offset: l,
9403
- filter: a
9323
+ filter: i
9404
9324
  };
9405
9325
  return e2.get("reports/journal", f);
9406
9326
  },
@@ -9495,10 +9415,10 @@ function Ds({ apiHandler: e2 }) {
9495
9415
  periodEnd: u = null,
9496
9416
  limit: o2 = null,
9497
9417
  offset: l = null,
9498
- filter: a = null,
9418
+ filter: i = null,
9499
9419
  criteria: f = null
9500
9420
  }) {
9501
- const y = {
9421
+ const a = {
9502
9422
  aggregationField: t2,
9503
9423
  aggregationPeriod: s,
9504
9424
  includeSwitchedSubscriptions: r2,
@@ -9506,10 +9426,10 @@ function Ds({ apiHandler: e2 }) {
9506
9426
  periodEnd: u,
9507
9427
  limit: o2,
9508
9428
  offset: l,
9509
- filter: a,
9429
+ filter: i,
9510
9430
  criteria: f
9511
9431
  };
9512
- return e2.get("reports/retention-percentage", y);
9432
+ return e2.get("reports/retention-percentage", a);
9513
9433
  },
9514
9434
  /**
9515
9435
  * @returns { rebilly.GetRetentionValueReportResponsePromise } response
@@ -9522,12 +9442,12 @@ function Ds({ apiHandler: e2 }) {
9522
9442
  periodStart: u = null,
9523
9443
  periodEnd: o2 = null,
9524
9444
  limit: l = null,
9525
- offset: a = null,
9445
+ offset: i = null,
9526
9446
  filter: f = null,
9527
- sort: y = null,
9528
- criteria: I2 = null
9447
+ sort: a = null,
9448
+ criteria: $2 = null
9529
9449
  }) {
9530
- const S2 = {
9450
+ const h2 = {
9531
9451
  aggregationField: t2,
9532
9452
  aggregationPeriod: s,
9533
9453
  includeRefunds: r2,
@@ -9535,12 +9455,12 @@ function Ds({ apiHandler: e2 }) {
9535
9455
  periodStart: u,
9536
9456
  periodEnd: o2,
9537
9457
  limit: l,
9538
- offset: a,
9458
+ offset: i,
9539
9459
  filter: f,
9540
- sort: y,
9541
- criteria: I2
9460
+ sort: a,
9461
+ criteria: $2
9542
9462
  };
9543
- return e2.get("reports/retention-value", S2);
9463
+ return e2.get("reports/retention-value", h2);
9544
9464
  },
9545
9465
  /**
9546
9466
  * @returns { rebilly.GetRevenueWaterfallReportResponsePromise } response
@@ -9665,7 +9585,7 @@ function Ds({ apiHandler: e2 }) {
9665
9585
  }
9666
9586
  };
9667
9587
  }
9668
- function js({ apiHandler: e2 }) {
9588
+ function bs({ apiHandler: e2 }) {
9669
9589
  return {
9670
9590
  /**
9671
9591
  * @returns { rebilly.GetSubscriptionSummaryMetricReportResponsePromise } response
@@ -9675,7 +9595,7 @@ function js({ apiHandler: e2 }) {
9675
9595
  }
9676
9596
  };
9677
9597
  }
9678
- function Ms({ apiHandler: e2 }) {
9598
+ function Rs({ apiHandler: e2 }) {
9679
9599
  return {
9680
9600
  getActivityFeed({ eventTypes: t2 = null, limit: s = 1e3, offset: r2 = 0 }) {
9681
9601
  const n2 = {
@@ -9703,32 +9623,32 @@ function Ms({ apiHandler: e2 }) {
9703
9623
  }
9704
9624
  };
9705
9625
  }
9706
- function Os({ apiHandler: e2 }) {
9626
+ function ws({ apiHandler: e2 }) {
9707
9627
  return {
9708
9628
  query() {
9709
9629
  return e2.get("location");
9710
9630
  }
9711
9631
  };
9712
9632
  }
9713
- const b = {
9714
- CustomersResource: xs,
9715
- DataExportsResource: Ps,
9716
- HistogramsResource: Cs,
9717
- ReportsResource: Ds,
9718
- SubscriptionsResource: js,
9719
- TimelinesResource: Ms,
9720
- LocationResource: Os
9633
+ const w = {
9634
+ CustomersResource: ps,
9635
+ DataExportsResource: hs,
9636
+ HistogramsResource: ys,
9637
+ ReportsResource: As,
9638
+ SubscriptionsResource: bs,
9639
+ TimelinesResource: Rs,
9640
+ LocationResource: ws
9721
9641
  };
9722
- class Fs {
9642
+ class ks {
9723
9643
  constructor({ apiHandler: t2 }) {
9724
- this.customers = b.CustomersResource({ apiHandler: t2 }), this.dataExports = b.DataExportsResource({
9644
+ this.customers = w.CustomersResource({ apiHandler: t2 }), this.dataExports = w.DataExportsResource({
9725
9645
  apiHandler: t2
9726
- }), this.histograms = b.HistogramsResource({ apiHandler: t2 }), this.reports = b.ReportsResource({ apiHandler: t2 }), this.subscriptions = b.SubscriptionsResource({
9646
+ }), this.histograms = w.HistogramsResource({ apiHandler: t2 }), this.reports = w.ReportsResource({ apiHandler: t2 }), this.subscriptions = w.SubscriptionsResource({
9727
9647
  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;
9648
+ }), 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
9649
  }
9730
9650
  }
9731
- function Bs({ apiHandler: e2 }) {
9651
+ function vs({ apiHandler: e2 }) {
9732
9652
  return {
9733
9653
  /**
9734
9654
  * @returns { rebilly.StorefrontGetAccountResponsePromise } response
@@ -9760,7 +9680,7 @@ function Bs({ apiHandler: e2 }) {
9760
9680
  }
9761
9681
  };
9762
9682
  }
9763
- function Ks({ apiHandler: e2 }) {
9683
+ function qs({ apiHandler: e2 }) {
9764
9684
  return {
9765
9685
  login({ data: t2 }) {
9766
9686
  return e2.post("login", t2);
@@ -9770,7 +9690,7 @@ function Ks({ apiHandler: e2 }) {
9770
9690
  }
9771
9691
  };
9772
9692
  }
9773
- function Ns({ apiHandler: e2 }) {
9693
+ function ds({ apiHandler: e2 }) {
9774
9694
  return {
9775
9695
  /**
9776
9696
  * @returns { rebilly.StorefrontGetBillingPortalResponsePromise } response
@@ -9780,7 +9700,7 @@ function Ns({ apiHandler: e2 }) {
9780
9700
  }
9781
9701
  };
9782
9702
  }
9783
- function Ls({ apiHandler: e2 }) {
9703
+ function Ts({ apiHandler: e2 }) {
9784
9704
  return {
9785
9705
  /**
9786
9706
  * @returns { rebilly.StorefrontGetCashierResponsePromise } response
@@ -9793,7 +9713,7 @@ function Ls({ apiHandler: e2 }) {
9793
9713
  }
9794
9714
  };
9795
9715
  }
9796
- function zs({ apiHandler: e2 }) {
9716
+ function Is({ apiHandler: e2 }) {
9797
9717
  return {
9798
9718
  /**
9799
9719
  * @returns { rebilly.StorefrontGetCheckoutFormResponsePromise } response
@@ -9803,7 +9723,7 @@ function zs({ apiHandler: e2 }) {
9803
9723
  }
9804
9724
  };
9805
9725
  }
9806
- function Us({ apiHandler: e2 }) {
9726
+ function Ss({ apiHandler: e2 }) {
9807
9727
  return {
9808
9728
  /**
9809
9729
  * @param { rebilly.StorefrontGetCustomFieldCollectionRequest } request
@@ -9815,7 +9735,7 @@ function Us({ apiHandler: e2 }) {
9815
9735
  }
9816
9736
  };
9817
9737
  }
9818
- function Vs({ apiHandler: e2 }) {
9738
+ function Es({ apiHandler: e2 }) {
9819
9739
  return {
9820
9740
  /**
9821
9741
  * @returns { rebilly.StorefrontGetDepositRequestResponsePromise } response
@@ -9826,14 +9746,14 @@ function Vs({ apiHandler: e2 }) {
9826
9746
  }
9827
9747
  };
9828
9748
  }
9829
- function Js({ apiHandler: e2 }) {
9749
+ function xs({ apiHandler: e2 }) {
9830
9750
  return {
9831
9751
  create({ data: t2 }) {
9832
9752
  return e2.post("deposit", t2);
9833
9753
  }
9834
9754
  };
9835
9755
  }
9836
- function Ws({ apiHandler: e2 }) {
9756
+ function Ps({ apiHandler: e2 }) {
9837
9757
  return {
9838
9758
  /**
9839
9759
  * @returns { rebilly.StorefrontGetDepositStrategyResponsePromise } response
@@ -9843,7 +9763,7 @@ function Ws({ apiHandler: e2 }) {
9843
9763
  }
9844
9764
  };
9845
9765
  }
9846
- function Gs({ apiHandler: e2 }) {
9766
+ function Cs({ apiHandler: e2 }) {
9847
9767
  return {
9848
9768
  /**
9849
9769
  * @param { rebilly.StorefrontGetInvoiceCollectionRequest } request
@@ -9872,14 +9792,14 @@ function Gs({ apiHandler: e2 }) {
9872
9792
  },
9873
9793
  downloadPDF({ id: t2 }) {
9874
9794
  const s = {
9875
- headers: w,
9795
+ headers: v,
9876
9796
  responseType: "arraybuffer"
9877
9797
  };
9878
9798
  return e2.download(`invoices/${t2}`, s);
9879
9799
  }
9880
9800
  };
9881
9801
  }
9882
- function Ys({ apiHandler: e2 }) {
9802
+ function Ds({ apiHandler: e2 }) {
9883
9803
  return {
9884
9804
  /**
9885
9805
  * @param { rebilly.StorefrontGetKycDocumentCollectionRequest } request
@@ -9903,7 +9823,7 @@ function Ys({ apiHandler: e2 }) {
9903
9823
  }
9904
9824
  };
9905
9825
  }
9906
- function Qs({ apiHandler: e2 }) {
9826
+ function js({ apiHandler: e2 }) {
9907
9827
  return {
9908
9828
  create({ data: t2 }) {
9909
9829
  return e2.post("kyc-liveness-sessions", t2);
@@ -9919,7 +9839,7 @@ function Qs({ apiHandler: e2 }) {
9919
9839
  }
9920
9840
  };
9921
9841
  }
9922
- function Xs({ apiHandler: e2 }) {
9842
+ function Ms({ apiHandler: e2 }) {
9923
9843
  return {
9924
9844
  /**
9925
9845
  * @returns { rebilly.StorefrontGetKycRequestResponsePromise } response
@@ -9930,7 +9850,7 @@ function Xs({ apiHandler: e2 }) {
9930
9850
  }
9931
9851
  };
9932
9852
  }
9933
- function Zs({ apiHandler: e2 }) {
9853
+ function Os({ apiHandler: e2 }) {
9934
9854
  return {
9935
9855
  /**
9936
9856
  * @returns { rebilly.StorefrontGetOrderUpcomingInvoiceResponsePromise } response
@@ -9972,7 +9892,7 @@ function Zs({ apiHandler: e2 }) {
9972
9892
  }
9973
9893
  };
9974
9894
  }
9975
- function _s({ apiHandler: e2 }) {
9895
+ function Fs({ apiHandler: e2 }) {
9976
9896
  return {
9977
9897
  /**
9978
9898
  * @param { rebilly.StorefrontGetPaymentInstrumentCollectionRequest } request
@@ -10015,7 +9935,7 @@ function _s({ apiHandler: e2 }) {
10015
9935
  }
10016
9936
  };
10017
9937
  }
10018
- function Hs({ apiHandler: e2 }) {
9938
+ function Bs({ apiHandler: e2 }) {
10019
9939
  return {
10020
9940
  /**
10021
9941
  * @param { rebilly.StorefrontGetPayoutRequestCollectionRequest } request
@@ -10045,7 +9965,7 @@ function Hs({ apiHandler: e2 }) {
10045
9965
  }
10046
9966
  };
10047
9967
  }
10048
- function tr({ apiHandler: e2 }) {
9968
+ function Ks({ apiHandler: e2 }) {
10049
9969
  return {
10050
9970
  /**
10051
9971
  * @param { rebilly.StorefrontGetPlanCollectionRequest } request
@@ -10071,7 +9991,7 @@ function tr({ apiHandler: e2 }) {
10071
9991
  }
10072
9992
  };
10073
9993
  }
10074
- function er({ apiHandler: e2 }) {
9994
+ function Ns({ apiHandler: e2 }) {
10075
9995
  return {
10076
9996
  /**
10077
9997
  * @param { rebilly.StorefrontGetProductCollectionRequest } request
@@ -10095,7 +10015,7 @@ function er({ apiHandler: e2 }) {
10095
10015
  }
10096
10016
  };
10097
10017
  }
10098
- function sr({ apiHandler: e2 }) {
10018
+ function Ls({ apiHandler: e2 }) {
10099
10019
  return {
10100
10020
  payment({ data: t2 }) {
10101
10021
  return e2.post("payment", t2);
@@ -10111,7 +10031,7 @@ function sr({ apiHandler: e2 }) {
10111
10031
  }
10112
10032
  };
10113
10033
  }
10114
- function rr({ apiHandler: e2 }) {
10034
+ function zs({ apiHandler: e2 }) {
10115
10035
  return {
10116
10036
  /**
10117
10037
  * @returns { rebilly.StorefrontGetQuoteResponsePromise } response
@@ -10128,28 +10048,28 @@ function rr({ apiHandler: e2 }) {
10128
10048
  },
10129
10049
  downloadPDF({ id: t2 }) {
10130
10050
  const s = {
10131
- headers: w,
10051
+ headers: v,
10132
10052
  responseType: "arraybuffer"
10133
10053
  };
10134
10054
  return e2.download(`quotes/${t2}`, s);
10135
10055
  }
10136
10056
  };
10137
10057
  }
10138
- function nr({ apiHandler: e2 }) {
10058
+ function Us({ apiHandler: e2 }) {
10139
10059
  return {
10140
10060
  readyToPayout({ data: t2 }) {
10141
10061
  return e2.post("ready-to-payout", t2);
10142
10062
  }
10143
10063
  };
10144
10064
  }
10145
- function ur({ apiHandler: e2 }) {
10065
+ function Vs({ apiHandler: e2 }) {
10146
10066
  return {
10147
10067
  reactivation({ data: t2 }) {
10148
10068
  return e2.post("subscription-reactivations", t2);
10149
10069
  }
10150
10070
  };
10151
10071
  }
10152
- function or({ apiHandler: e2 }) {
10072
+ function Js({ apiHandler: e2 }) {
10153
10073
  return {
10154
10074
  changeItems({ id: t2, data: s }) {
10155
10075
  return e2.post(`subscriptions/${t2}/change-items`, s);
@@ -10159,7 +10079,7 @@ function or({ apiHandler: e2 }) {
10159
10079
  }
10160
10080
  };
10161
10081
  }
10162
- function lr({ apiHandler: e2 }) {
10082
+ function Ws({ apiHandler: e2 }) {
10163
10083
  return {
10164
10084
  /**
10165
10085
  * @param { rebilly.StorefrontGetTransactionCollectionRequest } request
@@ -10198,7 +10118,7 @@ function lr({ apiHandler: e2 }) {
10198
10118
  },
10199
10119
  downloadPDF({ id: t2 }) {
10200
10120
  const s = {
10201
- headers: w,
10121
+ headers: v,
10202
10122
  responseType: "arraybuffer"
10203
10123
  };
10204
10124
  return e2.download(`transactions/${t2}`, s);
@@ -10208,7 +10128,7 @@ function lr({ apiHandler: e2 }) {
10208
10128
  }
10209
10129
  };
10210
10130
  }
10211
- function cr({ apiHandler: e2 }) {
10131
+ function Gs({ apiHandler: e2 }) {
10212
10132
  return {
10213
10133
  /**
10214
10134
  * @returns { rebilly.StorefrontGetWebsiteResponsePromise } response
@@ -10218,32 +10138,32 @@ function cr({ apiHandler: e2 }) {
10218
10138
  }
10219
10139
  };
10220
10140
  }
10221
- class ir {
10141
+ class Ys {
10222
10142
  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({
10143
+ 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
10144
  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;
10145
+ }), 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
10146
  }
10227
10147
  }
10228
- function gr({ apiHandler: e2 }) {
10229
- return new Es({ apiHandler: e2 });
10148
+ function Qs({ apiHandler: e2 }) {
10149
+ return new $s({ apiHandler: e2 });
10230
10150
  }
10231
- function ar({ apiHandler: e2 }) {
10232
- return new Fs({ apiHandler: e2 });
10151
+ function Xs({ apiHandler: e2 }) {
10152
+ return new ks({ apiHandler: e2 });
10233
10153
  }
10234
- function mr({ apiHandler: e2 }) {
10235
- return new ir({ apiHandler: e2 });
10154
+ function Zs({ apiHandler: e2 }) {
10155
+ return new Ys({ apiHandler: e2 });
10236
10156
  }
10237
- const D = {
10157
+ const F$1 = {
10238
10158
  live: "https://api.rebilly.com",
10239
10159
  sandbox: "https://api-sandbox.rebilly.com"
10240
- }, j$1 = 6e3;
10241
- function yr({
10160
+ }, B$1 = 6e3;
10161
+ function sr({
10242
10162
  apiKey: e2 = null,
10243
10163
  sandbox: t2 = false,
10244
- timeout: s = j$1,
10164
+ timeout: s = B$1,
10245
10165
  organizationId: r2 = null,
10246
- urls: n2 = D,
10166
+ urls: n2 = F$1,
10247
10167
  internalOptions: u = null
10248
10168
  } = {}) {
10249
10169
  if (!n2.live || !n2.sandbox)
@@ -10263,15 +10183,15 @@ function yr({
10263
10183
  jwt: null,
10264
10184
  organizationId: r2,
10265
10185
  appName: (u == null ? void 0 : u.appName) ?? null
10266
- }, l = C$1({ options: o2 });
10267
- return gr({ apiHandler: l });
10186
+ }, l = O$1({ options: o2 });
10187
+ return Qs({ apiHandler: l });
10268
10188
  }
10269
- function Ar({
10189
+ function rr({
10270
10190
  apiKey: e2 = null,
10271
10191
  sandbox: t2 = false,
10272
- timeout: s = j$1,
10192
+ timeout: s = B$1,
10273
10193
  organizationId: r2 = null,
10274
- urls: n2 = D,
10194
+ urls: n2 = F$1,
10275
10195
  internalOptions: u = null
10276
10196
  } = {}) {
10277
10197
  if (!n2.live || !n2.sandbox)
@@ -10291,16 +10211,16 @@ function Ar({
10291
10211
  jwt: null,
10292
10212
  organizationId: r2,
10293
10213
  appName: (u == null ? void 0 : u.appName) ?? null
10294
- }, l = C$1({ options: o2 });
10295
- return ar({ apiHandler: l });
10214
+ }, l = O$1({ options: o2 });
10215
+ return Xs({ apiHandler: l });
10296
10216
  }
10297
- function br({
10217
+ function nr({
10298
10218
  publishableKey: e2 = null,
10299
10219
  jwt: t2 = null,
10300
10220
  sandbox: s = false,
10301
- timeout: r2 = j$1,
10221
+ timeout: r2 = B$1,
10302
10222
  organizationId: n2 = null,
10303
- urls: u = D,
10223
+ urls: u = F$1,
10304
10224
  internalOptions: o2 = null
10305
10225
  } = {}) {
10306
10226
  if (!u.live || !u.sandbox)
@@ -10320,8 +10240,8 @@ function br({
10320
10240
  requestTimeout: r2,
10321
10241
  organizationId: n2,
10322
10242
  appName: (o2 == null ? void 0 : o2.appName) ?? null
10323
- }, a = C$1({ options: l });
10324
- return a.setSessionToken(l.jwt), mr({ apiHandler: a });
10243
+ }, i = O$1({ options: l });
10244
+ return i.setSessionToken(l.jwt), Zs({ apiHandler: i });
10325
10245
  }
10326
10246
  const TIMEOUT = 6e4;
10327
10247
  function validateStateForStorefront() {
@@ -10362,15 +10282,15 @@ class StorefrontInstance {
10362
10282
  appName: appName ? `${appName}/instruments` : "instruments"
10363
10283
  }
10364
10284
  };
10365
- const api = br(config);
10285
+ const api = nr(config);
10366
10286
  const rebilly = (
10367
10287
  // @ts-expect-error refactor with above todo
10368
- typeof yr.default === "function" ? (
10288
+ typeof sr.default === "function" ? (
10369
10289
  // @ts-expect-error refactor with above todo
10370
- yr.default(config)
10371
- ) : yr(config)
10290
+ sr.default(config)
10291
+ ) : sr(config)
10372
10292
  );
10373
- const experimental = Ar(config);
10293
+ const experimental = rr(config);
10374
10294
  api.setSessionToken(publishableKey || jwt);
10375
10295
  rebilly.setSessionToken(publishableKey || jwt);
10376
10296
  experimental.setSessionToken(publishableKey || jwt);
@@ -10425,7 +10345,7 @@ async function fetchSummary({
10425
10345
  data = null
10426
10346
  } = {}) {
10427
10347
  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;
10348
+ 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
10349
  const items = (_a = state.options) == null ? void 0 : _a.items;
10430
10350
  const websiteId = ((_b = state.options) == null ? void 0 : _b.websiteId) || null;
10431
10351
  const bumpOfferProductsIds = ((_d = (_c = state.options) == null ? void 0 : _c.bumpOffer) == null ? void 0 : _d.map(({ planId }) => planId)) || [];
@@ -10468,7 +10388,7 @@ async function fetchSummary({
10468
10388
  }
10469
10389
  }
10470
10390
  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) {
10391
+ ((_t2 = (_s = (_r = state.data) == null ? void 0 : _r.previewPurchase) == null ? void 0 : _s.addonLineItems) == null ? void 0 : _t2.length) > 0) {
10472
10392
  payload.data.items = (_u = payload.data.items) == null ? void 0 : _u.concat(
10473
10393
  // @ts-expect-error TODO: type "addonLineItems" once "views/common/iframe/events/update-addons-handler.js" is typed.
10474
10394
  state.data.previewPurchase.addonLineItems
@@ -10692,7 +10612,7 @@ function ue(e2, t2, n2) {
10692
10612
  return e2.concat(r2 || Array.prototype.slice.call(t2));
10693
10613
  }
10694
10614
  var se = "3.4.2";
10695
- function G2(e2, t2) {
10615
+ function G(e2, t2) {
10696
10616
  return new Promise(function(n2) {
10697
10617
  return setTimeout(n2, e2, t2);
10698
10618
  });
@@ -10704,7 +10624,7 @@ function ye(e2, t2) {
10704
10624
  return n2.call(window, function() {
10705
10625
  return a();
10706
10626
  }, { timeout: t2 });
10707
- }) : G2(Math.min(e2, t2));
10627
+ }) : G(Math.min(e2, t2));
10708
10628
  }
10709
10629
  function le(e2) {
10710
10630
  return !!e2 && typeof e2.then == "function";
@@ -10729,7 +10649,7 @@ function _(e2, t2, n2) {
10729
10649
  case 0:
10730
10650
  a = Array(e2.length), i = Date.now(), r2 = 0, c.label = 1;
10731
10651
  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];
10652
+ 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
10653
  case 2:
10734
10654
  c.sent(), c.label = 3;
10735
10655
  case 3:
@@ -10754,7 +10674,7 @@ function C(e2, t2) {
10754
10674
  var n2 = [0, 0, 0, 0];
10755
10675
  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
10676
  }
10757
- function A(e2, t2) {
10677
+ function A2(e2, t2) {
10758
10678
  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
10679
  }
10760
10680
  function L(e2, t2) {
@@ -10763,7 +10683,7 @@ function L(e2, t2) {
10763
10683
  function h(e2, t2) {
10764
10684
  return [e2[0] ^ t2[0], e2[1] ^ t2[1]];
10765
10685
  }
10766
- function q2(e2) {
10686
+ function q(e2) {
10767
10687
  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
10688
  }
10769
10689
  function we(e2, t2) {
@@ -10776,7 +10696,7 @@ function we(e2, t2) {
10776
10696
  ], c = [
10777
10697
  e2.charCodeAt(u + 12) & 255 | (e2.charCodeAt(u + 13) & 255) << 8 | (e2.charCodeAt(u + 14) & 255) << 16 | (e2.charCodeAt(u + 15) & 255) << 24,
10778
10698
  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]);
10699
+ ], 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
10700
  switch (o2 = [0, 0], c = [0, 0], n2) {
10781
10701
  case 15:
10782
10702
  c = h(c, L([0, e2.charCodeAt(u + 14)], 48));
@@ -10791,7 +10711,7 @@ function we(e2, t2) {
10791
10711
  case 10:
10792
10712
  c = h(c, L([0, e2.charCodeAt(u + 9)], 8));
10793
10713
  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);
10714
+ 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
10715
  case 8:
10796
10716
  o2 = h(o2, L([0, e2.charCodeAt(u + 7)], 56));
10797
10717
  case 7:
@@ -10807,9 +10727,9 @@ function we(e2, t2) {
10807
10727
  case 2:
10808
10728
  o2 = h(o2, L([0, e2.charCodeAt(u + 1)], 8));
10809
10729
  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);
10730
+ o2 = h(o2, [0, e2.charCodeAt(u)]), o2 = C(o2, l), o2 = A2(o2, 31), o2 = C(o2, s), i = h(i, o2);
10811
10731
  }
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);
10732
+ 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
10733
  }
10814
10734
  function Se(e2) {
10815
10735
  var t2;
@@ -10846,8 +10766,8 @@ function fe(e2, t2) {
10846
10766
  return Math.round(e2 * n2) / n2;
10847
10767
  }
10848
10768
  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);
10769
+ 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) {
10770
+ o2[d] = o2[d] || [], o2[d].push(p);
10851
10771
  }; ; ) {
10852
10772
  var s = c.exec(i[2]);
10853
10773
  if (!s)
@@ -10900,12 +10820,12 @@ function Ve(e2, t2) {
10900
10820
  return new Promise(function(s) {
10901
10821
  var u = Date.now();
10902
10822
  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;
10823
+ for (var f = [], d = 0; d < arguments.length; d++)
10824
+ f[d] = arguments[d];
10825
+ var p = c + Date.now() - u;
10906
10826
  if (!f[0])
10907
- return s({ error: $(f[1]), duration: p2 });
10908
- s({ value: f[1], duration: p2 });
10827
+ return s({ error: $(f[1]), duration: p });
10828
+ s({ value: f[1], duration: p });
10909
10829
  });
10910
10830
  });
10911
10831
  });
@@ -10931,9 +10851,9 @@ function Fe(e2, t2, n2) {
10931
10851
  case 0:
10932
10852
  return [4, i];
10933
10853
  case 1:
10934
- return o2 = f.sent(), [4, _(o2, function(d2) {
10935
- var p2 = d2();
10936
- return Y(p2), p2;
10854
+ return o2 = f.sent(), [4, _(o2, function(d) {
10855
+ var p = d();
10856
+ return Y(p), p;
10937
10857
  })];
10938
10858
  case 2:
10939
10859
  return c = f.sent(), [
@@ -11087,33 +11007,33 @@ function Pe(e2) {
11087
11007
  e2.oncomplete = function(g) {
11088
11008
  return c(g.renderedBuffer);
11089
11009
  };
11090
- var d2 = function() {
11010
+ var d = function() {
11091
11011
  setTimeout(function() {
11092
11012
  return l(ee(
11093
11013
  "timeout"
11094
11014
  /* InnerErrorName.Timeout */
11095
11015
  ));
11096
11016
  }, Math.min(a, f + i - Date.now()));
11097
- }, p2 = function() {
11017
+ }, p = function() {
11098
11018
  try {
11099
11019
  var g = e2.startRendering();
11100
11020
  switch (le(g) && Y(g), e2.state) {
11101
11021
  case "running":
11102
- f = Date.now(), s && d2();
11022
+ f = Date.now(), s && d();
11103
11023
  break;
11104
11024
  case "suspended":
11105
11025
  document.hidden || u++, s && u >= t2 ? l(ee(
11106
11026
  "suspended"
11107
11027
  /* InnerErrorName.Suspended */
11108
- )) : setTimeout(p2, n2);
11028
+ )) : setTimeout(p, n2);
11109
11029
  break;
11110
11030
  }
11111
- } catch (y) {
11112
- l(y);
11031
+ } catch (y2) {
11032
+ l(y2);
11113
11033
  }
11114
11034
  };
11115
- p2(), r2 = function() {
11116
- s || (s = true, f > 0 && d2());
11035
+ p(), r2 = function() {
11036
+ s || (s = true, f > 0 && d());
11117
11037
  };
11118
11038
  });
11119
11039
  return [o2, r2];
@@ -11136,31 +11056,31 @@ function ve(e2, t2, n2) {
11136
11056
  case 0:
11137
11057
  o2 = document, l.label = 1;
11138
11058
  case 1:
11139
- return o2.body ? [3, 3] : [4, G2(n2)];
11059
+ return o2.body ? [3, 3] : [4, G(n2)];
11140
11060
  case 2:
11141
11061
  return l.sent(), [3, 1];
11142
11062
  case 3:
11143
11063
  c = o2.createElement("iframe"), l.label = 4;
11144
11064
  case 4:
11145
11065
  return l.trys.push([4, , 10, 11]), [4, new Promise(function(s, u) {
11146
- var f = false, d2 = function() {
11066
+ var f = false, d = function() {
11147
11067
  f = true, s();
11148
- }, p2 = function(b2) {
11149
- f = true, u(b2);
11068
+ }, p = function(b) {
11069
+ f = true, u(b);
11150
11070
  };
11151
- c.onload = d2, c.onerror = p2;
11071
+ c.onload = d, c.onerror = p;
11152
11072
  var g = c.style;
11153
11073
  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));
11074
+ var y2 = function() {
11075
+ var b, w2;
11076
+ 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
11077
  };
11158
- y();
11078
+ y2();
11159
11079
  })];
11160
11080
  case 5:
11161
11081
  l.sent(), l.label = 6;
11162
11082
  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)];
11083
+ 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
11084
  case 7:
11165
11085
  return l.sent(), [3, 6];
11166
11086
  case 8:
@@ -11256,33 +11176,33 @@ function Je() {
11256
11176
  return ve(function(e2, t2) {
11257
11177
  var n2 = t2.document, a = n2.body;
11258
11178
  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));
11179
+ var i = n2.createElement("div"), r2 = {}, o2 = {}, c = function(y2) {
11180
+ var b = n2.createElement("span"), w2 = b.style;
11181
+ return w2.position = "absolute", w2.top = "0", w2.left = "0", w2.fontFamily = y2, b.textContent = Ee, i.appendChild(b), b;
11182
+ }, l = function(y2, b) {
11183
+ return c("'".concat(y2, "',").concat(b));
11264
11184
  }, s = function() {
11265
11185
  return M.map(c);
11266
11186
  }, u = function() {
11267
- for (var y = {}, b2 = function(P2) {
11268
- y[P2] = M.map(function(T2) {
11187
+ for (var y2 = {}, b = function(P2) {
11188
+ y2[P2] = M.map(function(T2) {
11269
11189
  return l(P2, T2);
11270
11190
  });
11271
- }, w2 = 0, R2 = te; w2 < R2.length; w2++) {
11272
- var D2 = R2[w2];
11273
- b2(D2);
11191
+ }, w2 = 0, R = te; w2 < R.length; w2++) {
11192
+ var D2 = R[w2];
11193
+ b(D2);
11274
11194
  }
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];
11195
+ return y2;
11196
+ }, f = function(y2) {
11197
+ return M.some(function(b, w2) {
11198
+ return y2[w2].offsetWidth !== r2[b] || y2[w2].offsetHeight !== o2[b];
11279
11199
  });
11280
- }, d2 = s(), p2 = u();
11200
+ }, d = s(), p = u();
11281
11201
  a.appendChild(i);
11282
11202
  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]);
11203
+ r2[M[g]] = d[g].offsetWidth, o2[M[g]] = d[g].offsetHeight;
11204
+ return te.filter(function(y2) {
11205
+ return f(p[y2]);
11286
11206
  });
11287
11207
  });
11288
11208
  }
@@ -11384,7 +11304,7 @@ function $e() {
11384
11304
  function et() {
11385
11305
  return window.screen.colorDepth;
11386
11306
  }
11387
- function tt() {
11307
+ function tt2() {
11388
11308
  return V(x(navigator.deviceMemory), void 0);
11389
11309
  }
11390
11310
  function nt() {
@@ -11393,7 +11313,7 @@ function nt() {
11393
11313
  }, n2 = [t2(e2.width), t2(e2.height)];
11394
11314
  return n2.sort().reverse(), n2;
11395
11315
  }
11396
- var rt = 2500, at2 = 10, X, H;
11316
+ var rt = 2500, at = 10, X, H;
11397
11317
  function ot() {
11398
11318
  if (H === void 0) {
11399
11319
  var e2 = function() {
@@ -11432,7 +11352,7 @@ function ct() {
11432
11352
  return [4, t2()];
11433
11353
  case 1:
11434
11354
  return n2 = i.sent(), a = function(r2) {
11435
- return r2 === null ? null : fe(r2, at2);
11355
+ return r2 === null ? null : fe(r2, at);
11436
11356
  }, [2, [a(n2[0]), a(n2[1]), a(n2[2]), a(n2[3])]];
11437
11357
  }
11438
11358
  });
@@ -11475,21 +11395,21 @@ function lt() {
11475
11395
  x(new Date(e2, 6, 1).getTimezoneOffset())
11476
11396
  );
11477
11397
  }
11478
- function ft2() {
11398
+ function ft() {
11479
11399
  try {
11480
11400
  return !!window.sessionStorage;
11481
11401
  } catch {
11482
11402
  return true;
11483
11403
  }
11484
11404
  }
11485
- function dt() {
11405
+ function dt2() {
11486
11406
  try {
11487
11407
  return !!window.localStorage;
11488
11408
  } catch {
11489
11409
  return true;
11490
11410
  }
11491
11411
  }
11492
- function mt2() {
11412
+ function mt() {
11493
11413
  if (!(de() || We()))
11494
11414
  try {
11495
11415
  return !!window.indexedDB;
@@ -11497,13 +11417,13 @@ function mt2() {
11497
11417
  return true;
11498
11418
  }
11499
11419
  }
11500
- function vt() {
11420
+ function vt2() {
11501
11421
  return !!window.openDatabase;
11502
11422
  }
11503
- function ht2() {
11423
+ function ht() {
11504
11424
  return navigator.cpuClass;
11505
11425
  }
11506
- function pt2() {
11426
+ function pt() {
11507
11427
  var e2 = navigator.platform;
11508
11428
  return e2 === "MacIntel" && j() && !Q() ? Me() ? "iPad" : "iPhone" : e2;
11509
11429
  }
@@ -11556,7 +11476,7 @@ function yt2() {
11556
11476
  return false;
11557
11477
  }
11558
11478
  }
11559
- function wt() {
11479
+ function wt2() {
11560
11480
  var e2 = atob;
11561
11481
  return {
11562
11482
  abpIndo: [
@@ -11826,15 +11746,15 @@ function St(e2) {
11826
11746
  return W(this, function(s) {
11827
11747
  switch (s.label) {
11828
11748
  case 0:
11829
- return Lt() ? (a = wt(), i = Object.keys(a), r2 = (l = []).concat.apply(l, i.map(function(u) {
11749
+ return Lt() ? (a = wt2(), i = Object.keys(a), r2 = (l = []).concat.apply(l, i.map(function(u) {
11830
11750
  return a[u];
11831
11751
  })), [4, Ct(r2)]) : [2, void 0];
11832
11752
  case 1:
11833
11753
  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];
11754
+ var f = a[u], d = k(f.map(function(p) {
11755
+ return o2[p];
11836
11756
  }));
11837
- return d2 > f.length * 0.6;
11757
+ return d > f.length * 0.6;
11838
11758
  }), c.sort(), [2, c];
11839
11759
  }
11840
11760
  });
@@ -11854,7 +11774,7 @@ function Ct(e2) {
11854
11774
  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
11775
  s.label = 1;
11856
11776
  case 1:
11857
- return n2.body ? [3, 3] : [4, G2(50)];
11777
+ return n2.body ? [3, 3] : [4, G(50)];
11858
11778
  case 2:
11859
11779
  return s.sent(), [3, 1];
11860
11780
  case 3:
@@ -11886,7 +11806,7 @@ function xt(e2, t2) {
11886
11806
  }
11887
11807
  console.log("".concat(n2, "\n```"));
11888
11808
  }
11889
- function kt() {
11809
+ function kt2() {
11890
11810
  for (var e2 = 0, t2 = ["rec2020", "p3", "srgb"]; e2 < t2.length; e2++) {
11891
11811
  var n2 = t2[e2];
11892
11812
  if (matchMedia("(color-gamut: ".concat(n2, ")")).matches)
@@ -11912,7 +11832,7 @@ function ae(e2) {
11912
11832
  return matchMedia("(forced-colors: ".concat(e2, ")")).matches;
11913
11833
  }
11914
11834
  var Wt = 100;
11915
- function Zt2() {
11835
+ function Zt() {
11916
11836
  if (matchMedia("(min-monochrome: 0)").matches) {
11917
11837
  for (var e2 = 0; e2 <= Wt; ++e2)
11918
11838
  if (matchMedia("(max-monochrome: ".concat(e2, ")")).matches)
@@ -11921,16 +11841,16 @@ function Zt2() {
11921
11841
  }
11922
11842
  }
11923
11843
  function Rt2() {
11924
- if (I("no-preference"))
11844
+ if (I2("no-preference"))
11925
11845
  return 0;
11926
- if (I("high") || I("more"))
11846
+ if (I2("high") || I2("more"))
11927
11847
  return 1;
11928
- if (I("low") || I("less"))
11848
+ if (I2("low") || I2("less"))
11929
11849
  return -1;
11930
- if (I("forced"))
11850
+ if (I2("forced"))
11931
11851
  return 10;
11932
11852
  }
11933
- function I(e2) {
11853
+ function I2(e2) {
11934
11854
  return matchMedia("(prefers-contrast: ".concat(e2, ")")).matches;
11935
11855
  }
11936
11856
  function At2() {
@@ -11955,34 +11875,34 @@ var m = Math, S = function() {
11955
11875
  return 0;
11956
11876
  };
11957
11877
  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);
11878
+ 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) {
11879
+ return m.pow(m.PI, v2);
11880
+ }, b = function(v2) {
11881
+ return m.log(v2 + m.sqrt(v2 * v2 - 1));
11882
+ }, w2 = function(v2) {
11883
+ return m.log(v2 + m.sqrt(v2 * v2 + 1));
11884
+ }, R = function(v2) {
11885
+ return m.log((1 + v2) / (1 - v2)) / 2;
11886
+ }, D2 = function(v2) {
11887
+ return m.exp(v2) - 1 / m.exp(v2) / 2;
11888
+ }, P2 = function(v2) {
11889
+ return (m.exp(v2) + 1 / m.exp(v2)) / 2;
11890
+ }, T2 = function(v2) {
11891
+ return m.exp(v2) - 1;
11892
+ }, ge2 = function(v2) {
11893
+ return (m.exp(2 * v2) - 1) / (m.exp(2 * v2) + 1);
11894
+ }, be2 = function(v2) {
11895
+ return m.log(1 + v2);
11976
11896
  };
11977
11897
  return {
11978
11898
  acos: e2(0.12312423423423424),
11979
11899
  acosh: t2(1e308),
11980
- acoshPf: b2(1e154),
11900
+ acoshPf: b(1e154),
11981
11901
  asin: n2(0.12312423423423424),
11982
11902
  asinh: a(1),
11983
11903
  asinhPf: w2(1),
11984
11904
  atanh: i(0.5),
11985
- atanhPf: R2(0.5),
11905
+ atanhPf: R(0.5),
11986
11906
  atan: r2(0.5),
11987
11907
  sin: o2(-1e300),
11988
11908
  sinh: c(1),
@@ -11993,12 +11913,12 @@ function It() {
11993
11913
  tan: u(-1e300),
11994
11914
  tanh: f(1),
11995
11915
  tanhPf: ge2(1),
11996
- exp: d2(1),
11997
- expm1: p2(1),
11916
+ exp: d(1),
11917
+ expm1: p(1),
11998
11918
  expm1Pf: T2(1),
11999
11919
  log1p: g(10),
12000
11920
  log1pPf: be2(10),
12001
- powPI: y(-100)
11921
+ powPI: y2(-100)
12002
11922
  };
12003
11923
  }
12004
11924
  var Gt = "mmMwWLliI0fiflO&1", J = {
@@ -12026,16 +11946,16 @@ var Gt = "mmMwWLliI0fiflO&1", J = {
12026
11946
  function Yt() {
12027
11947
  return jt(function(e2, t2) {
12028
11948
  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);
11949
+ 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");
11950
+ d.textContent = f, d.style.whiteSpace = "nowrap";
11951
+ for (var p = 0, g = Object.keys(s); p < g.length; p++) {
11952
+ var y2 = g[p], b = s[y2];
11953
+ b !== void 0 && (d.style[y2] = b);
12034
11954
  }
12035
- n2[o2] = d2, t2.appendChild(e2.createElement("br")), t2.appendChild(d2);
11955
+ n2[o2] = d, t2.appendChild(e2.createElement("br")), t2.appendChild(d);
12036
11956
  }
12037
- for (var w2 = 0, R2 = Object.keys(J); w2 < R2.length; w2++) {
12038
- var o2 = R2[w2];
11957
+ for (var w2 = 0, R = Object.keys(J); w2 < R.length; w2++) {
11958
+ var o2 = R[w2];
12039
11959
  a[o2] = n2[o2].getBoundingClientRect().width;
12040
11960
  }
12041
11961
  return a;
@@ -12069,7 +11989,7 @@ function Dt() {
12069
11989
  var e2 = new Float32Array(1), t2 = new Uint8Array(e2.buffer);
12070
11990
  return e2[0] = 1 / 0, e2[0] = e2[0] - e2[0], t2[3];
12071
11991
  }
12072
- var Tt = {
11992
+ var Tt2 = {
12073
11993
  // READ FIRST:
12074
11994
  // See https://github.com/fingerprintjs/fingerprintjs/blob/master/contributing.md#how-to-make-an-entropy-source
12075
11995
  // to learn how entropy source works and how to make your own.
@@ -12083,26 +12003,26 @@ var Tt = {
12083
12003
  osCpu: qe,
12084
12004
  languages: $e,
12085
12005
  colorDepth: et,
12086
- deviceMemory: tt,
12006
+ deviceMemory: tt2,
12087
12007
  screenResolution: nt,
12088
12008
  hardwareConcurrency: ut,
12089
12009
  timezone: st,
12090
- sessionStorage: ft2,
12091
- localStorage: dt,
12092
- indexedDB: mt2,
12093
- openDatabase: vt,
12094
- cpuClass: ht2,
12095
- platform: pt2,
12010
+ sessionStorage: ft,
12011
+ localStorage: dt2,
12012
+ indexedDB: mt,
12013
+ openDatabase: vt2,
12014
+ cpuClass: ht,
12015
+ platform: pt,
12096
12016
  plugins: ze,
12097
12017
  canvas: Ne,
12098
12018
  touchSupport: _e,
12099
12019
  vendor: gt,
12100
12020
  vendorFlavors: bt2,
12101
12021
  cookiesEnabled: yt2,
12102
- colorGamut: kt,
12022
+ colorGamut: kt2,
12103
12023
  invertedColors: Vt,
12104
12024
  forcedColors: Ft,
12105
- monochrome: Zt2,
12025
+ monochrome: Zt,
12106
12026
  contrast: Rt2,
12107
12027
  reducedMotion: At2,
12108
12028
  hdr: Mt,
@@ -12112,7 +12032,7 @@ var Tt = {
12112
12032
  architecture: Dt
12113
12033
  };
12114
12034
  function Et(e2) {
12115
- return Fe(Tt, e2, []);
12035
+ return Fe(Tt2, e2, []);
12116
12036
  }
12117
12037
  var Ht = "$ if upgrade to Pro: https://fpjs.dev/pro";
12118
12038
  function Jt(e2) {
@@ -12145,7 +12065,7 @@ function he(e2) {
12145
12065
  function pe(e2) {
12146
12066
  return we(Bt(e2));
12147
12067
  }
12148
- function Ot(e2) {
12068
+ function Ot2(e2) {
12149
12069
  var t2, n2 = Jt(e2);
12150
12070
  return {
12151
12071
  get visitorId() {
@@ -12173,7 +12093,7 @@ function Qt(e2, t2) {
12173
12093
  case 0:
12174
12094
  return i = Date.now(), [4, e2()];
12175
12095
  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, `
12096
+ 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
12097
  userAgent: `).concat(navigator.userAgent, `
12178
12098
  timeBetweenLoadAndGet: `).concat(i - n2, `
12179
12099
  visitorId: `).concat(o2.visitorId, `
@@ -12207,15 +12127,15 @@ function _t(e2) {
12207
12127
  });
12208
12128
  });
12209
12129
  }
12210
- var qt = { load: _t, hashComponents: pe, componentsToDebugString: he };
12130
+ var qt2 = { load: _t, hashComponents: pe, componentsToDebugString: he };
12211
12131
  async function ce() {
12212
12132
  try {
12213
- return typeof process == "object" && define_process_env_default.NODE_ENV === "test" ? "a-mock-visitor-id" : (await (await qt.load()).get()).visitorId;
12133
+ return typeof process == "object" && define_process_env_default.NODE_ENV === "test" ? "a-mock-visitor-id" : (await (await qt2.load()).get()).visitorId;
12214
12134
  } catch (e2) {
12215
12135
  return console.error(e2), null;
12216
12136
  }
12217
12137
  }
12218
- async function $t2() {
12138
+ async function $t() {
12219
12139
  return new Promise(
12220
12140
  (t2) => {
12221
12141
  window.requestIdleCallback ? requestIdleCallback(
@@ -12285,15 +12205,15 @@ async function cn({
12285
12205
  try {
12286
12206
  [u, l, s] = await Promise.all([
12287
12207
  on$1(),
12288
- $t2(),
12208
+ $t(),
12289
12209
  t2 ? an({
12290
12210
  env: e2,
12291
12211
  kountAccountId: t2,
12292
12212
  kountSessionId: n2
12293
12213
  }) : void 0
12294
12214
  ]);
12295
- } catch (d2) {
12296
- console.error(d2);
12215
+ } catch (d) {
12216
+ console.error(d);
12297
12217
  }
12298
12218
  return {
12299
12219
  riskMetadata: {
@@ -13134,7 +13054,7 @@ async function fetchData({
13134
13054
  fetchDepositRequest: fetchDepositRequest$1 = fetchDepositRequest,
13135
13055
  fetchPayoutRequest: fetchPayoutRequest$1 = fetchPayoutRequest
13136
13056
  } = {}) {
13137
- var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s2, _t2, _u;
13057
+ var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t2, _u;
13138
13058
  try {
13139
13059
  state.data = new DataInstance();
13140
13060
  if (state.storefront && ((_a = state.options) == null ? void 0 : _a.jwt)) {
@@ -13187,7 +13107,7 @@ async function fetchData({
13187
13107
  (_i = (_h = state.options) == null ? void 0 : _h.paymentInstruments) == null ? void 0 : _i.allowDeactivate,
13188
13108
  (_k = (_j = state.options) == null ? void 0 : _j.paymentInstruments) == null ? void 0 : _k.allowUpdate,
13189
13109
  (_m = (_l = state.options) == null ? void 0 : _l.paymentInstruments) == null ? void 0 : _m.allowMakeDefault
13190
- ].some((v) => v);
13110
+ ].some((v2) => v2);
13191
13111
  let readyToPayPromise = Promise.resolve(null);
13192
13112
  let readyToPayoutPromise = Promise.resolve(null);
13193
13113
  let fetchAccountAndWebsitePromise = Promise.resolve();
@@ -13224,7 +13144,7 @@ async function fetchData({
13224
13144
  let plansPromise = new Promise((resolve) => {
13225
13145
  resolve([]);
13226
13146
  });
13227
- if (((_s2 = state.options) == null ? void 0 : _s2.addons) || ((_t2 = state.options) == null ? void 0 : _t2.bumpOffer)) {
13147
+ if (((_s = state.options) == null ? void 0 : _s.addons) || ((_t2 = state.options) == null ? void 0 : _t2.bumpOffer)) {
13228
13148
  plansPromise = fetchPlansFromAddonsBumpOffer();
13229
13149
  }
13230
13150
  let [
@@ -13969,12 +13889,12 @@ function t(e2) {
13969
13889
  throw "Illegal base64url string!";
13970
13890
  }
13971
13891
  try {
13972
- return function(e3) {
13973
- return decodeURIComponent(r(e3).replace(/(.)/g, function(e4, r2) {
13892
+ return (function(e3) {
13893
+ return decodeURIComponent(r(e3).replace(/(.)/g, (function(e4, r2) {
13974
13894
  var t3 = r2.charCodeAt(0).toString(16).toUpperCase();
13975
13895
  return t3.length < 2 && (t3 = "0" + t3), "%" + t3;
13976
- }));
13977
- }(t2);
13896
+ })));
13897
+ })(t2);
13978
13898
  } catch (e3) {
13979
13899
  return r(t2);
13980
13900
  }
@@ -14195,194 +14115,210 @@ const setupOptions = ({
14195
14115
  function getDefaultExportFromCjs(x2) {
14196
14116
  return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
14197
14117
  }
14198
- var colorName = {
14199
- "aliceblue": [240, 248, 255],
14200
- "antiquewhite": [250, 235, 215],
14201
- "aqua": [0, 255, 255],
14202
- "aquamarine": [127, 255, 212],
14203
- "azure": [240, 255, 255],
14204
- "beige": [245, 245, 220],
14205
- "bisque": [255, 228, 196],
14206
- "black": [0, 0, 0],
14207
- "blanchedalmond": [255, 235, 205],
14208
- "blue": [0, 0, 255],
14209
- "blueviolet": [138, 43, 226],
14210
- "brown": [165, 42, 42],
14211
- "burlywood": [222, 184, 135],
14212
- "cadetblue": [95, 158, 160],
14213
- "chartreuse": [127, 255, 0],
14214
- "chocolate": [210, 105, 30],
14215
- "coral": [255, 127, 80],
14216
- "cornflowerblue": [100, 149, 237],
14217
- "cornsilk": [255, 248, 220],
14218
- "crimson": [220, 20, 60],
14219
- "cyan": [0, 255, 255],
14220
- "darkblue": [0, 0, 139],
14221
- "darkcyan": [0, 139, 139],
14222
- "darkgoldenrod": [184, 134, 11],
14223
- "darkgray": [169, 169, 169],
14224
- "darkgreen": [0, 100, 0],
14225
- "darkgrey": [169, 169, 169],
14226
- "darkkhaki": [189, 183, 107],
14227
- "darkmagenta": [139, 0, 139],
14228
- "darkolivegreen": [85, 107, 47],
14229
- "darkorange": [255, 140, 0],
14230
- "darkorchid": [153, 50, 204],
14231
- "darkred": [139, 0, 0],
14232
- "darksalmon": [233, 150, 122],
14233
- "darkseagreen": [143, 188, 143],
14234
- "darkslateblue": [72, 61, 139],
14235
- "darkslategray": [47, 79, 79],
14236
- "darkslategrey": [47, 79, 79],
14237
- "darkturquoise": [0, 206, 209],
14238
- "darkviolet": [148, 0, 211],
14239
- "deeppink": [255, 20, 147],
14240
- "deepskyblue": [0, 191, 255],
14241
- "dimgray": [105, 105, 105],
14242
- "dimgrey": [105, 105, 105],
14243
- "dodgerblue": [30, 144, 255],
14244
- "firebrick": [178, 34, 34],
14245
- "floralwhite": [255, 250, 240],
14246
- "forestgreen": [34, 139, 34],
14247
- "fuchsia": [255, 0, 255],
14248
- "gainsboro": [220, 220, 220],
14249
- "ghostwhite": [248, 248, 255],
14250
- "gold": [255, 215, 0],
14251
- "goldenrod": [218, 165, 32],
14252
- "gray": [128, 128, 128],
14253
- "green": [0, 128, 0],
14254
- "greenyellow": [173, 255, 47],
14255
- "grey": [128, 128, 128],
14256
- "honeydew": [240, 255, 240],
14257
- "hotpink": [255, 105, 180],
14258
- "indianred": [205, 92, 92],
14259
- "indigo": [75, 0, 130],
14260
- "ivory": [255, 255, 240],
14261
- "khaki": [240, 230, 140],
14262
- "lavender": [230, 230, 250],
14263
- "lavenderblush": [255, 240, 245],
14264
- "lawngreen": [124, 252, 0],
14265
- "lemonchiffon": [255, 250, 205],
14266
- "lightblue": [173, 216, 230],
14267
- "lightcoral": [240, 128, 128],
14268
- "lightcyan": [224, 255, 255],
14269
- "lightgoldenrodyellow": [250, 250, 210],
14270
- "lightgray": [211, 211, 211],
14271
- "lightgreen": [144, 238, 144],
14272
- "lightgrey": [211, 211, 211],
14273
- "lightpink": [255, 182, 193],
14274
- "lightsalmon": [255, 160, 122],
14275
- "lightseagreen": [32, 178, 170],
14276
- "lightskyblue": [135, 206, 250],
14277
- "lightslategray": [119, 136, 153],
14278
- "lightslategrey": [119, 136, 153],
14279
- "lightsteelblue": [176, 196, 222],
14280
- "lightyellow": [255, 255, 224],
14281
- "lime": [0, 255, 0],
14282
- "limegreen": [50, 205, 50],
14283
- "linen": [250, 240, 230],
14284
- "magenta": [255, 0, 255],
14285
- "maroon": [128, 0, 0],
14286
- "mediumaquamarine": [102, 205, 170],
14287
- "mediumblue": [0, 0, 205],
14288
- "mediumorchid": [186, 85, 211],
14289
- "mediumpurple": [147, 112, 219],
14290
- "mediumseagreen": [60, 179, 113],
14291
- "mediumslateblue": [123, 104, 238],
14292
- "mediumspringgreen": [0, 250, 154],
14293
- "mediumturquoise": [72, 209, 204],
14294
- "mediumvioletred": [199, 21, 133],
14295
- "midnightblue": [25, 25, 112],
14296
- "mintcream": [245, 255, 250],
14297
- "mistyrose": [255, 228, 225],
14298
- "moccasin": [255, 228, 181],
14299
- "navajowhite": [255, 222, 173],
14300
- "navy": [0, 0, 128],
14301
- "oldlace": [253, 245, 230],
14302
- "olive": [128, 128, 0],
14303
- "olivedrab": [107, 142, 35],
14304
- "orange": [255, 165, 0],
14305
- "orangered": [255, 69, 0],
14306
- "orchid": [218, 112, 214],
14307
- "palegoldenrod": [238, 232, 170],
14308
- "palegreen": [152, 251, 152],
14309
- "paleturquoise": [175, 238, 238],
14310
- "palevioletred": [219, 112, 147],
14311
- "papayawhip": [255, 239, 213],
14312
- "peachpuff": [255, 218, 185],
14313
- "peru": [205, 133, 63],
14314
- "pink": [255, 192, 203],
14315
- "plum": [221, 160, 221],
14316
- "powderblue": [176, 224, 230],
14317
- "purple": [128, 0, 128],
14318
- "rebeccapurple": [102, 51, 153],
14319
- "red": [255, 0, 0],
14320
- "rosybrown": [188, 143, 143],
14321
- "royalblue": [65, 105, 225],
14322
- "saddlebrown": [139, 69, 19],
14323
- "salmon": [250, 128, 114],
14324
- "sandybrown": [244, 164, 96],
14325
- "seagreen": [46, 139, 87],
14326
- "seashell": [255, 245, 238],
14327
- "sienna": [160, 82, 45],
14328
- "silver": [192, 192, 192],
14329
- "skyblue": [135, 206, 235],
14330
- "slateblue": [106, 90, 205],
14331
- "slategray": [112, 128, 144],
14332
- "slategrey": [112, 128, 144],
14333
- "snow": [255, 250, 250],
14334
- "springgreen": [0, 255, 127],
14335
- "steelblue": [70, 130, 180],
14336
- "tan": [210, 180, 140],
14337
- "teal": [0, 128, 128],
14338
- "thistle": [216, 191, 216],
14339
- "tomato": [255, 99, 71],
14340
- "turquoise": [64, 224, 208],
14341
- "violet": [238, 130, 238],
14342
- "wheat": [245, 222, 179],
14343
- "white": [255, 255, 255],
14344
- "whitesmoke": [245, 245, 245],
14345
- "yellow": [255, 255, 0],
14346
- "yellowgreen": [154, 205, 50]
14347
- };
14348
- const colorName$1 = /* @__PURE__ */ getDefaultExportFromCjs(colorName);
14349
- const hexCharacters = "a-f\\d";
14350
- const match3or4Hex = `#?[${hexCharacters}]{3}[${hexCharacters}]?`;
14351
- const match6or8Hex = `#?[${hexCharacters}]{6}([${hexCharacters}]{2})?`;
14352
- const nonHexChars = new RegExp(`[^#${hexCharacters}]`, "gi");
14353
- const validHexSize = new RegExp(`^${match3or4Hex}$|^${match6or8Hex}$`, "i");
14354
- var hexRgb = (hex, options = {}) => {
14355
- if (typeof hex !== "string" || nonHexChars.test(hex) || !validHexSize.test(hex)) {
14356
- throw new TypeError("Expected a valid hex string");
14357
- }
14358
- hex = hex.replace(/^#/, "");
14359
- let alphaFromHex = 1;
14360
- if (hex.length === 8) {
14361
- alphaFromHex = Number.parseInt(hex.slice(6, 8), 16) / 255;
14362
- hex = hex.slice(0, 6);
14363
- }
14364
- if (hex.length === 4) {
14365
- alphaFromHex = Number.parseInt(hex.slice(3, 4).repeat(2), 16) / 255;
14366
- hex = hex.slice(0, 3);
14367
- }
14368
- if (hex.length === 3) {
14369
- hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];
14370
- }
14371
- const number2 = Number.parseInt(hex, 16);
14372
- const red = number2 >> 16;
14373
- const green = number2 >> 8 & 255;
14374
- const blue = number2 & 255;
14375
- const alpha = typeof options.alpha === "number" ? options.alpha : alphaFromHex;
14376
- if (options.format === "array") {
14377
- return [red, green, blue, alpha];
14378
- }
14379
- if (options.format === "css") {
14380
- const alphaString = alpha === 1 ? "" : ` / ${Number((alpha * 100).toFixed(2))}%`;
14381
- return `rgb(${red} ${green} ${blue}${alphaString})`;
14382
- }
14383
- return { red, green, blue, alpha };
14384
- };
14385
- const hex2Rgb = /* @__PURE__ */ getDefaultExportFromCjs(hexRgb);
14118
+ var colorName$1;
14119
+ var hasRequiredColorName;
14120
+ function requireColorName() {
14121
+ if (hasRequiredColorName) return colorName$1;
14122
+ hasRequiredColorName = 1;
14123
+ colorName$1 = {
14124
+ "aliceblue": [240, 248, 255],
14125
+ "antiquewhite": [250, 235, 215],
14126
+ "aqua": [0, 255, 255],
14127
+ "aquamarine": [127, 255, 212],
14128
+ "azure": [240, 255, 255],
14129
+ "beige": [245, 245, 220],
14130
+ "bisque": [255, 228, 196],
14131
+ "black": [0, 0, 0],
14132
+ "blanchedalmond": [255, 235, 205],
14133
+ "blue": [0, 0, 255],
14134
+ "blueviolet": [138, 43, 226],
14135
+ "brown": [165, 42, 42],
14136
+ "burlywood": [222, 184, 135],
14137
+ "cadetblue": [95, 158, 160],
14138
+ "chartreuse": [127, 255, 0],
14139
+ "chocolate": [210, 105, 30],
14140
+ "coral": [255, 127, 80],
14141
+ "cornflowerblue": [100, 149, 237],
14142
+ "cornsilk": [255, 248, 220],
14143
+ "crimson": [220, 20, 60],
14144
+ "cyan": [0, 255, 255],
14145
+ "darkblue": [0, 0, 139],
14146
+ "darkcyan": [0, 139, 139],
14147
+ "darkgoldenrod": [184, 134, 11],
14148
+ "darkgray": [169, 169, 169],
14149
+ "darkgreen": [0, 100, 0],
14150
+ "darkgrey": [169, 169, 169],
14151
+ "darkkhaki": [189, 183, 107],
14152
+ "darkmagenta": [139, 0, 139],
14153
+ "darkolivegreen": [85, 107, 47],
14154
+ "darkorange": [255, 140, 0],
14155
+ "darkorchid": [153, 50, 204],
14156
+ "darkred": [139, 0, 0],
14157
+ "darksalmon": [233, 150, 122],
14158
+ "darkseagreen": [143, 188, 143],
14159
+ "darkslateblue": [72, 61, 139],
14160
+ "darkslategray": [47, 79, 79],
14161
+ "darkslategrey": [47, 79, 79],
14162
+ "darkturquoise": [0, 206, 209],
14163
+ "darkviolet": [148, 0, 211],
14164
+ "deeppink": [255, 20, 147],
14165
+ "deepskyblue": [0, 191, 255],
14166
+ "dimgray": [105, 105, 105],
14167
+ "dimgrey": [105, 105, 105],
14168
+ "dodgerblue": [30, 144, 255],
14169
+ "firebrick": [178, 34, 34],
14170
+ "floralwhite": [255, 250, 240],
14171
+ "forestgreen": [34, 139, 34],
14172
+ "fuchsia": [255, 0, 255],
14173
+ "gainsboro": [220, 220, 220],
14174
+ "ghostwhite": [248, 248, 255],
14175
+ "gold": [255, 215, 0],
14176
+ "goldenrod": [218, 165, 32],
14177
+ "gray": [128, 128, 128],
14178
+ "green": [0, 128, 0],
14179
+ "greenyellow": [173, 255, 47],
14180
+ "grey": [128, 128, 128],
14181
+ "honeydew": [240, 255, 240],
14182
+ "hotpink": [255, 105, 180],
14183
+ "indianred": [205, 92, 92],
14184
+ "indigo": [75, 0, 130],
14185
+ "ivory": [255, 255, 240],
14186
+ "khaki": [240, 230, 140],
14187
+ "lavender": [230, 230, 250],
14188
+ "lavenderblush": [255, 240, 245],
14189
+ "lawngreen": [124, 252, 0],
14190
+ "lemonchiffon": [255, 250, 205],
14191
+ "lightblue": [173, 216, 230],
14192
+ "lightcoral": [240, 128, 128],
14193
+ "lightcyan": [224, 255, 255],
14194
+ "lightgoldenrodyellow": [250, 250, 210],
14195
+ "lightgray": [211, 211, 211],
14196
+ "lightgreen": [144, 238, 144],
14197
+ "lightgrey": [211, 211, 211],
14198
+ "lightpink": [255, 182, 193],
14199
+ "lightsalmon": [255, 160, 122],
14200
+ "lightseagreen": [32, 178, 170],
14201
+ "lightskyblue": [135, 206, 250],
14202
+ "lightslategray": [119, 136, 153],
14203
+ "lightslategrey": [119, 136, 153],
14204
+ "lightsteelblue": [176, 196, 222],
14205
+ "lightyellow": [255, 255, 224],
14206
+ "lime": [0, 255, 0],
14207
+ "limegreen": [50, 205, 50],
14208
+ "linen": [250, 240, 230],
14209
+ "magenta": [255, 0, 255],
14210
+ "maroon": [128, 0, 0],
14211
+ "mediumaquamarine": [102, 205, 170],
14212
+ "mediumblue": [0, 0, 205],
14213
+ "mediumorchid": [186, 85, 211],
14214
+ "mediumpurple": [147, 112, 219],
14215
+ "mediumseagreen": [60, 179, 113],
14216
+ "mediumslateblue": [123, 104, 238],
14217
+ "mediumspringgreen": [0, 250, 154],
14218
+ "mediumturquoise": [72, 209, 204],
14219
+ "mediumvioletred": [199, 21, 133],
14220
+ "midnightblue": [25, 25, 112],
14221
+ "mintcream": [245, 255, 250],
14222
+ "mistyrose": [255, 228, 225],
14223
+ "moccasin": [255, 228, 181],
14224
+ "navajowhite": [255, 222, 173],
14225
+ "navy": [0, 0, 128],
14226
+ "oldlace": [253, 245, 230],
14227
+ "olive": [128, 128, 0],
14228
+ "olivedrab": [107, 142, 35],
14229
+ "orange": [255, 165, 0],
14230
+ "orangered": [255, 69, 0],
14231
+ "orchid": [218, 112, 214],
14232
+ "palegoldenrod": [238, 232, 170],
14233
+ "palegreen": [152, 251, 152],
14234
+ "paleturquoise": [175, 238, 238],
14235
+ "palevioletred": [219, 112, 147],
14236
+ "papayawhip": [255, 239, 213],
14237
+ "peachpuff": [255, 218, 185],
14238
+ "peru": [205, 133, 63],
14239
+ "pink": [255, 192, 203],
14240
+ "plum": [221, 160, 221],
14241
+ "powderblue": [176, 224, 230],
14242
+ "purple": [128, 0, 128],
14243
+ "rebeccapurple": [102, 51, 153],
14244
+ "red": [255, 0, 0],
14245
+ "rosybrown": [188, 143, 143],
14246
+ "royalblue": [65, 105, 225],
14247
+ "saddlebrown": [139, 69, 19],
14248
+ "salmon": [250, 128, 114],
14249
+ "sandybrown": [244, 164, 96],
14250
+ "seagreen": [46, 139, 87],
14251
+ "seashell": [255, 245, 238],
14252
+ "sienna": [160, 82, 45],
14253
+ "silver": [192, 192, 192],
14254
+ "skyblue": [135, 206, 235],
14255
+ "slateblue": [106, 90, 205],
14256
+ "slategray": [112, 128, 144],
14257
+ "slategrey": [112, 128, 144],
14258
+ "snow": [255, 250, 250],
14259
+ "springgreen": [0, 255, 127],
14260
+ "steelblue": [70, 130, 180],
14261
+ "tan": [210, 180, 140],
14262
+ "teal": [0, 128, 128],
14263
+ "thistle": [216, 191, 216],
14264
+ "tomato": [255, 99, 71],
14265
+ "turquoise": [64, 224, 208],
14266
+ "violet": [238, 130, 238],
14267
+ "wheat": [245, 222, 179],
14268
+ "white": [255, 255, 255],
14269
+ "whitesmoke": [245, 245, 245],
14270
+ "yellow": [255, 255, 0],
14271
+ "yellowgreen": [154, 205, 50]
14272
+ };
14273
+ return colorName$1;
14274
+ }
14275
+ var colorNameExports = requireColorName();
14276
+ const colorName = /* @__PURE__ */ getDefaultExportFromCjs(colorNameExports);
14277
+ var hexRgb;
14278
+ var hasRequiredHexRgb;
14279
+ function requireHexRgb() {
14280
+ if (hasRequiredHexRgb) return hexRgb;
14281
+ hasRequiredHexRgb = 1;
14282
+ const hexCharacters = "a-f\\d";
14283
+ const match3or4Hex = `#?[${hexCharacters}]{3}[${hexCharacters}]?`;
14284
+ const match6or8Hex = `#?[${hexCharacters}]{6}([${hexCharacters}]{2})?`;
14285
+ const nonHexChars = new RegExp(`[^#${hexCharacters}]`, "gi");
14286
+ const validHexSize = new RegExp(`^${match3or4Hex}$|^${match6or8Hex}$`, "i");
14287
+ hexRgb = (hex, options = {}) => {
14288
+ if (typeof hex !== "string" || nonHexChars.test(hex) || !validHexSize.test(hex)) {
14289
+ throw new TypeError("Expected a valid hex string");
14290
+ }
14291
+ hex = hex.replace(/^#/, "");
14292
+ let alphaFromHex = 1;
14293
+ if (hex.length === 8) {
14294
+ alphaFromHex = Number.parseInt(hex.slice(6, 8), 16) / 255;
14295
+ hex = hex.slice(0, 6);
14296
+ }
14297
+ if (hex.length === 4) {
14298
+ alphaFromHex = Number.parseInt(hex.slice(3, 4).repeat(2), 16) / 255;
14299
+ hex = hex.slice(0, 3);
14300
+ }
14301
+ if (hex.length === 3) {
14302
+ hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];
14303
+ }
14304
+ const number2 = Number.parseInt(hex, 16);
14305
+ const red = number2 >> 16;
14306
+ const green = number2 >> 8 & 255;
14307
+ const blue = number2 & 255;
14308
+ const alpha = typeof options.alpha === "number" ? options.alpha : alphaFromHex;
14309
+ if (options.format === "array") {
14310
+ return [red, green, blue, alpha];
14311
+ }
14312
+ if (options.format === "css") {
14313
+ const alphaString = alpha === 1 ? "" : ` / ${Number((alpha * 100).toFixed(2))}%`;
14314
+ return `rgb(${red} ${green} ${blue}${alphaString})`;
14315
+ }
14316
+ return { red, green, blue, alpha };
14317
+ };
14318
+ return hexRgb;
14319
+ }
14320
+ var hexRgbExports = requireHexRgb();
14321
+ const hex2Rgb = /* @__PURE__ */ getDefaultExportFromCjs(hexRgbExports);
14386
14322
  const pattern$8 = /^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/;
14387
14323
  var hexRe$1 = new RegExp(pattern$8, "i");
14388
14324
  const float$1 = "-?\\d*(?:\\.\\d+)";
@@ -14451,21 +14387,21 @@ $
14451
14387
  var rgb4PercentageRe$1 = new RegExp(pattern$6$1);
14452
14388
  const pattern$7$1 = /^transparent$/;
14453
14389
  var transparentRe$1 = new RegExp(pattern$7$1, "i");
14454
- const clamp$3 = (num, min, max) => Math.min(Math.max(min, num), max);
14390
+ const clamp$1 = (num, min, max) => Math.min(Math.max(min, num), max);
14455
14391
  const parseRGB$1 = (num) => {
14456
14392
  let n2 = num;
14457
14393
  if (typeof n2 !== "number") n2 = n2.endsWith("%") ? parseFloat(n2) * 255 / 100 : parseFloat(n2);
14458
- return clamp$3(Math.round(n2), 0, 255);
14394
+ return clamp$1(Math.round(n2), 0, 255);
14459
14395
  };
14460
- const parsePercentage$1 = (percentage2) => clamp$3(parseFloat(percentage2), 0, 100);
14396
+ const parsePercentage$1 = (percentage2) => clamp$1(parseFloat(percentage2), 0, 100);
14461
14397
  function parseAlpha$1(alpha) {
14462
14398
  let a = alpha;
14463
14399
  if (typeof a !== "number") a = a.endsWith("%") ? parseFloat(a) / 100 : parseFloat(a);
14464
- return clamp$3(a, 0, 1);
14400
+ return clamp$1(a, 0, 1);
14465
14401
  }
14466
14402
  function getHEX$1(hex) {
14467
- const [r2, g, b2, a] = hex2Rgb(hex, { format: "array" });
14468
- return getRGB$1([null, ...[r2, g, b2, a]]);
14403
+ const [r2, g, b, a] = hex2Rgb(hex, { format: "array" });
14404
+ return getRGB$1([null, ...[r2, g, b, a]]);
14469
14405
  }
14470
14406
  function getHSL$1([, h2, s, l, a = 1]) {
14471
14407
  let hh = h2;
@@ -14482,10 +14418,10 @@ function getHSL$1([, h2, s, l, a = 1]) {
14482
14418
  alpha: parseAlpha$1(a === null ? 1 : a)
14483
14419
  };
14484
14420
  }
14485
- function getRGB$1([, r2, g, b2, a = 1]) {
14421
+ function getRGB$1([, r2, g, b, a = 1]) {
14486
14422
  return {
14487
14423
  type: "rgb",
14488
- values: [r2, g, b2].map(parseRGB$1),
14424
+ values: [r2, g, b].map(parseRGB$1),
14489
14425
  alpha: parseAlpha$1(a === null ? 1 : a)
14490
14426
  };
14491
14427
  }
@@ -14504,80 +14440,111 @@ const parseCSSColor$1 = (str) => {
14504
14440
  const rgb = rgb4NumberRe$1.exec(str) || rgb4PercentageRe$1.exec(str) || rgb3NumberRe$1.exec(str) || rgb3PercentageRe$1.exec(str);
14505
14441
  if (rgb) return getRGB$1(rgb);
14506
14442
  if (transparentRe$1.exec(str)) return getRGB$1([null, 0, 0, 0, 0]);
14507
- const cn2 = colorName$1[str.toLowerCase()];
14443
+ const cn2 = colorName[str.toLowerCase()];
14508
14444
  if (cn2) return getRGB$1([null, cn2[0], cn2[1], cn2[2], 1]);
14509
14445
  return null;
14510
14446
  };
14511
- function hsl2rgb(hsl) {
14512
- var h2 = hsl[0] / 360, s = hsl[1] / 100, l = hsl[2] / 100, t1, t2, t3, rgb, val;
14513
- if (s == 0) {
14514
- val = l * 255;
14515
- return [val, val, val];
14516
- }
14517
- if (l < 0.5)
14518
- t2 = l * (1 + s);
14519
- else
14520
- t2 = l + s - l * s;
14521
- t1 = 2 * l - t2;
14522
- rgb = [0, 0, 0];
14523
- for (var i = 0; i < 3; i++) {
14524
- t3 = h2 + 1 / 3 * -(i - 1);
14525
- t3 < 0 && t3++;
14526
- t3 > 1 && t3--;
14527
- if (6 * t3 < 1)
14528
- val = t1 + (t2 - t1) * 6 * t3;
14529
- else if (2 * t3 < 1)
14530
- val = t2;
14531
- else if (3 * t3 < 2)
14532
- val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
14447
+ var hsl2rgb_1;
14448
+ var hasRequiredHsl2rgb;
14449
+ function requireHsl2rgb() {
14450
+ if (hasRequiredHsl2rgb) return hsl2rgb_1;
14451
+ hasRequiredHsl2rgb = 1;
14452
+ function hsl2rgb2(hsl) {
14453
+ var h2 = hsl[0] / 360, s = hsl[1] / 100, l = hsl[2] / 100, t1, t2, t3, rgb, val;
14454
+ if (s == 0) {
14455
+ val = l * 255;
14456
+ return [val, val, val];
14457
+ }
14458
+ if (l < 0.5)
14459
+ t2 = l * (1 + s);
14460
+ else
14461
+ t2 = l + s - l * s;
14462
+ t1 = 2 * l - t2;
14463
+ rgb = [0, 0, 0];
14464
+ for (var i = 0; i < 3; i++) {
14465
+ t3 = h2 + 1 / 3 * -(i - 1);
14466
+ t3 < 0 && t3++;
14467
+ t3 > 1 && t3--;
14468
+ if (6 * t3 < 1)
14469
+ val = t1 + (t2 - t1) * 6 * t3;
14470
+ else if (2 * t3 < 1)
14471
+ val = t2;
14472
+ else if (3 * t3 < 2)
14473
+ val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
14474
+ else
14475
+ val = t1;
14476
+ rgb[i] = val * 255;
14477
+ }
14478
+ return rgb;
14479
+ }
14480
+ hsl2rgb_1 = hsl2rgb2;
14481
+ return hsl2rgb_1;
14482
+ }
14483
+ var hsl2rgbExports = requireHsl2rgb();
14484
+ const hsl2rgb = /* @__PURE__ */ getDefaultExportFromCjs(hsl2rgbExports);
14485
+ var clamp_1;
14486
+ var hasRequiredClamp;
14487
+ function requireClamp() {
14488
+ if (hasRequiredClamp) return clamp_1;
14489
+ hasRequiredClamp = 1;
14490
+ function clamp2(val, min, max) {
14491
+ return Math.min(Math.max(val, min), max);
14492
+ }
14493
+ clamp_1 = clamp2;
14494
+ return clamp_1;
14495
+ }
14496
+ var rgb2hex_1;
14497
+ var hasRequiredRgb2hex;
14498
+ function requireRgb2hex() {
14499
+ if (hasRequiredRgb2hex) return rgb2hex_1;
14500
+ hasRequiredRgb2hex = 1;
14501
+ var clamp2 = requireClamp();
14502
+ function componentToHex(c) {
14503
+ var value = Math.round(clamp2(c, 0, 255));
14504
+ var hex = value.toString(16);
14505
+ return hex.length == 1 ? "0" + hex : hex;
14506
+ }
14507
+ function rgb2hex2(rgb) {
14508
+ var alpha = rgb.length === 4 ? componentToHex(rgb[3] * 255) : "";
14509
+ return "#" + componentToHex(rgb[0]) + componentToHex(rgb[1]) + componentToHex(rgb[2]) + alpha;
14510
+ }
14511
+ rgb2hex_1 = rgb2hex2;
14512
+ return rgb2hex_1;
14513
+ }
14514
+ var rgb2hexExports = requireRgb2hex();
14515
+ const rgb2hex = /* @__PURE__ */ getDefaultExportFromCjs(rgb2hexExports);
14516
+ var rgb2hsl_1;
14517
+ var hasRequiredRgb2hsl;
14518
+ function requireRgb2hsl() {
14519
+ if (hasRequiredRgb2hsl) return rgb2hsl_1;
14520
+ hasRequiredRgb2hsl = 1;
14521
+ function rgb2hsl2(rgb) {
14522
+ 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;
14523
+ if (max == min)
14524
+ h2 = 0;
14525
+ else if (r2 == max)
14526
+ h2 = (g - b) / delta;
14527
+ else if (g == max)
14528
+ h2 = 2 + (b - r2) / delta;
14529
+ else if (b == max)
14530
+ h2 = 4 + (r2 - g) / delta;
14531
+ h2 = Math.min(h2 * 60, 360);
14532
+ if (h2 < 0)
14533
+ h2 += 360;
14534
+ l = (min + max) / 2;
14535
+ if (max == min)
14536
+ s = 0;
14537
+ else if (l <= 0.5)
14538
+ s = delta / (max + min);
14533
14539
  else
14534
- val = t1;
14535
- rgb[i] = val * 255;
14536
- }
14537
- return rgb;
14538
- }
14539
- var hsl2rgb_1 = hsl2rgb;
14540
- const hsl2rgb$1 = /* @__PURE__ */ getDefaultExportFromCjs(hsl2rgb_1);
14541
- function clamp$2(val, min, max) {
14542
- return Math.min(Math.max(val, min), max);
14543
- }
14544
- var clamp_1 = clamp$2;
14545
- var clamp$1 = clamp_1;
14546
- function componentToHex(c) {
14547
- var value = Math.round(clamp$1(c, 0, 255));
14548
- var hex = value.toString(16);
14549
- return hex.length == 1 ? "0" + hex : hex;
14550
- }
14551
- function rgb2hex(rgb) {
14552
- var alpha = rgb.length === 4 ? componentToHex(rgb[3] * 255) : "";
14553
- return "#" + componentToHex(rgb[0]) + componentToHex(rgb[1]) + componentToHex(rgb[2]) + alpha;
14554
- }
14555
- var rgb2hex_1 = rgb2hex;
14556
- const rgb2hex$1 = /* @__PURE__ */ getDefaultExportFromCjs(rgb2hex_1);
14557
- 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;
14559
- if (max == min)
14560
- h2 = 0;
14561
- else if (r2 == max)
14562
- h2 = (g - b2) / delta;
14563
- else if (g == max)
14564
- h2 = 2 + (b2 - r2) / delta;
14565
- else if (b2 == max)
14566
- h2 = 4 + (r2 - g) / delta;
14567
- h2 = Math.min(h2 * 60, 360);
14568
- if (h2 < 0)
14569
- h2 += 360;
14570
- l = (min + max) / 2;
14571
- if (max == min)
14572
- s = 0;
14573
- else if (l <= 0.5)
14574
- s = delta / (max + min);
14575
- else
14576
- s = delta / (2 - max - min);
14577
- return [h2, s * 100, l * 100];
14578
- }
14579
- var rgb2hsl_1 = rgb2hsl;
14580
- const rgb2hsl$1 = /* @__PURE__ */ getDefaultExportFromCjs(rgb2hsl_1);
14540
+ s = delta / (2 - max - min);
14541
+ return [h2, s * 100, l * 100];
14542
+ }
14543
+ rgb2hsl_1 = rgb2hsl2;
14544
+ return rgb2hsl_1;
14545
+ }
14546
+ var rgb2hslExports = requireRgb2hsl();
14547
+ const rgb2hsl = /* @__PURE__ */ getDefaultExportFromCjs(rgb2hslExports);
14581
14548
  /**
14582
14549
  * mix-css-color
14583
14550
  * @version v0.2.0
@@ -14587,25 +14554,25 @@ const rgb2hsl$1 = /* @__PURE__ */ getDefaultExportFromCjs(rgb2hsl_1);
14587
14554
  function parseColor(color) {
14588
14555
  const res = parseCSSColor$1(color);
14589
14556
  if (res === null) return null;
14590
- if (res.type === "hsl") res.values = hsl2rgb$1(res.values);
14557
+ if (res.type === "hsl") res.values = hsl2rgb(res.values);
14591
14558
  return res;
14592
14559
  }
14593
14560
  function mix(color1, color2, percentage2 = 50) {
14594
14561
  const c1 = parseColor(color1);
14595
14562
  const c2 = parseColor(color2);
14596
14563
  if (!c1 || !c2) return null;
14597
- const p2 = Math.min(Math.max(0, percentage2), 100) / 100;
14598
- const w2 = p2 * 2 - 1;
14564
+ const p = Math.min(Math.max(0, percentage2), 100) / 100;
14565
+ const w2 = p * 2 - 1;
14599
14566
  const a = c1.alpha - c2.alpha;
14600
14567
  const w1 = ((w2 * a === -1 ? w2 : (w2 + a) / (1 + w2 * a)) + 1) / 2;
14601
14568
  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));
14569
+ const [r2, g, b] = c1.values.map((c, i) => Math.round(c1.values[i] * w1 + c2.values[i] * w22));
14570
+ const alpha = parseFloat((c1.alpha * p + c2.alpha * (1 - p)).toFixed(8));
14604
14571
  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]
14572
+ hex: rgb2hex([r2, g, b]),
14573
+ hexa: rgb2hex([r2, g, b, alpha]),
14574
+ rgba: [r2, g, b, alpha],
14575
+ hsla: [...rgb2hsl([r2, g, b]).map(Math.round), alpha]
14609
14576
  };
14610
14577
  }
14611
14578
  const pattern = /^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/;
@@ -14689,8 +14656,8 @@ function parseAlpha(alpha) {
14689
14656
  return clamp(a, 0, 1);
14690
14657
  }
14691
14658
  function getHEX(hex) {
14692
- const [r2, g, b2, a] = hex2Rgb(hex, { format: "array" });
14693
- return getRGB([null, ...[r2, g, b2, a]]);
14659
+ const [r2, g, b, a] = hex2Rgb(hex, { format: "array" });
14660
+ return getRGB([null, ...[r2, g, b, a]]);
14694
14661
  }
14695
14662
  function getHSL([, h2, s, l, a = 1]) {
14696
14663
  let hh = h2;
@@ -14707,10 +14674,10 @@ function getHSL([, h2, s, l, a = 1]) {
14707
14674
  alpha: parseAlpha(a === null ? 1 : a)
14708
14675
  };
14709
14676
  }
14710
- function getRGB([, r2, g, b2, a = 1]) {
14677
+ function getRGB([, r2, g, b, a = 1]) {
14711
14678
  return {
14712
14679
  type: "rgb",
14713
- values: [r2, g, b2].map(parseRGB),
14680
+ values: [r2, g, b].map(parseRGB),
14714
14681
  alpha: parseAlpha(a === null ? 1 : a)
14715
14682
  };
14716
14683
  }
@@ -14729,7 +14696,7 @@ const parseCSSColor = (str) => {
14729
14696
  const rgb = rgb4NumberRe.exec(str) || rgb4PercentageRe.exec(str) || rgb3NumberRe.exec(str) || rgb3PercentageRe.exec(str);
14730
14697
  if (rgb) return getRGB(rgb);
14731
14698
  if (transparentRe.exec(str)) return getRGB([null, 0, 0, 0, 0]);
14732
- const cn2 = colorName$1[str.toLowerCase()];
14699
+ const cn2 = colorName[str.toLowerCase()];
14733
14700
  if (cn2) return getRGB([null, cn2[0], cn2[1], cn2[2], 1]);
14734
14701
  return null;
14735
14702
  };
@@ -14739,7 +14706,7 @@ const parseCSSColor = (str) => {
14739
14706
  * @link http://noeldelgado.github.io/values.js/
14740
14707
  * @license MIT
14741
14708
  */
14742
- const defaultNumberParam = (v, d2) => v === null || isNaN(v) || typeof v === "string" ? d2 : v;
14709
+ const defaultNumberParam = (v2, d) => v2 === null || isNaN(v2) || typeof v2 === "string" ? d : v2;
14743
14710
  class Values {
14744
14711
  constructor(color = "#000", type = "base", weight = 0) {
14745
14712
  [this.rgb, this.alpha, this.type, this.weight] = [[0, 0, 0], 1, type, weight];
@@ -14773,21 +14740,21 @@ class Values {
14773
14740
  return [...this.tints(weight).reverse(), Object.assign(this), ...this.shades(weight)];
14774
14741
  }
14775
14742
  hexString() {
14776
- return rgb2hex$1(this.alpha >= 1 ? this.rgb : [...this.rgb, this.alpha]);
14743
+ return rgb2hex(this.alpha >= 1 ? this.rgb : [...this.rgb, this.alpha]);
14777
14744
  }
14778
14745
  rgbString() {
14779
14746
  const channels = (this.alpha >= 1 ? this.rgb : [...this.rgb, this.alpha]).join(", ");
14780
14747
  return `${this.alpha >= 1 ? "rgb" : "rgba"}(${channels})`;
14781
14748
  }
14782
14749
  getBrightness() {
14783
- return Math.round(this.rgb.reduce((a, b2) => a + b2) / (255 * 3) * 100);
14750
+ return Math.round(this.rgb.reduce((a, b) => a + b) / (255 * 3) * 100);
14784
14751
  }
14785
- _setFromRGB([r2, g, b2, a]) {
14786
- [this.rgb, this.alpha] = [[r2, g, b2], a];
14752
+ _setFromRGB([r2, g, b, a]) {
14753
+ [this.rgb, this.alpha] = [[r2, g, b], a];
14787
14754
  return this;
14788
14755
  }
14789
14756
  _setFromHSL([h2, s, l, a]) {
14790
- [this.rgb, this.alpha] = [hsl2rgb$1([h2, s, l]).map(Math.round), a];
14757
+ [this.rgb, this.alpha] = [hsl2rgb([h2, s, l]).map(Math.round), a];
14791
14758
  return this;
14792
14759
  }
14793
14760
  }
@@ -15928,7 +15895,7 @@ const _Theme = class _Theme {
15928
15895
  });
15929
15896
  }
15930
15897
  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");
15898
+ return Object.keys(this.theme).filter((v2) => !_Theme.nonCssProperties.includes(v2)).map((p, i) => `${!i ? "" : " "}--rebilly-${p}: ${this.theme[p]};`).join("\n");
15932
15899
  }
15933
15900
  build() {
15934
15901
  this.overrideTheme();
@@ -17558,7 +17525,7 @@ function getShadowParent(element) {
17558
17525
  return null;
17559
17526
  }
17560
17527
  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;
17528
+ var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t2;
17562
17529
  try {
17563
17530
  state.data = {};
17564
17531
  state.options = {};
@@ -17635,7 +17602,7 @@ async function mount({ ...options } = {}) {
17635
17602
  }
17636
17603
  let hasNoPaymentMethods = false;
17637
17604
  if (data.payout) {
17638
- hasNoPaymentMethods = !((_s2 = data.readyToPayout) == null ? void 0 : _s2.length);
17605
+ hasNoPaymentMethods = !((_s = data.readyToPayout) == null ? void 0 : _s.length);
17639
17606
  } else {
17640
17607
  hasNoPaymentMethods = !((_t2 = data.readyToPay) == null ? void 0 : _t2.length);
17641
17608
  }
@@ -17673,7 +17640,7 @@ async function destroy() {
17673
17640
  if (state.form instanceof HTMLElement) {
17674
17641
  state.form.textContent = "";
17675
17642
  }
17676
- await hr.cancelAll();
17643
+ await er.cancelAll();
17677
17644
  state.loader.clearAll();
17678
17645
  }
17679
17646
  async function update({ newOptions = {} } = {}) {