@rebilly/instruments 7.5.0 → 7.5.1
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 +7 -0
- package/dist/index.js +864 -1634
- package/dist/index.min.js +11 -11
- package/package.json +3 -11
package/dist/index.js
CHANGED
|
@@ -6339,9 +6339,9 @@ function AmlChecksResource({ apiHandler }) {
|
|
|
6339
6339
|
offset = null,
|
|
6340
6340
|
sort = null,
|
|
6341
6341
|
filter: filter2 = null,
|
|
6342
|
-
q
|
|
6342
|
+
q = null
|
|
6343
6343
|
} = {}) {
|
|
6344
|
-
const params = { limit, offset, sort, filter: filter2, q
|
|
6344
|
+
const params = { limit, offset, sort, filter: filter2, q };
|
|
6345
6345
|
return apiHandler.getAll(`aml-checks`, params);
|
|
6346
6346
|
},
|
|
6347
6347
|
get({ id: id2 }) {
|
|
@@ -6418,12 +6418,12 @@ function ApplicationsResource({ apiHandler }) {
|
|
|
6418
6418
|
limit = null,
|
|
6419
6419
|
offset = null,
|
|
6420
6420
|
filter: filter2 = null,
|
|
6421
|
-
q
|
|
6421
|
+
q = null,
|
|
6422
6422
|
expand = null,
|
|
6423
6423
|
fields = null,
|
|
6424
6424
|
sort = null
|
|
6425
6425
|
} = {}) {
|
|
6426
|
-
const params = { limit, offset, filter: filter2, q
|
|
6426
|
+
const params = { limit, offset, filter: filter2, q, expand, fields, sort };
|
|
6427
6427
|
return apiHandler.getAll(`applications`, params);
|
|
6428
6428
|
},
|
|
6429
6429
|
create({ data }) {
|
|
@@ -6459,9 +6459,9 @@ function BillingPortalsResource$1({ apiHandler }) {
|
|
|
6459
6459
|
offset = null,
|
|
6460
6460
|
sort = null,
|
|
6461
6461
|
filter: filter2 = null,
|
|
6462
|
-
q
|
|
6462
|
+
q = null
|
|
6463
6463
|
} = {}) {
|
|
6464
|
-
const params = { limit, offset, sort, filter: filter2, q
|
|
6464
|
+
const params = { limit, offset, sort, filter: filter2, q };
|
|
6465
6465
|
return apiHandler.getAll(`billing-portals`, params);
|
|
6466
6466
|
},
|
|
6467
6467
|
create({ id: id2 = "", data }) {
|
|
@@ -6485,9 +6485,9 @@ function BlocklistsResource({ apiHandler }) {
|
|
|
6485
6485
|
offset = null,
|
|
6486
6486
|
sort = null,
|
|
6487
6487
|
filter: filter2 = null,
|
|
6488
|
-
q
|
|
6488
|
+
q = null
|
|
6489
6489
|
} = {}) {
|
|
6490
|
-
const params = { limit, offset, sort, filter: filter2, q
|
|
6490
|
+
const params = { limit, offset, sort, filter: filter2, q };
|
|
6491
6491
|
return apiHandler.getAll(`blocklists`, params);
|
|
6492
6492
|
},
|
|
6493
6493
|
create({ id: id2 = "", data }) {
|
|
@@ -6528,9 +6528,9 @@ function CheckoutFormsResource$1({ apiHandler }) {
|
|
|
6528
6528
|
offset = null,
|
|
6529
6529
|
sort = null,
|
|
6530
6530
|
filter: filter2 = null,
|
|
6531
|
-
q
|
|
6531
|
+
q = null
|
|
6532
6532
|
} = {}) {
|
|
6533
|
-
const params = { limit, offset, sort, filter: filter2, q
|
|
6533
|
+
const params = { limit, offset, sort, filter: filter2, q };
|
|
6534
6534
|
return apiHandler.getAll(`checkout-forms`, params);
|
|
6535
6535
|
},
|
|
6536
6536
|
create({ id: id2 = "", data }) {
|
|
@@ -6553,10 +6553,10 @@ function CouponsResource({ apiHandler }) {
|
|
|
6553
6553
|
limit = null,
|
|
6554
6554
|
offset = null,
|
|
6555
6555
|
filter: filter2 = null,
|
|
6556
|
-
q
|
|
6556
|
+
q = null,
|
|
6557
6557
|
sort = null
|
|
6558
6558
|
} = {}) {
|
|
6559
|
-
const params = { limit, offset, filter: filter2, q
|
|
6559
|
+
const params = { limit, offset, filter: filter2, q, sort };
|
|
6560
6560
|
return apiHandler.getAll(`coupons-redemptions`, params);
|
|
6561
6561
|
},
|
|
6562
6562
|
redeem({ data }) {
|
|
@@ -6572,10 +6572,10 @@ function CouponsResource({ apiHandler }) {
|
|
|
6572
6572
|
limit = null,
|
|
6573
6573
|
offset = null,
|
|
6574
6574
|
filter: filter2 = null,
|
|
6575
|
-
q
|
|
6575
|
+
q = null,
|
|
6576
6576
|
sort = null
|
|
6577
6577
|
} = {}) {
|
|
6578
|
-
const params = { limit, offset, filter: filter2, q
|
|
6578
|
+
const params = { limit, offset, filter: filter2, q, sort };
|
|
6579
6579
|
return apiHandler.getAll(`coupons`, params);
|
|
6580
6580
|
},
|
|
6581
6581
|
create({ id: id2 = "", data }) {
|
|
@@ -6599,9 +6599,9 @@ function CreditMemosResource({ apiHandler }) {
|
|
|
6599
6599
|
sort = null,
|
|
6600
6600
|
limit = null,
|
|
6601
6601
|
offset = null,
|
|
6602
|
-
q
|
|
6602
|
+
q = null
|
|
6603
6603
|
} = {}) {
|
|
6604
|
-
const params = { filter: filter2, sort, limit, offset, q
|
|
6604
|
+
const params = { filter: filter2, sort, limit, offset, q };
|
|
6605
6605
|
return apiHandler.getAll(`credit-memos`, params);
|
|
6606
6606
|
},
|
|
6607
6607
|
create({ id: id2 = "", data }) {
|
|
@@ -6625,9 +6625,9 @@ function CreditMemosResource({ apiHandler }) {
|
|
|
6625
6625
|
offset = null,
|
|
6626
6626
|
filter: filter2 = null,
|
|
6627
6627
|
sort = null,
|
|
6628
|
-
q
|
|
6628
|
+
q = null
|
|
6629
6629
|
}) {
|
|
6630
|
-
const params = { limit, offset, filter: filter2, sort, q
|
|
6630
|
+
const params = { limit, offset, filter: filter2, sort, q };
|
|
6631
6631
|
return apiHandler.getAll(`credit-memos/${id2}/timeline`, params);
|
|
6632
6632
|
},
|
|
6633
6633
|
createTimelineComment({ id: id2, data }) {
|
|
@@ -6648,9 +6648,9 @@ function CustomDomainsResource({ apiHandler }) {
|
|
|
6648
6648
|
offset = null,
|
|
6649
6649
|
sort = null,
|
|
6650
6650
|
filter: filter2 = null,
|
|
6651
|
-
q
|
|
6651
|
+
q = null
|
|
6652
6652
|
} = {}) {
|
|
6653
|
-
const params = { limit, offset, sort, filter: filter2, q
|
|
6653
|
+
const params = { limit, offset, sort, filter: filter2, q };
|
|
6654
6654
|
return apiHandler.getAll(`custom-domains`, params);
|
|
6655
6655
|
},
|
|
6656
6656
|
create({ data }) {
|
|
@@ -6742,12 +6742,12 @@ function CustomersResource$1({ apiHandler }) {
|
|
|
6742
6742
|
limit = null,
|
|
6743
6743
|
offset = null,
|
|
6744
6744
|
filter: filter2 = null,
|
|
6745
|
-
q
|
|
6745
|
+
q = null,
|
|
6746
6746
|
expand = null,
|
|
6747
6747
|
fields = null,
|
|
6748
6748
|
sort = null
|
|
6749
6749
|
} = {}) {
|
|
6750
|
-
const params = { limit, offset, filter: filter2, q
|
|
6750
|
+
const params = { limit, offset, filter: filter2, q, expand, fields, sort };
|
|
6751
6751
|
return apiHandler.getAll(`customers`, params);
|
|
6752
6752
|
},
|
|
6753
6753
|
create({ id: id2 = "", data, expand = null }) {
|
|
@@ -6785,9 +6785,9 @@ function CustomersResource$1({ apiHandler }) {
|
|
|
6785
6785
|
offset = null,
|
|
6786
6786
|
filter: filter2 = null,
|
|
6787
6787
|
sort = null,
|
|
6788
|
-
q
|
|
6788
|
+
q = null
|
|
6789
6789
|
}) {
|
|
6790
|
-
const params = { limit, offset, filter: filter2, sort, q
|
|
6790
|
+
const params = { limit, offset, filter: filter2, sort, q };
|
|
6791
6791
|
return apiHandler.getAll(`customers/${id2}/timeline`, params);
|
|
6792
6792
|
},
|
|
6793
6793
|
createTimelineComment({ id: id2, data }) {
|
|
@@ -6811,9 +6811,9 @@ function CustomersResource$1({ apiHandler }) {
|
|
|
6811
6811
|
offset = null,
|
|
6812
6812
|
filter: filter2 = null,
|
|
6813
6813
|
sort = null,
|
|
6814
|
-
q
|
|
6814
|
+
q = null
|
|
6815
6815
|
}) {
|
|
6816
|
-
const params = { limit, offset, filter: filter2, sort, q
|
|
6816
|
+
const params = { limit, offset, filter: filter2, sort, q };
|
|
6817
6817
|
return apiHandler.getAll(`customers/${id2}/edd-timeline`, params);
|
|
6818
6818
|
},
|
|
6819
6819
|
createEddTimelineComment({ id: id2, data }) {
|
|
@@ -6908,10 +6908,10 @@ function DisputesResource({ apiHandler }) {
|
|
|
6908
6908
|
sort = null,
|
|
6909
6909
|
limit = null,
|
|
6910
6910
|
offset = null,
|
|
6911
|
-
q
|
|
6911
|
+
q = null,
|
|
6912
6912
|
expand = null
|
|
6913
6913
|
} = {}) {
|
|
6914
|
-
const params = { filter: filter2, sort, limit, offset, q
|
|
6914
|
+
const params = { filter: filter2, sort, limit, offset, q, expand };
|
|
6915
6915
|
return apiHandler.getAll(`disputes`, params);
|
|
6916
6916
|
},
|
|
6917
6917
|
create({ id: id2 = "", data, expand = null }) {
|
|
@@ -6937,9 +6937,9 @@ function EmailDeliverySettingsResource({ apiHandler }) {
|
|
|
6937
6937
|
offset = null,
|
|
6938
6938
|
filter: filter2 = null,
|
|
6939
6939
|
sort = null,
|
|
6940
|
-
q
|
|
6940
|
+
q = null
|
|
6941
6941
|
} = {}) {
|
|
6942
|
-
const params = { limit, offset, filter: filter2, sort, q
|
|
6942
|
+
const params = { limit, offset, filter: filter2, sort, q };
|
|
6943
6943
|
return apiHandler.getAll(`email-delivery-settings`, params);
|
|
6944
6944
|
},
|
|
6945
6945
|
create({ data }) {
|
|
@@ -6966,11 +6966,11 @@ function EmailMessagesResource({ apiHandler }) {
|
|
|
6966
6966
|
getAll({
|
|
6967
6967
|
limit = null,
|
|
6968
6968
|
offset = null,
|
|
6969
|
-
q
|
|
6969
|
+
q = null,
|
|
6970
6970
|
sort = null,
|
|
6971
6971
|
filter: filter2 = null
|
|
6972
6972
|
} = {}) {
|
|
6973
|
-
const params = { limit, offset, q
|
|
6973
|
+
const params = { limit, offset, q, sort, filter: filter2 };
|
|
6974
6974
|
return apiHandler.getAll(`email-messages`, params);
|
|
6975
6975
|
},
|
|
6976
6976
|
create({ data }) {
|
|
@@ -7018,9 +7018,9 @@ function EventsResource({ apiHandler }) {
|
|
|
7018
7018
|
offset = null,
|
|
7019
7019
|
filter: filter2 = null,
|
|
7020
7020
|
sort = null,
|
|
7021
|
-
q
|
|
7021
|
+
q = null
|
|
7022
7022
|
}) {
|
|
7023
|
-
const params = { limit, offset, filter: filter2, sort, q
|
|
7023
|
+
const params = { limit, offset, filter: filter2, sort, q };
|
|
7024
7024
|
return apiHandler.getAll(`events/${eventType}/timeline`, params);
|
|
7025
7025
|
},
|
|
7026
7026
|
createTimelineComment({ eventType, data }) {
|
|
@@ -7037,11 +7037,11 @@ function EventsResource({ apiHandler }) {
|
|
|
7037
7037
|
limit = null,
|
|
7038
7038
|
offset = null,
|
|
7039
7039
|
filter: filter2 = null,
|
|
7040
|
-
q
|
|
7040
|
+
q = null,
|
|
7041
7041
|
sort = null,
|
|
7042
7042
|
fields = null
|
|
7043
7043
|
}) {
|
|
7044
|
-
const params = { limit, offset, filter: filter2, q
|
|
7044
|
+
const params = { limit, offset, filter: filter2, q, sort, fields };
|
|
7045
7045
|
return apiHandler.getAll(`events/${eventType}/rules/history`, params);
|
|
7046
7046
|
},
|
|
7047
7047
|
getRulesVersionNumber({ eventType, version: version2, fields = null }) {
|
|
@@ -7063,11 +7063,11 @@ function EventsResource({ apiHandler }) {
|
|
|
7063
7063
|
limit = null,
|
|
7064
7064
|
offset = null,
|
|
7065
7065
|
filter: filter2 = null,
|
|
7066
|
-
q
|
|
7066
|
+
q = null,
|
|
7067
7067
|
sort = null,
|
|
7068
7068
|
fields = null
|
|
7069
7069
|
}) {
|
|
7070
|
-
const params = { limit, offset, filter: filter2, q
|
|
7070
|
+
const params = { limit, offset, filter: filter2, q, sort, fields };
|
|
7071
7071
|
return apiHandler.getAll(`events/${eventType}/rules/drafts`, params);
|
|
7072
7072
|
},
|
|
7073
7073
|
createDraftRuleset({ eventType, data }) {
|
|
@@ -7149,12 +7149,12 @@ function FilesResource({ apiHandler }) {
|
|
|
7149
7149
|
limit = null,
|
|
7150
7150
|
offset = null,
|
|
7151
7151
|
filter: filter2 = null,
|
|
7152
|
-
q
|
|
7152
|
+
q = null,
|
|
7153
7153
|
expand = null,
|
|
7154
7154
|
fields = null,
|
|
7155
7155
|
sort = null
|
|
7156
7156
|
} = {}) {
|
|
7157
|
-
const params = { limit, offset, filter: filter2, q
|
|
7157
|
+
const params = { limit, offset, filter: filter2, q, expand, fields, sort };
|
|
7158
7158
|
return apiHandler.getAll(`attachments`, params);
|
|
7159
7159
|
},
|
|
7160
7160
|
attach({ id: id2 = "", data, expand = null }) {
|
|
@@ -7175,11 +7175,11 @@ function FilesResource({ apiHandler }) {
|
|
|
7175
7175
|
limit = null,
|
|
7176
7176
|
offset = null,
|
|
7177
7177
|
filter: filter2 = null,
|
|
7178
|
-
q
|
|
7178
|
+
q = null,
|
|
7179
7179
|
fields = null,
|
|
7180
7180
|
sort = null
|
|
7181
7181
|
} = {}) {
|
|
7182
|
-
const params = { limit, offset, filter: filter2, q
|
|
7182
|
+
const params = { limit, offset, filter: filter2, q, fields, sort };
|
|
7183
7183
|
return apiHandler.getAll(`files`, params);
|
|
7184
7184
|
},
|
|
7185
7185
|
upload({ fileObject }) {
|
|
@@ -7256,10 +7256,10 @@ function GatewayAccountsResource({ apiHandler }) {
|
|
|
7256
7256
|
offset = null,
|
|
7257
7257
|
sort = null,
|
|
7258
7258
|
filter: filter2 = null,
|
|
7259
|
-
q
|
|
7259
|
+
q = null,
|
|
7260
7260
|
fields = null
|
|
7261
7261
|
} = {}) {
|
|
7262
|
-
const params = { limit, offset, sort, filter: filter2, q
|
|
7262
|
+
const params = { limit, offset, sort, filter: filter2, q, fields };
|
|
7263
7263
|
return apiHandler.getAll(`gateway-accounts`, params);
|
|
7264
7264
|
},
|
|
7265
7265
|
create({ id: id2 = "", data }) {
|
|
@@ -7333,9 +7333,9 @@ function GatewayAccountsResource({ apiHandler }) {
|
|
|
7333
7333
|
offset = null,
|
|
7334
7334
|
filter: filter2 = null,
|
|
7335
7335
|
sort = null,
|
|
7336
|
-
q
|
|
7336
|
+
q = null
|
|
7337
7337
|
}) {
|
|
7338
|
-
const params = { limit, offset, filter: filter2, sort, q
|
|
7338
|
+
const params = { limit, offset, filter: filter2, sort, q };
|
|
7339
7339
|
return apiHandler.getAll(`gateway-accounts/${id2}/timeline`, params);
|
|
7340
7340
|
},
|
|
7341
7341
|
createTimelineComment({ id: id2, data }) {
|
|
@@ -7377,10 +7377,10 @@ function InvoicesResource$1({ apiHandler }) {
|
|
|
7377
7377
|
sort = null,
|
|
7378
7378
|
limit = null,
|
|
7379
7379
|
offset = null,
|
|
7380
|
-
q
|
|
7380
|
+
q = null,
|
|
7381
7381
|
expand = null
|
|
7382
7382
|
} = {}) {
|
|
7383
|
-
const params = { filter: filter2, sort, limit, offset, q
|
|
7383
|
+
const params = { filter: filter2, sort, limit, offset, q, expand };
|
|
7384
7384
|
return apiHandler.getAll(`invoices`, params);
|
|
7385
7385
|
},
|
|
7386
7386
|
create({ id: id2 = "", data }) {
|
|
@@ -7440,9 +7440,9 @@ function InvoicesResource$1({ apiHandler }) {
|
|
|
7440
7440
|
offset = null,
|
|
7441
7441
|
filter: filter2 = null,
|
|
7442
7442
|
sort = null,
|
|
7443
|
-
q
|
|
7443
|
+
q = null
|
|
7444
7444
|
}) {
|
|
7445
|
-
const params = { limit, offset, filter: filter2, sort, q
|
|
7445
|
+
const params = { limit, offset, filter: filter2, sort, q };
|
|
7446
7446
|
return apiHandler.getAll(`invoices/${id2}/timeline`, params);
|
|
7447
7447
|
},
|
|
7448
7448
|
createTimelineComment({ id: id2, data }) {
|
|
@@ -7614,9 +7614,9 @@ function ListsResource({ apiHandler }) {
|
|
|
7614
7614
|
filter: filter2 = null,
|
|
7615
7615
|
sort = null,
|
|
7616
7616
|
fields = null,
|
|
7617
|
-
q
|
|
7617
|
+
q = null
|
|
7618
7618
|
} = {}) {
|
|
7619
|
-
const params = { limit, offset, filter: filter2, sort, fields, q
|
|
7619
|
+
const params = { limit, offset, filter: filter2, sort, fields, q };
|
|
7620
7620
|
return apiHandler.getAll(`lists`, params);
|
|
7621
7621
|
},
|
|
7622
7622
|
create({ id: id2 = "", data }) {
|
|
@@ -7659,10 +7659,10 @@ function OrganizationExportsResource({ apiHandler }) {
|
|
|
7659
7659
|
limit = null,
|
|
7660
7660
|
offset = null,
|
|
7661
7661
|
filter: filter2 = null,
|
|
7662
|
-
q
|
|
7662
|
+
q = null,
|
|
7663
7663
|
sort = null
|
|
7664
7664
|
} = {}) {
|
|
7665
|
-
const params = { limit, offset, filter: filter2, q
|
|
7665
|
+
const params = { limit, offset, filter: filter2, q, sort };
|
|
7666
7666
|
return apiHandler.getAll(`organization-exports`, params);
|
|
7667
7667
|
},
|
|
7668
7668
|
create({ data }) {
|
|
@@ -7680,9 +7680,9 @@ function OrganizationsResource({ apiHandler }) {
|
|
|
7680
7680
|
offset = null,
|
|
7681
7681
|
filter: filter2 = null,
|
|
7682
7682
|
sort = null,
|
|
7683
|
-
q
|
|
7683
|
+
q = null
|
|
7684
7684
|
} = {}) {
|
|
7685
|
-
const params = { limit, offset, filter: filter2, sort, q
|
|
7685
|
+
const params = { limit, offset, filter: filter2, sort, q };
|
|
7686
7686
|
return apiHandler.getAll(`organizations`, params);
|
|
7687
7687
|
},
|
|
7688
7688
|
create({ data }) {
|
|
@@ -7698,8 +7698,8 @@ function OrganizationsResource({ apiHandler }) {
|
|
|
7698
7698
|
}
|
|
7699
7699
|
function PaymentCardsBankNamesResource({ apiHandler }) {
|
|
7700
7700
|
return {
|
|
7701
|
-
getAll({ limit = null, q
|
|
7702
|
-
const params = { limit, q
|
|
7701
|
+
getAll({ limit = null, q = null } = {}) {
|
|
7702
|
+
const params = { limit, q };
|
|
7703
7703
|
return apiHandler.getAll(`payment-cards-bank-names`, params);
|
|
7704
7704
|
}
|
|
7705
7705
|
};
|
|
@@ -7711,10 +7711,10 @@ function PaymentInstrumentsResource$1({ apiHandler }) {
|
|
|
7711
7711
|
sort = null,
|
|
7712
7712
|
limit = null,
|
|
7713
7713
|
offset = null,
|
|
7714
|
-
q
|
|
7714
|
+
q = null,
|
|
7715
7715
|
expand = null
|
|
7716
7716
|
} = {}) {
|
|
7717
|
-
const params = { filter: filter2, sort, limit, offset, q
|
|
7717
|
+
const params = { filter: filter2, sort, limit, offset, q, expand };
|
|
7718
7718
|
return apiHandler.getAll(`payment-instruments`, params);
|
|
7719
7719
|
},
|
|
7720
7720
|
create({ data }) {
|
|
@@ -7790,9 +7790,9 @@ function PlansResource$1({ apiHandler }) {
|
|
|
7790
7790
|
sort = null,
|
|
7791
7791
|
limit = null,
|
|
7792
7792
|
offset = null,
|
|
7793
|
-
q
|
|
7793
|
+
q = null
|
|
7794
7794
|
} = {}) {
|
|
7795
|
-
const params = { filter: filter2, sort, limit, offset, q
|
|
7795
|
+
const params = { filter: filter2, sort, limit, offset, q };
|
|
7796
7796
|
return apiHandler.getAll(`plans`, params);
|
|
7797
7797
|
},
|
|
7798
7798
|
create({ id: id2 = "", data }) {
|
|
@@ -7829,9 +7829,9 @@ function ProductsResource$1({ apiHandler }) {
|
|
|
7829
7829
|
sort = null,
|
|
7830
7830
|
limit = null,
|
|
7831
7831
|
offset = null,
|
|
7832
|
-
q
|
|
7832
|
+
q = null
|
|
7833
7833
|
} = {}) {
|
|
7834
|
-
const params = { filter: filter2, sort, limit, offset, q
|
|
7834
|
+
const params = { filter: filter2, sort, limit, offset, q };
|
|
7835
7835
|
return apiHandler.getAll(`products`, params);
|
|
7836
7836
|
},
|
|
7837
7837
|
create({ id: id2 = "", data }) {
|
|
@@ -7926,9 +7926,9 @@ function QuotesResource$1({ apiHandler }) {
|
|
|
7926
7926
|
offset = null,
|
|
7927
7927
|
filter: filter2 = null,
|
|
7928
7928
|
sort = null,
|
|
7929
|
-
q
|
|
7929
|
+
q = null
|
|
7930
7930
|
}) {
|
|
7931
|
-
const params = { limit, offset, filter: filter2, sort, q
|
|
7931
|
+
const params = { limit, offset, filter: filter2, sort, q };
|
|
7932
7932
|
return apiHandler.getAll(`quotes/${id2}/timeline`, params);
|
|
7933
7933
|
},
|
|
7934
7934
|
createTimelineComment({ id: id2, data }) {
|
|
@@ -7997,10 +7997,10 @@ function RolesResource({ apiHandler }) {
|
|
|
7997
7997
|
offset = null,
|
|
7998
7998
|
filter: filter2 = null,
|
|
7999
7999
|
sort = null,
|
|
8000
|
-
q
|
|
8000
|
+
q = null,
|
|
8001
8001
|
expand = null
|
|
8002
8002
|
} = {}) {
|
|
8003
|
-
const params = { limit, offset, filter: filter2, sort, q
|
|
8003
|
+
const params = { limit, offset, filter: filter2, sort, q, expand };
|
|
8004
8004
|
return apiHandler.getAll(`roles`, params);
|
|
8005
8005
|
},
|
|
8006
8006
|
create({ id: id2 = "", data }) {
|
|
@@ -8020,8 +8020,8 @@ function RolesResource({ apiHandler }) {
|
|
|
8020
8020
|
}
|
|
8021
8021
|
function SearchResource({ apiHandler }) {
|
|
8022
8022
|
return {
|
|
8023
|
-
get({ sort = null, limit = null, offset = null, q
|
|
8024
|
-
const params = { sort, limit, offset, q
|
|
8023
|
+
get({ sort = null, limit = null, offset = null, q = null }) {
|
|
8024
|
+
const params = { sort, limit, offset, q };
|
|
8025
8025
|
return apiHandler.get(`search`, params);
|
|
8026
8026
|
}
|
|
8027
8027
|
};
|
|
@@ -8033,9 +8033,9 @@ function SegmentsResource({ apiHandler }) {
|
|
|
8033
8033
|
offset = null,
|
|
8034
8034
|
sort = null,
|
|
8035
8035
|
filter: filter2 = null,
|
|
8036
|
-
q
|
|
8036
|
+
q = null
|
|
8037
8037
|
} = {}) {
|
|
8038
|
-
const params = { limit, offset, sort, filter: filter2, q
|
|
8038
|
+
const params = { limit, offset, sort, filter: filter2, q };
|
|
8039
8039
|
return apiHandler.getAll(`grid-segments`, params);
|
|
8040
8040
|
},
|
|
8041
8041
|
create({ id: id2 = "", data }) {
|
|
@@ -8067,9 +8067,9 @@ function ServiceCredentialsResource({ apiHandler }) {
|
|
|
8067
8067
|
limit = null,
|
|
8068
8068
|
offset = null,
|
|
8069
8069
|
sort = null,
|
|
8070
|
-
q
|
|
8070
|
+
q = null
|
|
8071
8071
|
}) {
|
|
8072
|
-
const params = { filter: filter2, limit, offset, sort, q
|
|
8072
|
+
const params = { filter: filter2, limit, offset, sort, q };
|
|
8073
8073
|
return apiHandler.getAll(`service-credentials/${type2}`, params);
|
|
8074
8074
|
},
|
|
8075
8075
|
create({ type: type2, data }) {
|
|
@@ -8087,11 +8087,11 @@ function ServiceCredentialsResource({ apiHandler }) {
|
|
|
8087
8087
|
limit = null,
|
|
8088
8088
|
offset = null,
|
|
8089
8089
|
filter: filter2 = null,
|
|
8090
|
-
q
|
|
8090
|
+
q = null,
|
|
8091
8091
|
fields = null,
|
|
8092
8092
|
sort = null
|
|
8093
8093
|
}) {
|
|
8094
|
-
const params = { limit, offset, filter: filter2, q
|
|
8094
|
+
const params = { limit, offset, filter: filter2, q, fields, sort };
|
|
8095
8095
|
return apiHandler.getAll(
|
|
8096
8096
|
`service-credentials/${type2}/${id2}/items`,
|
|
8097
8097
|
params
|
|
@@ -8106,9 +8106,9 @@ function ShippingRatesResource({ apiHandler }) {
|
|
|
8106
8106
|
offset = null,
|
|
8107
8107
|
filter: filter2 = null,
|
|
8108
8108
|
sort = null,
|
|
8109
|
-
q
|
|
8109
|
+
q = null
|
|
8110
8110
|
} = {}) {
|
|
8111
|
-
const params = { limit, offset, filter: filter2, sort, q
|
|
8111
|
+
const params = { limit, offset, filter: filter2, sort, q };
|
|
8112
8112
|
return apiHandler.getAll(`shipping-rates`, params);
|
|
8113
8113
|
},
|
|
8114
8114
|
create({ id: id2 = "", data }) {
|
|
@@ -8193,10 +8193,10 @@ function SubscriptionsResource$1({ apiHandler }) {
|
|
|
8193
8193
|
sort = null,
|
|
8194
8194
|
limit = null,
|
|
8195
8195
|
offset = null,
|
|
8196
|
-
q
|
|
8196
|
+
q = null,
|
|
8197
8197
|
expand = null
|
|
8198
8198
|
} = {}) {
|
|
8199
|
-
const params = { filter: filter2, sort, limit, offset, q
|
|
8199
|
+
const params = { filter: filter2, sort, limit, offset, q, expand };
|
|
8200
8200
|
return apiHandler.getAll(`subscriptions`, params);
|
|
8201
8201
|
},
|
|
8202
8202
|
create({ id: id2 = "", data, expand = null }) {
|
|
@@ -8249,9 +8249,9 @@ function SubscriptionsResource$1({ apiHandler }) {
|
|
|
8249
8249
|
offset = null,
|
|
8250
8250
|
filter: filter2 = null,
|
|
8251
8251
|
sort = null,
|
|
8252
|
-
q
|
|
8252
|
+
q = null
|
|
8253
8253
|
}) {
|
|
8254
|
-
const params = { limit, offset, filter: filter2, sort, q
|
|
8254
|
+
const params = { limit, offset, filter: filter2, sort, q };
|
|
8255
8255
|
return apiHandler.getAll(`subscriptions/${id2}/timeline`, params);
|
|
8256
8256
|
},
|
|
8257
8257
|
createTimelineComment({ id: id2, data }) {
|
|
@@ -8271,10 +8271,10 @@ function TagsResource({ apiHandler }) {
|
|
|
8271
8271
|
limit = null,
|
|
8272
8272
|
offset = null,
|
|
8273
8273
|
filter: filter2 = null,
|
|
8274
|
-
q
|
|
8274
|
+
q = null,
|
|
8275
8275
|
sort = null
|
|
8276
8276
|
} = {}) {
|
|
8277
|
-
const params = { limit, offset, filter: filter2, q
|
|
8277
|
+
const params = { limit, offset, filter: filter2, q, sort };
|
|
8278
8278
|
return apiHandler.getAll(`tags`, params);
|
|
8279
8279
|
},
|
|
8280
8280
|
create({ data }) {
|
|
@@ -8334,9 +8334,9 @@ function TagsRulesResource({ apiHandler }) {
|
|
|
8334
8334
|
offset = null,
|
|
8335
8335
|
sort = null,
|
|
8336
8336
|
filter: filter2 = null,
|
|
8337
|
-
q
|
|
8337
|
+
q = null
|
|
8338
8338
|
} = {}) {
|
|
8339
|
-
const params = { limit, offset, sort, filter: filter2, q
|
|
8339
|
+
const params = { limit, offset, sort, filter: filter2, q };
|
|
8340
8340
|
return apiHandler.getAll(`tags-rules`, params);
|
|
8341
8341
|
},
|
|
8342
8342
|
createTagsRule({ id: id2 = "", data }) {
|
|
@@ -8360,10 +8360,10 @@ function TrackingResource({ apiHandler }) {
|
|
|
8360
8360
|
offset = null,
|
|
8361
8361
|
sort = null,
|
|
8362
8362
|
filter: filter2 = null,
|
|
8363
|
-
q
|
|
8363
|
+
q = null,
|
|
8364
8364
|
expand = null
|
|
8365
8365
|
} = {}) {
|
|
8366
|
-
const params = { limit, offset, sort, filter: filter2, q
|
|
8366
|
+
const params = { limit, offset, sort, filter: filter2, q, expand };
|
|
8367
8367
|
return apiHandler.getAll(`tracking/api`, params);
|
|
8368
8368
|
},
|
|
8369
8369
|
getApiLog({ id: id2 }) {
|
|
@@ -8374,9 +8374,9 @@ function TrackingResource({ apiHandler }) {
|
|
|
8374
8374
|
offset = null,
|
|
8375
8375
|
sort = null,
|
|
8376
8376
|
filter: filter2 = null,
|
|
8377
|
-
q
|
|
8377
|
+
q = null
|
|
8378
8378
|
} = {}) {
|
|
8379
|
-
const params = { limit, offset, sort, filter: filter2, q
|
|
8379
|
+
const params = { limit, offset, sort, filter: filter2, q };
|
|
8380
8380
|
return apiHandler.getAll(`tracking/taxes`, params);
|
|
8381
8381
|
},
|
|
8382
8382
|
getTaxTrackingLog({ id: id2 }) {
|
|
@@ -8387,9 +8387,9 @@ function TrackingResource({ apiHandler }) {
|
|
|
8387
8387
|
offset = null,
|
|
8388
8388
|
sort = null,
|
|
8389
8389
|
filter: filter2 = null,
|
|
8390
|
-
q
|
|
8390
|
+
q = null
|
|
8391
8391
|
} = {}) {
|
|
8392
|
-
const params = { limit, offset, sort, filter: filter2, q
|
|
8392
|
+
const params = { limit, offset, sort, filter: filter2, q };
|
|
8393
8393
|
return apiHandler.getAll(`tracking/lists`, params);
|
|
8394
8394
|
},
|
|
8395
8395
|
getAllWebhookTrackingLogs({
|
|
@@ -8397,9 +8397,9 @@ function TrackingResource({ apiHandler }) {
|
|
|
8397
8397
|
offset = null,
|
|
8398
8398
|
sort = null,
|
|
8399
8399
|
filter: filter2 = null,
|
|
8400
|
-
q
|
|
8400
|
+
q = null
|
|
8401
8401
|
} = {}) {
|
|
8402
|
-
const params = { limit, offset, sort, filter: filter2, q
|
|
8402
|
+
const params = { limit, offset, sort, filter: filter2, q };
|
|
8403
8403
|
return apiHandler.getAll(`tracking/webhooks`, params);
|
|
8404
8404
|
},
|
|
8405
8405
|
getWebhookTrackingLog({ id: id2 }) {
|
|
@@ -8416,11 +8416,11 @@ function TransactionsResource$1({ apiHandler }) {
|
|
|
8416
8416
|
limit = null,
|
|
8417
8417
|
offset = null,
|
|
8418
8418
|
filter: filter2 = null,
|
|
8419
|
-
q
|
|
8419
|
+
q = null,
|
|
8420
8420
|
sort = null,
|
|
8421
8421
|
expand = null
|
|
8422
8422
|
} = {}) {
|
|
8423
|
-
const params = { limit, offset, filter: filter2, q
|
|
8423
|
+
const params = { limit, offset, filter: filter2, q, sort, expand };
|
|
8424
8424
|
return apiHandler.getAll(`transactions`, params);
|
|
8425
8425
|
},
|
|
8426
8426
|
create({ data, expand = null }) {
|
|
@@ -8449,9 +8449,9 @@ function TransactionsResource$1({ apiHandler }) {
|
|
|
8449
8449
|
offset = null,
|
|
8450
8450
|
filter: filter2 = null,
|
|
8451
8451
|
sort = null,
|
|
8452
|
-
q
|
|
8452
|
+
q = null
|
|
8453
8453
|
}) {
|
|
8454
|
-
const params = { limit, offset, filter: filter2, sort, q
|
|
8454
|
+
const params = { limit, offset, filter: filter2, sort, q };
|
|
8455
8455
|
return apiHandler.getAll(`transactions/${id2}/timeline`, params);
|
|
8456
8456
|
},
|
|
8457
8457
|
createTimelineComment({ id: id2, data }) {
|
|
@@ -8472,9 +8472,9 @@ function UsagesResource({ apiHandler }) {
|
|
|
8472
8472
|
sort = null,
|
|
8473
8473
|
limit = null,
|
|
8474
8474
|
offset = null,
|
|
8475
|
-
q
|
|
8475
|
+
q = null
|
|
8476
8476
|
} = {}) {
|
|
8477
|
-
const params = { filter: filter2, sort, limit, offset, q
|
|
8477
|
+
const params = { filter: filter2, sort, limit, offset, q };
|
|
8478
8478
|
return apiHandler.getAll(`usages`, params);
|
|
8479
8479
|
},
|
|
8480
8480
|
create({ id: id2 = "", data }) {
|
|
@@ -8498,9 +8498,9 @@ function UsersResource({ apiHandler }) {
|
|
|
8498
8498
|
offset = null,
|
|
8499
8499
|
sort = null,
|
|
8500
8500
|
filter: filter2 = null,
|
|
8501
|
-
q
|
|
8501
|
+
q = null
|
|
8502
8502
|
} = {}) {
|
|
8503
|
-
const params = { limit, offset, sort, filter: filter2, q
|
|
8503
|
+
const params = { limit, offset, sort, filter: filter2, q };
|
|
8504
8504
|
return apiHandler.getAll(`users`, params);
|
|
8505
8505
|
},
|
|
8506
8506
|
create({ id: id2 = "", data }) {
|
|
@@ -8539,11 +8539,11 @@ function WebsitesResource$1({ apiHandler }) {
|
|
|
8539
8539
|
getAll({
|
|
8540
8540
|
limit = null,
|
|
8541
8541
|
offset = null,
|
|
8542
|
-
q
|
|
8542
|
+
q = null,
|
|
8543
8543
|
filter: filter2 = null,
|
|
8544
8544
|
sort = null
|
|
8545
8545
|
} = {}) {
|
|
8546
|
-
const params = { limit, offset, q
|
|
8546
|
+
const params = { limit, offset, q, filter: filter2, sort };
|
|
8547
8547
|
return apiHandler.getAll(`websites`, params);
|
|
8548
8548
|
},
|
|
8549
8549
|
create({ id: id2 = "", data }) {
|
|
@@ -8674,10 +8674,10 @@ function DataExportsResource({ apiHandler }) {
|
|
|
8674
8674
|
sort = null,
|
|
8675
8675
|
expand = null,
|
|
8676
8676
|
filter: filter2 = null,
|
|
8677
|
-
q
|
|
8677
|
+
q = null,
|
|
8678
8678
|
criteria = null
|
|
8679
8679
|
} = {}) {
|
|
8680
|
-
const params = { limit, offset, sort, expand, filter: filter2, q
|
|
8680
|
+
const params = { limit, offset, sort, expand, filter: filter2, q, criteria };
|
|
8681
8681
|
return apiHandler.getAll(`data-exports`, params);
|
|
8682
8682
|
},
|
|
8683
8683
|
queue({ id: id2 = "", data, expand = null }) {
|
|
@@ -9170,9 +9170,9 @@ function InvoicesResource({ apiHandler }) {
|
|
|
9170
9170
|
sort = null,
|
|
9171
9171
|
limit = null,
|
|
9172
9172
|
offset = null,
|
|
9173
|
-
q
|
|
9173
|
+
q = null
|
|
9174
9174
|
} = {}) {
|
|
9175
|
-
const params = { filter: filter2, sort, limit, offset, q
|
|
9175
|
+
const params = { filter: filter2, sort, limit, offset, q };
|
|
9176
9176
|
return apiHandler.getAll(`invoices`, params);
|
|
9177
9177
|
},
|
|
9178
9178
|
get({ id: id2 }) {
|
|
@@ -9219,9 +9219,9 @@ function OrdersResource({ apiHandler }) {
|
|
|
9219
9219
|
sort = null,
|
|
9220
9220
|
limit = null,
|
|
9221
9221
|
offset = null,
|
|
9222
|
-
q
|
|
9222
|
+
q = null
|
|
9223
9223
|
} = {}) {
|
|
9224
|
-
const params = { filter: filter2, sort, limit, offset, q
|
|
9224
|
+
const params = { filter: filter2, sort, limit, offset, q };
|
|
9225
9225
|
return apiHandler.getAll(`orders`, params);
|
|
9226
9226
|
},
|
|
9227
9227
|
get({ id: id2 }) {
|
|
@@ -9245,9 +9245,9 @@ function PaymentInstrumentsResource({ apiHandler }) {
|
|
|
9245
9245
|
sort = null,
|
|
9246
9246
|
limit = null,
|
|
9247
9247
|
offset = null,
|
|
9248
|
-
q
|
|
9248
|
+
q = null
|
|
9249
9249
|
} = {}) {
|
|
9250
|
-
const params = { filter: filter2, sort, limit, offset, q
|
|
9250
|
+
const params = { filter: filter2, sort, limit, offset, q };
|
|
9251
9251
|
return apiHandler.getAll(`payment-instruments`, params);
|
|
9252
9252
|
},
|
|
9253
9253
|
create({ data }) {
|
|
@@ -9278,9 +9278,9 @@ function PayoutRequestsResource({ apiHandler }) {
|
|
|
9278
9278
|
sort = null,
|
|
9279
9279
|
limit = null,
|
|
9280
9280
|
offset = null,
|
|
9281
|
-
q
|
|
9281
|
+
q = null
|
|
9282
9282
|
} = {}) {
|
|
9283
|
-
const params = { filter: filter2, sort, limit, offset, q
|
|
9283
|
+
const params = { filter: filter2, sort, limit, offset, q };
|
|
9284
9284
|
return apiHandler.getAll(`payout-requests`, params);
|
|
9285
9285
|
},
|
|
9286
9286
|
get({ id: id2 }) {
|
|
@@ -9298,10 +9298,10 @@ function PlansResource({ apiHandler }) {
|
|
|
9298
9298
|
sort = null,
|
|
9299
9299
|
limit = null,
|
|
9300
9300
|
offset = null,
|
|
9301
|
-
q
|
|
9301
|
+
q = null,
|
|
9302
9302
|
expand = null
|
|
9303
9303
|
} = {}) {
|
|
9304
|
-
const params = { filter: filter2, sort, limit, offset, q
|
|
9304
|
+
const params = { filter: filter2, sort, limit, offset, q, expand };
|
|
9305
9305
|
return apiHandler.getAll(`plans`, params);
|
|
9306
9306
|
},
|
|
9307
9307
|
get({ id: id2, expand = null }) {
|
|
@@ -9317,9 +9317,9 @@ function ProductsResource({ apiHandler }) {
|
|
|
9317
9317
|
sort = null,
|
|
9318
9318
|
limit = null,
|
|
9319
9319
|
offset = null,
|
|
9320
|
-
q
|
|
9320
|
+
q = null
|
|
9321
9321
|
} = {}) {
|
|
9322
|
-
const params = { filter: filter2, sort, limit, offset, q
|
|
9322
|
+
const params = { filter: filter2, sort, limit, offset, q };
|
|
9323
9323
|
return apiHandler.getAll(`products`, params);
|
|
9324
9324
|
},
|
|
9325
9325
|
get({ id: id2 }) {
|
|
@@ -9370,10 +9370,10 @@ function TransactionsResource({ apiHandler }) {
|
|
|
9370
9370
|
limit = null,
|
|
9371
9371
|
offset = null,
|
|
9372
9372
|
filter: filter2 = null,
|
|
9373
|
-
q
|
|
9373
|
+
q = null,
|
|
9374
9374
|
sort = null
|
|
9375
9375
|
} = {}) {
|
|
9376
|
-
const params = { limit, offset, filter: filter2, q
|
|
9376
|
+
const params = { limit, offset, filter: filter2, q, sort };
|
|
9377
9377
|
return apiHandler.getAll(`transactions`, params);
|
|
9378
9378
|
},
|
|
9379
9379
|
get({ id: id2 }) {
|
|
@@ -9766,239 +9766,239 @@ async function updateSummary({ instrument } = {}) {
|
|
|
9766
9766
|
await fetchSummary({ data: instrument });
|
|
9767
9767
|
state.updateModel();
|
|
9768
9768
|
}
|
|
9769
|
-
function t$1(t2, e2,
|
|
9769
|
+
function t$1(t2, e2, r2, n2, o2, i2, a2) {
|
|
9770
9770
|
try {
|
|
9771
|
-
var
|
|
9771
|
+
var u2 = t2[i2](a2), c2 = u2.value;
|
|
9772
9772
|
} catch (t3) {
|
|
9773
|
-
return void
|
|
9773
|
+
return void r2(t3);
|
|
9774
9774
|
}
|
|
9775
|
-
|
|
9775
|
+
u2.done ? e2(c2) : Promise.resolve(c2).then(n2, o2);
|
|
9776
9776
|
}
|
|
9777
9777
|
function e$1(e2) {
|
|
9778
9778
|
return function() {
|
|
9779
|
-
var
|
|
9780
|
-
return new Promise(function(o2,
|
|
9781
|
-
var
|
|
9782
|
-
function c2(e3) {
|
|
9783
|
-
t$1(i2, o2, a2, c2, u2, "next", e3);
|
|
9784
|
-
}
|
|
9779
|
+
var r2 = this, n2 = arguments;
|
|
9780
|
+
return new Promise(function(o2, i2) {
|
|
9781
|
+
var a2 = e2.apply(r2, n2);
|
|
9785
9782
|
function u2(e3) {
|
|
9786
|
-
t$1(
|
|
9783
|
+
t$1(a2, o2, i2, u2, c2, "next", e3);
|
|
9784
|
+
}
|
|
9785
|
+
function c2(e3) {
|
|
9786
|
+
t$1(a2, o2, i2, u2, c2, "throw", e3);
|
|
9787
9787
|
}
|
|
9788
|
-
|
|
9788
|
+
u2(void 0);
|
|
9789
9789
|
});
|
|
9790
9790
|
};
|
|
9791
9791
|
}
|
|
9792
|
-
function
|
|
9793
|
-
return t2(
|
|
9792
|
+
function r$1(t2, e2, r2) {
|
|
9793
|
+
return t2(r2 = { path: e2, exports: {}, require: function(t3, e3) {
|
|
9794
9794
|
return function() {
|
|
9795
9795
|
throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
|
|
9796
|
-
}(null == e3 &&
|
|
9797
|
-
} },
|
|
9796
|
+
}(null == e3 && r2.path);
|
|
9797
|
+
} }, r2.exports), r2.exports;
|
|
9798
9798
|
}
|
|
9799
|
-
var
|
|
9800
|
-
function e2(
|
|
9799
|
+
var n$1 = r$1(function(t2) {
|
|
9800
|
+
function e2(r2) {
|
|
9801
9801
|
return t2.exports = e2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t3) {
|
|
9802
9802
|
return typeof t3;
|
|
9803
9803
|
} : function(t3) {
|
|
9804
9804
|
return t3 && "function" == typeof Symbol && t3.constructor === Symbol && t3 !== Symbol.prototype ? "symbol" : typeof t3;
|
|
9805
|
-
}, t2.exports.__esModule = true, t2.exports.default = t2.exports, e2(
|
|
9805
|
+
}, t2.exports.__esModule = true, t2.exports.default = t2.exports, e2(r2);
|
|
9806
9806
|
}
|
|
9807
9807
|
t2.exports = e2, t2.exports.__esModule = true, t2.exports.default = t2.exports;
|
|
9808
|
-
}), o$1 =
|
|
9809
|
-
var e2 =
|
|
9810
|
-
function
|
|
9808
|
+
}), o$1 = r$1(function(t2) {
|
|
9809
|
+
var e2 = n$1.default;
|
|
9810
|
+
function r2() {
|
|
9811
9811
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
9812
|
-
t2.exports =
|
|
9812
|
+
t2.exports = r2 = function() {
|
|
9813
9813
|
return o2;
|
|
9814
9814
|
}, t2.exports.__esModule = true, t2.exports.default = t2.exports;
|
|
9815
|
-
var
|
|
9816
|
-
t3[e3] =
|
|
9817
|
-
},
|
|
9818
|
-
function
|
|
9819
|
-
return Object.defineProperty(t3, e3, { value:
|
|
9815
|
+
var n2, o2 = {}, i2 = Object.prototype, a2 = i2.hasOwnProperty, u2 = Object.defineProperty || function(t3, e3, r3) {
|
|
9816
|
+
t3[e3] = r3.value;
|
|
9817
|
+
}, c2 = "function" == typeof Symbol ? Symbol : {}, s2 = c2.iterator || "@@iterator", l2 = c2.asyncIterator || "@@asyncIterator", f2 = c2.toStringTag || "@@toStringTag";
|
|
9818
|
+
function p2(t3, e3, r3) {
|
|
9819
|
+
return Object.defineProperty(t3, e3, { value: r3, enumerable: true, configurable: true, writable: true }), t3[e3];
|
|
9820
9820
|
}
|
|
9821
9821
|
try {
|
|
9822
|
-
|
|
9823
|
-
} catch (
|
|
9824
|
-
|
|
9825
|
-
return t3[e3] =
|
|
9822
|
+
p2({}, "");
|
|
9823
|
+
} catch (n3) {
|
|
9824
|
+
p2 = function(t3, e3, r3) {
|
|
9825
|
+
return t3[e3] = r3;
|
|
9826
9826
|
};
|
|
9827
9827
|
}
|
|
9828
|
-
function h2(t3, e3,
|
|
9829
|
-
var o3 = e3 && e3.prototype instanceof
|
|
9830
|
-
return
|
|
9828
|
+
function h2(t3, e3, r3, n3) {
|
|
9829
|
+
var o3 = e3 && e3.prototype instanceof g2 ? e3 : g2, i3 = Object.create(o3.prototype), a3 = new P2(n3 || []);
|
|
9830
|
+
return u2(i3, "_invoke", { value: N2(t3, r3, a3) }), i3;
|
|
9831
9831
|
}
|
|
9832
|
-
function
|
|
9832
|
+
function d2(t3, e3, r3) {
|
|
9833
9833
|
try {
|
|
9834
|
-
return { type: "normal", arg: t3.call(e3,
|
|
9834
|
+
return { type: "normal", arg: t3.call(e3, r3) };
|
|
9835
9835
|
} catch (t4) {
|
|
9836
9836
|
return { type: "throw", arg: t4 };
|
|
9837
9837
|
}
|
|
9838
9838
|
}
|
|
9839
9839
|
o2.wrap = h2;
|
|
9840
|
-
var v2 = "suspendedStart",
|
|
9841
|
-
function
|
|
9840
|
+
var v2 = "suspendedStart", y2 = "suspendedYield", m2 = "executing", R2 = "completed", E2 = {};
|
|
9841
|
+
function g2() {
|
|
9842
9842
|
}
|
|
9843
|
-
function
|
|
9843
|
+
function w2() {
|
|
9844
9844
|
}
|
|
9845
|
-
function
|
|
9845
|
+
function b2() {
|
|
9846
9846
|
}
|
|
9847
|
-
var
|
|
9848
|
-
|
|
9847
|
+
var O2 = {};
|
|
9848
|
+
p2(O2, s2, function() {
|
|
9849
9849
|
return this;
|
|
9850
9850
|
});
|
|
9851
|
-
var
|
|
9852
|
-
|
|
9853
|
-
var
|
|
9854
|
-
function
|
|
9851
|
+
var _2 = Object.getPrototypeOf, I2 = _2 && _2(_2(j2([])));
|
|
9852
|
+
I2 && I2 !== i2 && a2.call(I2, s2) && (O2 = I2);
|
|
9853
|
+
var x2 = b2.prototype = g2.prototype = Object.create(O2);
|
|
9854
|
+
function S2(t3) {
|
|
9855
9855
|
["next", "throw", "return"].forEach(function(e3) {
|
|
9856
|
-
|
|
9856
|
+
p2(t3, e3, function(t4) {
|
|
9857
9857
|
return this._invoke(e3, t4);
|
|
9858
9858
|
});
|
|
9859
9859
|
});
|
|
9860
9860
|
}
|
|
9861
|
-
function
|
|
9862
|
-
function
|
|
9863
|
-
var s3 =
|
|
9861
|
+
function k2(t3, r3) {
|
|
9862
|
+
function n3(o4, i3, u3, c3) {
|
|
9863
|
+
var s3 = d2(t3[o4], t3, i3);
|
|
9864
9864
|
if ("throw" !== s3.type) {
|
|
9865
|
-
var l3 = s3.arg,
|
|
9866
|
-
return
|
|
9867
|
-
|
|
9865
|
+
var l3 = s3.arg, f3 = l3.value;
|
|
9866
|
+
return f3 && "object" == e2(f3) && a2.call(f3, "__await") ? r3.resolve(f3.__await).then(function(t4) {
|
|
9867
|
+
n3("next", t4, u3, c3);
|
|
9868
9868
|
}, function(t4) {
|
|
9869
|
-
|
|
9870
|
-
}) :
|
|
9871
|
-
l3.value = t4,
|
|
9869
|
+
n3("throw", t4, u3, c3);
|
|
9870
|
+
}) : r3.resolve(f3).then(function(t4) {
|
|
9871
|
+
l3.value = t4, u3(l3);
|
|
9872
9872
|
}, function(t4) {
|
|
9873
|
-
return
|
|
9873
|
+
return n3("throw", t4, u3, c3);
|
|
9874
9874
|
});
|
|
9875
9875
|
}
|
|
9876
|
-
|
|
9876
|
+
c3(s3.arg);
|
|
9877
9877
|
}
|
|
9878
9878
|
var o3;
|
|
9879
|
-
|
|
9880
|
-
function
|
|
9881
|
-
return new
|
|
9882
|
-
|
|
9879
|
+
u2(this, "_invoke", { value: function(t4, e3) {
|
|
9880
|
+
function i3() {
|
|
9881
|
+
return new r3(function(r4, o4) {
|
|
9882
|
+
n3(t4, e3, r4, o4);
|
|
9883
9883
|
});
|
|
9884
9884
|
}
|
|
9885
|
-
return o3 = o3 ? o3.then(
|
|
9885
|
+
return o3 = o3 ? o3.then(i3, i3) : i3();
|
|
9886
9886
|
} });
|
|
9887
9887
|
}
|
|
9888
|
-
function
|
|
9888
|
+
function N2(t3, e3, r3) {
|
|
9889
9889
|
var o3 = v2;
|
|
9890
|
-
return function(
|
|
9891
|
-
if (o3 ===
|
|
9890
|
+
return function(i3, a3) {
|
|
9891
|
+
if (o3 === m2)
|
|
9892
9892
|
throw new Error("Generator is already running");
|
|
9893
|
-
if (o3 ===
|
|
9894
|
-
if ("throw" ===
|
|
9895
|
-
throw
|
|
9896
|
-
return { value:
|
|
9893
|
+
if (o3 === R2) {
|
|
9894
|
+
if ("throw" === i3)
|
|
9895
|
+
throw a3;
|
|
9896
|
+
return { value: n2, done: true };
|
|
9897
9897
|
}
|
|
9898
|
-
for (
|
|
9899
|
-
var
|
|
9900
|
-
if (
|
|
9901
|
-
var
|
|
9902
|
-
if (
|
|
9903
|
-
if (
|
|
9898
|
+
for (r3.method = i3, r3.arg = a3; ; ) {
|
|
9899
|
+
var u3 = r3.delegate;
|
|
9900
|
+
if (u3) {
|
|
9901
|
+
var c3 = L2(u3, r3);
|
|
9902
|
+
if (c3) {
|
|
9903
|
+
if (c3 === E2)
|
|
9904
9904
|
continue;
|
|
9905
|
-
return
|
|
9905
|
+
return c3;
|
|
9906
9906
|
}
|
|
9907
9907
|
}
|
|
9908
|
-
if ("next" ===
|
|
9909
|
-
|
|
9910
|
-
else if ("throw" ===
|
|
9908
|
+
if ("next" === r3.method)
|
|
9909
|
+
r3.sent = r3._sent = r3.arg;
|
|
9910
|
+
else if ("throw" === r3.method) {
|
|
9911
9911
|
if (o3 === v2)
|
|
9912
|
-
throw o3 =
|
|
9913
|
-
|
|
9912
|
+
throw o3 = R2, r3.arg;
|
|
9913
|
+
r3.dispatchException(r3.arg);
|
|
9914
9914
|
} else
|
|
9915
|
-
"return" ===
|
|
9916
|
-
o3 =
|
|
9917
|
-
var s3 =
|
|
9915
|
+
"return" === r3.method && r3.abrupt("return", r3.arg);
|
|
9916
|
+
o3 = m2;
|
|
9917
|
+
var s3 = d2(t3, e3, r3);
|
|
9918
9918
|
if ("normal" === s3.type) {
|
|
9919
|
-
if (o3 =
|
|
9919
|
+
if (o3 = r3.done ? R2 : y2, s3.arg === E2)
|
|
9920
9920
|
continue;
|
|
9921
|
-
return { value: s3.arg, done:
|
|
9921
|
+
return { value: s3.arg, done: r3.done };
|
|
9922
9922
|
}
|
|
9923
|
-
"throw" === s3.type && (o3 =
|
|
9923
|
+
"throw" === s3.type && (o3 = R2, r3.method = "throw", r3.arg = s3.arg);
|
|
9924
9924
|
}
|
|
9925
9925
|
};
|
|
9926
9926
|
}
|
|
9927
|
-
function
|
|
9928
|
-
var
|
|
9929
|
-
if (o3 ===
|
|
9930
|
-
return e3.delegate = null, "throw" ===
|
|
9931
|
-
var
|
|
9932
|
-
if ("throw" ===
|
|
9933
|
-
return e3.method = "throw", e3.arg =
|
|
9934
|
-
var
|
|
9935
|
-
return
|
|
9936
|
-
}
|
|
9937
|
-
function
|
|
9927
|
+
function L2(t3, e3) {
|
|
9928
|
+
var r3 = e3.method, o3 = t3.iterator[r3];
|
|
9929
|
+
if (o3 === n2)
|
|
9930
|
+
return e3.delegate = null, "throw" === r3 && t3.iterator.return && (e3.method = "return", e3.arg = n2, L2(t3, e3), "throw" === e3.method) || "return" !== r3 && (e3.method = "throw", e3.arg = new TypeError("The iterator does not provide a '" + r3 + "' method")), E2;
|
|
9931
|
+
var i3 = d2(o3, t3.iterator, e3.arg);
|
|
9932
|
+
if ("throw" === i3.type)
|
|
9933
|
+
return e3.method = "throw", e3.arg = i3.arg, e3.delegate = null, E2;
|
|
9934
|
+
var a3 = i3.arg;
|
|
9935
|
+
return a3 ? a3.done ? (e3[t3.resultName] = a3.value, e3.next = t3.nextLoc, "return" !== e3.method && (e3.method = "next", e3.arg = n2), e3.delegate = null, E2) : a3 : (e3.method = "throw", e3.arg = new TypeError("iterator result is not an object"), e3.delegate = null, E2);
|
|
9936
|
+
}
|
|
9937
|
+
function T2(t3) {
|
|
9938
9938
|
var e3 = { tryLoc: t3[0] };
|
|
9939
9939
|
1 in t3 && (e3.catchLoc = t3[1]), 2 in t3 && (e3.finallyLoc = t3[2], e3.afterLoc = t3[3]), this.tryEntries.push(e3);
|
|
9940
9940
|
}
|
|
9941
|
-
function
|
|
9941
|
+
function A2(t3) {
|
|
9942
9942
|
var e3 = t3.completion || {};
|
|
9943
9943
|
e3.type = "normal", delete e3.arg, t3.completion = e3;
|
|
9944
9944
|
}
|
|
9945
|
-
function
|
|
9946
|
-
this.tryEntries = [{ tryLoc: "root" }], t3.forEach(
|
|
9945
|
+
function P2(t3) {
|
|
9946
|
+
this.tryEntries = [{ tryLoc: "root" }], t3.forEach(T2, this), this.reset(true);
|
|
9947
9947
|
}
|
|
9948
|
-
function
|
|
9948
|
+
function j2(t3) {
|
|
9949
9949
|
if (t3 || "" === t3) {
|
|
9950
|
-
var
|
|
9951
|
-
if (
|
|
9952
|
-
return
|
|
9950
|
+
var r3 = t3[s2];
|
|
9951
|
+
if (r3)
|
|
9952
|
+
return r3.call(t3);
|
|
9953
9953
|
if ("function" == typeof t3.next)
|
|
9954
9954
|
return t3;
|
|
9955
9955
|
if (!isNaN(t3.length)) {
|
|
9956
|
-
var o3 = -1,
|
|
9956
|
+
var o3 = -1, i3 = function e3() {
|
|
9957
9957
|
for (; ++o3 < t3.length; )
|
|
9958
|
-
if (
|
|
9958
|
+
if (a2.call(t3, o3))
|
|
9959
9959
|
return e3.value = t3[o3], e3.done = false, e3;
|
|
9960
|
-
return e3.value =
|
|
9960
|
+
return e3.value = n2, e3.done = true, e3;
|
|
9961
9961
|
};
|
|
9962
|
-
return
|
|
9962
|
+
return i3.next = i3;
|
|
9963
9963
|
}
|
|
9964
9964
|
}
|
|
9965
9965
|
throw new TypeError(e2(t3) + " is not iterable");
|
|
9966
9966
|
}
|
|
9967
|
-
return
|
|
9967
|
+
return w2.prototype = b2, u2(x2, "constructor", { value: b2, configurable: true }), u2(b2, "constructor", { value: w2, configurable: true }), w2.displayName = p2(b2, f2, "GeneratorFunction"), o2.isGeneratorFunction = function(t3) {
|
|
9968
9968
|
var e3 = "function" == typeof t3 && t3.constructor;
|
|
9969
|
-
return !!e3 && (e3 ===
|
|
9969
|
+
return !!e3 && (e3 === w2 || "GeneratorFunction" === (e3.displayName || e3.name));
|
|
9970
9970
|
}, o2.mark = function(t3) {
|
|
9971
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t3,
|
|
9971
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t3, b2) : (t3.__proto__ = b2, p2(t3, f2, "GeneratorFunction")), t3.prototype = Object.create(x2), t3;
|
|
9972
9972
|
}, o2.awrap = function(t3) {
|
|
9973
9973
|
return { __await: t3 };
|
|
9974
|
-
},
|
|
9974
|
+
}, S2(k2.prototype), p2(k2.prototype, l2, function() {
|
|
9975
9975
|
return this;
|
|
9976
|
-
}), o2.AsyncIterator =
|
|
9977
|
-
void 0 ===
|
|
9978
|
-
var
|
|
9979
|
-
return o2.isGeneratorFunction(e3) ?
|
|
9980
|
-
return t4.done ? t4.value :
|
|
9976
|
+
}), o2.AsyncIterator = k2, o2.async = function(t3, e3, r3, n3, i3) {
|
|
9977
|
+
void 0 === i3 && (i3 = Promise);
|
|
9978
|
+
var a3 = new k2(h2(t3, e3, r3, n3), i3);
|
|
9979
|
+
return o2.isGeneratorFunction(e3) ? a3 : a3.next().then(function(t4) {
|
|
9980
|
+
return t4.done ? t4.value : a3.next();
|
|
9981
9981
|
});
|
|
9982
|
-
},
|
|
9982
|
+
}, S2(x2), p2(x2, f2, "Generator"), p2(x2, s2, function() {
|
|
9983
9983
|
return this;
|
|
9984
|
-
}),
|
|
9984
|
+
}), p2(x2, "toString", function() {
|
|
9985
9985
|
return "[object Generator]";
|
|
9986
9986
|
}), o2.keys = function(t3) {
|
|
9987
|
-
var e3 = Object(t3),
|
|
9988
|
-
for (var
|
|
9989
|
-
|
|
9990
|
-
return
|
|
9991
|
-
for (;
|
|
9992
|
-
var
|
|
9993
|
-
if (
|
|
9994
|
-
return t4.value =
|
|
9987
|
+
var e3 = Object(t3), r3 = [];
|
|
9988
|
+
for (var n3 in e3)
|
|
9989
|
+
r3.push(n3);
|
|
9990
|
+
return r3.reverse(), function t4() {
|
|
9991
|
+
for (; r3.length; ) {
|
|
9992
|
+
var n4 = r3.pop();
|
|
9993
|
+
if (n4 in e3)
|
|
9994
|
+
return t4.value = n4, t4.done = false, t4;
|
|
9995
9995
|
}
|
|
9996
9996
|
return t4.done = true, t4;
|
|
9997
9997
|
};
|
|
9998
|
-
}, o2.values =
|
|
9999
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
|
9998
|
+
}, o2.values = j2, P2.prototype = { constructor: P2, reset: function(t3) {
|
|
9999
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = n2, this.done = false, this.delegate = null, this.method = "next", this.arg = n2, this.tryEntries.forEach(A2), !t3)
|
|
10000
10000
|
for (var e3 in this)
|
|
10001
|
-
"t" === e3.charAt(0) &&
|
|
10001
|
+
"t" === e3.charAt(0) && a2.call(this, e3) && !isNaN(+e3.slice(1)) && (this[e3] = n2);
|
|
10002
10002
|
}, stop: function() {
|
|
10003
10003
|
this.done = true;
|
|
10004
10004
|
var t3 = this.tryEntries[0].completion;
|
|
@@ -10009,1085 +10009,315 @@ var r$1 = n$1(function(t2) {
|
|
|
10009
10009
|
if (this.done)
|
|
10010
10010
|
throw t3;
|
|
10011
10011
|
var e3 = this;
|
|
10012
|
-
function
|
|
10013
|
-
return
|
|
10012
|
+
function r3(r4, o4) {
|
|
10013
|
+
return u3.type = "throw", u3.arg = t3, e3.next = r4, o4 && (e3.method = "next", e3.arg = n2), !!o4;
|
|
10014
10014
|
}
|
|
10015
10015
|
for (var o3 = this.tryEntries.length - 1; o3 >= 0; --o3) {
|
|
10016
|
-
var
|
|
10017
|
-
if ("root" ===
|
|
10018
|
-
return
|
|
10019
|
-
if (
|
|
10020
|
-
var
|
|
10021
|
-
if (
|
|
10022
|
-
if (this.prev <
|
|
10023
|
-
return
|
|
10024
|
-
if (this.prev <
|
|
10025
|
-
return
|
|
10026
|
-
} else if (
|
|
10027
|
-
if (this.prev <
|
|
10028
|
-
return
|
|
10016
|
+
var i3 = this.tryEntries[o3], u3 = i3.completion;
|
|
10017
|
+
if ("root" === i3.tryLoc)
|
|
10018
|
+
return r3("end");
|
|
10019
|
+
if (i3.tryLoc <= this.prev) {
|
|
10020
|
+
var c3 = a2.call(i3, "catchLoc"), s3 = a2.call(i3, "finallyLoc");
|
|
10021
|
+
if (c3 && s3) {
|
|
10022
|
+
if (this.prev < i3.catchLoc)
|
|
10023
|
+
return r3(i3.catchLoc, true);
|
|
10024
|
+
if (this.prev < i3.finallyLoc)
|
|
10025
|
+
return r3(i3.finallyLoc);
|
|
10026
|
+
} else if (c3) {
|
|
10027
|
+
if (this.prev < i3.catchLoc)
|
|
10028
|
+
return r3(i3.catchLoc, true);
|
|
10029
10029
|
} else {
|
|
10030
10030
|
if (!s3)
|
|
10031
10031
|
throw new Error("try statement without catch or finally");
|
|
10032
|
-
if (this.prev <
|
|
10033
|
-
return
|
|
10032
|
+
if (this.prev < i3.finallyLoc)
|
|
10033
|
+
return r3(i3.finallyLoc);
|
|
10034
10034
|
}
|
|
10035
10035
|
}
|
|
10036
10036
|
}
|
|
10037
10037
|
}, abrupt: function(t3, e3) {
|
|
10038
|
-
for (var
|
|
10039
|
-
var
|
|
10040
|
-
if (
|
|
10041
|
-
var o3 =
|
|
10038
|
+
for (var r3 = this.tryEntries.length - 1; r3 >= 0; --r3) {
|
|
10039
|
+
var n3 = this.tryEntries[r3];
|
|
10040
|
+
if (n3.tryLoc <= this.prev && a2.call(n3, "finallyLoc") && this.prev < n3.finallyLoc) {
|
|
10041
|
+
var o3 = n3;
|
|
10042
10042
|
break;
|
|
10043
10043
|
}
|
|
10044
10044
|
}
|
|
10045
10045
|
o3 && ("break" === t3 || "continue" === t3) && o3.tryLoc <= e3 && e3 <= o3.finallyLoc && (o3 = null);
|
|
10046
|
-
var
|
|
10047
|
-
return
|
|
10046
|
+
var i3 = o3 ? o3.completion : {};
|
|
10047
|
+
return i3.type = t3, i3.arg = e3, o3 ? (this.method = "next", this.next = o3.finallyLoc, E2) : this.complete(i3);
|
|
10048
10048
|
}, complete: function(t3, e3) {
|
|
10049
10049
|
if ("throw" === t3.type)
|
|
10050
10050
|
throw t3.arg;
|
|
10051
|
-
return "break" === t3.type || "continue" === t3.type ? this.next = t3.arg : "return" === t3.type ? (this.rval = this.arg = t3.arg, this.method = "return", this.next = "end") : "normal" === t3.type && e3 && (this.next = e3),
|
|
10051
|
+
return "break" === t3.type || "continue" === t3.type ? this.next = t3.arg : "return" === t3.type ? (this.rval = this.arg = t3.arg, this.method = "return", this.next = "end") : "normal" === t3.type && e3 && (this.next = e3), E2;
|
|
10052
10052
|
}, finish: function(t3) {
|
|
10053
10053
|
for (var e3 = this.tryEntries.length - 1; e3 >= 0; --e3) {
|
|
10054
|
-
var
|
|
10055
|
-
if (
|
|
10056
|
-
return this.complete(
|
|
10054
|
+
var r3 = this.tryEntries[e3];
|
|
10055
|
+
if (r3.finallyLoc === t3)
|
|
10056
|
+
return this.complete(r3.completion, r3.afterLoc), A2(r3), E2;
|
|
10057
10057
|
}
|
|
10058
10058
|
}, catch: function(t3) {
|
|
10059
10059
|
for (var e3 = this.tryEntries.length - 1; e3 >= 0; --e3) {
|
|
10060
|
-
var
|
|
10061
|
-
if (
|
|
10062
|
-
var
|
|
10063
|
-
if ("throw" ===
|
|
10064
|
-
var o3 =
|
|
10065
|
-
|
|
10060
|
+
var r3 = this.tryEntries[e3];
|
|
10061
|
+
if (r3.tryLoc === t3) {
|
|
10062
|
+
var n3 = r3.completion;
|
|
10063
|
+
if ("throw" === n3.type) {
|
|
10064
|
+
var o3 = n3.arg;
|
|
10065
|
+
A2(r3);
|
|
10066
10066
|
}
|
|
10067
10067
|
return o3;
|
|
10068
10068
|
}
|
|
10069
10069
|
}
|
|
10070
10070
|
throw new Error("illegal catch attempt");
|
|
10071
|
-
}, delegateYield: function(t3, e3,
|
|
10072
|
-
return this.delegate = { iterator:
|
|
10071
|
+
}, delegateYield: function(t3, e3, r3) {
|
|
10072
|
+
return this.delegate = { iterator: j2(t3), resultName: e3, nextLoc: r3 }, "next" === this.method && (this.arg = n2), E2;
|
|
10073
10073
|
} }, o2;
|
|
10074
10074
|
}
|
|
10075
|
-
t2.exports =
|
|
10076
|
-
})(), a =
|
|
10075
|
+
t2.exports = r2, t2.exports.__esModule = true, t2.exports.default = t2.exports;
|
|
10076
|
+
}), i = o$1(), a = i;
|
|
10077
10077
|
try {
|
|
10078
|
-
regeneratorRuntime =
|
|
10078
|
+
regeneratorRuntime = i;
|
|
10079
10079
|
} catch (t2) {
|
|
10080
|
-
"object" == typeof globalThis ? globalThis.regeneratorRuntime =
|
|
10081
|
-
}
|
|
10082
|
-
|
|
10083
|
-
return
|
|
10084
|
-
|
|
10085
|
-
|
|
10080
|
+
"object" == typeof globalThis ? globalThis.regeneratorRuntime = i : Function("r", "regeneratorRuntime = r")(i);
|
|
10081
|
+
}
|
|
10082
|
+
function u(t2) {
|
|
10083
|
+
return u = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t3) {
|
|
10084
|
+
return typeof t3;
|
|
10085
|
+
} : function(t3) {
|
|
10086
|
+
return t3 && "function" == typeof Symbol && t3.constructor === Symbol && t3 !== Symbol.prototype ? "symbol" : typeof t3;
|
|
10087
|
+
}, u(t2);
|
|
10088
|
+
}
|
|
10089
|
+
var c = function() {
|
|
10090
|
+
return c = Object.assign || function(t2) {
|
|
10091
|
+
for (var e2, r2 = 1, n2 = arguments.length; r2 < n2; r2++)
|
|
10092
|
+
for (var o2 in e2 = arguments[r2])
|
|
10086
10093
|
Object.prototype.hasOwnProperty.call(e2, o2) && (t2[o2] = e2[o2]);
|
|
10087
10094
|
return t2;
|
|
10088
|
-
},
|
|
10095
|
+
}, c.apply(this, arguments);
|
|
10089
10096
|
};
|
|
10090
|
-
function
|
|
10091
|
-
|
|
10092
|
-
|
|
10093
|
-
|
|
10094
|
-
|
|
10095
|
-
|
|
10096
|
-
|
|
10097
|
-
|
|
10098
|
-
}
|
|
10099
|
-
function c2(t3) {
|
|
10100
|
-
try {
|
|
10101
|
-
u2(r2.throw(t3));
|
|
10102
|
-
} catch (t4) {
|
|
10103
|
-
a2(t4);
|
|
10104
|
-
}
|
|
10105
|
-
}
|
|
10106
|
-
function u2(t3) {
|
|
10107
|
-
var e3;
|
|
10108
|
-
t3.done ? o2(t3.value) : (e3 = t3.value, e3 instanceof n2 ? e3 : new n2(function(t4) {
|
|
10109
|
-
t4(e3);
|
|
10110
|
-
})).then(i2, c2);
|
|
10111
|
-
}
|
|
10112
|
-
u2((r2 = r2.apply(t2, e2 || [])).next());
|
|
10113
|
-
});
|
|
10114
|
-
}
|
|
10115
|
-
function u(t2, e2) {
|
|
10116
|
-
var n2, r2, o2, a2, i2 = { label: 0, sent: function() {
|
|
10117
|
-
if (1 & o2[0])
|
|
10118
|
-
throw o2[1];
|
|
10119
|
-
return o2[1];
|
|
10120
|
-
}, trys: [], ops: [] };
|
|
10121
|
-
return a2 = { next: c2(0), throw: c2(1), return: c2(2) }, "function" == typeof Symbol && (a2[Symbol.iterator] = function() {
|
|
10122
|
-
return this;
|
|
10123
|
-
}), a2;
|
|
10124
|
-
function c2(c3) {
|
|
10125
|
-
return function(u2) {
|
|
10126
|
-
return function(c4) {
|
|
10127
|
-
if (n2)
|
|
10128
|
-
throw new TypeError("Generator is already executing.");
|
|
10129
|
-
for (; a2 && (a2 = 0, c4[0] && (i2 = 0)), i2; )
|
|
10130
|
-
try {
|
|
10131
|
-
if (n2 = 1, r2 && (o2 = 2 & c4[0] ? r2.return : c4[0] ? r2.throw || ((o2 = r2.return) && o2.call(r2), 0) : r2.next) && !(o2 = o2.call(r2, c4[1])).done)
|
|
10132
|
-
return o2;
|
|
10133
|
-
switch (r2 = 0, o2 && (c4 = [2 & c4[0], o2.value]), c4[0]) {
|
|
10134
|
-
case 0:
|
|
10135
|
-
case 1:
|
|
10136
|
-
o2 = c4;
|
|
10137
|
-
break;
|
|
10138
|
-
case 4:
|
|
10139
|
-
return i2.label++, { value: c4[1], done: false };
|
|
10140
|
-
case 5:
|
|
10141
|
-
i2.label++, r2 = c4[1], c4 = [0];
|
|
10142
|
-
continue;
|
|
10143
|
-
case 7:
|
|
10144
|
-
c4 = i2.ops.pop(), i2.trys.pop();
|
|
10145
|
-
continue;
|
|
10146
|
-
default:
|
|
10147
|
-
if (!(o2 = i2.trys, (o2 = o2.length > 0 && o2[o2.length - 1]) || 6 !== c4[0] && 2 !== c4[0])) {
|
|
10148
|
-
i2 = 0;
|
|
10149
|
-
continue;
|
|
10150
|
-
}
|
|
10151
|
-
if (3 === c4[0] && (!o2 || c4[1] > o2[0] && c4[1] < o2[3])) {
|
|
10152
|
-
i2.label = c4[1];
|
|
10153
|
-
break;
|
|
10154
|
-
}
|
|
10155
|
-
if (6 === c4[0] && i2.label < o2[1]) {
|
|
10156
|
-
i2.label = o2[1], o2 = c4;
|
|
10157
|
-
break;
|
|
10158
|
-
}
|
|
10159
|
-
if (o2 && i2.label < o2[2]) {
|
|
10160
|
-
i2.label = o2[2], i2.ops.push(c4);
|
|
10161
|
-
break;
|
|
10162
|
-
}
|
|
10163
|
-
o2[2] && i2.ops.pop(), i2.trys.pop();
|
|
10164
|
-
continue;
|
|
10165
|
-
}
|
|
10166
|
-
c4 = e2.call(t2, i2);
|
|
10167
|
-
} catch (t3) {
|
|
10168
|
-
c4 = [6, t3], r2 = 0;
|
|
10169
|
-
} finally {
|
|
10170
|
-
n2 = o2 = 0;
|
|
10171
|
-
}
|
|
10172
|
-
if (5 & c4[0])
|
|
10173
|
-
throw c4[1];
|
|
10174
|
-
return { value: c4[0] ? c4[1] : void 0, done: true };
|
|
10175
|
-
}([c3, u2]);
|
|
10176
|
-
};
|
|
10177
|
-
}
|
|
10178
|
-
}
|
|
10179
|
-
function s(t2, e2, n2) {
|
|
10180
|
-
if (n2 || 2 === arguments.length)
|
|
10181
|
-
for (var r2, o2 = 0, a2 = e2.length; o2 < a2; o2++)
|
|
10182
|
-
!r2 && o2 in e2 || (r2 || (r2 = Array.prototype.slice.call(e2, 0, o2)), r2[o2] = e2[o2]);
|
|
10183
|
-
return t2.concat(r2 || Array.prototype.slice.call(e2));
|
|
10097
|
+
function s(t2) {
|
|
10098
|
+
for (var e2 = "", r2 = 0; r2 < t2.length; ++r2)
|
|
10099
|
+
if (r2 > 0) {
|
|
10100
|
+
var n2 = t2[r2].toLowerCase();
|
|
10101
|
+
n2 !== t2[r2] ? e2 += " ".concat(n2) : e2 += t2[r2];
|
|
10102
|
+
} else
|
|
10103
|
+
e2 += t2[r2].toUpperCase();
|
|
10104
|
+
return e2;
|
|
10184
10105
|
}
|
|
10185
10106
|
"function" == typeof SuppressedError && SuppressedError;
|
|
10186
|
-
var l = "
|
|
10187
|
-
function
|
|
10188
|
-
|
|
10189
|
-
|
|
10190
|
-
|
|
10191
|
-
|
|
10192
|
-
|
|
10193
|
-
|
|
10194
|
-
|
|
10195
|
-
|
|
10196
|
-
|
|
10197
|
-
|
|
10198
|
-
|
|
10199
|
-
|
|
10200
|
-
}, function(
|
|
10201
|
-
|
|
10202
|
-
})
|
|
10203
|
-
|
|
10204
|
-
|
|
10205
|
-
|
|
10206
|
-
|
|
10207
|
-
function
|
|
10208
|
-
|
|
10209
|
-
|
|
10210
|
-
|
|
10211
|
-
|
|
10212
|
-
|
|
10213
|
-
|
|
10214
|
-
|
|
10215
|
-
return
|
|
10216
|
-
|
|
10217
|
-
|
|
10218
|
-
|
|
10219
|
-
|
|
10220
|
-
|
|
10221
|
-
return
|
|
10222
|
-
|
|
10223
|
-
|
|
10224
|
-
});
|
|
10225
|
-
}
|
|
10226
|
-
function v(t2) {
|
|
10227
|
-
t2.then(void 0, function() {
|
|
10228
|
-
});
|
|
10229
|
-
}
|
|
10230
|
-
function p(t2, e2) {
|
|
10231
|
-
t2 = [t2[0] >>> 16, 65535 & t2[0], t2[1] >>> 16, 65535 & t2[1]], e2 = [e2[0] >>> 16, 65535 & e2[0], e2[1] >>> 16, 65535 & e2[1]];
|
|
10232
|
-
var n2 = [0, 0, 0, 0];
|
|
10233
|
-
return n2[3] += t2[3] + e2[3], n2[2] += n2[3] >>> 16, n2[3] &= 65535, n2[2] += t2[2] + e2[2], n2[1] += n2[2] >>> 16, n2[2] &= 65535, n2[1] += t2[1] + e2[1], n2[0] += n2[1] >>> 16, n2[1] &= 65535, n2[0] += t2[0] + e2[0], n2[0] &= 65535, [n2[0] << 16 | n2[1], n2[2] << 16 | n2[3]];
|
|
10234
|
-
}
|
|
10235
|
-
function y(t2, e2) {
|
|
10236
|
-
t2 = [t2[0] >>> 16, 65535 & t2[0], t2[1] >>> 16, 65535 & t2[1]], e2 = [e2[0] >>> 16, 65535 & e2[0], e2[1] >>> 16, 65535 & e2[1]];
|
|
10237
|
-
var n2 = [0, 0, 0, 0];
|
|
10238
|
-
return n2[3] += t2[3] * e2[3], n2[2] += n2[3] >>> 16, n2[3] &= 65535, n2[2] += t2[2] * e2[3], n2[1] += n2[2] >>> 16, n2[2] &= 65535, n2[2] += t2[3] * e2[2], n2[1] += n2[2] >>> 16, n2[2] &= 65535, n2[1] += t2[1] * e2[3], n2[0] += n2[1] >>> 16, n2[1] &= 65535, n2[1] += t2[2] * e2[2], n2[0] += n2[1] >>> 16, n2[1] &= 65535, n2[1] += t2[3] * e2[1], n2[0] += n2[1] >>> 16, n2[1] &= 65535, n2[0] += t2[0] * e2[3] + t2[1] * e2[2] + t2[2] * e2[1] + t2[3] * e2[0], n2[0] &= 65535, [n2[0] << 16 | n2[1], n2[2] << 16 | n2[3]];
|
|
10239
|
-
}
|
|
10240
|
-
function b(t2, e2) {
|
|
10241
|
-
return 32 === (e2 %= 64) ? [t2[1], t2[0]] : e2 < 32 ? [t2[0] << e2 | t2[1] >>> 32 - e2, t2[1] << e2 | t2[0] >>> 32 - e2] : (e2 -= 32, [t2[1] << e2 | t2[0] >>> 32 - e2, t2[0] << e2 | t2[1] >>> 32 - e2]);
|
|
10242
|
-
}
|
|
10243
|
-
function g(t2, e2) {
|
|
10244
|
-
return 0 === (e2 %= 64) ? t2 : e2 < 32 ? [t2[0] << e2 | t2[1] >>> 32 - e2, t2[1] << e2] : [t2[1] << e2 - 32, 0];
|
|
10245
|
-
}
|
|
10246
|
-
function w(t2, e2) {
|
|
10247
|
-
return [t2[0] ^ e2[0], t2[1] ^ e2[1]];
|
|
10248
|
-
}
|
|
10249
|
-
function L(t2) {
|
|
10250
|
-
return t2 = w(t2, [0, t2[0] >>> 1]), t2 = w(t2 = y(t2, [4283543511, 3981806797]), [0, t2[0] >>> 1]), t2 = w(t2 = y(t2, [3301882366, 444984403]), [0, t2[0] >>> 1]);
|
|
10251
|
-
}
|
|
10252
|
-
function k(t2) {
|
|
10253
|
-
return parseInt(t2);
|
|
10254
|
-
}
|
|
10255
|
-
function x(t2) {
|
|
10256
|
-
return parseFloat(t2);
|
|
10257
|
-
}
|
|
10258
|
-
function V(t2, e2) {
|
|
10259
|
-
return "number" == typeof t2 && isNaN(t2) ? e2 : t2;
|
|
10260
|
-
}
|
|
10261
|
-
function S(t2) {
|
|
10262
|
-
return t2.reduce(function(t3, e2) {
|
|
10263
|
-
return t3 + (e2 ? 1 : 0);
|
|
10264
|
-
}, 0);
|
|
10265
|
-
}
|
|
10266
|
-
function Z(t2, e2) {
|
|
10267
|
-
if (void 0 === e2 && (e2 = 1), Math.abs(e2) >= 1)
|
|
10268
|
-
return Math.round(t2 / e2) * e2;
|
|
10269
|
-
var n2 = 1 / e2;
|
|
10270
|
-
return Math.round(t2 * n2) / n2;
|
|
10271
|
-
}
|
|
10272
|
-
function W(t2) {
|
|
10273
|
-
return t2 && "object" == typeof t2 && "message" in t2 ? t2 : { message: t2 };
|
|
10274
|
-
}
|
|
10275
|
-
function C(t2, e2, n2) {
|
|
10276
|
-
var r2 = Object.keys(t2).filter(function(t3) {
|
|
10277
|
-
return !function(t4, e3) {
|
|
10278
|
-
for (var n3 = 0, r3 = t4.length; n3 < r3; ++n3)
|
|
10279
|
-
if (t4[n3] === e3)
|
|
10280
|
-
return true;
|
|
10281
|
-
return false;
|
|
10282
|
-
}(n2, t3);
|
|
10283
|
-
}), o2 = m(r2, function(n3) {
|
|
10284
|
-
return function(t3, e3) {
|
|
10285
|
-
var n4 = new Promise(function(n5) {
|
|
10286
|
-
var r3 = Date.now();
|
|
10287
|
-
h(t3.bind(null, e3), function() {
|
|
10288
|
-
for (var t4 = [], e4 = 0; e4 < arguments.length; e4++)
|
|
10289
|
-
t4[e4] = arguments[e4];
|
|
10290
|
-
var o3 = Date.now() - r3;
|
|
10291
|
-
if (!t4[0])
|
|
10292
|
-
return n5(function() {
|
|
10293
|
-
return { error: W(t4[1]), duration: o3 };
|
|
10294
|
-
});
|
|
10295
|
-
var a2 = t4[1];
|
|
10296
|
-
if (function(t5) {
|
|
10297
|
-
return "function" != typeof t5;
|
|
10298
|
-
}(a2))
|
|
10299
|
-
return n5(function() {
|
|
10300
|
-
return { value: a2, duration: o3 };
|
|
10301
|
-
});
|
|
10302
|
-
n5(function() {
|
|
10303
|
-
return new Promise(function(t5) {
|
|
10304
|
-
var e5 = Date.now();
|
|
10305
|
-
h(a2, function() {
|
|
10306
|
-
for (var n6 = [], r4 = 0; r4 < arguments.length; r4++)
|
|
10307
|
-
n6[r4] = arguments[r4];
|
|
10308
|
-
var a3 = o3 + Date.now() - e5;
|
|
10309
|
-
if (!n6[0])
|
|
10310
|
-
return t5({ error: W(n6[1]), duration: a3 });
|
|
10311
|
-
t5({ value: n6[1], duration: a3 });
|
|
10312
|
-
});
|
|
10313
|
-
});
|
|
10314
|
-
});
|
|
10315
|
-
});
|
|
10316
|
-
});
|
|
10317
|
-
return v(n4), function() {
|
|
10318
|
-
return n4.then(function(t4) {
|
|
10319
|
-
return t4();
|
|
10107
|
+
var l = "Blocked by CSP", f = s("WrongRegion"), p = s("SubscriptionNotActive"), h = s("UnsupportedVersion"), d = s("InstallationMethodRestricted"), v = "API key required", y = "API key not found", m = "API key expired", R = "9319";
|
|
10108
|
+
function E(t2, e2) {
|
|
10109
|
+
var r2 = [];
|
|
10110
|
+
return function(t3, e3) {
|
|
10111
|
+
var r3, n2, o2 = (n2 = function(t4, e4, r4) {
|
|
10112
|
+
if (r4 || 2 === arguments.length)
|
|
10113
|
+
for (var n3, o3 = 0, i3 = e4.length; o3 < i3; o3++)
|
|
10114
|
+
!n3 && o3 in e4 || (n3 || (n3 = Array.prototype.slice.call(e4, 0, o3)), n3[o3] = e4[o3]);
|
|
10115
|
+
return t4.concat(n3 || Array.prototype.slice.call(e4));
|
|
10116
|
+
}([], t3, true), { current: function() {
|
|
10117
|
+
return n2[0];
|
|
10118
|
+
}, postpone: function() {
|
|
10119
|
+
var t4 = n2.shift();
|
|
10120
|
+
void 0 !== t4 && n2.push(t4);
|
|
10121
|
+
}, exclude: function() {
|
|
10122
|
+
n2.shift();
|
|
10123
|
+
} }), i2 = (r3 = 0, function() {
|
|
10124
|
+
return Math.random() * Math.min(3e3, 100 * Math.pow(2, r3++));
|
|
10125
|
+
}), a2 = o2.current();
|
|
10126
|
+
if (void 0 === a2)
|
|
10127
|
+
return Promise.reject(new TypeError("The list of script URL patterns is empty"));
|
|
10128
|
+
var u2 = function(t4, r4) {
|
|
10129
|
+
return e3(t4).catch(function(t5) {
|
|
10130
|
+
if (r4 + 1 >= 5)
|
|
10131
|
+
throw t5;
|
|
10132
|
+
!function(t6) {
|
|
10133
|
+
if (!(t6 instanceof Error))
|
|
10134
|
+
return false;
|
|
10135
|
+
var e5 = t6.message;
|
|
10136
|
+
return e5 === l || e5 === R;
|
|
10137
|
+
}(t5) ? o2.postpone() : o2.exclude();
|
|
10138
|
+
var e4, n3 = o2.current();
|
|
10139
|
+
if (void 0 === n3)
|
|
10140
|
+
throw t5;
|
|
10141
|
+
return (e4 = i2(), new Promise(function(t6) {
|
|
10142
|
+
return setTimeout(t6, e4);
|
|
10143
|
+
})).then(function() {
|
|
10144
|
+
return u2(n3, r4 + 1);
|
|
10320
10145
|
});
|
|
10321
|
-
};
|
|
10322
|
-
}(t2[n3], e2);
|
|
10323
|
-
});
|
|
10324
|
-
return v(o2), function() {
|
|
10325
|
-
return c(this, void 0, void 0, function() {
|
|
10326
|
-
var t3, e3, n3, a2;
|
|
10327
|
-
return u(this, function(i2) {
|
|
10328
|
-
switch (i2.label) {
|
|
10329
|
-
case 0:
|
|
10330
|
-
return [4, o2];
|
|
10331
|
-
case 1:
|
|
10332
|
-
return [4, m(i2.sent(), function(t4) {
|
|
10333
|
-
var e4 = t4();
|
|
10334
|
-
return v(e4), e4;
|
|
10335
|
-
})];
|
|
10336
|
-
case 2:
|
|
10337
|
-
return t3 = i2.sent(), [4, Promise.all(t3)];
|
|
10338
|
-
case 3:
|
|
10339
|
-
for (e3 = i2.sent(), n3 = {}, a2 = 0; a2 < r2.length; ++a2)
|
|
10340
|
-
n3[r2[a2]] = e3[a2];
|
|
10341
|
-
return [2, n3];
|
|
10342
|
-
}
|
|
10343
10146
|
});
|
|
10344
|
-
}
|
|
10345
|
-
|
|
10346
|
-
}
|
|
10347
|
-
|
|
10348
|
-
|
|
10349
|
-
|
|
10350
|
-
|
|
10351
|
-
|
|
10352
|
-
|
|
10353
|
-
|
|
10354
|
-
|
|
10355
|
-
function j() {
|
|
10356
|
-
var t2 = window, e2 = navigator;
|
|
10357
|
-
return S(["ApplePayError" in t2, "CSSPrimitiveValue" in t2, "Counter" in t2, 0 === e2.vendor.indexOf("Apple"), "getStorageUpdates" in e2, "WebKitMediaKeys" in t2]) >= 4;
|
|
10358
|
-
}
|
|
10359
|
-
function M() {
|
|
10360
|
-
var t2 = window;
|
|
10361
|
-
return S(["safari" in t2, !("DeviceMotionEvent" in t2), !("ongestureend" in t2), !("standalone" in navigator)]) >= 3;
|
|
10362
|
-
}
|
|
10363
|
-
function A() {
|
|
10364
|
-
var t2 = document;
|
|
10365
|
-
return (t2.exitFullscreen || t2.msExitFullscreen || t2.mozCancelFullScreen || t2.webkitExitFullscreen).call(t2);
|
|
10366
|
-
}
|
|
10367
|
-
function G() {
|
|
10368
|
-
var t2 = F(), e2 = function() {
|
|
10369
|
-
var t3, e3, n3 = window;
|
|
10370
|
-
return S(["buildID" in navigator, "MozAppearance" in (null !== (e3 = null === (t3 = document.documentElement) || void 0 === t3 ? void 0 : t3.style) && void 0 !== e3 ? e3 : {}), "onmozfullscreenchange" in n3, "mozInnerScreenX" in n3, "CSSMozDocumentRule" in n3, "CanvasCaptureMediaStream" in n3]) >= 4;
|
|
10371
|
-
}();
|
|
10372
|
-
if (!t2 && !e2)
|
|
10373
|
-
return false;
|
|
10374
|
-
var n2 = window;
|
|
10375
|
-
return S(["onorientationchange" in n2, "orientation" in n2, t2 && !("SharedWorker" in n2), e2 && /android/i.test(navigator.appVersion)]) >= 2;
|
|
10376
|
-
}
|
|
10377
|
-
function R(t2) {
|
|
10378
|
-
var e2 = new Error(t2);
|
|
10379
|
-
return e2.name = t2, e2;
|
|
10380
|
-
}
|
|
10381
|
-
function Y(t2, e2, n2) {
|
|
10382
|
-
var r2, o2, a2;
|
|
10383
|
-
return void 0 === n2 && (n2 = 50), c(this, void 0, void 0, function() {
|
|
10384
|
-
var i2, c2;
|
|
10385
|
-
return u(this, function(u2) {
|
|
10386
|
-
switch (u2.label) {
|
|
10387
|
-
case 0:
|
|
10388
|
-
i2 = document, u2.label = 1;
|
|
10389
|
-
case 1:
|
|
10390
|
-
return i2.body ? [3, 3] : [4, d(n2)];
|
|
10391
|
-
case 2:
|
|
10392
|
-
return u2.sent(), [3, 1];
|
|
10393
|
-
case 3:
|
|
10394
|
-
c2 = i2.createElement("iframe"), u2.label = 4;
|
|
10395
|
-
case 4:
|
|
10396
|
-
return u2.trys.push([4, , 10, 11]), [4, new Promise(function(t3, n3) {
|
|
10397
|
-
var r3 = false, o3 = function() {
|
|
10398
|
-
r3 = true, t3();
|
|
10399
|
-
};
|
|
10400
|
-
c2.onload = o3, c2.onerror = function(t4) {
|
|
10401
|
-
r3 = true, n3(t4);
|
|
10402
|
-
};
|
|
10403
|
-
var a3 = c2.style;
|
|
10404
|
-
a3.setProperty("display", "block", "important"), a3.position = "absolute", a3.top = "0", a3.left = "0", a3.visibility = "hidden", e2 && "srcdoc" in c2 ? c2.srcdoc = e2 : c2.src = "about:blank", i2.body.appendChild(c2);
|
|
10405
|
-
var u3 = function() {
|
|
10406
|
-
var t4, e3;
|
|
10407
|
-
r3 || ("complete" === (null === (e3 = null === (t4 = c2.contentWindow) || void 0 === t4 ? void 0 : t4.document) || void 0 === e3 ? void 0 : e3.readyState) ? o3() : setTimeout(u3, 10));
|
|
10408
|
-
};
|
|
10409
|
-
u3();
|
|
10410
|
-
})];
|
|
10411
|
-
case 5:
|
|
10412
|
-
u2.sent(), u2.label = 6;
|
|
10413
|
-
case 6:
|
|
10414
|
-
return (null === (o2 = null === (r2 = c2.contentWindow) || void 0 === r2 ? void 0 : r2.document) || void 0 === o2 ? void 0 : o2.body) ? [3, 8] : [4, d(n2)];
|
|
10415
|
-
case 7:
|
|
10416
|
-
return u2.sent(), [3, 6];
|
|
10417
|
-
case 8:
|
|
10418
|
-
return [4, t2(c2, c2.contentWindow)];
|
|
10419
|
-
case 9:
|
|
10420
|
-
return [2, u2.sent()];
|
|
10421
|
-
case 10:
|
|
10422
|
-
return null === (a2 = c2.parentNode) || void 0 === a2 || a2.removeChild(c2), [7];
|
|
10423
|
-
case 11:
|
|
10424
|
-
return [2];
|
|
10425
|
-
}
|
|
10426
|
-
});
|
|
10147
|
+
};
|
|
10148
|
+
return u2(a2, 0);
|
|
10149
|
+
}(t2, function(t3) {
|
|
10150
|
+
var n2 = /* @__PURE__ */ new Date(), o2 = function(e3) {
|
|
10151
|
+
return r2.push({ url: t3, startedAt: n2, finishedAt: /* @__PURE__ */ new Date(), error: e3 });
|
|
10152
|
+
}, i2 = e2(t3);
|
|
10153
|
+
return i2.then(function() {
|
|
10154
|
+
return o2();
|
|
10155
|
+
}, o2), i2;
|
|
10156
|
+
}).then(function(t3) {
|
|
10157
|
+
return [t3, r2];
|
|
10427
10158
|
});
|
|
10428
10159
|
}
|
|
10429
|
-
|
|
10430
|
-
|
|
10431
|
-
|
|
10432
|
-
|
|
10433
|
-
|
|
10434
|
-
|
|
10435
|
-
|
|
10436
|
-
|
|
10437
|
-
|
|
10438
|
-
|
|
10439
|
-
|
|
10440
|
-
|
|
10441
|
-
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
|
|
10446
|
-
|
|
10447
|
-
|
|
10448
|
-
throw new Error(
|
|
10449
|
-
|
|
10450
|
-
|
|
10451
|
-
default:
|
|
10452
|
-
throw new Error(r3);
|
|
10453
|
-
}
|
|
10454
|
-
}
|
|
10455
|
-
return [a3, i3];
|
|
10456
|
-
}(t2), n2 = e2[0], r2 = e2[1], o2 = document.createElement(null != n2 ? n2 : "div"), a2 = 0, i2 = Object.keys(r2); a2 < i2.length; a2++) {
|
|
10457
|
-
var c2 = i2[a2], u2 = r2[c2].join(" ");
|
|
10458
|
-
"style" === c2 ? E(o2.style, u2) : o2.setAttribute(c2, u2);
|
|
10459
|
-
}
|
|
10460
|
-
return o2;
|
|
10461
|
-
}
|
|
10462
|
-
function E(t2, e2) {
|
|
10463
|
-
for (var n2 = 0, r2 = e2.split(";"); n2 < r2.length; n2++) {
|
|
10464
|
-
var o2 = r2[n2], a2 = /^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(o2);
|
|
10465
|
-
if (a2) {
|
|
10466
|
-
var i2 = a2[1], c2 = a2[2], u2 = a2[4];
|
|
10467
|
-
t2.setProperty(i2, c2, u2 || "");
|
|
10468
|
-
}
|
|
10469
|
-
}
|
|
10470
|
-
}
|
|
10471
|
-
var P = ["monospace", "sans-serif", "serif"], J = ["sans-serif-thin", "ARNO PRO", "Agency FB", "Arabic Typesetting", "Arial Unicode MS", "AvantGarde Bk BT", "BankGothic Md BT", "Batang", "Bitstream Vera Sans Mono", "Calibri", "Century", "Century Gothic", "Clarendon", "EUROSTILE", "Franklin Gothic", "Futura Bk BT", "Futura Md BT", "GOTHAM", "Gill Sans", "HELV", "Haettenschweiler", "Helvetica Neue", "Humanst521 BT", "Leelawadee", "Letter Gothic", "Levenim MT", "Lucida Bright", "Lucida Sans", "Menlo", "MS Mincho", "MS Outlook", "MS Reference Specialty", "MS UI Gothic", "MT Extra", "MYRIAD PRO", "Marlett", "Meiryo UI", "Microsoft Uighur", "Minion Pro", "Monotype Corsiva", "PMingLiU", "Pristina", "SCRIPTINA", "Segoe UI Light", "Serifa", "SimHei", "Small Fonts", "Staccato222 BT", "TRAJAN PRO", "Univers CE 55 Medium", "Vrinda", "ZWAdobeF"];
|
|
10472
|
-
function H(t2) {
|
|
10473
|
-
return t2.toDataURL();
|
|
10474
|
-
}
|
|
10475
|
-
var N, _, D = 2500;
|
|
10476
|
-
function T() {
|
|
10477
|
-
var t2 = this;
|
|
10478
|
-
return function() {
|
|
10479
|
-
if (void 0 === _) {
|
|
10480
|
-
var t3 = function() {
|
|
10481
|
-
var e2 = z();
|
|
10482
|
-
O(e2) ? _ = setTimeout(t3, D) : (N = e2, _ = void 0);
|
|
10483
|
-
};
|
|
10484
|
-
t3();
|
|
10485
|
-
}
|
|
10486
|
-
}(), function() {
|
|
10487
|
-
return c(t2, void 0, void 0, function() {
|
|
10488
|
-
var t3;
|
|
10489
|
-
return u(this, function(e2) {
|
|
10490
|
-
switch (e2.label) {
|
|
10491
|
-
case 0:
|
|
10492
|
-
return O(t3 = z()) ? N ? [2, s([], N, true)] : (n2 = document).fullscreenElement || n2.msFullscreenElement || n2.mozFullScreenElement || n2.webkitFullscreenElement ? [4, A()] : [3, 2] : [3, 2];
|
|
10493
|
-
case 1:
|
|
10494
|
-
e2.sent(), t3 = z(), e2.label = 2;
|
|
10495
|
-
case 2:
|
|
10496
|
-
return O(t3) || (N = t3), [2, t3];
|
|
10497
|
-
}
|
|
10498
|
-
var n2;
|
|
10160
|
+
var g = "https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js", w = "Failed to load the JS script of the agent";
|
|
10161
|
+
function b(t2) {
|
|
10162
|
+
return function(t3, e2, r2, n2) {
|
|
10163
|
+
var o2, i2 = document, a2 = "securitypolicyviolation", u2 = function(e3) {
|
|
10164
|
+
var r3 = new URL(t3, location.href), n3 = e3.blockedURI;
|
|
10165
|
+
n3 !== r3.href && n3 !== r3.protocol.slice(0, -1) && n3 !== r3.origin || (o2 = e3, c2());
|
|
10166
|
+
};
|
|
10167
|
+
i2.addEventListener(a2, u2);
|
|
10168
|
+
var c2 = function() {
|
|
10169
|
+
return i2.removeEventListener(a2, u2);
|
|
10170
|
+
};
|
|
10171
|
+
return Promise.resolve().then(e2).then(function(t4) {
|
|
10172
|
+
return c2(), t4;
|
|
10173
|
+
}, function(t4) {
|
|
10174
|
+
return new Promise(function(t5) {
|
|
10175
|
+
return setTimeout(t5);
|
|
10176
|
+
}).then(function() {
|
|
10177
|
+
if (c2(), o2)
|
|
10178
|
+
return function() {
|
|
10179
|
+
throw new Error(l);
|
|
10180
|
+
}();
|
|
10181
|
+
throw t4;
|
|
10499
10182
|
});
|
|
10500
10183
|
});
|
|
10501
|
-
}
|
|
10502
|
-
|
|
10503
|
-
function
|
|
10504
|
-
|
|
10505
|
-
|
|
10184
|
+
}(t2, function() {
|
|
10185
|
+
return function(t3) {
|
|
10186
|
+
return new Promise(function(e2, r2) {
|
|
10187
|
+
var n2 = document.createElement("script"), o2 = function() {
|
|
10188
|
+
var t4;
|
|
10189
|
+
return null === (t4 = n2.parentNode) || void 0 === t4 ? void 0 : t4.removeChild(n2);
|
|
10190
|
+
}, i2 = document.head || document.getElementsByTagName("head")[0];
|
|
10191
|
+
n2.onload = function() {
|
|
10192
|
+
o2(), e2();
|
|
10193
|
+
}, n2.onerror = function() {
|
|
10194
|
+
o2(), r2(new Error(w));
|
|
10195
|
+
}, n2.async = true, n2.src = t3, i2.appendChild(n2);
|
|
10196
|
+
});
|
|
10197
|
+
}(t2);
|
|
10198
|
+
}).then(O);
|
|
10506
10199
|
}
|
|
10507
|
-
function O(
|
|
10508
|
-
|
|
10509
|
-
|
|
10510
|
-
|
|
10511
|
-
|
|
10200
|
+
function O() {
|
|
10201
|
+
var t2 = window, e2 = "__fpjs_p_l_b", r2 = t2[e2];
|
|
10202
|
+
if (function(t3, e3) {
|
|
10203
|
+
var r3, n2 = null === (r3 = Object.getOwnPropertyDescriptor) || void 0 === r3 ? void 0 : r3.call(Object, t3, e3);
|
|
10204
|
+
(null == n2 ? void 0 : n2.configurable) ? delete t3[e3] : n2 && !n2.writable || (t3[e3] = void 0);
|
|
10205
|
+
}(t2, e2), "function" != typeof (null == r2 ? void 0 : r2.load))
|
|
10206
|
+
throw new Error(R);
|
|
10207
|
+
return r2;
|
|
10512
10208
|
}
|
|
10513
|
-
function
|
|
10209
|
+
var _ = { load: function(t2) {
|
|
10514
10210
|
var e2;
|
|
10515
|
-
|
|
10516
|
-
|
|
10517
|
-
|
|
10518
|
-
|
|
10519
|
-
|
|
10520
|
-
|
|
10521
|
-
|
|
10522
|
-
|
|
10523
|
-
|
|
10524
|
-
|
|
10525
|
-
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
|
|
10529
|
-
|
|
10530
|
-
|
|
10531
|
-
|
|
10532
|
-
|
|
10533
|
-
|
|
10534
|
-
|
|
10535
|
-
|
|
10536
|
-
}
|
|
10537
|
-
});
|
|
10538
|
-
});
|
|
10539
|
-
}
|
|
10540
|
-
function U(t2) {
|
|
10541
|
-
t2.style.setProperty("display", "block", "important");
|
|
10542
|
-
}
|
|
10543
|
-
function Q(t2) {
|
|
10544
|
-
return matchMedia("(inverted-colors: ".concat(t2, ")")).matches;
|
|
10545
|
-
}
|
|
10546
|
-
function K(t2) {
|
|
10547
|
-
return matchMedia("(forced-colors: ".concat(t2, ")")).matches;
|
|
10548
|
-
}
|
|
10549
|
-
function q(t2) {
|
|
10550
|
-
return matchMedia("(prefers-contrast: ".concat(t2, ")")).matches;
|
|
10551
|
-
}
|
|
10552
|
-
function $(t2) {
|
|
10553
|
-
return matchMedia("(prefers-reduced-motion: ".concat(t2, ")")).matches;
|
|
10554
|
-
}
|
|
10555
|
-
function tt(t2) {
|
|
10556
|
-
return matchMedia("(dynamic-range: ".concat(t2, ")")).matches;
|
|
10557
|
-
}
|
|
10558
|
-
var et = Math, nt = function() {
|
|
10559
|
-
return 0;
|
|
10560
|
-
};
|
|
10561
|
-
var rt = { default: [], apple: [{ font: "-apple-system-body" }], serif: [{ fontFamily: "serif" }], sans: [{ fontFamily: "sans-serif" }], mono: [{ fontFamily: "monospace" }], min: [{ fontSize: "1px" }], system: [{ fontFamily: "system-ui" }] };
|
|
10562
|
-
var ot = { fonts: function() {
|
|
10563
|
-
return Y(function(t2, e2) {
|
|
10564
|
-
var n2 = e2.document, r2 = n2.body;
|
|
10565
|
-
r2.style.fontSize = "48px";
|
|
10566
|
-
var o2 = n2.createElement("div"), a2 = {}, i2 = {}, c2 = function(t3) {
|
|
10567
|
-
var e3 = n2.createElement("span"), r3 = e3.style;
|
|
10568
|
-
return r3.position = "absolute", r3.top = "0", r3.left = "0", r3.fontFamily = t3, e3.textContent = "mmMwWLliI0O&1", o2.appendChild(e3), e3;
|
|
10569
|
-
}, u2 = P.map(c2), s2 = function() {
|
|
10570
|
-
for (var t3 = {}, e3 = function(e4) {
|
|
10571
|
-
t3[e4] = P.map(function(t4) {
|
|
10572
|
-
return function(t5, e5) {
|
|
10573
|
-
return c2("'".concat(t5, "',").concat(e5));
|
|
10574
|
-
}(e4, t4);
|
|
10575
|
-
});
|
|
10576
|
-
}, n3 = 0, r3 = J; n3 < r3.length; n3++) {
|
|
10577
|
-
e3(r3[n3]);
|
|
10578
|
-
}
|
|
10579
|
-
return t3;
|
|
10580
|
-
}();
|
|
10581
|
-
r2.appendChild(o2);
|
|
10582
|
-
for (var l2 = 0; l2 < P.length; l2++)
|
|
10583
|
-
a2[P[l2]] = u2[l2].offsetWidth, i2[P[l2]] = u2[l2].offsetHeight;
|
|
10584
|
-
return J.filter(function(t3) {
|
|
10585
|
-
return e3 = s2[t3], P.some(function(t4, n3) {
|
|
10586
|
-
return e3[n3].offsetWidth !== a2[t4] || e3[n3].offsetHeight !== i2[t4];
|
|
10587
|
-
});
|
|
10588
|
-
var e3;
|
|
10589
|
-
});
|
|
10590
|
-
});
|
|
10591
|
-
}, domBlockers: function(t2) {
|
|
10592
|
-
var e2 = (void 0 === t2 ? {} : t2).debug;
|
|
10593
|
-
return c(this, void 0, void 0, function() {
|
|
10594
|
-
var t3, n2, r2, o2, a2;
|
|
10595
|
-
return u(this, function(i2) {
|
|
10596
|
-
switch (i2.label) {
|
|
10597
|
-
case 0:
|
|
10598
|
-
return j() || G() ? (c2 = atob, t3 = { abpIndo: ["#Iklan-Melayang", "#Kolom-Iklan-728", "#SidebarIklan-wrapper", '[title="ALIENBOLA" i]', c2("I0JveC1CYW5uZXItYWRz")], abpvn: [".quangcao", "#mobileCatfish", c2("LmNsb3NlLWFkcw=="), '[id^="bn_bottom_fixed_"]', "#pmadv"], adBlockFinland: [".mainostila", c2("LnNwb25zb3JpdA=="), ".ylamainos", c2("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"), c2("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")], adBlockPersian: ["#navbar_notice_50", ".kadr", 'TABLE[width="140px"]', "#divAgahi", c2("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")], adBlockWarningRemoval: ["#adblock-honeypot", ".adblocker-root", ".wp_adblock_detect", c2("LmhlYWRlci1ibG9ja2VkLWFk"), c2("I2FkX2Jsb2NrZXI=")], adGuardAnnoyances: [".hs-sosyal", "#cookieconsentdiv", 'div[class^="app_gdpr"]', ".as-oil", '[data-cypress="soft-push-notification-modal"]'], adGuardBase: [".BetterJsPopOverlay", c2("I2FkXzMwMFgyNTA="), c2("I2Jhbm5lcmZsb2F0MjI="), c2("I2NhbXBhaWduLWJhbm5lcg=="), c2("I0FkLUNvbnRlbnQ=")], adGuardChinese: [c2("LlppX2FkX2FfSA=="), c2("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"), "#widget-quan", c2("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"), c2("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")], adGuardFrench: ["#pavePub", c2("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"), ".mobile_adhesion", ".widgetadv", c2("LmFkc19iYW4=")], adGuardGerman: ['aside[data-portal-id="leaderboard"]'], adGuardJapanese: ["#kauli_yad_1", c2("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="), c2("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="), c2("LmFkZ29vZ2xl"), c2("Ll9faXNib29zdFJldHVybkFk")], adGuardMobile: [c2("YW1wLWF1dG8tYWRz"), c2("LmFtcF9hZA=="), 'amp-embed[type="24smi"]', "#mgid_iframe1", c2("I2FkX2ludmlld19hcmVh")], adGuardRussian: [c2("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="), c2("LnJlY2xhbWE="), 'div[id^="smi2adblock"]', c2("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"), "#psyduckpockeball"], adGuardSocial: [c2("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="), c2("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="), ".etsy-tweet", "#inlineShare", ".popup-social"], adGuardSpanishPortuguese: ["#barraPublicidade", "#Publicidade", "#publiEspecial", "#queTooltip", ".cnt-publi"], adGuardTrackingProtection: ["#qoo-counter", c2("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="), c2("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="), c2("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="), "#top100counter"], adGuardTurkish: ["#backkapat", c2("I3Jla2xhbWk="), c2("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="), c2("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"), c2("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")], bulgarian: [c2("dGQjZnJlZW5ldF90YWJsZV9hZHM="), "#ea_intext_div", ".lapni-pop-over", "#xenium_hot_offers"], easyList: [".yb-floorad", c2("LndpZGdldF9wb19hZHNfd2lkZ2V0"), c2("LnRyYWZmaWNqdW5reS1hZA=="), ".textad_headline", c2("LnNwb25zb3JlZC10ZXh0LWxpbmtz")], easyListChina: [c2("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="), c2("LmZyb250cGFnZUFkdk0="), "#taotaole", "#aafoot.top_box", ".cfa_popup"], easyListCookie: [".ezmob-footer", ".cc-CookieWarning", "[data-cookie-number]", c2("LmF3LWNvb2tpZS1iYW5uZXI="), ".sygnal24-gdpr-modal-wrap"], easyListCzechSlovak: ["#onlajny-stickers", c2("I3Jla2xhbW5pLWJveA=="), c2("LnJla2xhbWEtbWVnYWJvYXJk"), ".sklik", c2("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")], easyListDutch: [c2("I2FkdmVydGVudGll"), c2("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="), ".adstekst", c2("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="), "#semilo-lrectangle"], easyListGermany: ["#SSpotIMPopSlider", c2("LnNwb25zb3JsaW5rZ3J1ZW4="), c2("I3dlcmJ1bmdza3k="), c2("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"), c2("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")], easyListItaly: [c2("LmJveF9hZHZfYW5udW5jaQ=="), ".sb-box-pubbliredazionale", c2("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"), c2("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"), c2("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")], easyListLithuania: [c2("LnJla2xhbW9zX3RhcnBhcw=="), c2("LnJla2xhbW9zX251b3JvZG9z"), c2("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"), c2("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"), c2("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")], estonian: [c2("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")], fanboyAnnoyances: ["#ac-lre-player", ".navigate-to-top", "#subscribe_popup", ".newsletter_holder", "#back-top"], fanboyAntiFacebook: [".util-bar-module-firefly-visible"], fanboyEnhancedTrackers: [".open.pushModal", "#issuem-leaky-paywall-articles-zero-remaining-nag", "#sovrn_container", 'div[class$="-hide"][zoompage-fontsize][style="display: block;"]', ".BlockNag__Card"], fanboySocial: ["#FollowUs", "#meteored_share", "#social_follow", ".article-sharer", ".community__social-desc"], frellwitSwedish: [c2("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="), c2("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="), "article.category-samarbete", c2("ZGl2LmhvbGlkQWRz"), "ul.adsmodern"], greekAdBlock: [c2("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"), c2("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="), c2("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"), "DIV.agores300", "TABLE.advright"], hungarian: ["#cemp_doboz", ".optimonk-iframe-container", c2("LmFkX19tYWlu"), c2("W2NsYXNzKj0iR29vZ2xlQWRzIl0="), "#hirdetesek_box"], iDontCareAboutCookies: ['.alert-info[data-block-track*="CookieNotice"]', ".ModuleTemplateCookieIndicator", ".o--cookies--container", "#cookies-policy-sticky", "#stickyCookieBar"], icelandicAbp: [c2("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")], latvian: [c2("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="), c2("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")], listKr: [c2("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="), c2("I2xpdmVyZUFkV3JhcHBlcg=="), c2("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="), c2("aW5zLmZhc3R2aWV3LWFk"), ".revenue_unit_item.dable"], listeAr: [c2("LmdlbWluaUxCMUFk"), ".right-and-left-sponsers", c2("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="), c2("YVtocmVmKj0iYm9vcmFxLm9yZyJd"), c2("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")], listeFr: [c2("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="), c2("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="), c2("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="), ".site-pub-interstitiel", 'div[id^="crt-"][data-criteo-id]'], officialPolish: ["#ceneo-placeholder-ceneo-12", c2("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"), c2("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="), c2("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="), c2("ZGl2I3NrYXBpZWNfYWQ=")], ro: [c2("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"), c2("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"), c2("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="), c2("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"), 'a[href^="/url/"]'], ruAd: [c2("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"), c2("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="), c2("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="), "#pgeldiz", ".yandex-rtb-block"], thaiAds: ["a[href*=macau-uta-popup]", c2("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="), c2("LmFkczMwMHM="), ".bumq", ".img-kosana"], webAnnoyancesUltralist: ["#mod-social-share-2", "#social-tools", c2("LmN0cGwtZnVsbGJhbm5lcg=="), ".zergnet-recommend", ".yt.btn-link.btn-md.btn"] }, n2 = Object.keys(t3), [4, B((a2 = []).concat.apply(a2, n2.map(function(e3) {
|
|
10599
|
-
return t3[e3];
|
|
10600
|
-
})))]) : [2, void 0];
|
|
10601
|
-
case 1:
|
|
10602
|
-
return r2 = i2.sent(), e2 && function(t4, e3) {
|
|
10603
|
-
for (var n3 = "DOM blockers debug:\n```", r3 = 0, o3 = Object.keys(t4); r3 < o3.length; r3++) {
|
|
10604
|
-
var a3 = o3[r3];
|
|
10605
|
-
n3 += "\n".concat(a3, ":");
|
|
10606
|
-
for (var i3 = 0, c3 = t4[a3]; i3 < c3.length; i3++) {
|
|
10607
|
-
var u2 = c3[i3];
|
|
10608
|
-
n3 += "\n ".concat(e3[u2] ? "🚫" : "➡️", " ").concat(u2);
|
|
10609
|
-
}
|
|
10610
|
-
}
|
|
10611
|
-
console.log("".concat(n3, "\n```"));
|
|
10612
|
-
}(t3, r2), (o2 = n2.filter(function(e3) {
|
|
10613
|
-
var n3 = t3[e3];
|
|
10614
|
-
return S(n3.map(function(t4) {
|
|
10615
|
-
return r2[t4];
|
|
10616
|
-
})) > 0.6 * n3.length;
|
|
10617
|
-
})).sort(), [2, o2];
|
|
10618
|
-
}
|
|
10619
|
-
var c2;
|
|
10620
|
-
});
|
|
10621
|
-
});
|
|
10622
|
-
}, fontPreferences: function() {
|
|
10623
|
-
return function(t2, e2) {
|
|
10624
|
-
void 0 === e2 && (e2 = 4e3);
|
|
10625
|
-
return Y(function(n2, r2) {
|
|
10626
|
-
var o2 = r2.document, a2 = o2.body, i2 = a2.style;
|
|
10627
|
-
i2.width = "".concat(e2, "px"), i2.webkitTextSizeAdjust = i2.textSizeAdjust = "none", F() ? a2.style.zoom = "".concat(1 / r2.devicePixelRatio) : j() && (a2.style.zoom = "reset");
|
|
10628
|
-
var c2 = o2.createElement("div");
|
|
10629
|
-
return c2.textContent = s([], Array(e2 / 20 << 0), true).map(function() {
|
|
10630
|
-
return "word";
|
|
10631
|
-
}).join(" "), a2.appendChild(c2), t2(o2, a2);
|
|
10632
|
-
}, '<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">');
|
|
10633
|
-
}(function(t2, e2) {
|
|
10634
|
-
for (var n2 = {}, r2 = {}, o2 = 0, a2 = Object.keys(rt); o2 < a2.length; o2++) {
|
|
10635
|
-
var i2 = a2[o2], c2 = rt[i2], u2 = c2[0], s2 = void 0 === u2 ? {} : u2, l2 = c2[1], d2 = void 0 === l2 ? "mmMwWLliI0fiflO&1" : l2, f2 = t2.createElement("span");
|
|
10636
|
-
f2.textContent = d2, f2.style.whiteSpace = "nowrap";
|
|
10637
|
-
for (var h2 = 0, m2 = Object.keys(s2); h2 < m2.length; h2++) {
|
|
10638
|
-
var v2 = m2[h2], p2 = s2[v2];
|
|
10639
|
-
void 0 !== p2 && (f2.style[v2] = p2);
|
|
10640
|
-
}
|
|
10641
|
-
n2[i2] = f2, e2.appendChild(t2.createElement("br")), e2.appendChild(f2);
|
|
10642
|
-
}
|
|
10643
|
-
for (var y2 = 0, b2 = Object.keys(rt); y2 < b2.length; y2++) {
|
|
10644
|
-
r2[i2 = b2[y2]] = n2[i2].getBoundingClientRect().width;
|
|
10645
|
-
}
|
|
10646
|
-
return r2;
|
|
10647
|
-
});
|
|
10648
|
-
}, audio: function() {
|
|
10649
|
-
var t2 = window, e2 = t2.OfflineAudioContext || t2.webkitOfflineAudioContext;
|
|
10650
|
-
if (!e2)
|
|
10651
|
-
return -2;
|
|
10652
|
-
if (j() && !M() && !function() {
|
|
10653
|
-
var t3 = window;
|
|
10654
|
-
return S(["DOMRectList" in t3, "RTCPeerConnectionIceEvent" in t3, "SVGGeometryElement" in t3, "ontransitioncancel" in t3]) >= 3;
|
|
10655
|
-
}())
|
|
10656
|
-
return -1;
|
|
10657
|
-
var n2 = new e2(1, 5e3, 44100), r2 = n2.createOscillator();
|
|
10658
|
-
r2.type = "triangle", r2.frequency.value = 1e4;
|
|
10659
|
-
var o2 = n2.createDynamicsCompressor();
|
|
10660
|
-
o2.threshold.value = -50, o2.knee.value = 40, o2.ratio.value = 12, o2.attack.value = 0, o2.release.value = 0.25, r2.connect(o2), o2.connect(n2.destination), r2.start(0);
|
|
10661
|
-
var a2 = function(t3) {
|
|
10662
|
-
var e3 = 3, n3 = 500, r3 = 500, o3 = 5e3, a3 = function() {
|
|
10663
|
-
}, i3 = new Promise(function(i4, c3) {
|
|
10664
|
-
var u3 = false, s2 = 0, l2 = 0;
|
|
10665
|
-
t3.oncomplete = function(t4) {
|
|
10666
|
-
return i4(t4.renderedBuffer);
|
|
10667
|
-
};
|
|
10668
|
-
var d2 = function() {
|
|
10669
|
-
setTimeout(function() {
|
|
10670
|
-
return c3(R("timeout"));
|
|
10671
|
-
}, Math.min(r3, l2 + o3 - Date.now()));
|
|
10672
|
-
}, h2 = function() {
|
|
10673
|
-
try {
|
|
10674
|
-
var r4 = t3.startRendering();
|
|
10675
|
-
switch (f(r4) && v(r4), t3.state) {
|
|
10676
|
-
case "running":
|
|
10677
|
-
l2 = Date.now(), u3 && d2();
|
|
10678
|
-
break;
|
|
10679
|
-
case "suspended":
|
|
10680
|
-
document.hidden || s2++, u3 && s2 >= e3 ? c3(R("suspended")) : setTimeout(h2, n3);
|
|
10681
|
-
}
|
|
10682
|
-
} catch (t4) {
|
|
10683
|
-
c3(t4);
|
|
10684
|
-
}
|
|
10685
|
-
};
|
|
10686
|
-
h2(), a3 = function() {
|
|
10687
|
-
u3 || (u3 = true, l2 > 0 && d2());
|
|
10211
|
+
t2.scriptUrlPattern;
|
|
10212
|
+
var r2 = t2.token, n2 = t2.apiKey, o2 = void 0 === n2 ? r2 : n2, i2 = function(t3, e3) {
|
|
10213
|
+
var r3 = {};
|
|
10214
|
+
for (var n3 in t3)
|
|
10215
|
+
Object.prototype.hasOwnProperty.call(t3, n3) && e3.indexOf(n3) < 0 && (r3[n3] = t3[n3]);
|
|
10216
|
+
if (null != t3 && "function" == typeof Object.getOwnPropertySymbols) {
|
|
10217
|
+
var o3 = 0;
|
|
10218
|
+
for (n3 = Object.getOwnPropertySymbols(t3); o3 < n3.length; o3++)
|
|
10219
|
+
e3.indexOf(n3[o3]) < 0 && Object.prototype.propertyIsEnumerable.call(t3, n3[o3]) && (r3[n3[o3]] = t3[n3[o3]]);
|
|
10220
|
+
}
|
|
10221
|
+
return r3;
|
|
10222
|
+
}(t2, ["scriptUrlPattern", "token", "apiKey"]), a2 = null !== (e2 = function(t3, e3) {
|
|
10223
|
+
return function(t4, e4) {
|
|
10224
|
+
return Object.prototype.hasOwnProperty.call(t4, e4);
|
|
10225
|
+
}(t3, e3) ? t3[e3] : void 0;
|
|
10226
|
+
}(t2, "scriptUrlPattern")) && void 0 !== e2 ? e2 : g, u2 = function() {
|
|
10227
|
+
var t3 = [], e3 = function() {
|
|
10228
|
+
t3.push({ time: /* @__PURE__ */ new Date(), state: document.visibilityState });
|
|
10229
|
+
}, r3 = function(t4, e4, r4, n3) {
|
|
10230
|
+
return t4.addEventListener(e4, r4, n3), function() {
|
|
10231
|
+
return t4.removeEventListener(e4, r4, n3);
|
|
10688
10232
|
};
|
|
10689
|
-
});
|
|
10690
|
-
return [
|
|
10691
|
-
}(
|
|
10692
|
-
|
|
10693
|
-
|
|
10694
|
-
|
|
10695
|
-
|
|
10696
|
-
|
|
10697
|
-
|
|
10698
|
-
|
|
10699
|
-
|
|
10700
|
-
|
|
10701
|
-
|
|
10702
|
-
|
|
10703
|
-
return c2(), u2;
|
|
10704
|
-
};
|
|
10705
|
-
}, screenFrame: function() {
|
|
10706
|
-
var t2 = this, e2 = T();
|
|
10707
|
-
return function() {
|
|
10708
|
-
return c(t2, void 0, void 0, function() {
|
|
10709
|
-
var t3, n2;
|
|
10710
|
-
return u(this, function(r2) {
|
|
10711
|
-
switch (r2.label) {
|
|
10712
|
-
case 0:
|
|
10713
|
-
return [4, e2()];
|
|
10714
|
-
case 1:
|
|
10715
|
-
return t3 = r2.sent(), [2, [(n2 = function(t4) {
|
|
10716
|
-
return null === t4 ? null : Z(t4, 10);
|
|
10717
|
-
})(t3[0]), n2(t3[1]), n2(t3[2]), n2(t3[3])]];
|
|
10718
|
-
}
|
|
10719
|
-
});
|
|
10720
|
-
});
|
|
10721
|
-
};
|
|
10722
|
-
}, osCpu: function() {
|
|
10723
|
-
return navigator.oscpu;
|
|
10724
|
-
}, languages: function() {
|
|
10725
|
-
var t2, e2 = navigator, n2 = [], r2 = e2.language || e2.userLanguage || e2.browserLanguage || e2.systemLanguage;
|
|
10726
|
-
if (void 0 !== r2 && n2.push([r2]), Array.isArray(e2.languages))
|
|
10727
|
-
F() && S([!("MediaSettingsRange" in (t2 = window)), "RTCEncodedAudioFrame" in t2, "" + t2.Intl == "[object Intl]", "" + t2.Reflect == "[object Reflect]"]) >= 3 || n2.push(e2.languages);
|
|
10728
|
-
else if ("string" == typeof e2.languages) {
|
|
10729
|
-
var o2 = e2.languages;
|
|
10730
|
-
o2 && n2.push(o2.split(","));
|
|
10731
|
-
}
|
|
10732
|
-
return n2;
|
|
10733
|
-
}, colorDepth: function() {
|
|
10734
|
-
return window.screen.colorDepth;
|
|
10735
|
-
}, deviceMemory: function() {
|
|
10736
|
-
return V(x(navigator.deviceMemory), void 0);
|
|
10737
|
-
}, screenResolution: function() {
|
|
10738
|
-
var t2 = screen, e2 = function(t3) {
|
|
10739
|
-
return V(k(t3), null);
|
|
10740
|
-
}, n2 = [e2(t2.width), e2(t2.height)];
|
|
10741
|
-
return n2.sort().reverse(), n2;
|
|
10742
|
-
}, hardwareConcurrency: function() {
|
|
10743
|
-
return V(k(navigator.hardwareConcurrency), void 0);
|
|
10744
|
-
}, timezone: function() {
|
|
10745
|
-
var t2, e2 = null === (t2 = window.Intl) || void 0 === t2 ? void 0 : t2.DateTimeFormat;
|
|
10746
|
-
if (e2) {
|
|
10747
|
-
var n2 = new e2().resolvedOptions().timeZone;
|
|
10748
|
-
if (n2)
|
|
10749
|
-
return n2;
|
|
10750
|
-
}
|
|
10751
|
-
var r2, o2 = (r2 = (/* @__PURE__ */ new Date()).getFullYear(), -Math.max(x(new Date(r2, 0, 1).getTimezoneOffset()), x(new Date(r2, 6, 1).getTimezoneOffset())));
|
|
10752
|
-
return "UTC".concat(o2 >= 0 ? "+" : "").concat(Math.abs(o2));
|
|
10753
|
-
}, sessionStorage: function() {
|
|
10754
|
-
try {
|
|
10755
|
-
return !!window.sessionStorage;
|
|
10756
|
-
} catch (t2) {
|
|
10757
|
-
return true;
|
|
10758
|
-
}
|
|
10759
|
-
}, localStorage: function() {
|
|
10760
|
-
try {
|
|
10761
|
-
return !!window.localStorage;
|
|
10762
|
-
} catch (t2) {
|
|
10763
|
-
return true;
|
|
10764
|
-
}
|
|
10765
|
-
}, indexedDB: function() {
|
|
10766
|
-
var t2, e2;
|
|
10767
|
-
if (!(I() || (t2 = window, e2 = navigator, S(["msWriteProfilerMark" in t2, "MSStream" in t2, "msLaunchUri" in e2, "msSaveBlob" in e2]) >= 3 && !I())))
|
|
10768
|
-
try {
|
|
10769
|
-
return !!window.indexedDB;
|
|
10770
|
-
} catch (t3) {
|
|
10771
|
-
return true;
|
|
10772
|
-
}
|
|
10773
|
-
}, openDatabase: function() {
|
|
10774
|
-
return !!window.openDatabase;
|
|
10775
|
-
}, cpuClass: function() {
|
|
10776
|
-
return navigator.cpuClass;
|
|
10777
|
-
}, platform: function() {
|
|
10778
|
-
var t2 = navigator.platform;
|
|
10779
|
-
return "MacIntel" === t2 && j() && !M() ? function() {
|
|
10780
|
-
if ("iPad" === navigator.platform)
|
|
10781
|
-
return true;
|
|
10782
|
-
var t3 = screen, e2 = t3.width / t3.height;
|
|
10783
|
-
return S(["MediaSource" in window, !!Element.prototype.webkitRequestFullscreen, e2 > 0.65 && e2 < 1.53]) >= 2;
|
|
10784
|
-
}() ? "iPad" : "iPhone" : t2;
|
|
10785
|
-
}, plugins: function() {
|
|
10786
|
-
var t2 = navigator.plugins;
|
|
10787
|
-
if (t2) {
|
|
10788
|
-
for (var e2 = [], n2 = 0; n2 < t2.length; ++n2) {
|
|
10789
|
-
var r2 = t2[n2];
|
|
10790
|
-
if (r2) {
|
|
10791
|
-
for (var o2 = [], a2 = 0; a2 < r2.length; ++a2) {
|
|
10792
|
-
var i2 = r2[a2];
|
|
10793
|
-
o2.push({ type: i2.type, suffixes: i2.suffixes });
|
|
10794
|
-
}
|
|
10795
|
-
e2.push({ name: r2.name, description: r2.description, mimeTypes: o2 });
|
|
10796
|
-
}
|
|
10797
|
-
}
|
|
10798
|
-
return e2;
|
|
10799
|
-
}
|
|
10800
|
-
}, canvas: function() {
|
|
10801
|
-
var t2, e2, n2 = false, r2 = function() {
|
|
10802
|
-
var t3 = document.createElement("canvas");
|
|
10803
|
-
return t3.width = 1, t3.height = 1, [t3, t3.getContext("2d")];
|
|
10804
|
-
}(), o2 = r2[0], a2 = r2[1];
|
|
10805
|
-
if (function(t3, e3) {
|
|
10806
|
-
return !(!e3 || !t3.toDataURL);
|
|
10807
|
-
}(o2, a2)) {
|
|
10808
|
-
n2 = function(t3) {
|
|
10809
|
-
return t3.rect(0, 0, 10, 10), t3.rect(2, 2, 6, 6), !t3.isPointInPath(5, 5, "evenodd");
|
|
10810
|
-
}(a2), function(t3, e3) {
|
|
10811
|
-
t3.width = 240, t3.height = 60, e3.textBaseline = "alphabetic", e3.fillStyle = "#f60", e3.fillRect(100, 1, 62, 20), e3.fillStyle = "#069", e3.font = '11pt "Times New Roman"';
|
|
10812
|
-
var n3 = "Cwm fjordbank gly ".concat(String.fromCharCode(55357, 56835));
|
|
10813
|
-
e3.fillText(n3, 2, 15), e3.fillStyle = "rgba(102, 204, 0, 0.2)", e3.font = "18pt Arial", e3.fillText(n3, 4, 45);
|
|
10814
|
-
}(o2, a2);
|
|
10815
|
-
var i2 = H(o2);
|
|
10816
|
-
i2 !== H(o2) ? t2 = e2 = "unstable" : (e2 = i2, function(t3, e3) {
|
|
10817
|
-
t3.width = 122, t3.height = 110, e3.globalCompositeOperation = "multiply";
|
|
10818
|
-
for (var n3 = 0, r3 = [["#f2f", 40, 40], ["#2ff", 80, 40], ["#ff2", 60, 80]]; n3 < r3.length; n3++) {
|
|
10819
|
-
var o3 = r3[n3], a3 = o3[0], i3 = o3[1], c2 = o3[2];
|
|
10820
|
-
e3.fillStyle = a3, e3.beginPath(), e3.arc(i3, c2, 40, 0, 2 * Math.PI, true), e3.closePath(), e3.fill();
|
|
10821
|
-
}
|
|
10822
|
-
e3.fillStyle = "#f9c", e3.arc(60, 60, 60, 0, 2 * Math.PI, true), e3.arc(60, 60, 20, 0, 2 * Math.PI, true), e3.fill("evenodd");
|
|
10823
|
-
}(o2, a2), t2 = H(o2));
|
|
10824
|
-
} else
|
|
10825
|
-
t2 = e2 = "";
|
|
10826
|
-
return { winding: n2, geometry: t2, text: e2 };
|
|
10827
|
-
}, touchSupport: function() {
|
|
10828
|
-
var t2, e2 = navigator, n2 = 0;
|
|
10829
|
-
void 0 !== e2.maxTouchPoints ? n2 = k(e2.maxTouchPoints) : void 0 !== e2.msMaxTouchPoints && (n2 = e2.msMaxTouchPoints);
|
|
10830
|
-
try {
|
|
10831
|
-
document.createEvent("TouchEvent"), t2 = true;
|
|
10832
|
-
} catch (e3) {
|
|
10833
|
-
t2 = false;
|
|
10834
|
-
}
|
|
10835
|
-
return { maxTouchPoints: n2, touchEvent: t2, touchStart: "ontouchstart" in window };
|
|
10836
|
-
}, vendor: function() {
|
|
10837
|
-
return navigator.vendor || "";
|
|
10838
|
-
}, vendorFlavors: function() {
|
|
10839
|
-
for (var t2 = [], e2 = 0, n2 = ["chrome", "safari", "__crWeb", "__gCrWeb", "yandex", "__yb", "__ybro", "__firefox__", "__edgeTrackingPreventionStatistics", "webkit", "oprt", "samsungAr", "ucweb", "UCShellJava", "puffinDevice"]; e2 < n2.length; e2++) {
|
|
10840
|
-
var r2 = n2[e2], o2 = window[r2];
|
|
10841
|
-
o2 && "object" == typeof o2 && t2.push(r2);
|
|
10842
|
-
}
|
|
10843
|
-
return t2.sort();
|
|
10844
|
-
}, cookiesEnabled: function() {
|
|
10845
|
-
var t2 = document;
|
|
10846
|
-
try {
|
|
10847
|
-
t2.cookie = "cookietest=1; SameSite=Strict;";
|
|
10848
|
-
var e2 = -1 !== t2.cookie.indexOf("cookietest=");
|
|
10849
|
-
return t2.cookie = "cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT", e2;
|
|
10850
|
-
} catch (t3) {
|
|
10851
|
-
return false;
|
|
10852
|
-
}
|
|
10853
|
-
}, colorGamut: function() {
|
|
10854
|
-
for (var t2 = 0, e2 = ["rec2020", "p3", "srgb"]; t2 < e2.length; t2++) {
|
|
10855
|
-
var n2 = e2[t2];
|
|
10856
|
-
if (matchMedia("(color-gamut: ".concat(n2, ")")).matches)
|
|
10857
|
-
return n2;
|
|
10858
|
-
}
|
|
10859
|
-
}, invertedColors: function() {
|
|
10860
|
-
return !!Q("inverted") || !Q("none") && void 0;
|
|
10861
|
-
}, forcedColors: function() {
|
|
10862
|
-
return !!K("active") || !K("none") && void 0;
|
|
10863
|
-
}, monochrome: function() {
|
|
10864
|
-
if (matchMedia("(min-monochrome: 0)").matches) {
|
|
10865
|
-
for (var t2 = 0; t2 <= 100; ++t2)
|
|
10866
|
-
if (matchMedia("(max-monochrome: ".concat(t2, ")")).matches)
|
|
10867
|
-
return t2;
|
|
10868
|
-
throw new Error("Too high value");
|
|
10869
|
-
}
|
|
10870
|
-
}, contrast: function() {
|
|
10871
|
-
return q("no-preference") ? 0 : q("high") || q("more") ? 1 : q("low") || q("less") ? -1 : q("forced") ? 10 : void 0;
|
|
10872
|
-
}, reducedMotion: function() {
|
|
10873
|
-
return !!$("reduce") || !$("no-preference") && void 0;
|
|
10874
|
-
}, hdr: function() {
|
|
10875
|
-
return !!tt("high") || !tt("standard") && void 0;
|
|
10876
|
-
}, math: function() {
|
|
10877
|
-
var t2, e2 = et.acos || nt, n2 = et.acosh || nt, r2 = et.asin || nt, o2 = et.asinh || nt, a2 = et.atanh || nt, i2 = et.atan || nt, c2 = et.sin || nt, u2 = et.sinh || nt, s2 = et.cos || nt, l2 = et.cosh || nt, d2 = et.tan || nt, f2 = et.tanh || nt, h2 = et.exp || nt, m2 = et.expm1 || nt, v2 = et.log1p || nt;
|
|
10878
|
-
return { acos: e2(0.12312423423423424), acosh: n2(1e308), acoshPf: (t2 = 1e154, et.log(t2 + et.sqrt(t2 * t2 - 1))), asin: r2(0.12312423423423424), asinh: o2(1), asinhPf: function(t3) {
|
|
10879
|
-
return et.log(t3 + et.sqrt(t3 * t3 + 1));
|
|
10880
|
-
}(1), atanh: a2(0.5), atanhPf: function(t3) {
|
|
10881
|
-
return et.log((1 + t3) / (1 - t3)) / 2;
|
|
10882
|
-
}(0.5), atan: i2(0.5), sin: c2(-1e300), sinh: u2(1), sinhPf: function(t3) {
|
|
10883
|
-
return et.exp(t3) - 1 / et.exp(t3) / 2;
|
|
10884
|
-
}(1), cos: s2(10.000000000123), cosh: l2(1), coshPf: function(t3) {
|
|
10885
|
-
return (et.exp(t3) + 1 / et.exp(t3)) / 2;
|
|
10886
|
-
}(1), tan: d2(-1e300), tanh: f2(1), tanhPf: function(t3) {
|
|
10887
|
-
return (et.exp(2 * t3) - 1) / (et.exp(2 * t3) + 1);
|
|
10888
|
-
}(1), exp: h2(1), expm1: m2(1), expm1Pf: function(t3) {
|
|
10889
|
-
return et.exp(t3) - 1;
|
|
10890
|
-
}(1), log1p: v2(10), log1pPf: function(t3) {
|
|
10891
|
-
return et.log(1 + t3);
|
|
10892
|
-
}(10), powPI: function(t3) {
|
|
10893
|
-
return et.pow(et.PI, t3);
|
|
10894
|
-
}(-100) };
|
|
10895
|
-
}, videoCard: function() {
|
|
10896
|
-
var t2, e2 = document.createElement("canvas"), n2 = null !== (t2 = e2.getContext("webgl")) && void 0 !== t2 ? t2 : e2.getContext("experimental-webgl");
|
|
10897
|
-
if (n2 && "getExtension" in n2) {
|
|
10898
|
-
var r2 = n2.getExtension("WEBGL_debug_renderer_info");
|
|
10899
|
-
if (r2)
|
|
10900
|
-
return { vendor: (n2.getParameter(r2.UNMASKED_VENDOR_WEBGL) || "").toString(), renderer: (n2.getParameter(r2.UNMASKED_RENDERER_WEBGL) || "").toString() };
|
|
10901
|
-
}
|
|
10902
|
-
}, pdfViewerEnabled: function() {
|
|
10903
|
-
return navigator.pdfViewerEnabled;
|
|
10904
|
-
}, architecture: function() {
|
|
10905
|
-
var t2 = new Float32Array(1), e2 = new Uint8Array(t2.buffer);
|
|
10906
|
-
return t2[0] = 1 / 0, t2[0] = t2[0] - t2[0], e2[3];
|
|
10907
|
-
} };
|
|
10908
|
-
var at = "$ if upgrade to Pro: https://fpjs.dev/pro";
|
|
10909
|
-
function it(t2) {
|
|
10910
|
-
var e2 = function(t3) {
|
|
10911
|
-
if (G())
|
|
10912
|
-
return 0.4;
|
|
10913
|
-
if (j())
|
|
10914
|
-
return M() ? 0.5 : 0.3;
|
|
10915
|
-
var e3 = t3.platform.value || "";
|
|
10916
|
-
if (/^Win/.test(e3))
|
|
10917
|
-
return 0.6;
|
|
10918
|
-
if (/^Mac/.test(e3))
|
|
10919
|
-
return 0.5;
|
|
10920
|
-
return 0.7;
|
|
10921
|
-
}(t2), n2 = function(t3) {
|
|
10922
|
-
return Z(0.99 + 0.01 * t3, 1e-4);
|
|
10923
|
-
}(e2);
|
|
10924
|
-
return { score: e2, comment: at.replace(/\$/g, "".concat(n2)) };
|
|
10925
|
-
}
|
|
10926
|
-
function ct(t2) {
|
|
10927
|
-
return JSON.stringify(t2, function(t3, e2) {
|
|
10928
|
-
return e2 instanceof Error ? i({ name: (n2 = e2).name, message: n2.message, stack: null === (r2 = n2.stack) || void 0 === r2 ? void 0 : r2.split("\n") }, n2) : e2;
|
|
10929
|
-
var n2, r2;
|
|
10930
|
-
}, 2);
|
|
10931
|
-
}
|
|
10932
|
-
function ut(t2) {
|
|
10933
|
-
return function(t3, e2) {
|
|
10934
|
-
e2 = e2 || 0;
|
|
10935
|
-
var n2, r2 = (t3 = t3 || "").length % 16, o2 = t3.length - r2, a2 = [0, e2], i2 = [0, e2], c2 = [0, 0], u2 = [0, 0], s2 = [2277735313, 289559509], l2 = [1291169091, 658871167];
|
|
10936
|
-
for (n2 = 0; n2 < o2; n2 += 16)
|
|
10937
|
-
c2 = [255 & t3.charCodeAt(n2 + 4) | (255 & t3.charCodeAt(n2 + 5)) << 8 | (255 & t3.charCodeAt(n2 + 6)) << 16 | (255 & t3.charCodeAt(n2 + 7)) << 24, 255 & t3.charCodeAt(n2) | (255 & t3.charCodeAt(n2 + 1)) << 8 | (255 & t3.charCodeAt(n2 + 2)) << 16 | (255 & t3.charCodeAt(n2 + 3)) << 24], u2 = [255 & t3.charCodeAt(n2 + 12) | (255 & t3.charCodeAt(n2 + 13)) << 8 | (255 & t3.charCodeAt(n2 + 14)) << 16 | (255 & t3.charCodeAt(n2 + 15)) << 24, 255 & t3.charCodeAt(n2 + 8) | (255 & t3.charCodeAt(n2 + 9)) << 8 | (255 & t3.charCodeAt(n2 + 10)) << 16 | (255 & t3.charCodeAt(n2 + 11)) << 24], c2 = b(c2 = y(c2, s2), 31), a2 = p(a2 = b(a2 = w(a2, c2 = y(c2, l2)), 27), i2), a2 = p(y(a2, [0, 5]), [0, 1390208809]), u2 = b(u2 = y(u2, l2), 33), i2 = p(i2 = b(i2 = w(i2, u2 = y(u2, s2)), 31), a2), i2 = p(y(i2, [0, 5]), [0, 944331445]);
|
|
10938
|
-
switch (c2 = [0, 0], u2 = [0, 0], r2) {
|
|
10939
|
-
case 15:
|
|
10940
|
-
u2 = w(u2, g([0, t3.charCodeAt(n2 + 14)], 48));
|
|
10941
|
-
case 14:
|
|
10942
|
-
u2 = w(u2, g([0, t3.charCodeAt(n2 + 13)], 40));
|
|
10943
|
-
case 13:
|
|
10944
|
-
u2 = w(u2, g([0, t3.charCodeAt(n2 + 12)], 32));
|
|
10945
|
-
case 12:
|
|
10946
|
-
u2 = w(u2, g([0, t3.charCodeAt(n2 + 11)], 24));
|
|
10947
|
-
case 11:
|
|
10948
|
-
u2 = w(u2, g([0, t3.charCodeAt(n2 + 10)], 16));
|
|
10949
|
-
case 10:
|
|
10950
|
-
u2 = w(u2, g([0, t3.charCodeAt(n2 + 9)], 8));
|
|
10951
|
-
case 9:
|
|
10952
|
-
u2 = y(u2 = w(u2, [0, t3.charCodeAt(n2 + 8)]), l2), i2 = w(i2, u2 = y(u2 = b(u2, 33), s2));
|
|
10953
|
-
case 8:
|
|
10954
|
-
c2 = w(c2, g([0, t3.charCodeAt(n2 + 7)], 56));
|
|
10955
|
-
case 7:
|
|
10956
|
-
c2 = w(c2, g([0, t3.charCodeAt(n2 + 6)], 48));
|
|
10957
|
-
case 6:
|
|
10958
|
-
c2 = w(c2, g([0, t3.charCodeAt(n2 + 5)], 40));
|
|
10959
|
-
case 5:
|
|
10960
|
-
c2 = w(c2, g([0, t3.charCodeAt(n2 + 4)], 32));
|
|
10961
|
-
case 4:
|
|
10962
|
-
c2 = w(c2, g([0, t3.charCodeAt(n2 + 3)], 24));
|
|
10963
|
-
case 3:
|
|
10964
|
-
c2 = w(c2, g([0, t3.charCodeAt(n2 + 2)], 16));
|
|
10965
|
-
case 2:
|
|
10966
|
-
c2 = w(c2, g([0, t3.charCodeAt(n2 + 1)], 8));
|
|
10967
|
-
case 1:
|
|
10968
|
-
c2 = y(c2 = w(c2, [0, t3.charCodeAt(n2)]), s2), a2 = w(a2, c2 = y(c2 = b(c2, 31), l2));
|
|
10969
|
-
}
|
|
10970
|
-
return a2 = p(a2 = w(a2, [0, t3.length]), i2 = w(i2, [0, t3.length])), i2 = p(i2, a2), a2 = p(a2 = L(a2), i2 = L(i2)), i2 = p(i2, a2), ("00000000" + (a2[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (a2[1] >>> 0).toString(16)).slice(-8) + ("00000000" + (i2[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (i2[1] >>> 0).toString(16)).slice(-8);
|
|
10971
|
-
}(function(t3) {
|
|
10972
|
-
for (var e2 = "", n2 = 0, r2 = Object.keys(t3).sort(); n2 < r2.length; n2++) {
|
|
10973
|
-
var o2 = r2[n2], a2 = t3[o2], i2 = a2.error ? "error" : JSON.stringify(a2.value);
|
|
10974
|
-
e2 += "".concat(e2 ? "|" : "").concat(o2.replace(/([:|\\])/g, "\\$1"), ":").concat(i2);
|
|
10975
|
-
}
|
|
10976
|
-
return e2;
|
|
10977
|
-
}(t2));
|
|
10978
|
-
}
|
|
10979
|
-
function st(t2) {
|
|
10980
|
-
return void 0 === t2 && (t2 = 50), function(t3, e2) {
|
|
10981
|
-
void 0 === e2 && (e2 = 1 / 0);
|
|
10982
|
-
var n2 = window.requestIdleCallback;
|
|
10983
|
-
return n2 ? new Promise(function(t4) {
|
|
10984
|
-
return n2.call(window, function() {
|
|
10985
|
-
return t4();
|
|
10986
|
-
}, { timeout: e2 });
|
|
10987
|
-
}) : d(Math.min(t3, e2));
|
|
10988
|
-
}(t2, 2 * t2);
|
|
10989
|
-
}
|
|
10990
|
-
function lt(t2, e2) {
|
|
10991
|
-
var n2 = Date.now();
|
|
10992
|
-
return { get: function(r2) {
|
|
10993
|
-
return c(this, void 0, void 0, function() {
|
|
10994
|
-
var o2, a2, i2;
|
|
10995
|
-
return u(this, function(c2) {
|
|
10996
|
-
switch (c2.label) {
|
|
10997
|
-
case 0:
|
|
10998
|
-
return o2 = Date.now(), [4, t2()];
|
|
10999
|
-
case 1:
|
|
11000
|
-
return a2 = c2.sent(), i2 = function(t3) {
|
|
11001
|
-
var e3;
|
|
11002
|
-
return { get visitorId() {
|
|
11003
|
-
return void 0 === e3 && (e3 = ut(this.components)), e3;
|
|
11004
|
-
}, set visitorId(t4) {
|
|
11005
|
-
e3 = t4;
|
|
11006
|
-
}, confidence: it(t3), components: t3, version: l };
|
|
11007
|
-
}(a2), (e2 || (null == r2 ? void 0 : r2.debug)) && console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(i2.version, "\nuserAgent: ").concat(navigator.userAgent, "\ntimeBetweenLoadAndGet: ").concat(o2 - n2, "\nvisitorId: ").concat(i2.visitorId, "\ncomponents: ").concat(ct(a2), "\n```")), [2, i2];
|
|
11008
|
-
}
|
|
10233
|
+
}(document, "visibilitychange", e3);
|
|
10234
|
+
return e3(), [t3, r3];
|
|
10235
|
+
}(), s2 = u2[0], l2 = u2[1];
|
|
10236
|
+
return Promise.resolve().then(function() {
|
|
10237
|
+
if (!o2 || "string" != typeof o2)
|
|
10238
|
+
throw new Error(v);
|
|
10239
|
+
return E(function(t3, e3) {
|
|
10240
|
+
return (Array.isArray(t3) ? t3 : [t3]).map(function(t4) {
|
|
10241
|
+
return function(t5, e4) {
|
|
10242
|
+
var r3 = encodeURIComponent;
|
|
10243
|
+
return t5.replace(/<[^<>]+>/g, function(t6) {
|
|
10244
|
+
return "<version>" === t6 ? "3" : "<apiKey>" === t6 ? r3(e4) : "<loaderVersion>" === t6 ? r3("3.8.6") : t6;
|
|
10245
|
+
});
|
|
10246
|
+
}(String(t4), e3);
|
|
11009
10247
|
});
|
|
11010
|
-
});
|
|
11011
|
-
}
|
|
11012
|
-
|
|
11013
|
-
|
|
11014
|
-
|
|
11015
|
-
|
|
11016
|
-
|
|
11017
|
-
|
|
11018
|
-
case 0:
|
|
11019
|
-
return a2 && function() {
|
|
11020
|
-
if (!(window.__fpjs_d_m || Math.random() >= 1e-3))
|
|
11021
|
-
try {
|
|
11022
|
-
var t4 = new XMLHttpRequest();
|
|
11023
|
-
t4.open("get", "https://m1.openfpcdn.io/fingerprintjs/v".concat(l, "/npm-monitoring"), true), t4.send();
|
|
11024
|
-
} catch (t5) {
|
|
11025
|
-
console.error(t5);
|
|
11026
|
-
}
|
|
11027
|
-
}(), [4, st(n2)];
|
|
11028
|
-
case 1:
|
|
11029
|
-
return t3.sent(), [2, lt(C(ot, { debug: r2 }, []), r2)];
|
|
11030
|
-
}
|
|
11031
|
-
});
|
|
10248
|
+
}(a2, o2), b);
|
|
10249
|
+
}).catch(function(t3) {
|
|
10250
|
+
throw l2(), function(t4) {
|
|
10251
|
+
return t4 instanceof Error && t4.message === R ? new Error(w) : t4;
|
|
10252
|
+
}(t3);
|
|
10253
|
+
}).then(function(t3) {
|
|
10254
|
+
var e3 = t3[0], r3 = t3[1];
|
|
10255
|
+
return l2(), e3.load(c(c({}, i2), { ldi: { attempts: r3, visibilityStates: s2 } }));
|
|
11032
10256
|
});
|
|
11033
|
-
},
|
|
11034
|
-
function
|
|
11035
|
-
return
|
|
10257
|
+
}, defaultScriptUrlPattern: g, ERROR_SCRIPT_LOAD_FAIL: w, ERROR_API_KEY_EXPIRED: m, ERROR_API_KEY_INVALID: y, ERROR_API_KEY_MISSING: v, ERROR_BAD_REQUEST_FORMAT: "Request cannot be parsed", ERROR_BAD_RESPONSE_FORMAT: "Response cannot be parsed", ERROR_CLIENT_TIMEOUT: "Client timeout", ERROR_CSP_BLOCK: l, ERROR_FORBIDDEN_ENDPOINT: s("HostnameRestricted"), ERROR_FORBIDDEN_HEADER: "Not available with restricted header", ERROR_FORBIDDEN_ORIGIN: "Not available for this origin", ERROR_GENERAL_SERVER_FAILURE: "Request failed", ERROR_INSTALLATION_METHOD_RESTRICTED: d, ERROR_INTEGRATION_FAILURE: s("IntegrationFailed"), ERROR_INVALID_ENDPOINT: "The endpoint parameter is not a valid URL", ERROR_NETWORK_ABORT: "Network request aborted", ERROR_NETWORK_CONNECTION: "Network connection error", ERROR_RATE_LIMIT: "Too many requests, rate limit exceeded", ERROR_SERVER_TIMEOUT: "Request failed to process", ERROR_SUBSCRIPTION_NOT_ACTIVE: p, ERROR_TOKEN_EXPIRED: m, ERROR_TOKEN_INVALID: y, ERROR_TOKEN_MISSING: v, ERROR_UNSUPPORTED_VERSION: h, ERROR_WRONG_REGION: f, defaultEndpoint: { default: "endpoint" }, defaultTlsEndpoint: { default: "tlsEndpoint" } };
|
|
10258
|
+
function I() {
|
|
10259
|
+
return x.apply(this, arguments);
|
|
11036
10260
|
}
|
|
11037
|
-
function
|
|
11038
|
-
return (
|
|
11039
|
-
var e2, n2;
|
|
10261
|
+
function x() {
|
|
10262
|
+
return (x = e$1(a.mark(function t2() {
|
|
10263
|
+
var e2, r2, n2, o2;
|
|
11040
10264
|
return a.wrap(function(t3) {
|
|
11041
10265
|
for (; ; )
|
|
11042
10266
|
switch (t3.prev = t3.next) {
|
|
11043
10267
|
case 0:
|
|
11044
|
-
|
|
11045
|
-
|
|
11046
|
-
|
|
11047
|
-
|
|
11048
|
-
return
|
|
10268
|
+
if (t3.prev = 0, e2 = "object" === ("undefined" == typeof Cypress ? "undefined" : u(Cypress)), r2 = "object" === ("undefined" == typeof process ? "undefined" : u(process)) && "test" === { "NODE_ENV": "production" }.NODE_ENV, !e2 && !r2) {
|
|
10269
|
+
t3.next = 5;
|
|
10270
|
+
break;
|
|
10271
|
+
}
|
|
10272
|
+
return t3.abrupt("return", "a-mock-visitor-id");
|
|
10273
|
+
case 5:
|
|
10274
|
+
return t3.next = 7, _.load({ apiKey: "hpFVJecm7Ni7AjSfvBIW" });
|
|
10275
|
+
case 7:
|
|
10276
|
+
return n2 = t3.sent, t3.next = 10, n2.get();
|
|
11049
10277
|
case 10:
|
|
11050
|
-
return
|
|
10278
|
+
return o2 = t3.sent, t3.abrupt("return", o2.visitorId);
|
|
11051
10279
|
case 14:
|
|
10280
|
+
return t3.prev = 14, t3.t0 = t3.catch(0), console.log(t3.t0), t3.abrupt("return", "");
|
|
10281
|
+
case 18:
|
|
11052
10282
|
case "end":
|
|
11053
10283
|
return t3.stop();
|
|
11054
10284
|
}
|
|
11055
|
-
}, t2, null, [[0,
|
|
10285
|
+
}, t2, null, [[0, 14]]);
|
|
11056
10286
|
}))).apply(this, arguments);
|
|
11057
10287
|
}
|
|
11058
|
-
function
|
|
11059
|
-
return
|
|
10288
|
+
function S() {
|
|
10289
|
+
return k.apply(this, arguments);
|
|
11060
10290
|
}
|
|
11061
|
-
function
|
|
11062
|
-
return (
|
|
10291
|
+
function k() {
|
|
10292
|
+
return (k = e$1(a.mark(function t2() {
|
|
11063
10293
|
return a.wrap(function(t3) {
|
|
11064
10294
|
for (; ; )
|
|
11065
10295
|
switch (t3.prev = t3.next) {
|
|
11066
10296
|
case 0:
|
|
11067
10297
|
return t3.abrupt("return", new Promise(function(t4) {
|
|
11068
10298
|
window.requestIdleCallback ? requestIdleCallback(e$1(a.mark(function e2() {
|
|
11069
|
-
var
|
|
10299
|
+
var r2;
|
|
11070
10300
|
return a.wrap(function(e3) {
|
|
11071
10301
|
for (; ; )
|
|
11072
10302
|
switch (e3.prev = e3.next) {
|
|
11073
10303
|
case 0:
|
|
11074
|
-
return e3.next = 2,
|
|
10304
|
+
return e3.next = 2, I();
|
|
11075
10305
|
case 2:
|
|
11076
|
-
|
|
10306
|
+
r2 = e3.sent, t4(r2);
|
|
11077
10307
|
case 4:
|
|
11078
10308
|
case "end":
|
|
11079
10309
|
return e3.stop();
|
|
11080
10310
|
}
|
|
11081
10311
|
}, e2);
|
|
11082
10312
|
}))) : setTimeout(e$1(a.mark(function e2() {
|
|
11083
|
-
var
|
|
10313
|
+
var r2;
|
|
11084
10314
|
return a.wrap(function(e3) {
|
|
11085
10315
|
for (; ; )
|
|
11086
10316
|
switch (e3.prev = e3.next) {
|
|
11087
10317
|
case 0:
|
|
11088
|
-
return e3.next = 2,
|
|
10318
|
+
return e3.next = 2, I();
|
|
11089
10319
|
case 2:
|
|
11090
|
-
|
|
10320
|
+
r2 = e3.sent, t4(r2);
|
|
11091
10321
|
case 4:
|
|
11092
10322
|
case "end":
|
|
11093
10323
|
return e3.stop();
|
|
@@ -11102,33 +10332,33 @@ function vt() {
|
|
|
11102
10332
|
}, t2);
|
|
11103
10333
|
}))).apply(this, arguments);
|
|
11104
10334
|
}
|
|
11105
|
-
var
|
|
11106
|
-
var e2 = t2.env,
|
|
10335
|
+
var N = function(t2) {
|
|
10336
|
+
var e2 = t2.env, r2 = t2.kountAccountId, n2 = t2.kountSessionId, o2 = function(t3) {
|
|
11107
10337
|
return "production" === t3;
|
|
11108
|
-
}(e2) ? "https://ssl.kaptcha.com" : "https://tst.kaptcha.com",
|
|
11109
|
-
|
|
11110
|
-
var
|
|
11111
|
-
return
|
|
10338
|
+
}(e2) ? "https://ssl.kaptcha.com" : "https://tst.kaptcha.com", i2 = new URL("".concat(o2, "/collect/sdk"));
|
|
10339
|
+
i2.searchParams.append("m", r2), n2 && i2.searchParams.append("m", n2);
|
|
10340
|
+
var a2 = document.createElement("script");
|
|
10341
|
+
return a2.setAttribute("class", "kaxsdc"), a2.setAttribute("data-event", "load"), a2.setAttribute("type", "text/javascript"), a2.setAttribute("src", i2.href), document.body.append(a2), a2;
|
|
11112
10342
|
};
|
|
11113
|
-
function
|
|
11114
|
-
return
|
|
10343
|
+
function L(t2) {
|
|
10344
|
+
return T.apply(this, arguments);
|
|
11115
10345
|
}
|
|
11116
|
-
function
|
|
11117
|
-
return (
|
|
11118
|
-
var
|
|
10346
|
+
function T() {
|
|
10347
|
+
return (T = e$1(a.mark(function t2(e2) {
|
|
10348
|
+
var r2, n2, o2;
|
|
11119
10349
|
return a.wrap(function(t3) {
|
|
11120
10350
|
for (; ; )
|
|
11121
10351
|
switch (t3.prev = t3.next) {
|
|
11122
10352
|
case 0:
|
|
11123
|
-
return
|
|
11124
|
-
var
|
|
11125
|
-
|
|
10353
|
+
return r2 = e2.env, n2 = e2.kountAccountId, o2 = e2.kountSessionId, t3.abrupt("return", new Promise(function(t4, e3) {
|
|
10354
|
+
var i2 = N({ env: r2, kountAccountId: n2, kountSessionId: o2 });
|
|
10355
|
+
i2.onload = function() {
|
|
11126
10356
|
var e4 = new ka.ClientSDK();
|
|
11127
10357
|
e4.setupCallback({ "collect-begin": function(e5) {
|
|
11128
|
-
var
|
|
11129
|
-
t4(
|
|
10358
|
+
var r3 = e5.MercSessId;
|
|
10359
|
+
t4(r3);
|
|
11130
10360
|
} }), e4.autoLoadEvents();
|
|
11131
|
-
},
|
|
10361
|
+
}, i2.onerror = function() {
|
|
11132
10362
|
e3(new Error("Error attempting to mount Kount script"));
|
|
11133
10363
|
};
|
|
11134
10364
|
}));
|
|
@@ -11139,56 +10369,56 @@ function bt() {
|
|
|
11139
10369
|
}, t2);
|
|
11140
10370
|
}))).apply(this, arguments);
|
|
11141
10371
|
}
|
|
11142
|
-
function
|
|
11143
|
-
return
|
|
10372
|
+
function A(t2) {
|
|
10373
|
+
return P.apply(this, arguments);
|
|
11144
10374
|
}
|
|
11145
|
-
function
|
|
11146
|
-
return
|
|
11147
|
-
var
|
|
10375
|
+
function P() {
|
|
10376
|
+
return P = e$1(a.mark(function t2(e2) {
|
|
10377
|
+
var r2, n2, o2, i2, u2, c2, s2, l2, f2, p2, h2, d2, v2, y2, m2, R2, E2, g2, w2, b2;
|
|
11148
10378
|
return a.wrap(function(t3) {
|
|
11149
10379
|
for (; ; )
|
|
11150
10380
|
switch (t3.prev = t3.next) {
|
|
11151
10381
|
case 0:
|
|
11152
|
-
return
|
|
10382
|
+
return r2 = e2.env, n2 = void 0 === r2 ? null : r2, o2 = e2.screen, i2 = e2.navigator, u2 = e2.kountAccountId, c2 = void 0 === u2 ? null : u2, s2 = e2.kountSessionId, l2 = void 0 === s2 ? null : s2, f2 = e2.getFingerprint, p2 = e2.getFraudSessionId, d2 = (h2 = o2 || {}).colorDepth, v2 = h2.height, y2 = h2.width, R2 = (m2 = i2 || {}).javaEnabled, E2 = m2.language, t3.prev = 3, t3.next = 6, f2();
|
|
11153
10383
|
case 6:
|
|
11154
|
-
if (
|
|
10384
|
+
if (g2 = t3.sent, !c2) {
|
|
11155
10385
|
t3.next = 11;
|
|
11156
10386
|
break;
|
|
11157
10387
|
}
|
|
11158
|
-
return t3.next = 10,
|
|
10388
|
+
return t3.next = 10, p2({ env: n2, kountAccountId: c2, kountSessionId: l2 });
|
|
11159
10389
|
case 10:
|
|
11160
|
-
|
|
10390
|
+
w2 = t3.sent;
|
|
11161
10391
|
case 11:
|
|
11162
10392
|
t3.next = 16;
|
|
11163
10393
|
break;
|
|
11164
10394
|
case 13:
|
|
11165
10395
|
t3.prev = 13, t3.t0 = t3.catch(3), console.error(t3.t0);
|
|
11166
10396
|
case 16:
|
|
11167
|
-
return
|
|
10397
|
+
return b2 = { riskMetadata: { fingerprint: g2 || null, extraData: { kountFraudSessionId: w2 || null }, browserData: { colorDepth: d2 || null, isJavaEnabled: R2 ? R2.call(i2) : null, language: E2 || null, screenHeight: v2 || null, screenWidth: y2 || null, timeZoneOffset: (/* @__PURE__ */ new Date()).getTimezoneOffset() } } }, t3.abrupt("return", b2);
|
|
11168
10398
|
case 18:
|
|
11169
10399
|
case "end":
|
|
11170
10400
|
return t3.stop();
|
|
11171
10401
|
}
|
|
11172
10402
|
}, t2, null, [[3, 13]]);
|
|
11173
|
-
})),
|
|
10403
|
+
})), P.apply(this, arguments);
|
|
11174
10404
|
}
|
|
11175
|
-
function
|
|
11176
|
-
return
|
|
10405
|
+
function j() {
|
|
10406
|
+
return D.apply(this, arguments);
|
|
11177
10407
|
}
|
|
11178
|
-
function
|
|
11179
|
-
return
|
|
11180
|
-
var e2,
|
|
10408
|
+
function D() {
|
|
10409
|
+
return D = e$1(a.mark(function t2() {
|
|
10410
|
+
var e2, r2, n2, o2, i2, u2, c2, s2 = arguments;
|
|
11181
10411
|
return a.wrap(function(t3) {
|
|
11182
10412
|
for (; ; )
|
|
11183
10413
|
switch (t3.prev = t3.next) {
|
|
11184
10414
|
case 0:
|
|
11185
|
-
return
|
|
10415
|
+
return r2 = (e2 = s2.length > 0 && void 0 !== s2[0] ? s2[0] : {}).env, n2 = void 0 === r2 ? null : r2, o2 = e2.kountAccountId, i2 = void 0 === o2 ? null : o2, u2 = e2.kountSessionId, c2 = void 0 === u2 ? null : u2, t3.abrupt("return", A({ env: n2, screen, navigator, kountAccountId: i2, kountSessionId: c2, getFingerprint: S, getFraudSessionId: L }));
|
|
11186
10416
|
case 2:
|
|
11187
10417
|
case "end":
|
|
11188
10418
|
return t3.stop();
|
|
11189
10419
|
}
|
|
11190
10420
|
}, t2);
|
|
11191
|
-
})),
|
|
10421
|
+
})), D.apply(this, arguments);
|
|
11192
10422
|
}
|
|
11193
10423
|
function getPaymentMethods() {
|
|
11194
10424
|
var _a;
|
|
@@ -14700,7 +13930,7 @@ async function fetchReadyToPay() {
|
|
|
14700
13930
|
return Endpoint(async () => {
|
|
14701
13931
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
14702
13932
|
if (!state.data.riskMetadata) {
|
|
14703
|
-
const { riskMetadata: data2 } = await
|
|
13933
|
+
const { riskMetadata: data2 } = await j();
|
|
14704
13934
|
state.data.riskMetadata = data2;
|
|
14705
13935
|
}
|
|
14706
13936
|
const data = {
|
|
@@ -15115,7 +14345,7 @@ async function fetchData({
|
|
|
15115
14345
|
try {
|
|
15116
14346
|
state.data = new DataInstance();
|
|
15117
14347
|
if (!riskMetadata) {
|
|
15118
|
-
const { riskMetadata: data } = await
|
|
14348
|
+
const { riskMetadata: data } = await j();
|
|
15119
14349
|
state.data.riskMetadata = data;
|
|
15120
14350
|
} else {
|
|
15121
14351
|
state.data.riskMetadata = riskMetadata;
|
|
@@ -16941,17 +16171,17 @@ var util = {};
|
|
|
16941
16171
|
return hash;
|
|
16942
16172
|
}
|
|
16943
16173
|
exports.toHash = toHash;
|
|
16944
|
-
function alwaysValidSchema(
|
|
16174
|
+
function alwaysValidSchema(it, schema2) {
|
|
16945
16175
|
if (typeof schema2 == "boolean")
|
|
16946
16176
|
return schema2;
|
|
16947
16177
|
if (Object.keys(schema2).length === 0)
|
|
16948
16178
|
return true;
|
|
16949
|
-
checkUnknownRules(
|
|
16950
|
-
return !schemaHasRules(schema2,
|
|
16179
|
+
checkUnknownRules(it, schema2);
|
|
16180
|
+
return !schemaHasRules(schema2, it.self.RULES.all);
|
|
16951
16181
|
}
|
|
16952
16182
|
exports.alwaysValidSchema = alwaysValidSchema;
|
|
16953
|
-
function checkUnknownRules(
|
|
16954
|
-
const { opts, self: self2 } =
|
|
16183
|
+
function checkUnknownRules(it, schema2 = it.schema) {
|
|
16184
|
+
const { opts, self: self2 } = it;
|
|
16955
16185
|
if (!opts.strictSchema)
|
|
16956
16186
|
return;
|
|
16957
16187
|
if (typeof schema2 === "boolean")
|
|
@@ -16959,7 +16189,7 @@ var util = {};
|
|
|
16959
16189
|
const rules2 = self2.RULES.keywords;
|
|
16960
16190
|
for (const key in schema2) {
|
|
16961
16191
|
if (!rules2[key])
|
|
16962
|
-
checkStrictMode(
|
|
16192
|
+
checkStrictMode(it, `unknown keyword: "${key}"`);
|
|
16963
16193
|
}
|
|
16964
16194
|
}
|
|
16965
16195
|
exports.checkUnknownRules = checkUnknownRules;
|
|
@@ -17081,13 +16311,13 @@ var util = {};
|
|
|
17081
16311
|
return jsPropertySyntax ? (0, codegen_12.getProperty)(dataProp).toString() : "/" + escapeJsonPointer(dataProp);
|
|
17082
16312
|
}
|
|
17083
16313
|
exports.getErrorPath = getErrorPath;
|
|
17084
|
-
function checkStrictMode(
|
|
16314
|
+
function checkStrictMode(it, msg, mode = it.opts.strictSchema) {
|
|
17085
16315
|
if (!mode)
|
|
17086
16316
|
return;
|
|
17087
16317
|
msg = `strict mode: ${msg}`;
|
|
17088
16318
|
if (mode === true)
|
|
17089
16319
|
throw new Error(msg);
|
|
17090
|
-
|
|
16320
|
+
it.self.logger.warn(msg);
|
|
17091
16321
|
}
|
|
17092
16322
|
exports.checkStrictMode = checkStrictMode;
|
|
17093
16323
|
})(util);
|
|
@@ -17131,23 +16361,23 @@ names$1.default = names;
|
|
|
17131
16361
|
message: ({ keyword: keyword2, schemaType }) => schemaType ? (0, codegen_12.str)`"${keyword2}" keyword must be ${schemaType} ($data)` : (0, codegen_12.str)`"${keyword2}" keyword is invalid ($data)`
|
|
17132
16362
|
};
|
|
17133
16363
|
function reportError(cxt, error2 = exports.keywordError, errorPaths, overrideAllErrors) {
|
|
17134
|
-
const { it
|
|
17135
|
-
const { gen, compositeRule, allErrors } =
|
|
16364
|
+
const { it } = cxt;
|
|
16365
|
+
const { gen, compositeRule, allErrors } = it;
|
|
17136
16366
|
const errObj = errorObjectCode(cxt, error2, errorPaths);
|
|
17137
16367
|
if (overrideAllErrors !== null && overrideAllErrors !== void 0 ? overrideAllErrors : compositeRule || allErrors) {
|
|
17138
16368
|
addError(gen, errObj);
|
|
17139
16369
|
} else {
|
|
17140
|
-
returnErrors(
|
|
16370
|
+
returnErrors(it, (0, codegen_12._)`[${errObj}]`);
|
|
17141
16371
|
}
|
|
17142
16372
|
}
|
|
17143
16373
|
exports.reportError = reportError;
|
|
17144
16374
|
function reportExtraError(cxt, error2 = exports.keywordError, errorPaths) {
|
|
17145
|
-
const { it
|
|
17146
|
-
const { gen, compositeRule, allErrors } =
|
|
16375
|
+
const { it } = cxt;
|
|
16376
|
+
const { gen, compositeRule, allErrors } = it;
|
|
17147
16377
|
const errObj = errorObjectCode(cxt, error2, errorPaths);
|
|
17148
16378
|
addError(gen, errObj);
|
|
17149
16379
|
if (!(compositeRule || allErrors)) {
|
|
17150
|
-
returnErrors(
|
|
16380
|
+
returnErrors(it, names_12.default.vErrors);
|
|
17151
16381
|
}
|
|
17152
16382
|
}
|
|
17153
16383
|
exports.reportExtraError = reportExtraError;
|
|
@@ -17156,15 +16386,15 @@ names$1.default = names;
|
|
|
17156
16386
|
gen.if((0, codegen_12._)`${names_12.default.vErrors} !== null`, () => gen.if(errsCount, () => gen.assign((0, codegen_12._)`${names_12.default.vErrors}.length`, errsCount), () => gen.assign(names_12.default.vErrors, null)));
|
|
17157
16387
|
}
|
|
17158
16388
|
exports.resetErrorsCount = resetErrorsCount;
|
|
17159
|
-
function extendErrors({ gen, keyword: keyword2, schemaValue, data, errsCount, it
|
|
16389
|
+
function extendErrors({ gen, keyword: keyword2, schemaValue, data, errsCount, it }) {
|
|
17160
16390
|
if (errsCount === void 0)
|
|
17161
16391
|
throw new Error("ajv implementation error");
|
|
17162
16392
|
const err = gen.name("err");
|
|
17163
16393
|
gen.forRange("i", errsCount, names_12.default.errors, (i2) => {
|
|
17164
16394
|
gen.const(err, (0, codegen_12._)`${names_12.default.vErrors}[${i2}]`);
|
|
17165
|
-
gen.if((0, codegen_12._)`${err}.instancePath === undefined`, () => gen.assign((0, codegen_12._)`${err}.instancePath`, (0, codegen_12.strConcat)(names_12.default.instancePath,
|
|
17166
|
-
gen.assign((0, codegen_12._)`${err}.schemaPath`, (0, codegen_12.str)`${
|
|
17167
|
-
if (
|
|
16395
|
+
gen.if((0, codegen_12._)`${err}.instancePath === undefined`, () => gen.assign((0, codegen_12._)`${err}.instancePath`, (0, codegen_12.strConcat)(names_12.default.instancePath, it.errorPath)));
|
|
16396
|
+
gen.assign((0, codegen_12._)`${err}.schemaPath`, (0, codegen_12.str)`${it.errSchemaPath}/${keyword2}`);
|
|
16397
|
+
if (it.opts.verbose) {
|
|
17168
16398
|
gen.assign((0, codegen_12._)`${err}.schema`, schemaValue);
|
|
17169
16399
|
gen.assign((0, codegen_12._)`${err}.data`, data);
|
|
17170
16400
|
}
|
|
@@ -17176,10 +16406,10 @@ names$1.default = names;
|
|
|
17176
16406
|
gen.if((0, codegen_12._)`${names_12.default.vErrors} === null`, () => gen.assign(names_12.default.vErrors, (0, codegen_12._)`[${err}]`), (0, codegen_12._)`${names_12.default.vErrors}.push(${err})`);
|
|
17177
16407
|
gen.code((0, codegen_12._)`${names_12.default.errors}++`);
|
|
17178
16408
|
}
|
|
17179
|
-
function returnErrors(
|
|
17180
|
-
const { gen, validateName, schemaEnv } =
|
|
16409
|
+
function returnErrors(it, errs) {
|
|
16410
|
+
const { gen, validateName, schemaEnv } = it;
|
|
17181
16411
|
if (schemaEnv.$async) {
|
|
17182
|
-
gen.throw((0, codegen_12._)`new ${
|
|
16412
|
+
gen.throw((0, codegen_12._)`new ${it.ValidationError}(${errs})`);
|
|
17183
16413
|
} else {
|
|
17184
16414
|
gen.assign((0, codegen_12._)`${validateName}.errors`, errs);
|
|
17185
16415
|
gen.return(false);
|
|
@@ -17201,9 +16431,9 @@ names$1.default = names;
|
|
|
17201
16431
|
return errorObject(cxt, error2, errorPaths);
|
|
17202
16432
|
}
|
|
17203
16433
|
function errorObject(cxt, error2, errorPaths = {}) {
|
|
17204
|
-
const { gen, it
|
|
16434
|
+
const { gen, it } = cxt;
|
|
17205
16435
|
const keyValues = [
|
|
17206
|
-
errorInstancePath(
|
|
16436
|
+
errorInstancePath(it, errorPaths),
|
|
17207
16437
|
errorSchemaPath(cxt, errorPaths)
|
|
17208
16438
|
];
|
|
17209
16439
|
extraErrorProps(cxt, error2, keyValues);
|
|
@@ -17221,8 +16451,8 @@ names$1.default = names;
|
|
|
17221
16451
|
return [E2.schemaPath, schPath];
|
|
17222
16452
|
}
|
|
17223
16453
|
function extraErrorProps(cxt, { params, message }, keyValues) {
|
|
17224
|
-
const { keyword: keyword2, data, schemaValue, it
|
|
17225
|
-
const { opts, propertyName, topSchemaRef, schemaPath } =
|
|
16454
|
+
const { keyword: keyword2, data, schemaValue, it } = cxt;
|
|
16455
|
+
const { opts, propertyName, topSchemaRef, schemaPath } = it;
|
|
17226
16456
|
keyValues.push([E2.keyword, keyword2], [E2.params, typeof params == "function" ? params(cxt) : params || (0, codegen_12._)`{}`]);
|
|
17227
16457
|
if (opts.messages) {
|
|
17228
16458
|
keyValues.push([E2.message, typeof message == "function" ? message(cxt) : message]);
|
|
@@ -17242,10 +16472,10 @@ const names_1$9 = names$1;
|
|
|
17242
16472
|
const boolError = {
|
|
17243
16473
|
message: "boolean schema is false"
|
|
17244
16474
|
};
|
|
17245
|
-
function topBoolOrEmptySchema(
|
|
17246
|
-
const { gen, schema: schema2, validateName } =
|
|
16475
|
+
function topBoolOrEmptySchema(it) {
|
|
16476
|
+
const { gen, schema: schema2, validateName } = it;
|
|
17247
16477
|
if (schema2 === false) {
|
|
17248
|
-
falseSchemaError(
|
|
16478
|
+
falseSchemaError(it, false);
|
|
17249
16479
|
} else if (typeof schema2 == "object" && schema2.$async === true) {
|
|
17250
16480
|
gen.return(names_1$9.default.data);
|
|
17251
16481
|
} else {
|
|
@@ -17254,18 +16484,18 @@ function topBoolOrEmptySchema(it2) {
|
|
|
17254
16484
|
}
|
|
17255
16485
|
}
|
|
17256
16486
|
boolSchema.topBoolOrEmptySchema = topBoolOrEmptySchema;
|
|
17257
|
-
function boolOrEmptySchema(
|
|
17258
|
-
const { gen, schema: schema2 } =
|
|
16487
|
+
function boolOrEmptySchema(it, valid) {
|
|
16488
|
+
const { gen, schema: schema2 } = it;
|
|
17259
16489
|
if (schema2 === false) {
|
|
17260
16490
|
gen.var(valid, false);
|
|
17261
|
-
falseSchemaError(
|
|
16491
|
+
falseSchemaError(it);
|
|
17262
16492
|
} else {
|
|
17263
16493
|
gen.var(valid, true);
|
|
17264
16494
|
}
|
|
17265
16495
|
}
|
|
17266
16496
|
boolSchema.boolOrEmptySchema = boolOrEmptySchema;
|
|
17267
|
-
function falseSchemaError(
|
|
17268
|
-
const { gen, data } =
|
|
16497
|
+
function falseSchemaError(it, overrideAllErrors) {
|
|
16498
|
+
const { gen, data } = it;
|
|
17269
16499
|
const cxt = {
|
|
17270
16500
|
gen,
|
|
17271
16501
|
keyword: "false schema",
|
|
@@ -17274,7 +16504,7 @@ function falseSchemaError(it2, overrideAllErrors) {
|
|
|
17274
16504
|
schemaCode: false,
|
|
17275
16505
|
schemaValue: false,
|
|
17276
16506
|
params: {},
|
|
17277
|
-
it
|
|
16507
|
+
it
|
|
17278
16508
|
};
|
|
17279
16509
|
(0, errors_1$2.reportError)(cxt, boolError, void 0, overrideAllErrors);
|
|
17280
16510
|
}
|
|
@@ -17357,17 +16587,17 @@ applicability.shouldUseRule = shouldUseRule;
|
|
|
17357
16587
|
throw new Error("type must be JSONType or JSONType[]: " + types2.join(","));
|
|
17358
16588
|
}
|
|
17359
16589
|
exports.getJSONTypes = getJSONTypes;
|
|
17360
|
-
function coerceAndCheckDataType(
|
|
17361
|
-
const { gen, data, opts } =
|
|
16590
|
+
function coerceAndCheckDataType(it, types2) {
|
|
16591
|
+
const { gen, data, opts } = it;
|
|
17362
16592
|
const coerceTo = coerceToTypes(types2, opts.coerceTypes);
|
|
17363
|
-
const checkTypes = types2.length > 0 && !(coerceTo.length === 0 && types2.length === 1 && (0, applicability_12.schemaHasRulesForType)(
|
|
16593
|
+
const checkTypes = types2.length > 0 && !(coerceTo.length === 0 && types2.length === 1 && (0, applicability_12.schemaHasRulesForType)(it, types2[0]));
|
|
17364
16594
|
if (checkTypes) {
|
|
17365
16595
|
const wrongType = checkDataTypes(types2, data, opts.strictNumbers, DataType.Wrong);
|
|
17366
16596
|
gen.if(wrongType, () => {
|
|
17367
16597
|
if (coerceTo.length)
|
|
17368
|
-
coerceData(
|
|
16598
|
+
coerceData(it, types2, coerceTo);
|
|
17369
16599
|
else
|
|
17370
|
-
reportTypeError(
|
|
16600
|
+
reportTypeError(it);
|
|
17371
16601
|
});
|
|
17372
16602
|
}
|
|
17373
16603
|
return checkTypes;
|
|
@@ -17377,8 +16607,8 @@ applicability.shouldUseRule = shouldUseRule;
|
|
|
17377
16607
|
function coerceToTypes(types2, coerceTypes) {
|
|
17378
16608
|
return coerceTypes ? types2.filter((t2) => COERCIBLE.has(t2) || coerceTypes === "array" && t2 === "array") : [];
|
|
17379
16609
|
}
|
|
17380
|
-
function coerceData(
|
|
17381
|
-
const { gen, data, opts } =
|
|
16610
|
+
function coerceData(it, types2, coerceTo) {
|
|
16611
|
+
const { gen, data, opts } = it;
|
|
17382
16612
|
const dataType2 = gen.let("dataType", (0, codegen_12._)`typeof ${data}`);
|
|
17383
16613
|
const coerced = gen.let("coerced", (0, codegen_12._)`undefined`);
|
|
17384
16614
|
if (opts.coerceTypes === "array") {
|
|
@@ -17391,11 +16621,11 @@ applicability.shouldUseRule = shouldUseRule;
|
|
|
17391
16621
|
}
|
|
17392
16622
|
}
|
|
17393
16623
|
gen.else();
|
|
17394
|
-
reportTypeError(
|
|
16624
|
+
reportTypeError(it);
|
|
17395
16625
|
gen.endIf();
|
|
17396
16626
|
gen.if((0, codegen_12._)`${coerced} !== undefined`, () => {
|
|
17397
16627
|
gen.assign(data, coerced);
|
|
17398
|
-
assignParentData(
|
|
16628
|
+
assignParentData(it, coerced);
|
|
17399
16629
|
});
|
|
17400
16630
|
function coerceSpecificType(t2) {
|
|
17401
16631
|
switch (t2) {
|
|
@@ -17479,14 +16709,14 @@ applicability.shouldUseRule = shouldUseRule;
|
|
|
17479
16709
|
message: ({ schema: schema2 }) => `must be ${schema2}`,
|
|
17480
16710
|
params: ({ schema: schema2, schemaValue }) => typeof schema2 == "string" ? (0, codegen_12._)`{type: ${schema2}}` : (0, codegen_12._)`{type: ${schemaValue}}`
|
|
17481
16711
|
};
|
|
17482
|
-
function reportTypeError(
|
|
17483
|
-
const cxt = getTypeErrorContext(
|
|
16712
|
+
function reportTypeError(it) {
|
|
16713
|
+
const cxt = getTypeErrorContext(it);
|
|
17484
16714
|
(0, errors_12.reportError)(cxt, typeError);
|
|
17485
16715
|
}
|
|
17486
16716
|
exports.reportTypeError = reportTypeError;
|
|
17487
|
-
function getTypeErrorContext(
|
|
17488
|
-
const { gen, data, schema: schema2 } =
|
|
17489
|
-
const schemaCode = (0, util_12.schemaRefOrVal)(
|
|
16717
|
+
function getTypeErrorContext(it) {
|
|
16718
|
+
const { gen, data, schema: schema2 } = it;
|
|
16719
|
+
const schemaCode = (0, util_12.schemaRefOrVal)(it, schema2, "type");
|
|
17490
16720
|
return {
|
|
17491
16721
|
gen,
|
|
17492
16722
|
keyword: "type",
|
|
@@ -17496,7 +16726,7 @@ applicability.shouldUseRule = shouldUseRule;
|
|
|
17496
16726
|
schemaValue: schemaCode,
|
|
17497
16727
|
parentSchema: schema2,
|
|
17498
16728
|
params: {},
|
|
17499
|
-
it
|
|
16729
|
+
it
|
|
17500
16730
|
};
|
|
17501
16731
|
}
|
|
17502
16732
|
})(dataType);
|
|
@@ -17505,24 +16735,24 @@ Object.defineProperty(defaults, "__esModule", { value: true });
|
|
|
17505
16735
|
defaults.assignDefaults = void 0;
|
|
17506
16736
|
const codegen_1$v = codegen;
|
|
17507
16737
|
const util_1$t = util;
|
|
17508
|
-
function assignDefaults(
|
|
17509
|
-
const { properties: properties2, items: items2 } =
|
|
16738
|
+
function assignDefaults(it, ty) {
|
|
16739
|
+
const { properties: properties2, items: items2 } = it.schema;
|
|
17510
16740
|
if (ty === "object" && properties2) {
|
|
17511
16741
|
for (const key in properties2) {
|
|
17512
|
-
assignDefault(
|
|
16742
|
+
assignDefault(it, key, properties2[key].default);
|
|
17513
16743
|
}
|
|
17514
16744
|
} else if (ty === "array" && Array.isArray(items2)) {
|
|
17515
|
-
items2.forEach((sch, i2) => assignDefault(
|
|
16745
|
+
items2.forEach((sch, i2) => assignDefault(it, i2, sch.default));
|
|
17516
16746
|
}
|
|
17517
16747
|
}
|
|
17518
16748
|
defaults.assignDefaults = assignDefaults;
|
|
17519
|
-
function assignDefault(
|
|
17520
|
-
const { gen, compositeRule, data, opts } =
|
|
16749
|
+
function assignDefault(it, prop, defaultValue) {
|
|
16750
|
+
const { gen, compositeRule, data, opts } = it;
|
|
17521
16751
|
if (defaultValue === void 0)
|
|
17522
16752
|
return;
|
|
17523
16753
|
const childData = (0, codegen_1$v._)`${data}${(0, codegen_1$v.getProperty)(prop)}`;
|
|
17524
16754
|
if (compositeRule) {
|
|
17525
|
-
(0, util_1$t.checkStrictMode)(
|
|
16755
|
+
(0, util_1$t.checkStrictMode)(it, `default is ignored for: ${childData}`);
|
|
17526
16756
|
return;
|
|
17527
16757
|
}
|
|
17528
16758
|
let condition = (0, codegen_1$v._)`${childData} === undefined`;
|
|
@@ -17540,8 +16770,8 @@ const util_1$s = util;
|
|
|
17540
16770
|
const names_1$8 = names$1;
|
|
17541
16771
|
const util_2$1 = util;
|
|
17542
16772
|
function checkReportMissingProp(cxt, prop) {
|
|
17543
|
-
const { gen, data, it
|
|
17544
|
-
gen.if(noPropertyInData(gen, data, prop,
|
|
16773
|
+
const { gen, data, it } = cxt;
|
|
16774
|
+
gen.if(noPropertyInData(gen, data, prop, it.opts.ownProperties), () => {
|
|
17545
16775
|
cxt.setParams({ missingProperty: (0, codegen_1$u._)`${prop}` }, true);
|
|
17546
16776
|
cxt.error();
|
|
17547
16777
|
});
|
|
@@ -17582,19 +16812,19 @@ function allSchemaProperties(schemaMap) {
|
|
|
17582
16812
|
return schemaMap ? Object.keys(schemaMap).filter((p2) => p2 !== "__proto__") : [];
|
|
17583
16813
|
}
|
|
17584
16814
|
code.allSchemaProperties = allSchemaProperties;
|
|
17585
|
-
function schemaProperties(
|
|
17586
|
-
return allSchemaProperties(schemaMap).filter((p2) => !(0, util_1$s.alwaysValidSchema)(
|
|
16815
|
+
function schemaProperties(it, schemaMap) {
|
|
16816
|
+
return allSchemaProperties(schemaMap).filter((p2) => !(0, util_1$s.alwaysValidSchema)(it, schemaMap[p2]));
|
|
17587
16817
|
}
|
|
17588
16818
|
code.schemaProperties = schemaProperties;
|
|
17589
|
-
function callValidateCode({ schemaCode, data, it: { gen, topSchemaRef, schemaPath, errorPath }, it
|
|
16819
|
+
function callValidateCode({ schemaCode, data, it: { gen, topSchemaRef, schemaPath, errorPath }, it }, func, context, passSchema) {
|
|
17590
16820
|
const dataAndSchema = passSchema ? (0, codegen_1$u._)`${schemaCode}, ${data}, ${topSchemaRef}${schemaPath}` : data;
|
|
17591
16821
|
const valCxt = [
|
|
17592
16822
|
[names_1$8.default.instancePath, (0, codegen_1$u.strConcat)(names_1$8.default.instancePath, errorPath)],
|
|
17593
|
-
[names_1$8.default.parentData,
|
|
17594
|
-
[names_1$8.default.parentDataProperty,
|
|
16823
|
+
[names_1$8.default.parentData, it.parentData],
|
|
16824
|
+
[names_1$8.default.parentDataProperty, it.parentDataProperty],
|
|
17595
16825
|
[names_1$8.default.rootData, names_1$8.default.rootData]
|
|
17596
16826
|
];
|
|
17597
|
-
if (
|
|
16827
|
+
if (it.opts.dynamicRef)
|
|
17598
16828
|
valCxt.push([names_1$8.default.dynamicAnchors, names_1$8.default.dynamicAnchors]);
|
|
17599
16829
|
const args = (0, codegen_1$u._)`${dataAndSchema}, ${gen.object(...valCxt)}`;
|
|
17600
16830
|
return context !== codegen_1$u.nil ? (0, codegen_1$u._)`${func}.call(${context}, ${args})` : (0, codegen_1$u._)`${func}(${args})`;
|
|
@@ -17613,9 +16843,9 @@ function usePattern({ gen, it: { opts } }, pattern2) {
|
|
|
17613
16843
|
}
|
|
17614
16844
|
code.usePattern = usePattern;
|
|
17615
16845
|
function validateArray(cxt) {
|
|
17616
|
-
const { gen, data, keyword: keyword2, it
|
|
16846
|
+
const { gen, data, keyword: keyword2, it } = cxt;
|
|
17617
16847
|
const valid = gen.name("valid");
|
|
17618
|
-
if (
|
|
16848
|
+
if (it.allErrors) {
|
|
17619
16849
|
const validArr = gen.let("valid", true);
|
|
17620
16850
|
validateItems(() => gen.assign(validArr, false));
|
|
17621
16851
|
return validArr;
|
|
@@ -17637,11 +16867,11 @@ function validateArray(cxt) {
|
|
|
17637
16867
|
}
|
|
17638
16868
|
code.validateArray = validateArray;
|
|
17639
16869
|
function validateUnion(cxt) {
|
|
17640
|
-
const { gen, schema: schema2, keyword: keyword2, it
|
|
16870
|
+
const { gen, schema: schema2, keyword: keyword2, it } = cxt;
|
|
17641
16871
|
if (!Array.isArray(schema2))
|
|
17642
16872
|
throw new Error("ajv implementation error");
|
|
17643
|
-
const alwaysValid = schema2.some((sch) => (0, util_1$s.alwaysValidSchema)(
|
|
17644
|
-
if (alwaysValid && !
|
|
16873
|
+
const alwaysValid = schema2.some((sch) => (0, util_1$s.alwaysValidSchema)(it, sch));
|
|
16874
|
+
if (alwaysValid && !it.opts.unevaluated)
|
|
17645
16875
|
return;
|
|
17646
16876
|
const valid = gen.let("valid", false);
|
|
17647
16877
|
const schValid = gen.name("_valid");
|
|
@@ -17666,16 +16896,16 @@ const names_1$7 = names$1;
|
|
|
17666
16896
|
const code_1$9 = code;
|
|
17667
16897
|
const errors_1$1 = errors;
|
|
17668
16898
|
function macroKeywordCode(cxt, def2) {
|
|
17669
|
-
const { gen, keyword: keyword2, schema: schema2, parentSchema, it
|
|
17670
|
-
const macroSchema = def2.macro.call(
|
|
16899
|
+
const { gen, keyword: keyword2, schema: schema2, parentSchema, it } = cxt;
|
|
16900
|
+
const macroSchema = def2.macro.call(it.self, schema2, parentSchema, it);
|
|
17671
16901
|
const schemaRef = useKeyword(gen, keyword2, macroSchema);
|
|
17672
|
-
if (
|
|
17673
|
-
|
|
16902
|
+
if (it.opts.validateSchema !== false)
|
|
16903
|
+
it.self.validateSchema(macroSchema, true);
|
|
17674
16904
|
const valid = gen.name("valid");
|
|
17675
16905
|
cxt.subschema({
|
|
17676
16906
|
schema: macroSchema,
|
|
17677
16907
|
schemaPath: codegen_1$t.nil,
|
|
17678
|
-
errSchemaPath: `${
|
|
16908
|
+
errSchemaPath: `${it.errSchemaPath}/${keyword2}`,
|
|
17679
16909
|
topSchemaRef: schemaRef,
|
|
17680
16910
|
compositeRule: true
|
|
17681
16911
|
}, valid);
|
|
@@ -17684,9 +16914,9 @@ function macroKeywordCode(cxt, def2) {
|
|
|
17684
16914
|
keyword.macroKeywordCode = macroKeywordCode;
|
|
17685
16915
|
function funcKeywordCode(cxt, def2) {
|
|
17686
16916
|
var _a;
|
|
17687
|
-
const { gen, keyword: keyword2, schema: schema2, parentSchema, $data, it
|
|
17688
|
-
checkAsyncKeyword(
|
|
17689
|
-
const validate2 = !$data && def2.compile ? def2.compile.call(
|
|
16917
|
+
const { gen, keyword: keyword2, schema: schema2, parentSchema, $data, it } = cxt;
|
|
16918
|
+
checkAsyncKeyword(it, def2);
|
|
16919
|
+
const validate2 = !$data && def2.compile ? def2.compile.call(it.self, schema2, parentSchema, it) : def2.validate;
|
|
17690
16920
|
const validateRef = useKeyword(gen, keyword2, validate2);
|
|
17691
16921
|
const valid = gen.let("valid");
|
|
17692
16922
|
cxt.block$data(valid, validateKeyword);
|
|
@@ -17706,7 +16936,7 @@ function funcKeywordCode(cxt, def2) {
|
|
|
17706
16936
|
}
|
|
17707
16937
|
function validateAsync() {
|
|
17708
16938
|
const ruleErrs = gen.let("ruleErrs", null);
|
|
17709
|
-
gen.try(() => assignValid((0, codegen_1$t._)`await `), (e2) => gen.assign(valid, false).if((0, codegen_1$t._)`${e2} instanceof ${
|
|
16939
|
+
gen.try(() => assignValid((0, codegen_1$t._)`await `), (e2) => gen.assign(valid, false).if((0, codegen_1$t._)`${e2} instanceof ${it.ValidationError}`, () => gen.assign(ruleErrs, (0, codegen_1$t._)`${e2}.errors`), () => gen.throw(e2)));
|
|
17710
16940
|
return ruleErrs;
|
|
17711
16941
|
}
|
|
17712
16942
|
function validateSync() {
|
|
@@ -17716,7 +16946,7 @@ function funcKeywordCode(cxt, def2) {
|
|
|
17716
16946
|
return validateErrs;
|
|
17717
16947
|
}
|
|
17718
16948
|
function assignValid(_await = def2.async ? (0, codegen_1$t._)`await ` : codegen_1$t.nil) {
|
|
17719
|
-
const passCxt =
|
|
16949
|
+
const passCxt = it.opts.passContext ? names_1$7.default.this : names_1$7.default.self;
|
|
17720
16950
|
const passSchema = !("compile" in def2 && !$data || def2.schema === false);
|
|
17721
16951
|
gen.assign(valid, (0, codegen_1$t._)`${_await}${(0, code_1$9.callValidateCode)(cxt, validateRef, passCxt, passSchema)}`, def2.modifying);
|
|
17722
16952
|
}
|
|
@@ -17727,8 +16957,8 @@ function funcKeywordCode(cxt, def2) {
|
|
|
17727
16957
|
}
|
|
17728
16958
|
keyword.funcKeywordCode = funcKeywordCode;
|
|
17729
16959
|
function modifyData(cxt) {
|
|
17730
|
-
const { gen, data, it
|
|
17731
|
-
gen.if(
|
|
16960
|
+
const { gen, data, it } = cxt;
|
|
16961
|
+
gen.if(it.parentData, () => gen.assign(data, (0, codegen_1$t._)`${it.parentData}[${it.parentDataProperty}]`));
|
|
17732
16962
|
}
|
|
17733
16963
|
function addErrs(cxt, errs) {
|
|
17734
16964
|
const { gen } = cxt;
|
|
@@ -17747,7 +16977,7 @@ function useKeyword(gen, keyword2, result) {
|
|
|
17747
16977
|
return gen.scopeValue("keyword", typeof result == "function" ? { ref: result } : { ref: result, code: (0, codegen_1$t.stringify)(result) });
|
|
17748
16978
|
}
|
|
17749
16979
|
function validSchemaType(schema2, schemaType, allowUndefined = false) {
|
|
17750
|
-
return !schemaType.length || schemaType.some((
|
|
16980
|
+
return !schemaType.length || schemaType.some((st) => st === "array" ? Array.isArray(schema2) : st === "object" ? schema2 && typeof schema2 == "object" && !Array.isArray(schema2) : typeof schema2 == st || allowUndefined && typeof schema2 == "undefined");
|
|
17751
16981
|
}
|
|
17752
16982
|
keyword.validSchemaType = validSchemaType;
|
|
17753
16983
|
function validateKeywordUsage({ schema: schema2, opts, self: self2, errSchemaPath }, def2, keyword2) {
|
|
@@ -17775,20 +17005,20 @@ Object.defineProperty(subschema, "__esModule", { value: true });
|
|
|
17775
17005
|
subschema.extendSubschemaMode = subschema.extendSubschemaData = subschema.getSubschema = void 0;
|
|
17776
17006
|
const codegen_1$s = codegen;
|
|
17777
17007
|
const util_1$r = util;
|
|
17778
|
-
function getSubschema(
|
|
17008
|
+
function getSubschema(it, { keyword: keyword2, schemaProp, schema: schema2, schemaPath, errSchemaPath, topSchemaRef }) {
|
|
17779
17009
|
if (keyword2 !== void 0 && schema2 !== void 0) {
|
|
17780
17010
|
throw new Error('both "keyword" and "schema" passed, only one allowed');
|
|
17781
17011
|
}
|
|
17782
17012
|
if (keyword2 !== void 0) {
|
|
17783
|
-
const sch =
|
|
17013
|
+
const sch = it.schema[keyword2];
|
|
17784
17014
|
return schemaProp === void 0 ? {
|
|
17785
17015
|
schema: sch,
|
|
17786
|
-
schemaPath: (0, codegen_1$s._)`${
|
|
17787
|
-
errSchemaPath: `${
|
|
17016
|
+
schemaPath: (0, codegen_1$s._)`${it.schemaPath}${(0, codegen_1$s.getProperty)(keyword2)}`,
|
|
17017
|
+
errSchemaPath: `${it.errSchemaPath}/${keyword2}`
|
|
17788
17018
|
} : {
|
|
17789
17019
|
schema: sch[schemaProp],
|
|
17790
|
-
schemaPath: (0, codegen_1$s._)`${
|
|
17791
|
-
errSchemaPath: `${
|
|
17020
|
+
schemaPath: (0, codegen_1$s._)`${it.schemaPath}${(0, codegen_1$s.getProperty)(keyword2)}${(0, codegen_1$s.getProperty)(schemaProp)}`,
|
|
17021
|
+
errSchemaPath: `${it.errSchemaPath}/${keyword2}/${(0, util_1$r.escapeFragment)(schemaProp)}`
|
|
17792
17022
|
};
|
|
17793
17023
|
}
|
|
17794
17024
|
if (schema2 !== void 0) {
|
|
@@ -17805,14 +17035,14 @@ function getSubschema(it2, { keyword: keyword2, schemaProp, schema: schema2, sch
|
|
|
17805
17035
|
throw new Error('either "keyword" or "schema" must be passed');
|
|
17806
17036
|
}
|
|
17807
17037
|
subschema.getSubschema = getSubschema;
|
|
17808
|
-
function extendSubschemaData(subschema2,
|
|
17038
|
+
function extendSubschemaData(subschema2, it, { dataProp, dataPropType: dpType, data, dataTypes, propertyName }) {
|
|
17809
17039
|
if (data !== void 0 && dataProp !== void 0) {
|
|
17810
17040
|
throw new Error('both "data" and "dataProp" passed, only one allowed');
|
|
17811
17041
|
}
|
|
17812
|
-
const { gen } =
|
|
17042
|
+
const { gen } = it;
|
|
17813
17043
|
if (dataProp !== void 0) {
|
|
17814
|
-
const { errorPath, dataPathArr, opts } =
|
|
17815
|
-
const nextData = gen.let("data", (0, codegen_1$s._)`${
|
|
17044
|
+
const { errorPath, dataPathArr, opts } = it;
|
|
17045
|
+
const nextData = gen.let("data", (0, codegen_1$s._)`${it.data}${(0, codegen_1$s.getProperty)(dataProp)}`, true);
|
|
17816
17046
|
dataContextProps(nextData);
|
|
17817
17047
|
subschema2.errorPath = (0, codegen_1$s.str)`${errorPath}${(0, util_1$r.getErrorPath)(dataProp, dpType, opts.jsPropertySyntax)}`;
|
|
17818
17048
|
subschema2.parentDataProperty = (0, codegen_1$s._)`${dataProp}`;
|
|
@@ -17828,11 +17058,11 @@ function extendSubschemaData(subschema2, it2, { dataProp, dataPropType: dpType,
|
|
|
17828
17058
|
subschema2.dataTypes = dataTypes;
|
|
17829
17059
|
function dataContextProps(_nextData) {
|
|
17830
17060
|
subschema2.data = _nextData;
|
|
17831
|
-
subschema2.dataLevel =
|
|
17061
|
+
subschema2.dataLevel = it.dataLevel + 1;
|
|
17832
17062
|
subschema2.dataTypes = [];
|
|
17833
|
-
|
|
17834
|
-
subschema2.parentData =
|
|
17835
|
-
subschema2.dataNames = [...
|
|
17063
|
+
it.definedProperties = /* @__PURE__ */ new Set();
|
|
17064
|
+
subschema2.parentData = it.data;
|
|
17065
|
+
subschema2.dataNames = [...it.dataNames, _nextData];
|
|
17836
17066
|
}
|
|
17837
17067
|
}
|
|
17838
17068
|
subschema.extendSubschemaData = extendSubschemaData;
|
|
@@ -18132,15 +17362,15 @@ const names_1$6 = names$1;
|
|
|
18132
17362
|
const resolve_1$2 = resolve$1;
|
|
18133
17363
|
const util_1$p = util;
|
|
18134
17364
|
const errors_1 = errors;
|
|
18135
|
-
function validateFunctionCode(
|
|
18136
|
-
if (isSchemaObj(
|
|
18137
|
-
checkKeywords(
|
|
18138
|
-
if (schemaCxtHasRules(
|
|
18139
|
-
topSchemaObjCode(
|
|
17365
|
+
function validateFunctionCode(it) {
|
|
17366
|
+
if (isSchemaObj(it)) {
|
|
17367
|
+
checkKeywords(it);
|
|
17368
|
+
if (schemaCxtHasRules(it)) {
|
|
17369
|
+
topSchemaObjCode(it);
|
|
18140
17370
|
return;
|
|
18141
17371
|
}
|
|
18142
17372
|
}
|
|
18143
|
-
validateFunction(
|
|
17373
|
+
validateFunction(it, () => (0, boolSchema_1.topBoolOrEmptySchema)(it));
|
|
18144
17374
|
}
|
|
18145
17375
|
validate$1.validateFunctionCode = validateFunctionCode;
|
|
18146
17376
|
function validateFunction({ gen, validateName, schema: schema2, schemaEnv, opts }, body) {
|
|
@@ -18174,40 +17404,40 @@ function destructureValCxtES5(gen, opts) {
|
|
|
18174
17404
|
gen.var(names_1$6.default.dynamicAnchors, (0, codegen_1$r._)`{}`);
|
|
18175
17405
|
});
|
|
18176
17406
|
}
|
|
18177
|
-
function topSchemaObjCode(
|
|
18178
|
-
const { schema: schema2, opts, gen } =
|
|
18179
|
-
validateFunction(
|
|
17407
|
+
function topSchemaObjCode(it) {
|
|
17408
|
+
const { schema: schema2, opts, gen } = it;
|
|
17409
|
+
validateFunction(it, () => {
|
|
18180
17410
|
if (opts.$comment && schema2.$comment)
|
|
18181
|
-
commentKeyword(
|
|
18182
|
-
checkNoDefault(
|
|
17411
|
+
commentKeyword(it);
|
|
17412
|
+
checkNoDefault(it);
|
|
18183
17413
|
gen.let(names_1$6.default.vErrors, null);
|
|
18184
17414
|
gen.let(names_1$6.default.errors, 0);
|
|
18185
17415
|
if (opts.unevaluated)
|
|
18186
|
-
resetEvaluated(
|
|
18187
|
-
typeAndKeywords(
|
|
18188
|
-
returnResults(
|
|
17416
|
+
resetEvaluated(it);
|
|
17417
|
+
typeAndKeywords(it);
|
|
17418
|
+
returnResults(it);
|
|
18189
17419
|
});
|
|
18190
17420
|
return;
|
|
18191
17421
|
}
|
|
18192
|
-
function resetEvaluated(
|
|
18193
|
-
const { gen, validateName } =
|
|
18194
|
-
|
|
18195
|
-
gen.if((0, codegen_1$r._)`${
|
|
18196
|
-
gen.if((0, codegen_1$r._)`${
|
|
17422
|
+
function resetEvaluated(it) {
|
|
17423
|
+
const { gen, validateName } = it;
|
|
17424
|
+
it.evaluated = gen.const("evaluated", (0, codegen_1$r._)`${validateName}.evaluated`);
|
|
17425
|
+
gen.if((0, codegen_1$r._)`${it.evaluated}.dynamicProps`, () => gen.assign((0, codegen_1$r._)`${it.evaluated}.props`, (0, codegen_1$r._)`undefined`));
|
|
17426
|
+
gen.if((0, codegen_1$r._)`${it.evaluated}.dynamicItems`, () => gen.assign((0, codegen_1$r._)`${it.evaluated}.items`, (0, codegen_1$r._)`undefined`));
|
|
18197
17427
|
}
|
|
18198
17428
|
function funcSourceUrl(schema2, opts) {
|
|
18199
17429
|
const schId = typeof schema2 == "object" && schema2[opts.schemaId];
|
|
18200
17430
|
return schId && (opts.code.source || opts.code.process) ? (0, codegen_1$r._)`/*# sourceURL=${schId} */` : codegen_1$r.nil;
|
|
18201
17431
|
}
|
|
18202
|
-
function subschemaCode(
|
|
18203
|
-
if (isSchemaObj(
|
|
18204
|
-
checkKeywords(
|
|
18205
|
-
if (schemaCxtHasRules(
|
|
18206
|
-
subSchemaObjCode(
|
|
17432
|
+
function subschemaCode(it, valid) {
|
|
17433
|
+
if (isSchemaObj(it)) {
|
|
17434
|
+
checkKeywords(it);
|
|
17435
|
+
if (schemaCxtHasRules(it)) {
|
|
17436
|
+
subSchemaObjCode(it, valid);
|
|
18207
17437
|
return;
|
|
18208
17438
|
}
|
|
18209
17439
|
}
|
|
18210
|
-
(0, boolSchema_1.boolOrEmptySchema)(
|
|
17440
|
+
(0, boolSchema_1.boolOrEmptySchema)(it, valid);
|
|
18211
17441
|
}
|
|
18212
17442
|
function schemaCxtHasRules({ schema: schema2, self: self2 }) {
|
|
18213
17443
|
if (typeof schema2 == "boolean")
|
|
@@ -18217,49 +17447,49 @@ function schemaCxtHasRules({ schema: schema2, self: self2 }) {
|
|
|
18217
17447
|
return true;
|
|
18218
17448
|
return false;
|
|
18219
17449
|
}
|
|
18220
|
-
function isSchemaObj(
|
|
18221
|
-
return typeof
|
|
17450
|
+
function isSchemaObj(it) {
|
|
17451
|
+
return typeof it.schema != "boolean";
|
|
18222
17452
|
}
|
|
18223
|
-
function subSchemaObjCode(
|
|
18224
|
-
const { schema: schema2, gen, opts } =
|
|
17453
|
+
function subSchemaObjCode(it, valid) {
|
|
17454
|
+
const { schema: schema2, gen, opts } = it;
|
|
18225
17455
|
if (opts.$comment && schema2.$comment)
|
|
18226
|
-
commentKeyword(
|
|
18227
|
-
updateContext(
|
|
18228
|
-
checkAsyncSchema(
|
|
17456
|
+
commentKeyword(it);
|
|
17457
|
+
updateContext(it);
|
|
17458
|
+
checkAsyncSchema(it);
|
|
18229
17459
|
const errsCount = gen.const("_errs", names_1$6.default.errors);
|
|
18230
|
-
typeAndKeywords(
|
|
17460
|
+
typeAndKeywords(it, errsCount);
|
|
18231
17461
|
gen.var(valid, (0, codegen_1$r._)`${errsCount} === ${names_1$6.default.errors}`);
|
|
18232
17462
|
}
|
|
18233
|
-
function checkKeywords(
|
|
18234
|
-
(0, util_1$p.checkUnknownRules)(
|
|
18235
|
-
checkRefsAndKeywords(
|
|
17463
|
+
function checkKeywords(it) {
|
|
17464
|
+
(0, util_1$p.checkUnknownRules)(it);
|
|
17465
|
+
checkRefsAndKeywords(it);
|
|
18236
17466
|
}
|
|
18237
|
-
function typeAndKeywords(
|
|
18238
|
-
if (
|
|
18239
|
-
return schemaKeywords(
|
|
18240
|
-
const types2 = (0, dataType_1$1.getSchemaTypes)(
|
|
18241
|
-
const checkedTypes = (0, dataType_1$1.coerceAndCheckDataType)(
|
|
18242
|
-
schemaKeywords(
|
|
17467
|
+
function typeAndKeywords(it, errsCount) {
|
|
17468
|
+
if (it.opts.jtd)
|
|
17469
|
+
return schemaKeywords(it, [], false, errsCount);
|
|
17470
|
+
const types2 = (0, dataType_1$1.getSchemaTypes)(it.schema);
|
|
17471
|
+
const checkedTypes = (0, dataType_1$1.coerceAndCheckDataType)(it, types2);
|
|
17472
|
+
schemaKeywords(it, types2, !checkedTypes, errsCount);
|
|
18243
17473
|
}
|
|
18244
|
-
function checkRefsAndKeywords(
|
|
18245
|
-
const { schema: schema2, errSchemaPath, opts, self: self2 } =
|
|
17474
|
+
function checkRefsAndKeywords(it) {
|
|
17475
|
+
const { schema: schema2, errSchemaPath, opts, self: self2 } = it;
|
|
18246
17476
|
if (schema2.$ref && opts.ignoreKeywordsWithRef && (0, util_1$p.schemaHasRulesButRef)(schema2, self2.RULES)) {
|
|
18247
17477
|
self2.logger.warn(`$ref: keywords ignored in schema at path "${errSchemaPath}"`);
|
|
18248
17478
|
}
|
|
18249
17479
|
}
|
|
18250
|
-
function checkNoDefault(
|
|
18251
|
-
const { schema: schema2, opts } =
|
|
17480
|
+
function checkNoDefault(it) {
|
|
17481
|
+
const { schema: schema2, opts } = it;
|
|
18252
17482
|
if (schema2.default !== void 0 && opts.useDefaults && opts.strictSchema) {
|
|
18253
|
-
(0, util_1$p.checkStrictMode)(
|
|
17483
|
+
(0, util_1$p.checkStrictMode)(it, "default is ignored in the schema root");
|
|
18254
17484
|
}
|
|
18255
17485
|
}
|
|
18256
|
-
function updateContext(
|
|
18257
|
-
const schId =
|
|
17486
|
+
function updateContext(it) {
|
|
17487
|
+
const schId = it.schema[it.opts.schemaId];
|
|
18258
17488
|
if (schId)
|
|
18259
|
-
|
|
17489
|
+
it.baseId = (0, resolve_1$2.resolveUrl)(it.opts.uriResolver, it.baseId, schId);
|
|
18260
17490
|
}
|
|
18261
|
-
function checkAsyncSchema(
|
|
18262
|
-
if (
|
|
17491
|
+
function checkAsyncSchema(it) {
|
|
17492
|
+
if (it.schema.$async && !it.schemaEnv.$async)
|
|
18263
17493
|
throw new Error("async schema in sync schema");
|
|
18264
17494
|
}
|
|
18265
17495
|
function commentKeyword({ gen, schemaEnv, schema: schema2, errSchemaPath, opts }) {
|
|
@@ -18272,14 +17502,14 @@ function commentKeyword({ gen, schemaEnv, schema: schema2, errSchemaPath, opts }
|
|
|
18272
17502
|
gen.code((0, codegen_1$r._)`${names_1$6.default.self}.opts.$comment(${msg}, ${schemaPath}, ${rootName}.schema)`);
|
|
18273
17503
|
}
|
|
18274
17504
|
}
|
|
18275
|
-
function returnResults(
|
|
18276
|
-
const { gen, schemaEnv, validateName, ValidationError: ValidationError2, opts } =
|
|
17505
|
+
function returnResults(it) {
|
|
17506
|
+
const { gen, schemaEnv, validateName, ValidationError: ValidationError2, opts } = it;
|
|
18277
17507
|
if (schemaEnv.$async) {
|
|
18278
17508
|
gen.if((0, codegen_1$r._)`${names_1$6.default.errors} === 0`, () => gen.return(names_1$6.default.data), () => gen.throw((0, codegen_1$r._)`new ${ValidationError2}(${names_1$6.default.vErrors})`));
|
|
18279
17509
|
} else {
|
|
18280
17510
|
gen.assign((0, codegen_1$r._)`${validateName}.errors`, names_1$6.default.vErrors);
|
|
18281
17511
|
if (opts.unevaluated)
|
|
18282
|
-
assignEvaluated(
|
|
17512
|
+
assignEvaluated(it);
|
|
18283
17513
|
gen.return((0, codegen_1$r._)`${names_1$6.default.errors} === 0`);
|
|
18284
17514
|
}
|
|
18285
17515
|
}
|
|
@@ -18289,15 +17519,15 @@ function assignEvaluated({ gen, evaluated, props, items: items2 }) {
|
|
|
18289
17519
|
if (items2 instanceof codegen_1$r.Name)
|
|
18290
17520
|
gen.assign((0, codegen_1$r._)`${evaluated}.items`, items2);
|
|
18291
17521
|
}
|
|
18292
|
-
function schemaKeywords(
|
|
18293
|
-
const { gen, schema: schema2, data, allErrors, opts, self: self2 } =
|
|
17522
|
+
function schemaKeywords(it, types2, typeErrors, errsCount) {
|
|
17523
|
+
const { gen, schema: schema2, data, allErrors, opts, self: self2 } = it;
|
|
18294
17524
|
const { RULES } = self2;
|
|
18295
17525
|
if (schema2.$ref && (opts.ignoreKeywordsWithRef || !(0, util_1$p.schemaHasRulesButRef)(schema2, RULES))) {
|
|
18296
|
-
gen.block(() => keywordCode(
|
|
17526
|
+
gen.block(() => keywordCode(it, "$ref", RULES.all.$ref.definition));
|
|
18297
17527
|
return;
|
|
18298
17528
|
}
|
|
18299
17529
|
if (!opts.jtd)
|
|
18300
|
-
checkStrictTypes(
|
|
17530
|
+
checkStrictTypes(it, types2);
|
|
18301
17531
|
gen.block(() => {
|
|
18302
17532
|
for (const group of RULES.rules)
|
|
18303
17533
|
groupKeywords(group);
|
|
@@ -18308,66 +17538,66 @@ function schemaKeywords(it2, types2, typeErrors, errsCount) {
|
|
|
18308
17538
|
return;
|
|
18309
17539
|
if (group.type) {
|
|
18310
17540
|
gen.if((0, dataType_2.checkDataType)(group.type, data, opts.strictNumbers));
|
|
18311
|
-
iterateKeywords(
|
|
17541
|
+
iterateKeywords(it, group);
|
|
18312
17542
|
if (types2.length === 1 && types2[0] === group.type && typeErrors) {
|
|
18313
17543
|
gen.else();
|
|
18314
|
-
(0, dataType_2.reportTypeError)(
|
|
17544
|
+
(0, dataType_2.reportTypeError)(it);
|
|
18315
17545
|
}
|
|
18316
17546
|
gen.endIf();
|
|
18317
17547
|
} else {
|
|
18318
|
-
iterateKeywords(
|
|
17548
|
+
iterateKeywords(it, group);
|
|
18319
17549
|
}
|
|
18320
17550
|
if (!allErrors)
|
|
18321
17551
|
gen.if((0, codegen_1$r._)`${names_1$6.default.errors} === ${errsCount || 0}`);
|
|
18322
17552
|
}
|
|
18323
17553
|
}
|
|
18324
|
-
function iterateKeywords(
|
|
18325
|
-
const { gen, schema: schema2, opts: { useDefaults } } =
|
|
17554
|
+
function iterateKeywords(it, group) {
|
|
17555
|
+
const { gen, schema: schema2, opts: { useDefaults } } = it;
|
|
18326
17556
|
if (useDefaults)
|
|
18327
|
-
(0, defaults_1.assignDefaults)(
|
|
17557
|
+
(0, defaults_1.assignDefaults)(it, group.type);
|
|
18328
17558
|
gen.block(() => {
|
|
18329
17559
|
for (const rule of group.rules) {
|
|
18330
17560
|
if ((0, applicability_1.shouldUseRule)(schema2, rule)) {
|
|
18331
|
-
keywordCode(
|
|
17561
|
+
keywordCode(it, rule.keyword, rule.definition, group.type);
|
|
18332
17562
|
}
|
|
18333
17563
|
}
|
|
18334
17564
|
});
|
|
18335
17565
|
}
|
|
18336
|
-
function checkStrictTypes(
|
|
18337
|
-
if (
|
|
17566
|
+
function checkStrictTypes(it, types2) {
|
|
17567
|
+
if (it.schemaEnv.meta || !it.opts.strictTypes)
|
|
18338
17568
|
return;
|
|
18339
|
-
checkContextTypes(
|
|
18340
|
-
if (!
|
|
18341
|
-
checkMultipleTypes(
|
|
18342
|
-
checkKeywordTypes(
|
|
17569
|
+
checkContextTypes(it, types2);
|
|
17570
|
+
if (!it.opts.allowUnionTypes)
|
|
17571
|
+
checkMultipleTypes(it, types2);
|
|
17572
|
+
checkKeywordTypes(it, it.dataTypes);
|
|
18343
17573
|
}
|
|
18344
|
-
function checkContextTypes(
|
|
17574
|
+
function checkContextTypes(it, types2) {
|
|
18345
17575
|
if (!types2.length)
|
|
18346
17576
|
return;
|
|
18347
|
-
if (!
|
|
18348
|
-
|
|
17577
|
+
if (!it.dataTypes.length) {
|
|
17578
|
+
it.dataTypes = types2;
|
|
18349
17579
|
return;
|
|
18350
17580
|
}
|
|
18351
17581
|
types2.forEach((t2) => {
|
|
18352
|
-
if (!includesType(
|
|
18353
|
-
strictTypesError(
|
|
17582
|
+
if (!includesType(it.dataTypes, t2)) {
|
|
17583
|
+
strictTypesError(it, `type "${t2}" not allowed by context "${it.dataTypes.join(",")}"`);
|
|
18354
17584
|
}
|
|
18355
17585
|
});
|
|
18356
|
-
narrowSchemaTypes(
|
|
17586
|
+
narrowSchemaTypes(it, types2);
|
|
18357
17587
|
}
|
|
18358
|
-
function checkMultipleTypes(
|
|
17588
|
+
function checkMultipleTypes(it, ts) {
|
|
18359
17589
|
if (ts.length > 1 && !(ts.length === 2 && ts.includes("null"))) {
|
|
18360
|
-
strictTypesError(
|
|
17590
|
+
strictTypesError(it, "use allowUnionTypes to allow union type keyword");
|
|
18361
17591
|
}
|
|
18362
17592
|
}
|
|
18363
|
-
function checkKeywordTypes(
|
|
18364
|
-
const rules2 =
|
|
17593
|
+
function checkKeywordTypes(it, ts) {
|
|
17594
|
+
const rules2 = it.self.RULES.all;
|
|
18365
17595
|
for (const keyword2 in rules2) {
|
|
18366
17596
|
const rule = rules2[keyword2];
|
|
18367
|
-
if (typeof rule == "object" && (0, applicability_1.shouldUseRule)(
|
|
17597
|
+
if (typeof rule == "object" && (0, applicability_1.shouldUseRule)(it.schema, rule)) {
|
|
18368
17598
|
const { type: type2 } = rule.definition;
|
|
18369
17599
|
if (type2.length && !type2.some((t2) => hasApplicableType(ts, t2))) {
|
|
18370
|
-
strictTypesError(
|
|
17600
|
+
strictTypesError(it, `missing type "${type2.join(",")}" for keyword "${keyword2}"`);
|
|
18371
17601
|
}
|
|
18372
17602
|
}
|
|
18373
17603
|
}
|
|
@@ -18378,38 +17608,38 @@ function hasApplicableType(schTs, kwdT) {
|
|
|
18378
17608
|
function includesType(ts, t2) {
|
|
18379
17609
|
return ts.includes(t2) || t2 === "integer" && ts.includes("number");
|
|
18380
17610
|
}
|
|
18381
|
-
function narrowSchemaTypes(
|
|
17611
|
+
function narrowSchemaTypes(it, withTypes) {
|
|
18382
17612
|
const ts = [];
|
|
18383
|
-
for (const t2 of
|
|
17613
|
+
for (const t2 of it.dataTypes) {
|
|
18384
17614
|
if (includesType(withTypes, t2))
|
|
18385
17615
|
ts.push(t2);
|
|
18386
17616
|
else if (withTypes.includes("integer") && t2 === "number")
|
|
18387
17617
|
ts.push("integer");
|
|
18388
17618
|
}
|
|
18389
|
-
|
|
17619
|
+
it.dataTypes = ts;
|
|
18390
17620
|
}
|
|
18391
|
-
function strictTypesError(
|
|
18392
|
-
const schemaPath =
|
|
17621
|
+
function strictTypesError(it, msg) {
|
|
17622
|
+
const schemaPath = it.schemaEnv.baseId + it.errSchemaPath;
|
|
18393
17623
|
msg += ` at "${schemaPath}" (strictTypes)`;
|
|
18394
|
-
(0, util_1$p.checkStrictMode)(
|
|
17624
|
+
(0, util_1$p.checkStrictMode)(it, msg, it.opts.strictTypes);
|
|
18395
17625
|
}
|
|
18396
17626
|
class KeywordCxt {
|
|
18397
|
-
constructor(
|
|
18398
|
-
(0, keyword_1.validateKeywordUsage)(
|
|
18399
|
-
this.gen =
|
|
18400
|
-
this.allErrors =
|
|
17627
|
+
constructor(it, def2, keyword2) {
|
|
17628
|
+
(0, keyword_1.validateKeywordUsage)(it, def2, keyword2);
|
|
17629
|
+
this.gen = it.gen;
|
|
17630
|
+
this.allErrors = it.allErrors;
|
|
18401
17631
|
this.keyword = keyword2;
|
|
18402
|
-
this.data =
|
|
18403
|
-
this.schema =
|
|
18404
|
-
this.$data = def2.$data &&
|
|
18405
|
-
this.schemaValue = (0, util_1$p.schemaRefOrVal)(
|
|
17632
|
+
this.data = it.data;
|
|
17633
|
+
this.schema = it.schema[keyword2];
|
|
17634
|
+
this.$data = def2.$data && it.opts.$data && this.schema && this.schema.$data;
|
|
17635
|
+
this.schemaValue = (0, util_1$p.schemaRefOrVal)(it, this.schema, keyword2, this.$data);
|
|
18406
17636
|
this.schemaType = def2.schemaType;
|
|
18407
|
-
this.parentSchema =
|
|
17637
|
+
this.parentSchema = it.schema;
|
|
18408
17638
|
this.params = {};
|
|
18409
|
-
this.it =
|
|
17639
|
+
this.it = it;
|
|
18410
17640
|
this.def = def2;
|
|
18411
17641
|
if (this.$data) {
|
|
18412
|
-
this.schemaCode =
|
|
17642
|
+
this.schemaCode = it.gen.const("vSchema", getData(this.$data, it));
|
|
18413
17643
|
} else {
|
|
18414
17644
|
this.schemaCode = this.schemaValue;
|
|
18415
17645
|
if (!(0, keyword_1.validSchemaType)(this.schema, def2.schemaType, def2.allowUndefined)) {
|
|
@@ -18417,7 +17647,7 @@ class KeywordCxt {
|
|
|
18417
17647
|
}
|
|
18418
17648
|
}
|
|
18419
17649
|
if ("code" in def2 ? def2.trackErrors : def2.errors !== false) {
|
|
18420
|
-
this.errsCount =
|
|
17650
|
+
this.errsCount = it.gen.const("_errs", names_1$6.default.errors);
|
|
18421
17651
|
}
|
|
18422
17652
|
}
|
|
18423
17653
|
result(condition, successAction, failAction) {
|
|
@@ -18516,14 +17746,14 @@ class KeywordCxt {
|
|
|
18516
17746
|
gen.else();
|
|
18517
17747
|
}
|
|
18518
17748
|
invalid$data() {
|
|
18519
|
-
const { gen, schemaCode, schemaType, def: def2, it
|
|
17749
|
+
const { gen, schemaCode, schemaType, def: def2, it } = this;
|
|
18520
17750
|
return (0, codegen_1$r.or)(wrong$DataType(), invalid$DataSchema());
|
|
18521
17751
|
function wrong$DataType() {
|
|
18522
17752
|
if (schemaType.length) {
|
|
18523
17753
|
if (!(schemaCode instanceof codegen_1$r.Name))
|
|
18524
17754
|
throw new Error("ajv implementation error");
|
|
18525
|
-
const
|
|
18526
|
-
return (0, codegen_1$r._)`${(0, dataType_2.checkDataTypes)(
|
|
17755
|
+
const st = Array.isArray(schemaType) ? schemaType : [schemaType];
|
|
17756
|
+
return (0, codegen_1$r._)`${(0, dataType_2.checkDataTypes)(st, schemaCode, it.opts.strictNumbers, dataType_2.DataType.Wrong)}`;
|
|
18527
17757
|
}
|
|
18528
17758
|
return codegen_1$r.nil;
|
|
18529
17759
|
}
|
|
@@ -18544,27 +17774,27 @@ class KeywordCxt {
|
|
|
18544
17774
|
return nextContext;
|
|
18545
17775
|
}
|
|
18546
17776
|
mergeEvaluated(schemaCxt, toName) {
|
|
18547
|
-
const { it
|
|
18548
|
-
if (!
|
|
17777
|
+
const { it, gen } = this;
|
|
17778
|
+
if (!it.opts.unevaluated)
|
|
18549
17779
|
return;
|
|
18550
|
-
if (
|
|
18551
|
-
|
|
17780
|
+
if (it.props !== true && schemaCxt.props !== void 0) {
|
|
17781
|
+
it.props = util_1$p.mergeEvaluated.props(gen, schemaCxt.props, it.props, toName);
|
|
18552
17782
|
}
|
|
18553
|
-
if (
|
|
18554
|
-
|
|
17783
|
+
if (it.items !== true && schemaCxt.items !== void 0) {
|
|
17784
|
+
it.items = util_1$p.mergeEvaluated.items(gen, schemaCxt.items, it.items, toName);
|
|
18555
17785
|
}
|
|
18556
17786
|
}
|
|
18557
17787
|
mergeValidEvaluated(schemaCxt, valid) {
|
|
18558
|
-
const { it
|
|
18559
|
-
if (
|
|
17788
|
+
const { it, gen } = this;
|
|
17789
|
+
if (it.opts.unevaluated && (it.props !== true || it.items !== true)) {
|
|
18560
17790
|
gen.if(valid, () => this.mergeEvaluated(schemaCxt, codegen_1$r.Name));
|
|
18561
17791
|
return true;
|
|
18562
17792
|
}
|
|
18563
17793
|
}
|
|
18564
17794
|
}
|
|
18565
17795
|
validate$1.KeywordCxt = KeywordCxt;
|
|
18566
|
-
function keywordCode(
|
|
18567
|
-
const cxt = new KeywordCxt(
|
|
17796
|
+
function keywordCode(it, keyword2, def2, ruleType) {
|
|
17797
|
+
const cxt = new KeywordCxt(it, def2, keyword2);
|
|
18568
17798
|
if ("code" in def2) {
|
|
18569
17799
|
def2.code(cxt, ruleType);
|
|
18570
17800
|
} else if (cxt.$data && def2.validate) {
|
|
@@ -19228,7 +18458,7 @@ var uri_all = { exports: {} };
|
|
|
19228
18458
|
error$12("overflow");
|
|
19229
18459
|
}
|
|
19230
18460
|
if (_currentValue == n2) {
|
|
19231
|
-
var
|
|
18461
|
+
var q = delta;
|
|
19232
18462
|
for (
|
|
19233
18463
|
var k2 = base;
|
|
19234
18464
|
;
|
|
@@ -19236,15 +18466,15 @@ var uri_all = { exports: {} };
|
|
|
19236
18466
|
k2 += base
|
|
19237
18467
|
) {
|
|
19238
18468
|
var t2 = k2 <= bias ? tMin : k2 >= bias + tMax ? tMax : k2 - bias;
|
|
19239
|
-
if (
|
|
18469
|
+
if (q < t2) {
|
|
19240
18470
|
break;
|
|
19241
18471
|
}
|
|
19242
|
-
var qMinusT =
|
|
18472
|
+
var qMinusT = q - t2;
|
|
19243
18473
|
var baseMinusT = base - t2;
|
|
19244
18474
|
output.push(stringFromCharCode(digitToBasic(t2 + qMinusT % baseMinusT, 0)));
|
|
19245
|
-
|
|
18475
|
+
q = floor(qMinusT / baseMinusT);
|
|
19246
18476
|
}
|
|
19247
|
-
output.push(stringFromCharCode(digitToBasic(
|
|
18477
|
+
output.push(stringFromCharCode(digitToBasic(q, 0)));
|
|
19248
18478
|
bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
|
|
19249
18479
|
delta = 0;
|
|
19250
18480
|
++handledCPCount;
|
|
@@ -20561,14 +19791,14 @@ const def$A = {
|
|
|
20561
19791
|
keyword: "$ref",
|
|
20562
19792
|
schemaType: "string",
|
|
20563
19793
|
code(cxt) {
|
|
20564
|
-
const { gen, schema: $ref, it
|
|
20565
|
-
const { baseId, schemaEnv: env, validateName, opts, self: self2 } =
|
|
19794
|
+
const { gen, schema: $ref, it } = cxt;
|
|
19795
|
+
const { baseId, schemaEnv: env, validateName, opts, self: self2 } = it;
|
|
20566
19796
|
const { root: root2 } = env;
|
|
20567
19797
|
if (($ref === "#" || $ref === "#/") && baseId === root2.baseId)
|
|
20568
19798
|
return callRootRef();
|
|
20569
19799
|
const schOrEnv = compile_1$2.resolveRef.call(self2, root2, baseId, $ref);
|
|
20570
19800
|
if (schOrEnv === void 0)
|
|
20571
|
-
throw new ref_error_1.default(
|
|
19801
|
+
throw new ref_error_1.default(it.opts.uriResolver, baseId, $ref);
|
|
20572
19802
|
if (schOrEnv instanceof compile_1$2.SchemaEnv)
|
|
20573
19803
|
return callValidate(schOrEnv);
|
|
20574
19804
|
return inlineRefSchema(schOrEnv);
|
|
@@ -20603,8 +19833,8 @@ function getValidate(cxt, sch) {
|
|
|
20603
19833
|
}
|
|
20604
19834
|
ref.getValidate = getValidate;
|
|
20605
19835
|
function callRef(cxt, v2, sch, $async) {
|
|
20606
|
-
const { gen, it
|
|
20607
|
-
const { allErrors, schemaEnv: env, opts } =
|
|
19836
|
+
const { gen, it } = cxt;
|
|
19837
|
+
const { allErrors, schemaEnv: env, opts } = it;
|
|
20608
19838
|
const passCxt = opts.passContext ? names_1$4.default.this : codegen_1$p.nil;
|
|
20609
19839
|
if ($async)
|
|
20610
19840
|
callAsyncRef();
|
|
@@ -20620,7 +19850,7 @@ function callRef(cxt, v2, sch, $async) {
|
|
|
20620
19850
|
if (!allErrors)
|
|
20621
19851
|
gen.assign(valid, true);
|
|
20622
19852
|
}, (e2) => {
|
|
20623
|
-
gen.if((0, codegen_1$p._)`!(${e2} instanceof ${
|
|
19853
|
+
gen.if((0, codegen_1$p._)`!(${e2} instanceof ${it.ValidationError})`, () => gen.throw(e2));
|
|
20624
19854
|
addErrorsFrom(e2);
|
|
20625
19855
|
if (!allErrors)
|
|
20626
19856
|
gen.assign(valid, false);
|
|
@@ -20637,27 +19867,27 @@ function callRef(cxt, v2, sch, $async) {
|
|
|
20637
19867
|
}
|
|
20638
19868
|
function addEvaluatedFrom(source) {
|
|
20639
19869
|
var _a;
|
|
20640
|
-
if (!
|
|
19870
|
+
if (!it.opts.unevaluated)
|
|
20641
19871
|
return;
|
|
20642
19872
|
const schEvaluated = (_a = sch === null || sch === void 0 ? void 0 : sch.validate) === null || _a === void 0 ? void 0 : _a.evaluated;
|
|
20643
|
-
if (
|
|
19873
|
+
if (it.props !== true) {
|
|
20644
19874
|
if (schEvaluated && !schEvaluated.dynamicProps) {
|
|
20645
19875
|
if (schEvaluated.props !== void 0) {
|
|
20646
|
-
|
|
19876
|
+
it.props = util_1$n.mergeEvaluated.props(gen, schEvaluated.props, it.props);
|
|
20647
19877
|
}
|
|
20648
19878
|
} else {
|
|
20649
19879
|
const props = gen.var("props", (0, codegen_1$p._)`${source}.evaluated.props`);
|
|
20650
|
-
|
|
19880
|
+
it.props = util_1$n.mergeEvaluated.props(gen, props, it.props, codegen_1$p.Name);
|
|
20651
19881
|
}
|
|
20652
19882
|
}
|
|
20653
|
-
if (
|
|
19883
|
+
if (it.items !== true) {
|
|
20654
19884
|
if (schEvaluated && !schEvaluated.dynamicItems) {
|
|
20655
19885
|
if (schEvaluated.items !== void 0) {
|
|
20656
|
-
|
|
19886
|
+
it.items = util_1$n.mergeEvaluated.items(gen, schEvaluated.items, it.items);
|
|
20657
19887
|
}
|
|
20658
19888
|
} else {
|
|
20659
19889
|
const items2 = gen.var("items", (0, codegen_1$p._)`${source}.evaluated.items`);
|
|
20660
|
-
|
|
19890
|
+
it.items = util_1$n.mergeEvaluated.items(gen, items2, it.items, codegen_1$p.Name);
|
|
20661
19891
|
}
|
|
20662
19892
|
}
|
|
20663
19893
|
}
|
|
@@ -20719,8 +19949,8 @@ const def$y = {
|
|
|
20719
19949
|
$data: true,
|
|
20720
19950
|
error: error$j,
|
|
20721
19951
|
code(cxt) {
|
|
20722
|
-
const { gen, data, schemaCode, it
|
|
20723
|
-
const prec =
|
|
19952
|
+
const { gen, data, schemaCode, it } = cxt;
|
|
19953
|
+
const prec = it.opts.multipleOfPrecision;
|
|
20724
19954
|
const res = gen.let("res");
|
|
20725
19955
|
const invalid = prec ? (0, codegen_1$n._)`Math.abs(Math.round(${res}) - ${res}) > 1e-${prec}` : (0, codegen_1$n._)`${res} !== parseInt(${res})`;
|
|
20726
19956
|
cxt.fail$data((0, codegen_1$n._)`(${schemaCode} === 0 || (${res} = ${data}/${schemaCode}, ${invalid}))`);
|
|
@@ -20766,9 +19996,9 @@ const def$x = {
|
|
|
20766
19996
|
$data: true,
|
|
20767
19997
|
error: error$i,
|
|
20768
19998
|
code(cxt) {
|
|
20769
|
-
const { keyword: keyword2, data, schemaCode, it
|
|
19999
|
+
const { keyword: keyword2, data, schemaCode, it } = cxt;
|
|
20770
20000
|
const op = keyword2 === "maxLength" ? codegen_1$m.operators.GT : codegen_1$m.operators.LT;
|
|
20771
|
-
const len =
|
|
20001
|
+
const len = it.opts.unicode === false ? (0, codegen_1$m._)`${data}.length` : (0, codegen_1$m._)`${(0, util_1$m.useFunc)(cxt.gen, ucs2length_1.default)}(${data})`;
|
|
20772
20002
|
cxt.fail$data((0, codegen_1$m._)`${len} ${op} ${schemaCode}`);
|
|
20773
20003
|
}
|
|
20774
20004
|
};
|
|
@@ -20788,8 +20018,8 @@ const def$w = {
|
|
|
20788
20018
|
$data: true,
|
|
20789
20019
|
error: error$h,
|
|
20790
20020
|
code(cxt) {
|
|
20791
|
-
const { data, $data, schema: schema2, schemaCode, it
|
|
20792
|
-
const u2 =
|
|
20021
|
+
const { data, $data, schema: schema2, schemaCode, it } = cxt;
|
|
20022
|
+
const u2 = it.opts.unicodeRegExp ? "u" : "";
|
|
20793
20023
|
const regExp = $data ? (0, codegen_1$l._)`(new RegExp(${schemaCode}, ${u2}))` : (0, code_1$7.usePattern)(cxt, schema2);
|
|
20794
20024
|
cxt.fail$data((0, codegen_1$l._)`!${regExp}.test(${data})`);
|
|
20795
20025
|
}
|
|
@@ -20834,12 +20064,12 @@ const def$u = {
|
|
|
20834
20064
|
$data: true,
|
|
20835
20065
|
error: error$f,
|
|
20836
20066
|
code(cxt) {
|
|
20837
|
-
const { gen, schema: schema2, schemaCode, data, $data, it
|
|
20838
|
-
const { opts } =
|
|
20067
|
+
const { gen, schema: schema2, schemaCode, data, $data, it } = cxt;
|
|
20068
|
+
const { opts } = it;
|
|
20839
20069
|
if (!$data && schema2.length === 0)
|
|
20840
20070
|
return;
|
|
20841
20071
|
const useLoop = schema2.length >= opts.loopRequired;
|
|
20842
|
-
if (
|
|
20072
|
+
if (it.allErrors)
|
|
20843
20073
|
allErrorsMode();
|
|
20844
20074
|
else
|
|
20845
20075
|
exitOnErrorMode();
|
|
@@ -20848,9 +20078,9 @@ const def$u = {
|
|
|
20848
20078
|
const { definedProperties } = cxt.it;
|
|
20849
20079
|
for (const requiredKey of schema2) {
|
|
20850
20080
|
if ((props === null || props === void 0 ? void 0 : props[requiredKey]) === void 0 && !definedProperties.has(requiredKey)) {
|
|
20851
|
-
const schemaPath =
|
|
20081
|
+
const schemaPath = it.schemaEnv.baseId + it.errSchemaPath;
|
|
20852
20082
|
const msg = `required property "${requiredKey}" is not defined at "${schemaPath}" (strictRequired)`;
|
|
20853
|
-
(0, util_1$l.checkStrictMode)(
|
|
20083
|
+
(0, util_1$l.checkStrictMode)(it, msg, it.opts.strictRequired);
|
|
20854
20084
|
}
|
|
20855
20085
|
}
|
|
20856
20086
|
}
|
|
@@ -20939,7 +20169,7 @@ const def$s = {
|
|
|
20939
20169
|
$data: true,
|
|
20940
20170
|
error: error$d,
|
|
20941
20171
|
code(cxt) {
|
|
20942
|
-
const { gen, data, $data, schema: schema2, parentSchema, schemaCode, it
|
|
20172
|
+
const { gen, data, $data, schema: schema2, parentSchema, schemaCode, it } = cxt;
|
|
20943
20173
|
if (!$data && !schema2)
|
|
20944
20174
|
return;
|
|
20945
20175
|
const valid = gen.let("valid");
|
|
@@ -20958,7 +20188,7 @@ const def$s = {
|
|
|
20958
20188
|
}
|
|
20959
20189
|
function loopN(i2, j2) {
|
|
20960
20190
|
const item = gen.name("item");
|
|
20961
|
-
const wrongType = (0, dataType_1.checkDataTypes)(itemTypes, item,
|
|
20191
|
+
const wrongType = (0, dataType_1.checkDataTypes)(itemTypes, item, it.opts.strictNumbers, dataType_1.DataType.Wrong);
|
|
20962
20192
|
const indices = gen.const("indices", (0, codegen_1$h._)`{}`);
|
|
20963
20193
|
gen.for((0, codegen_1$h._)`;${i2}--;`, () => {
|
|
20964
20194
|
gen.let(item, (0, codegen_1$h._)`${data}[${i2}]`);
|
|
@@ -21021,10 +20251,10 @@ const def$q = {
|
|
|
21021
20251
|
$data: true,
|
|
21022
20252
|
error: error$b,
|
|
21023
20253
|
code(cxt) {
|
|
21024
|
-
const { gen, data, $data, schema: schema2, schemaCode, it
|
|
20254
|
+
const { gen, data, $data, schema: schema2, schemaCode, it } = cxt;
|
|
21025
20255
|
if (!$data && schema2.length === 0)
|
|
21026
20256
|
throw new Error("enum must have non-empty array");
|
|
21027
|
-
const useLoop = schema2.length >=
|
|
20257
|
+
const useLoop = schema2.length >= it.opts.loopEnum;
|
|
21028
20258
|
let eql;
|
|
21029
20259
|
const getEql = () => eql !== null && eql !== void 0 ? eql : eql = (0, util_1$i.useFunc)(gen, equal_1.default);
|
|
21030
20260
|
let valid;
|
|
@@ -21097,23 +20327,23 @@ const def$p = {
|
|
|
21097
20327
|
before: "uniqueItems",
|
|
21098
20328
|
error: error$a,
|
|
21099
20329
|
code(cxt) {
|
|
21100
|
-
const { parentSchema, it
|
|
20330
|
+
const { parentSchema, it } = cxt;
|
|
21101
20331
|
const { items: items2 } = parentSchema;
|
|
21102
20332
|
if (!Array.isArray(items2)) {
|
|
21103
|
-
(0, util_1$h.checkStrictMode)(
|
|
20333
|
+
(0, util_1$h.checkStrictMode)(it, '"additionalItems" is ignored when "items" is not an array of schemas');
|
|
21104
20334
|
return;
|
|
21105
20335
|
}
|
|
21106
20336
|
validateAdditionalItems(cxt, items2);
|
|
21107
20337
|
}
|
|
21108
20338
|
};
|
|
21109
20339
|
function validateAdditionalItems(cxt, items2) {
|
|
21110
|
-
const { gen, schema: schema2, data, keyword: keyword2, it
|
|
21111
|
-
|
|
20340
|
+
const { gen, schema: schema2, data, keyword: keyword2, it } = cxt;
|
|
20341
|
+
it.items = true;
|
|
21112
20342
|
const len = gen.const("len", (0, codegen_1$e._)`${data}.length`);
|
|
21113
20343
|
if (schema2 === false) {
|
|
21114
20344
|
cxt.setParams({ len: items2.length });
|
|
21115
20345
|
cxt.pass((0, codegen_1$e._)`${len} <= ${items2.length}`);
|
|
21116
|
-
} else if (typeof schema2 == "object" && !(0, util_1$h.alwaysValidSchema)(
|
|
20346
|
+
} else if (typeof schema2 == "object" && !(0, util_1$h.alwaysValidSchema)(it, schema2)) {
|
|
21117
20347
|
const valid = gen.var("valid", (0, codegen_1$e._)`${len} <= ${items2.length}`);
|
|
21118
20348
|
gen.if((0, codegen_1$e.not)(valid), () => validateItems(valid));
|
|
21119
20349
|
cxt.ok(valid);
|
|
@@ -21121,7 +20351,7 @@ function validateAdditionalItems(cxt, items2) {
|
|
|
21121
20351
|
function validateItems(valid) {
|
|
21122
20352
|
gen.forRange("i", items2.length, len, (i2) => {
|
|
21123
20353
|
cxt.subschema({ keyword: keyword2, dataProp: i2, dataPropType: util_1$h.Type.Num }, valid);
|
|
21124
|
-
if (!
|
|
20354
|
+
if (!it.allErrors)
|
|
21125
20355
|
gen.if((0, codegen_1$e.not)(valid), () => gen.break());
|
|
21126
20356
|
});
|
|
21127
20357
|
}
|
|
@@ -21141,25 +20371,25 @@ const def$o = {
|
|
|
21141
20371
|
schemaType: ["object", "array", "boolean"],
|
|
21142
20372
|
before: "uniqueItems",
|
|
21143
20373
|
code(cxt) {
|
|
21144
|
-
const { schema: schema2, it
|
|
20374
|
+
const { schema: schema2, it } = cxt;
|
|
21145
20375
|
if (Array.isArray(schema2))
|
|
21146
20376
|
return validateTuple(cxt, "additionalItems", schema2);
|
|
21147
|
-
|
|
21148
|
-
if ((0, util_1$g.alwaysValidSchema)(
|
|
20377
|
+
it.items = true;
|
|
20378
|
+
if ((0, util_1$g.alwaysValidSchema)(it, schema2))
|
|
21149
20379
|
return;
|
|
21150
20380
|
cxt.ok((0, code_1$5.validateArray)(cxt));
|
|
21151
20381
|
}
|
|
21152
20382
|
};
|
|
21153
20383
|
function validateTuple(cxt, extraItems, schArr = cxt.schema) {
|
|
21154
|
-
const { gen, parentSchema, data, keyword: keyword2, it
|
|
20384
|
+
const { gen, parentSchema, data, keyword: keyword2, it } = cxt;
|
|
21155
20385
|
checkStrictTuple(parentSchema);
|
|
21156
|
-
if (
|
|
21157
|
-
|
|
20386
|
+
if (it.opts.unevaluated && schArr.length && it.items !== true) {
|
|
20387
|
+
it.items = util_1$g.mergeEvaluated.items(gen, schArr.length, it.items);
|
|
21158
20388
|
}
|
|
21159
20389
|
const valid = gen.name("valid");
|
|
21160
20390
|
const len = gen.const("len", (0, codegen_1$d._)`${data}.length`);
|
|
21161
20391
|
schArr.forEach((sch, i2) => {
|
|
21162
|
-
if ((0, util_1$g.alwaysValidSchema)(
|
|
20392
|
+
if ((0, util_1$g.alwaysValidSchema)(it, sch))
|
|
21163
20393
|
return;
|
|
21164
20394
|
gen.if((0, codegen_1$d._)`${len} > ${i2}`, () => cxt.subschema({
|
|
21165
20395
|
keyword: keyword2,
|
|
@@ -21169,12 +20399,12 @@ function validateTuple(cxt, extraItems, schArr = cxt.schema) {
|
|
|
21169
20399
|
cxt.ok(valid);
|
|
21170
20400
|
});
|
|
21171
20401
|
function checkStrictTuple(sch) {
|
|
21172
|
-
const { opts, errSchemaPath } =
|
|
20402
|
+
const { opts, errSchemaPath } = it;
|
|
21173
20403
|
const l2 = schArr.length;
|
|
21174
20404
|
const fullTuple = l2 === sch.minItems && (l2 === sch.maxItems || sch[extraItems] === false);
|
|
21175
20405
|
if (opts.strictTuples && !fullTuple) {
|
|
21176
20406
|
const msg = `"${keyword2}" is ${l2}-tuple, but minItems or maxItems/${extraItems} are not specified or different at path "${errSchemaPath}"`;
|
|
21177
|
-
(0, util_1$g.checkStrictMode)(
|
|
20407
|
+
(0, util_1$g.checkStrictMode)(it, msg, opts.strictTuples);
|
|
21178
20408
|
}
|
|
21179
20409
|
}
|
|
21180
20410
|
}
|
|
@@ -21207,10 +20437,10 @@ const def$m = {
|
|
|
21207
20437
|
before: "uniqueItems",
|
|
21208
20438
|
error: error$9,
|
|
21209
20439
|
code(cxt) {
|
|
21210
|
-
const { schema: schema2, parentSchema, it
|
|
20440
|
+
const { schema: schema2, parentSchema, it } = cxt;
|
|
21211
20441
|
const { prefixItems: prefixItems2 } = parentSchema;
|
|
21212
|
-
|
|
21213
|
-
if ((0, util_1$f.alwaysValidSchema)(
|
|
20442
|
+
it.items = true;
|
|
20443
|
+
if ((0, util_1$f.alwaysValidSchema)(it, schema2))
|
|
21214
20444
|
return;
|
|
21215
20445
|
if (prefixItems2)
|
|
21216
20446
|
(0, additionalItems_1$1.validateAdditionalItems)(cxt, prefixItems2);
|
|
@@ -21235,11 +20465,11 @@ const def$l = {
|
|
|
21235
20465
|
trackErrors: true,
|
|
21236
20466
|
error: error$8,
|
|
21237
20467
|
code(cxt) {
|
|
21238
|
-
const { gen, schema: schema2, parentSchema, data, it
|
|
20468
|
+
const { gen, schema: schema2, parentSchema, data, it } = cxt;
|
|
21239
20469
|
let min;
|
|
21240
20470
|
let max;
|
|
21241
20471
|
const { minContains, maxContains } = parentSchema;
|
|
21242
|
-
if (
|
|
20472
|
+
if (it.opts.next) {
|
|
21243
20473
|
min = minContains === void 0 ? 1 : minContains;
|
|
21244
20474
|
max = maxContains;
|
|
21245
20475
|
} else {
|
|
@@ -21248,22 +20478,22 @@ const def$l = {
|
|
|
21248
20478
|
const len = gen.const("len", (0, codegen_1$b._)`${data}.length`);
|
|
21249
20479
|
cxt.setParams({ min, max });
|
|
21250
20480
|
if (max === void 0 && min === 0) {
|
|
21251
|
-
(0, util_1$e.checkStrictMode)(
|
|
20481
|
+
(0, util_1$e.checkStrictMode)(it, `"minContains" == 0 without "maxContains": "contains" keyword ignored`);
|
|
21252
20482
|
return;
|
|
21253
20483
|
}
|
|
21254
20484
|
if (max !== void 0 && min > max) {
|
|
21255
|
-
(0, util_1$e.checkStrictMode)(
|
|
20485
|
+
(0, util_1$e.checkStrictMode)(it, `"minContains" > "maxContains" is always invalid`);
|
|
21256
20486
|
cxt.fail();
|
|
21257
20487
|
return;
|
|
21258
20488
|
}
|
|
21259
|
-
if ((0, util_1$e.alwaysValidSchema)(
|
|
20489
|
+
if ((0, util_1$e.alwaysValidSchema)(it, schema2)) {
|
|
21260
20490
|
let cond = (0, codegen_1$b._)`${len} >= ${min}`;
|
|
21261
20491
|
if (max !== void 0)
|
|
21262
20492
|
cond = (0, codegen_1$b._)`${cond} && ${len} <= ${max}`;
|
|
21263
20493
|
cxt.pass(cond);
|
|
21264
20494
|
return;
|
|
21265
20495
|
}
|
|
21266
|
-
|
|
20496
|
+
it.items = true;
|
|
21267
20497
|
const valid = gen.name("valid");
|
|
21268
20498
|
if (max === void 0 && min === 1) {
|
|
21269
20499
|
validateItems(valid, () => gen.if(valid, () => gen.break()));
|
|
@@ -21348,7 +20578,7 @@ var dependencies = {};
|
|
|
21348
20578
|
return [propertyDeps, schemaDeps];
|
|
21349
20579
|
}
|
|
21350
20580
|
function validatePropertyDeps(cxt, propertyDeps = cxt.schema) {
|
|
21351
|
-
const { gen, data, it
|
|
20581
|
+
const { gen, data, it } = cxt;
|
|
21352
20582
|
if (Object.keys(propertyDeps).length === 0)
|
|
21353
20583
|
return;
|
|
21354
20584
|
const missing = gen.let("missing");
|
|
@@ -21356,13 +20586,13 @@ var dependencies = {};
|
|
|
21356
20586
|
const deps = propertyDeps[prop];
|
|
21357
20587
|
if (deps.length === 0)
|
|
21358
20588
|
continue;
|
|
21359
|
-
const hasProperty = (0, code_12.propertyInData)(gen, data, prop,
|
|
20589
|
+
const hasProperty = (0, code_12.propertyInData)(gen, data, prop, it.opts.ownProperties);
|
|
21360
20590
|
cxt.setParams({
|
|
21361
20591
|
property: prop,
|
|
21362
20592
|
depsCount: deps.length,
|
|
21363
20593
|
deps: deps.join(", ")
|
|
21364
20594
|
});
|
|
21365
|
-
if (
|
|
20595
|
+
if (it.allErrors) {
|
|
21366
20596
|
gen.if(hasProperty, () => {
|
|
21367
20597
|
for (const depProp of deps) {
|
|
21368
20598
|
(0, code_12.checkReportMissingProp)(cxt, depProp);
|
|
@@ -21377,13 +20607,13 @@ var dependencies = {};
|
|
|
21377
20607
|
}
|
|
21378
20608
|
exports.validatePropertyDeps = validatePropertyDeps;
|
|
21379
20609
|
function validateSchemaDeps(cxt, schemaDeps = cxt.schema) {
|
|
21380
|
-
const { gen, data, keyword: keyword2, it
|
|
20610
|
+
const { gen, data, keyword: keyword2, it } = cxt;
|
|
21381
20611
|
const valid = gen.name("valid");
|
|
21382
20612
|
for (const prop in schemaDeps) {
|
|
21383
|
-
if ((0, util_12.alwaysValidSchema)(
|
|
20613
|
+
if ((0, util_12.alwaysValidSchema)(it, schemaDeps[prop]))
|
|
21384
20614
|
continue;
|
|
21385
20615
|
gen.if(
|
|
21386
|
-
(0, code_12.propertyInData)(gen, data, prop,
|
|
20616
|
+
(0, code_12.propertyInData)(gen, data, prop, it.opts.ownProperties),
|
|
21387
20617
|
() => {
|
|
21388
20618
|
const schCxt = cxt.subschema({ keyword: keyword2, schemaProp: prop }, valid);
|
|
21389
20619
|
cxt.mergeValidEvaluated(schCxt, valid);
|
|
@@ -21411,8 +20641,8 @@ const def$k = {
|
|
|
21411
20641
|
schemaType: ["object", "boolean"],
|
|
21412
20642
|
error: error$7,
|
|
21413
20643
|
code(cxt) {
|
|
21414
|
-
const { gen, schema: schema2, data, it
|
|
21415
|
-
if ((0, util_1$d.alwaysValidSchema)(
|
|
20644
|
+
const { gen, schema: schema2, data, it } = cxt;
|
|
20645
|
+
if ((0, util_1$d.alwaysValidSchema)(it, schema2))
|
|
21416
20646
|
return;
|
|
21417
20647
|
const valid = gen.name("valid");
|
|
21418
20648
|
gen.forIn("key", data, (key) => {
|
|
@@ -21426,7 +20656,7 @@ const def$k = {
|
|
|
21426
20656
|
}, valid);
|
|
21427
20657
|
gen.if((0, codegen_1$a.not)(valid), () => {
|
|
21428
20658
|
cxt.error(true);
|
|
21429
|
-
if (!
|
|
20659
|
+
if (!it.allErrors)
|
|
21430
20660
|
gen.break();
|
|
21431
20661
|
});
|
|
21432
20662
|
});
|
|
@@ -21452,12 +20682,12 @@ const def$j = {
|
|
|
21452
20682
|
trackErrors: true,
|
|
21453
20683
|
error: error$6,
|
|
21454
20684
|
code(cxt) {
|
|
21455
|
-
const { gen, schema: schema2, parentSchema, data, errsCount, it
|
|
20685
|
+
const { gen, schema: schema2, parentSchema, data, errsCount, it } = cxt;
|
|
21456
20686
|
if (!errsCount)
|
|
21457
20687
|
throw new Error("ajv implementation error");
|
|
21458
|
-
const { allErrors, opts } =
|
|
21459
|
-
|
|
21460
|
-
if (opts.removeAdditional !== "all" && (0, util_1$c.alwaysValidSchema)(
|
|
20688
|
+
const { allErrors, opts } = it;
|
|
20689
|
+
it.props = true;
|
|
20690
|
+
if (opts.removeAdditional !== "all" && (0, util_1$c.alwaysValidSchema)(it, schema2))
|
|
21461
20691
|
return;
|
|
21462
20692
|
const props = (0, code_1$3.allSchemaProperties)(parentSchema.properties);
|
|
21463
20693
|
const patProps = (0, code_1$3.allSchemaProperties)(parentSchema.patternProperties);
|
|
@@ -21474,7 +20704,7 @@ const def$j = {
|
|
|
21474
20704
|
function isAdditional(key) {
|
|
21475
20705
|
let definedProp;
|
|
21476
20706
|
if (props.length > 8) {
|
|
21477
|
-
const propsSchema = (0, util_1$c.schemaRefOrVal)(
|
|
20707
|
+
const propsSchema = (0, util_1$c.schemaRefOrVal)(it, parentSchema.properties, "properties");
|
|
21478
20708
|
definedProp = (0, code_1$3.isOwnProperty)(gen, propsSchema, key);
|
|
21479
20709
|
} else if (props.length) {
|
|
21480
20710
|
definedProp = (0, codegen_1$9.or)(...props.map((p2) => (0, codegen_1$9._)`${key} === ${p2}`));
|
|
@@ -21501,7 +20731,7 @@ const def$j = {
|
|
|
21501
20731
|
gen.break();
|
|
21502
20732
|
return;
|
|
21503
20733
|
}
|
|
21504
|
-
if (typeof schema2 == "object" && !(0, util_1$c.alwaysValidSchema)(
|
|
20734
|
+
if (typeof schema2 == "object" && !(0, util_1$c.alwaysValidSchema)(it, schema2)) {
|
|
21505
20735
|
const valid = gen.name("valid");
|
|
21506
20736
|
if (opts.removeAdditional === "failing") {
|
|
21507
20737
|
applyAdditionalSchema(key, valid, false);
|
|
@@ -21545,18 +20775,18 @@ const def$i = {
|
|
|
21545
20775
|
type: "object",
|
|
21546
20776
|
schemaType: "object",
|
|
21547
20777
|
code(cxt) {
|
|
21548
|
-
const { gen, schema: schema2, parentSchema, data, it
|
|
21549
|
-
if (
|
|
21550
|
-
additionalProperties_1$1.default.code(new validate_1.KeywordCxt(
|
|
20778
|
+
const { gen, schema: schema2, parentSchema, data, it } = cxt;
|
|
20779
|
+
if (it.opts.removeAdditional === "all" && parentSchema.additionalProperties === void 0) {
|
|
20780
|
+
additionalProperties_1$1.default.code(new validate_1.KeywordCxt(it, additionalProperties_1$1.default, "additionalProperties"));
|
|
21551
20781
|
}
|
|
21552
20782
|
const allProps = (0, code_1$2.allSchemaProperties)(schema2);
|
|
21553
20783
|
for (const prop of allProps) {
|
|
21554
|
-
|
|
20784
|
+
it.definedProperties.add(prop);
|
|
21555
20785
|
}
|
|
21556
|
-
if (
|
|
21557
|
-
|
|
20786
|
+
if (it.opts.unevaluated && allProps.length && it.props !== true) {
|
|
20787
|
+
it.props = util_1$b.mergeEvaluated.props(gen, (0, util_1$b.toHash)(allProps), it.props);
|
|
21558
20788
|
}
|
|
21559
|
-
const properties2 = allProps.filter((p2) => !(0, util_1$b.alwaysValidSchema)(
|
|
20789
|
+
const properties2 = allProps.filter((p2) => !(0, util_1$b.alwaysValidSchema)(it, schema2[p2]));
|
|
21560
20790
|
if (properties2.length === 0)
|
|
21561
20791
|
return;
|
|
21562
20792
|
const valid = gen.name("valid");
|
|
@@ -21564,9 +20794,9 @@ const def$i = {
|
|
|
21564
20794
|
if (hasDefault(prop)) {
|
|
21565
20795
|
applyPropertySchema(prop);
|
|
21566
20796
|
} else {
|
|
21567
|
-
gen.if((0, code_1$2.propertyInData)(gen, data, prop,
|
|
20797
|
+
gen.if((0, code_1$2.propertyInData)(gen, data, prop, it.opts.ownProperties));
|
|
21568
20798
|
applyPropertySchema(prop);
|
|
21569
|
-
if (!
|
|
20799
|
+
if (!it.allErrors)
|
|
21570
20800
|
gen.else().var(valid, true);
|
|
21571
20801
|
gen.endIf();
|
|
21572
20802
|
}
|
|
@@ -21574,7 +20804,7 @@ const def$i = {
|
|
|
21574
20804
|
cxt.ok(valid);
|
|
21575
20805
|
}
|
|
21576
20806
|
function hasDefault(prop) {
|
|
21577
|
-
return
|
|
20807
|
+
return it.opts.useDefaults && !it.compositeRule && schema2[prop].default !== void 0;
|
|
21578
20808
|
}
|
|
21579
20809
|
function applyPropertySchema(prop) {
|
|
21580
20810
|
cxt.subschema({
|
|
@@ -21597,25 +20827,25 @@ const def$h = {
|
|
|
21597
20827
|
type: "object",
|
|
21598
20828
|
schemaType: "object",
|
|
21599
20829
|
code(cxt) {
|
|
21600
|
-
const { gen, schema: schema2, data, parentSchema, it
|
|
21601
|
-
const { opts } =
|
|
20830
|
+
const { gen, schema: schema2, data, parentSchema, it } = cxt;
|
|
20831
|
+
const { opts } = it;
|
|
21602
20832
|
const patterns = (0, code_1$1.allSchemaProperties)(schema2);
|
|
21603
|
-
const alwaysValidPatterns = patterns.filter((p2) => (0, util_1$a.alwaysValidSchema)(
|
|
21604
|
-
if (patterns.length === 0 || alwaysValidPatterns.length === patterns.length && (!
|
|
20833
|
+
const alwaysValidPatterns = patterns.filter((p2) => (0, util_1$a.alwaysValidSchema)(it, schema2[p2]));
|
|
20834
|
+
if (patterns.length === 0 || alwaysValidPatterns.length === patterns.length && (!it.opts.unevaluated || it.props === true)) {
|
|
21605
20835
|
return;
|
|
21606
20836
|
}
|
|
21607
20837
|
const checkProperties = opts.strictSchema && !opts.allowMatchingProperties && parentSchema.properties;
|
|
21608
20838
|
const valid = gen.name("valid");
|
|
21609
|
-
if (
|
|
21610
|
-
|
|
20839
|
+
if (it.props !== true && !(it.props instanceof codegen_1$8.Name)) {
|
|
20840
|
+
it.props = (0, util_2.evaluatedPropsToName)(gen, it.props);
|
|
21611
20841
|
}
|
|
21612
|
-
const { props } =
|
|
20842
|
+
const { props } = it;
|
|
21613
20843
|
validatePatternProperties();
|
|
21614
20844
|
function validatePatternProperties() {
|
|
21615
20845
|
for (const pat of patterns) {
|
|
21616
20846
|
if (checkProperties)
|
|
21617
20847
|
checkMatchingProperties(pat);
|
|
21618
|
-
if (
|
|
20848
|
+
if (it.allErrors) {
|
|
21619
20849
|
validateProperties(pat);
|
|
21620
20850
|
} else {
|
|
21621
20851
|
gen.var(valid, true);
|
|
@@ -21627,7 +20857,7 @@ const def$h = {
|
|
|
21627
20857
|
function checkMatchingProperties(pat) {
|
|
21628
20858
|
for (const prop in checkProperties) {
|
|
21629
20859
|
if (new RegExp(pat).test(prop)) {
|
|
21630
|
-
(0, util_1$a.checkStrictMode)(
|
|
20860
|
+
(0, util_1$a.checkStrictMode)(it, `property ${prop} matches pattern ${pat} (use allowMatchingProperties)`);
|
|
21631
20861
|
}
|
|
21632
20862
|
}
|
|
21633
20863
|
}
|
|
@@ -21643,9 +20873,9 @@ const def$h = {
|
|
|
21643
20873
|
dataPropType: util_2.Type.Str
|
|
21644
20874
|
}, valid);
|
|
21645
20875
|
}
|
|
21646
|
-
if (
|
|
20876
|
+
if (it.opts.unevaluated && props !== true) {
|
|
21647
20877
|
gen.assign((0, codegen_1$8._)`${props}[${key}]`, true);
|
|
21648
|
-
} else if (!alwaysValid && !
|
|
20878
|
+
} else if (!alwaysValid && !it.allErrors) {
|
|
21649
20879
|
gen.if((0, codegen_1$8.not)(valid), () => gen.break());
|
|
21650
20880
|
}
|
|
21651
20881
|
});
|
|
@@ -21662,8 +20892,8 @@ const def$g = {
|
|
|
21662
20892
|
schemaType: ["object", "boolean"],
|
|
21663
20893
|
trackErrors: true,
|
|
21664
20894
|
code(cxt) {
|
|
21665
|
-
const { gen, schema: schema2, it
|
|
21666
|
-
if ((0, util_1$9.alwaysValidSchema)(
|
|
20895
|
+
const { gen, schema: schema2, it } = cxt;
|
|
20896
|
+
if ((0, util_1$9.alwaysValidSchema)(it, schema2)) {
|
|
21667
20897
|
cxt.fail();
|
|
21668
20898
|
return;
|
|
21669
20899
|
}
|
|
@@ -21704,10 +20934,10 @@ const def$e = {
|
|
|
21704
20934
|
trackErrors: true,
|
|
21705
20935
|
error: error$5,
|
|
21706
20936
|
code(cxt) {
|
|
21707
|
-
const { gen, schema: schema2, parentSchema, it
|
|
20937
|
+
const { gen, schema: schema2, parentSchema, it } = cxt;
|
|
21708
20938
|
if (!Array.isArray(schema2))
|
|
21709
20939
|
throw new Error("ajv implementation error");
|
|
21710
|
-
if (
|
|
20940
|
+
if (it.opts.discriminator && parentSchema.discriminator)
|
|
21711
20941
|
return;
|
|
21712
20942
|
const schArr = schema2;
|
|
21713
20943
|
const valid = gen.let("valid", false);
|
|
@@ -21719,7 +20949,7 @@ const def$e = {
|
|
|
21719
20949
|
function validateOneOf() {
|
|
21720
20950
|
schArr.forEach((sch, i2) => {
|
|
21721
20951
|
let schCxt;
|
|
21722
|
-
if ((0, util_1$8.alwaysValidSchema)(
|
|
20952
|
+
if ((0, util_1$8.alwaysValidSchema)(it, sch)) {
|
|
21723
20953
|
gen.var(schValid, true);
|
|
21724
20954
|
} else {
|
|
21725
20955
|
schCxt = cxt.subschema({
|
|
@@ -21749,12 +20979,12 @@ const def$d = {
|
|
|
21749
20979
|
keyword: "allOf",
|
|
21750
20980
|
schemaType: "array",
|
|
21751
20981
|
code(cxt) {
|
|
21752
|
-
const { gen, schema: schema2, it
|
|
20982
|
+
const { gen, schema: schema2, it } = cxt;
|
|
21753
20983
|
if (!Array.isArray(schema2))
|
|
21754
20984
|
throw new Error("ajv implementation error");
|
|
21755
20985
|
const valid = gen.name("valid");
|
|
21756
20986
|
schema2.forEach((sch, i2) => {
|
|
21757
|
-
if ((0, util_1$7.alwaysValidSchema)(
|
|
20987
|
+
if ((0, util_1$7.alwaysValidSchema)(it, sch))
|
|
21758
20988
|
return;
|
|
21759
20989
|
const schCxt = cxt.subschema({ keyword: "allOf", schemaProp: i2 }, valid);
|
|
21760
20990
|
cxt.ok(valid);
|
|
@@ -21777,12 +21007,12 @@ const def$c = {
|
|
|
21777
21007
|
trackErrors: true,
|
|
21778
21008
|
error: error$4,
|
|
21779
21009
|
code(cxt) {
|
|
21780
|
-
const { gen, parentSchema, it
|
|
21010
|
+
const { gen, parentSchema, it } = cxt;
|
|
21781
21011
|
if (parentSchema.then === void 0 && parentSchema.else === void 0) {
|
|
21782
|
-
(0, util_1$6.checkStrictMode)(
|
|
21012
|
+
(0, util_1$6.checkStrictMode)(it, '"if" without "then" and "else" is ignored');
|
|
21783
21013
|
}
|
|
21784
|
-
const hasThen = hasSchema(
|
|
21785
|
-
const hasElse = hasSchema(
|
|
21014
|
+
const hasThen = hasSchema(it, "then");
|
|
21015
|
+
const hasElse = hasSchema(it, "else");
|
|
21786
21016
|
if (!hasThen && !hasElse)
|
|
21787
21017
|
return;
|
|
21788
21018
|
const valid = gen.let("valid", true);
|
|
@@ -21821,9 +21051,9 @@ const def$c = {
|
|
|
21821
21051
|
}
|
|
21822
21052
|
}
|
|
21823
21053
|
};
|
|
21824
|
-
function hasSchema(
|
|
21825
|
-
const schema2 =
|
|
21826
|
-
return schema2 !== void 0 && !(0, util_1$6.alwaysValidSchema)(
|
|
21054
|
+
function hasSchema(it, keyword2) {
|
|
21055
|
+
const schema2 = it.schema[keyword2];
|
|
21056
|
+
return schema2 !== void 0 && !(0, util_1$6.alwaysValidSchema)(it, schema2);
|
|
21827
21057
|
}
|
|
21828
21058
|
_if.default = def$c;
|
|
21829
21059
|
var thenElse = {};
|
|
@@ -21832,9 +21062,9 @@ const util_1$5 = util;
|
|
|
21832
21062
|
const def$b = {
|
|
21833
21063
|
keyword: ["then", "else"],
|
|
21834
21064
|
schemaType: ["object", "boolean"],
|
|
21835
|
-
code({ keyword: keyword2, parentSchema, it
|
|
21065
|
+
code({ keyword: keyword2, parentSchema, it }) {
|
|
21836
21066
|
if (parentSchema.if === void 0)
|
|
21837
|
-
(0, util_1$5.checkStrictMode)(
|
|
21067
|
+
(0, util_1$5.checkStrictMode)(it, `"${keyword2}" without "if" is ignored`);
|
|
21838
21068
|
}
|
|
21839
21069
|
};
|
|
21840
21070
|
thenElse.default = def$b;
|
|
@@ -21894,8 +21124,8 @@ const def$a = {
|
|
|
21894
21124
|
$data: true,
|
|
21895
21125
|
error: error$3,
|
|
21896
21126
|
code(cxt, ruleType) {
|
|
21897
|
-
const { gen, data, $data, schema: schema2, schemaCode, it
|
|
21898
|
-
const { opts, errSchemaPath, schemaEnv, self: self2 } =
|
|
21127
|
+
const { gen, data, $data, schema: schema2, schemaCode, it } = cxt;
|
|
21128
|
+
const { opts, errSchemaPath, schemaEnv, self: self2 } = it;
|
|
21899
21129
|
if (!opts.validateFormats)
|
|
21900
21130
|
return;
|
|
21901
21131
|
if ($data)
|
|
@@ -22014,10 +21244,10 @@ const def$9 = {
|
|
|
22014
21244
|
code: (cxt) => dynamicAnchor(cxt, cxt.schema)
|
|
22015
21245
|
};
|
|
22016
21246
|
function dynamicAnchor(cxt, anchor) {
|
|
22017
|
-
const { gen, it
|
|
22018
|
-
|
|
21247
|
+
const { gen, it } = cxt;
|
|
21248
|
+
it.schemaEnv.root.dynamicAnchors[anchor] = true;
|
|
22019
21249
|
const v2 = (0, codegen_1$4._)`${names_1$2.default.dynamicAnchors}${(0, codegen_1$4.getProperty)(anchor)}`;
|
|
22020
|
-
const validate2 =
|
|
21250
|
+
const validate2 = it.errSchemaPath === "#" ? it.validateName : _getValidate(cxt);
|
|
22021
21251
|
gen.if((0, codegen_1$4._)`!${v2}`, () => gen.assign(v2, validate2));
|
|
22022
21252
|
}
|
|
22023
21253
|
dynamicAnchor$1.dynamicAnchor = dynamicAnchor;
|
|
@@ -22042,11 +21272,11 @@ const def$8 = {
|
|
|
22042
21272
|
code: (cxt) => dynamicRef(cxt, cxt.schema)
|
|
22043
21273
|
};
|
|
22044
21274
|
function dynamicRef(cxt, ref2) {
|
|
22045
|
-
const { gen, keyword: keyword2, it
|
|
21275
|
+
const { gen, keyword: keyword2, it } = cxt;
|
|
22046
21276
|
if (ref2[0] !== "#")
|
|
22047
21277
|
throw new Error(`"${keyword2}" only supports hash fragment reference`);
|
|
22048
21278
|
const anchor = ref2.slice(1);
|
|
22049
|
-
if (
|
|
21279
|
+
if (it.allErrors) {
|
|
22050
21280
|
_dynamicRef();
|
|
22051
21281
|
} else {
|
|
22052
21282
|
const valid = gen.let("valid", false);
|
|
@@ -22054,11 +21284,11 @@ function dynamicRef(cxt, ref2) {
|
|
|
22054
21284
|
cxt.ok(valid);
|
|
22055
21285
|
}
|
|
22056
21286
|
function _dynamicRef(valid) {
|
|
22057
|
-
if (
|
|
21287
|
+
if (it.schemaEnv.root.dynamicAnchors[anchor]) {
|
|
22058
21288
|
const v2 = gen.let("_v", (0, codegen_1$3._)`${names_1$1.default.dynamicAnchors}${(0, codegen_1$3.getProperty)(anchor)}`);
|
|
22059
|
-
gen.if(v2, _callRef(v2, valid), _callRef(
|
|
21289
|
+
gen.if(v2, _callRef(v2, valid), _callRef(it.validateName, valid));
|
|
22060
21290
|
} else {
|
|
22061
|
-
_callRef(
|
|
21291
|
+
_callRef(it.validateName, valid)();
|
|
22062
21292
|
}
|
|
22063
21293
|
}
|
|
22064
21294
|
function _callRef(validate2, valid) {
|
|
@@ -22130,9 +21360,9 @@ const def$3 = {
|
|
|
22130
21360
|
keyword: ["maxContains", "minContains"],
|
|
22131
21361
|
type: "array",
|
|
22132
21362
|
schemaType: "number",
|
|
22133
|
-
code({ keyword: keyword2, parentSchema, it
|
|
21363
|
+
code({ keyword: keyword2, parentSchema, it }) {
|
|
22134
21364
|
if (parentSchema.contains === void 0) {
|
|
22135
|
-
(0, util_1$3.checkStrictMode)(
|
|
21365
|
+
(0, util_1$3.checkStrictMode)(it, `"${keyword2}" without "contains" is ignored`);
|
|
22136
21366
|
}
|
|
22137
21367
|
}
|
|
22138
21368
|
};
|
|
@@ -22160,16 +21390,16 @@ const def$2 = {
|
|
|
22160
21390
|
trackErrors: true,
|
|
22161
21391
|
error: error$2,
|
|
22162
21392
|
code(cxt) {
|
|
22163
|
-
const { gen, schema: schema2, data, errsCount, it
|
|
21393
|
+
const { gen, schema: schema2, data, errsCount, it } = cxt;
|
|
22164
21394
|
if (!errsCount)
|
|
22165
21395
|
throw new Error("ajv implementation error");
|
|
22166
|
-
const { allErrors, props } =
|
|
21396
|
+
const { allErrors, props } = it;
|
|
22167
21397
|
if (props instanceof codegen_1$2.Name) {
|
|
22168
21398
|
gen.if((0, codegen_1$2._)`${props} !== true`, () => gen.forIn("key", data, (key) => gen.if(unevaluatedDynamic(props, key), () => unevaluatedPropCode(key))));
|
|
22169
21399
|
} else if (props !== true) {
|
|
22170
21400
|
gen.forIn("key", data, (key) => props === void 0 ? unevaluatedPropCode(key) : gen.if(unevaluatedStatic(props, key), () => unevaluatedPropCode(key)));
|
|
22171
21401
|
}
|
|
22172
|
-
|
|
21402
|
+
it.props = true;
|
|
22173
21403
|
cxt.ok((0, codegen_1$2._)`${errsCount} === ${names_1.default.errors}`);
|
|
22174
21404
|
function unevaluatedPropCode(key) {
|
|
22175
21405
|
if (schema2 === false) {
|
|
@@ -22179,7 +21409,7 @@ const def$2 = {
|
|
|
22179
21409
|
gen.break();
|
|
22180
21410
|
return;
|
|
22181
21411
|
}
|
|
22182
|
-
if (!(0, util_1$2.alwaysValidSchema)(
|
|
21412
|
+
if (!(0, util_1$2.alwaysValidSchema)(it, schema2)) {
|
|
22183
21413
|
const valid = gen.name("valid");
|
|
22184
21414
|
cxt.subschema({
|
|
22185
21415
|
keyword: "unevaluatedProperties",
|
|
@@ -22218,24 +21448,24 @@ const def$1 = {
|
|
|
22218
21448
|
schemaType: ["boolean", "object"],
|
|
22219
21449
|
error: error$1,
|
|
22220
21450
|
code(cxt) {
|
|
22221
|
-
const { gen, schema: schema2, data, it
|
|
22222
|
-
const items2 =
|
|
21451
|
+
const { gen, schema: schema2, data, it } = cxt;
|
|
21452
|
+
const items2 = it.items || 0;
|
|
22223
21453
|
if (items2 === true)
|
|
22224
21454
|
return;
|
|
22225
21455
|
const len = gen.const("len", (0, codegen_1$1._)`${data}.length`);
|
|
22226
21456
|
if (schema2 === false) {
|
|
22227
21457
|
cxt.setParams({ len: items2 });
|
|
22228
21458
|
cxt.fail((0, codegen_1$1._)`${len} > ${items2}`);
|
|
22229
|
-
} else if (typeof schema2 == "object" && !(0, util_1$1.alwaysValidSchema)(
|
|
21459
|
+
} else if (typeof schema2 == "object" && !(0, util_1$1.alwaysValidSchema)(it, schema2)) {
|
|
22230
21460
|
const valid = gen.var("valid", (0, codegen_1$1._)`${len} <= ${items2}`);
|
|
22231
21461
|
gen.if((0, codegen_1$1.not)(valid), () => validateItems(valid, items2));
|
|
22232
21462
|
cxt.ok(valid);
|
|
22233
21463
|
}
|
|
22234
|
-
|
|
21464
|
+
it.items = true;
|
|
22235
21465
|
function validateItems(valid, from) {
|
|
22236
21466
|
gen.forRange("i", from, len, (i2) => {
|
|
22237
21467
|
cxt.subschema({ keyword: "unevaluatedItems", dataProp: i2, dataPropType: util_1$1.Type.Num }, valid);
|
|
22238
|
-
if (!
|
|
21468
|
+
if (!it.allErrors)
|
|
22239
21469
|
gen.if((0, codegen_1$1.not)(valid), () => gen.break());
|
|
22240
21470
|
});
|
|
22241
21471
|
}
|
|
@@ -22272,9 +21502,9 @@ const def = {
|
|
|
22272
21502
|
schemaType: "object",
|
|
22273
21503
|
error,
|
|
22274
21504
|
code(cxt) {
|
|
22275
|
-
const { gen, data, schema: schema2, parentSchema, it
|
|
21505
|
+
const { gen, data, schema: schema2, parentSchema, it } = cxt;
|
|
22276
21506
|
const { oneOf: oneOf2 } = parentSchema;
|
|
22277
|
-
if (!
|
|
21507
|
+
if (!it.opts.discriminator) {
|
|
22278
21508
|
throw new Error("discriminator: requires discriminator option");
|
|
22279
21509
|
}
|
|
22280
21510
|
const tagName = schema2.propertyName;
|
|
@@ -22312,8 +21542,8 @@ const def = {
|
|
|
22312
21542
|
let tagRequired = true;
|
|
22313
21543
|
for (let i2 = 0; i2 < oneOf2.length; i2++) {
|
|
22314
21544
|
let sch = oneOf2[i2];
|
|
22315
|
-
if ((sch === null || sch === void 0 ? void 0 : sch.$ref) && !(0, util_1.schemaHasRulesButRef)(sch,
|
|
22316
|
-
sch = compile_1.resolveRef.call(
|
|
21545
|
+
if ((sch === null || sch === void 0 ? void 0 : sch.$ref) && !(0, util_1.schemaHasRulesButRef)(sch, it.self.RULES)) {
|
|
21546
|
+
sch = compile_1.resolveRef.call(it.self, it.schemaEnv.root, it.baseId, sch === null || sch === void 0 ? void 0 : sch.$ref);
|
|
22317
21547
|
if (sch instanceof compile_1.SchemaEnv)
|
|
22318
21548
|
sch = sch.schema;
|
|
22319
21549
|
}
|
|
@@ -23821,7 +23051,7 @@ function handleComputedProperty(options) {
|
|
|
23821
23051
|
var _a;
|
|
23822
23052
|
return Object.assign({}, options, {
|
|
23823
23053
|
_computed: {
|
|
23824
|
-
version: "7.
|
|
23054
|
+
version: "7.5.0",
|
|
23825
23055
|
paymentMethodsUrl: ((_a = options._dev) == null ? void 0 : _a.paymentMethodsUrl) ?? "https://forms.secure-payments.app"
|
|
23826
23056
|
}
|
|
23827
23057
|
});
|
|
@@ -26969,7 +26199,7 @@ class RebillyInstrumentsInstance {
|
|
|
26969
26199
|
await show({ componentName, payload });
|
|
26970
26200
|
}
|
|
26971
26201
|
get version() {
|
|
26972
|
-
return `RebillyInstruments Ver.${"7.
|
|
26202
|
+
return `RebillyInstruments Ver.${"7.5.0"}`;
|
|
26973
26203
|
}
|
|
26974
26204
|
on(eventName, callback) {
|
|
26975
26205
|
on({ eventName, callback });
|