scordi-extension 1.15.14 → 1.15.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocks/NetworkCatchBlock.d.ts +4 -0
- package/dist/blocks/NetworkCatchBlock.d.ts.map +1 -1
- package/dist/blocks/TransformDataBlock.d.ts.map +1 -1
- package/dist/blocks/index.d.ts +3 -0
- package/dist/blocks/index.d.ts.map +1 -1
- package/dist/manifest.json +1 -1
- package/dist/sdk/EightGClient.d.ts +3 -1
- package/dist/sdk/EightGClient.d.ts.map +1 -1
- package/dist/sdk/index.cjs +4 -4
- package/dist/sdk/index.js +373 -368
- package/dist/src/blocks/NetworkCatchBlock.ts.js +5 -0
- package/dist/src/blocks/TransformDataBlock.ts.js +1 -0
- package/dist/types/internal-messages.d.ts +1 -0
- package/dist/types/internal-messages.d.ts.map +1 -1
- package/dist/vendor/vite-client.js +1 -1
- package/package.json +1 -1
package/dist/sdk/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var Pn = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var ue = (r, e, t) =>
|
|
2
|
+
var Nn = (r, e, t) => e in r ? Pn(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
|
+
var ue = (r, e, t) => Nn(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
var we;
|
|
5
5
|
(function(r) {
|
|
6
6
|
r.assertEqual = (s) => {
|
|
@@ -105,7 +105,7 @@ const z = we.arrayToEnum([
|
|
|
105
105
|
"invalid_intersection_types",
|
|
106
106
|
"not_multiple_of",
|
|
107
107
|
"not_finite"
|
|
108
|
-
]),
|
|
108
|
+
]), Cn = (r) => JSON.stringify(r, null, 2).replace(/"([^"]+)":/g, "$1:");
|
|
109
109
|
class at extends Error {
|
|
110
110
|
get errors() {
|
|
111
111
|
return this.issues;
|
|
@@ -503,7 +503,7 @@ class le {
|
|
|
503
503
|
return yt.create(this, this._def);
|
|
504
504
|
}
|
|
505
505
|
nullable() {
|
|
506
|
-
return
|
|
506
|
+
return Ct.create(this, this._def);
|
|
507
507
|
}
|
|
508
508
|
nullish() {
|
|
509
509
|
return this.nullable().optional();
|
|
@@ -1590,7 +1590,7 @@ function Vt(r) {
|
|
|
1590
1590
|
} else return r instanceof dt ? new dt({
|
|
1591
1591
|
...r._def,
|
|
1592
1592
|
type: Vt(r.element)
|
|
1593
|
-
}) : r instanceof yt ? yt.create(Vt(r.unwrap())) : r instanceof
|
|
1593
|
+
}) : r instanceof yt ? yt.create(Vt(r.unwrap())) : r instanceof Ct ? Ct.create(Vt(r.unwrap())) : r instanceof vt ? vt.create(r.items.map((e) => Vt(e))) : r;
|
|
1594
1594
|
}
|
|
1595
1595
|
class Ie extends le {
|
|
1596
1596
|
constructor() {
|
|
@@ -1953,7 +1953,7 @@ sr.create = (r, e) => new sr({
|
|
|
1953
1953
|
typeName: ne.ZodUnion,
|
|
1954
1954
|
...oe(e)
|
|
1955
1955
|
});
|
|
1956
|
-
const xt = (r) => r instanceof cr ? xt(r.schema) : r instanceof ht ? xt(r.innerType()) : r instanceof ur ? [r.value] : r instanceof
|
|
1956
|
+
const xt = (r) => r instanceof cr ? xt(r.schema) : r instanceof ht ? xt(r.innerType()) : r instanceof ur ? [r.value] : r instanceof Nt ? r.options : r instanceof lr ? we.objectValues(r.enum) : r instanceof fr ? xt(r._def.innerType) : r instanceof nr ? [void 0] : r instanceof ar ? [null] : r instanceof yt ? [void 0, ...xt(r.unwrap())] : r instanceof Ct ? [null, ...xt(r.unwrap())] : r instanceof $r || r instanceof hr ? xt(r.unwrap()) : r instanceof dr ? xt(r._def.innerType) : [];
|
|
1957
1957
|
class Dr extends le {
|
|
1958
1958
|
_parse(e) {
|
|
1959
1959
|
const { ctx: t } = this._processInputParams(e);
|
|
@@ -2410,13 +2410,13 @@ ur.create = (r, e) => new ur({
|
|
|
2410
2410
|
...oe(e)
|
|
2411
2411
|
});
|
|
2412
2412
|
function rn(r, e) {
|
|
2413
|
-
return new
|
|
2413
|
+
return new Nt({
|
|
2414
2414
|
values: r,
|
|
2415
2415
|
typeName: ne.ZodEnum,
|
|
2416
2416
|
...oe(e)
|
|
2417
2417
|
});
|
|
2418
2418
|
}
|
|
2419
|
-
class
|
|
2419
|
+
class Nt extends le {
|
|
2420
2420
|
_parse(e) {
|
|
2421
2421
|
if (typeof e.data != "string") {
|
|
2422
2422
|
const t = this._getOrReturnCtx(e), a = this._def.values;
|
|
@@ -2458,19 +2458,19 @@ class Ct extends le {
|
|
|
2458
2458
|
return e;
|
|
2459
2459
|
}
|
|
2460
2460
|
extract(e, t = this._def) {
|
|
2461
|
-
return
|
|
2461
|
+
return Nt.create(e, {
|
|
2462
2462
|
...this._def,
|
|
2463
2463
|
...t
|
|
2464
2464
|
});
|
|
2465
2465
|
}
|
|
2466
2466
|
exclude(e, t = this._def) {
|
|
2467
|
-
return
|
|
2467
|
+
return Nt.create(this.options.filter((a) => !e.includes(a)), {
|
|
2468
2468
|
...this._def,
|
|
2469
2469
|
...t
|
|
2470
2470
|
});
|
|
2471
2471
|
}
|
|
2472
2472
|
}
|
|
2473
|
-
|
|
2473
|
+
Nt.create = rn;
|
|
2474
2474
|
class lr extends le {
|
|
2475
2475
|
_parse(e) {
|
|
2476
2476
|
const t = we.getValidEnumValues(this._def.values), a = this._getOrReturnCtx(e);
|
|
@@ -2630,7 +2630,7 @@ yt.create = (r, e) => new yt({
|
|
|
2630
2630
|
typeName: ne.ZodOptional,
|
|
2631
2631
|
...oe(e)
|
|
2632
2632
|
});
|
|
2633
|
-
class
|
|
2633
|
+
class Ct extends le {
|
|
2634
2634
|
_parse(e) {
|
|
2635
2635
|
return this._getType(e) === z.null ? Je(null) : this._def.innerType._parse(e);
|
|
2636
2636
|
}
|
|
@@ -2638,7 +2638,7 @@ class Nt extends le {
|
|
|
2638
2638
|
return this._def.innerType;
|
|
2639
2639
|
}
|
|
2640
2640
|
}
|
|
2641
|
-
|
|
2641
|
+
Ct.create = (r, e) => new Ct({
|
|
2642
2642
|
innerType: r,
|
|
2643
2643
|
typeName: ne.ZodNullable,
|
|
2644
2644
|
...oe(e)
|
|
@@ -2820,7 +2820,7 @@ var ne;
|
|
|
2820
2820
|
})(ne || (ne = {}));
|
|
2821
2821
|
const aa = (r, e = {
|
|
2822
2822
|
message: `Input not instance of ${r.name}`
|
|
2823
|
-
}) => nn((t) => t instanceof r, e), $e = ft.create, Lt = Ot.create, sa = Sr.create, ia = Pt.create, Tt = rr.create, oa = Ut.create, ca = Er.create, ua = nr.create, la = ar.create, fa = Yt.create, da = jt.create, ha = Et.create, pa = Tr.create, ma = dt.create, Rt = Ie.create, ya = Ie.strictCreate, ga = sr.create, va = Dr.create, wa = ir.create, ba = vt.create, ka = or.create, xa = Ar.create, _a = $t.create, Ea = Ht.create, Ta = cr.create, Aa = ur.create, Lr =
|
|
2823
|
+
}) => nn((t) => t instanceof r, e), $e = ft.create, Lt = Ot.create, sa = Sr.create, ia = Pt.create, Tt = rr.create, oa = Ut.create, ca = Er.create, ua = nr.create, la = ar.create, fa = Yt.create, da = jt.create, ha = Et.create, pa = Tr.create, ma = dt.create, Rt = Ie.create, ya = Ie.strictCreate, ga = sr.create, va = Dr.create, wa = ir.create, ba = vt.create, ka = or.create, xa = Ar.create, _a = $t.create, Ea = Ht.create, Ta = cr.create, Aa = ur.create, Lr = Nt.create, Br = lr.create, Sa = Kt.create, Gr = ht.create, Da = yt.create, Oa = Ct.create, Pa = ht.createWithPreprocess, Na = pr.create, Ca = () => $e().optional(), Ra = () => Lt().optional(), Ma = () => Tt().optional(), Fr = {
|
|
2824
2824
|
string: ((r) => ft.create({ ...r, coerce: !0 })),
|
|
2825
2825
|
number: ((r) => Ot.create({ ...r, coerce: !0 })),
|
|
2826
2826
|
boolean: ((r) => rr.create({
|
|
@@ -2829,7 +2829,7 @@ const aa = (r, e = {
|
|
|
2829
2829
|
})),
|
|
2830
2830
|
bigint: ((r) => Pt.create({ ...r, coerce: !0 })),
|
|
2831
2831
|
date: ((r) => Ut.create({ ...r, coerce: !0 }))
|
|
2832
|
-
}, Ia = te,
|
|
2832
|
+
}, Ia = te, E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2833
2833
|
__proto__: null,
|
|
2834
2834
|
BRAND: ra,
|
|
2835
2835
|
DIRTY: qt,
|
|
@@ -2849,7 +2849,7 @@ const aa = (r, e = {
|
|
|
2849
2849
|
ZodDefault: fr,
|
|
2850
2850
|
ZodDiscriminatedUnion: Dr,
|
|
2851
2851
|
ZodEffects: ht,
|
|
2852
|
-
ZodEnum:
|
|
2852
|
+
ZodEnum: Nt,
|
|
2853
2853
|
ZodError: at,
|
|
2854
2854
|
get ZodFirstPartyTypeKind() {
|
|
2855
2855
|
return ne;
|
|
@@ -2864,7 +2864,7 @@ const aa = (r, e = {
|
|
|
2864
2864
|
ZodNativeEnum: lr,
|
|
2865
2865
|
ZodNever: Et,
|
|
2866
2866
|
ZodNull: ar,
|
|
2867
|
-
ZodNullable:
|
|
2867
|
+
ZodNullable: Ct,
|
|
2868
2868
|
ZodNumber: Ot,
|
|
2869
2869
|
ZodObject: Ie,
|
|
2870
2870
|
ZodOptional: yt,
|
|
@@ -2924,11 +2924,11 @@ const aa = (r, e = {
|
|
|
2924
2924
|
oboolean: Ma,
|
|
2925
2925
|
onumber: Ra,
|
|
2926
2926
|
optional: Da,
|
|
2927
|
-
ostring:
|
|
2928
|
-
pipeline:
|
|
2927
|
+
ostring: Ca,
|
|
2928
|
+
pipeline: Na,
|
|
2929
2929
|
preprocess: Pa,
|
|
2930
2930
|
promise: Sa,
|
|
2931
|
-
quotelessJson:
|
|
2931
|
+
quotelessJson: Cn,
|
|
2932
2932
|
record: ka,
|
|
2933
2933
|
set: _a,
|
|
2934
2934
|
setErrorMap: Rn,
|
|
@@ -2953,24 +2953,24 @@ const aa = (r, e = {
|
|
|
2953
2953
|
waitSelectorTimeout: Lt().optional(),
|
|
2954
2954
|
multiple: Tt().optional()
|
|
2955
2955
|
})
|
|
2956
|
-
}), ja =
|
|
2957
|
-
type:
|
|
2958
|
-
shape:
|
|
2959
|
-
}), Fa =
|
|
2960
|
-
type:
|
|
2961
|
-
items:
|
|
2962
|
-
}), Ua =
|
|
2956
|
+
}), ja = E.object({
|
|
2957
|
+
type: E.literal("object"),
|
|
2958
|
+
shape: E.record(E.string(), E.any())
|
|
2959
|
+
}), Fa = E.object({
|
|
2960
|
+
type: E.literal("array"),
|
|
2961
|
+
items: E.any()
|
|
2962
|
+
}), Ua = E.discriminatedUnion("type", [
|
|
2963
2963
|
ja,
|
|
2964
2964
|
Fa
|
|
2965
|
-
]), an =
|
|
2966
|
-
name:
|
|
2967
|
-
sourceData:
|
|
2965
|
+
]), an = E.object({
|
|
2966
|
+
name: E.literal("ai-parse-data"),
|
|
2967
|
+
sourceData: E.any().optional(),
|
|
2968
2968
|
schemaDefinition: Ua,
|
|
2969
|
-
prompt:
|
|
2970
|
-
model:
|
|
2971
|
-
apiKey:
|
|
2969
|
+
prompt: E.string().optional(),
|
|
2970
|
+
model: E.string().optional(),
|
|
2971
|
+
apiKey: E.string().min(1, "AI API key is required"),
|
|
2972
2972
|
// 필수
|
|
2973
|
-
provider:
|
|
2973
|
+
provider: E.enum(["openai", "anthropic"])
|
|
2974
2974
|
// 필수
|
|
2975
2975
|
});
|
|
2976
2976
|
function $a(r) {
|
|
@@ -3256,17 +3256,17 @@ function qa(r, e) {
|
|
|
3256
3256
|
return e === "xpath" ? new Wa() : r.includes(">>") ? new za() : r.includes("|>") ? new Za() : new Ba();
|
|
3257
3257
|
}
|
|
3258
3258
|
const sn = wt.extend({
|
|
3259
|
-
name:
|
|
3260
|
-
includeTags:
|
|
3261
|
-
useTextContent:
|
|
3262
|
-
regex:
|
|
3263
|
-
prefixText:
|
|
3264
|
-
suffixText:
|
|
3265
|
-
filterEmpty:
|
|
3266
|
-
scrollToCollect:
|
|
3267
|
-
scrollDistance:
|
|
3268
|
-
scrollWaitMs:
|
|
3269
|
-
maxScrollAttempts:
|
|
3259
|
+
name: E.literal("get-text"),
|
|
3260
|
+
includeTags: E.boolean().optional(),
|
|
3261
|
+
useTextContent: E.boolean().optional(),
|
|
3262
|
+
regex: E.string().optional(),
|
|
3263
|
+
prefixText: E.string().optional(),
|
|
3264
|
+
suffixText: E.string().optional(),
|
|
3265
|
+
filterEmpty: E.boolean().optional(),
|
|
3266
|
+
scrollToCollect: E.boolean().optional(),
|
|
3267
|
+
scrollDistance: E.number().optional(),
|
|
3268
|
+
scrollWaitMs: E.number().optional(),
|
|
3269
|
+
maxScrollAttempts: E.number().optional()
|
|
3270
3270
|
});
|
|
3271
3271
|
function Ha(r) {
|
|
3272
3272
|
return sn.parse(r);
|
|
@@ -3358,8 +3358,8 @@ async function Ya(r) {
|
|
|
3358
3358
|
} else
|
|
3359
3359
|
Q = 0;
|
|
3360
3360
|
}
|
|
3361
|
-
const
|
|
3362
|
-
if (window.scrollBy({ top: M, behavior: "auto" }), await new Promise((B) => setTimeout(B, D)), (window.pageYOffset || document.documentElement.scrollTop) ===
|
|
3361
|
+
const C = window.pageYOffset || document.documentElement.scrollTop;
|
|
3362
|
+
if (window.scrollBy({ top: M, behavior: "auto" }), await new Promise((B) => setTimeout(B, D)), (window.pageYOffset || document.documentElement.scrollTop) === C)
|
|
3363
3363
|
break;
|
|
3364
3364
|
ae++;
|
|
3365
3365
|
}
|
|
@@ -3376,8 +3376,8 @@ function on(r, e, t, a = "", s = "") {
|
|
|
3376
3376
|
};
|
|
3377
3377
|
}
|
|
3378
3378
|
const cn = wt.extend({
|
|
3379
|
-
name:
|
|
3380
|
-
attributeName:
|
|
3379
|
+
name: E.literal("attribute-value"),
|
|
3380
|
+
attributeName: E.string()
|
|
3381
3381
|
});
|
|
3382
3382
|
function Ka(r) {
|
|
3383
3383
|
return cn.parse(r);
|
|
@@ -3400,8 +3400,8 @@ async function Ja(r) {
|
|
|
3400
3400
|
}
|
|
3401
3401
|
}
|
|
3402
3402
|
const un = wt.extend({
|
|
3403
|
-
name:
|
|
3404
|
-
type:
|
|
3403
|
+
name: E.literal("get-value-form"),
|
|
3404
|
+
type: E.enum(["text-field", "select", "checkbox"]).optional()
|
|
3405
3405
|
});
|
|
3406
3406
|
function Xa(r) {
|
|
3407
3407
|
return un.parse(r);
|
|
@@ -3443,9 +3443,9 @@ function es(r, e) {
|
|
|
3443
3443
|
throw new Error(`Invalid element type for ${e}`);
|
|
3444
3444
|
}
|
|
3445
3445
|
const ln = wt.extend({
|
|
3446
|
-
name:
|
|
3447
|
-
setValue:
|
|
3448
|
-
type:
|
|
3446
|
+
name: E.literal("set-value-form"),
|
|
3447
|
+
setValue: E.string(),
|
|
3448
|
+
type: E.enum(["text-field", "select", "checkbox"]).optional()
|
|
3449
3449
|
});
|
|
3450
3450
|
function ts(r) {
|
|
3451
3451
|
return ln.parse(r);
|
|
@@ -3483,8 +3483,8 @@ function ns(r, e, t) {
|
|
|
3483
3483
|
}
|
|
3484
3484
|
}
|
|
3485
3485
|
const fn = wt.extend({
|
|
3486
|
-
name:
|
|
3487
|
-
type:
|
|
3486
|
+
name: E.literal("clear-value-form"),
|
|
3487
|
+
type: E.enum(["text-field", "select", "checkbox"]).optional()
|
|
3488
3488
|
});
|
|
3489
3489
|
function as(r) {
|
|
3490
3490
|
return fn.parse(r);
|
|
@@ -3522,7 +3522,7 @@ function is(r, e) {
|
|
|
3522
3522
|
}
|
|
3523
3523
|
}
|
|
3524
3524
|
const dn = wt.extend({
|
|
3525
|
-
name:
|
|
3525
|
+
name: E.literal("element-exists")
|
|
3526
3526
|
});
|
|
3527
3527
|
function os(r) {
|
|
3528
3528
|
return dn.parse(r);
|
|
@@ -3542,10 +3542,10 @@ async function cs(r) {
|
|
|
3542
3542
|
}
|
|
3543
3543
|
}
|
|
3544
3544
|
const hn = wt.extend({
|
|
3545
|
-
name:
|
|
3546
|
-
textFilter:
|
|
3547
|
-
text:
|
|
3548
|
-
mode:
|
|
3545
|
+
name: E.literal("event-click"),
|
|
3546
|
+
textFilter: E.object({
|
|
3547
|
+
text: E.union([E.string(), E.array(E.string())]),
|
|
3548
|
+
mode: E.enum(["exact", "contains", "startsWith", "endsWith", "regex"])
|
|
3549
3549
|
}).optional()
|
|
3550
3550
|
});
|
|
3551
3551
|
function us(r) {
|
|
@@ -3654,12 +3654,12 @@ async function hs(r) {
|
|
|
3654
3654
|
}
|
|
3655
3655
|
await new Promise((s) => setTimeout(s, 50));
|
|
3656
3656
|
}
|
|
3657
|
-
const pn =
|
|
3658
|
-
name:
|
|
3659
|
-
key:
|
|
3660
|
-
code:
|
|
3661
|
-
keyCode:
|
|
3662
|
-
modifiers:
|
|
3657
|
+
const pn = E.object({
|
|
3658
|
+
name: E.literal("keypress"),
|
|
3659
|
+
key: E.string(),
|
|
3660
|
+
code: E.string().optional(),
|
|
3661
|
+
keyCode: E.number().optional(),
|
|
3662
|
+
modifiers: E.array(E.enum(["Alt", "Control", "Meta", "Shift"])).optional()
|
|
3663
3663
|
});
|
|
3664
3664
|
function ps(r) {
|
|
3665
3665
|
return pn.parse(r);
|
|
@@ -3683,7 +3683,7 @@ async function ys(r, e, t, a = []) {
|
|
|
3683
3683
|
data: {
|
|
3684
3684
|
key: r,
|
|
3685
3685
|
code: e || r,
|
|
3686
|
-
keyCode: t ||
|
|
3686
|
+
keyCode: t || Nr(r),
|
|
3687
3687
|
modifiers: a
|
|
3688
3688
|
}
|
|
3689
3689
|
});
|
|
@@ -3696,14 +3696,14 @@ async function ys(r, e, t, a = []) {
|
|
|
3696
3696
|
const i = new KeyboardEvent("keydown", {
|
|
3697
3697
|
key: r,
|
|
3698
3698
|
code: e || r,
|
|
3699
|
-
keyCode: t ||
|
|
3699
|
+
keyCode: t || Nr(r),
|
|
3700
3700
|
bubbles: !0,
|
|
3701
3701
|
cancelable: !0,
|
|
3702
3702
|
...Yr(a)
|
|
3703
3703
|
}), c = new KeyboardEvent("keyup", {
|
|
3704
3704
|
key: r,
|
|
3705
3705
|
code: e || r,
|
|
3706
|
-
keyCode: t ||
|
|
3706
|
+
keyCode: t || Nr(r),
|
|
3707
3707
|
bubbles: !0,
|
|
3708
3708
|
cancelable: !0,
|
|
3709
3709
|
...Yr(a)
|
|
@@ -3712,7 +3712,7 @@ async function ys(r, e, t, a = []) {
|
|
|
3712
3712
|
}
|
|
3713
3713
|
await new Promise((s) => setTimeout(s, 50));
|
|
3714
3714
|
}
|
|
3715
|
-
function
|
|
3715
|
+
function Nr(r) {
|
|
3716
3716
|
return {
|
|
3717
3717
|
Escape: 27,
|
|
3718
3718
|
Enter: 13,
|
|
@@ -3735,9 +3735,9 @@ function Yr(r) {
|
|
|
3735
3735
|
shiftKey: r.includes("Shift")
|
|
3736
3736
|
};
|
|
3737
3737
|
}
|
|
3738
|
-
const mn =
|
|
3739
|
-
name:
|
|
3740
|
-
duration:
|
|
3738
|
+
const mn = E.object({
|
|
3739
|
+
name: E.literal("wait"),
|
|
3740
|
+
duration: E.number().min(0)
|
|
3741
3741
|
});
|
|
3742
3742
|
function gs(r) {
|
|
3743
3743
|
return mn.parse(r);
|
|
@@ -3754,32 +3754,32 @@ async function vs(r) {
|
|
|
3754
3754
|
};
|
|
3755
3755
|
}
|
|
3756
3756
|
}
|
|
3757
|
-
const yn =
|
|
3758
|
-
name:
|
|
3759
|
-
conditions:
|
|
3760
|
-
urlPattern:
|
|
3761
|
-
elementExists:
|
|
3762
|
-
selector:
|
|
3763
|
-
findBy:
|
|
3757
|
+
const yn = E.object({
|
|
3758
|
+
name: E.literal("wait-for-condition"),
|
|
3759
|
+
conditions: E.object({
|
|
3760
|
+
urlPattern: E.string().optional(),
|
|
3761
|
+
elementExists: E.object({
|
|
3762
|
+
selector: E.string(),
|
|
3763
|
+
findBy: E.enum(["cssSelector", "xpath"])
|
|
3764
3764
|
}).optional(),
|
|
3765
|
-
cookieExists:
|
|
3766
|
-
storageKey:
|
|
3767
|
-
type:
|
|
3768
|
-
key:
|
|
3765
|
+
cookieExists: E.string().optional(),
|
|
3766
|
+
storageKey: E.object({
|
|
3767
|
+
type: E.enum(["localStorage", "sessionStorage"]),
|
|
3768
|
+
key: E.string()
|
|
3769
3769
|
}).optional(),
|
|
3770
|
-
userConfirmation:
|
|
3771
|
-
message:
|
|
3772
|
-
buttonText:
|
|
3770
|
+
userConfirmation: E.boolean().optional(),
|
|
3771
|
+
message: E.string().optional(),
|
|
3772
|
+
buttonText: E.string().optional()
|
|
3773
3773
|
}).refine(
|
|
3774
3774
|
(r) => r.urlPattern !== void 0 || r.elementExists !== void 0 || r.cookieExists !== void 0 || r.storageKey !== void 0 || r.userConfirmation === !0,
|
|
3775
3775
|
{
|
|
3776
3776
|
message: "At least one condition must be specified"
|
|
3777
3777
|
}
|
|
3778
3778
|
),
|
|
3779
|
-
mode:
|
|
3780
|
-
pollingIntervalMs:
|
|
3781
|
-
timeoutMs:
|
|
3782
|
-
position:
|
|
3779
|
+
mode: E.enum(["auto", "manual", "auto-or-manual"]).optional(),
|
|
3780
|
+
pollingIntervalMs: E.number().min(100).optional(),
|
|
3781
|
+
timeoutMs: E.number().min(1e3).optional(),
|
|
3782
|
+
position: E.enum(["top-left", "top-right", "bottom-left", "bottom-right"]).optional()
|
|
3783
3783
|
});
|
|
3784
3784
|
function ws(r) {
|
|
3785
3785
|
return yn.parse(r);
|
|
@@ -3891,11 +3891,11 @@ async function bs(r) {
|
|
|
3891
3891
|
};
|
|
3892
3892
|
}
|
|
3893
3893
|
}
|
|
3894
|
-
const gn =
|
|
3895
|
-
name:
|
|
3896
|
-
url:
|
|
3897
|
-
waitForLoad:
|
|
3898
|
-
timeout:
|
|
3894
|
+
const gn = E.object({
|
|
3895
|
+
name: E.literal("navigate"),
|
|
3896
|
+
url: E.string().url("Valid URL is required"),
|
|
3897
|
+
waitForLoad: E.boolean().optional(),
|
|
3898
|
+
timeout: E.number().min(0).optional()
|
|
3899
3899
|
});
|
|
3900
3900
|
function ks(r) {
|
|
3901
3901
|
return gn.parse(r);
|
|
@@ -3920,7 +3920,7 @@ async function xs(r) {
|
|
|
3920
3920
|
}
|
|
3921
3921
|
}
|
|
3922
3922
|
const vn = wt.extend({
|
|
3923
|
-
name:
|
|
3923
|
+
name: E.literal("save-assets")
|
|
3924
3924
|
});
|
|
3925
3925
|
function _s(r) {
|
|
3926
3926
|
return vn.parse(r);
|
|
@@ -3999,16 +3999,16 @@ class Ts {
|
|
|
3999
3999
|
}
|
|
4000
4000
|
}
|
|
4001
4001
|
const wn = wt.extend({
|
|
4002
|
-
name:
|
|
4003
|
-
includeText:
|
|
4004
|
-
includeTags:
|
|
4005
|
-
useTextContent:
|
|
4006
|
-
regex:
|
|
4007
|
-
prefixText:
|
|
4008
|
-
suffixText:
|
|
4009
|
-
attributes:
|
|
4010
|
-
includeSelector:
|
|
4011
|
-
includeXPath:
|
|
4002
|
+
name: E.literal("get-element-data"),
|
|
4003
|
+
includeText: E.boolean().optional(),
|
|
4004
|
+
includeTags: E.boolean().optional(),
|
|
4005
|
+
useTextContent: E.boolean().optional(),
|
|
4006
|
+
regex: E.string().optional(),
|
|
4007
|
+
prefixText: E.string().optional(),
|
|
4008
|
+
suffixText: E.string().optional(),
|
|
4009
|
+
attributes: E.array(E.string()).optional(),
|
|
4010
|
+
includeSelector: E.boolean().optional(),
|
|
4011
|
+
includeXPath: E.boolean().optional()
|
|
4012
4012
|
});
|
|
4013
4013
|
function As(r) {
|
|
4014
4014
|
return wn.parse(r);
|
|
@@ -4078,12 +4078,12 @@ function Ds(r, e, t, a, s = "", i = "", c = [], f = !1, w = !1) {
|
|
|
4078
4078
|
};
|
|
4079
4079
|
}
|
|
4080
4080
|
const bn = wt.extend({
|
|
4081
|
-
name:
|
|
4082
|
-
scrollType:
|
|
4083
|
-
distance:
|
|
4084
|
-
behavior:
|
|
4085
|
-
maxScrolls:
|
|
4086
|
-
waitAfterScroll:
|
|
4081
|
+
name: E.literal("scroll"),
|
|
4082
|
+
scrollType: E.enum(["toElement", "toBottom", "byDistance", "untilLoaded"]).optional(),
|
|
4083
|
+
distance: E.number().optional(),
|
|
4084
|
+
behavior: E.enum(["auto", "smooth"]).optional(),
|
|
4085
|
+
maxScrolls: E.number().optional(),
|
|
4086
|
+
waitAfterScroll: E.number().optional()
|
|
4087
4087
|
});
|
|
4088
4088
|
function Os(r) {
|
|
4089
4089
|
return bn.parse(r);
|
|
@@ -4104,9 +4104,9 @@ async function Ps(r) {
|
|
|
4104
4104
|
case "toElement":
|
|
4105
4105
|
if (!e)
|
|
4106
4106
|
throw new Error("Selector is required for toElement scroll type");
|
|
4107
|
-
return await
|
|
4107
|
+
return await Ns(e, f, w, s);
|
|
4108
4108
|
case "toBottom":
|
|
4109
|
-
return await
|
|
4109
|
+
return await Cs(s, c);
|
|
4110
4110
|
case "byDistance":
|
|
4111
4111
|
return await Rs(a, s);
|
|
4112
4112
|
case "untilLoaded":
|
|
@@ -4122,7 +4122,7 @@ async function Ps(r) {
|
|
|
4122
4122
|
};
|
|
4123
4123
|
}
|
|
4124
4124
|
}
|
|
4125
|
-
async function
|
|
4125
|
+
async function Ns(r, e, t, a) {
|
|
4126
4126
|
const s = await pt({ selector: r, findBy: e, option: t });
|
|
4127
4127
|
return s ? ((Array.isArray(s) ? s[0] : s).scrollIntoView({ behavior: a, block: "center" }), { data: !0 }) : {
|
|
4128
4128
|
hasError: !0,
|
|
@@ -4130,7 +4130,7 @@ async function Cs(r, e, t, a) {
|
|
|
4130
4130
|
data: !1
|
|
4131
4131
|
};
|
|
4132
4132
|
}
|
|
4133
|
-
async function
|
|
4133
|
+
async function Cs(r, e) {
|
|
4134
4134
|
let t = document.body.scrollHeight, a = 0;
|
|
4135
4135
|
const s = 50;
|
|
4136
4136
|
for (; a < s; ) {
|
|
@@ -4166,15 +4166,15 @@ async function Ms(r, e, t, a) {
|
|
|
4166
4166
|
}
|
|
4167
4167
|
return { data: !0 };
|
|
4168
4168
|
}
|
|
4169
|
-
const kn =
|
|
4170
|
-
name:
|
|
4171
|
-
url:
|
|
4172
|
-
method:
|
|
4173
|
-
headers:
|
|
4174
|
-
body:
|
|
4175
|
-
timeout:
|
|
4176
|
-
parseJson:
|
|
4177
|
-
returnHeaders:
|
|
4169
|
+
const kn = E.object({
|
|
4170
|
+
name: E.literal("fetch-api"),
|
|
4171
|
+
url: E.string(),
|
|
4172
|
+
method: E.enum(["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]).optional(),
|
|
4173
|
+
headers: E.record(E.string(), E.string()).optional(),
|
|
4174
|
+
body: E.record(E.string(), E.any()).optional(),
|
|
4175
|
+
timeout: E.number().min(0).optional(),
|
|
4176
|
+
parseJson: E.boolean().optional(),
|
|
4177
|
+
returnHeaders: E.boolean().optional()
|
|
4178
4178
|
});
|
|
4179
4179
|
function Is(r) {
|
|
4180
4180
|
return kn.parse(r);
|
|
@@ -4217,7 +4217,7 @@ function Fs(r) {
|
|
|
4217
4217
|
function kr(r) {
|
|
4218
4218
|
throw new Error('Could not dynamically require "' + r + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
4219
4219
|
}
|
|
4220
|
-
var
|
|
4220
|
+
var Cr = { exports: {} }, Jr;
|
|
4221
4221
|
function Us() {
|
|
4222
4222
|
return Jr || (Jr = 1, (function(r, e) {
|
|
4223
4223
|
(function(t) {
|
|
@@ -4309,8 +4309,8 @@ function Us() {
|
|
|
4309
4309
|
F = (j ? ", " : "") + b(be, !1, !1) + " " + D[J - 1], K > 0 ? F += b(K, !0, O) : O && (F += "th");
|
|
4310
4310
|
}
|
|
4311
4311
|
return F;
|
|
4312
|
-
},
|
|
4313
|
-
return
|
|
4312
|
+
}, N = b(v, !1, A);
|
|
4313
|
+
return N;
|
|
4314
4314
|
}
|
|
4315
4315
|
const S = {};
|
|
4316
4316
|
w.forEach(function(v, A) {
|
|
@@ -4321,19 +4321,19 @@ function Us() {
|
|
|
4321
4321
|
const b = v.toLowerCase();
|
|
4322
4322
|
S[b] = (A + 2) * 10, S[b.substring(0, v.length - 1) + "ieth"] = S[b];
|
|
4323
4323
|
}), S.hundredth = 100, D.forEach(function(v, A) {
|
|
4324
|
-
const b = v.toLowerCase(),
|
|
4325
|
-
S[b] =
|
|
4324
|
+
const b = v.toLowerCase(), N = Math.pow(10, (A + 1) * 3);
|
|
4325
|
+
S[b] = N, S[b + "th"] = N;
|
|
4326
4326
|
});
|
|
4327
4327
|
function I(v) {
|
|
4328
4328
|
const b = v.split(/,\s|\sand\s|[\s\\-]/).map((j) => S[j]);
|
|
4329
|
-
let
|
|
4329
|
+
let N = [0];
|
|
4330
4330
|
return b.forEach((j) => {
|
|
4331
4331
|
if (j < 100) {
|
|
4332
|
-
let O =
|
|
4333
|
-
O >= 1e3 && (
|
|
4332
|
+
let O = N.pop();
|
|
4333
|
+
O >= 1e3 && (N.push(O), O = 0), N.push(O + j);
|
|
4334
4334
|
} else
|
|
4335
|
-
|
|
4336
|
-
}),
|
|
4335
|
+
N.push(N.pop() * j);
|
|
4336
|
+
}), N.reduce((j, O) => j + O, 0);
|
|
4337
4337
|
}
|
|
4338
4338
|
const ae = [
|
|
4339
4339
|
[1e3, "m"],
|
|
@@ -4359,21 +4359,21 @@ function Us() {
|
|
|
4359
4359
|
return "";
|
|
4360
4360
|
}
|
|
4361
4361
|
function H(v) {
|
|
4362
|
-
for (var A = 0, b = 1,
|
|
4363
|
-
const U = v[
|
|
4362
|
+
for (var A = 0, b = 1, N = v.length - 1; N >= 0; N--) {
|
|
4363
|
+
const U = v[N], j = Q[U];
|
|
4364
4364
|
j < b ? A -= j : (b = j, A += j);
|
|
4365
4365
|
}
|
|
4366
4366
|
return A;
|
|
4367
4367
|
}
|
|
4368
|
-
function
|
|
4369
|
-
for (var b = [],
|
|
4370
|
-
b.unshift(String.fromCharCode((v - 1) % 26 +
|
|
4368
|
+
function C(v, A) {
|
|
4369
|
+
for (var b = [], N = A.charCodeAt(0); v > 0; )
|
|
4370
|
+
b.unshift(String.fromCharCode((v - 1) % 26 + N)), v = Math.floor((v - 1) / 26);
|
|
4371
4371
|
return b.join("");
|
|
4372
4372
|
}
|
|
4373
4373
|
function se(v, A) {
|
|
4374
|
-
for (var b = A.charCodeAt(0),
|
|
4375
|
-
|
|
4376
|
-
return
|
|
4374
|
+
for (var b = A.charCodeAt(0), N = 0, U = 0; U < v.length; U++)
|
|
4375
|
+
N += (v.charCodeAt(v.length - U - 1) - b + 1) * Math.pow(26, U);
|
|
4376
|
+
return N;
|
|
4377
4377
|
}
|
|
4378
4378
|
function B(v, A) {
|
|
4379
4379
|
if (typeof v > "u")
|
|
@@ -4382,7 +4382,7 @@ function Us() {
|
|
|
4382
4382
|
const b = xe(A);
|
|
4383
4383
|
return W(v, b);
|
|
4384
4384
|
}
|
|
4385
|
-
const
|
|
4385
|
+
const T = {
|
|
4386
4386
|
DECIMAL: "decimal",
|
|
4387
4387
|
LETTERS: "letters",
|
|
4388
4388
|
ROMAN: "roman",
|
|
@@ -4395,18 +4395,18 @@ function Us() {
|
|
|
4395
4395
|
};
|
|
4396
4396
|
function W(v, A) {
|
|
4397
4397
|
let b;
|
|
4398
|
-
const
|
|
4398
|
+
const N = v < 0;
|
|
4399
4399
|
switch (v = Math.abs(v), A.primary) {
|
|
4400
|
-
case
|
|
4401
|
-
b =
|
|
4400
|
+
case T.LETTERS:
|
|
4401
|
+
b = C(v, A.case === L.UPPER ? "A" : "a");
|
|
4402
4402
|
break;
|
|
4403
|
-
case
|
|
4403
|
+
case T.ROMAN:
|
|
4404
4404
|
b = pe(v), A.case === L.UPPER && (b = b.toUpperCase());
|
|
4405
4405
|
break;
|
|
4406
|
-
case
|
|
4406
|
+
case T.WORDS:
|
|
4407
4407
|
b = x(v, A.ordinal), A.case === L.UPPER ? b = b.toUpperCase() : A.case === L.LOWER && (b = b.toLowerCase());
|
|
4408
4408
|
break;
|
|
4409
|
-
case
|
|
4409
|
+
case T.DECIMAL:
|
|
4410
4410
|
b = "" + v;
|
|
4411
4411
|
var U = A.mandatoryDigits - b.length;
|
|
4412
4412
|
if (U > 0) {
|
|
@@ -4429,45 +4429,45 @@ function Us() {
|
|
|
4429
4429
|
(!J || b.length > 1 && b[b.length - 2] === "1") && (J = "th"), b = b + J;
|
|
4430
4430
|
}
|
|
4431
4431
|
break;
|
|
4432
|
-
case
|
|
4432
|
+
case T.SEQUENCE:
|
|
4433
4433
|
throw {
|
|
4434
4434
|
code: "D3130",
|
|
4435
4435
|
value: A.token
|
|
4436
4436
|
};
|
|
4437
4437
|
}
|
|
4438
|
-
return
|
|
4438
|
+
return N && (b = "-" + b), b;
|
|
4439
4439
|
}
|
|
4440
4440
|
const he = [48, 1632, 1776, 1984, 2406, 2534, 2662, 2790, 2918, 3046, 3174, 3302, 3430, 3558, 3664, 3792, 3872, 4160, 4240, 6112, 6160, 6470, 6608, 6784, 6800, 6992, 7088, 7232, 7248, 42528, 43216, 43264, 43472, 43504, 43600, 44016, 65296];
|
|
4441
4441
|
function xe(v) {
|
|
4442
4442
|
const A = {
|
|
4443
4443
|
type: "integer",
|
|
4444
|
-
primary:
|
|
4444
|
+
primary: T.DECIMAL,
|
|
4445
4445
|
case: L.LOWER,
|
|
4446
4446
|
ordinal: !1
|
|
4447
4447
|
};
|
|
4448
|
-
let b,
|
|
4448
|
+
let b, N;
|
|
4449
4449
|
const U = v.lastIndexOf(";");
|
|
4450
|
-
switch (U === -1 ? b = v : (b = v.substring(0, U),
|
|
4450
|
+
switch (U === -1 ? b = v : (b = v.substring(0, U), N = v.substring(U + 1), N[0] === "o" && (A.ordinal = !0)), b) {
|
|
4451
4451
|
case "A":
|
|
4452
4452
|
A.case = L.UPPER;
|
|
4453
4453
|
/* eslnt-disable-next-line no-fallthrough */
|
|
4454
4454
|
case "a":
|
|
4455
|
-
A.primary =
|
|
4455
|
+
A.primary = T.LETTERS;
|
|
4456
4456
|
break;
|
|
4457
4457
|
case "I":
|
|
4458
4458
|
A.case = L.UPPER;
|
|
4459
4459
|
/* eslnt-disable-next-line no-fallthrough */
|
|
4460
4460
|
case "i":
|
|
4461
|
-
A.primary =
|
|
4461
|
+
A.primary = T.ROMAN;
|
|
4462
4462
|
break;
|
|
4463
4463
|
case "W":
|
|
4464
|
-
A.case = L.UPPER, A.primary =
|
|
4464
|
+
A.case = L.UPPER, A.primary = T.WORDS;
|
|
4465
4465
|
break;
|
|
4466
4466
|
case "Ww":
|
|
4467
|
-
A.case = L.TITLE, A.primary =
|
|
4467
|
+
A.case = L.TITLE, A.primary = T.WORDS;
|
|
4468
4468
|
break;
|
|
4469
4469
|
case "w":
|
|
4470
|
-
A.primary =
|
|
4470
|
+
A.primary = T.WORDS;
|
|
4471
4471
|
break;
|
|
4472
4472
|
default: {
|
|
4473
4473
|
let j = null, O = 0, F = 0, J = [], ge = 0;
|
|
@@ -4490,7 +4490,7 @@ function Us() {
|
|
|
4490
4490
|
character: String.fromCodePoint(K)
|
|
4491
4491
|
}));
|
|
4492
4492
|
}), O > 0) {
|
|
4493
|
-
A.primary =
|
|
4493
|
+
A.primary = T.DECIMAL, A.zeroCode = j, A.mandatoryDigits = O, A.optionalDigits = F;
|
|
4494
4494
|
const ee = function(me) {
|
|
4495
4495
|
if (me.length === 0)
|
|
4496
4496
|
return 0;
|
|
@@ -4511,7 +4511,7 @@ function Us() {
|
|
|
4511
4511
|
character: J[0].character
|
|
4512
4512
|
}) : (A.regular = !1, A.groupingSeparators = J);
|
|
4513
4513
|
} else
|
|
4514
|
-
A.primary =
|
|
4514
|
+
A.primary = T.SEQUENCE, A.token = b;
|
|
4515
4515
|
}
|
|
4516
4516
|
}
|
|
4517
4517
|
return A;
|
|
@@ -4542,7 +4542,7 @@ function Us() {
|
|
|
4542
4542
|
const b = {
|
|
4543
4543
|
type: "datetime",
|
|
4544
4544
|
parts: A
|
|
4545
|
-
},
|
|
4545
|
+
}, N = function(ee, me) {
|
|
4546
4546
|
if (me > ee) {
|
|
4547
4547
|
let G = v.substring(ee, me);
|
|
4548
4548
|
G = G.split("]]").join("]"), A.push({ type: "literal", value: G });
|
|
@@ -4551,10 +4551,10 @@ function Us() {
|
|
|
4551
4551
|
for (var U = 0, j = 0; j < v.length; ) {
|
|
4552
4552
|
if (v.charAt(j) === "[") {
|
|
4553
4553
|
if (v.charAt(j + 1) === "[") {
|
|
4554
|
-
|
|
4554
|
+
N(U, j), A.push({ type: "literal", value: "[" }), j += 2, U = j;
|
|
4555
4555
|
continue;
|
|
4556
4556
|
}
|
|
4557
|
-
if (
|
|
4557
|
+
if (N(U, j), U = j, j = v.indexOf("]", U), j === -1)
|
|
4558
4558
|
throw {
|
|
4559
4559
|
code: "D3135"
|
|
4560
4560
|
};
|
|
@@ -4612,7 +4612,7 @@ function Us() {
|
|
|
4612
4612
|
}
|
|
4613
4613
|
j++;
|
|
4614
4614
|
}
|
|
4615
|
-
return
|
|
4615
|
+
return N(U, j), b;
|
|
4616
4616
|
}
|
|
4617
4617
|
const ve = ["", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"], Re = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], et = 1e3 * 60 * 60 * 24, _e = function(v) {
|
|
4618
4618
|
const A = Date.UTC(v.year, v.month);
|
|
@@ -4650,47 +4650,47 @@ function Us() {
|
|
|
4650
4650
|
b = v.getUTCDate();
|
|
4651
4651
|
break;
|
|
4652
4652
|
case "d": {
|
|
4653
|
-
const
|
|
4654
|
-
b = (
|
|
4653
|
+
const N = Date.UTC(v.getUTCFullYear(), v.getUTCMonth(), v.getUTCDate()), U = Date.UTC(v.getUTCFullYear(), 0);
|
|
4654
|
+
b = (N - U) / et + 1;
|
|
4655
4655
|
break;
|
|
4656
4656
|
}
|
|
4657
4657
|
case "F":
|
|
4658
4658
|
b = v.getUTCDay(), b === 0 && (b = 7);
|
|
4659
4659
|
break;
|
|
4660
4660
|
case "W": {
|
|
4661
|
-
const
|
|
4661
|
+
const N = fe(v.getUTCFullYear(), 0), U = _e(N), j = Date.UTC(N.year, v.getUTCMonth(), v.getUTCDate());
|
|
4662
4662
|
let O = tt(U, j);
|
|
4663
4663
|
if (O > 52) {
|
|
4664
|
-
const F = _e(
|
|
4664
|
+
const F = _e(N.nextYear());
|
|
4665
4665
|
j >= F && (O = 1);
|
|
4666
4666
|
} else if (O < 1) {
|
|
4667
|
-
const F = _e(
|
|
4667
|
+
const F = _e(N.previousYear());
|
|
4668
4668
|
O = tt(F, j);
|
|
4669
4669
|
}
|
|
4670
4670
|
b = Math.floor(O);
|
|
4671
4671
|
break;
|
|
4672
4672
|
}
|
|
4673
4673
|
case "w": {
|
|
4674
|
-
const
|
|
4674
|
+
const N = fe(v.getUTCFullYear(), v.getUTCMonth()), U = _e(N), j = Date.UTC(N.year, N.month, v.getUTCDate());
|
|
4675
4675
|
let O = tt(U, j);
|
|
4676
4676
|
if (O > 4) {
|
|
4677
|
-
const F = _e(
|
|
4677
|
+
const F = _e(N.nextMonth());
|
|
4678
4678
|
j >= F && (O = 1);
|
|
4679
4679
|
} else if (O < 1) {
|
|
4680
|
-
const F = _e(
|
|
4680
|
+
const F = _e(N.previousMonth());
|
|
4681
4681
|
O = tt(F, j);
|
|
4682
4682
|
}
|
|
4683
4683
|
b = Math.floor(O);
|
|
4684
4684
|
break;
|
|
4685
4685
|
}
|
|
4686
4686
|
case "X": {
|
|
4687
|
-
const
|
|
4688
|
-
O < U ? b =
|
|
4687
|
+
const N = fe(v.getUTCFullYear(), 0), U = _e(N), j = _e(N.nextYear()), O = v.getTime();
|
|
4688
|
+
O < U ? b = N.year - 1 : O >= j ? b = N.year + 1 : b = N.year;
|
|
4689
4689
|
break;
|
|
4690
4690
|
}
|
|
4691
4691
|
case "x": {
|
|
4692
|
-
const
|
|
4693
|
-
F < U ? b =
|
|
4692
|
+
const N = fe(v.getUTCFullYear(), v.getUTCMonth()), U = _e(N), j = N.nextMonth(), O = _e(j), F = v.getTime();
|
|
4693
|
+
F < U ? b = N.previousMonth().month + 1 : F >= O ? b = j.month + 1 : b = N.month + 1;
|
|
4694
4694
|
break;
|
|
4695
4695
|
}
|
|
4696
4696
|
case "H":
|
|
@@ -4726,10 +4726,10 @@ function Us() {
|
|
|
4726
4726
|
};
|
|
4727
4727
|
let Fe = null;
|
|
4728
4728
|
function st(v, A, b) {
|
|
4729
|
-
var
|
|
4729
|
+
var N = 0, U = 0;
|
|
4730
4730
|
if (typeof b < "u") {
|
|
4731
4731
|
const be = parseInt(b);
|
|
4732
|
-
|
|
4732
|
+
N = Math.floor(be / 100), U = be % 100;
|
|
4733
4733
|
}
|
|
4734
4734
|
var j = function(be, K) {
|
|
4735
4735
|
var ee = ie(be, K.component);
|
|
@@ -4750,13 +4750,13 @@ function Us() {
|
|
|
4750
4750
|
else if (K.component === "f")
|
|
4751
4751
|
ee = W(ee, K.integerFormat);
|
|
4752
4752
|
else if (K.component === "Z" || K.component === "z") {
|
|
4753
|
-
const me =
|
|
4753
|
+
const me = N * 100 + U;
|
|
4754
4754
|
if (K.integerFormat.regular)
|
|
4755
4755
|
ee = W(me, K.integerFormat);
|
|
4756
4756
|
else {
|
|
4757
4757
|
const G = K.integerFormat.mandatoryDigits;
|
|
4758
4758
|
if (G === 1 || G === 2)
|
|
4759
|
-
ee = W(
|
|
4759
|
+
ee = W(N, K.integerFormat), U !== 0 && (ee += ":" + B(U, "00"));
|
|
4760
4760
|
else if (G === 3 || G === 4)
|
|
4761
4761
|
ee = W(me, K.integerFormat);
|
|
4762
4762
|
else
|
|
@@ -4771,7 +4771,7 @@ function Us() {
|
|
|
4771
4771
|
};
|
|
4772
4772
|
let O;
|
|
4773
4773
|
typeof A > "u" ? (Fe === null && (Fe = Ae("[Y0001]-[M01]-[D01]T[H01]:[m01]:[s01].[f001][Z01:01t]")), O = Fe) : O = Ae(A);
|
|
4774
|
-
const F = (60 *
|
|
4774
|
+
const F = (60 * N + U) * 60 * 1e3, J = new Date(v + F);
|
|
4775
4775
|
let ge = "";
|
|
4776
4776
|
return O.parts.forEach(function(be) {
|
|
4777
4777
|
be.type === "literal" ? ge += be.value : ge += j(J, be);
|
|
@@ -4781,20 +4781,20 @@ function Us() {
|
|
|
4781
4781
|
var A = {};
|
|
4782
4782
|
if (v.type === "datetime")
|
|
4783
4783
|
A.type = "datetime", A.parts = v.parts.map(function(b) {
|
|
4784
|
-
var
|
|
4784
|
+
var N = {};
|
|
4785
4785
|
if (b.type === "literal")
|
|
4786
|
-
|
|
4786
|
+
N.regex = b.value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
4787
4787
|
else if (b.component === "Z" || b.component === "z") {
|
|
4788
4788
|
let j;
|
|
4789
|
-
Array.isArray(b.integerFormat.groupingSeparators) || (j = b.integerFormat.groupingSeparators),
|
|
4789
|
+
Array.isArray(b.integerFormat.groupingSeparators) || (j = b.integerFormat.groupingSeparators), N.regex = "", b.component === "z" && (N.regex = "GMT"), N.regex += "[-+][0-9]+", j && (N.regex += j.character + "[0-9]+"), N.parse = function(O) {
|
|
4790
4790
|
b.component === "z" && (O = O.substring(3));
|
|
4791
4791
|
let F = 0, J = 0;
|
|
4792
4792
|
return j ? (F = Number.parseInt(O.substring(0, O.indexOf(j.character))), J = Number.parseInt(O.substring(O.indexOf(j.character) + 1))) : O.length - 1 <= 2 ? F = Number.parseInt(O) : (F = Number.parseInt(O.substring(0, 3)), J = Number.parseInt(O.substring(3))), F * 60 + J;
|
|
4793
4793
|
};
|
|
4794
4794
|
} else if (b.integerFormat)
|
|
4795
|
-
|
|
4795
|
+
N = d(b.integerFormat);
|
|
4796
4796
|
else {
|
|
4797
|
-
|
|
4797
|
+
N.regex = "[a-zA-Z]+";
|
|
4798
4798
|
var U = {};
|
|
4799
4799
|
if (b.component === "M" || b.component === "x")
|
|
4800
4800
|
Re.forEach(function(j, O) {
|
|
@@ -4811,40 +4811,40 @@ function Us() {
|
|
|
4811
4811
|
code: "D3133",
|
|
4812
4812
|
value: b.component
|
|
4813
4813
|
};
|
|
4814
|
-
|
|
4814
|
+
N.parse = function(j) {
|
|
4815
4815
|
return U[j];
|
|
4816
4816
|
};
|
|
4817
4817
|
}
|
|
4818
|
-
return
|
|
4818
|
+
return N.component = b.component, N;
|
|
4819
4819
|
});
|
|
4820
4820
|
else {
|
|
4821
4821
|
A.type = "integer";
|
|
4822
4822
|
const b = v.case === L.UPPER;
|
|
4823
4823
|
switch (v.primary) {
|
|
4824
|
-
case
|
|
4825
|
-
A.regex = b ? "[A-Z]+" : "[a-z]+", A.parse = function(
|
|
4826
|
-
return se(
|
|
4824
|
+
case T.LETTERS:
|
|
4825
|
+
A.regex = b ? "[A-Z]+" : "[a-z]+", A.parse = function(N) {
|
|
4826
|
+
return se(N, b ? "A" : "a");
|
|
4827
4827
|
};
|
|
4828
4828
|
break;
|
|
4829
|
-
case
|
|
4830
|
-
A.regex = b ? "[MDCLXVI]+" : "[mdclxvi]+", A.parse = function(
|
|
4831
|
-
return H(b ?
|
|
4829
|
+
case T.ROMAN:
|
|
4830
|
+
A.regex = b ? "[MDCLXVI]+" : "[mdclxvi]+", A.parse = function(N) {
|
|
4831
|
+
return H(b ? N : N.toUpperCase());
|
|
4832
4832
|
};
|
|
4833
4833
|
break;
|
|
4834
|
-
case
|
|
4835
|
-
A.regex = "(?:" + Object.keys(S).concat("and", "[\\-, ]").join("|") + ")+", A.parse = function(
|
|
4836
|
-
return I(
|
|
4834
|
+
case T.WORDS:
|
|
4835
|
+
A.regex = "(?:" + Object.keys(S).concat("and", "[\\-, ]").join("|") + ")+", A.parse = function(N) {
|
|
4836
|
+
return I(N.toLowerCase());
|
|
4837
4837
|
};
|
|
4838
4838
|
break;
|
|
4839
|
-
case
|
|
4840
|
-
A.regex = "[0-9]", v.parseWidth ? A.regex += `{${v.parseWidth}}` : A.regex += "+", v.ordinal && (A.regex += "(?:th|st|nd|rd)"), A.parse = function(
|
|
4841
|
-
let U =
|
|
4842
|
-
return v.ordinal && (U =
|
|
4839
|
+
case T.DECIMAL:
|
|
4840
|
+
A.regex = "[0-9]", v.parseWidth ? A.regex += `{${v.parseWidth}}` : A.regex += "+", v.ordinal && (A.regex += "(?:th|st|nd|rd)"), A.parse = function(N) {
|
|
4841
|
+
let U = N;
|
|
4842
|
+
return v.ordinal && (U = N.substring(0, N.length - 2)), v.regular ? U = U.split(",").join("") : v.groupingSeparators.forEach((j) => {
|
|
4843
4843
|
U = U.split(j.character).join("");
|
|
4844
4844
|
}), v.zeroCode !== 48 && (U = U.split("").map((j) => String.fromCodePoint(j.codePointAt(0) - v.zeroCode + 48)).join("")), parseInt(U);
|
|
4845
4845
|
};
|
|
4846
4846
|
break;
|
|
4847
|
-
case
|
|
4847
|
+
case T.SEQUENCE:
|
|
4848
4848
|
throw {
|
|
4849
4849
|
code: "D3130",
|
|
4850
4850
|
value: v.token
|
|
@@ -4860,12 +4860,12 @@ function Us() {
|
|
|
4860
4860
|
return d(b).parse(v);
|
|
4861
4861
|
}
|
|
4862
4862
|
function V(v, A) {
|
|
4863
|
-
const b = Ae(A),
|
|
4863
|
+
const b = Ae(A), N = d(b), U = "^" + N.parts.map((J) => "(" + J.regex + ")").join("") + "$";
|
|
4864
4864
|
var O = new RegExp(U, "i").exec(v);
|
|
4865
4865
|
if (O !== null) {
|
|
4866
4866
|
const G = {};
|
|
4867
4867
|
for (let De = 1; De < O.length; De++) {
|
|
4868
|
-
const u =
|
|
4868
|
+
const u = N.parts[De - 1];
|
|
4869
4869
|
u.parse && (G[u.component] = u.parse(O[De]));
|
|
4870
4870
|
}
|
|
4871
4871
|
if (Object.getOwnPropertyNames(G).length === 0)
|
|
@@ -4935,7 +4935,7 @@ function Us() {
|
|
|
4935
4935
|
var c = t("./utils");
|
|
4936
4936
|
const f = (() => {
|
|
4937
4937
|
var w = c.isNumeric, k = c.isArrayOfStrings, M = c.isArrayOfNumbers, D = c.createSequence, x = c.isSequence, S = c.isFunction, I = c.isLambda, ae = c.isPromise, Q = c.getFunctionArity, pe = c.isDeepEqual, H = c.stringToArray;
|
|
4938
|
-
function
|
|
4938
|
+
function C(n) {
|
|
4939
4939
|
if (!(typeof n > "u")) {
|
|
4940
4940
|
var o = 0;
|
|
4941
4941
|
return n.forEach(function(l) {
|
|
@@ -4950,7 +4950,7 @@ function Us() {
|
|
|
4950
4950
|
if (!(typeof n > "u" || n.length === 0))
|
|
4951
4951
|
return Math.max.apply(Math, n);
|
|
4952
4952
|
}
|
|
4953
|
-
function
|
|
4953
|
+
function T(n) {
|
|
4954
4954
|
if (!(typeof n > "u" || n.length === 0))
|
|
4955
4955
|
return Math.min.apply(Math, n);
|
|
4956
4956
|
}
|
|
@@ -5138,14 +5138,14 @@ function Us() {
|
|
|
5138
5138
|
if (typeof ye < "u") {
|
|
5139
5139
|
for (; typeof ye < "u" && (typeof g > "u" || X < g); ) {
|
|
5140
5140
|
R += n.substring(q, ye.start);
|
|
5141
|
-
var
|
|
5142
|
-
if (ae(
|
|
5143
|
-
R +=
|
|
5141
|
+
var Ne = _.apply(p, [ye]);
|
|
5142
|
+
if (ae(Ne) && (Ne = await Ne), typeof Ne == "string")
|
|
5143
|
+
R += Ne;
|
|
5144
5144
|
else
|
|
5145
5145
|
throw {
|
|
5146
5146
|
code: "D3012",
|
|
5147
5147
|
stack: new Error().stack,
|
|
5148
|
-
value:
|
|
5148
|
+
value: Ne
|
|
5149
5149
|
};
|
|
5150
5150
|
q = ye.start + ye.match.length, X++, ye = await fe(ye.next);
|
|
5151
5151
|
}
|
|
@@ -5308,22 +5308,22 @@ function Us() {
|
|
|
5308
5308
|
for (var Be, nt = re.length - 1; nt >= 0; nt--)
|
|
5309
5309
|
if (Be = re.charAt(nt), X.indexOf(Be) !== -1 && Be !== p["exponent-separator"])
|
|
5310
5310
|
return re.substring(nt + 1);
|
|
5311
|
-
})(),
|
|
5312
|
-
rt === -1 || rt > re.length - Ye.length ? (Xe =
|
|
5311
|
+
})(), Ce = re.substring(Me.length, re.length - Ye.length), Xe, Dt, Qe, It, rt = re.indexOf(p["exponent-separator"], Me.length);
|
|
5312
|
+
rt === -1 || rt > re.length - Ye.length ? (Xe = Ce, Dt = void 0) : (Xe = Ce.substring(0, rt), Dt = Ce.substring(rt + 1));
|
|
5313
5313
|
var ut = Xe.indexOf(p["decimal-separator"]);
|
|
5314
5314
|
return ut === -1 ? (Qe = Xe, It = Ye) : (Qe = Xe.substring(0, ut), It = Xe.substring(ut + 1)), {
|
|
5315
5315
|
prefix: Me,
|
|
5316
5316
|
suffix: Ye,
|
|
5317
|
-
activePart:
|
|
5317
|
+
activePart: Ce,
|
|
5318
5318
|
mantissaPart: Xe,
|
|
5319
5319
|
exponentPart: Dt,
|
|
5320
5320
|
integerPart: Qe,
|
|
5321
5321
|
fractionalPart: It,
|
|
5322
5322
|
subpicture: re
|
|
5323
5323
|
};
|
|
5324
|
-
},
|
|
5325
|
-
var Me, Ye,
|
|
5326
|
-
Xe !==
|
|
5324
|
+
}, Ne = function(re) {
|
|
5325
|
+
var Me, Ye, Ce = re.subpicture, Xe = Ce.indexOf(p["decimal-separator"]);
|
|
5326
|
+
Xe !== Ce.lastIndexOf(p["decimal-separator"]) && (Me = "D3081"), Ce.indexOf(p.percent) !== Ce.lastIndexOf(p.percent) && (Me = "D3082"), Ce.indexOf(p["per-mille"]) !== Ce.lastIndexOf(p["per-mille"]) && (Me = "D3083"), Ce.indexOf(p.percent) !== -1 && Ce.indexOf(p["per-mille"]) !== -1 && (Me = "D3084");
|
|
5327
5327
|
var Dt = !1;
|
|
5328
5328
|
for (Ye = 0; Ye < re.mantissaPart.length; Ye++) {
|
|
5329
5329
|
var Qe = re.mantissaPart.charAt(Ye);
|
|
@@ -5336,7 +5336,7 @@ function Us() {
|
|
|
5336
5336
|
var It = re.activePart.split("").map(function(Be) {
|
|
5337
5337
|
return X.indexOf(Be) === -1 ? "p" : "a";
|
|
5338
5338
|
}).join("");
|
|
5339
|
-
It.indexOf("p") !== -1 && (Me = "D3086"), Xe !== -1 ? (
|
|
5339
|
+
It.indexOf("p") !== -1 && (Me = "D3086"), Xe !== -1 ? (Ce.charAt(Xe - 1) === p["grouping-separator"] || Ce.charAt(Xe + 1) === p["grouping-separator"]) && (Me = "D3087") : re.integerPart.charAt(re.integerPart.length - 1) === p["grouping-separator"] && (Me = "D3088"), Ce.indexOf(p["grouping-separator"] + p["grouping-separator"]) !== -1 && (Me = "D3089");
|
|
5340
5340
|
var rt = re.integerPart.indexOf(p.digit);
|
|
5341
5341
|
rt !== -1 && re.integerPart.substring(0, rt).split("").filter(function(Be) {
|
|
5342
5342
|
return _.indexOf(Be) > -1;
|
|
@@ -5344,7 +5344,7 @@ function Us() {
|
|
|
5344
5344
|
return _.indexOf(Be) > -1;
|
|
5345
5345
|
}).length > 0 && (Me = "D3091");
|
|
5346
5346
|
var ut = typeof re.exponentPart == "string";
|
|
5347
|
-
if (ut && re.exponentPart.length > 0 && (
|
|
5347
|
+
if (ut && re.exponentPart.length > 0 && (Ce.indexOf(p.percent) !== -1 || Ce.indexOf(p["per-mille"]) !== -1) && (Me = "D3092"), ut && (re.exponentPart.length === 0 || re.exponentPart.split("").filter(function(Be) {
|
|
5348
5348
|
return _.indexOf(Be) === -1;
|
|
5349
5349
|
}).length > 0) && (Me = "D3093"), Me)
|
|
5350
5350
|
throw {
|
|
@@ -5360,7 +5360,7 @@ function Us() {
|
|
|
5360
5360
|
er.push(br), kt = re.integerPart.indexOf(p["grouping-separator"], kt + 1);
|
|
5361
5361
|
}
|
|
5362
5362
|
return er;
|
|
5363
|
-
}, Ye = Me(re.integerPart),
|
|
5363
|
+
}, Ye = Me(re.integerPart), Ce = function(Ve) {
|
|
5364
5364
|
if (Ve.length === 0)
|
|
5365
5365
|
return 0;
|
|
5366
5366
|
for (var wr = function(br, Wt) {
|
|
@@ -5369,7 +5369,7 @@ function Us() {
|
|
|
5369
5369
|
if (Ve.indexOf(kt * er) === -1)
|
|
5370
5370
|
return 0;
|
|
5371
5371
|
return er;
|
|
5372
|
-
}, Xe =
|
|
5372
|
+
}, Xe = Ce(Ye), Dt = Me(re.fractionalPart, !0), Qe = re.integerPart.split("").filter(function(Ve) {
|
|
5373
5373
|
return _.indexOf(Ve) !== -1;
|
|
5374
5374
|
}).length, It = Qe, rt = re.fractionalPart.split(""), ut = rt.filter(function(Ve) {
|
|
5375
5375
|
return _.indexOf(Ve) !== -1;
|
|
@@ -5394,7 +5394,7 @@ function Us() {
|
|
|
5394
5394
|
picture: re.subpicture
|
|
5395
5395
|
};
|
|
5396
5396
|
}, ze = Oe.map(ye);
|
|
5397
|
-
ze.forEach(
|
|
5397
|
+
ze.forEach(Ne);
|
|
5398
5398
|
var ke = ze.map(Se), je = p["minus-sign"], ot = p["zero-digit"], We = p["decimal-separator"], Zt = p["grouping-separator"];
|
|
5399
5399
|
ke.length === 1 && (ke.push(JSON.parse(JSON.stringify(ke[0]))), ke[1].prefix = je + ke[1].prefix);
|
|
5400
5400
|
var Ue;
|
|
@@ -5413,8 +5413,8 @@ function Us() {
|
|
|
5413
5413
|
}
|
|
5414
5414
|
var Dn = F(Mt, Ue.maximumFactionalPartSize), zr = function(re, Me) {
|
|
5415
5415
|
var Ye = Math.abs(re).toFixed(Me);
|
|
5416
|
-
return ot !== "0" && (Ye = Ye.split("").map(function(
|
|
5417
|
-
return
|
|
5416
|
+
return ot !== "0" && (Ye = Ye.split("").map(function(Ce) {
|
|
5417
|
+
return Ce >= "0" && Ce <= "9" ? _[Ce.charCodeAt(0) - 48] : Ce;
|
|
5418
5418
|
}).join("")), Ye;
|
|
5419
5419
|
}, ce = zr(Dn, Ue.maximumFactionalPartSize), Ge = ce.indexOf(".");
|
|
5420
5420
|
for (Ge === -1 ? ce = ce + We : ce = ce.replace(".", We); ce.charAt(0) === ot; )
|
|
@@ -5451,7 +5451,7 @@ function Us() {
|
|
|
5451
5451
|
return l;
|
|
5452
5452
|
}
|
|
5453
5453
|
}
|
|
5454
|
-
function
|
|
5454
|
+
function N(n) {
|
|
5455
5455
|
var o;
|
|
5456
5456
|
if (!(typeof n > "u")) {
|
|
5457
5457
|
if (typeof n == "number")
|
|
@@ -5733,8 +5733,8 @@ function Us() {
|
|
|
5733
5733
|
} else
|
|
5734
5734
|
l = o;
|
|
5735
5735
|
var g = async function(R, q) {
|
|
5736
|
-
var X = async function(ye,
|
|
5737
|
-
|
|
5736
|
+
var X = async function(ye, Ne, Se) {
|
|
5737
|
+
Ne.length === 0 ? Array.prototype.push.apply(ye, Se) : Se.length === 0 ? Array.prototype.push.apply(ye, Ne) : await l(Ne[0], Se[0]) ? (ye.push(Se[0]), await X(ye, Ne, Se.slice(1))) : (ye.push(Ne[0]), await X(ye, Ne.slice(1), Se));
|
|
5738
5738
|
}, Oe = [];
|
|
5739
5739
|
return await X(Oe, R, q), Oe;
|
|
5740
5740
|
}, p = async function(R) {
|
|
@@ -5781,10 +5781,10 @@ function Us() {
|
|
|
5781
5781
|
return Object.keys(l).length === 0 && (l = void 0), l;
|
|
5782
5782
|
}
|
|
5783
5783
|
return {
|
|
5784
|
-
sum:
|
|
5784
|
+
sum: C,
|
|
5785
5785
|
count: se,
|
|
5786
5786
|
max: B,
|
|
5787
|
-
min:
|
|
5787
|
+
min: T,
|
|
5788
5788
|
average: L,
|
|
5789
5789
|
string: W,
|
|
5790
5790
|
substring: he,
|
|
@@ -5802,7 +5802,7 @@ function Us() {
|
|
|
5802
5802
|
join: v,
|
|
5803
5803
|
formatNumber: A,
|
|
5804
5804
|
formatBase: b,
|
|
5805
|
-
number:
|
|
5805
|
+
number: N,
|
|
5806
5806
|
floor: j,
|
|
5807
5807
|
ceil: O,
|
|
5808
5808
|
round: F,
|
|
@@ -5845,7 +5845,7 @@ function Us() {
|
|
|
5845
5845
|
}).call(this, typeof Kr < "u" ? Kr : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
5846
5846
|
}, { "./utils": 6 }], 3: [function(t, a, s) {
|
|
5847
5847
|
var i = t("./datetime"), c = t("./functions"), f = t("./utils"), w = t("./parser"), k = t("./signature"), M = (function() {
|
|
5848
|
-
var D = f.isNumeric, x = f.isArrayOfStrings, S = f.isArrayOfNumbers, I = f.createSequence, ae = f.isSequence, Q = f.isFunction, pe = f.isLambda, H = f.isIterable,
|
|
5848
|
+
var D = f.isNumeric, x = f.isArrayOfStrings, S = f.isArrayOfNumbers, I = f.createSequence, ae = f.isSequence, Q = f.isFunction, pe = f.isLambda, H = f.isIterable, C = f.isPromise, se = f.getFunctionArity, B = f.isDeepEqual, T = ct(null);
|
|
5849
5849
|
async function L(u, h, y) {
|
|
5850
5850
|
var n, o = y.lookup(Symbol.for("jsonata.__evaluate_entry"));
|
|
5851
5851
|
switch (o && await o(u, h, y), u.type) {
|
|
@@ -6050,7 +6050,7 @@ function Us() {
|
|
|
6050
6050
|
n = v(o, p);
|
|
6051
6051
|
break;
|
|
6052
6052
|
case "..":
|
|
6053
|
-
n =
|
|
6053
|
+
n = N(o, p);
|
|
6054
6054
|
break;
|
|
6055
6055
|
case "in":
|
|
6056
6056
|
n = de(o, p);
|
|
@@ -6278,8 +6278,8 @@ function Us() {
|
|
|
6278
6278
|
return y.isParallelCall = ze > 0, [Se, await L(u.lhs[ke.exprIndex][1], je, ot)];
|
|
6279
6279
|
}));
|
|
6280
6280
|
for (let Se of ye) {
|
|
6281
|
-
var [X,
|
|
6282
|
-
typeof
|
|
6281
|
+
var [X, Ne] = await Se;
|
|
6282
|
+
typeof Ne < "u" && (n[X] = Ne);
|
|
6283
6283
|
}
|
|
6284
6284
|
return n;
|
|
6285
6285
|
}
|
|
@@ -6293,7 +6293,7 @@ function Us() {
|
|
|
6293
6293
|
h[n] = c.append(h[n], u[y][n]);
|
|
6294
6294
|
return h;
|
|
6295
6295
|
}
|
|
6296
|
-
function
|
|
6296
|
+
function N(u, h) {
|
|
6297
6297
|
var y;
|
|
6298
6298
|
if (typeof u < "u" && !Number.isInteger(u))
|
|
6299
6299
|
throw {
|
|
@@ -6373,11 +6373,11 @@ function Us() {
|
|
|
6373
6373
|
async function ge(u, h, y) {
|
|
6374
6374
|
var n, o = h, l = !!h.tupleStream, g = async function(_, R) {
|
|
6375
6375
|
for (var q = 0, X = 0; q === 0 && X < u.terms.length; X++) {
|
|
6376
|
-
var Oe = u.terms[X], ye = _,
|
|
6377
|
-
l && (ye = _["@"],
|
|
6378
|
-
var Se = await L(Oe.expression, ye,
|
|
6379
|
-
ye = R,
|
|
6380
|
-
var ze = await L(Oe.expression, ye,
|
|
6376
|
+
var Oe = u.terms[X], ye = _, Ne = y;
|
|
6377
|
+
l && (ye = _["@"], Ne = he(y, _));
|
|
6378
|
+
var Se = await L(Oe.expression, ye, Ne);
|
|
6379
|
+
ye = R, Ne = y, l && (ye = R["@"], Ne = he(y, R));
|
|
6380
|
+
var ze = await L(Oe.expression, ye, Ne), ke = typeof Se, je = typeof ze;
|
|
6381
6381
|
if (ke === "undefined") {
|
|
6382
6382
|
q = je === "undefined" ? 0 : 1;
|
|
6383
6383
|
continue;
|
|
@@ -6446,13 +6446,13 @@ function Us() {
|
|
|
6446
6446
|
if (typeof u.delete < "u") {
|
|
6447
6447
|
var ye = await L(u.delete, R, y);
|
|
6448
6448
|
if (typeof ye < "u") {
|
|
6449
|
-
var
|
|
6449
|
+
var Ne = ye;
|
|
6450
6450
|
if (Array.isArray(ye) || (ye = [ye]), !x(ye))
|
|
6451
6451
|
throw {
|
|
6452
6452
|
code: "T2012",
|
|
6453
6453
|
stack: new Error().stack,
|
|
6454
6454
|
position: u.delete.position,
|
|
6455
|
-
value:
|
|
6455
|
+
value: Ne
|
|
6456
6456
|
};
|
|
6457
6457
|
for (var Se = 0; Se < ye.length; Se++)
|
|
6458
6458
|
typeof R == "object" && R !== null && delete R[ye[Se]];
|
|
@@ -6538,9 +6538,9 @@ function Us() {
|
|
|
6538
6538
|
environment: n,
|
|
6539
6539
|
input: y
|
|
6540
6540
|
};
|
|
6541
|
-
o = u.implementation.apply(g, l), H(o) && (o = o.next().value),
|
|
6541
|
+
o = u.implementation.apply(g, l), H(o) && (o = o.next().value), C(o) && (o = await o);
|
|
6542
6542
|
} else if (typeof u == "function")
|
|
6543
|
-
o = u.apply(y, l),
|
|
6543
|
+
o = u.apply(y, l), C(o) && (o = await o);
|
|
6544
6544
|
else
|
|
6545
6545
|
throw {
|
|
6546
6546
|
code: "T1006",
|
|
@@ -6635,7 +6635,7 @@ function Us() {
|
|
|
6635
6635
|
}), o = {
|
|
6636
6636
|
environment: h
|
|
6637
6637
|
}, l = u.apply(o, n);
|
|
6638
|
-
return
|
|
6638
|
+
return C(l) && (l = await l), l;
|
|
6639
6639
|
}
|
|
6640
6640
|
function St(u) {
|
|
6641
6641
|
var h = u.toString(), y = /\(([^)]*)\)/.exec(h)[1], n = y.split(",");
|
|
@@ -6702,7 +6702,7 @@ function Us() {
|
|
|
6702
6702
|
}
|
|
6703
6703
|
return y;
|
|
6704
6704
|
}
|
|
6705
|
-
|
|
6705
|
+
T.bind("sum", Z(c.sum, "<a<n>:n>")), T.bind("count", Z(c.count, "<a:n>")), T.bind("max", Z(c.max, "<a<n>:n>")), T.bind("min", Z(c.min, "<a<n>:n>")), T.bind("average", Z(c.average, "<a<n>:n>")), T.bind("string", Z(c.string, "<x-b?:s>")), T.bind("substring", Z(c.substring, "<s-nn?:s>")), T.bind("substringBefore", Z(c.substringBefore, "<s-s:s>")), T.bind("substringAfter", Z(c.substringAfter, "<s-s:s>")), T.bind("lowercase", Z(c.lowercase, "<s-:s>")), T.bind("uppercase", Z(c.uppercase, "<s-:s>")), T.bind("length", Z(c.length, "<s-:n>")), T.bind("trim", Z(c.trim, "<s-:s>")), T.bind("pad", Z(c.pad, "<s-ns?:s>")), T.bind("match", Z(c.match, "<s-f<s:o>n?:a<o>>")), T.bind("contains", Z(c.contains, "<s-(sf):b>")), T.bind("replace", Z(c.replace, "<s-(sf)(sf)n?:s>")), T.bind("split", Z(c.split, "<s-(sf)n?:a<s>>")), T.bind("join", Z(c.join, "<a<s>s?:s>")), T.bind("formatNumber", Z(c.formatNumber, "<n-so?:s>")), T.bind("formatBase", Z(c.formatBase, "<n-n?:s>")), T.bind("formatInteger", Z(i.formatInteger, "<n-s:s>")), T.bind("parseInteger", Z(i.parseInteger, "<s-s:n>")), T.bind("number", Z(c.number, "<(nsb)-:n>")), T.bind("floor", Z(c.floor, "<n-:n>")), T.bind("ceil", Z(c.ceil, "<n-:n>")), T.bind("round", Z(c.round, "<n-n?:n>")), T.bind("abs", Z(c.abs, "<n-:n>")), T.bind("sqrt", Z(c.sqrt, "<n-:n>")), T.bind("power", Z(c.power, "<n-n:n>")), T.bind("random", Z(c.random, "<:n>")), T.bind("boolean", Z(c.boolean, "<x-:b>")), T.bind("not", Z(c.not, "<x-:b>")), T.bind("map", Z(c.map, "<af>")), T.bind("zip", Z(c.zip, "<a+>")), T.bind("filter", Z(c.filter, "<af>")), T.bind("single", Z(c.single, "<af?>")), T.bind("reduce", Z(c.foldLeft, "<afj?:j>")), T.bind("sift", Z(c.sift, "<o-f?:o>")), T.bind("keys", Z(c.keys, "<x-:a<s>>")), T.bind("lookup", Z(c.lookup, "<x-s:x>")), T.bind("append", Z(c.append, "<xx:a>")), T.bind("exists", Z(c.exists, "<x:b>")), T.bind("spread", Z(c.spread, "<x-:a<o>>")), T.bind("merge", Z(c.merge, "<a<o>:o>")), T.bind("reverse", Z(c.reverse, "<a:a>")), T.bind("each", Z(c.each, "<o-f:a>")), T.bind("error", Z(c.error, "<s?:x>")), T.bind("assert", Z(c.assert, "<bs?:x>")), T.bind("type", Z(c.type, "<x:s>")), T.bind("sort", Z(c.sort, "<af?:a>")), T.bind("shuffle", Z(c.shuffle, "<a:a>")), T.bind("distinct", Z(c.distinct, "<x:x>")), T.bind("base64encode", Z(c.base64encode, "<s-:s>")), T.bind("base64decode", Z(c.base64decode, "<s-:s>")), T.bind("encodeUrlComponent", Z(c.encodeUrlComponent, "<s-:s>")), T.bind("encodeUrl", Z(c.encodeUrl, "<s-:s>")), T.bind("decodeUrlComponent", Z(c.decodeUrlComponent, "<s-:s>")), T.bind("decodeUrl", Z(c.decodeUrl, "<s-:s>")), T.bind("eval", Z(yr, "<sx?:x>")), T.bind("toMillis", Z(i.toMillis, "<s-s?:n>")), T.bind("fromMillis", Z(i.fromMillis, "<n-s?s?:s>")), T.bind("clone", Z(Jt, "<(oa)-:o>"));
|
|
6706
6706
|
var Bt = {
|
|
6707
6707
|
S0101: "String literal must be terminated by a matching quote",
|
|
6708
6708
|
S0102: "Number out of range: {{token}}",
|
|
@@ -6822,7 +6822,7 @@ function Us() {
|
|
|
6822
6822
|
} catch (g) {
|
|
6823
6823
|
throw mt(g), g;
|
|
6824
6824
|
}
|
|
6825
|
-
var o = ct(
|
|
6825
|
+
var o = ct(T), l = /* @__PURE__ */ new Date();
|
|
6826
6826
|
return o.bind("now", Z(function(g, p) {
|
|
6827
6827
|
return i.fromMillis(l.getTime(), g, p);
|
|
6828
6828
|
}, "<s?s?:s>")), o.bind("millis", Z(function() {
|
|
@@ -6926,10 +6926,10 @@ function Us() {
|
|
|
6926
6926
|
t: " "
|
|
6927
6927
|
}, k = function(D) {
|
|
6928
6928
|
var x = 0, S = D.length, I = function(pe, H) {
|
|
6929
|
-
var
|
|
6930
|
-
return
|
|
6929
|
+
var C = { type: pe, value: H, position: x };
|
|
6930
|
+
return C;
|
|
6931
6931
|
}, ae = function() {
|
|
6932
|
-
for (var pe = x, H = 0,
|
|
6932
|
+
for (var pe = x, H = 0, C, se, B = function(L) {
|
|
6933
6933
|
if (D.charAt(L) === "/" && H === 0) {
|
|
6934
6934
|
for (var W = 0; D.charAt(L - (W + 1)) === "\\"; )
|
|
6935
6935
|
W++;
|
|
@@ -6938,19 +6938,19 @@ function Us() {
|
|
|
6938
6938
|
}
|
|
6939
6939
|
return !1;
|
|
6940
6940
|
}; x < S; ) {
|
|
6941
|
-
var
|
|
6941
|
+
var T = D.charAt(x);
|
|
6942
6942
|
if (B(x)) {
|
|
6943
|
-
if (
|
|
6943
|
+
if (C = D.substring(pe, x), C === "")
|
|
6944
6944
|
throw {
|
|
6945
6945
|
code: "S0301",
|
|
6946
6946
|
stack: new Error().stack,
|
|
6947
6947
|
position: x
|
|
6948
6948
|
};
|
|
6949
|
-
for (x++,
|
|
6950
|
-
x++,
|
|
6951
|
-
return se = D.substring(pe, x) + "g", new RegExp(
|
|
6949
|
+
for (x++, T = D.charAt(x), pe = x; T === "i" || T === "m"; )
|
|
6950
|
+
x++, T = D.charAt(x);
|
|
6951
|
+
return se = D.substring(pe, x) + "g", new RegExp(C, se);
|
|
6952
6952
|
}
|
|
6953
|
-
(
|
|
6953
|
+
(T === "(" || T === "[" || T === "{") && D.charAt(x - 1) !== "\\" && H++, (T === ")" || T === "]" || T === "}") && D.charAt(x - 1) !== "\\" && H--, x++;
|
|
6954
6954
|
}
|
|
6955
6955
|
throw {
|
|
6956
6956
|
code: "S0302",
|
|
@@ -6963,13 +6963,13 @@ function Us() {
|
|
|
6963
6963
|
\r\v`.indexOf(H) > -1; )
|
|
6964
6964
|
x++, H = D.charAt(x);
|
|
6965
6965
|
if (H === "/" && D.charAt(x + 1) === "*") {
|
|
6966
|
-
var
|
|
6966
|
+
var C = x;
|
|
6967
6967
|
for (x += 2, H = D.charAt(x); !(H === "*" && D.charAt(x + 1) === "/"); )
|
|
6968
6968
|
if (H = D.charAt(++x), x >= S)
|
|
6969
6969
|
throw {
|
|
6970
6970
|
code: "S0106",
|
|
6971
6971
|
stack: new Error().stack,
|
|
6972
|
-
position:
|
|
6972
|
+
position: C
|
|
6973
6973
|
};
|
|
6974
6974
|
return x += 2, H = D.charAt(x), Q(pe);
|
|
6975
6975
|
}
|
|
@@ -7003,9 +7003,9 @@ function Us() {
|
|
|
7003
7003
|
if (x++, H = D.charAt(x), Object.prototype.hasOwnProperty.call(w, H))
|
|
7004
7004
|
B += w[H];
|
|
7005
7005
|
else if (H === "u") {
|
|
7006
|
-
var
|
|
7007
|
-
if (/^[0-9a-fA-F]+$/.test(
|
|
7008
|
-
var L = parseInt(
|
|
7006
|
+
var T = D.substr(x + 1, 4);
|
|
7007
|
+
if (/^[0-9a-fA-F]+$/.test(T)) {
|
|
7008
|
+
var L = parseInt(T, 16);
|
|
7009
7009
|
B += String.fromCharCode(L), x += 4;
|
|
7010
7010
|
} else
|
|
7011
7011
|
throw {
|
|
@@ -7098,7 +7098,7 @@ function Us() {
|
|
|
7098
7098
|
return d.remaining = pe(), d.type = "error", Q.push(d), d;
|
|
7099
7099
|
throw d.stack = new Error().stack, d;
|
|
7100
7100
|
}
|
|
7101
|
-
},
|
|
7101
|
+
}, C = function(d, m) {
|
|
7102
7102
|
var V = ae[d];
|
|
7103
7103
|
return m = m || 0, V ? m >= V.lbp && (V.lbp = m) : (V = Object.create(H), V.id = V.value = d, V.lbp = m, ae[d] = V), V;
|
|
7104
7104
|
}, se = function(d) {
|
|
@@ -7156,37 +7156,37 @@ function Us() {
|
|
|
7156
7156
|
});
|
|
7157
7157
|
}
|
|
7158
7158
|
return S = Object.create(A), S.value = Ee, S.type = v, S.position = Pe.position, S;
|
|
7159
|
-
},
|
|
7159
|
+
}, T = function(d) {
|
|
7160
7160
|
var m, V = S;
|
|
7161
7161
|
for (B(null, !0), m = V.nud(); d < S.lbp; )
|
|
7162
7162
|
V = S, B(), m = V.led(m);
|
|
7163
7163
|
return m;
|
|
7164
7164
|
}, L = function(d) {
|
|
7165
|
-
var m =
|
|
7165
|
+
var m = C(d, 0);
|
|
7166
7166
|
m.nud = function() {
|
|
7167
7167
|
return this;
|
|
7168
7168
|
};
|
|
7169
7169
|
}, W = function(d, m, V) {
|
|
7170
|
-
var de = m || f[d], Pe =
|
|
7170
|
+
var de = m || f[d], Pe = C(d, de);
|
|
7171
7171
|
return Pe.led = V || function(Ee) {
|
|
7172
|
-
return this.lhs = Ee, this.rhs =
|
|
7172
|
+
return this.lhs = Ee, this.rhs = T(de), this.type = "binary", this;
|
|
7173
7173
|
}, Pe;
|
|
7174
7174
|
}, he = function(d, m, V) {
|
|
7175
|
-
var de =
|
|
7175
|
+
var de = C(d, m);
|
|
7176
7176
|
return de.led = V, de;
|
|
7177
7177
|
}, xe = function(d, m) {
|
|
7178
|
-
var V =
|
|
7178
|
+
var V = C(d);
|
|
7179
7179
|
return V.nud = m || function() {
|
|
7180
|
-
return this.expression =
|
|
7180
|
+
return this.expression = T(70), this.type = "unary", this;
|
|
7181
7181
|
}, V;
|
|
7182
7182
|
};
|
|
7183
|
-
L("(end)"), L("(name)"), L("(literal)"), L("(regex)"),
|
|
7183
|
+
L("(end)"), L("(name)"), L("(literal)"), L("(regex)"), C(":"), C(";"), C(","), C(")"), C("]"), C("}"), C(".."), W("."), W("+"), W("-"), W("*"), W("/"), W("%"), W("="), W("<"), W(">"), W("!="), W("<="), W(">="), W("&"), W("and"), W("or"), W("in"), L("and"), L("or"), L("in"), xe("-"), W("~>"), W("??", f["??"], function(d) {
|
|
7184
7184
|
return this.type = "condition", this.condition = {
|
|
7185
7185
|
type: "function",
|
|
7186
7186
|
value: "(",
|
|
7187
7187
|
procedure: { type: "variable", value: "exists" },
|
|
7188
7188
|
arguments: [d]
|
|
7189
|
-
}, this.then = d, this.else =
|
|
7189
|
+
}, this.then = d, this.else = T(0), this;
|
|
7190
7190
|
}), he("(error)", 10, function(d) {
|
|
7191
7191
|
return this.lhs = d, this.error = S.error, this.remaining = pe(), this.type = "error", this;
|
|
7192
7192
|
}), xe("*", function() {
|
|
@@ -7197,7 +7197,7 @@ function Us() {
|
|
|
7197
7197
|
return this.type = "parent", this;
|
|
7198
7198
|
}), W("(", f["("], function(d) {
|
|
7199
7199
|
if (this.procedure = d, this.type = "function", this.arguments = [], S.id !== ")")
|
|
7200
|
-
for (; S.type === "operator" && S.id === "?" ? (this.type = "partial", this.arguments.push(S), B("?")) : this.arguments.push(
|
|
7200
|
+
for (; S.type === "operator" && S.id === "?" ? (this.type = "partial", this.arguments.push(S), B("?")) : this.arguments.push(T(0)), S.id === ","; )
|
|
7201
7201
|
B(",");
|
|
7202
7202
|
if (B(")", !0), d.type === "name" && (d.value === "function" || d.value === "λ")) {
|
|
7203
7203
|
if (this.arguments.forEach(function(Ee, v) {
|
|
@@ -7221,21 +7221,21 @@ function Us() {
|
|
|
7221
7221
|
return Ee.position = m + Ee.offset, se(Ee);
|
|
7222
7222
|
}
|
|
7223
7223
|
}
|
|
7224
|
-
B("{"), this.body =
|
|
7224
|
+
B("{"), this.body = T(0), B("}");
|
|
7225
7225
|
}
|
|
7226
7226
|
return this;
|
|
7227
7227
|
}), xe("(", function() {
|
|
7228
|
-
for (var d = []; S.id !== ")" && (d.push(
|
|
7228
|
+
for (var d = []; S.id !== ")" && (d.push(T(0)), S.id === ";"); )
|
|
7229
7229
|
B(";");
|
|
7230
7230
|
return B(")", !0), this.type = "block", this.expressions = d, this;
|
|
7231
7231
|
}), xe("[", function() {
|
|
7232
7232
|
var d = [];
|
|
7233
7233
|
if (S.id !== "]")
|
|
7234
7234
|
for (; ; ) {
|
|
7235
|
-
var m =
|
|
7235
|
+
var m = T(0);
|
|
7236
7236
|
if (S.id === "..") {
|
|
7237
7237
|
var V = { type: "binary", value: "..", position: S.position, lhs: m };
|
|
7238
|
-
B(".."), V.rhs =
|
|
7238
|
+
B(".."), V.rhs = T(0), m = V;
|
|
7239
7239
|
}
|
|
7240
7240
|
if (d.push(m), S.id !== ",")
|
|
7241
7241
|
break;
|
|
@@ -7248,14 +7248,14 @@ function Us() {
|
|
|
7248
7248
|
m = m.lhs;
|
|
7249
7249
|
return m.keepArray = !0, B("]"), d;
|
|
7250
7250
|
} else
|
|
7251
|
-
return this.lhs = d, this.rhs =
|
|
7251
|
+
return this.lhs = d, this.rhs = T(f["]"]), this.type = "binary", B("]", !0), this;
|
|
7252
7252
|
}), W("^", f["^"], function(d) {
|
|
7253
7253
|
B("(");
|
|
7254
7254
|
for (var m = []; ; ) {
|
|
7255
7255
|
var V = {
|
|
7256
7256
|
descending: !1
|
|
7257
7257
|
};
|
|
7258
|
-
if (S.id === "<" ? B("<") : S.id === ">" && (V.descending = !0, B(">")), V.expression =
|
|
7258
|
+
if (S.id === "<" ? B("<") : S.id === ">" && (V.descending = !0, B(">")), V.expression = T(0), m.push(V), S.id !== ",")
|
|
7259
7259
|
break;
|
|
7260
7260
|
B(",");
|
|
7261
7261
|
}
|
|
@@ -7265,9 +7265,9 @@ function Us() {
|
|
|
7265
7265
|
var m = [];
|
|
7266
7266
|
if (S.id !== "}")
|
|
7267
7267
|
for (; ; ) {
|
|
7268
|
-
var V =
|
|
7268
|
+
var V = T(0);
|
|
7269
7269
|
B(":");
|
|
7270
|
-
var de =
|
|
7270
|
+
var de = T(0);
|
|
7271
7271
|
if (m.push([V, de]), S.id !== ",")
|
|
7272
7272
|
break;
|
|
7273
7273
|
B(",");
|
|
@@ -7280,27 +7280,27 @@ function Us() {
|
|
|
7280
7280
|
stack: new Error().stack,
|
|
7281
7281
|
position: d.position,
|
|
7282
7282
|
token: d.value
|
|
7283
|
-
}) : (this.lhs = d, this.rhs =
|
|
7283
|
+
}) : (this.lhs = d, this.rhs = T(f[":="] - 1), this.type = "binary", this);
|
|
7284
7284
|
}), W("@", f["@"], function(d) {
|
|
7285
|
-
return this.lhs = d, this.rhs =
|
|
7285
|
+
return this.lhs = d, this.rhs = T(f["@"]), this.rhs.type !== "variable" ? se({
|
|
7286
7286
|
code: "S0214",
|
|
7287
7287
|
stack: new Error().stack,
|
|
7288
7288
|
position: this.rhs.position,
|
|
7289
7289
|
token: "@"
|
|
7290
7290
|
}) : (this.type = "binary", this);
|
|
7291
7291
|
}), W("#", f["#"], function(d) {
|
|
7292
|
-
return this.lhs = d, this.rhs =
|
|
7292
|
+
return this.lhs = d, this.rhs = T(f["#"]), this.rhs.type !== "variable" ? se({
|
|
7293
7293
|
code: "S0214",
|
|
7294
7294
|
stack: new Error().stack,
|
|
7295
7295
|
position: this.rhs.position,
|
|
7296
7296
|
token: "#"
|
|
7297
7297
|
}) : (this.type = "binary", this);
|
|
7298
7298
|
}), W("?", f["?"], function(d) {
|
|
7299
|
-
return this.type = "condition", this.condition = d, this.then =
|
|
7299
|
+
return this.type = "condition", this.condition = d, this.then = T(0), S.id === ":" && (B(":"), this.else = T(0)), this;
|
|
7300
7300
|
}), W("?:", f["?:"], function(d) {
|
|
7301
|
-
return this.type = "condition", this.condition = d, this.then = d, this.else =
|
|
7301
|
+
return this.type = "condition", this.condition = d, this.then = d, this.else = T(0), this;
|
|
7302
7302
|
}), xe("|", function() {
|
|
7303
|
-
return this.type = "transform", this.pattern =
|
|
7303
|
+
return this.type = "transform", this.pattern = T(0), B("|"), this.update = T(0), S.id === "," && (B(","), this.delete = T(0)), B("|"), this;
|
|
7304
7304
|
});
|
|
7305
7305
|
var Ae = function(d) {
|
|
7306
7306
|
var m;
|
|
@@ -7420,14 +7420,14 @@ function Us() {
|
|
|
7420
7420
|
break;
|
|
7421
7421
|
case "^":
|
|
7422
7422
|
m = ie(d.lhs), m.type !== "path" && (m = { type: "path", steps: [m] });
|
|
7423
|
-
var
|
|
7424
|
-
|
|
7423
|
+
var N = { type: "sort", position: d.position };
|
|
7424
|
+
N.terms = d.rhs.map(function(F) {
|
|
7425
7425
|
var J = ie(F.expression);
|
|
7426
|
-
return fe(
|
|
7426
|
+
return fe(N, J), {
|
|
7427
7427
|
descending: F.descending,
|
|
7428
7428
|
expression: J
|
|
7429
7429
|
};
|
|
7430
|
-
}), m.steps.push(
|
|
7430
|
+
}), m.steps.push(N), tt(m);
|
|
7431
7431
|
break;
|
|
7432
7432
|
case ":=":
|
|
7433
7433
|
m = { type: "bind", value: d.value, position: d.position }, m.lhs = ie(d.lhs), m.rhs = ie(d.rhs), fe(m, m.rhs);
|
|
@@ -7543,7 +7543,7 @@ function Us() {
|
|
|
7543
7543
|
return d.keepArray && (m.keepArray = !0), m;
|
|
7544
7544
|
};
|
|
7545
7545
|
I = k(D), B();
|
|
7546
|
-
var Fe =
|
|
7546
|
+
var Fe = T(0);
|
|
7547
7547
|
if (S.id !== "(end)") {
|
|
7548
7548
|
var st = {
|
|
7549
7549
|
code: "S0201",
|
|
@@ -7636,8 +7636,8 @@ function Us() {
|
|
|
7636
7636
|
break;
|
|
7637
7637
|
case "<":
|
|
7638
7638
|
if (S.type === "a" || S.type === "f") {
|
|
7639
|
-
var
|
|
7640
|
-
S.subtype = k.substring(M + 1,
|
|
7639
|
+
var C = Q(k, M, "<", ">");
|
|
7640
|
+
S.subtype = k.substring(M + 1, C), M = C;
|
|
7641
7641
|
} else
|
|
7642
7642
|
throw {
|
|
7643
7643
|
code: "S0401",
|
|
@@ -7651,7 +7651,7 @@ function Us() {
|
|
|
7651
7651
|
}
|
|
7652
7652
|
var se = "^" + D.map(function(W) {
|
|
7653
7653
|
return "(" + W.regex + ")";
|
|
7654
|
-
}).join("") + "$", B = new RegExp(se),
|
|
7654
|
+
}).join("") + "$", B = new RegExp(se), T = function(W) {
|
|
7655
7655
|
var he;
|
|
7656
7656
|
if (i.isFunction(W))
|
|
7657
7657
|
he = "f";
|
|
@@ -7701,7 +7701,7 @@ function Us() {
|
|
|
7701
7701
|
validate: function(W, he) {
|
|
7702
7702
|
var xe = "";
|
|
7703
7703
|
W.forEach(function(Re) {
|
|
7704
|
-
xe +=
|
|
7704
|
+
xe += T(Re);
|
|
7705
7705
|
});
|
|
7706
7706
|
var Te = B.exec(xe);
|
|
7707
7707
|
if (Te) {
|
|
@@ -7710,7 +7710,7 @@ function Us() {
|
|
|
7710
7710
|
var _e = W[ve], fe = Te[et + 1];
|
|
7711
7711
|
if (fe === "")
|
|
7712
7712
|
if (Re.context && Re.contextRegex) {
|
|
7713
|
-
var tt =
|
|
7713
|
+
var tt = T(he);
|
|
7714
7714
|
if (Re.contextRegex.test(tt))
|
|
7715
7715
|
Ae.push(he);
|
|
7716
7716
|
else
|
|
@@ -7734,12 +7734,12 @@ function Us() {
|
|
|
7734
7734
|
if (ie !== "a" && fe !== Re.subtype)
|
|
7735
7735
|
Fe = !1;
|
|
7736
7736
|
else if (ie === "a" && _e.length > 0) {
|
|
7737
|
-
var st =
|
|
7737
|
+
var st = T(_e[0]);
|
|
7738
7738
|
if (st !== Re.subtype.charAt(0))
|
|
7739
7739
|
Fe = !1;
|
|
7740
7740
|
else {
|
|
7741
7741
|
var d = _e.filter(function(m) {
|
|
7742
|
-
return
|
|
7742
|
+
return T(m) !== st;
|
|
7743
7743
|
});
|
|
7744
7744
|
Fe = d.length === 0;
|
|
7745
7745
|
}
|
|
@@ -7770,82 +7770,82 @@ function Us() {
|
|
|
7770
7770
|
a.exports = c;
|
|
7771
7771
|
}, { "./utils": 6 }], 6: [function(t, a, s) {
|
|
7772
7772
|
const i = (() => {
|
|
7773
|
-
function c(
|
|
7773
|
+
function c(C) {
|
|
7774
7774
|
var se = !1;
|
|
7775
|
-
if (typeof
|
|
7775
|
+
if (typeof C == "number" && (se = !isNaN(C), se && !isFinite(C)))
|
|
7776
7776
|
throw {
|
|
7777
7777
|
code: "D1001",
|
|
7778
|
-
value:
|
|
7778
|
+
value: C,
|
|
7779
7779
|
stack: new Error().stack
|
|
7780
7780
|
};
|
|
7781
7781
|
return se;
|
|
7782
7782
|
}
|
|
7783
|
-
function f(
|
|
7783
|
+
function f(C) {
|
|
7784
7784
|
var se = !1;
|
|
7785
|
-
return Array.isArray(
|
|
7785
|
+
return Array.isArray(C) && (se = C.filter(function(B) {
|
|
7786
7786
|
return typeof B != "string";
|
|
7787
7787
|
}).length === 0), se;
|
|
7788
7788
|
}
|
|
7789
|
-
function w(
|
|
7789
|
+
function w(C) {
|
|
7790
7790
|
var se = !1;
|
|
7791
|
-
return Array.isArray(
|
|
7791
|
+
return Array.isArray(C) && (se = C.filter(function(B) {
|
|
7792
7792
|
return !c(B);
|
|
7793
7793
|
}).length === 0), se;
|
|
7794
7794
|
}
|
|
7795
7795
|
function k() {
|
|
7796
|
-
var
|
|
7797
|
-
return
|
|
7796
|
+
var C = [];
|
|
7797
|
+
return C.sequence = !0, arguments.length === 1 && C.push(arguments[0]), C;
|
|
7798
7798
|
}
|
|
7799
|
-
function M(
|
|
7800
|
-
return
|
|
7799
|
+
function M(C) {
|
|
7800
|
+
return C.sequence === !0 && Array.isArray(C);
|
|
7801
7801
|
}
|
|
7802
|
-
function D(
|
|
7803
|
-
return
|
|
7802
|
+
function D(C) {
|
|
7803
|
+
return C && (C._jsonata_function === !0 || C._jsonata_lambda === !0) || typeof C == "function";
|
|
7804
7804
|
}
|
|
7805
|
-
function x(
|
|
7806
|
-
var se = typeof
|
|
7805
|
+
function x(C) {
|
|
7806
|
+
var se = typeof C.arity == "number" ? C.arity : typeof C.implementation == "function" ? C.implementation.length : typeof C.length == "number" ? C.length : C.arguments.length;
|
|
7807
7807
|
return se;
|
|
7808
7808
|
}
|
|
7809
|
-
function S(
|
|
7810
|
-
return
|
|
7809
|
+
function S(C) {
|
|
7810
|
+
return C && C._jsonata_lambda === !0;
|
|
7811
7811
|
}
|
|
7812
7812
|
var I = (typeof Symbol == "function" ? Symbol : {}).iterator || "@@iterator";
|
|
7813
|
-
function ae(
|
|
7814
|
-
return typeof
|
|
7813
|
+
function ae(C) {
|
|
7814
|
+
return typeof C == "object" && C !== null && I in C && "next" in C && typeof C.next == "function";
|
|
7815
7815
|
}
|
|
7816
|
-
function Q(
|
|
7817
|
-
if (
|
|
7816
|
+
function Q(C, se) {
|
|
7817
|
+
if (C === se)
|
|
7818
7818
|
return !0;
|
|
7819
|
-
if (typeof
|
|
7820
|
-
if (Array.isArray(
|
|
7821
|
-
if (
|
|
7819
|
+
if (typeof C == "object" && typeof se == "object" && C !== null && se !== null) {
|
|
7820
|
+
if (Array.isArray(C) && Array.isArray(se)) {
|
|
7821
|
+
if (C.length !== se.length)
|
|
7822
7822
|
return !1;
|
|
7823
|
-
for (var B = 0; B <
|
|
7824
|
-
if (!Q(
|
|
7823
|
+
for (var B = 0; B < C.length; B++)
|
|
7824
|
+
if (!Q(C[B], se[B]))
|
|
7825
7825
|
return !1;
|
|
7826
7826
|
return !0;
|
|
7827
7827
|
}
|
|
7828
|
-
var
|
|
7829
|
-
if (
|
|
7828
|
+
var T = Object.getOwnPropertyNames(C), L = Object.getOwnPropertyNames(se);
|
|
7829
|
+
if (T.length !== L.length)
|
|
7830
7830
|
return !1;
|
|
7831
|
-
for (
|
|
7832
|
-
if (
|
|
7831
|
+
for (T = T.sort(), L = L.sort(), B = 0; B < T.length; B++)
|
|
7832
|
+
if (T[B] !== L[B])
|
|
7833
7833
|
return !1;
|
|
7834
|
-
for (B = 0; B <
|
|
7835
|
-
var W =
|
|
7836
|
-
if (!Q(
|
|
7834
|
+
for (B = 0; B < T.length; B++) {
|
|
7835
|
+
var W = T[B];
|
|
7836
|
+
if (!Q(C[W], se[W]))
|
|
7837
7837
|
return !1;
|
|
7838
7838
|
}
|
|
7839
7839
|
return !0;
|
|
7840
7840
|
}
|
|
7841
7841
|
return !1;
|
|
7842
7842
|
}
|
|
7843
|
-
function pe(
|
|
7844
|
-
return typeof
|
|
7843
|
+
function pe(C) {
|
|
7844
|
+
return typeof C == "object" && C !== null && "then" in C && typeof C.then == "function";
|
|
7845
7845
|
}
|
|
7846
|
-
function H(
|
|
7846
|
+
function H(C) {
|
|
7847
7847
|
var se = [];
|
|
7848
|
-
for (let B of
|
|
7848
|
+
for (let B of C)
|
|
7849
7849
|
se.push(B);
|
|
7850
7850
|
return se;
|
|
7851
7851
|
}
|
|
@@ -7867,13 +7867,13 @@ function Us() {
|
|
|
7867
7867
|
a.exports = i;
|
|
7868
7868
|
}, {}] }, {}, [3])(3);
|
|
7869
7869
|
});
|
|
7870
|
-
})(
|
|
7870
|
+
})(Cr)), Cr.exports;
|
|
7871
7871
|
}
|
|
7872
7872
|
var $s = Us();
|
|
7873
|
-
const Ls = /* @__PURE__ */ Fs($s), xn =
|
|
7874
|
-
name:
|
|
7875
|
-
sourceData:
|
|
7876
|
-
expression:
|
|
7873
|
+
const Ls = /* @__PURE__ */ Fs($s), xn = E.object({
|
|
7874
|
+
name: E.literal("transform-data"),
|
|
7875
|
+
sourceData: E.any().optional(),
|
|
7876
|
+
expression: E.string().min(1, "JSONata expression is required")
|
|
7877
7877
|
});
|
|
7878
7878
|
function Bs(r) {
|
|
7879
7879
|
return xn.parse(r);
|
|
@@ -7893,7 +7893,7 @@ async function Zs(r) {
|
|
|
7893
7893
|
try {
|
|
7894
7894
|
i = await s.evaluate(a);
|
|
7895
7895
|
} catch (c) {
|
|
7896
|
-
throw new Error(
|
|
7896
|
+
throw console.error("JSONata evaluation failed:", c), new Error(
|
|
7897
7897
|
`JSONata evaluation failed: ${c instanceof Error ? c.message : "Unknown error"}`
|
|
7898
7898
|
);
|
|
7899
7899
|
}
|
|
@@ -7908,14 +7908,14 @@ async function Zs(r) {
|
|
|
7908
7908
|
};
|
|
7909
7909
|
}
|
|
7910
7910
|
}
|
|
7911
|
-
const _n =
|
|
7912
|
-
name:
|
|
7913
|
-
data:
|
|
7914
|
-
format:
|
|
7915
|
-
filename:
|
|
7916
|
-
csvOptions:
|
|
7917
|
-
delimiter:
|
|
7918
|
-
includeHeaders:
|
|
7911
|
+
const _n = E.object({
|
|
7912
|
+
name: E.literal("export-data"),
|
|
7913
|
+
data: E.any(),
|
|
7914
|
+
format: E.enum(["json", "csv", "xlsx"]),
|
|
7915
|
+
filename: E.string().optional(),
|
|
7916
|
+
csvOptions: E.object({
|
|
7917
|
+
delimiter: E.string().optional(),
|
|
7918
|
+
includeHeaders: E.boolean().optional()
|
|
7919
7919
|
}).optional()
|
|
7920
7920
|
});
|
|
7921
7921
|
function zs(r) {
|
|
@@ -7949,22 +7949,26 @@ async function Ws(r) {
|
|
|
7949
7949
|
};
|
|
7950
7950
|
}
|
|
7951
7951
|
}
|
|
7952
|
-
const En =
|
|
7953
|
-
name:
|
|
7954
|
-
urlPattern:
|
|
7955
|
-
method:
|
|
7956
|
-
status:
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
min:
|
|
7960
|
-
max:
|
|
7952
|
+
const En = E.object({
|
|
7953
|
+
name: E.literal("network-catch"),
|
|
7954
|
+
urlPattern: E.string().optional(),
|
|
7955
|
+
method: E.enum(["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]).optional(),
|
|
7956
|
+
status: E.union([
|
|
7957
|
+
E.number(),
|
|
7958
|
+
E.object({
|
|
7959
|
+
min: E.number().optional(),
|
|
7960
|
+
max: E.number().optional()
|
|
7961
7961
|
})
|
|
7962
7962
|
]).optional(),
|
|
7963
|
-
mimeType:
|
|
7964
|
-
|
|
7965
|
-
|
|
7966
|
-
|
|
7967
|
-
|
|
7963
|
+
mimeType: E.string().optional(),
|
|
7964
|
+
requestBodyPattern: E.union([
|
|
7965
|
+
E.string(),
|
|
7966
|
+
E.record(E.any())
|
|
7967
|
+
]).optional(),
|
|
7968
|
+
waitForRequest: E.boolean().optional(),
|
|
7969
|
+
waitTimeout: E.number().min(0).optional(),
|
|
7970
|
+
returnAll: E.boolean().optional(),
|
|
7971
|
+
includeHeaders: E.boolean().optional()
|
|
7968
7972
|
});
|
|
7969
7973
|
function Vs(r) {
|
|
7970
7974
|
return En.parse(r);
|
|
@@ -7979,6 +7983,7 @@ async function qs(r) {
|
|
|
7979
7983
|
method: r.method,
|
|
7980
7984
|
status: r.status,
|
|
7981
7985
|
mimeType: r.mimeType,
|
|
7986
|
+
requestBodyPattern: r.requestBodyPattern,
|
|
7982
7987
|
waitForRequest: r.waitForRequest || !1,
|
|
7983
7988
|
waitTimeout: r.waitTimeout || 5e3,
|
|
7984
7989
|
returnAll: r.returnAll || !1,
|
|
@@ -8443,9 +8448,9 @@ class fi {
|
|
|
8443
8448
|
const i = Ks.safeParse(s);
|
|
8444
8449
|
if (i.success) {
|
|
8445
8450
|
const w = i.data;
|
|
8446
|
-
return { ...a,
|
|
8451
|
+
return { ...a, data: w };
|
|
8447
8452
|
} else
|
|
8448
|
-
return console.warn("Invalid workspace billing data:", s, i.error), { ...a };
|
|
8453
|
+
return console.warn("Invalid workspace billing data:", s, i.error), { ...a, data: void 0 };
|
|
8449
8454
|
}
|
|
8450
8455
|
// 결제내역
|
|
8451
8456
|
async getWorkspaceBillingHistories(e, t) {
|