@rebilly/instruments 9.23.0 → 9.24.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
@@ -5963,7 +5963,7 @@ function Jt(e2, t2) {
5963
5963
  return s;
5964
5964
  }
5965
5965
  var Gt = P$1;
5966
- const Yt = /* @__PURE__ */ wt(Gt), Qt = "56.7.0";
5966
+ const Yt = /* @__PURE__ */ wt(Gt), Qt = "56.8.0";
5967
5967
  let Xt = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Zt = (e2 = 21) => {
5968
5968
  let t2 = "", s = e2;
5969
5969
  for (; s--; )
@@ -7207,7 +7207,7 @@ function we$1({ apiHandler: e2 }) {
7207
7207
  }
7208
7208
  };
7209
7209
  }
7210
- function ke({ apiHandler: e2 }) {
7210
+ function ke$1({ apiHandler: e2 }) {
7211
7211
  return {
7212
7212
  /**
7213
7213
  * @returns { rebilly.PutEmailDeliverySettingsVerificationResponsePromise } response
@@ -9509,7 +9509,7 @@ class ws {
9509
9509
  constructor({ apiHandler: t2 }) {
9510
9510
  this.account = Ht({ apiHandler: t2 }), this.allowlists = te$1({ apiHandler: t2 }), this.amlChecks = ee$1({ apiHandler: t2 }), this.amlSettings = se({ apiHandler: t2 }), this.apiKeys = ne$1({ apiHandler: t2 }), this.applicationInstances = re$1({ apiHandler: t2 }), this.applications = ue({ apiHandler: t2 }), this.balanceTransactions = oe$1({ apiHandler: t2 }), this.billingPortals = le({ apiHandler: t2 }), this.blocklists = ce$1({ apiHandler: t2 }), this.broadcastMessages = ie$1({ apiHandler: t2 }), this.checkoutForms = ge$1({ apiHandler: t2 }), this.coupons = ae$1({ apiHandler: t2 }), this.creditMemos = me$1({ apiHandler: t2 }), this.customDomains = fe$1({ apiHandler: t2 }), this.customFields = $e({ apiHandler: t2 }), this.customerAuthentication = pe$1({ apiHandler: t2 }), this.customers = he$1({ apiHandler: t2 }), this.depositCustomPropertySets = ye$1({
9511
9511
  apiHandler: t2
9512
- }), this.depositRequests = Ae$1({ apiHandler: t2 }), this.depositStrategies = Re$1({ apiHandler: t2 }), this.digitalWallets = be$1({ apiHandler: t2 }), this.disputes = we$1({ apiHandler: t2 }), this.emailDeliverySettings = ke({ apiHandler: t2 }), this.emailMessages = de$1({ apiHandler: t2 }), this.emailNotifications = ve$1({ apiHandler: t2 }), this.events = Te$1({ apiHandler: t2 }), this.externalIdentifiers = Se$1({ apiHandler: t2 }), this.externalServicesSettings = Ee$1({
9512
+ }), this.depositRequests = Ae$1({ apiHandler: t2 }), this.depositStrategies = Re$1({ apiHandler: t2 }), this.digitalWallets = be$1({ apiHandler: t2 }), this.disputes = we$1({ apiHandler: t2 }), this.emailDeliverySettings = ke$1({ apiHandler: t2 }), this.emailMessages = de$1({ apiHandler: t2 }), this.emailNotifications = ve$1({ apiHandler: t2 }), this.events = Te$1({ apiHandler: t2 }), this.externalIdentifiers = Se$1({ apiHandler: t2 }), this.externalServicesSettings = Ee$1({
9513
9513
  apiHandler: t2
9514
9514
  }), this.fees = Ie$1({ apiHandler: t2 }), this.files = qe({ apiHandler: t2 }), this.gatewayAccounts = xe({ apiHandler: t2 }), this.integrations = Pe$1({ apiHandler: t2 }), this.invoices = Ce$1({ apiHandler: t2 }), this.journalAccounts = je$1({ apiHandler: t2 }), this.journalEntries = De$1({ apiHandler: t2 }), this.kycDocuments = Me$1({ apiHandler: t2 }), this.kycRequests = Oe$1({ apiHandler: t2 }), this.kycSettings = Fe$1({ apiHandler: t2 }), this.lists = Ke$1({ apiHandler: t2 }), this.memberships = Be({ apiHandler: t2 }), this.organizationExports = Le$1({ apiHandler: t2 }), this.organizations = Ne$1({ apiHandler: t2 }), this.paymentCardsBankNames = ze({ apiHandler: t2 }), this.paymentInstruments = Ue$1({ apiHandler: t2 }), this.paymentMethods = Ve({ apiHandler: t2 }), this.paymentTokens = We({ apiHandler: t2 }), this.payoutRequests = Je({ apiHandler: t2 }), this.payouts = Ge({ apiHandler: t2 }), this.plans = Ye({ apiHandler: t2 }), this.previews = Qe({ apiHandler: t2 }), this.products = Xe({ apiHandler: t2 }), this.profile = Ze({ apiHandler: t2 }), this.purchase = _e$1({ apiHandler: t2 }), this.quotes = He({ apiHandler: t2 }), this.resource = ts({ apiHandler: t2 }), this.riskScoreRules = es({ apiHandler: t2 }), this.roles = ss({ apiHandler: t2 }), this.search = ns({ apiHandler: t2 }), this.segments = rs({ apiHandler: t2 }), this.sendThroughAttribution = us({ apiHandler: t2 }), this.serviceCredentials = os({ apiHandler: t2 }), this.shippingRates = ls({ apiHandler: t2 }), this.status = cs({ apiHandler: t2 }), this.subscriptionCancellations = is({
9515
9515
  apiHandler: t2
@@ -10860,10 +10860,10 @@ async function updateSummary({ instrument } = {}) {
10860
10860
  var define_process_env_default = { NODE_ENV: "production" };
10861
10861
  var N = function() {
10862
10862
  return N = Object.assign || function(e2) {
10863
- for (var t2, n2 = 1, i = arguments.length; n2 < i; n2++) {
10863
+ for (var t2, n2 = 1, o2 = arguments.length; n2 < o2; n2++) {
10864
10864
  t2 = arguments[n2];
10865
- for (var o2 in t2)
10866
- Object.prototype.hasOwnProperty.call(t2, o2) && (e2[o2] = t2[o2]);
10865
+ for (var i in t2)
10866
+ Object.prototype.hasOwnProperty.call(t2, i) && (e2[i] = t2[i]);
10867
10867
  }
10868
10868
  return e2;
10869
10869
  }, N.apply(this, arguments);
@@ -10873,49 +10873,49 @@ function de(r2, e2) {
10873
10873
  for (var n2 in r2)
10874
10874
  Object.prototype.hasOwnProperty.call(r2, n2) && e2.indexOf(n2) < 0 && (t2[n2] = r2[n2]);
10875
10875
  if (r2 != null && typeof Object.getOwnPropertySymbols == "function")
10876
- for (var i = 0, n2 = Object.getOwnPropertySymbols(r2); i < n2.length; i++)
10877
- e2.indexOf(n2[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r2, n2[i]) && (t2[n2[i]] = r2[n2[i]]);
10876
+ for (var o2 = 0, n2 = Object.getOwnPropertySymbols(r2); o2 < n2.length; o2++)
10877
+ e2.indexOf(n2[o2]) < 0 && Object.prototype.propertyIsEnumerable.call(r2, n2[o2]) && (t2[n2[o2]] = r2[n2[o2]]);
10878
10878
  return t2;
10879
10879
  }
10880
10880
  function O(r2, e2, t2, n2) {
10881
- function i(o2) {
10882
- return o2 instanceof t2 ? o2 : new t2(function(a) {
10883
- a(o2);
10881
+ function o2(i) {
10882
+ return i instanceof t2 ? i : new t2(function(a) {
10883
+ a(i);
10884
10884
  });
10885
10885
  }
10886
- return new (t2 || (t2 = Promise))(function(o2, a) {
10886
+ return new (t2 || (t2 = Promise))(function(i, a) {
10887
10887
  function l(c) {
10888
10888
  try {
10889
- d2(n2.next(c));
10889
+ h(n2.next(c));
10890
10890
  } catch (s) {
10891
10891
  a(s);
10892
10892
  }
10893
10893
  }
10894
10894
  function u(c) {
10895
10895
  try {
10896
- d2(n2.throw(c));
10896
+ h(n2.throw(c));
10897
10897
  } catch (s) {
10898
10898
  a(s);
10899
10899
  }
10900
10900
  }
10901
- function d2(c) {
10902
- c.done ? o2(c.value) : i(c.value).then(l, u);
10901
+ function h(c) {
10902
+ c.done ? i(c.value) : o2(c.value).then(l, u);
10903
10903
  }
10904
- d2((n2 = n2.apply(r2, e2 || [])).next());
10904
+ h((n2 = n2.apply(r2, e2 || [])).next());
10905
10905
  });
10906
10906
  }
10907
10907
  function he(r2, e2, t2) {
10908
10908
  if (t2 || arguments.length === 2)
10909
- for (var n2 = 0, i = e2.length, o2; n2 < i; n2++)
10910
- (o2 || !(n2 in e2)) && (o2 || (o2 = Array.prototype.slice.call(e2, 0, n2)), o2[n2] = e2[n2]);
10911
- return r2.concat(o2 || Array.prototype.slice.call(e2));
10909
+ for (var n2 = 0, o2 = e2.length, i; n2 < o2; n2++)
10910
+ (i || !(n2 in e2)) && (i || (i = Array.prototype.slice.call(e2, 0, n2)), i[n2] = e2[n2]);
10911
+ return r2.concat(i || Array.prototype.slice.call(e2));
10912
10912
  }
10913
10913
  function Re(r2, e2) {
10914
10914
  return function(t2, n2) {
10915
10915
  return Object.prototype.hasOwnProperty.call(t2, n2);
10916
10916
  }(r2, e2) ? r2[e2] : void 0;
10917
10917
  }
10918
- var D = { default: "endpoint" }, M = { default: "tlsEndpoint" };
10918
+ var b = { default: "endpoint" }, j = { default: "tlsEndpoint" };
10919
10919
  function I(r2) {
10920
10920
  for (var e2 = "", t2 = 0; t2 < r2.length; ++t2)
10921
10921
  if (t2 > 0) {
@@ -10925,48 +10925,48 @@ function I(r2) {
10925
10925
  e2 += r2[t2].toUpperCase();
10926
10926
  return e2;
10927
10927
  }
10928
- var j = "Client timeout", k = "Network connection error", x = "Network request aborted", V = "Response cannot be parsed", T = "Blocked by CSP", A = "The endpoint parameter is not a valid URL", B = /* @__PURE__ */ I("WrongRegion"), q = /* @__PURE__ */ I("SubscriptionNotActive"), G2 = /* @__PURE__ */ I("UnsupportedVersion"), $ = /* @__PURE__ */ I("InstallationMethodRestricted"), H = /* @__PURE__ */ I("HostnameRestricted"), W = /* @__PURE__ */ I("IntegrationFailed"), P = "API key required", b = "API key not found", C = "API key expired", J = "Request cannot be parsed", Y = "Request failed", X = "Request failed to process", z = "Too many requests, rate limit exceeded", Q = "Not available for this origin", Z = "Not available with restricted header", ee = P, te = b, ne = C, fe = "3.9.0", S = "Failed to load the JS script of the agent", L = "9319";
10928
+ var F = "Client timeout", M = "Network connection error", x = "Network request aborted", B = "Response cannot be parsed", T = "Blocked by CSP", A = "The endpoint parameter is not a valid URL", V = /* @__PURE__ */ I("WrongRegion"), q = /* @__PURE__ */ I("SubscriptionNotActive"), G2 = /* @__PURE__ */ I("UnsupportedVersion"), $ = /* @__PURE__ */ I("InstallationMethodRestricted"), H = /* @__PURE__ */ I("HostnameRestricted"), W = /* @__PURE__ */ I("IntegrationFailed"), P = "API key required", D = "API key not found", C = "API key expired", J = "Request cannot be parsed", Y = "Request failed", X = "Request failed to process", Q = "Too many requests, rate limit exceeded", z = "Not available for this origin", Z = "Not available with restricted header", ee = P, te = D, ne = C, fe = "3.9.0", S = "Failed to load the JS script of the agent", L = "9319";
10929
10929
  function Ee(r2, e2) {
10930
- var t2, n2, i, o2, a, l, u = [], d2 = (t2 = function(h) {
10931
- var f = he([], h, true);
10930
+ var t2, n2, o2, i, a, l, u = [], h = (t2 = function(R2) {
10931
+ var d2 = he([], R2, true);
10932
10932
  return { current: function() {
10933
- return f[0];
10933
+ return d2[0];
10934
10934
  }, postpone: function() {
10935
- var R2 = f.shift();
10936
- R2 !== void 0 && f.push(R2);
10935
+ var f = d2.shift();
10936
+ f !== void 0 && d2.push(f);
10937
10937
  }, exclude: function() {
10938
- f.shift();
10938
+ d2.shift();
10939
10939
  } };
10940
- }(r2), o2 = 100, a = 3e3, l = 0, n2 = function() {
10941
- return Math.random() * Math.min(a, o2 * Math.pow(2, l++));
10942
- }, i = /* @__PURE__ */ new Set(), [t2.current(), function(h, f) {
10943
- var R2, _ = f instanceof Error ? f.message : "";
10944
- if (_ === T || _ === A)
10945
- t2.exclude(), R2 = 0;
10946
- else if (_ === L)
10940
+ }(r2), i = 100, a = 3e3, l = 0, n2 = function() {
10941
+ return Math.random() * Math.min(a, i * Math.pow(2, l++));
10942
+ }, o2 = /* @__PURE__ */ new Set(), [t2.current(), function(R2, d2) {
10943
+ var f, p2 = d2 instanceof Error ? d2.message : "";
10944
+ if (p2 === T || p2 === A)
10945
+ t2.exclude(), f = 0;
10946
+ else if (p2 === L)
10947
10947
  t2.exclude();
10948
- else if (_ === S) {
10949
- var p2 = Date.now() - h.getTime() < 50, g = t2.current();
10950
- g && p2 && !i.has(g) && (i.add(g), R2 = 0), t2.postpone();
10948
+ else if (p2 === S) {
10949
+ var _ = Date.now() - R2.getTime() < 50, g = t2.current();
10950
+ g && _ && !o2.has(g) && (o2.add(g), f = 0), t2.postpone();
10951
10951
  } else
10952
10952
  t2.postpone();
10953
10953
  var m = t2.current();
10954
- return m === void 0 ? void 0 : [m, R2 ?? h.getTime() + n2() - Date.now()];
10955
- }]), c = d2[0], s = d2[1];
10954
+ return m === void 0 ? void 0 : [m, f ?? R2.getTime() + n2() - Date.now()];
10955
+ }]), c = h[0], s = h[1];
10956
10956
  if (c === void 0)
10957
10957
  return Promise.reject(new TypeError("The list of script URL patterns is empty"));
10958
- var E = function(h) {
10959
- var f = /* @__PURE__ */ new Date(), R2 = function(p2) {
10960
- return u.push({ url: h, startedAt: f, finishedAt: /* @__PURE__ */ new Date(), error: p2 });
10961
- }, _ = e2(h);
10962
- return _.then(function() {
10963
- return R2();
10964
- }, R2), _.catch(function(p2) {
10958
+ var E = function(R2) {
10959
+ var d2 = /* @__PURE__ */ new Date(), f = function(_) {
10960
+ return u.push({ url: R2, startedAt: d2, finishedAt: /* @__PURE__ */ new Date(), error: _ });
10961
+ }, p2 = e2(R2);
10962
+ return p2.then(function() {
10963
+ return f();
10964
+ }, f), p2.catch(function(_) {
10965
10965
  if (u.length >= 5)
10966
- throw p2;
10967
- var g = s(f, p2);
10966
+ throw _;
10967
+ var g = s(d2, _);
10968
10968
  if (!g)
10969
- throw p2;
10969
+ throw _;
10970
10970
  var m, se2 = g[0], le2 = g[1];
10971
10971
  return (m = le2, new Promise(function(ue2) {
10972
10972
  return setTimeout(ue2, m);
@@ -10975,65 +10975,65 @@ function Ee(r2, e2) {
10975
10975
  });
10976
10976
  });
10977
10977
  };
10978
- return E(c).then(function(h) {
10979
- return [h, u];
10978
+ return E(c).then(function(R2) {
10979
+ return [R2, u];
10980
10980
  });
10981
10981
  }
10982
10982
  var re = "https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js", K = re;
10983
- function ie(r2) {
10983
+ function oe(r2) {
10984
10984
  var e2;
10985
10985
  r2.scriptUrlPattern;
10986
- var t2 = r2.token, n2 = r2.apiKey, i = n2 === void 0 ? t2 : n2, o2 = de(r2, ["scriptUrlPattern", "token", "apiKey"]), a = (e2 = Re(r2, "scriptUrlPattern")) !== null && e2 !== void 0 ? e2 : re, l = function() {
10986
+ var t2 = r2.token, n2 = r2.apiKey, o2 = n2 === void 0 ? t2 : n2, i = de(r2, ["scriptUrlPattern", "token", "apiKey"]), a = (e2 = Re(r2, "scriptUrlPattern")) !== null && e2 !== void 0 ? e2 : re, l = function() {
10987
10987
  var c = [], s = function() {
10988
10988
  c.push({ time: /* @__PURE__ */ new Date(), state: document.visibilityState });
10989
- }, E = function(h, f, R2, _) {
10990
- return h.addEventListener(f, R2, _), function() {
10991
- return h.removeEventListener(f, R2, _);
10989
+ }, E = function(R2, d2, f, p2) {
10990
+ return R2.addEventListener(d2, f, p2), function() {
10991
+ return R2.removeEventListener(d2, f, p2);
10992
10992
  };
10993
10993
  }(document, "visibilitychange", s);
10994
10994
  return s(), [c, E];
10995
- }(), u = l[0], d2 = l[1];
10995
+ }(), u = l[0], h = l[1];
10996
10996
  return Promise.resolve().then(function() {
10997
- if (!i || typeof i != "string")
10997
+ if (!o2 || typeof o2 != "string")
10998
10998
  throw new Error(P);
10999
10999
  var c = function(s, E) {
11000
- return (Array.isArray(s) ? s : [s]).map(function(h) {
11001
- return function(f, R2) {
11002
- var _ = encodeURIComponent;
11003
- return f.replace(/<[^<>]+>/g, function(p2) {
11004
- return p2 === "<version>" ? "3" : p2 === "<apiKey>" ? _(R2) : p2 === "<loaderVersion>" ? _(fe) : p2;
11000
+ return (Array.isArray(s) ? s : [s]).map(function(R2) {
11001
+ return function(d2, f) {
11002
+ var p2 = encodeURIComponent;
11003
+ return d2.replace(/<[^<>]+>/g, function(_) {
11004
+ return _ === "<version>" ? "3" : _ === "<apiKey>" ? p2(f) : _ === "<loaderVersion>" ? p2(fe) : _;
11005
11005
  });
11006
- }(String(h), E);
11006
+ }(String(R2), E);
11007
11007
  });
11008
- }(a, i);
11009
- return Ee(c, _e);
11008
+ }(a, o2);
11009
+ return Ee(c, pe);
11010
11010
  }).catch(function(c) {
11011
- throw d2(), function(s) {
11011
+ throw h(), function(s) {
11012
11012
  return s instanceof Error && s.message === L ? new Error(S) : s;
11013
11013
  }(c);
11014
11014
  }).then(function(c) {
11015
11015
  var s = c[0], E = c[1];
11016
- return d2(), s.load(N(N({}, o2), { ldi: { attempts: E, visibilityStates: u } }));
11016
+ return h(), s.load(N(N({}, i), { ldi: { attempts: E, visibilityStates: u } }));
11017
11017
  });
11018
11018
  }
11019
- function _e(r2) {
11020
- return function(e2, t2, n2, i) {
11021
- var o2, a = document, l = "securitypolicyviolation", u = function(c) {
11019
+ function pe(r2) {
11020
+ return function(e2, t2, n2, o2) {
11021
+ var i, a = document, l = "securitypolicyviolation", u = function(c) {
11022
11022
  var s = new URL(e2, location.href), E = c.blockedURI;
11023
- E !== s.href && E !== s.protocol.slice(0, -1) && E !== s.origin || (o2 = c, d2());
11023
+ E !== s.href && E !== s.protocol.slice(0, -1) && E !== s.origin || (i = c, h());
11024
11024
  };
11025
11025
  a.addEventListener(l, u);
11026
- var d2 = function() {
11026
+ var h = function() {
11027
11027
  return a.removeEventListener(l, u);
11028
11028
  };
11029
- return i == null || i.then(d2, d2), Promise.resolve().then(t2).then(function(c) {
11030
- return d2(), c;
11029
+ return o2 == null || o2.then(h, h), Promise.resolve().then(t2).then(function(c) {
11030
+ return h(), c;
11031
11031
  }, function(c) {
11032
11032
  return new Promise(function(s) {
11033
11033
  return setTimeout(s);
11034
11034
  }).then(function() {
11035
- if (d2(), o2)
11036
- return n2(o2);
11035
+ if (h(), i)
11036
+ return n2(i);
11037
11037
  throw c;
11038
11038
  });
11039
11039
  });
@@ -11051,50 +11051,50 @@ function _e(r2) {
11051
11051
  }
11052
11052
  }(e2))
11053
11053
  throw new Error(A);
11054
- var i = document.createElement("script"), o2 = function() {
11054
+ var o2 = document.createElement("script"), i = function() {
11055
11055
  var l;
11056
- return (l = i.parentNode) === null || l === void 0 ? void 0 : l.removeChild(i);
11056
+ return (l = o2.parentNode) === null || l === void 0 ? void 0 : l.removeChild(o2);
11057
11057
  }, a = document.head || document.getElementsByTagName("head")[0];
11058
- i.onload = function() {
11059
- o2(), t2();
11060
- }, i.onerror = function() {
11061
- o2(), n2(new Error(S));
11062
- }, i.async = true, i.src = e2, a.appendChild(i);
11058
+ o2.onload = function() {
11059
+ i(), t2();
11060
+ }, o2.onerror = function() {
11061
+ i(), n2(new Error(S));
11062
+ }, o2.async = true, o2.src = e2, a.appendChild(o2);
11063
11063
  });
11064
11064
  }(r2);
11065
11065
  }, function() {
11066
11066
  throw new Error(T);
11067
- }).then(pe);
11067
+ }).then(_e);
11068
11068
  }
11069
- function pe() {
11069
+ function _e() {
11070
11070
  var r2 = window, e2 = "__fpjs_p_l_b", t2 = r2[e2];
11071
- if (function(n2, i) {
11072
- var o2, a = (o2 = Object.getOwnPropertyDescriptor) === null || o2 === void 0 ? void 0 : o2.call(Object, n2, i);
11073
- a != null && a.configurable ? delete n2[i] : a && !a.writable || (n2[i] = void 0);
11071
+ if (function(n2, o2) {
11072
+ var i, a = (i = Object.getOwnPropertyDescriptor) === null || i === void 0 ? void 0 : i.call(Object, n2, o2);
11073
+ a != null && a.configurable ? delete n2[o2] : a && !a.writable || (n2[o2] = void 0);
11074
11074
  }(r2, e2), typeof (t2 == null ? void 0 : t2.load) != "function")
11075
11075
  throw new Error(L);
11076
11076
  return t2;
11077
11077
  }
11078
- var Oe = { load: ie, defaultScriptUrlPattern: K, ERROR_SCRIPT_LOAD_FAIL: S, ERROR_API_KEY_EXPIRED: C, ERROR_API_KEY_INVALID: b, ERROR_API_KEY_MISSING: P, ERROR_BAD_REQUEST_FORMAT: J, ERROR_BAD_RESPONSE_FORMAT: V, ERROR_CLIENT_TIMEOUT: j, ERROR_CSP_BLOCK: T, ERROR_FORBIDDEN_ENDPOINT: H, ERROR_FORBIDDEN_HEADER: Z, ERROR_FORBIDDEN_ORIGIN: Q, ERROR_GENERAL_SERVER_FAILURE: Y, ERROR_INSTALLATION_METHOD_RESTRICTED: $, ERROR_INTEGRATION_FAILURE: W, ERROR_INVALID_ENDPOINT: A, ERROR_NETWORK_ABORT: x, ERROR_NETWORK_CONNECTION: k, ERROR_RATE_LIMIT: z, ERROR_SERVER_TIMEOUT: X, ERROR_SUBSCRIPTION_NOT_ACTIVE: q, ERROR_TOKEN_EXPIRED: ne, ERROR_TOKEN_INVALID: te, ERROR_TOKEN_MISSING: ee, ERROR_UNSUPPORTED_VERSION: G2, ERROR_WRONG_REGION: B, defaultEndpoint: D, defaultTlsEndpoint: M };
11078
+ var Oe = { load: oe, defaultScriptUrlPattern: K, ERROR_SCRIPT_LOAD_FAIL: S, ERROR_API_KEY_EXPIRED: C, ERROR_API_KEY_INVALID: D, ERROR_API_KEY_MISSING: P, ERROR_BAD_REQUEST_FORMAT: J, ERROR_BAD_RESPONSE_FORMAT: B, ERROR_CLIENT_TIMEOUT: F, ERROR_CSP_BLOCK: T, ERROR_FORBIDDEN_ENDPOINT: H, ERROR_FORBIDDEN_HEADER: Z, ERROR_FORBIDDEN_ORIGIN: z, ERROR_GENERAL_SERVER_FAILURE: Y, ERROR_INSTALLATION_METHOD_RESTRICTED: $, ERROR_INTEGRATION_FAILURE: W, ERROR_INVALID_ENDPOINT: A, ERROR_NETWORK_ABORT: x, ERROR_NETWORK_CONNECTION: M, ERROR_RATE_LIMIT: Q, ERROR_SERVER_TIMEOUT: X, ERROR_SUBSCRIPTION_NOT_ACTIVE: q, ERROR_TOKEN_EXPIRED: ne, ERROR_TOKEN_INVALID: te, ERROR_TOKEN_MISSING: ee, ERROR_UNSUPPORTED_VERSION: G2, ERROR_WRONG_REGION: V, defaultEndpoint: b, defaultTlsEndpoint: j };
11079
11079
  const ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11080
11080
  __proto__: null,
11081
11081
  ERROR_API_KEY_EXPIRED: C,
11082
- ERROR_API_KEY_INVALID: b,
11082
+ ERROR_API_KEY_INVALID: D,
11083
11083
  ERROR_API_KEY_MISSING: P,
11084
11084
  ERROR_BAD_REQUEST_FORMAT: J,
11085
- ERROR_BAD_RESPONSE_FORMAT: V,
11086
- ERROR_CLIENT_TIMEOUT: j,
11085
+ ERROR_BAD_RESPONSE_FORMAT: B,
11086
+ ERROR_CLIENT_TIMEOUT: F,
11087
11087
  ERROR_CSP_BLOCK: T,
11088
11088
  ERROR_FORBIDDEN_ENDPOINT: H,
11089
11089
  ERROR_FORBIDDEN_HEADER: Z,
11090
- ERROR_FORBIDDEN_ORIGIN: Q,
11090
+ ERROR_FORBIDDEN_ORIGIN: z,
11091
11091
  ERROR_GENERAL_SERVER_FAILURE: Y,
11092
11092
  ERROR_INSTALLATION_METHOD_RESTRICTED: $,
11093
11093
  ERROR_INTEGRATION_FAILURE: W,
11094
11094
  ERROR_INVALID_ENDPOINT: A,
11095
11095
  ERROR_NETWORK_ABORT: x,
11096
- ERROR_NETWORK_CONNECTION: k,
11097
- ERROR_RATE_LIMIT: z,
11096
+ ERROR_NETWORK_CONNECTION: M,
11097
+ ERROR_RATE_LIMIT: Q,
11098
11098
  ERROR_SCRIPT_LOAD_FAIL: S,
11099
11099
  ERROR_SERVER_TIMEOUT: X,
11100
11100
  ERROR_SUBSCRIPTION_NOT_ACTIVE: q,
@@ -11102,13 +11102,13 @@ const ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11102
11102
  ERROR_TOKEN_INVALID: te,
11103
11103
  ERROR_TOKEN_MISSING: ee,
11104
11104
  ERROR_UNSUPPORTED_VERSION: G2,
11105
- ERROR_WRONG_REGION: B,
11105
+ ERROR_WRONG_REGION: V,
11106
11106
  default: Oe,
11107
- defaultEndpoint: D,
11107
+ defaultEndpoint: b,
11108
11108
  defaultScriptUrlPattern: K,
11109
- defaultTlsEndpoint: M,
11110
- load: ie
11111
- }, Symbol.toStringTag, { value: "Module" })), oe = "@fpjs@client@", ge = 60 * 60 * 24, ae = 60 * 60, ye = () => Date.now();
11109
+ defaultTlsEndpoint: j,
11110
+ load: oe
11111
+ }, Symbol.toStringTag, { value: "Module" })), ie = "@fpjs@client@", ge = 60 * 60 * 24, ae = 60 * 60, ye = () => Date.now();
11112
11112
  class Ie {
11113
11113
  constructor(e2) {
11114
11114
  var t2;
@@ -11129,7 +11129,7 @@ function ce(r2, e2) {
11129
11129
  return r2.replace(`${e2}__`, "");
11130
11130
  }
11131
11131
  class me {
11132
- constructor(e2 = oe) {
11132
+ constructor(e2 = ie) {
11133
11133
  this.prefix = e2;
11134
11134
  }
11135
11135
  set(e2, t2) {
@@ -11152,7 +11152,7 @@ class me {
11152
11152
  }
11153
11153
  }
11154
11154
  class we {
11155
- constructor(e2 = oe) {
11155
+ constructor(e2 = ie) {
11156
11156
  this.prefix = e2;
11157
11157
  }
11158
11158
  /**
@@ -11206,8 +11206,8 @@ class Se {
11206
11206
  const t2 = yield this.cache.get(e2.toKey());
11207
11207
  if (!t2)
11208
11208
  return;
11209
- const n2 = yield this.nowProvider(), i = Math.floor(n2 / 1e3);
11210
- if (t2.expiresAt < i) {
11209
+ const n2 = yield this.nowProvider(), o2 = Math.floor(n2 / 1e3);
11210
+ if (t2.expiresAt < o2) {
11211
11211
  yield this.cache.remove(e2.toKey());
11212
11212
  return;
11213
11213
  }
@@ -11288,7 +11288,7 @@ const Pe = {
11288
11288
  [v2.LocalStorage]: (r2) => new me(r2),
11289
11289
  [v2.SessionStorage]: (r2) => new we(r2),
11290
11290
  [v2.NoCache]: () => new Te()
11291
- }, De = (r2) => {
11291
+ }, be = (r2) => {
11292
11292
  switch (r2) {
11293
11293
  case v2.SessionStorage:
11294
11294
  try {
@@ -11307,7 +11307,7 @@ const Pe = {
11307
11307
  default:
11308
11308
  return true;
11309
11309
  }
11310
- }, F = (r2) => Pe[r2];
11310
+ }, k = (r2) => Pe[r2];
11311
11311
  class w {
11312
11312
  constructor(e2) {
11313
11313
  var t2;
@@ -11320,14 +11320,14 @@ class w {
11320
11320
  if (e2 != null && e2.cache)
11321
11321
  n2 = e2.cache;
11322
11322
  else {
11323
- if (this.cacheLocation = (e2 == null ? void 0 : e2.cacheLocation) || v2.SessionStorage, !F(this.cacheLocation))
11323
+ if (this.cacheLocation = (e2 == null ? void 0 : e2.cacheLocation) || v2.SessionStorage, !k(this.cacheLocation))
11324
11324
  throw new Error(`Invalid cache location "${this.cacheLocation}"`);
11325
- De(this.cacheLocation) || (this.cacheLocation = v2.Memory), n2 = F(this.cacheLocation)(e2 == null ? void 0 : e2.cachePrefix);
11325
+ be(this.cacheLocation) || (this.cacheLocation = v2.Memory), n2 = k(this.cacheLocation)(e2 == null ? void 0 : e2.cachePrefix);
11326
11326
  }
11327
11327
  if (e2 != null && e2.cacheTimeInSeconds && e2.cacheTimeInSeconds > ge)
11328
11328
  throw new Error("Cache time cannot exceed 86400 seconds (24 hours)");
11329
- const i = (t2 = e2 == null ? void 0 : e2.cacheTimeInSeconds) !== null && t2 !== void 0 ? t2 : ae;
11330
- this.cacheManager = new Se(n2, i);
11329
+ const o2 = (t2 = e2 == null ? void 0 : e2.cacheTimeInSeconds) !== null && t2 !== void 0 ? t2 : ae;
11330
+ this.cacheManager = new Se(n2, o2);
11331
11331
  }
11332
11332
  /**
11333
11333
  * Loads FPJS JS agent with certain settings and stores the instance in memory
@@ -11340,14 +11340,14 @@ class w {
11340
11340
  return O(this, void 0, void 0, function* () {
11341
11341
  if (!this.loadOptions && !e2)
11342
11342
  throw new TypeError("No load options provided");
11343
- const i = Object.assign(Object.assign(Object.assign({}, this.loadOptions), e2), { integrationInfo: [
11343
+ const o2 = Object.assign(Object.assign(Object.assign({}, this.loadOptions), e2), { integrationInfo: [
11344
11344
  ...((t2 = this.loadOptions) === null || t2 === void 0 ? void 0 : t2.integrationInfo) || [],
11345
11345
  ...(e2 == null ? void 0 : e2.integrationInfo) || [],
11346
11346
  `fingerprintjs-pro-spa/${Ae}`
11347
11347
  ] });
11348
11348
  if (!this.agentPromise) {
11349
- const o2 = (n2 = this.customAgent) !== null && n2 !== void 0 ? n2 : ve;
11350
- this.agentPromise = o2.load(i).then((a) => (this.agent = a, a)).catch((a) => {
11349
+ const i = (n2 = this.customAgent) !== null && n2 !== void 0 ? n2 : ve;
11350
+ this.agentPromise = i.load(o2).then((a) => (this.agent = a, a)).catch((a) => {
11351
11351
  throw this.agentPromise = null, a;
11352
11352
  });
11353
11353
  }
@@ -11363,14 +11363,14 @@ class w {
11363
11363
  */
11364
11364
  getVisitorData(e2 = {}, t2 = false) {
11365
11365
  return O(this, void 0, void 0, function* () {
11366
- const i = w.makeCacheKey(e2).toKey();
11367
- if (!this.inFlightRequests.has(i)) {
11368
- const o2 = this._identify(e2, t2).finally(() => {
11369
- this.inFlightRequests.delete(i);
11366
+ const o2 = w.makeCacheKey(e2).toKey();
11367
+ if (!this.inFlightRequests.has(o2)) {
11368
+ const i = this._identify(e2, t2).finally(() => {
11369
+ this.inFlightRequests.delete(o2);
11370
11370
  });
11371
- this.inFlightRequests.set(i, o2);
11371
+ this.inFlightRequests.set(o2, i);
11372
11372
  }
11373
- return yield this.inFlightRequests.get(i);
11373
+ return yield this.inFlightRequests.get(o2);
11374
11374
  });
11375
11375
  }
11376
11376
  /**
@@ -11408,12 +11408,12 @@ class w {
11408
11408
  return O(this, void 0, void 0, function* () {
11409
11409
  const n2 = w.makeCacheKey(e2);
11410
11410
  if (!t2) {
11411
- const o2 = yield this.cacheManager.get(n2);
11412
- if (o2)
11413
- return Object.assign(Object.assign({}, o2), { cacheHit: true });
11411
+ const i = yield this.cacheManager.get(n2);
11412
+ if (i)
11413
+ return Object.assign(Object.assign({}, i), { cacheHit: true });
11414
11414
  }
11415
- const i = yield this.agent.get(e2);
11416
- return yield this.cacheManager.set(n2, i), Object.assign(Object.assign({}, i), { cacheHit: false });
11415
+ const o2 = yield this.agent.get(e2);
11416
+ return yield this.cacheManager.set(n2, o2), Object.assign(Object.assign({}, o2), { cacheHit: false });
11417
11417
  });
11418
11418
  }
11419
11419
  }
@@ -11422,15 +11422,15 @@ async function U() {
11422
11422
  const r2 = typeof Cypress == "object", e2 = typeof process == "object" && define_process_env_default.NODE_ENV === "test";
11423
11423
  if (r2 || e2)
11424
11424
  return "a-mock-visitor-id";
11425
- const t2 = "https://d2hwnq6cq5q3pi.cloudfront.net", n2 = "wyr92st0i7", i = "ia1t65gn6i", o2 = "db4fuswrza", a = new w({
11425
+ const t2 = "https://d2hwnq6cq5q3pi.cloudfront.net", n2 = "wyr92st0i7", o2 = "ia1t65gn6i", i = "db4fuswrza", a = new w({
11426
11426
  loadOptions: {
11427
11427
  apiKey: "hpFVJecm7Ni7AjSfvBIW",
11428
11428
  endpoint: [
11429
- `${t2}/${n2}/${i}`,
11430
- D
11429
+ `${t2}/${n2}/${o2}`,
11430
+ b
11431
11431
  ],
11432
11432
  scriptUrlPattern: [
11433
- `${t2}/${n2}/${o2}?apiKey=<apiKey>&version=<version>&loaderVersion=<loaderVersion>`,
11433
+ `${t2}/${n2}/${i}?apiKey=<apiKey>&version=<version>&loaderVersion=<loaderVersion>`,
11434
11434
  K
11435
11435
  ]
11436
11436
  }
@@ -11440,7 +11440,7 @@ async function U() {
11440
11440
  return console.log(r2), "";
11441
11441
  }
11442
11442
  }
11443
- async function be() {
11443
+ async function De() {
11444
11444
  return new Promise((r2) => {
11445
11445
  window.requestIdleCallback ? requestIdleCallback(async () => {
11446
11446
  const e2 = await U();
@@ -11451,24 +11451,24 @@ async function be() {
11451
11451
  }, 500);
11452
11452
  });
11453
11453
  }
11454
- const Ce = "https://tst.kaptcha.com", Le = "https://ssl.kaptcha.com", Ke = (r2) => r2 === "production", Fe = ({ env: r2, kountAccountId: e2, kountSessionId: t2 }) => {
11455
- const n2 = Ke(r2) ? Le : Ce, i = new URL(`${n2}/collect/sdk`);
11456
- i.searchParams.append("m", e2), t2 && i.searchParams.append("m", t2);
11457
- const o2 = document.createElement("script");
11458
- return o2.setAttribute("class", "kaxsdc"), o2.setAttribute("data-event", "load"), o2.setAttribute("type", "text/javascript"), o2.setAttribute("src", i.href), document.body.append(o2), o2;
11454
+ const Ce = "https://tst.kaptcha.com", Le = "https://ssl.kaptcha.com", Ke = (r2) => r2 === "production", ke = ({ env: r2, kountAccountId: e2, kountSessionId: t2 }) => {
11455
+ const n2 = Ke(r2) ? Le : Ce, o2 = new URL(`${n2}/collect/sdk`);
11456
+ o2.searchParams.append("m", e2), t2 && o2.searchParams.append("m", t2);
11457
+ const i = document.createElement("script");
11458
+ return i.setAttribute("class", "kaxsdc"), i.setAttribute("data-event", "load"), i.setAttribute("type", "text/javascript"), i.setAttribute("src", o2.href), document.body.append(i), i;
11459
11459
  };
11460
11460
  async function Ue({
11461
11461
  env: r2,
11462
11462
  kountAccountId: e2,
11463
11463
  kountSessionId: t2
11464
11464
  }) {
11465
- return new Promise((n2, i) => {
11466
- const o2 = Fe({
11465
+ return new Promise((n2, o2) => {
11466
+ const i = ke({
11467
11467
  env: r2,
11468
11468
  kountAccountId: e2,
11469
11469
  kountSessionId: t2
11470
11470
  });
11471
- o2.onload = () => {
11471
+ i.onload = () => {
11472
11472
  const a = new ka.ClientSDK();
11473
11473
  a.setupCallback({
11474
11474
  "collect-begin": (l) => {
@@ -11476,60 +11476,73 @@ async function Ue({
11476
11476
  n2(u);
11477
11477
  }
11478
11478
  }), a.autoLoadEvents();
11479
- }, o2.onerror = () => {
11480
- i(new Error("Error attempting to mount Kount script"));
11479
+ }, i.onerror = () => {
11480
+ o2(new Error("Error attempting to mount Kount script"));
11481
11481
  };
11482
11482
  });
11483
11483
  }
11484
- async function Me({
11484
+ const je = () => {
11485
+ const r2 = document.createElement("script");
11486
+ return r2.src = "https://cdn.rebilly.com/risk-data-collector/@latest/google-adsense.js", new Promise((e2) => {
11487
+ r2.onload = () => {
11488
+ e2(document.getElementById("fj2xFkdsoQIQna") === null);
11489
+ }, r2.onerror = () => e2(true), document.head.appendChild(r2);
11490
+ }).catch(() => true);
11491
+ };
11492
+ async function Fe({
11485
11493
  env: r2 = null,
11486
11494
  screen: e2,
11487
11495
  navigator: t2,
11488
11496
  kountAccountId: n2 = null,
11489
- kountSessionId: i = null,
11490
- getFingerprint: o2,
11497
+ kountSessionId: o2 = null,
11498
+ getFingerprint: i,
11491
11499
  getFraudSessionId: a
11492
11500
  }) {
11493
- const { colorDepth: l, height: u, width: d2 } = e2 || {}, { javaEnabled: c, language: s } = t2 || {};
11494
- let E, h;
11501
+ const { colorDepth: l, height: u, width: h } = e2 || {}, { javaEnabled: c, language: s } = t2 || {};
11502
+ let E, R2, d2;
11495
11503
  try {
11496
- E = await o2(), n2 && (h = await a({
11497
- env: r2,
11498
- kountAccountId: n2,
11499
- kountSessionId: i
11500
- }));
11501
- } catch (R2) {
11502
- console.error(R2);
11504
+ [d2, E, R2] = await Promise.all([
11505
+ je(),
11506
+ i == null ? void 0 : i(),
11507
+ n2 ? a({
11508
+ env: r2,
11509
+ kountAccountId: n2,
11510
+ kountSessionId: o2
11511
+ }) : void 0
11512
+ ]);
11513
+ } catch (p2) {
11514
+ console.error(p2);
11503
11515
  }
11504
11516
  return {
11505
11517
  riskMetadata: {
11506
11518
  fingerprint: E || null,
11507
11519
  extraData: {
11508
- kountFraudSessionId: h || null
11520
+ kountFraudSessionId: R2 || null
11509
11521
  },
11510
11522
  browserData: {
11511
11523
  colorDepth: l || null,
11512
11524
  isJavaEnabled: c ? c.call(t2) : null,
11513
11525
  language: s || null,
11514
11526
  screenHeight: u || null,
11515
- screenWidth: d2 || null,
11516
- timeZoneOffset: (/* @__PURE__ */ new Date()).getTimezoneOffset()
11527
+ screenWidth: h || null,
11528
+ timeZoneOffset: (/* @__PURE__ */ new Date()).getTimezoneOffset(),
11529
+ isAdBlockEnabled: d2
11517
11530
  }
11518
11531
  }
11519
11532
  };
11520
11533
  }
11521
- async function je({
11534
+ async function Me({
11522
11535
  env: r2 = null,
11523
11536
  kountAccountId: e2 = null,
11524
11537
  kountSessionId: t2 = null
11525
11538
  } = {}) {
11526
- return Me({
11539
+ return Fe({
11527
11540
  env: r2,
11528
11541
  screen,
11529
11542
  navigator,
11530
11543
  kountAccountId: e2,
11531
11544
  kountSessionId: t2,
11532
- getFingerprint: be,
11545
+ getFingerprint: De,
11533
11546
  getFraudSessionId: Ue
11534
11547
  });
11535
11548
  }
@@ -15081,7 +15094,7 @@ async function fetchReadyToPay() {
15081
15094
  return Endpoint(async () => {
15082
15095
  var _a, _b, _c, _d, _e2, _f, _g;
15083
15096
  if (!state.data.riskMetadata) {
15084
- const { riskMetadata: data2 } = await je();
15097
+ const { riskMetadata: data2 } = await Me();
15085
15098
  state.data.riskMetadata = data2;
15086
15099
  }
15087
15100
  const data = {
@@ -15149,7 +15162,7 @@ async function fetchReadyToPayout() {
15149
15162
  validateData(state.data);
15150
15163
  validateStorefront(state.storefront);
15151
15164
  if (!((_a = state == null ? void 0 : state.data) == null ? void 0 : _a.riskMetadata)) {
15152
- const { riskMetadata: data2 } = await je();
15165
+ const { riskMetadata: data2 } = await Me();
15153
15166
  state.data.riskMetadata = data2;
15154
15167
  }
15155
15168
  const data = {
@@ -15625,7 +15638,7 @@ async function fetchData({
15625
15638
  state.storefront.setSessionToken(state.options.jwt);
15626
15639
  }
15627
15640
  if (!riskMetadata) {
15628
- const { riskMetadata: data } = await je();
15641
+ const { riskMetadata: data } = await Me();
15629
15642
  state.data.riskMetadata = data;
15630
15643
  } else {
15631
15644
  state.data.riskMetadata = riskMetadata;
@@ -24472,7 +24485,7 @@ function handleComputedProperty(options) {
24472
24485
  var _a;
24473
24486
  return Object.assign({}, options, {
24474
24487
  _computed: {
24475
- version: "9.22.0",
24488
+ version: "9.23.0",
24476
24489
  paymentMethodsUrl: ((_a = options._dev) == null ? void 0 : _a.paymentMethodsUrl) ?? "https://forms.secure-payments.app"
24477
24490
  }
24478
24491
  });
@@ -27814,7 +27827,7 @@ class RebillyInstrumentsInstance {
27814
27827
  await show({ componentName, payload });
27815
27828
  }
27816
27829
  get version() {
27817
- return `RebillyInstruments Ver.${"9.22.0"}`;
27830
+ return `RebillyInstruments Ver.${"9.23.0"}`;
27818
27831
  }
27819
27832
  on(eventName, callback) {
27820
27833
  on({ eventName, callback });