@rebilly/instruments 16.157.3 → 16.157.4
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 +6 -1
- package/dist/index.js +90 -90
- package/dist/index.min.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
## [16.157.
|
|
1
|
+
## [16.157.4](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.157.3...instruments/core-v16.157.4) (2026-07-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **api:** Fix sdk generation with downloadComplianceScreeningReport ([#23719](https://github.com/Rebilly/rebilly/issues/23719)) ([856f75e](https://github.com/Rebilly/rebilly/commit/856f75efa875b67613ffb7d4433db710b9158e56))
|
package/dist/index.js
CHANGED
|
@@ -2435,9 +2435,9 @@ function merge(...objs) {
|
|
|
2435
2435
|
}
|
|
2436
2436
|
return result;
|
|
2437
2437
|
}
|
|
2438
|
-
const extend = (a,
|
|
2438
|
+
const extend = (a, b2, thisArg, { allOwnKeys } = {}) => {
|
|
2439
2439
|
forEach(
|
|
2440
|
-
|
|
2440
|
+
b2,
|
|
2441
2441
|
(val, key) => {
|
|
2442
2442
|
if (thisArg && isFunction$1(val)) {
|
|
2443
2443
|
Object.defineProperty(a, key, {
|
|
@@ -3867,28 +3867,28 @@ function mergeConfig$1(config1, config2) {
|
|
|
3867
3867
|
}
|
|
3868
3868
|
return source;
|
|
3869
3869
|
}
|
|
3870
|
-
function mergeDeepProperties(a,
|
|
3871
|
-
if (!utils$1.isUndefined(
|
|
3872
|
-
return getMergedValue(a,
|
|
3870
|
+
function mergeDeepProperties(a, b2, prop, caseless) {
|
|
3871
|
+
if (!utils$1.isUndefined(b2)) {
|
|
3872
|
+
return getMergedValue(a, b2, prop, caseless);
|
|
3873
3873
|
} else if (!utils$1.isUndefined(a)) {
|
|
3874
3874
|
return getMergedValue(void 0, a, prop, caseless);
|
|
3875
3875
|
}
|
|
3876
3876
|
}
|
|
3877
|
-
function valueFromConfig2(a,
|
|
3878
|
-
if (!utils$1.isUndefined(
|
|
3879
|
-
return getMergedValue(void 0,
|
|
3877
|
+
function valueFromConfig2(a, b2) {
|
|
3878
|
+
if (!utils$1.isUndefined(b2)) {
|
|
3879
|
+
return getMergedValue(void 0, b2);
|
|
3880
3880
|
}
|
|
3881
3881
|
}
|
|
3882
|
-
function defaultToConfig2(a,
|
|
3883
|
-
if (!utils$1.isUndefined(
|
|
3884
|
-
return getMergedValue(void 0,
|
|
3882
|
+
function defaultToConfig2(a, b2) {
|
|
3883
|
+
if (!utils$1.isUndefined(b2)) {
|
|
3884
|
+
return getMergedValue(void 0, b2);
|
|
3885
3885
|
} else if (!utils$1.isUndefined(a)) {
|
|
3886
3886
|
return getMergedValue(void 0, a);
|
|
3887
3887
|
}
|
|
3888
3888
|
}
|
|
3889
|
-
function mergeDirectKeys(a,
|
|
3889
|
+
function mergeDirectKeys(a, b2, prop) {
|
|
3890
3890
|
if (utils$1.hasOwnProp(config2, prop)) {
|
|
3891
|
-
return getMergedValue(a,
|
|
3891
|
+
return getMergedValue(a, b2);
|
|
3892
3892
|
} else if (utils$1.hasOwnProp(config1, prop)) {
|
|
3893
3893
|
return getMergedValue(void 0, a);
|
|
3894
3894
|
}
|
|
@@ -3923,14 +3923,14 @@ function mergeConfig$1(config1, config2) {
|
|
|
3923
3923
|
allowedSocketPaths: defaultToConfig2,
|
|
3924
3924
|
responseEncoding: defaultToConfig2,
|
|
3925
3925
|
validateStatus: mergeDirectKeys,
|
|
3926
|
-
headers: (a,
|
|
3926
|
+
headers: (a, b2, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b2), prop, true)
|
|
3927
3927
|
};
|
|
3928
3928
|
utils$1.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
|
|
3929
3929
|
if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
|
|
3930
3930
|
const merge2 = utils$1.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
3931
3931
|
const a = utils$1.hasOwnProp(config1, prop) ? config1[prop] : void 0;
|
|
3932
|
-
const
|
|
3933
|
-
const configValue = merge2(a,
|
|
3932
|
+
const b2 = utils$1.hasOwnProp(config2, prop) ? config2[prop] : void 0;
|
|
3933
|
+
const configValue = merge2(a, b2, prop);
|
|
3934
3934
|
utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
3935
3935
|
});
|
|
3936
3936
|
return config;
|
|
@@ -4269,8 +4269,8 @@ function estimateDataURLDecodedBytes(url) {
|
|
|
4269
4269
|
for (let i = 0; i < len; i++) {
|
|
4270
4270
|
if (body.charCodeAt(i) === 37 && i + 2 < len) {
|
|
4271
4271
|
const a = body.charCodeAt(i + 1);
|
|
4272
|
-
const
|
|
4273
|
-
const isHex = (a >= 48 && a <= 57 || a >= 65 && a <= 70 || a >= 97 && a <= 102) && (
|
|
4272
|
+
const b2 = body.charCodeAt(i + 2);
|
|
4273
|
+
const isHex = (a >= 48 && a <= 57 || a >= 65 && a <= 70 || a >= 97 && a <= 102) && (b2 >= 48 && b2 <= 57 || b2 >= 65 && b2 <= 70 || b2 >= 97 && b2 <= 102);
|
|
4274
4274
|
if (isHex) {
|
|
4275
4275
|
effectiveLen -= 2;
|
|
4276
4276
|
i += 2;
|
|
@@ -5365,16 +5365,16 @@ let A$1 = class A extends Error {
|
|
|
5365
5365
|
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;
|
|
5366
5366
|
}
|
|
5367
5367
|
};
|
|
5368
|
-
class
|
|
5368
|
+
let Re$1 = class Re extends A$1 {
|
|
5369
5369
|
constructor(e2) {
|
|
5370
5370
|
super({ error: e2, name: "RebillyRequestError" });
|
|
5371
5371
|
}
|
|
5372
|
-
}
|
|
5373
|
-
|
|
5372
|
+
};
|
|
5373
|
+
class be extends A$1 {
|
|
5374
5374
|
constructor(e2) {
|
|
5375
5375
|
super({ error: e2, name: "RebillyValidationError" });
|
|
5376
5376
|
}
|
|
5377
|
-
}
|
|
5377
|
+
}
|
|
5378
5378
|
let we$1 = class we extends A$1 {
|
|
5379
5379
|
constructor(e2) {
|
|
5380
5380
|
super({ error: e2, name: "RebillyNotFoundError" });
|
|
@@ -5407,8 +5407,8 @@ let Te$1 = class Te extends A$1 {
|
|
|
5407
5407
|
};
|
|
5408
5408
|
const y = {
|
|
5409
5409
|
RebillyError: A$1,
|
|
5410
|
-
RebillyRequestError:
|
|
5411
|
-
RebillyValidationError:
|
|
5410
|
+
RebillyRequestError: Re$1,
|
|
5411
|
+
RebillyValidationError: be,
|
|
5412
5412
|
RebillyNotFoundError: we$1,
|
|
5413
5413
|
RebillyConflictError: ke$1,
|
|
5414
5414
|
RebillyForbiddenError: ve$1,
|
|
@@ -5779,7 +5779,7 @@ function O$1({ options: t2 }) {
|
|
|
5779
5779
|
}
|
|
5780
5780
|
function o2() {
|
|
5781
5781
|
const g = {
|
|
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("/")}@856f75e`
|
|
5783
5783
|
};
|
|
5784
5784
|
return t2.apiKey && (g["REB-APIKEY"] = t2.apiKey), g;
|
|
5785
5785
|
}
|
|
@@ -5841,7 +5841,7 @@ function O$1({ options: t2 }) {
|
|
|
5841
5841
|
N2(v.response, c);
|
|
5842
5842
|
}
|
|
5843
5843
|
function w({ request: c, isCollection: g, config: m2 }) {
|
|
5844
|
-
const p = z2(m2), { id:
|
|
5844
|
+
const p = z2(m2), { id: R, cancelToken: $e2 } = q$1.save();
|
|
5845
5845
|
p.cancelToken = $e2;
|
|
5846
5846
|
const W2 = (async function() {
|
|
5847
5847
|
try {
|
|
@@ -5854,10 +5854,10 @@ function O$1({ options: t2 }) {
|
|
|
5854
5854
|
} catch (d) {
|
|
5855
5855
|
return L2({ error: d });
|
|
5856
5856
|
} finally {
|
|
5857
|
-
q$1.deleteById(
|
|
5857
|
+
q$1.deleteById(R);
|
|
5858
5858
|
}
|
|
5859
5859
|
})();
|
|
5860
|
-
return W2.cancel = (d) => I$1.cancelById(
|
|
5860
|
+
return W2.cancel = (d) => I$1.cancelById(R, d), W2;
|
|
5861
5861
|
}
|
|
5862
5862
|
function oe2({ response: c, isCollection: g, config: m2 }) {
|
|
5863
5863
|
return g ? new ye$1(c, m2) : new ee$1(c, m2);
|
|
@@ -5906,7 +5906,7 @@ function O$1({ options: t2 }) {
|
|
|
5906
5906
|
function V2(c, g, m2 = {}) {
|
|
5907
5907
|
let p = {};
|
|
5908
5908
|
return m2.authenticate === false && (p = { headers: l() }, delete p.headers.common["REB-APIKEY"], delete p.headers.common.Authorization), m2.params && (p.params = { ...m2.params }), w({
|
|
5909
|
-
request: (
|
|
5909
|
+
request: (R) => e2.post(c, g, R),
|
|
5910
5910
|
config: p
|
|
5911
5911
|
});
|
|
5912
5912
|
}
|
|
@@ -5942,10 +5942,10 @@ function O$1({ options: t2 }) {
|
|
|
5942
5942
|
throw new y.RebillyConflictError({
|
|
5943
5943
|
message: "A resource already exists with this ID. Please use a different ID."
|
|
5944
5944
|
});
|
|
5945
|
-
} catch (
|
|
5946
|
-
if (
|
|
5945
|
+
} catch (R) {
|
|
5946
|
+
if (R.name === "RebillyNotFoundError")
|
|
5947
5947
|
return J2(c, m2, p);
|
|
5948
|
-
throw
|
|
5948
|
+
throw R;
|
|
5949
5949
|
}
|
|
5950
5950
|
}
|
|
5951
5951
|
async function fe2(c, g) {
|
|
@@ -6451,7 +6451,7 @@ function Ze$1({ apiHandler: t2 }) {
|
|
|
6451
6451
|
}
|
|
6452
6452
|
};
|
|
6453
6453
|
}
|
|
6454
|
-
const
|
|
6454
|
+
const b = { Accept: "application/pdf" };
|
|
6455
6455
|
function _e$1({ apiHandler: t2 }) {
|
|
6456
6456
|
return {
|
|
6457
6457
|
/**
|
|
@@ -6526,7 +6526,7 @@ function _e$1({ apiHandler: t2 }) {
|
|
|
6526
6526
|
},
|
|
6527
6527
|
downloadPDF({ id: e2 }) {
|
|
6528
6528
|
const s = {
|
|
6529
|
-
headers:
|
|
6529
|
+
headers: b,
|
|
6530
6530
|
responseType: "arraybuffer"
|
|
6531
6531
|
};
|
|
6532
6532
|
return t2.download(`credit-memos/${e2}`, s);
|
|
@@ -6782,7 +6782,7 @@ function st$1({ apiHandler: t2 }) {
|
|
|
6782
6782
|
},
|
|
6783
6783
|
downloadComplianceScreeningReport({ id: e2 }) {
|
|
6784
6784
|
const s = {
|
|
6785
|
-
headers:
|
|
6785
|
+
headers: b,
|
|
6786
6786
|
responseType: "arraybuffer"
|
|
6787
6787
|
};
|
|
6788
6788
|
return t2.download(
|
|
@@ -7659,14 +7659,14 @@ function At$1({ apiHandler: t2 }) {
|
|
|
7659
7659
|
},
|
|
7660
7660
|
downloadPDF({ id: e2 }) {
|
|
7661
7661
|
const s = {
|
|
7662
|
-
headers:
|
|
7662
|
+
headers: b,
|
|
7663
7663
|
responseType: "arraybuffer"
|
|
7664
7664
|
};
|
|
7665
7665
|
return t2.download(`invoices/${e2}`, s);
|
|
7666
7666
|
}
|
|
7667
7667
|
};
|
|
7668
7668
|
}
|
|
7669
|
-
function
|
|
7669
|
+
function Rt$1({ apiHandler: t2 }) {
|
|
7670
7670
|
return {
|
|
7671
7671
|
/**
|
|
7672
7672
|
* @param { rebilly.GetJournalAccountCollectionRequest } request
|
|
@@ -7702,7 +7702,7 @@ function bt$1({ apiHandler: t2 }) {
|
|
|
7702
7702
|
}
|
|
7703
7703
|
};
|
|
7704
7704
|
}
|
|
7705
|
-
function
|
|
7705
|
+
function bt$1({ apiHandler: t2 }) {
|
|
7706
7706
|
return {
|
|
7707
7707
|
/**
|
|
7708
7708
|
* @param { rebilly.GetJournalEntryCollectionRequest } request
|
|
@@ -8643,7 +8643,7 @@ function Wt$1({ apiHandler: t2 }) {
|
|
|
8643
8643
|
},
|
|
8644
8644
|
downloadPDF({ id: e2 }) {
|
|
8645
8645
|
const s = {
|
|
8646
|
-
headers:
|
|
8646
|
+
headers: b,
|
|
8647
8647
|
responseType: "arraybuffer"
|
|
8648
8648
|
};
|
|
8649
8649
|
return t2.download(`quotes/${e2}`, s);
|
|
@@ -9371,7 +9371,7 @@ function is({ apiHandler: t2 }) {
|
|
|
9371
9371
|
},
|
|
9372
9372
|
downloadPDF({ id: e2 }) {
|
|
9373
9373
|
const s = {
|
|
9374
|
-
headers:
|
|
9374
|
+
headers: b,
|
|
9375
9375
|
responseType: "arraybuffer"
|
|
9376
9376
|
};
|
|
9377
9377
|
return t2.download(`transactions/${e2}`, s);
|
|
@@ -9533,7 +9533,7 @@ class $s {
|
|
|
9533
9533
|
apiHandler: e2
|
|
9534
9534
|
}), this.depositRequests = nt$1({ apiHandler: e2 }), this.depositStrategies = ut$1({ apiHandler: e2 }), this.digitalWallets = ot$1({ apiHandler: e2 }), this.disputes = lt$1({ apiHandler: e2 }), this.emailDeliverySettings = ct$1({ apiHandler: e2 }), this.emailMessages = it$1({ apiHandler: e2 }), this.emailNotifications = gt$1({ apiHandler: e2 }), this.events = at$1({ apiHandler: e2 }), this.externalIdentifiers = mt$1({ apiHandler: e2 }), this.externalServicesSettings = ft$1({
|
|
9535
9535
|
apiHandler: e2
|
|
9536
|
-
}), this.fees = $t$1({ apiHandler: e2 }), this.files = pt$1({ apiHandler: e2 }), this.gatewayAccounts = ht$1({ apiHandler: e2 }), this.integrations = yt$1({ apiHandler: e2 }), this.invoices = At$1({ apiHandler: e2 }), this.journalAccounts =
|
|
9536
|
+
}), this.fees = $t$1({ apiHandler: e2 }), this.files = pt$1({ apiHandler: e2 }), this.gatewayAccounts = ht$1({ apiHandler: e2 }), this.integrations = yt$1({ apiHandler: e2 }), this.invoices = At$1({ apiHandler: e2 }), this.journalAccounts = Rt$1({ apiHandler: e2 }), this.journalEntries = bt$1({ apiHandler: e2 }), this.journalRecords = wt$1({ apiHandler: e2 }), this.kycDocuments = kt$1({ apiHandler: e2 }), this.kycRequests = vt$1({ apiHandler: e2 }), this.kycSettings = qt$1({ apiHandler: e2 }), this.lists = dt$1({ apiHandler: e2 }), this.memberships = Tt$1({ apiHandler: e2 }), this.orderCancellations = It$1({ apiHandler: e2 }), this.orderPauses = St$1({ apiHandler: e2 }), this.orderReactivations = Et$1({ apiHandler: e2 }), this.orders = xt$1({ apiHandler: e2 }), this.organizationExports = Pt$1({ apiHandler: e2 }), this.organizations = Ct$1({ apiHandler: e2 }), this.paymentCardsBankNames = Dt$1({ apiHandler: e2 }), this.paymentInstruments = jt$1({ apiHandler: e2 }), this.paymentMethods = Mt$1({ apiHandler: e2 }), this.paymentTokens = Ot$1({ apiHandler: e2 }), this.payoutRequestAllocations = Ft$1({
|
|
9537
9537
|
apiHandler: e2
|
|
9538
9538
|
}), this.payoutRequestBatches = Bt$1({ apiHandler: e2 }), this.payoutRequests = Kt$1({ apiHandler: e2 }), this.payouts = Nt$1({ apiHandler: e2 }), this.plans = Lt$1({ apiHandler: e2 }), this.previews = zt$1({ apiHandler: e2 }), this.products = Ut$1({ apiHandler: e2 }), this.profile = Vt$1({ apiHandler: e2 }), this.purchase = Jt$1({ apiHandler: e2 }), this.quotes = Wt$1({ apiHandler: e2 }), this.resource = Gt$1({ apiHandler: e2 }), this.riskScoreRules = Yt$1({ apiHandler: e2 }), this.roles = Qt$1({ apiHandler: e2 }), this.search = Xt$1({ apiHandler: e2 }), this.segments = Zt$1({ apiHandler: e2 }), this.sendThroughAttribution = _t$1({ apiHandler: e2 }), this.serviceCredentials = Ht$1({ apiHandler: e2 }), this.shippingRates = es({ apiHandler: e2 }), this.status = ts({ apiHandler: e2 }), this.subscriptionCancellations = ss({
|
|
9539
9539
|
apiHandler: e2
|
|
@@ -10113,7 +10113,7 @@ function As({ apiHandler: t2 }) {
|
|
|
10113
10113
|
}
|
|
10114
10114
|
};
|
|
10115
10115
|
}
|
|
10116
|
-
function
|
|
10116
|
+
function Rs({ apiHandler: t2 }) {
|
|
10117
10117
|
return {
|
|
10118
10118
|
/**
|
|
10119
10119
|
* @returns { rebilly.GetSubscriptionSummaryMetricReportResponsePromise } response
|
|
@@ -10123,7 +10123,7 @@ function bs({ apiHandler: t2 }) {
|
|
|
10123
10123
|
}
|
|
10124
10124
|
};
|
|
10125
10125
|
}
|
|
10126
|
-
function
|
|
10126
|
+
function bs({ apiHandler: t2 }) {
|
|
10127
10127
|
return {
|
|
10128
10128
|
getActivityFeed({ eventTypes: e2 = null, limit: s = 1e3, offset: r2 = 0 }) {
|
|
10129
10129
|
const n2 = {
|
|
@@ -10163,8 +10163,8 @@ const k$1 = {
|
|
|
10163
10163
|
DataExportsResource: hs,
|
|
10164
10164
|
HistogramsResource: ys,
|
|
10165
10165
|
ReportsResource: As,
|
|
10166
|
-
SubscriptionsResource:
|
|
10167
|
-
TimelinesResource:
|
|
10166
|
+
SubscriptionsResource: Rs,
|
|
10167
|
+
TimelinesResource: bs,
|
|
10168
10168
|
LocationResource: ws
|
|
10169
10169
|
};
|
|
10170
10170
|
class ks {
|
|
@@ -10320,7 +10320,7 @@ function Cs({ apiHandler: t2 }) {
|
|
|
10320
10320
|
},
|
|
10321
10321
|
downloadPDF({ id: e2 }) {
|
|
10322
10322
|
const s = {
|
|
10323
|
-
headers:
|
|
10323
|
+
headers: b,
|
|
10324
10324
|
responseType: "arraybuffer"
|
|
10325
10325
|
};
|
|
10326
10326
|
return t2.download(`invoices/${e2}`, s);
|
|
@@ -10576,7 +10576,7 @@ function zs({ apiHandler: t2 }) {
|
|
|
10576
10576
|
},
|
|
10577
10577
|
downloadPDF({ id: e2 }) {
|
|
10578
10578
|
const s = {
|
|
10579
|
-
headers:
|
|
10579
|
+
headers: b,
|
|
10580
10580
|
responseType: "arraybuffer"
|
|
10581
10581
|
};
|
|
10582
10582
|
return t2.download(`quotes/${e2}`, s);
|
|
@@ -10646,7 +10646,7 @@ function Ws({ apiHandler: t2 }) {
|
|
|
10646
10646
|
},
|
|
10647
10647
|
downloadPDF({ id: e2 }) {
|
|
10648
10648
|
const s = {
|
|
10649
|
-
headers:
|
|
10649
|
+
headers: b,
|
|
10650
10650
|
responseType: "arraybuffer"
|
|
10651
10651
|
};
|
|
10652
10652
|
return t2.download(`transactions/${e2}`, s);
|
|
@@ -11593,15 +11593,15 @@ function ve2(e2, t2, n2) {
|
|
|
11593
11593
|
return l.trys.push([4, , 10, 11]), [4, new Promise(function(s, u) {
|
|
11594
11594
|
var f = false, d = function() {
|
|
11595
11595
|
f = true, s();
|
|
11596
|
-
}, p = function(
|
|
11597
|
-
f = true, u(
|
|
11596
|
+
}, p = function(b2) {
|
|
11597
|
+
f = true, u(b2);
|
|
11598
11598
|
};
|
|
11599
11599
|
c.onload = d, c.onerror = p;
|
|
11600
11600
|
var g = c.style;
|
|
11601
11601
|
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);
|
|
11602
11602
|
var y2 = function() {
|
|
11603
|
-
var
|
|
11604
|
-
f || (((w = (
|
|
11603
|
+
var b2, w;
|
|
11604
|
+
f || (((w = (b2 = c.contentWindow) === null || b2 === void 0 ? void 0 : b2.document) === null || w === void 0 ? void 0 : w.readyState) === "complete" ? d() : setTimeout(y2, 10));
|
|
11605
11605
|
};
|
|
11606
11606
|
y2();
|
|
11607
11607
|
})];
|
|
@@ -11705,25 +11705,25 @@ function Je() {
|
|
|
11705
11705
|
var n2 = t2.document, a = n2.body;
|
|
11706
11706
|
a.style.fontSize = He;
|
|
11707
11707
|
var i = n2.createElement("div"), r2 = {}, o2 = {}, c = function(y2) {
|
|
11708
|
-
var
|
|
11709
|
-
return w.position = "absolute", w.top = "0", w.left = "0", w.fontFamily = y2,
|
|
11710
|
-
}, l = function(y2,
|
|
11711
|
-
return c("'".concat(y2, "',").concat(
|
|
11708
|
+
var b2 = n2.createElement("span"), w = b2.style;
|
|
11709
|
+
return w.position = "absolute", w.top = "0", w.left = "0", w.fontFamily = y2, b2.textContent = Ee, i.appendChild(b2), b2;
|
|
11710
|
+
}, l = function(y2, b2) {
|
|
11711
|
+
return c("'".concat(y2, "',").concat(b2));
|
|
11712
11712
|
}, s = function() {
|
|
11713
11713
|
return M.map(c);
|
|
11714
11714
|
}, u = function() {
|
|
11715
|
-
for (var y2 = {},
|
|
11715
|
+
for (var y2 = {}, b2 = function(P2) {
|
|
11716
11716
|
y2[P2] = M.map(function(T2) {
|
|
11717
11717
|
return l(P2, T2);
|
|
11718
11718
|
});
|
|
11719
|
-
}, w = 0,
|
|
11720
|
-
var D2 =
|
|
11721
|
-
|
|
11719
|
+
}, w = 0, R = te; w < R.length; w++) {
|
|
11720
|
+
var D2 = R[w];
|
|
11721
|
+
b2(D2);
|
|
11722
11722
|
}
|
|
11723
11723
|
return y2;
|
|
11724
11724
|
}, f = function(y2) {
|
|
11725
|
-
return M.some(function(
|
|
11726
|
-
return y2[w].offsetWidth !== r2[
|
|
11725
|
+
return M.some(function(b2, w) {
|
|
11726
|
+
return y2[w].offsetWidth !== r2[b2] || y2[w].offsetHeight !== o2[b2];
|
|
11727
11727
|
});
|
|
11728
11728
|
}, d = s(), p = u();
|
|
11729
11729
|
a.appendChild(i);
|
|
@@ -12405,11 +12405,11 @@ var m = Math, S = function() {
|
|
|
12405
12405
|
function It() {
|
|
12406
12406
|
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) {
|
|
12407
12407
|
return m.pow(m.PI, v2);
|
|
12408
|
-
},
|
|
12408
|
+
}, b2 = function(v2) {
|
|
12409
12409
|
return m.log(v2 + m.sqrt(v2 * v2 - 1));
|
|
12410
12410
|
}, w = function(v2) {
|
|
12411
12411
|
return m.log(v2 + m.sqrt(v2 * v2 + 1));
|
|
12412
|
-
},
|
|
12412
|
+
}, R = function(v2) {
|
|
12413
12413
|
return m.log((1 + v2) / (1 - v2)) / 2;
|
|
12414
12414
|
}, D2 = function(v2) {
|
|
12415
12415
|
return m.exp(v2) - 1 / m.exp(v2) / 2;
|
|
@@ -12425,12 +12425,12 @@ function It() {
|
|
|
12425
12425
|
return {
|
|
12426
12426
|
acos: e2(0.12312423423423424),
|
|
12427
12427
|
acosh: t2(1e308),
|
|
12428
|
-
acoshPf:
|
|
12428
|
+
acoshPf: b2(1e154),
|
|
12429
12429
|
asin: n2(0.12312423423423424),
|
|
12430
12430
|
asinh: a(1),
|
|
12431
12431
|
asinhPf: w(1),
|
|
12432
12432
|
atanh: i(0.5),
|
|
12433
|
-
atanhPf:
|
|
12433
|
+
atanhPf: R(0.5),
|
|
12434
12434
|
atan: r2(0.5),
|
|
12435
12435
|
sin: o2(-1e300),
|
|
12436
12436
|
sinh: c(1),
|
|
@@ -12477,13 +12477,13 @@ function Yt() {
|
|
|
12477
12477
|
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");
|
|
12478
12478
|
d.textContent = f, d.style.whiteSpace = "nowrap";
|
|
12479
12479
|
for (var p = 0, g = Object.keys(s); p < g.length; p++) {
|
|
12480
|
-
var y2 = g[p],
|
|
12481
|
-
|
|
12480
|
+
var y2 = g[p], b2 = s[y2];
|
|
12481
|
+
b2 !== void 0 && (d.style[y2] = b2);
|
|
12482
12482
|
}
|
|
12483
12483
|
n2[o2] = d, t2.appendChild(e2.createElement("br")), t2.appendChild(d);
|
|
12484
12484
|
}
|
|
12485
|
-
for (var w = 0,
|
|
12486
|
-
var o2 =
|
|
12485
|
+
for (var w = 0, R = Object.keys(J); w < R.length; w++) {
|
|
12486
|
+
var o2 = R[w];
|
|
12487
12487
|
a[o2] = n2[o2].getBoundingClientRect().width;
|
|
12488
12488
|
}
|
|
12489
12489
|
return a;
|
|
@@ -14952,8 +14952,8 @@ function parseAlpha$1(alpha) {
|
|
|
14952
14952
|
return clamp$1(a, 0, 1);
|
|
14953
14953
|
}
|
|
14954
14954
|
function getHEX$1(hex) {
|
|
14955
|
-
const [r2, g,
|
|
14956
|
-
return getRGB$1([null, ...[r2, g,
|
|
14955
|
+
const [r2, g, b2, a] = hex2Rgb(hex, { format: "array" });
|
|
14956
|
+
return getRGB$1([null, ...[r2, g, b2, a]]);
|
|
14957
14957
|
}
|
|
14958
14958
|
function getHSL$1([, h2, s, l, a = 1]) {
|
|
14959
14959
|
let hh = h2;
|
|
@@ -14970,10 +14970,10 @@ function getHSL$1([, h2, s, l, a = 1]) {
|
|
|
14970
14970
|
alpha: parseAlpha$1(a === null ? 1 : a)
|
|
14971
14971
|
};
|
|
14972
14972
|
}
|
|
14973
|
-
function getRGB$1([, r2, g,
|
|
14973
|
+
function getRGB$1([, r2, g, b2, a = 1]) {
|
|
14974
14974
|
return {
|
|
14975
14975
|
type: "rgb",
|
|
14976
|
-
values: [r2, g,
|
|
14976
|
+
values: [r2, g, b2].map(parseRGB$1),
|
|
14977
14977
|
alpha: parseAlpha$1(a === null ? 1 : a)
|
|
14978
14978
|
};
|
|
14979
14979
|
}
|
|
@@ -15071,14 +15071,14 @@ function requireRgb2hsl() {
|
|
|
15071
15071
|
if (hasRequiredRgb2hsl) return rgb2hsl_1;
|
|
15072
15072
|
hasRequiredRgb2hsl = 1;
|
|
15073
15073
|
function rgb2hsl2(rgb) {
|
|
15074
|
-
var r2 = rgb[0] / 255, g = rgb[1] / 255,
|
|
15074
|
+
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;
|
|
15075
15075
|
if (max == min)
|
|
15076
15076
|
h2 = 0;
|
|
15077
15077
|
else if (r2 == max)
|
|
15078
|
-
h2 = (g -
|
|
15078
|
+
h2 = (g - b2) / delta;
|
|
15079
15079
|
else if (g == max)
|
|
15080
|
-
h2 = 2 + (
|
|
15081
|
-
else if (
|
|
15080
|
+
h2 = 2 + (b2 - r2) / delta;
|
|
15081
|
+
else if (b2 == max)
|
|
15082
15082
|
h2 = 4 + (r2 - g) / delta;
|
|
15083
15083
|
h2 = Math.min(h2 * 60, 360);
|
|
15084
15084
|
if (h2 < 0)
|
|
@@ -15118,13 +15118,13 @@ function mix(color1, color2, percentage2 = 50) {
|
|
|
15118
15118
|
const a = c1.alpha - c2.alpha;
|
|
15119
15119
|
const w1 = ((w * a === -1 ? w : (w + a) / (1 + w * a)) + 1) / 2;
|
|
15120
15120
|
const w2 = 1 - w1;
|
|
15121
|
-
const [r2, g,
|
|
15121
|
+
const [r2, g, b2] = c1.values.map((c, i) => Math.round(c1.values[i] * w1 + c2.values[i] * w2));
|
|
15122
15122
|
const alpha = parseFloat((c1.alpha * p + c2.alpha * (1 - p)).toFixed(8));
|
|
15123
15123
|
return {
|
|
15124
|
-
hex: rgb2hex([r2, g,
|
|
15125
|
-
hexa: rgb2hex([r2, g,
|
|
15126
|
-
rgba: [r2, g,
|
|
15127
|
-
hsla: [...rgb2hsl([r2, g,
|
|
15124
|
+
hex: rgb2hex([r2, g, b2]),
|
|
15125
|
+
hexa: rgb2hex([r2, g, b2, alpha]),
|
|
15126
|
+
rgba: [r2, g, b2, alpha],
|
|
15127
|
+
hsla: [...rgb2hsl([r2, g, b2]).map(Math.round), alpha]
|
|
15128
15128
|
};
|
|
15129
15129
|
}
|
|
15130
15130
|
const pattern = /^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/;
|
|
@@ -15208,8 +15208,8 @@ function parseAlpha(alpha) {
|
|
|
15208
15208
|
return clamp(a, 0, 1);
|
|
15209
15209
|
}
|
|
15210
15210
|
function getHEX(hex) {
|
|
15211
|
-
const [r2, g,
|
|
15212
|
-
return getRGB([null, ...[r2, g,
|
|
15211
|
+
const [r2, g, b2, a] = hex2Rgb(hex, { format: "array" });
|
|
15212
|
+
return getRGB([null, ...[r2, g, b2, a]]);
|
|
15213
15213
|
}
|
|
15214
15214
|
function getHSL([, h2, s, l, a = 1]) {
|
|
15215
15215
|
let hh = h2;
|
|
@@ -15226,10 +15226,10 @@ function getHSL([, h2, s, l, a = 1]) {
|
|
|
15226
15226
|
alpha: parseAlpha(a === null ? 1 : a)
|
|
15227
15227
|
};
|
|
15228
15228
|
}
|
|
15229
|
-
function getRGB([, r2, g,
|
|
15229
|
+
function getRGB([, r2, g, b2, a = 1]) {
|
|
15230
15230
|
return {
|
|
15231
15231
|
type: "rgb",
|
|
15232
|
-
values: [r2, g,
|
|
15232
|
+
values: [r2, g, b2].map(parseRGB),
|
|
15233
15233
|
alpha: parseAlpha(a === null ? 1 : a)
|
|
15234
15234
|
};
|
|
15235
15235
|
}
|
|
@@ -15299,10 +15299,10 @@ class Values {
|
|
|
15299
15299
|
return `${this.alpha >= 1 ? "rgb" : "rgba"}(${channels})`;
|
|
15300
15300
|
}
|
|
15301
15301
|
getBrightness() {
|
|
15302
|
-
return Math.round(this.rgb.reduce((a,
|
|
15302
|
+
return Math.round(this.rgb.reduce((a, b2) => a + b2) / (255 * 3) * 100);
|
|
15303
15303
|
}
|
|
15304
|
-
_setFromRGB([r2, g,
|
|
15305
|
-
[this.rgb, this.alpha] = [[r2, g,
|
|
15304
|
+
_setFromRGB([r2, g, b2, a]) {
|
|
15305
|
+
[this.rgb, this.alpha] = [[r2, g, b2], a];
|
|
15306
15306
|
return this;
|
|
15307
15307
|
}
|
|
15308
15308
|
_setFromHSL([h2, s, l, a]) {
|