@rebilly/instruments 16.168.2 → 16.168.3
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/CHANGELOG.md +2 -2
- package/dist/index.js +123 -126
- package/dist/index.min.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [16.168.
|
|
1
|
+
## [16.168.3](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.168.2...instruments/core-v16.168.3) (2026-08-06)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
* **
|
|
6
|
+
* **rebilly-js-sdk:** Pass the request body in DELETE operations that require it ([#24264](https://github.com/Rebilly/rebilly/issues/24264)) ([de265a6](https://github.com/Rebilly/rebilly/commit/de265a65fe1e0b1087ad4f93fbe1791eb01b5d62))
|
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, (
|
|
223
|
+
return apply(this, "filter", fn, thisArg, (v) => v.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 = (
|
|
513
|
+
const getProto = (v) => Reflect.getPrototypeOf(v);
|
|
514
514
|
function createIterableMethod(method, isReadonly2, isShallow2) {
|
|
515
515
|
return function(...args) {
|
|
516
516
|
const target = this["__v_raw"];
|
|
@@ -2328,8 +2328,8 @@ function getGlobal() {
|
|
|
2328
2328
|
if (typeof global !== "undefined") return global;
|
|
2329
2329
|
return {};
|
|
2330
2330
|
}
|
|
2331
|
-
const G$
|
|
2332
|
-
const FormDataCtor = typeof G$
|
|
2331
|
+
const G$1 = getGlobal();
|
|
2332
|
+
const FormDataCtor = typeof G$1.FormData !== "undefined" ? G$1.FormData : void 0;
|
|
2333
2333
|
const isFormData = (thing) => {
|
|
2334
2334
|
if (!thing) return false;
|
|
2335
2335
|
if (FormDataCtor && thing instanceof FormDataCtor) return true;
|
|
@@ -2830,7 +2830,7 @@ function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
|
|
|
2830
2830
|
}
|
|
2831
2831
|
}
|
|
2832
2832
|
function formatHeader(header) {
|
|
2833
|
-
return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (
|
|
2833
|
+
return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w2, char, str) => {
|
|
2834
2834
|
return char.toUpperCase() + str;
|
|
2835
2835
|
});
|
|
2836
2836
|
}
|
|
@@ -3058,8 +3058,8 @@ function redactConfig(config, redactKeys) {
|
|
|
3058
3058
|
let result;
|
|
3059
3059
|
if (utils$1.isArray(source)) {
|
|
3060
3060
|
result = [];
|
|
3061
|
-
source.forEach((
|
|
3062
|
-
const reducedValue = visit(
|
|
3061
|
+
source.forEach((v, i) => {
|
|
3062
|
+
const reducedValue = visit(v);
|
|
3063
3063
|
if (!utils$1.isUndefined(reducedValue)) {
|
|
3064
3064
|
result[i] = reducedValue;
|
|
3065
3065
|
}
|
|
@@ -5306,7 +5306,7 @@ function S$1(t2, { exclude: e2 = [] } = {}) {
|
|
|
5306
5306
|
(!s || r2 !== "caller" && r2 !== "callee" && r2 !== "arguments") && t2[r2] !== null && !e2.includes(r2) && (typeof t2[r2] == "object" || typeof t2[r2] == "function") && !Object.isFrozen(t2[r2]) && S$1(t2[r2], { exclude: e2 });
|
|
5307
5307
|
}), t2;
|
|
5308
5308
|
}
|
|
5309
|
-
let
|
|
5309
|
+
let te$1 = class te {
|
|
5310
5310
|
constructor({ data: e2, status: s, statusText: r2, headers: n2 }, u = {}) {
|
|
5311
5311
|
this.response = { status: s, statusText: r2, headers: n2 }, this.fields = { ...e2 }, this.config = u, S$1(this, { exclude: ["cancelToken"] });
|
|
5312
5312
|
}
|
|
@@ -5318,7 +5318,7 @@ let ee$1 = class ee {
|
|
|
5318
5318
|
return JSON.parse(JSON.stringify({ fields: this.fields }));
|
|
5319
5319
|
}
|
|
5320
5320
|
};
|
|
5321
|
-
const
|
|
5321
|
+
const Y$1 = {
|
|
5322
5322
|
/**
|
|
5323
5323
|
* Amount of records requested at once
|
|
5324
5324
|
*/
|
|
@@ -5334,11 +5334,11 @@ const G$1 = {
|
|
|
5334
5334
|
};
|
|
5335
5335
|
let ye$1 = class ye {
|
|
5336
5336
|
constructor({ data: e2, status: s, statusText: r2, headers: n2 }, u = {}) {
|
|
5337
|
-
this.limit = null, this.offset = null, this.total = null, Object.keys(
|
|
5338
|
-
const l = n2[
|
|
5337
|
+
this.limit = null, this.offset = null, this.total = null, Object.keys(Y$1).forEach((o2) => {
|
|
5338
|
+
const l = n2[Y$1[o2]];
|
|
5339
5339
|
this[o2] = l ? Number(l) : null;
|
|
5340
5340
|
}), this.response = { status: s, statusText: r2, headers: n2 }, this.items = e2.map(
|
|
5341
|
-
(o2) => new
|
|
5341
|
+
(o2) => new te$1({ data: o2, status: s, statusText: r2, headers: n2 })
|
|
5342
5342
|
), this.config = u, S$1(this, { exclude: ["cancelToken"] });
|
|
5343
5343
|
}
|
|
5344
5344
|
/**
|
|
@@ -5419,10 +5419,10 @@ const y = {
|
|
|
5419
5419
|
function Ie$1(t2) {
|
|
5420
5420
|
return t2 && t2.__esModule && Object.prototype.hasOwnProperty.call(t2, "default") ? t2.default : t2;
|
|
5421
5421
|
}
|
|
5422
|
-
var x$1,
|
|
5423
|
-
function
|
|
5424
|
-
if (
|
|
5425
|
-
|
|
5422
|
+
var x$1, Q$1;
|
|
5423
|
+
function se$1() {
|
|
5424
|
+
if (Q$1) return x$1;
|
|
5425
|
+
Q$1 = 1;
|
|
5426
5426
|
var t2 = Object.prototype.toString;
|
|
5427
5427
|
x$1 = function(p) {
|
|
5428
5428
|
if (p === void 0) return "undefined";
|
|
@@ -5535,11 +5535,11 @@ function te$1() {
|
|
|
5535
5535
|
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
5536
5536
|
* Released under the MIT License.
|
|
5537
5537
|
*/
|
|
5538
|
-
var P,
|
|
5538
|
+
var P, X$1;
|
|
5539
5539
|
function Se$1() {
|
|
5540
|
-
if (
|
|
5541
|
-
|
|
5542
|
-
const t2 = Symbol.prototype.valueOf, e2 =
|
|
5540
|
+
if (X$1) return P;
|
|
5541
|
+
X$1 = 1;
|
|
5542
|
+
const t2 = Symbol.prototype.valueOf, e2 = se$1();
|
|
5543
5543
|
function s(i, f) {
|
|
5544
5544
|
switch (e2(i)) {
|
|
5545
5545
|
case "array":
|
|
@@ -5602,9 +5602,9 @@ function Se$1() {
|
|
|
5602
5602
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
5603
5603
|
* Released under the MIT License.
|
|
5604
5604
|
*/
|
|
5605
|
-
var C$1,
|
|
5605
|
+
var C$1, Z$1;
|
|
5606
5606
|
function Ee$1() {
|
|
5607
|
-
return
|
|
5607
|
+
return Z$1 || (Z$1 = 1, C$1 = function(e2) {
|
|
5608
5608
|
return e2 != null && typeof e2 == "object" && Array.isArray(e2) === false;
|
|
5609
5609
|
}), C$1;
|
|
5610
5610
|
}
|
|
@@ -5614,10 +5614,10 @@ function Ee$1() {
|
|
|
5614
5614
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
5615
5615
|
* Released under the MIT License.
|
|
5616
5616
|
*/
|
|
5617
|
-
var D,
|
|
5617
|
+
var D, _$1;
|
|
5618
5618
|
function xe$1() {
|
|
5619
|
-
if (
|
|
5620
|
-
|
|
5619
|
+
if (_$1) return D;
|
|
5620
|
+
_$1 = 1;
|
|
5621
5621
|
var t2 = Ee$1();
|
|
5622
5622
|
function e2(s) {
|
|
5623
5623
|
return t2(s) === true && Object.prototype.toString.call(s) === "[object Object]";
|
|
@@ -5627,11 +5627,11 @@ function xe$1() {
|
|
|
5627
5627
|
return !(e2(r2) === false || (n2 = r2.constructor, typeof n2 != "function") || (u = n2.prototype, e2(u) === false) || u.hasOwnProperty("isPrototypeOf") === false);
|
|
5628
5628
|
}, D;
|
|
5629
5629
|
}
|
|
5630
|
-
var j$1,
|
|
5630
|
+
var j$1, H$1;
|
|
5631
5631
|
function Pe$1() {
|
|
5632
|
-
if (
|
|
5633
|
-
|
|
5634
|
-
const t2 = Se$1(), e2 =
|
|
5632
|
+
if (H$1) return j$1;
|
|
5633
|
+
H$1 = 1;
|
|
5634
|
+
const t2 = Se$1(), e2 = se$1(), s = xe$1();
|
|
5635
5635
|
function r2(o2, l) {
|
|
5636
5636
|
switch (e2(o2)) {
|
|
5637
5637
|
case "object":
|
|
@@ -5750,11 +5750,11 @@ const tr = {
|
|
|
5750
5750
|
* @type Cancellation.cancelAll
|
|
5751
5751
|
*/
|
|
5752
5752
|
cancelAll: async (...t2) => await I$1.cancelAll(...t2)
|
|
5753
|
-
},
|
|
5753
|
+
}, k$1 = {
|
|
5754
5754
|
request: "request",
|
|
5755
5755
|
response: "response"
|
|
5756
|
-
},
|
|
5757
|
-
if (!Object.values(
|
|
5756
|
+
}, ee$1 = (t2) => {
|
|
5757
|
+
if (!Object.values(k$1).includes(t2))
|
|
5758
5758
|
throw new Error(`There is no such interceptor type as "${t2}"`);
|
|
5759
5759
|
return true;
|
|
5760
5760
|
};
|
|
@@ -5779,7 +5779,7 @@ function O$1({ options: t2 }) {
|
|
|
5779
5779
|
}
|
|
5780
5780
|
function o2() {
|
|
5781
5781
|
const a = {
|
|
5782
|
-
"REB-API-CONSUMER": `${["Rebilly", t2.appName, "js-sdk"].filter((m2) => m2).join("/")}@
|
|
5782
|
+
"REB-API-CONSUMER": `${["Rebilly", t2.appName, "js-sdk"].filter((m2) => m2).join("/")}@de265a6`
|
|
5783
5783
|
};
|
|
5784
5784
|
return t2.apiKey && (a["REB-APIKEY"] = t2.apiKey), a;
|
|
5785
5785
|
}
|
|
@@ -5809,44 +5809,44 @@ function O$1({ options: t2 }) {
|
|
|
5809
5809
|
}
|
|
5810
5810
|
function K2(c, { thenDelegate: a, catchDelegate: m2 = () => {
|
|
5811
5811
|
} }) {
|
|
5812
|
-
return
|
|
5812
|
+
return ee$1(c) && e2.interceptors[k$1[c]].use(
|
|
5813
5813
|
a,
|
|
5814
5814
|
m2
|
|
5815
5815
|
);
|
|
5816
5816
|
}
|
|
5817
5817
|
function N2(c, a) {
|
|
5818
|
-
return
|
|
5818
|
+
return ee$1(c) && e2.interceptors[k$1[c]].eject(a);
|
|
5819
5819
|
}
|
|
5820
|
-
function
|
|
5820
|
+
function re2({ thenDelegate: c, catchDelegate: a = () => {
|
|
5821
5821
|
} }) {
|
|
5822
|
-
return K2(
|
|
5822
|
+
return K2(k$1.request, {
|
|
5823
5823
|
thenDelegate: c,
|
|
5824
5824
|
catchDelegate: a
|
|
5825
5825
|
});
|
|
5826
5826
|
}
|
|
5827
|
-
function
|
|
5828
|
-
N2(
|
|
5827
|
+
function ne2(c) {
|
|
5828
|
+
N2(k$1.request, c);
|
|
5829
5829
|
}
|
|
5830
|
-
function
|
|
5830
|
+
function ue2({
|
|
5831
5831
|
thenDelegate: c,
|
|
5832
5832
|
catchDelegate: a = () => {
|
|
5833
5833
|
}
|
|
5834
5834
|
}) {
|
|
5835
|
-
return K2(
|
|
5835
|
+
return K2(k$1.response, {
|
|
5836
5836
|
thenDelegate: c,
|
|
5837
5837
|
catchDelegate: a
|
|
5838
5838
|
});
|
|
5839
5839
|
}
|
|
5840
|
-
function
|
|
5841
|
-
N2(
|
|
5840
|
+
function oe2(c) {
|
|
5841
|
+
N2(k$1.response, c);
|
|
5842
5842
|
}
|
|
5843
|
-
function
|
|
5843
|
+
function v({ request: c, isCollection: a, config: m2 }) {
|
|
5844
5844
|
const $2 = z2(m2), { id: b, cancelToken: $e2 } = q$1.save();
|
|
5845
5845
|
$2.cancelToken = $e2;
|
|
5846
|
-
const
|
|
5846
|
+
const G2 = (async function() {
|
|
5847
5847
|
try {
|
|
5848
5848
|
const d = await c($2);
|
|
5849
|
-
return
|
|
5849
|
+
return le2({
|
|
5850
5850
|
response: d,
|
|
5851
5851
|
isCollection: a,
|
|
5852
5852
|
config: $2
|
|
@@ -5857,10 +5857,10 @@ function O$1({ options: t2 }) {
|
|
|
5857
5857
|
q$1.deleteById(b);
|
|
5858
5858
|
}
|
|
5859
5859
|
})();
|
|
5860
|
-
return
|
|
5860
|
+
return G2.cancel = (d) => I$1.cancelById(b, d), G2;
|
|
5861
5861
|
}
|
|
5862
|
-
function
|
|
5863
|
-
return a ? new ye$1(c, m2) : new
|
|
5862
|
+
function le2({ response: c, isCollection: a, config: m2 }) {
|
|
5863
|
+
return a ? new ye$1(c, m2) : new te$1(c, m2);
|
|
5864
5864
|
}
|
|
5865
5865
|
function L2({ error: c }) {
|
|
5866
5866
|
if (axios.isCancel(c))
|
|
@@ -5882,7 +5882,7 @@ function O$1({ options: t2 }) {
|
|
|
5882
5882
|
}
|
|
5883
5883
|
throw c.code === "ECONNABORTED" ? new y.RebillyTimeoutError(c) : new y.RebillyRequestError(c);
|
|
5884
5884
|
}
|
|
5885
|
-
function
|
|
5885
|
+
function ce2(c) {
|
|
5886
5886
|
return c.params !== void 0 && (c.params = Object.keys(c.params).filter(
|
|
5887
5887
|
(a) => {
|
|
5888
5888
|
var m2;
|
|
@@ -5894,16 +5894,16 @@ function O$1({ options: t2 }) {
|
|
|
5894
5894
|
}, {})), c;
|
|
5895
5895
|
}
|
|
5896
5896
|
function z2(c = {}) {
|
|
5897
|
-
return { ...
|
|
5897
|
+
return { ...ce2(c) };
|
|
5898
5898
|
}
|
|
5899
5899
|
function U2(c, a = {}) {
|
|
5900
|
-
return
|
|
5900
|
+
return v({
|
|
5901
5901
|
request: (m2) => e2.get(c, m2),
|
|
5902
5902
|
config: { params: a }
|
|
5903
5903
|
});
|
|
5904
5904
|
}
|
|
5905
|
-
function
|
|
5906
|
-
return
|
|
5905
|
+
function ie2(c, a) {
|
|
5906
|
+
return v({
|
|
5907
5907
|
request: (m2) => e2.get(c, m2),
|
|
5908
5908
|
config: { params: a },
|
|
5909
5909
|
isCollection: true
|
|
@@ -5911,34 +5911,31 @@ function O$1({ options: t2 }) {
|
|
|
5911
5911
|
}
|
|
5912
5912
|
function V2(c, a, m2 = {}) {
|
|
5913
5913
|
let $2 = {};
|
|
5914
|
-
return m2.authenticate === false && ($2 = { headers: l() }, delete $2.headers.common["REB-APIKEY"], delete $2.headers.common.Authorization), m2.params && ($2.params = { ...m2.params }),
|
|
5914
|
+
return m2.authenticate === false && ($2 = { headers: l() }, delete $2.headers.common["REB-APIKEY"], delete $2.headers.common.Authorization), m2.params && ($2.params = { ...m2.params }), v({
|
|
5915
5915
|
request: (b) => e2.post(c, a, b),
|
|
5916
5916
|
config: $2
|
|
5917
5917
|
});
|
|
5918
5918
|
}
|
|
5919
5919
|
function J2(c, a, m2 = {}) {
|
|
5920
|
-
return
|
|
5920
|
+
return v({
|
|
5921
5921
|
request: ($2) => e2.put(c, a, $2),
|
|
5922
5922
|
config: { params: m2 }
|
|
5923
5923
|
});
|
|
5924
5924
|
}
|
|
5925
|
-
function
|
|
5926
|
-
return
|
|
5925
|
+
function ae2(c, a) {
|
|
5926
|
+
return v({
|
|
5927
5927
|
request: (m2) => e2.patch(c, a, m2),
|
|
5928
5928
|
config: {}
|
|
5929
5929
|
});
|
|
5930
5930
|
}
|
|
5931
|
-
function
|
|
5932
|
-
return
|
|
5933
|
-
request: (
|
|
5934
|
-
config: {}
|
|
5931
|
+
function W2(c, a = null) {
|
|
5932
|
+
return v({
|
|
5933
|
+
request: (m2) => e2.delete(c, m2),
|
|
5934
|
+
config: a != null ? { data: a } : {}
|
|
5935
5935
|
});
|
|
5936
5936
|
}
|
|
5937
5937
|
function ge(c, a) {
|
|
5938
|
-
return
|
|
5939
|
-
request: (m2) => e2.delete(c, m2),
|
|
5940
|
-
config: { data: { ...a } }
|
|
5941
|
-
});
|
|
5938
|
+
return W2(c, a);
|
|
5942
5939
|
}
|
|
5943
5940
|
async function me2(c, a, m2, $2 = {}) {
|
|
5944
5941
|
if (a === "")
|
|
@@ -5965,21 +5962,21 @@ function O$1({ options: t2 }) {
|
|
|
5965
5962
|
}
|
|
5966
5963
|
return {
|
|
5967
5964
|
getInstance: r2,
|
|
5968
|
-
addRequestInterceptor:
|
|
5969
|
-
removeRequestInterceptor:
|
|
5970
|
-
addResponseInterceptor:
|
|
5971
|
-
removeResponseInterceptor:
|
|
5965
|
+
addRequestInterceptor: re2,
|
|
5966
|
+
removeRequestInterceptor: ne2,
|
|
5967
|
+
addResponseInterceptor: ue2,
|
|
5968
|
+
removeResponseInterceptor: oe2,
|
|
5972
5969
|
setTimeout: i,
|
|
5973
5970
|
setProxyAgent: p,
|
|
5974
5971
|
setSessionToken: f,
|
|
5975
5972
|
setPublishableKey: g,
|
|
5976
5973
|
setEndpoints: h2,
|
|
5977
5974
|
get: U2,
|
|
5978
|
-
getAll:
|
|
5975
|
+
getAll: ie2,
|
|
5979
5976
|
post: V2,
|
|
5980
5977
|
put: J2,
|
|
5981
|
-
patch:
|
|
5982
|
-
delete:
|
|
5978
|
+
patch: ae2,
|
|
5979
|
+
delete: W2,
|
|
5983
5980
|
deleteAll: ge,
|
|
5984
5981
|
create: me2,
|
|
5985
5982
|
download: fe2
|
|
@@ -10189,7 +10186,7 @@ function ws({ apiHandler: t2 }) {
|
|
|
10189
10186
|
}
|
|
10190
10187
|
};
|
|
10191
10188
|
}
|
|
10192
|
-
const
|
|
10189
|
+
const w = {
|
|
10193
10190
|
CustomersResource: ps,
|
|
10194
10191
|
DataExportsResource: hs,
|
|
10195
10192
|
HistogramsResource: ys,
|
|
@@ -10200,11 +10197,11 @@ const k$1 = {
|
|
|
10200
10197
|
};
|
|
10201
10198
|
class ks {
|
|
10202
10199
|
constructor({ apiHandler: e2 }) {
|
|
10203
|
-
this.customers =
|
|
10200
|
+
this.customers = w.CustomersResource({ apiHandler: e2 }), this.dataExports = w.DataExportsResource({
|
|
10204
10201
|
apiHandler: e2
|
|
10205
|
-
}), this.histograms =
|
|
10202
|
+
}), this.histograms = w.HistogramsResource({ apiHandler: e2 }), this.reports = w.ReportsResource({ apiHandler: e2 }), this.subscriptions = w.SubscriptionsResource({
|
|
10206
10203
|
apiHandler: e2
|
|
10207
|
-
}), this.timelines =
|
|
10204
|
+
}), this.timelines = w.TimelinesResource({ apiHandler: e2 }), this.location = w.LocationResource({ apiHandler: e2 }), this.addRequestInterceptor = e2.addRequestInterceptor, this.removeRequestInterceptor = e2.removeRequestInterceptor, this.addResponseInterceptor = e2.addResponseInterceptor, this.removeResponseInterceptor = e2.removeResponseInterceptor, this.setTimeout = e2.setTimeout, this.setProxyAgent = e2.setProxyAgent, this.setSessionToken = e2.setSessionToken, this.setEndpoints = e2.setEndpoints, this.getCancellationToken = e2.getCancellationToken;
|
|
10208
10205
|
}
|
|
10209
10206
|
}
|
|
10210
10207
|
function vs({ apiHandler: t2 }) {
|
|
@@ -11568,7 +11565,7 @@ function Pe(e2) {
|
|
|
11568
11565
|
};
|
|
11569
11566
|
var d = function() {
|
|
11570
11567
|
setTimeout(function() {
|
|
11571
|
-
return l(
|
|
11568
|
+
return l(ee(
|
|
11572
11569
|
"timeout"
|
|
11573
11570
|
/* InnerErrorName.Timeout */
|
|
11574
11571
|
));
|
|
@@ -11581,7 +11578,7 @@ function Pe(e2) {
|
|
|
11581
11578
|
f = Date.now(), s && d();
|
|
11582
11579
|
break;
|
|
11583
11580
|
case "suspended":
|
|
11584
|
-
document.hidden || u++, s && u >= t2 ? l(
|
|
11581
|
+
document.hidden || u++, s && u >= t2 ? l(ee(
|
|
11585
11582
|
"suspended"
|
|
11586
11583
|
/* InnerErrorName.Suspended */
|
|
11587
11584
|
)) : setTimeout(p, n2);
|
|
@@ -11602,7 +11599,7 @@ function Xe(e2) {
|
|
|
11602
11599
|
t2 += Math.abs(e2[n2]);
|
|
11603
11600
|
return t2;
|
|
11604
11601
|
}
|
|
11605
|
-
function
|
|
11602
|
+
function ee(e2) {
|
|
11606
11603
|
var t2 = new Error(e2);
|
|
11607
11604
|
return t2.name = e2, t2;
|
|
11608
11605
|
}
|
|
@@ -11631,8 +11628,8 @@ function ve2(e2, t2, n2) {
|
|
|
11631
11628
|
var g = c.style;
|
|
11632
11629
|
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);
|
|
11633
11630
|
var y2 = function() {
|
|
11634
|
-
var b,
|
|
11635
|
-
f || (((
|
|
11631
|
+
var b, w2;
|
|
11632
|
+
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));
|
|
11636
11633
|
};
|
|
11637
11634
|
y2();
|
|
11638
11635
|
})];
|
|
@@ -11676,7 +11673,7 @@ function Te2(e2, t2) {
|
|
|
11676
11673
|
}
|
|
11677
11674
|
}
|
|
11678
11675
|
}
|
|
11679
|
-
var Ee = "mmMwWLliI0O&1", He = "48px", M = ["monospace", "sans-serif", "serif"],
|
|
11676
|
+
var Ee = "mmMwWLliI0O&1", He = "48px", M = ["monospace", "sans-serif", "serif"], te2 = [
|
|
11680
11677
|
// This is android-specific font from "Roboto" family
|
|
11681
11678
|
"sans-serif-thin",
|
|
11682
11679
|
"ARNO PRO",
|
|
@@ -11736,8 +11733,8 @@ function Je() {
|
|
|
11736
11733
|
var n2 = t2.document, a = n2.body;
|
|
11737
11734
|
a.style.fontSize = He;
|
|
11738
11735
|
var i = n2.createElement("div"), r2 = {}, o2 = {}, c = function(y2) {
|
|
11739
|
-
var b = n2.createElement("span"),
|
|
11740
|
-
return
|
|
11736
|
+
var b = n2.createElement("span"), w2 = b.style;
|
|
11737
|
+
return w2.position = "absolute", w2.top = "0", w2.left = "0", w2.fontFamily = y2, b.textContent = Ee, i.appendChild(b), b;
|
|
11741
11738
|
}, l = function(y2, b) {
|
|
11742
11739
|
return c("'".concat(y2, "',").concat(b));
|
|
11743
11740
|
}, s = function() {
|
|
@@ -11747,20 +11744,20 @@ function Je() {
|
|
|
11747
11744
|
y2[P2] = M.map(function(T2) {
|
|
11748
11745
|
return l(P2, T2);
|
|
11749
11746
|
});
|
|
11750
|
-
},
|
|
11751
|
-
var D2 = R2[
|
|
11747
|
+
}, w2 = 0, R2 = te2; w2 < R2.length; w2++) {
|
|
11748
|
+
var D2 = R2[w2];
|
|
11752
11749
|
b(D2);
|
|
11753
11750
|
}
|
|
11754
11751
|
return y2;
|
|
11755
11752
|
}, f = function(y2) {
|
|
11756
|
-
return M.some(function(b,
|
|
11757
|
-
return y2[
|
|
11753
|
+
return M.some(function(b, w2) {
|
|
11754
|
+
return y2[w2].offsetWidth !== r2[b] || y2[w2].offsetHeight !== o2[b];
|
|
11758
11755
|
});
|
|
11759
11756
|
}, d = s(), p = u();
|
|
11760
11757
|
a.appendChild(i);
|
|
11761
11758
|
for (var g = 0; g < M.length; g++)
|
|
11762
11759
|
r2[M[g]] = d[g].offsetWidth, o2[M[g]] = d[g].offsetHeight;
|
|
11763
|
-
return
|
|
11760
|
+
return te2.filter(function(y2) {
|
|
11764
11761
|
return f(p[y2]);
|
|
11765
11762
|
});
|
|
11766
11763
|
});
|
|
@@ -12434,24 +12431,24 @@ var m = Math, S = function() {
|
|
|
12434
12431
|
return 0;
|
|
12435
12432
|
};
|
|
12436
12433
|
function It() {
|
|
12437
|
-
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(
|
|
12438
|
-
return m.pow(m.PI,
|
|
12439
|
-
}, b = function(
|
|
12440
|
-
return m.log(
|
|
12441
|
-
},
|
|
12442
|
-
return m.log(
|
|
12443
|
-
}, R2 = function(
|
|
12444
|
-
return m.log((1 +
|
|
12445
|
-
}, D2 = function(
|
|
12446
|
-
return m.exp(
|
|
12447
|
-
}, P2 = function(
|
|
12448
|
-
return (m.exp(
|
|
12449
|
-
}, T2 = function(
|
|
12450
|
-
return m.exp(
|
|
12451
|
-
}, ge = function(
|
|
12452
|
-
return (m.exp(2 *
|
|
12453
|
-
}, be2 = function(
|
|
12454
|
-
return m.log(1 +
|
|
12434
|
+
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(v) {
|
|
12435
|
+
return m.pow(m.PI, v);
|
|
12436
|
+
}, b = function(v) {
|
|
12437
|
+
return m.log(v + m.sqrt(v * v - 1));
|
|
12438
|
+
}, w2 = function(v) {
|
|
12439
|
+
return m.log(v + m.sqrt(v * v + 1));
|
|
12440
|
+
}, R2 = function(v) {
|
|
12441
|
+
return m.log((1 + v) / (1 - v)) / 2;
|
|
12442
|
+
}, D2 = function(v) {
|
|
12443
|
+
return m.exp(v) - 1 / m.exp(v) / 2;
|
|
12444
|
+
}, P2 = function(v) {
|
|
12445
|
+
return (m.exp(v) + 1 / m.exp(v)) / 2;
|
|
12446
|
+
}, T2 = function(v) {
|
|
12447
|
+
return m.exp(v) - 1;
|
|
12448
|
+
}, ge = function(v) {
|
|
12449
|
+
return (m.exp(2 * v) - 1) / (m.exp(2 * v) + 1);
|
|
12450
|
+
}, be2 = function(v) {
|
|
12451
|
+
return m.log(1 + v);
|
|
12455
12452
|
};
|
|
12456
12453
|
return {
|
|
12457
12454
|
acos: e2(0.12312423423423424),
|
|
@@ -12459,7 +12456,7 @@ function It() {
|
|
|
12459
12456
|
acoshPf: b(1e154),
|
|
12460
12457
|
asin: n2(0.12312423423423424),
|
|
12461
12458
|
asinh: a(1),
|
|
12462
|
-
asinhPf:
|
|
12459
|
+
asinhPf: w2(1),
|
|
12463
12460
|
atanh: i(0.5),
|
|
12464
12461
|
atanhPf: R2(0.5),
|
|
12465
12462
|
atan: r2(0.5),
|
|
@@ -12513,8 +12510,8 @@ function Yt() {
|
|
|
12513
12510
|
}
|
|
12514
12511
|
n2[o2] = d, t2.appendChild(e2.createElement("br")), t2.appendChild(d);
|
|
12515
12512
|
}
|
|
12516
|
-
for (var
|
|
12517
|
-
var o2 = R2[
|
|
12513
|
+
for (var w2 = 0, R2 = Object.keys(J); w2 < R2.length; w2++) {
|
|
12514
|
+
var o2 = R2[w2];
|
|
12518
12515
|
a[o2] = n2[o2].getBoundingClientRect().width;
|
|
12519
12516
|
}
|
|
12520
12517
|
return a;
|
|
@@ -13687,7 +13684,7 @@ async function fetchData({
|
|
|
13687
13684
|
(_i = (_h = state.options) == null ? void 0 : _h.paymentInstruments) == null ? void 0 : _i.allowDeactivate,
|
|
13688
13685
|
(_k = (_j = state.options) == null ? void 0 : _j.paymentInstruments) == null ? void 0 : _k.allowUpdate,
|
|
13689
13686
|
(_m = (_l = state.options) == null ? void 0 : _l.paymentInstruments) == null ? void 0 : _m.allowMakeDefault
|
|
13690
|
-
].some((
|
|
13687
|
+
].some((v) => v);
|
|
13691
13688
|
let readyToPayPromise = Promise.resolve(null);
|
|
13692
13689
|
let readyToPayoutPromise = Promise.resolve(null);
|
|
13693
13690
|
let fetchAccountAndWebsitePromise = Promise.resolve();
|
|
@@ -15145,11 +15142,11 @@ function mix(color1, color2, percentage2 = 50) {
|
|
|
15145
15142
|
const c2 = parseColor(color2);
|
|
15146
15143
|
if (!c1 || !c2) return null;
|
|
15147
15144
|
const p = Math.min(Math.max(0, percentage2), 100) / 100;
|
|
15148
|
-
const
|
|
15145
|
+
const w2 = p * 2 - 1;
|
|
15149
15146
|
const a = c1.alpha - c2.alpha;
|
|
15150
|
-
const w1 = ((
|
|
15151
|
-
const
|
|
15152
|
-
const [r2, g, b] = c1.values.map((c, i) => Math.round(c1.values[i] * w1 + c2.values[i] *
|
|
15147
|
+
const w1 = ((w2 * a === -1 ? w2 : (w2 + a) / (1 + w2 * a)) + 1) / 2;
|
|
15148
|
+
const w22 = 1 - w1;
|
|
15149
|
+
const [r2, g, b] = c1.values.map((c, i) => Math.round(c1.values[i] * w1 + c2.values[i] * w22));
|
|
15153
15150
|
const alpha = parseFloat((c1.alpha * p + c2.alpha * (1 - p)).toFixed(8));
|
|
15154
15151
|
return {
|
|
15155
15152
|
hex: rgb2hex([r2, g, b]),
|
|
@@ -15289,7 +15286,7 @@ const parseCSSColor = (str) => {
|
|
|
15289
15286
|
* @link http://noeldelgado.github.io/values.js/
|
|
15290
15287
|
* @license MIT
|
|
15291
15288
|
*/
|
|
15292
|
-
const defaultNumberParam = (
|
|
15289
|
+
const defaultNumberParam = (v, d) => v === null || isNaN(v) || typeof v === "string" ? d : v;
|
|
15293
15290
|
class Values {
|
|
15294
15291
|
constructor(color = "#000", type = "base", weight = 0) {
|
|
15295
15292
|
[this.rgb, this.alpha, this.type, this.weight] = [[0, 0, 0], 1, type, weight];
|
|
@@ -15307,17 +15304,17 @@ class Values {
|
|
|
15307
15304
|
if (!parsed) return null;
|
|
15308
15305
|
return this[`_setFrom${parsed.type.toUpperCase()}`]([...parsed.values, parsed.alpha]);
|
|
15309
15306
|
}
|
|
15310
|
-
tint(weight,
|
|
15311
|
-
return new Values(`rgb(${mix("#fff", this.rgbString(),
|
|
15307
|
+
tint(weight, w2 = defaultNumberParam(weight, 50)) {
|
|
15308
|
+
return new Values(`rgb(${mix("#fff", this.rgbString(), w2).rgba})`, "tint", w2);
|
|
15312
15309
|
}
|
|
15313
|
-
shade(weight,
|
|
15314
|
-
return new Values(`rgb(${mix("#000", this.rgbString(),
|
|
15310
|
+
shade(weight, w2 = defaultNumberParam(weight, 50)) {
|
|
15311
|
+
return new Values(`rgb(${mix("#000", this.rgbString(), w2).rgba})`, "shade", w2);
|
|
15315
15312
|
}
|
|
15316
|
-
tints(weight,
|
|
15317
|
-
return Array.from({ length: 100 /
|
|
15313
|
+
tints(weight, w2 = defaultNumberParam(weight, 10)) {
|
|
15314
|
+
return Array.from({ length: 100 / w2 }, (_2, i) => this.tint((i + 1) * w2));
|
|
15318
15315
|
}
|
|
15319
|
-
shades(weight,
|
|
15320
|
-
return Array.from({ length: 100 /
|
|
15316
|
+
shades(weight, w2 = defaultNumberParam(weight, 10)) {
|
|
15317
|
+
return Array.from({ length: 100 / w2 }, (_2, i) => this.shade((i + 1) * w2));
|
|
15321
15318
|
}
|
|
15322
15319
|
all(weight = 10) {
|
|
15323
15320
|
return [...this.tints(weight).reverse(), Object.assign(this), ...this.shades(weight)];
|
|
@@ -16478,7 +16475,7 @@ const _Theme = class _Theme {
|
|
|
16478
16475
|
});
|
|
16479
16476
|
}
|
|
16480
16477
|
get cssVars() {
|
|
16481
|
-
return Object.keys(this.theme).filter((
|
|
16478
|
+
return Object.keys(this.theme).filter((v) => !_Theme.nonCssProperties.includes(v)).map((p, i) => `${!i ? "" : " "}--rebilly-${p}: ${this.theme[p]};`).join("\n");
|
|
16482
16479
|
}
|
|
16483
16480
|
build() {
|
|
16484
16481
|
this.overrideTheme();
|