@design-edito/tools 0.2.19 → 0.2.22
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/agnostic/arrays/index.js +6 -6
- package/agnostic/arrays/random-pick/index.js +4 -4
- package/agnostic/colors/channels/index.js +4 -4
- package/agnostic/colors/contrast/index.js +5 -5
- package/agnostic/colors/convert/index.js +3 -3
- package/agnostic/colors/distance/index.js +4 -4
- package/agnostic/colors/grayscale/index.js +4 -4
- package/agnostic/colors/index.js +24 -24
- package/agnostic/colors/invert/index.js +4 -4
- package/agnostic/colors/lerp/index.js +4 -4
- package/agnostic/colors/luminance/index.js +4 -4
- package/agnostic/colors/palette/index.js +6 -6
- package/agnostic/colors/rotate/index.js +5 -5
- package/agnostic/colors/tidy/index.js +3 -3
- package/agnostic/css/index.js +9 -9
- package/agnostic/css/styles-set/index.js +6 -6
- package/agnostic/html/hyper-json/cast/index.js +6 -5
- package/agnostic/html/hyper-json/index.js +7 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/hjparse/index.d.ts +4 -0
- package/agnostic/html/hyper-json/smart-tags/coalesced/hjparse/index.js +24 -0
- package/agnostic/html/hyper-json/smart-tags/coalesced/hjstringify/index.d.ts +5 -0
- package/agnostic/html/hyper-json/smart-tags/coalesced/hjstringify/index.js +30 -0
- package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +6 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +6 -5
- package/agnostic/html/hyper-json/tree/index.js +6 -5
- package/agnostic/html/hyper-json/utils/index.js +6 -5
- package/agnostic/html/index.js +13 -13
- package/agnostic/html/sanitize/index.js +4 -4
- package/agnostic/html/selector-to-element/index.js +4 -4
- package/agnostic/html/string-to-nodes/index.js +5 -5
- package/agnostic/index.js +65 -65
- package/agnostic/misc/crossenv/index.js +2 -2
- package/agnostic/misc/index.js +14 -14
- package/agnostic/misc/logs/index.js +2 -2
- package/agnostic/misc/lorem-ipsum/index.js +9 -9
- package/agnostic/numbers/index.js +3 -3
- package/agnostic/objects/index.js +4 -4
- package/agnostic/optim/index.js +2 -2
- package/agnostic/random/index.js +2 -2
- package/agnostic/strings/index.js +5 -5
- package/chunks/{chunk-CRLUUTBS.js → chunk-24CGCZRJ.js} +21 -21
- package/chunks/{chunk-X5HMM3LD.js → chunk-2HU2AWWJ.js} +1 -1
- package/chunks/{chunk-PNJI3RCF.js → chunk-3PH2XFJR.js} +3 -3
- package/chunks/{chunk-L7PIZQFC.js → chunk-3RQEGKXW.js} +1 -1
- package/chunks/{chunk-ZLBSI4TR.js → chunk-3ZJNGC4R.js} +1 -1
- package/chunks/{chunk-CQEDNACN.js → chunk-6Z6GDMOR.js} +2 -2
- package/chunks/{chunk-IG4V2EWV.js → chunk-76626PSN.js} +1 -1
- package/chunks/{chunk-PKCW2NJ4.js → chunk-7ZIUGRTE.js} +1 -1
- package/chunks/{chunk-ZJSABMHZ.js → chunk-BPXES27P.js} +2 -2
- package/chunks/{chunk-ZQQ6H6BY.js → chunk-BYYRQLKP.js} +4 -4
- package/chunks/{chunk-PX4DPCZM.js → chunk-E7W2GLLQ.js} +2 -2
- package/chunks/{chunk-PVRYR5KX.js → chunk-EIQ5IQKU.js} +1 -1
- package/chunks/{chunk-PB3KFN3E.js → chunk-EWQQMFFU.js} +1 -1
- package/chunks/{chunk-YUSINH7T.js → chunk-EYL6AWH7.js} +1 -1
- package/chunks/{chunk-NCYE5WML.js → chunk-GPC6UDDY.js} +4 -4
- package/chunks/{chunk-NLCZUDXC.js → chunk-H6T4IO4Z.js} +3 -3
- package/chunks/{chunk-4P6V6CHL.js → chunk-HTCTWKY7.js} +7 -7
- package/chunks/{chunk-VI2MRY6N.js → chunk-JOBQ6JWX.js} +4 -4
- package/chunks/{chunk-TGJAXXJZ.js → chunk-KCIRDA7C.js} +8 -8
- package/chunks/{chunk-YXLHZ2KW.js → chunk-KL6DNUKC.js} +2 -2
- package/chunks/{chunk-MCRHFVAD.js → chunk-LNJGMBOZ.js} +5 -5
- package/chunks/{chunk-WAPVSFU4.js → chunk-LTQFE3ZB.js} +165 -52
- package/chunks/{chunk-XPGAVZGK.js → chunk-MKL533IV.js} +1 -1
- package/chunks/{chunk-RDQJSWRC.js → chunk-MTT7TVR3.js} +1 -1
- package/chunks/{chunk-C7SRAQMW.js → chunk-MW3KNVTG.js} +1 -1
- package/chunks/{chunk-2T2U5AD3.js → chunk-O55JNDX3.js} +33 -33
- package/chunks/{chunk-MMZRJLHD.js → chunk-OPLBIC4C.js} +4 -4
- package/chunks/{chunk-EGBJXHCW.js → chunk-PYKBU4NU.js} +1 -1
- package/chunks/{chunk-D5CCWCEI.js → chunk-QCE65XN6.js} +1 -1
- package/chunks/{chunk-3LCD73SB.js → chunk-QQC3JHRJ.js} +1 -1
- package/chunks/{chunk-HXEFDFYT.js → chunk-SV4XYWHY.js} +4 -4
- package/chunks/{chunk-WSC3WODJ.js → chunk-UTGGIUR3.js} +1 -1
- package/chunks/{chunk-KGRQKEDD.js → chunk-V7VAAA4C.js} +3 -3
- package/chunks/{chunk-TTYILNFU.js → chunk-VJSZCWSL.js} +2 -2
- package/chunks/{chunk-XLHOA3NR.js → chunk-VMBHIU4V.js} +2 -2
- package/chunks/{chunk-5CTAKAIP.js → chunk-VPCSCCCL.js} +2 -2
- package/chunks/{chunk-JRRN5FOZ.js → chunk-W5ZHG3EU.js} +4 -4
- package/chunks/{chunk-P2H6PV4O.js → chunk-WC2LQPQP.js} +1 -1
- package/chunks/{chunk-MMXUMHPQ.js → chunk-WP72YVMR.js} +21 -21
- package/chunks/{chunk-MFIGSRSO.js → chunk-Y37OW2R5.js} +1 -1
- package/chunks/{chunk-3ED56VVR.js → chunk-YPR3ZQ25.js} +4 -4
- package/chunks/{chunk-S3K2QPZ6.js → chunk-ZIJLQD6J.js} +3 -3
- package/node/@aws-s3/index.js +10 -10
- package/node/@aws-s3/storage/directory/index.js +6 -6
- package/node/@aws-s3/storage/file/index.js +9 -9
- package/node/@aws-s3/storage/index.js +9 -9
- package/node/@google-cloud/index.js +14 -14
- package/node/@google-cloud/storage/bucket/index.js +5 -5
- package/node/@google-cloud/storage/directory/index.js +6 -6
- package/node/@google-cloud/storage/file/index.js +14 -14
- package/node/@google-cloud/storage/index.js +15 -15
- package/node/cloud-storage/index.js +42 -42
- package/node/cloud-storage/operations/copy-dir/index.js +2 -2
- package/node/cloud-storage/operations/copy-file/index.js +2 -2
- package/node/cloud-storage/operations/download-file/index.js +2 -2
- package/node/cloud-storage/operations/exists-file/index.js +2 -2
- package/node/cloud-storage/operations/index.js +51 -51
- package/node/cloud-storage/operations/list-dir/index.js +2 -2
- package/node/cloud-storage/operations/move-dir/index.js +2 -2
- package/node/cloud-storage/operations/move-file/index.js +2 -2
- package/node/cloud-storage/operations/remove-dir/index.js +2 -2
- package/node/cloud-storage/operations/remove-file/index.js +2 -2
- package/node/cloud-storage/operations/stat-file/index.js +2 -2
- package/node/cloud-storage/operations/upload-file/index.js +2 -2
- package/node/ftps/directory/index.js +6 -6
- package/node/ftps/file/index.js +9 -9
- package/node/ftps/index.js +11 -11
- package/node/images/create/index.js +15 -15
- package/node/images/format/index.js +15 -15
- package/node/images/index.js +30 -30
- package/node/images/metadata/index.js +15 -15
- package/node/images/transform/index.js +26 -26
- package/node/images/transform/operations/extend/index.js +15 -15
- package/node/images/transform/operations/flatten/index.js +15 -15
- package/node/images/transform/operations/overlay/index.js +15 -15
- package/node/images/transform/operations/resize/index.js +15 -15
- package/node/images/transform/operations/rotate/index.js +15 -15
- package/node/images/utils/index.js +14 -14
- package/node/index.js +96 -96
- package/node/sftp/directory/index.js +6 -6
- package/node/sftp/file/index.js +9 -9
- package/node/sftp/index.js +9 -9
- package/package.json +1 -1
- package/chunks/{chunk-SQ7G3ZA7.js → chunk-2HEESXVO.js} +13 -13
- package/chunks/{chunk-MZQXUVFW.js → chunk-45E3E4KW.js} +8 -8
- package/chunks/{chunk-4P4MXSRC.js → chunk-4QXLIIZL.js} +8 -8
- package/chunks/{chunk-4PEPTXU3.js → chunk-AL7ESVX4.js} +3 -3
- package/chunks/{chunk-SPLPZBQR.js → chunk-ALAGBHFV.js} +3 -3
- package/chunks/{chunk-QB5OBWPS.js → chunk-BDGFY3GP.js} +3 -3
- package/chunks/{chunk-6YQGM6N6.js → chunk-CMAS4BKV.js} +3 -3
- package/chunks/{chunk-UKD6DFES.js → chunk-EWCTVB6Q.js} +6 -6
- package/chunks/{chunk-7ED4HK2W.js → chunk-FIZVLXG6.js} +12 -12
- package/chunks/{chunk-DPIPDGYH.js → chunk-GL42Q643.js} +3 -3
- package/chunks/{chunk-PCWD23PL.js → chunk-K4KTBY3C.js} +8 -8
- package/chunks/{chunk-LE23WL3C.js → chunk-KQAPQMHJ.js} +5 -5
- package/chunks/{chunk-JEMWHVTN.js → chunk-MVYH3CSJ.js} +3 -3
- package/chunks/{chunk-OBTCE47R.js → chunk-OC4VIF3N.js} +3 -3
- package/chunks/{chunk-S32K7POB.js → chunk-OVG5RGI3.js} +4 -4
- package/chunks/{chunk-GHAF5VTP.js → chunk-QKE2IYT5.js} +3 -3
- package/chunks/{chunk-4HPG6TEE.js → chunk-QXVZJYNY.js} +5 -5
- package/chunks/{chunk-KVZMRVOB.js → chunk-R4DZKWSR.js} +3 -3
- package/chunks/{chunk-IK3YAMUY.js → chunk-RKI6JPGR.js} +8 -8
- package/chunks/{chunk-FNQAF6CQ.js → chunk-SNGK2CF5.js} +6 -6
- package/chunks/{chunk-FR5H2OCV.js → chunk-UFKH5WD2.js} +3 -3
- package/chunks/{chunk-OMTDHKJI.js → chunk-UXEKCYL7.js} +4 -4
- package/chunks/{chunk-A2C4VISH.js → chunk-X53BGT33.js} +3 -3
- package/chunks/{chunk-MJQF3YZO.js → chunk-X7KWB2VQ.js} +3 -3
- package/chunks/{chunk-WWTWL2OF.js → chunk-XBA26Z7E.js} +3 -3
- package/chunks/{chunk-IGFA7IDA.js → chunk-XKRFL2AB.js} +5 -5
- package/chunks/{chunk-G6C3VTOA.js → chunk-XPGDKBTU.js} +5 -5
- package/chunks/{chunk-TMB3PV3Q.js → chunk-XR2LNUGW.js} +3 -3
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
nullFunc
|
|
3
|
+
} from "./chunk-QAVYONH6.js";
|
|
1
4
|
import {
|
|
2
5
|
any
|
|
3
6
|
} from "./chunk-FHLCPVND.js";
|
|
4
7
|
import {
|
|
5
8
|
array
|
|
6
9
|
} from "./chunk-QAQZEKIF.js";
|
|
7
|
-
import {
|
|
8
|
-
nullFunc
|
|
9
|
-
} from "./chunk-QAVYONH6.js";
|
|
10
10
|
import {
|
|
11
11
|
Serialize
|
|
12
12
|
} from "./chunk-SXRWMH3U.js";
|
|
@@ -25,9 +25,6 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
insertNode
|
|
27
27
|
} from "./chunk-XA4HVHJ4.js";
|
|
28
|
-
import {
|
|
29
|
-
recordMap
|
|
30
|
-
} from "./chunk-XNF5MLCQ.js";
|
|
31
28
|
import {
|
|
32
29
|
isInEnum
|
|
33
30
|
} from "./chunk-E6MSDKON.js";
|
|
@@ -35,18 +32,24 @@ import {
|
|
|
35
32
|
isRecord
|
|
36
33
|
} from "./chunk-YDIBNEGA.js";
|
|
37
34
|
import {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
recordMap
|
|
36
|
+
} from "./chunk-XNF5MLCQ.js";
|
|
37
|
+
import {
|
|
38
|
+
Outcome
|
|
39
|
+
} from "./chunk-JMU5PDBD.js";
|
|
41
40
|
import {
|
|
42
41
|
replaceAll
|
|
43
42
|
} from "./chunk-ZTDVUXPR.js";
|
|
44
43
|
import {
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
trimEnd,
|
|
45
|
+
trimStart
|
|
46
|
+
} from "./chunk-6XL25OZX.js";
|
|
47
47
|
import {
|
|
48
48
|
Window
|
|
49
49
|
} from "./chunk-RLJOYG64.js";
|
|
50
|
+
import {
|
|
51
|
+
unknownToString
|
|
52
|
+
} from "./chunk-FENXVJYO.js";
|
|
50
53
|
|
|
51
54
|
// src/agnostic/html/hyper-json/cast/index.ts
|
|
52
55
|
var Cast;
|
|
@@ -76,10 +79,10 @@ var Cast;
|
|
|
76
79
|
Cast2.toString = (input) => {
|
|
77
80
|
if (typeof input === "string") return input;
|
|
78
81
|
if (typeof input === "number" || typeof input === "boolean" || input === null) return `${input}`;
|
|
79
|
-
const { Element: Element2, Text: Text2, NodeList } = Window.get();
|
|
82
|
+
const { Element: Element2, Text: Text2, NodeList: NodeList2 } = Window.get();
|
|
80
83
|
if (input instanceof Element2) return input.outerHTML;
|
|
81
84
|
if (input instanceof Text2) return input.textContent ?? "";
|
|
82
|
-
if (input instanceof
|
|
85
|
+
if (input instanceof NodeList2) return Array.from(input).map((e) => {
|
|
83
86
|
if (e instanceof Element2) return e.outerHTML;
|
|
84
87
|
return e.textContent;
|
|
85
88
|
}).join("");
|
|
@@ -93,14 +96,14 @@ var Cast;
|
|
|
93
96
|
return document2.createTextNode((0, Cast2.toString)(input));
|
|
94
97
|
};
|
|
95
98
|
Cast2.toElement = (input, tagName) => {
|
|
96
|
-
const { Element: Element2, Text: Text2, NodeList, document: document2 } = Window.get();
|
|
99
|
+
const { Element: Element2, Text: Text2, NodeList: NodeList2, document: document2 } = Window.get();
|
|
97
100
|
if (input instanceof Element2) return input.cloneNode(true);
|
|
98
101
|
const returned = document2.createElement(tagName ?? "div");
|
|
99
102
|
if (input instanceof Text2) {
|
|
100
103
|
returned.append(input.cloneNode(true));
|
|
101
104
|
return returned;
|
|
102
105
|
}
|
|
103
|
-
if (input instanceof
|
|
106
|
+
if (input instanceof NodeList2) {
|
|
104
107
|
returned.append(...Array.from(input).map((e) => e.cloneNode(true)));
|
|
105
108
|
return returned;
|
|
106
109
|
}
|
|
@@ -110,9 +113,9 @@ var Cast;
|
|
|
110
113
|
return returned;
|
|
111
114
|
};
|
|
112
115
|
Cast2.toNodeList = (input) => {
|
|
113
|
-
const { Element: Element2, Text: Text2, NodeList, document: document2 } = Window.get();
|
|
116
|
+
const { Element: Element2, Text: Text2, NodeList: NodeList2, document: document2 } = Window.get();
|
|
114
117
|
const parentDiv = document2.createElement("div");
|
|
115
|
-
if (input instanceof
|
|
118
|
+
if (input instanceof NodeList2) {
|
|
116
119
|
parentDiv.append(...Array.from(input).map((i) => i.cloneNode(true)));
|
|
117
120
|
return parentDiv.childNodes;
|
|
118
121
|
}
|
|
@@ -124,7 +127,7 @@ var Cast;
|
|
|
124
127
|
input.forEach((item) => {
|
|
125
128
|
if (typeof item === "number" || typeof item === "boolean" || item === null) parentDiv.append(`${item}`);
|
|
126
129
|
else if (typeof item === "string" || item instanceof Text2 || item instanceof Element2) parentDiv.append(item);
|
|
127
|
-
else if (item instanceof
|
|
130
|
+
else if (item instanceof NodeList2) parentDiv.append(...Array.from(item));
|
|
128
131
|
else if (Array.isArray(item)) parentDiv.append(...Array.from((0, Cast2.toNodeList)(item)));
|
|
129
132
|
else parentDiv.append((0, Cast2.toString)(item));
|
|
130
133
|
});
|
|
@@ -138,9 +141,9 @@ var Cast;
|
|
|
138
141
|
return parentDiv.childNodes;
|
|
139
142
|
};
|
|
140
143
|
Cast2.toArray = (input) => {
|
|
141
|
-
const { NodeList } = Window.get();
|
|
144
|
+
const { NodeList: NodeList2 } = Window.get();
|
|
142
145
|
if (Array.isArray(input)) return [...input];
|
|
143
|
-
if (input instanceof
|
|
146
|
+
if (input instanceof NodeList2) return Array.from(input);
|
|
144
147
|
return [input];
|
|
145
148
|
};
|
|
146
149
|
Cast2.toRecord = (input) => {
|
|
@@ -159,10 +162,10 @@ var element = SmartTags.makeSmartTag({
|
|
|
159
162
|
argsValueCheck: (a) => Utils.Tree.TypeChecks.typeCheckMany(a, "null", "boolean", "number", "string", "text", "element", "nodelist"),
|
|
160
163
|
func: (main, args) => {
|
|
161
164
|
const tagName = Cast.toString(main).trim().toLowerCase();
|
|
162
|
-
const { document: document2, NodeList } = Window.get();
|
|
165
|
+
const { document: document2, NodeList: NodeList2 } = Window.get();
|
|
163
166
|
const elt = document2.createElement(tagName);
|
|
164
167
|
for (const argVal of args) {
|
|
165
|
-
if (argVal instanceof
|
|
168
|
+
if (argVal instanceof NodeList2) elt.append(...Array.from(argVal));
|
|
166
169
|
else if (argVal instanceof Element) elt.append(argVal);
|
|
167
170
|
else elt.append(Cast.toText(argVal));
|
|
168
171
|
}
|
|
@@ -422,13 +425,13 @@ var append = SmartTags.makeSmartTag({
|
|
|
422
425
|
argsValueCheck: (a) => Utils.Tree.TypeChecks.typeCheckMany(a, "string", "text", "nodelist", "element", "array"),
|
|
423
426
|
func: (main, args) => {
|
|
424
427
|
const { makeSuccess } = Outcome;
|
|
425
|
-
const { Text: Text2, Element: Element2, NodeList, document: document2 } = Window.get();
|
|
428
|
+
const { Text: Text2, Element: Element2, NodeList: NodeList2, document: document2 } = Window.get();
|
|
426
429
|
if (Array.isArray(main)) return makeSuccess([...main, ...args]);
|
|
427
430
|
if (main instanceof Element2) {
|
|
428
431
|
main.append(...Array.from(Cast.toNodeList(args)));
|
|
429
432
|
return makeSuccess(main);
|
|
430
433
|
}
|
|
431
|
-
if (main instanceof
|
|
434
|
+
if (main instanceof NodeList2) {
|
|
432
435
|
const frag = document2.createDocumentFragment();
|
|
433
436
|
frag.append(
|
|
434
437
|
...Array.from(main),
|
|
@@ -470,8 +473,8 @@ var at = SmartTags.makeSmartTag({
|
|
|
470
473
|
const pos = args[0];
|
|
471
474
|
const numPos = Cast.toNumber(pos);
|
|
472
475
|
let found;
|
|
473
|
-
const { NodeList } = Window.get();
|
|
474
|
-
if (typeof main === "string" || Array.isArray(main) || main instanceof
|
|
476
|
+
const { NodeList: NodeList2 } = Window.get();
|
|
477
|
+
if (typeof main === "string" || Array.isArray(main) || main instanceof NodeList2) {
|
|
475
478
|
found = main[numPos];
|
|
476
479
|
} else {
|
|
477
480
|
const strMain = Cast.toString(main);
|
|
@@ -678,6 +681,109 @@ function deepGetProperty(record2, pathString) {
|
|
|
678
681
|
return returned;
|
|
679
682
|
}
|
|
680
683
|
|
|
684
|
+
// src/agnostic/html/hyper-json/smart-tags/coalesced/hjstringify/index.ts
|
|
685
|
+
var textItemSymbol = "%%-hyperjson-text-%%";
|
|
686
|
+
var nodelistItemSymbol = "%%-hyperjson-nodelist-%%";
|
|
687
|
+
var elementItemSymbol = "%%-hyperjson-element-%%";
|
|
688
|
+
function stringifier(val) {
|
|
689
|
+
if (typeof val === "string") return `"${val}"`;
|
|
690
|
+
if (typeof val === "number" || typeof val === "boolean" || val === null) return `${val}`;
|
|
691
|
+
if (val instanceof Text) return `"${textItemSymbol}${val.textContent}"`;
|
|
692
|
+
if (val instanceof Element) return `"${elementItemSymbol}${val.outerHTML}"`;
|
|
693
|
+
if (val instanceof NodeList) {
|
|
694
|
+
const items = Array.from(val);
|
|
695
|
+
return `"${nodelistItemSymbol}${items.map(stringifier).join(", ")}"`;
|
|
696
|
+
}
|
|
697
|
+
if (val instanceof Method) return `"[Object method]"`;
|
|
698
|
+
if (Array.isArray(val)) return `[${val.map(stringifier).join(", ")}]`;
|
|
699
|
+
return `{ ${Object.entries(val).map(([key, val2]) => `"${key}": ${stringifier(val2)}`).join(", ")} }`;
|
|
700
|
+
}
|
|
701
|
+
var hjstringify = SmartTags.makeSmartTag({
|
|
702
|
+
name: "hjstringify",
|
|
703
|
+
defaultMode: "coalescion",
|
|
704
|
+
isolationInitType: "array",
|
|
705
|
+
mainValueCheck: (m) => Outcome.makeSuccess(m),
|
|
706
|
+
argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
|
|
707
|
+
func: (main) => {
|
|
708
|
+
const stringified = stringifier(main);
|
|
709
|
+
return Outcome.makeSuccess(stringified);
|
|
710
|
+
}
|
|
711
|
+
});
|
|
712
|
+
|
|
713
|
+
// src/agnostic/html/hyper-json/smart-tags/coalesced/hjparse/index.ts
|
|
714
|
+
function isJson(value) {
|
|
715
|
+
if (value === void 0) return false;
|
|
716
|
+
if (typeof value === "string") return true;
|
|
717
|
+
if (typeof value === "number") return true;
|
|
718
|
+
if (typeof value === "boolean") return true;
|
|
719
|
+
if (value === null) return true;
|
|
720
|
+
if (Array.isArray(value)) return value.every(isJson);
|
|
721
|
+
return Object.entries(value).every(([name, val]) => {
|
|
722
|
+
if (typeof name !== "string") return false;
|
|
723
|
+
return isJson(val);
|
|
724
|
+
});
|
|
725
|
+
}
|
|
726
|
+
function parse(val) {
|
|
727
|
+
const strInput = Cast.toString(val);
|
|
728
|
+
try {
|
|
729
|
+
const jsonParsed = JSON.parse(strInput);
|
|
730
|
+
if (!isJson(jsonParsed)) return new Error(`Invalid JSON.parse output from ${strInput}`);
|
|
731
|
+
return jsonParsed;
|
|
732
|
+
} catch (err) {
|
|
733
|
+
if (err instanceof Error) return err;
|
|
734
|
+
const errStr = unknownToString(err);
|
|
735
|
+
return new Error(errStr);
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
function unescapeHyperJsonString(val) {
|
|
739
|
+
if (val.startsWith(textItemSymbol)) {
|
|
740
|
+
const trimmed = val.slice(textItemSymbol.length);
|
|
741
|
+
const textItem = document.createTextNode(trimmed);
|
|
742
|
+
return textItem;
|
|
743
|
+
}
|
|
744
|
+
if (val.startsWith(elementItemSymbol)) {
|
|
745
|
+
const trimmed = val.slice(elementItemSymbol.length);
|
|
746
|
+
const div = document.createElement("div");
|
|
747
|
+
div.innerHTML = trimmed;
|
|
748
|
+
const firstChild = div.firstChild;
|
|
749
|
+
if (firstChild instanceof Element) return firstChild;
|
|
750
|
+
return trimmed;
|
|
751
|
+
}
|
|
752
|
+
if (val.startsWith(nodelistItemSymbol)) {
|
|
753
|
+
const trimmed = val.slice(nodelistItemSymbol.length);
|
|
754
|
+
const div = document.createElement("div");
|
|
755
|
+
div.innerHTML = trimmed;
|
|
756
|
+
const children = Array.from(div.childNodes);
|
|
757
|
+
const validChildren = children.filter((n) => n instanceof Text || n instanceof Element);
|
|
758
|
+
const frag = document.createDocumentFragment();
|
|
759
|
+
frag.append(...validChildren);
|
|
760
|
+
return frag.childNodes;
|
|
761
|
+
}
|
|
762
|
+
return val;
|
|
763
|
+
}
|
|
764
|
+
function unescapeHyperJson(val) {
|
|
765
|
+
if (typeof val === "number" || typeof val === "boolean" || val === null) return val;
|
|
766
|
+
if (typeof val === "string") return unescapeHyperJsonString(val);
|
|
767
|
+
if (Array.isArray(val)) return val.map(unescapeHyperJson);
|
|
768
|
+
return Object.entries(val).reduce((acc, [currKey, currVal]) => ({
|
|
769
|
+
...acc,
|
|
770
|
+
[currKey]: unescapeHyperJson(currVal)
|
|
771
|
+
}), {});
|
|
772
|
+
}
|
|
773
|
+
var hjparse = SmartTags.makeSmartTag({
|
|
774
|
+
name: "hjparse",
|
|
775
|
+
defaultMode: "coalescion",
|
|
776
|
+
isolationInitType: "array",
|
|
777
|
+
mainValueCheck: (m) => Utils.Tree.TypeChecks.typeCheck(m, "string", "text"),
|
|
778
|
+
argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
|
|
779
|
+
func: (main) => {
|
|
780
|
+
const parsed = parse(main);
|
|
781
|
+
if (parsed instanceof Error) return Outcome.makeFailure({ details: parsed });
|
|
782
|
+
const unescaped = unescapeHyperJson(parsed);
|
|
783
|
+
return Outcome.makeSuccess(unescaped);
|
|
784
|
+
}
|
|
785
|
+
});
|
|
786
|
+
|
|
681
787
|
// src/agnostic/html/hyper-json/smart-tags/coalesced/if/index.ts
|
|
682
788
|
var ifFunc = SmartTags.makeSmartTag({
|
|
683
789
|
name: "if",
|
|
@@ -752,8 +858,8 @@ var length = SmartTags.makeSmartTag({
|
|
|
752
858
|
argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
|
|
753
859
|
func: (main) => {
|
|
754
860
|
const { makeSuccess } = Outcome;
|
|
755
|
-
const { Text: Text2, NodeList, Element: Element2 } = Window.get();
|
|
756
|
-
if (typeof main === "string" || main instanceof
|
|
861
|
+
const { Text: Text2, NodeList: NodeList2, Element: Element2 } = Window.get();
|
|
862
|
+
if (typeof main === "string" || main instanceof NodeList2 || main instanceof Text2 || Array.isArray(main)) return makeSuccess(main.length);
|
|
757
863
|
if (main instanceof Element2) return makeSuccess(main.childNodes.length);
|
|
758
864
|
return makeSuccess(Object.keys(main).length);
|
|
759
865
|
}
|
|
@@ -939,10 +1045,10 @@ var populate = SmartTags.makeSmartTag({
|
|
|
939
1045
|
}));
|
|
940
1046
|
}
|
|
941
1047
|
}
|
|
942
|
-
const { Text: Text2, NodeList } = Window.get();
|
|
1048
|
+
const { Text: Text2, NodeList: NodeList2 } = Window.get();
|
|
943
1049
|
if (typeof template === "string") return makeSuccess(returnedStr);
|
|
944
1050
|
if (template instanceof Text2) return makeSuccess(Cast.toText(returnedStr));
|
|
945
|
-
if (template instanceof
|
|
1051
|
+
if (template instanceof NodeList2) return makeSuccess(Cast.toNodeList(returnedStr));
|
|
946
1052
|
return makeSuccess(Cast.toElement(returnedStr));
|
|
947
1053
|
}
|
|
948
1054
|
});
|
|
@@ -1020,8 +1126,8 @@ var removeattribute = SmartTags.makeSmartTag({
|
|
|
1020
1126
|
func: (main, args) => {
|
|
1021
1127
|
const argsStr = args.map((e) => Cast.toString(e));
|
|
1022
1128
|
const [name] = argsStr;
|
|
1023
|
-
const { NodeList } = Window.get();
|
|
1024
|
-
if (main instanceof
|
|
1129
|
+
const { NodeList: NodeList2 } = Window.get();
|
|
1130
|
+
if (main instanceof NodeList2) {
|
|
1025
1131
|
const children = Array.from(main).map((child) => {
|
|
1026
1132
|
const cloned = Utils.clone(child);
|
|
1027
1133
|
if (cloned instanceof Element) cloned.removeAttribute(name);
|
|
@@ -1220,8 +1326,8 @@ var setattribute = SmartTags.makeSmartTag({
|
|
|
1220
1326
|
func: (main, args) => {
|
|
1221
1327
|
const argsStr = args.map((e) => Cast.toString(e));
|
|
1222
1328
|
const [name, value = ""] = argsStr;
|
|
1223
|
-
const { NodeList } = Window.get();
|
|
1224
|
-
if (main instanceof
|
|
1329
|
+
const { NodeList: NodeList2 } = Window.get();
|
|
1330
|
+
if (main instanceof NodeList2) {
|
|
1225
1331
|
const children = Array.from(main).map((child) => {
|
|
1226
1332
|
const cloned = Utils.clone(child);
|
|
1227
1333
|
if (cloned instanceof Element) cloned.setAttribute(name, value);
|
|
@@ -1345,7 +1451,7 @@ var sorton = SmartTags.makeSmartTag({
|
|
|
1345
1451
|
}));
|
|
1346
1452
|
}
|
|
1347
1453
|
const sorted = main.sort((a, b) => {
|
|
1348
|
-
const { Text: Text2, NodeList } = Window.get();
|
|
1454
|
+
const { Text: Text2, NodeList: NodeList2 } = Window.get();
|
|
1349
1455
|
const aProp = a[strPropName];
|
|
1350
1456
|
const bProp = b[strPropName];
|
|
1351
1457
|
if (aProp === null) return 0;
|
|
@@ -1358,7 +1464,7 @@ var sorton = SmartTags.makeSmartTag({
|
|
|
1358
1464
|
if (aProp instanceof Text2) return Cast.toString(aProp).localeCompare(Cast.toString(bProp));
|
|
1359
1465
|
if (typeof aProp === "number") return aProp - Cast.toNumber(bProp);
|
|
1360
1466
|
if (Array.isArray(aProp)) return aProp.length - Cast.toArray(bProp).length;
|
|
1361
|
-
if (aProp instanceof
|
|
1467
|
+
if (aProp instanceof NodeList2) return aProp.length - Cast.toNodeList(bProp).length;
|
|
1362
1468
|
return 0;
|
|
1363
1469
|
});
|
|
1364
1470
|
return makeSuccess(sorted);
|
|
@@ -1587,12 +1693,12 @@ var transformselected = SmartTags.makeSmartTag({
|
|
|
1587
1693
|
onTransformed: transformed,
|
|
1588
1694
|
details: { ...transformedChecked.error }
|
|
1589
1695
|
}));
|
|
1590
|
-
const { Element: Element2, NodeList, Text: Text2 } = Window.get();
|
|
1696
|
+
const { Element: Element2, NodeList: NodeList2, Text: Text2 } = Window.get();
|
|
1591
1697
|
const replacer = transformedChecked.payload;
|
|
1592
1698
|
if (replacer instanceof Element2 || replacer instanceof Text2) {
|
|
1593
1699
|
insertNode(replacer, "after", selected);
|
|
1594
1700
|
selected.remove();
|
|
1595
|
-
} else if (replacer instanceof
|
|
1701
|
+
} else if (replacer instanceof NodeList2) {
|
|
1596
1702
|
replacer.forEach((item) => insertNode(item, "before", selected));
|
|
1597
1703
|
selected.remove();
|
|
1598
1704
|
} else {
|
|
@@ -1728,6 +1834,8 @@ var Tree;
|
|
|
1728
1834
|
getattribute,
|
|
1729
1835
|
getproperties,
|
|
1730
1836
|
getproperty,
|
|
1837
|
+
hjparse,
|
|
1838
|
+
hjstringify,
|
|
1731
1839
|
ifFunc,
|
|
1732
1840
|
initialize,
|
|
1733
1841
|
join,
|
|
@@ -1973,10 +2081,10 @@ var Tree;
|
|
|
1973
2081
|
var Utils;
|
|
1974
2082
|
((Utils2) => {
|
|
1975
2083
|
function clone2(value) {
|
|
1976
|
-
const { Element: Element2, Text: Text2, NodeList, document: document2 } = Window.get();
|
|
2084
|
+
const { Element: Element2, Text: Text2, NodeList: NodeList2, document: document2 } = Window.get();
|
|
1977
2085
|
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean" || value === null) return value;
|
|
1978
2086
|
if (value instanceof Text2) return value.cloneNode(true);
|
|
1979
|
-
if (value instanceof
|
|
2087
|
+
if (value instanceof NodeList2) {
|
|
1980
2088
|
const frag = document2.createDocumentFragment();
|
|
1981
2089
|
const nodes = Array.from(value).map((e) => e.cloneNode(true));
|
|
1982
2090
|
frag.append(...nodes);
|
|
@@ -1991,7 +2099,7 @@ var Utils;
|
|
|
1991
2099
|
}
|
|
1992
2100
|
Utils2.clone = clone2;
|
|
1993
2101
|
function coalesceValues(currentValue, subpath, subvalue) {
|
|
1994
|
-
const { Element: Element2, Text: Text2, NodeList, document: document2 } = Window.get();
|
|
2102
|
+
const { Element: Element2, Text: Text2, NodeList: NodeList2, document: document2 } = Window.get();
|
|
1995
2103
|
let actualSubvalue = subvalue;
|
|
1996
2104
|
if (actualSubvalue instanceof Transformer) {
|
|
1997
2105
|
const transformer = actualSubvalue;
|
|
@@ -2021,7 +2129,7 @@ var Utils;
|
|
|
2021
2129
|
frag.append(currentValue, Utils2.clone(actualSubvalue));
|
|
2022
2130
|
return frag.childNodes;
|
|
2023
2131
|
}
|
|
2024
|
-
if (actualSubvalue instanceof
|
|
2132
|
+
if (actualSubvalue instanceof NodeList2) {
|
|
2025
2133
|
const frag = document2.createDocumentFragment();
|
|
2026
2134
|
frag.append(currentValue, ...Array.from(Utils2.clone(actualSubvalue)));
|
|
2027
2135
|
return frag.childNodes;
|
|
@@ -2036,7 +2144,7 @@ var Utils;
|
|
|
2036
2144
|
frag.append(clone2(currentValue), clone2(actualSubvalue));
|
|
2037
2145
|
return frag.childNodes;
|
|
2038
2146
|
}
|
|
2039
|
-
if (actualSubvalue instanceof
|
|
2147
|
+
if (actualSubvalue instanceof NodeList2) {
|
|
2040
2148
|
const frag = document2.createDocumentFragment();
|
|
2041
2149
|
frag.append(clone2(currentValue), ...Array.from(clone2(actualSubvalue)));
|
|
2042
2150
|
return frag.childNodes;
|
|
@@ -2054,14 +2162,14 @@ var Utils;
|
|
|
2054
2162
|
frag.append(clone2(currentValue), clone2(actualSubvalue));
|
|
2055
2163
|
return frag.childNodes;
|
|
2056
2164
|
}
|
|
2057
|
-
if (actualSubvalue instanceof
|
|
2165
|
+
if (actualSubvalue instanceof NodeList2) {
|
|
2058
2166
|
const frag = document2.createDocumentFragment();
|
|
2059
2167
|
frag.append(clone2(currentValue), ...Array.from(clone2(actualSubvalue)));
|
|
2060
2168
|
return frag.childNodes;
|
|
2061
2169
|
}
|
|
2062
2170
|
return actualSubvalue;
|
|
2063
2171
|
}
|
|
2064
|
-
if (currentValue instanceof
|
|
2172
|
+
if (currentValue instanceof NodeList2) {
|
|
2065
2173
|
if (actualSubvalue === null || typeof actualSubvalue === "boolean" || typeof actualSubvalue === "number" || typeof actualSubvalue === "string") {
|
|
2066
2174
|
const frag = document2.createDocumentFragment();
|
|
2067
2175
|
frag.append(...Array.from(clone2(currentValue)), `${actualSubvalue}`);
|
|
@@ -2072,7 +2180,7 @@ var Utils;
|
|
|
2072
2180
|
frag.append(...Array.from(clone2(currentValue)), clone2(actualSubvalue));
|
|
2073
2181
|
return frag.childNodes;
|
|
2074
2182
|
}
|
|
2075
|
-
if (actualSubvalue instanceof
|
|
2183
|
+
if (actualSubvalue instanceof NodeList2) {
|
|
2076
2184
|
const frag = document2.createDocumentFragment();
|
|
2077
2185
|
frag.append(...Array.from(clone2(currentValue)), ...Array.from(clone2(actualSubvalue)));
|
|
2078
2186
|
return frag.childNodes;
|
|
@@ -2087,14 +2195,14 @@ var Utils;
|
|
|
2087
2195
|
}
|
|
2088
2196
|
Utils2.coalesceValues = coalesceValues;
|
|
2089
2197
|
Utils2.toHyperJson = (value) => {
|
|
2090
|
-
const { document: document2, Element: Element2, Text: Text2, NodeList } = Window.get();
|
|
2198
|
+
const { document: document2, Element: Element2, Text: Text2, NodeList: NodeList2 } = Window.get();
|
|
2091
2199
|
if (value instanceof Text2) {
|
|
2092
2200
|
const elt2 = document2.createElement("text");
|
|
2093
2201
|
elt2.innerHTML = value.textContent ?? "";
|
|
2094
2202
|
return elt2;
|
|
2095
2203
|
}
|
|
2096
2204
|
if (value instanceof Element2) return value.cloneNode(true);
|
|
2097
|
-
if (value instanceof
|
|
2205
|
+
if (value instanceof NodeList2) {
|
|
2098
2206
|
const elt2 = document2.createElement("nodelist");
|
|
2099
2207
|
elt2.append(...Array.from(value).map((e) => e.cloneNode(true)));
|
|
2100
2208
|
return elt2;
|
|
@@ -2152,14 +2260,14 @@ var Utils;
|
|
|
2152
2260
|
"record"
|
|
2153
2261
|
];
|
|
2154
2262
|
function singleTypeCheck(value, type) {
|
|
2155
|
-
const { Element: Element2, Text: Text2, NodeList } = Window.get();
|
|
2263
|
+
const { Element: Element2, Text: Text2, NodeList: NodeList2 } = Window.get();
|
|
2156
2264
|
if (type === "null" && value === null) return true;
|
|
2157
2265
|
if (type === "boolean" && typeof value === "boolean") return true;
|
|
2158
2266
|
if (type === "number" && typeof value === "number") return true;
|
|
2159
2267
|
if (type === "string" && typeof value === "string") return true;
|
|
2160
2268
|
if (type === "element" && value instanceof Element2) return true;
|
|
2161
2269
|
if (type === "text" && value instanceof Text2) return true;
|
|
2162
|
-
if (type === "nodelist" && value instanceof
|
|
2270
|
+
if (type === "nodelist" && value instanceof NodeList2) {
|
|
2163
2271
|
const children = Array.from(value);
|
|
2164
2272
|
return children.every((child) => child instanceof Element2 || child instanceof Text2);
|
|
2165
2273
|
}
|
|
@@ -2286,14 +2394,14 @@ var Utils;
|
|
|
2286
2394
|
"record"
|
|
2287
2395
|
];
|
|
2288
2396
|
function singleTypeCheck(value, type) {
|
|
2289
|
-
const { Element: Element2, Text: Text2, NodeList } = Window.get();
|
|
2397
|
+
const { Element: Element2, Text: Text2, NodeList: NodeList2 } = Window.get();
|
|
2290
2398
|
if (type === "null" && value === null) return true;
|
|
2291
2399
|
if (type === "boolean" && typeof value === "boolean") return true;
|
|
2292
2400
|
if (type === "number" && typeof value === "number") return true;
|
|
2293
2401
|
if (type === "string" && typeof value === "string") return true;
|
|
2294
2402
|
if (type === "element" && value instanceof Element2) return true;
|
|
2295
2403
|
if (type === "text" && value instanceof Text2) return true;
|
|
2296
|
-
if (type === "nodelist" && value instanceof
|
|
2404
|
+
if (type === "nodelist" && value instanceof NodeList2) {
|
|
2297
2405
|
const children = Array.from(value);
|
|
2298
2406
|
return children.every((child) => child instanceof Element2 || child instanceof Text2);
|
|
2299
2407
|
}
|
|
@@ -2412,6 +2520,11 @@ export {
|
|
|
2412
2520
|
getproperties,
|
|
2413
2521
|
getproperty,
|
|
2414
2522
|
deepGetProperty,
|
|
2523
|
+
textItemSymbol,
|
|
2524
|
+
nodelistItemSymbol,
|
|
2525
|
+
elementItemSymbol,
|
|
2526
|
+
hjstringify,
|
|
2527
|
+
hjparse,
|
|
2415
2528
|
ifFunc,
|
|
2416
2529
|
initialize,
|
|
2417
2530
|
join,
|
|
@@ -1,64 +1,64 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
2
|
+
hue,
|
|
3
|
+
isHueOperationParams
|
|
4
|
+
} from "./chunk-QSU3CVGF.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./chunk-
|
|
6
|
+
isLightenOperationParams,
|
|
7
|
+
lighten
|
|
8
|
+
} from "./chunk-RHKFMXM3.js";
|
|
9
|
+
import {
|
|
10
|
+
isNormalizeOperationParams,
|
|
11
|
+
normalize
|
|
12
|
+
} from "./chunk-3G6FOHII.js";
|
|
9
13
|
import {
|
|
10
14
|
isOverlayOperationParams,
|
|
11
15
|
overlay
|
|
12
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-OPLBIC4C.js";
|
|
13
17
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./chunk-
|
|
18
|
+
isResizeOperationParams,
|
|
19
|
+
resize
|
|
20
|
+
} from "./chunk-V7VAAA4C.js";
|
|
21
|
+
import {
|
|
22
|
+
isRotateOperationParams,
|
|
23
|
+
rotate
|
|
24
|
+
} from "./chunk-ZIJLQD6J.js";
|
|
17
25
|
import {
|
|
18
26
|
isSaturateOperationParams,
|
|
19
27
|
saturate
|
|
20
28
|
} from "./chunk-QTA7ZEVX.js";
|
|
29
|
+
import {
|
|
30
|
+
blur,
|
|
31
|
+
isBlurOperationParams
|
|
32
|
+
} from "./chunk-P26Y7YUA.js";
|
|
33
|
+
import {
|
|
34
|
+
brighten,
|
|
35
|
+
isBrightenOperationParams
|
|
36
|
+
} from "./chunk-SRXNICSE.js";
|
|
21
37
|
import {
|
|
22
38
|
extend,
|
|
23
39
|
isExtendOperationParams
|
|
24
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-H6T4IO4Z.js";
|
|
41
|
+
import {
|
|
42
|
+
extract,
|
|
43
|
+
isExtractOperationParams
|
|
44
|
+
} from "./chunk-HFZGH6V2.js";
|
|
25
45
|
import {
|
|
26
46
|
flatten,
|
|
27
47
|
isFlattenOperationParams
|
|
28
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-3PH2XFJR.js";
|
|
29
49
|
import {
|
|
30
50
|
flip
|
|
31
51
|
} from "./chunk-WNDMYNDU.js";
|
|
32
52
|
import {
|
|
33
53
|
flop
|
|
34
54
|
} from "./chunk-YA2YCZUF.js";
|
|
35
|
-
import {
|
|
36
|
-
hue,
|
|
37
|
-
isHueOperationParams
|
|
38
|
-
} from "./chunk-QSU3CVGF.js";
|
|
39
55
|
import {
|
|
40
56
|
isLevelOperationParams,
|
|
41
57
|
level
|
|
42
58
|
} from "./chunk-2HJPX7E3.js";
|
|
43
|
-
import {
|
|
44
|
-
isLightenOperationParams,
|
|
45
|
-
lighten
|
|
46
|
-
} from "./chunk-RHKFMXM3.js";
|
|
47
|
-
import {
|
|
48
|
-
isNormalizeOperationParams,
|
|
49
|
-
normalize
|
|
50
|
-
} from "./chunk-3G6FOHII.js";
|
|
51
59
|
import {
|
|
52
60
|
toSharpInstance
|
|
53
|
-
} from "./chunk-
|
|
54
|
-
import {
|
|
55
|
-
blur,
|
|
56
|
-
isBlurOperationParams
|
|
57
|
-
} from "./chunk-P26Y7YUA.js";
|
|
58
|
-
import {
|
|
59
|
-
brighten,
|
|
60
|
-
isBrightenOperationParams
|
|
61
|
-
} from "./chunk-SRXNICSE.js";
|
|
61
|
+
} from "./chunk-QCE65XN6.js";
|
|
62
62
|
import {
|
|
63
63
|
Outcome
|
|
64
64
|
} from "./chunk-JMU5PDBD.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
isDuckTypedSharpInstance,
|
|
3
|
-
toSharpInstance
|
|
4
|
-
} from "./chunk-D5CCWCEI.js";
|
|
5
1
|
import {
|
|
6
2
|
zod_default
|
|
7
3
|
} from "./chunk-DZ2T5DTY.js";
|
|
4
|
+
import {
|
|
5
|
+
isDuckTypedSharpInstance,
|
|
6
|
+
toSharpInstance
|
|
7
|
+
} from "./chunk-QCE65XN6.js";
|
|
8
8
|
import {
|
|
9
9
|
Outcome
|
|
10
10
|
} from "./chunk-JMU5PDBD.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
file_exports
|
|
3
|
-
} from "./chunk-IK3YAMUY.js";
|
|
4
1
|
import {
|
|
5
2
|
directory_exports
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KQAPQMHJ.js";
|
|
4
|
+
import {
|
|
5
|
+
file_exports
|
|
6
|
+
} from "./chunk-RKI6JPGR.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./chunk-WSFCRVEQ.js";
|