@symbo.ls/fetch 2.10.135 → 2.10.147
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/cjs/index.js +80 -0
- package/dist/cjs/package.json +4 -0
- package/dist/esm/index.js +50 -0
- package/index.js +2 -2
- package/package.json +14 -10
- package/dist/index.cjs.js +0 -840
- package/dist/index.cjs.js.map +0 -7
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var fetch_exports = {};
|
|
30
|
+
__export(fetch_exports, {
|
|
31
|
+
fetch: () => fetch,
|
|
32
|
+
fetchProject: () => fetchProject,
|
|
33
|
+
fetchRemote: () => fetchRemote,
|
|
34
|
+
fetchStateAsync: () => fetchStateAsync
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(fetch_exports);
|
|
37
|
+
var utils = __toESM(require("@domql/utils"), 1);
|
|
38
|
+
var globals = __toESM(require("@domql/globals"), 1);
|
|
39
|
+
const { overwriteDeep, deepDestringify, isObject } = utils;
|
|
40
|
+
const { window } = globals;
|
|
41
|
+
const SERVER_URL = window && window.location && window.location.host.includes("local") ? "localhost:13335" : "https://api.symbols.dev";
|
|
42
|
+
const defaultOptions = {
|
|
43
|
+
endpoint: SERVER_URL
|
|
44
|
+
};
|
|
45
|
+
const fetch = window ? window.fetch : fetch;
|
|
46
|
+
const fetchRemote = async (key, options = defaultOptions) => {
|
|
47
|
+
const baseUrl = `https://${options.endpoint || SERVER_URL}/`;
|
|
48
|
+
const route = options.serviceRoute || "";
|
|
49
|
+
let response;
|
|
50
|
+
try {
|
|
51
|
+
response = await window.fetch(baseUrl + route, {
|
|
52
|
+
method: "GET",
|
|
53
|
+
headers: { "Content-Type": "application/json", "X-AppKey": key }
|
|
54
|
+
});
|
|
55
|
+
} catch (e) {
|
|
56
|
+
console.error(e);
|
|
57
|
+
}
|
|
58
|
+
return await response ? response.json() : {};
|
|
59
|
+
};
|
|
60
|
+
const fetchProject = async (key, options) => {
|
|
61
|
+
const { editor } = options;
|
|
62
|
+
if (editor && editor.remote) {
|
|
63
|
+
const data = await fetchRemote(key, editor);
|
|
64
|
+
const evalData = deepDestringify(data);
|
|
65
|
+
if (editor.serviceRoute) {
|
|
66
|
+
overwriteDeep(options[editor.serviceRoute], evalData);
|
|
67
|
+
} else
|
|
68
|
+
overwriteDeep(options, evalData);
|
|
69
|
+
}
|
|
70
|
+
return options;
|
|
71
|
+
};
|
|
72
|
+
const fetchStateAsync = async (key, options, callback) => {
|
|
73
|
+
const { editor } = options;
|
|
74
|
+
if (editor && editor.remote) {
|
|
75
|
+
const data = await fetchRemote(key, editor);
|
|
76
|
+
const state = editor.serviceRoute === "state" ? data : data.state;
|
|
77
|
+
if (isObject(state))
|
|
78
|
+
callback(state);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as utils from "@domql/utils";
|
|
2
|
+
import * as globals from "@domql/globals";
|
|
3
|
+
const { overwriteDeep, deepDestringify, isObject } = utils;
|
|
4
|
+
const { window } = globals;
|
|
5
|
+
const SERVER_URL = window && window.location && window.location.host.includes("local") ? "localhost:13335" : "https://api.symbols.dev";
|
|
6
|
+
const defaultOptions = {
|
|
7
|
+
endpoint: SERVER_URL
|
|
8
|
+
};
|
|
9
|
+
const fetch = window ? window.fetch : fetch;
|
|
10
|
+
const fetchRemote = async (key, options = defaultOptions) => {
|
|
11
|
+
const baseUrl = `https://${options.endpoint || SERVER_URL}/`;
|
|
12
|
+
const route = options.serviceRoute || "";
|
|
13
|
+
let response;
|
|
14
|
+
try {
|
|
15
|
+
response = await window.fetch(baseUrl + route, {
|
|
16
|
+
method: "GET",
|
|
17
|
+
headers: { "Content-Type": "application/json", "X-AppKey": key }
|
|
18
|
+
});
|
|
19
|
+
} catch (e) {
|
|
20
|
+
console.error(e);
|
|
21
|
+
}
|
|
22
|
+
return await response ? response.json() : {};
|
|
23
|
+
};
|
|
24
|
+
const fetchProject = async (key, options) => {
|
|
25
|
+
const { editor } = options;
|
|
26
|
+
if (editor && editor.remote) {
|
|
27
|
+
const data = await fetchRemote(key, editor);
|
|
28
|
+
const evalData = deepDestringify(data);
|
|
29
|
+
if (editor.serviceRoute) {
|
|
30
|
+
overwriteDeep(options[editor.serviceRoute], evalData);
|
|
31
|
+
} else
|
|
32
|
+
overwriteDeep(options, evalData);
|
|
33
|
+
}
|
|
34
|
+
return options;
|
|
35
|
+
};
|
|
36
|
+
const fetchStateAsync = async (key, options, callback) => {
|
|
37
|
+
const { editor } = options;
|
|
38
|
+
if (editor && editor.remote) {
|
|
39
|
+
const data = await fetchRemote(key, editor);
|
|
40
|
+
const state = editor.serviceRoute === "state" ? data : data.state;
|
|
41
|
+
if (isObject(state))
|
|
42
|
+
callback(state);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
export {
|
|
46
|
+
fetch,
|
|
47
|
+
fetchProject,
|
|
48
|
+
fetchRemote,
|
|
49
|
+
fetchStateAsync
|
|
50
|
+
};
|
package/index.js
CHANGED
|
@@ -16,6 +16,8 @@ const defaultOptions = {
|
|
|
16
16
|
endpoint: SERVER_URL
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
export const fetch = window ? window.fetch : fetch
|
|
20
|
+
|
|
19
21
|
export const fetchRemote = async (key, options = defaultOptions) => {
|
|
20
22
|
const baseUrl = `https://${options.endpoint || SERVER_URL}/`
|
|
21
23
|
const route = options.serviceRoute || ''
|
|
@@ -33,8 +35,6 @@ export const fetchRemote = async (key, options = defaultOptions) => {
|
|
|
33
35
|
return await response ? response.json() : {}
|
|
34
36
|
}
|
|
35
37
|
|
|
36
|
-
export const fetch = fetchRemote
|
|
37
|
-
|
|
38
38
|
export const fetchProject = async (key, options) => {
|
|
39
39
|
const { editor } = options
|
|
40
40
|
|
package/package.json
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/fetch",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.147",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"gitHead": "
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
"gitHead": "d8f8b2f3e95d993fa5a28e43d01434cdda0151f3",
|
|
6
|
+
"dependencies": {
|
|
7
|
+
"@domql/utils": "latest"
|
|
8
|
+
},
|
|
9
9
|
"type": "module",
|
|
10
|
+
"module": "dist/esm/index.js",
|
|
11
|
+
"main": "dist/esm/index.js",
|
|
12
|
+
"exports": "./dist/cjs/index.js",
|
|
13
|
+
"source": "index.js",
|
|
10
14
|
"files": [
|
|
11
|
-
"
|
|
15
|
+
"*.js",
|
|
12
16
|
"dist"
|
|
13
17
|
],
|
|
14
|
-
"dependencies": {
|
|
15
|
-
"@domql/utils": "latest"
|
|
16
|
-
},
|
|
17
18
|
"scripts": {
|
|
18
|
-
"
|
|
19
|
+
"copy:package:cjs": "cp ../../package-cjs.json dist/cjs/package.json",
|
|
20
|
+
"build:esm": "npx esbuild *.js --target=es2020 --format=esm --outdir=dist/esm",
|
|
21
|
+
"build:cjs": "npx esbuild *.js --target=node16 --format=cjs --outdir=dist/cjs --loader:.js=jsx && yarn copy:package:cjs",
|
|
22
|
+
"prepublish": "rimraf -I dist && yarn build:esm && yarn build:cjs"
|
|
19
23
|
}
|
|
20
24
|
}
|
package/dist/index.cjs.js
DELETED
|
@@ -1,840 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp2 = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
-
return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
-
};
|
|
11
|
-
var __export2 = (target, all) => {
|
|
12
|
-
for (var name in all)
|
|
13
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
14
|
-
};
|
|
15
|
-
var __copyProps2 = (to, from, except, desc) => {
|
|
16
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
17
|
-
for (let key of __getOwnPropNames2(from))
|
|
18
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
19
|
-
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
20
|
-
}
|
|
21
|
-
return to;
|
|
22
|
-
};
|
|
23
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps2(
|
|
24
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
25
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
26
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
27
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
28
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
|
|
29
|
-
mod
|
|
30
|
-
));
|
|
31
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
32
|
-
|
|
33
|
-
// ../../node_modules/@domql/globals/dist/cjs/index.js
|
|
34
|
-
var require_cjs = __commonJS({
|
|
35
|
-
"../../node_modules/@domql/globals/dist/cjs/index.js"(exports2, module2) {
|
|
36
|
-
"use strict";
|
|
37
|
-
var __defProp3 = Object.defineProperty;
|
|
38
|
-
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
|
39
|
-
var __getOwnPropNames3 = Object.getOwnPropertyNames;
|
|
40
|
-
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
|
41
|
-
var __export3 = (target, all) => {
|
|
42
|
-
for (var name in all)
|
|
43
|
-
__defProp3(target, name, { get: all[name], enumerable: true });
|
|
44
|
-
};
|
|
45
|
-
var __copyProps3 = (to, from, except, desc) => {
|
|
46
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
47
|
-
for (let key of __getOwnPropNames3(from))
|
|
48
|
-
if (!__hasOwnProp3.call(to, key) && key !== except)
|
|
49
|
-
__defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc3(from, key)) || desc.enumerable });
|
|
50
|
-
}
|
|
51
|
-
return to;
|
|
52
|
-
};
|
|
53
|
-
var __toCommonJS3 = (mod) => __copyProps3(__defProp3({}, "__esModule", { value: true }), mod);
|
|
54
|
-
var globals_exports = {};
|
|
55
|
-
__export3(globals_exports, {
|
|
56
|
-
document: () => document,
|
|
57
|
-
global: () => global,
|
|
58
|
-
self: () => self,
|
|
59
|
-
window: () => window2
|
|
60
|
-
});
|
|
61
|
-
module2.exports = __toCommonJS3(globals_exports);
|
|
62
|
-
var global = globalThis;
|
|
63
|
-
var self = globalThis;
|
|
64
|
-
var window2 = globalThis;
|
|
65
|
-
var document = window2.document;
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
// ../../node_modules/@domql/tags/dist/cjs/htmlTags.js
|
|
70
|
-
var require_htmlTags = __commonJS({
|
|
71
|
-
"../../node_modules/@domql/tags/dist/cjs/htmlTags.js"(exports2, module2) {
|
|
72
|
-
"use strict";
|
|
73
|
-
var __defProp3 = Object.defineProperty;
|
|
74
|
-
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
|
75
|
-
var __getOwnPropNames3 = Object.getOwnPropertyNames;
|
|
76
|
-
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
|
77
|
-
var __export3 = (target, all) => {
|
|
78
|
-
for (var name in all)
|
|
79
|
-
__defProp3(target, name, { get: all[name], enumerable: true });
|
|
80
|
-
};
|
|
81
|
-
var __copyProps3 = (to, from, except, desc) => {
|
|
82
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
83
|
-
for (let key of __getOwnPropNames3(from))
|
|
84
|
-
if (!__hasOwnProp3.call(to, key) && key !== except)
|
|
85
|
-
__defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc3(from, key)) || desc.enumerable });
|
|
86
|
-
}
|
|
87
|
-
return to;
|
|
88
|
-
};
|
|
89
|
-
var __toCommonJS3 = (mod) => __copyProps3(__defProp3({}, "__esModule", { value: true }), mod);
|
|
90
|
-
var htmlTags_exports = {};
|
|
91
|
-
__export3(htmlTags_exports, {
|
|
92
|
-
HTML_TAGS: () => HTML_TAGS
|
|
93
|
-
});
|
|
94
|
-
module2.exports = __toCommonJS3(htmlTags_exports);
|
|
95
|
-
var HTML_TAGS = {
|
|
96
|
-
root: [
|
|
97
|
-
"body",
|
|
98
|
-
"html"
|
|
99
|
-
],
|
|
100
|
-
head: [
|
|
101
|
-
"title",
|
|
102
|
-
"base",
|
|
103
|
-
"meta",
|
|
104
|
-
"style"
|
|
105
|
-
],
|
|
106
|
-
body: [
|
|
107
|
-
"string",
|
|
108
|
-
"fragment",
|
|
109
|
-
"a",
|
|
110
|
-
"abbr",
|
|
111
|
-
"acronym",
|
|
112
|
-
"address",
|
|
113
|
-
"applet",
|
|
114
|
-
"area",
|
|
115
|
-
"article",
|
|
116
|
-
"aside",
|
|
117
|
-
"audio",
|
|
118
|
-
"b",
|
|
119
|
-
"basefont",
|
|
120
|
-
"bdi",
|
|
121
|
-
"bdo",
|
|
122
|
-
"big",
|
|
123
|
-
"blockquote",
|
|
124
|
-
"br",
|
|
125
|
-
"button",
|
|
126
|
-
"canvas",
|
|
127
|
-
"caption",
|
|
128
|
-
"center",
|
|
129
|
-
"cite",
|
|
130
|
-
"code",
|
|
131
|
-
"col",
|
|
132
|
-
"colgroup",
|
|
133
|
-
"data",
|
|
134
|
-
"datalist",
|
|
135
|
-
"dd",
|
|
136
|
-
"del",
|
|
137
|
-
"details",
|
|
138
|
-
"dfn",
|
|
139
|
-
"dialog",
|
|
140
|
-
"dir",
|
|
141
|
-
"div",
|
|
142
|
-
"dl",
|
|
143
|
-
"dt",
|
|
144
|
-
"em",
|
|
145
|
-
"embed",
|
|
146
|
-
"fieldset",
|
|
147
|
-
"figcaption",
|
|
148
|
-
"figure",
|
|
149
|
-
"font",
|
|
150
|
-
"footer",
|
|
151
|
-
"form",
|
|
152
|
-
"frame",
|
|
153
|
-
"frameset",
|
|
154
|
-
"h1",
|
|
155
|
-
"h2",
|
|
156
|
-
"h3",
|
|
157
|
-
"h4",
|
|
158
|
-
"h5",
|
|
159
|
-
"h6",
|
|
160
|
-
"head",
|
|
161
|
-
"header",
|
|
162
|
-
"hr",
|
|
163
|
-
"i",
|
|
164
|
-
"iframe",
|
|
165
|
-
"img",
|
|
166
|
-
"input",
|
|
167
|
-
"ins",
|
|
168
|
-
"kbd",
|
|
169
|
-
"label",
|
|
170
|
-
"legend",
|
|
171
|
-
"li",
|
|
172
|
-
"link",
|
|
173
|
-
"main",
|
|
174
|
-
"map",
|
|
175
|
-
"mark",
|
|
176
|
-
"meter",
|
|
177
|
-
"nav",
|
|
178
|
-
"noframes",
|
|
179
|
-
"noscript",
|
|
180
|
-
"object",
|
|
181
|
-
"ol",
|
|
182
|
-
"optgroup",
|
|
183
|
-
"option",
|
|
184
|
-
"output",
|
|
185
|
-
"p",
|
|
186
|
-
"param",
|
|
187
|
-
"picture",
|
|
188
|
-
"pre",
|
|
189
|
-
"progress",
|
|
190
|
-
"q",
|
|
191
|
-
"rp",
|
|
192
|
-
"rt",
|
|
193
|
-
"ruby",
|
|
194
|
-
"s",
|
|
195
|
-
"samp",
|
|
196
|
-
"script",
|
|
197
|
-
"section",
|
|
198
|
-
"select",
|
|
199
|
-
"small",
|
|
200
|
-
"source",
|
|
201
|
-
"span",
|
|
202
|
-
"strike",
|
|
203
|
-
"strong",
|
|
204
|
-
"sub",
|
|
205
|
-
"summary",
|
|
206
|
-
"sup",
|
|
207
|
-
"table",
|
|
208
|
-
"tbody",
|
|
209
|
-
"td",
|
|
210
|
-
"template",
|
|
211
|
-
"textarea",
|
|
212
|
-
"tfoot",
|
|
213
|
-
"th",
|
|
214
|
-
"thead",
|
|
215
|
-
"time",
|
|
216
|
-
"tr",
|
|
217
|
-
"track",
|
|
218
|
-
"tt",
|
|
219
|
-
"u",
|
|
220
|
-
"ul",
|
|
221
|
-
"var",
|
|
222
|
-
"video",
|
|
223
|
-
"wbr",
|
|
224
|
-
// SVG
|
|
225
|
-
"svg",
|
|
226
|
-
"path"
|
|
227
|
-
]
|
|
228
|
-
};
|
|
229
|
-
}
|
|
230
|
-
});
|
|
231
|
-
|
|
232
|
-
// ../../node_modules/@domql/tags/dist/cjs/index.js
|
|
233
|
-
var require_cjs2 = __commonJS({
|
|
234
|
-
"../../node_modules/@domql/tags/dist/cjs/index.js"(exports2, module2) {
|
|
235
|
-
"use strict";
|
|
236
|
-
var __defProp3 = Object.defineProperty;
|
|
237
|
-
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
|
238
|
-
var __getOwnPropNames3 = Object.getOwnPropertyNames;
|
|
239
|
-
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
|
240
|
-
var __copyProps3 = (to, from, except, desc) => {
|
|
241
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
242
|
-
for (let key of __getOwnPropNames3(from))
|
|
243
|
-
if (!__hasOwnProp3.call(to, key) && key !== except)
|
|
244
|
-
__defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc3(from, key)) || desc.enumerable });
|
|
245
|
-
}
|
|
246
|
-
return to;
|
|
247
|
-
};
|
|
248
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps3(target, mod, "default"), secondTarget && __copyProps3(secondTarget, mod, "default"));
|
|
249
|
-
var __toCommonJS3 = (mod) => __copyProps3(__defProp3({}, "__esModule", { value: true }), mod);
|
|
250
|
-
var tags_exports = {};
|
|
251
|
-
module2.exports = __toCommonJS3(tags_exports);
|
|
252
|
-
__reExport(tags_exports, require_htmlTags(), module2.exports);
|
|
253
|
-
}
|
|
254
|
-
});
|
|
255
|
-
|
|
256
|
-
// ../../node_modules/@domql/utils/dist/cjs/types.js
|
|
257
|
-
var require_types = __commonJS({
|
|
258
|
-
"../../node_modules/@domql/utils/dist/cjs/types.js"(exports2, module2) {
|
|
259
|
-
"use strict";
|
|
260
|
-
var __defProp3 = Object.defineProperty;
|
|
261
|
-
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
|
262
|
-
var __getOwnPropNames3 = Object.getOwnPropertyNames;
|
|
263
|
-
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
|
264
|
-
var __export3 = (target, all) => {
|
|
265
|
-
for (var name in all)
|
|
266
|
-
__defProp3(target, name, { get: all[name], enumerable: true });
|
|
267
|
-
};
|
|
268
|
-
var __copyProps3 = (to, from, except, desc) => {
|
|
269
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
270
|
-
for (let key of __getOwnPropNames3(from))
|
|
271
|
-
if (!__hasOwnProp3.call(to, key) && key !== except)
|
|
272
|
-
__defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc3(from, key)) || desc.enumerable });
|
|
273
|
-
}
|
|
274
|
-
return to;
|
|
275
|
-
};
|
|
276
|
-
var __toCommonJS3 = (mod) => __copyProps3(__defProp3({}, "__esModule", { value: true }), mod);
|
|
277
|
-
var types_exports = {};
|
|
278
|
-
__export3(types_exports, {
|
|
279
|
-
TYPES: () => TYPES,
|
|
280
|
-
is: () => is,
|
|
281
|
-
isArray: () => isArray,
|
|
282
|
-
isBoolean: () => isBoolean,
|
|
283
|
-
isDefined: () => isDefined,
|
|
284
|
-
isFunction: () => isFunction,
|
|
285
|
-
isHtmlElement: () => isHtmlElement,
|
|
286
|
-
isNode: () => isNode,
|
|
287
|
-
isNot: () => isNot,
|
|
288
|
-
isNull: () => isNull,
|
|
289
|
-
isNumber: () => isNumber,
|
|
290
|
-
isObject: () => isObject2,
|
|
291
|
-
isObjectLike: () => isObjectLike,
|
|
292
|
-
isString: () => isString,
|
|
293
|
-
isUndefined: () => isUndefined,
|
|
294
|
-
isValidHtmlTag: () => isValidHtmlTag
|
|
295
|
-
});
|
|
296
|
-
module2.exports = __toCommonJS3(types_exports);
|
|
297
|
-
var import_globals = require_cjs();
|
|
298
|
-
var import_tags = require_cjs2();
|
|
299
|
-
var isValidHtmlTag = (arg) => import_tags.HTML_TAGS.body.indexOf(arg);
|
|
300
|
-
var isObject2 = (arg) => {
|
|
301
|
-
if (arg === null)
|
|
302
|
-
return false;
|
|
303
|
-
return typeof arg === "object" && arg.constructor === Object;
|
|
304
|
-
};
|
|
305
|
-
var isString = (arg) => typeof arg === "string";
|
|
306
|
-
var isNumber = (arg) => typeof arg === "number";
|
|
307
|
-
var isFunction = (arg) => typeof arg === "function";
|
|
308
|
-
var isBoolean = (arg) => arg === true || arg === false;
|
|
309
|
-
var isNull = (arg) => arg === null;
|
|
310
|
-
var isArray = (arg) => Array.isArray(arg);
|
|
311
|
-
var isObjectLike = (arg) => {
|
|
312
|
-
if (arg === null)
|
|
313
|
-
return false;
|
|
314
|
-
return typeof arg === "object";
|
|
315
|
-
};
|
|
316
|
-
var isNode = (obj2) => {
|
|
317
|
-
return typeof import_globals.window.Node === "object" ? obj2 instanceof import_globals.window.Node : obj2 && typeof obj2 === "object" && typeof obj2.nodeType === "number" && typeof obj2.nodeName === "string";
|
|
318
|
-
};
|
|
319
|
-
var isHtmlElement = (obj2) => {
|
|
320
|
-
return typeof import_globals.window.HTMLElement === "object" ? obj2 instanceof import_globals.window.HTMLElement : obj2 && typeof obj2 === "object" && obj2 !== null && obj2.nodeType === 1 && typeof obj2.nodeName === "string";
|
|
321
|
-
};
|
|
322
|
-
var isDefined = (arg) => {
|
|
323
|
-
return isObject2(arg) || isObjectLike(arg) || isString(arg) || isNumber(arg) || isFunction(arg) || isArray(arg) || isObjectLike(arg) || isBoolean(arg) || isNull(arg);
|
|
324
|
-
};
|
|
325
|
-
var isUndefined = (arg) => {
|
|
326
|
-
return arg === void 0;
|
|
327
|
-
};
|
|
328
|
-
var TYPES = {
|
|
329
|
-
boolean: isBoolean,
|
|
330
|
-
array: isArray,
|
|
331
|
-
object: isObject2,
|
|
332
|
-
string: isString,
|
|
333
|
-
number: isNumber,
|
|
334
|
-
null: isNull,
|
|
335
|
-
function: isFunction,
|
|
336
|
-
objectLike: isObjectLike,
|
|
337
|
-
node: isNode,
|
|
338
|
-
htmlElement: isHtmlElement,
|
|
339
|
-
defined: isDefined
|
|
340
|
-
};
|
|
341
|
-
var is = (arg) => {
|
|
342
|
-
return (...args) => {
|
|
343
|
-
return args.map((val) => TYPES[val](arg)).filter((v) => v).length > 0;
|
|
344
|
-
};
|
|
345
|
-
};
|
|
346
|
-
var isNot = (arg) => {
|
|
347
|
-
return (...args) => {
|
|
348
|
-
return args.map((val) => TYPES[val](arg)).filter((v) => v).length === 0;
|
|
349
|
-
};
|
|
350
|
-
};
|
|
351
|
-
}
|
|
352
|
-
});
|
|
353
|
-
|
|
354
|
-
// ../../node_modules/@domql/utils/dist/cjs/object.js
|
|
355
|
-
var require_object = __commonJS({
|
|
356
|
-
"../../node_modules/@domql/utils/dist/cjs/object.js"(exports, module) {
|
|
357
|
-
"use strict";
|
|
358
|
-
var __defProp = Object.defineProperty;
|
|
359
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
360
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
361
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
362
|
-
var __export = (target, all) => {
|
|
363
|
-
for (var name in all)
|
|
364
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
365
|
-
};
|
|
366
|
-
var __copyProps = (to, from, except, desc) => {
|
|
367
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
368
|
-
for (let key of __getOwnPropNames(from))
|
|
369
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
370
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
371
|
-
}
|
|
372
|
-
return to;
|
|
373
|
-
};
|
|
374
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
375
|
-
var object_exports = {};
|
|
376
|
-
__export(object_exports, {
|
|
377
|
-
clone: () => clone,
|
|
378
|
-
deepClone: () => deepClone,
|
|
379
|
-
deepCloneExclude: () => deepCloneExclude,
|
|
380
|
-
deepDestringify: () => deepDestringify,
|
|
381
|
-
deepMerge: () => deepMerge,
|
|
382
|
-
deepStringify: () => deepStringify,
|
|
383
|
-
diff: () => diff,
|
|
384
|
-
exec: () => exec,
|
|
385
|
-
flattenRecursive: () => flattenRecursive,
|
|
386
|
-
isEqualDeep: () => isEqualDeep,
|
|
387
|
-
map: () => map,
|
|
388
|
-
merge: () => merge,
|
|
389
|
-
mergeAndCloneIfArray: () => mergeAndCloneIfArray,
|
|
390
|
-
mergeArray: () => mergeArray,
|
|
391
|
-
mergeArrayExclude: () => mergeArrayExclude,
|
|
392
|
-
mergeIfExisted: () => mergeIfExisted,
|
|
393
|
-
overwrite: () => overwrite,
|
|
394
|
-
overwriteDeep: () => overwriteDeep,
|
|
395
|
-
overwriteObj: () => overwriteObj
|
|
396
|
-
});
|
|
397
|
-
module.exports = __toCommonJS(object_exports);
|
|
398
|
-
var import_types = require_types();
|
|
399
|
-
var exec = (param, element, state) => {
|
|
400
|
-
if ((0, import_types.isFunction)(param))
|
|
401
|
-
return param(element, state || element.state);
|
|
402
|
-
return param;
|
|
403
|
-
};
|
|
404
|
-
var map = (obj2, extention, element) => {
|
|
405
|
-
for (const e in extention) {
|
|
406
|
-
obj2[e] = exec(extention[e], element);
|
|
407
|
-
}
|
|
408
|
-
};
|
|
409
|
-
var merge = (element, obj2) => {
|
|
410
|
-
for (const e in obj2) {
|
|
411
|
-
const elementProp = element[e];
|
|
412
|
-
const objProp2 = obj2[e];
|
|
413
|
-
if (elementProp === void 0) {
|
|
414
|
-
element[e] = objProp2;
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
return element;
|
|
418
|
-
};
|
|
419
|
-
var deepMerge = (element, extend) => {
|
|
420
|
-
for (const e in extend) {
|
|
421
|
-
const elementProp = element[e];
|
|
422
|
-
const extendProp = extend[e];
|
|
423
|
-
if (e === "parent" || e === "props")
|
|
424
|
-
continue;
|
|
425
|
-
if (elementProp === void 0) {
|
|
426
|
-
element[e] = extendProp;
|
|
427
|
-
} else if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObject)(extendProp)) {
|
|
428
|
-
deepMerge(elementProp, extendProp);
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
return element;
|
|
432
|
-
};
|
|
433
|
-
var clone = (obj2) => {
|
|
434
|
-
const o = {};
|
|
435
|
-
for (const prop2 in obj2) {
|
|
436
|
-
if (prop2 === "node")
|
|
437
|
-
continue;
|
|
438
|
-
o[prop2] = obj2[prop2];
|
|
439
|
-
}
|
|
440
|
-
return o;
|
|
441
|
-
};
|
|
442
|
-
var deepCloneExclude = (obj2, exclude = []) => {
|
|
443
|
-
if ((0, import_types.isArray)(obj2)) {
|
|
444
|
-
return obj2.map((x) => deepCloneExclude(x, exclude));
|
|
445
|
-
}
|
|
446
|
-
const o = {};
|
|
447
|
-
for (const k in obj2) {
|
|
448
|
-
if (exclude.indexOf(k) > -1)
|
|
449
|
-
continue;
|
|
450
|
-
let v = obj2[k];
|
|
451
|
-
if (k === "extend" && (0, import_types.isArray)(v)) {
|
|
452
|
-
v = mergeArrayExclude(v, exclude);
|
|
453
|
-
}
|
|
454
|
-
if ((0, import_types.isArray)(v)) {
|
|
455
|
-
o[k] = v.map((x) => deepCloneExclude(x, exclude));
|
|
456
|
-
} else if ((0, import_types.isObject)(v)) {
|
|
457
|
-
o[k] = deepCloneExclude(v, exclude);
|
|
458
|
-
} else
|
|
459
|
-
o[k] = v;
|
|
460
|
-
}
|
|
461
|
-
return o;
|
|
462
|
-
};
|
|
463
|
-
var mergeArrayExclude = (arr, excl = []) => {
|
|
464
|
-
return arr.reduce((acc, curr) => deepMerge(acc, deepCloneExclude(curr, excl)), {});
|
|
465
|
-
};
|
|
466
|
-
var deepClone = (obj2) => {
|
|
467
|
-
if ((0, import_types.isArray)(obj2)) {
|
|
468
|
-
return obj2.map(deepClone);
|
|
469
|
-
}
|
|
470
|
-
const o = {};
|
|
471
|
-
for (const prop2 in obj2) {
|
|
472
|
-
let objProp2 = obj2[prop2];
|
|
473
|
-
if (prop2 === "extend" && (0, import_types.isArray)(objProp2)) {
|
|
474
|
-
objProp2 = mergeArray(objProp2);
|
|
475
|
-
}
|
|
476
|
-
if ((0, import_types.isArray)(objProp2)) {
|
|
477
|
-
o[prop2] = objProp2.map((v) => (0, import_types.isObject)(v) ? deepClone(v) : v);
|
|
478
|
-
} else if ((0, import_types.isObject)(objProp2)) {
|
|
479
|
-
o[prop2] = deepClone(objProp2);
|
|
480
|
-
} else
|
|
481
|
-
o[prop2] = objProp2;
|
|
482
|
-
}
|
|
483
|
-
return o;
|
|
484
|
-
};
|
|
485
|
-
var deepStringify = (obj2, stringified2 = {}) => {
|
|
486
|
-
for (const prop2 in obj2) {
|
|
487
|
-
const objProp2 = obj2[prop2];
|
|
488
|
-
if ((0, import_types.isFunction)(objProp2)) {
|
|
489
|
-
stringified2[prop2] = objProp2.toString();
|
|
490
|
-
} else if ((0, import_types.isObject)(objProp2)) {
|
|
491
|
-
stringified2[prop2] = {};
|
|
492
|
-
deepStringify(objProp2[prop2], stringified2[prop2]);
|
|
493
|
-
} else if ((0, import_types.isArray)(objProp2)) {
|
|
494
|
-
stringified2[prop2] = [];
|
|
495
|
-
objProp2.map((v, i) => deepStringify(v, stringified2[prop2][i]));
|
|
496
|
-
} else
|
|
497
|
-
stringified2[prop2] = objProp2;
|
|
498
|
-
}
|
|
499
|
-
return stringified2;
|
|
500
|
-
};
|
|
501
|
-
var deepDestringify = (obj, stringified = {}) => {
|
|
502
|
-
for (const prop in obj) {
|
|
503
|
-
const objProp = obj[prop];
|
|
504
|
-
if ((0, import_types.isString)(objProp)) {
|
|
505
|
-
if (objProp.includes("=>") || objProp.includes("function") || objProp[0] === "(") {
|
|
506
|
-
try {
|
|
507
|
-
const evalProp = eval(objProp);
|
|
508
|
-
stringified[prop] = evalProp;
|
|
509
|
-
} catch (e) {
|
|
510
|
-
if (e)
|
|
511
|
-
stringified[prop] = objProp;
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
} else
|
|
515
|
-
stringified[prop] = objProp;
|
|
516
|
-
if ((0, import_types.isObject)(objProp))
|
|
517
|
-
deepDestringify(stringified[prop], stringified[prop]);
|
|
518
|
-
}
|
|
519
|
-
return stringified;
|
|
520
|
-
};
|
|
521
|
-
var overwrite = (element, params, options) => {
|
|
522
|
-
const { ref } = element;
|
|
523
|
-
const changes = {};
|
|
524
|
-
for (const e in params) {
|
|
525
|
-
if (e === "props")
|
|
526
|
-
continue;
|
|
527
|
-
const elementProp = element[e];
|
|
528
|
-
const paramsProp = params[e];
|
|
529
|
-
if (paramsProp) {
|
|
530
|
-
ref.__cache[e] = changes[e] = elementProp;
|
|
531
|
-
ref[e] = paramsProp;
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
return changes;
|
|
535
|
-
};
|
|
536
|
-
var diff = (obj2, original, cache) => {
|
|
537
|
-
const changes = cache || {};
|
|
538
|
-
for (const e in obj2) {
|
|
539
|
-
if (e === "ref")
|
|
540
|
-
continue;
|
|
541
|
-
const originalProp = original[e];
|
|
542
|
-
const objProp2 = obj2[e];
|
|
543
|
-
if ((0, import_types.isObjectLike)(originalProp) && (0, import_types.isObjectLike)(objProp2)) {
|
|
544
|
-
changes[e] = {};
|
|
545
|
-
diff(originalProp, objProp2, changes[e]);
|
|
546
|
-
} else if (objProp2 !== void 0) {
|
|
547
|
-
changes[e] = objProp2;
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
return changes;
|
|
551
|
-
};
|
|
552
|
-
var overwriteObj = (params, obj2) => {
|
|
553
|
-
const changes = {};
|
|
554
|
-
for (const e in params) {
|
|
555
|
-
const objProp2 = obj2[e];
|
|
556
|
-
const paramsProp = params[e];
|
|
557
|
-
if (paramsProp) {
|
|
558
|
-
obj2[e] = changes[e] = objProp2;
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
return changes;
|
|
562
|
-
};
|
|
563
|
-
var overwriteDeep = (params, obj2) => {
|
|
564
|
-
for (const e in params) {
|
|
565
|
-
const objProp2 = obj2[e];
|
|
566
|
-
const paramsProp = params[e];
|
|
567
|
-
if ((0, import_types.isObjectLike)(objProp2) && (0, import_types.isObjectLike)(paramsProp)) {
|
|
568
|
-
overwriteDeep(objProp2, paramsProp);
|
|
569
|
-
} else if (paramsProp !== void 0) {
|
|
570
|
-
obj2[e] = paramsProp;
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
return obj2;
|
|
574
|
-
};
|
|
575
|
-
var mergeIfExisted = (a, b) => {
|
|
576
|
-
if ((0, import_types.isObjectLike)(a) && (0, import_types.isObjectLike)(b))
|
|
577
|
-
return deepMerge(a, b);
|
|
578
|
-
return a || b;
|
|
579
|
-
};
|
|
580
|
-
var mergeArray = (arr) => {
|
|
581
|
-
return arr.reduce((a, c) => deepMerge(a, deepClone(c)), {});
|
|
582
|
-
};
|
|
583
|
-
var mergeAndCloneIfArray = (obj2) => {
|
|
584
|
-
return (0, import_types.isArray)(obj2) ? mergeArray(obj2) : deepClone(obj2);
|
|
585
|
-
};
|
|
586
|
-
var flattenRecursive = (param, prop2, stack = []) => {
|
|
587
|
-
const objectized = mergeAndCloneIfArray(param);
|
|
588
|
-
stack.push(objectized);
|
|
589
|
-
const extendOfExtend = objectized[prop2];
|
|
590
|
-
if (extendOfExtend)
|
|
591
|
-
flattenRecursive(extendOfExtend, prop2, stack);
|
|
592
|
-
delete objectized[prop2];
|
|
593
|
-
return stack;
|
|
594
|
-
};
|
|
595
|
-
var isEqualDeep = (param, element) => {
|
|
596
|
-
if (param === element)
|
|
597
|
-
return true;
|
|
598
|
-
if (!param || !element)
|
|
599
|
-
return false;
|
|
600
|
-
for (const prop2 in param) {
|
|
601
|
-
const paramProp = param[prop2];
|
|
602
|
-
const elementProp = element[prop2];
|
|
603
|
-
if ((0, import_types.isObjectLike)(paramProp)) {
|
|
604
|
-
const isEqual = isEqualDeep(paramProp, elementProp);
|
|
605
|
-
if (!isEqual)
|
|
606
|
-
return false;
|
|
607
|
-
} else {
|
|
608
|
-
const isEqual = paramProp === elementProp;
|
|
609
|
-
if (!isEqual)
|
|
610
|
-
return false;
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
return true;
|
|
614
|
-
};
|
|
615
|
-
}
|
|
616
|
-
});
|
|
617
|
-
|
|
618
|
-
// ../../node_modules/@domql/utils/dist/cjs/function.js
|
|
619
|
-
var require_function = __commonJS({
|
|
620
|
-
"../../node_modules/@domql/utils/dist/cjs/function.js"(exports2, module2) {
|
|
621
|
-
"use strict";
|
|
622
|
-
var __defProp3 = Object.defineProperty;
|
|
623
|
-
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
|
624
|
-
var __getOwnPropNames3 = Object.getOwnPropertyNames;
|
|
625
|
-
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
|
626
|
-
var __export3 = (target, all) => {
|
|
627
|
-
for (var name in all)
|
|
628
|
-
__defProp3(target, name, { get: all[name], enumerable: true });
|
|
629
|
-
};
|
|
630
|
-
var __copyProps3 = (to, from, except, desc) => {
|
|
631
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
632
|
-
for (let key of __getOwnPropNames3(from))
|
|
633
|
-
if (!__hasOwnProp3.call(to, key) && key !== except)
|
|
634
|
-
__defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc3(from, key)) || desc.enumerable });
|
|
635
|
-
}
|
|
636
|
-
return to;
|
|
637
|
-
};
|
|
638
|
-
var __toCommonJS3 = (mod) => __copyProps3(__defProp3({}, "__esModule", { value: true }), mod);
|
|
639
|
-
var function_exports = {};
|
|
640
|
-
__export3(function_exports, {
|
|
641
|
-
debounce: () => debounce,
|
|
642
|
-
memoize: () => memoize
|
|
643
|
-
});
|
|
644
|
-
module2.exports = __toCommonJS3(function_exports);
|
|
645
|
-
var debounce = (element, func, timeout = 300) => {
|
|
646
|
-
let timer;
|
|
647
|
-
return (...args) => {
|
|
648
|
-
clearTimeout(timer);
|
|
649
|
-
timer = setTimeout(() => {
|
|
650
|
-
func.apply(element, args);
|
|
651
|
-
}, timeout);
|
|
652
|
-
};
|
|
653
|
-
};
|
|
654
|
-
var memoize = (fn) => {
|
|
655
|
-
const cache = {};
|
|
656
|
-
return (...args) => {
|
|
657
|
-
const n = args[0];
|
|
658
|
-
if (n in cache) {
|
|
659
|
-
return cache[n];
|
|
660
|
-
} else {
|
|
661
|
-
const result = fn(n);
|
|
662
|
-
cache[n] = result;
|
|
663
|
-
return result;
|
|
664
|
-
}
|
|
665
|
-
};
|
|
666
|
-
};
|
|
667
|
-
}
|
|
668
|
-
});
|
|
669
|
-
|
|
670
|
-
// ../../node_modules/@domql/utils/dist/cjs/array.js
|
|
671
|
-
var require_array = __commonJS({
|
|
672
|
-
"../../node_modules/@domql/utils/dist/cjs/array.js"() {
|
|
673
|
-
"use strict";
|
|
674
|
-
}
|
|
675
|
-
});
|
|
676
|
-
|
|
677
|
-
// ../../node_modules/@domql/utils/dist/cjs/node.js
|
|
678
|
-
var require_node = __commonJS({
|
|
679
|
-
"../../node_modules/@domql/utils/dist/cjs/node.js"(exports2, module2) {
|
|
680
|
-
"use strict";
|
|
681
|
-
var __defProp3 = Object.defineProperty;
|
|
682
|
-
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
|
683
|
-
var __getOwnPropNames3 = Object.getOwnPropertyNames;
|
|
684
|
-
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
|
685
|
-
var __export3 = (target, all) => {
|
|
686
|
-
for (var name in all)
|
|
687
|
-
__defProp3(target, name, { get: all[name], enumerable: true });
|
|
688
|
-
};
|
|
689
|
-
var __copyProps3 = (to, from, except, desc) => {
|
|
690
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
691
|
-
for (let key of __getOwnPropNames3(from))
|
|
692
|
-
if (!__hasOwnProp3.call(to, key) && key !== except)
|
|
693
|
-
__defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc3(from, key)) || desc.enumerable });
|
|
694
|
-
}
|
|
695
|
-
return to;
|
|
696
|
-
};
|
|
697
|
-
var __toCommonJS3 = (mod) => __copyProps3(__defProp3({}, "__esModule", { value: true }), mod);
|
|
698
|
-
var node_exports = {};
|
|
699
|
-
__export3(node_exports, {
|
|
700
|
-
cleanWithNode: () => cleanWithNode,
|
|
701
|
-
createID: () => createID,
|
|
702
|
-
createSnapshotId: () => createSnapshotId
|
|
703
|
-
});
|
|
704
|
-
module2.exports = __toCommonJS3(node_exports);
|
|
705
|
-
var cleanWithNode = (extend) => delete extend.node && extend;
|
|
706
|
-
var createID = function() {
|
|
707
|
-
let index = 0;
|
|
708
|
-
function newId() {
|
|
709
|
-
index++;
|
|
710
|
-
return index;
|
|
711
|
-
}
|
|
712
|
-
return newId;
|
|
713
|
-
}();
|
|
714
|
-
var createSnapshotId = createID;
|
|
715
|
-
}
|
|
716
|
-
});
|
|
717
|
-
|
|
718
|
-
// ../../node_modules/@domql/utils/dist/cjs/log.js
|
|
719
|
-
var require_log = __commonJS({
|
|
720
|
-
"../../node_modules/@domql/utils/dist/cjs/log.js"(exports2, module2) {
|
|
721
|
-
"use strict";
|
|
722
|
-
var __defProp3 = Object.defineProperty;
|
|
723
|
-
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
|
724
|
-
var __getOwnPropNames3 = Object.getOwnPropertyNames;
|
|
725
|
-
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
|
726
|
-
var __export3 = (target, all) => {
|
|
727
|
-
for (var name in all)
|
|
728
|
-
__defProp3(target, name, { get: all[name], enumerable: true });
|
|
729
|
-
};
|
|
730
|
-
var __copyProps3 = (to, from, except, desc) => {
|
|
731
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
732
|
-
for (let key of __getOwnPropNames3(from))
|
|
733
|
-
if (!__hasOwnProp3.call(to, key) && key !== except)
|
|
734
|
-
__defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc3(from, key)) || desc.enumerable });
|
|
735
|
-
}
|
|
736
|
-
return to;
|
|
737
|
-
};
|
|
738
|
-
var __toCommonJS3 = (mod) => __copyProps3(__defProp3({}, "__esModule", { value: true }), mod);
|
|
739
|
-
var log_exports = {};
|
|
740
|
-
__export3(log_exports, {
|
|
741
|
-
logGroupIf: () => logGroupIf,
|
|
742
|
-
logIf: () => logIf
|
|
743
|
-
});
|
|
744
|
-
module2.exports = __toCommonJS3(log_exports);
|
|
745
|
-
var logIf = (bool, ...arg) => {
|
|
746
|
-
if (bool)
|
|
747
|
-
arg.map((v) => console.log(v));
|
|
748
|
-
};
|
|
749
|
-
var logGroupIf = (bool, key, ...arg) => {
|
|
750
|
-
if (bool) {
|
|
751
|
-
console.group(key);
|
|
752
|
-
arg.map((v) => console.log(v));
|
|
753
|
-
console.groupEnd(key);
|
|
754
|
-
}
|
|
755
|
-
};
|
|
756
|
-
}
|
|
757
|
-
});
|
|
758
|
-
|
|
759
|
-
// ../../node_modules/@domql/utils/dist/cjs/index.js
|
|
760
|
-
var require_cjs3 = __commonJS({
|
|
761
|
-
"../../node_modules/@domql/utils/dist/cjs/index.js"(exports2, module2) {
|
|
762
|
-
"use strict";
|
|
763
|
-
var __defProp3 = Object.defineProperty;
|
|
764
|
-
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
|
765
|
-
var __getOwnPropNames3 = Object.getOwnPropertyNames;
|
|
766
|
-
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
|
767
|
-
var __copyProps3 = (to, from, except, desc) => {
|
|
768
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
769
|
-
for (let key of __getOwnPropNames3(from))
|
|
770
|
-
if (!__hasOwnProp3.call(to, key) && key !== except)
|
|
771
|
-
__defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc3(from, key)) || desc.enumerable });
|
|
772
|
-
}
|
|
773
|
-
return to;
|
|
774
|
-
};
|
|
775
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps3(target, mod, "default"), secondTarget && __copyProps3(secondTarget, mod, "default"));
|
|
776
|
-
var __toCommonJS3 = (mod) => __copyProps3(__defProp3({}, "__esModule", { value: true }), mod);
|
|
777
|
-
var utils_exports = {};
|
|
778
|
-
module2.exports = __toCommonJS3(utils_exports);
|
|
779
|
-
__reExport(utils_exports, require_types(), module2.exports);
|
|
780
|
-
__reExport(utils_exports, require_object(), module2.exports);
|
|
781
|
-
__reExport(utils_exports, require_function(), module2.exports);
|
|
782
|
-
__reExport(utils_exports, require_array(), module2.exports);
|
|
783
|
-
__reExport(utils_exports, require_node(), module2.exports);
|
|
784
|
-
__reExport(utils_exports, require_log(), module2.exports);
|
|
785
|
-
}
|
|
786
|
-
});
|
|
787
|
-
|
|
788
|
-
// index.js
|
|
789
|
-
var fetch_exports = {};
|
|
790
|
-
__export2(fetch_exports, {
|
|
791
|
-
fetch: () => fetch,
|
|
792
|
-
fetchProject: () => fetchProject,
|
|
793
|
-
fetchRemote: () => fetchRemote,
|
|
794
|
-
fetchStateAsync: () => fetchStateAsync
|
|
795
|
-
});
|
|
796
|
-
module.exports = __toCommonJS2(fetch_exports);
|
|
797
|
-
var utils = __toESM(require_cjs3(), 1);
|
|
798
|
-
var globals = __toESM(require_cjs(), 1);
|
|
799
|
-
var { overwriteDeep: overwriteDeep2, deepDestringify: deepDestringify2, isObject } = utils;
|
|
800
|
-
var { window } = globals;
|
|
801
|
-
var SERVER_URL = window && window.location && window.location.host.includes("local") ? "localhost:13335" : "https://api.symbols.dev";
|
|
802
|
-
var defaultOptions = {
|
|
803
|
-
endpoint: SERVER_URL
|
|
804
|
-
};
|
|
805
|
-
var fetchRemote = async (key, options = defaultOptions) => {
|
|
806
|
-
const baseUrl = `https://${options.endpoint || SERVER_URL}/`;
|
|
807
|
-
const route = options.serviceRoute || "";
|
|
808
|
-
let response;
|
|
809
|
-
try {
|
|
810
|
-
response = await window.fetch(baseUrl + route, {
|
|
811
|
-
method: "GET",
|
|
812
|
-
headers: { "Content-Type": "application/json", "X-AppKey": key }
|
|
813
|
-
});
|
|
814
|
-
} catch (e) {
|
|
815
|
-
console.error(e);
|
|
816
|
-
}
|
|
817
|
-
return await response ? response.json() : {};
|
|
818
|
-
};
|
|
819
|
-
var fetch = fetchRemote;
|
|
820
|
-
var fetchProject = async (key, options) => {
|
|
821
|
-
const { editor } = options;
|
|
822
|
-
if (editor && editor.remote) {
|
|
823
|
-
const data = await fetchRemote(key, editor);
|
|
824
|
-
const evalData = deepDestringify2(data);
|
|
825
|
-
if (editor.serviceRoute) {
|
|
826
|
-
overwriteDeep2(options[editor.serviceRoute], evalData);
|
|
827
|
-
} else
|
|
828
|
-
overwriteDeep2(options, evalData);
|
|
829
|
-
}
|
|
830
|
-
return options;
|
|
831
|
-
};
|
|
832
|
-
var fetchStateAsync = async (key, options, callback) => {
|
|
833
|
-
const { editor } = options;
|
|
834
|
-
if (editor && editor.remote) {
|
|
835
|
-
const data = await fetchRemote(key, editor);
|
|
836
|
-
const state = editor.serviceRoute === "state" ? data : data.state;
|
|
837
|
-
if (isObject(state))
|
|
838
|
-
callback(state);
|
|
839
|
-
}
|
|
840
|
-
};
|
package/dist/index.cjs.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../node_modules/@domql/globals/dist/cjs/index.js", "../../../node_modules/@domql/tags/dist/cjs/htmlTags.js", "../../../node_modules/@domql/tags/dist/cjs/index.js", "../../../node_modules/@domql/utils/dist/cjs/types.js", "../../../node_modules/@domql/utils/dist/cjs/object.js", "../../../node_modules/@domql/utils/dist/cjs/function.js", "../../../node_modules/@domql/utils/dist/cjs/array.js", "../../../node_modules/@domql/utils/dist/cjs/node.js", "../../../node_modules/@domql/utils/dist/cjs/log.js", "../../../node_modules/@domql/utils/dist/cjs/index.js", "../index.js"],
|
|
4
|
-
"sourcesContent": ["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar globals_exports = {};\n__export(globals_exports, {\n document: () => document,\n global: () => global,\n self: () => self,\n window: () => window\n});\nmodule.exports = __toCommonJS(globals_exports);\nconst global = globalThis;\nconst self = globalThis;\nconst window = globalThis;\nconst document = window.document;\n", "\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar htmlTags_exports = {};\n__export(htmlTags_exports, {\n HTML_TAGS: () => HTML_TAGS\n});\nmodule.exports = __toCommonJS(htmlTags_exports);\nconst HTML_TAGS = {\n root: [\n \"body\",\n \"html\"\n ],\n head: [\n \"title\",\n \"base\",\n \"meta\",\n \"style\"\n ],\n body: [\n \"string\",\n \"fragment\",\n \"a\",\n \"abbr\",\n \"acronym\",\n \"address\",\n \"applet\",\n \"area\",\n \"article\",\n \"aside\",\n \"audio\",\n \"b\",\n \"basefont\",\n \"bdi\",\n \"bdo\",\n \"big\",\n \"blockquote\",\n \"br\",\n \"button\",\n \"canvas\",\n \"caption\",\n \"center\",\n \"cite\",\n \"code\",\n \"col\",\n \"colgroup\",\n \"data\",\n \"datalist\",\n \"dd\",\n \"del\",\n \"details\",\n \"dfn\",\n \"dialog\",\n \"dir\",\n \"div\",\n \"dl\",\n \"dt\",\n \"em\",\n \"embed\",\n \"fieldset\",\n \"figcaption\",\n \"figure\",\n \"font\",\n \"footer\",\n \"form\",\n \"frame\",\n \"frameset\",\n \"h1\",\n \"h2\",\n \"h3\",\n \"h4\",\n \"h5\",\n \"h6\",\n \"head\",\n \"header\",\n \"hr\",\n \"i\",\n \"iframe\",\n \"img\",\n \"input\",\n \"ins\",\n \"kbd\",\n \"label\",\n \"legend\",\n \"li\",\n \"link\",\n \"main\",\n \"map\",\n \"mark\",\n \"meter\",\n \"nav\",\n \"noframes\",\n \"noscript\",\n \"object\",\n \"ol\",\n \"optgroup\",\n \"option\",\n \"output\",\n \"p\",\n \"param\",\n \"picture\",\n \"pre\",\n \"progress\",\n \"q\",\n \"rp\",\n \"rt\",\n \"ruby\",\n \"s\",\n \"samp\",\n \"script\",\n \"section\",\n \"select\",\n \"small\",\n \"source\",\n \"span\",\n \"strike\",\n \"strong\",\n \"sub\",\n \"summary\",\n \"sup\",\n \"table\",\n \"tbody\",\n \"td\",\n \"template\",\n \"textarea\",\n \"tfoot\",\n \"th\",\n \"thead\",\n \"time\",\n \"tr\",\n \"track\",\n \"tt\",\n \"u\",\n \"ul\",\n \"var\",\n \"video\",\n \"wbr\",\n // SVG\n \"svg\",\n \"path\"\n ]\n};\n", "\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar tags_exports = {};\nmodule.exports = __toCommonJS(tags_exports);\n__reExport(tags_exports, require(\"./htmlTags.js\"), module.exports);\n", "\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar types_exports = {};\n__export(types_exports, {\n TYPES: () => TYPES,\n is: () => is,\n isArray: () => isArray,\n isBoolean: () => isBoolean,\n isDefined: () => isDefined,\n isFunction: () => isFunction,\n isHtmlElement: () => isHtmlElement,\n isNode: () => isNode,\n isNot: () => isNot,\n isNull: () => isNull,\n isNumber: () => isNumber,\n isObject: () => isObject,\n isObjectLike: () => isObjectLike,\n isString: () => isString,\n isUndefined: () => isUndefined,\n isValidHtmlTag: () => isValidHtmlTag\n});\nmodule.exports = __toCommonJS(types_exports);\nvar import_globals = require(\"@domql/globals\");\nvar import_tags = require(\"@domql/tags\");\nconst isValidHtmlTag = (arg) => import_tags.HTML_TAGS.body.indexOf(arg);\nconst isObject = (arg) => {\n if (arg === null)\n return false;\n return typeof arg === \"object\" && arg.constructor === Object;\n};\nconst isString = (arg) => typeof arg === \"string\";\nconst isNumber = (arg) => typeof arg === \"number\";\nconst isFunction = (arg) => typeof arg === \"function\";\nconst isBoolean = (arg) => arg === true || arg === false;\nconst isNull = (arg) => arg === null;\nconst isArray = (arg) => Array.isArray(arg);\nconst isObjectLike = (arg) => {\n if (arg === null)\n return false;\n return typeof arg === \"object\";\n};\nconst isNode = (obj) => {\n return typeof import_globals.window.Node === \"object\" ? obj instanceof import_globals.window.Node : obj && typeof obj === \"object\" && typeof obj.nodeType === \"number\" && typeof obj.nodeName === \"string\";\n};\nconst isHtmlElement = (obj) => {\n return typeof import_globals.window.HTMLElement === \"object\" ? obj instanceof import_globals.window.HTMLElement : obj && typeof obj === \"object\" && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === \"string\";\n};\nconst isDefined = (arg) => {\n return isObject(arg) || isObjectLike(arg) || isString(arg) || isNumber(arg) || isFunction(arg) || isArray(arg) || isObjectLike(arg) || isBoolean(arg) || isNull(arg);\n};\nconst isUndefined = (arg) => {\n return arg === void 0;\n};\nconst TYPES = {\n boolean: isBoolean,\n array: isArray,\n object: isObject,\n string: isString,\n number: isNumber,\n null: isNull,\n function: isFunction,\n objectLike: isObjectLike,\n node: isNode,\n htmlElement: isHtmlElement,\n defined: isDefined\n};\nconst is = (arg) => {\n return (...args) => {\n return args.map((val) => TYPES[val](arg)).filter((v) => v).length > 0;\n };\n};\nconst isNot = (arg) => {\n return (...args) => {\n return args.map((val) => TYPES[val](arg)).filter((v) => v).length === 0;\n };\n};\n", "\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar object_exports = {};\n__export(object_exports, {\n clone: () => clone,\n deepClone: () => deepClone,\n deepCloneExclude: () => deepCloneExclude,\n deepDestringify: () => deepDestringify,\n deepMerge: () => deepMerge,\n deepStringify: () => deepStringify,\n diff: () => diff,\n exec: () => exec,\n flattenRecursive: () => flattenRecursive,\n isEqualDeep: () => isEqualDeep,\n map: () => map,\n merge: () => merge,\n mergeAndCloneIfArray: () => mergeAndCloneIfArray,\n mergeArray: () => mergeArray,\n mergeArrayExclude: () => mergeArrayExclude,\n mergeIfExisted: () => mergeIfExisted,\n overwrite: () => overwrite,\n overwriteDeep: () => overwriteDeep,\n overwriteObj: () => overwriteObj\n});\nmodule.exports = __toCommonJS(object_exports);\nvar import_types = require(\"./types.js\");\nconst exec = (param, element, state) => {\n if ((0, import_types.isFunction)(param))\n return param(element, state || element.state);\n return param;\n};\nconst map = (obj2, extention, element) => {\n for (const e in extention) {\n obj2[e] = exec(extention[e], element);\n }\n};\nconst merge = (element, obj2) => {\n for (const e in obj2) {\n const elementProp = element[e];\n const objProp2 = obj2[e];\n if (elementProp === void 0) {\n element[e] = objProp2;\n }\n }\n return element;\n};\nconst deepMerge = (element, extend) => {\n for (const e in extend) {\n const elementProp = element[e];\n const extendProp = extend[e];\n if (e === \"parent\" || e === \"props\")\n continue;\n if (elementProp === void 0) {\n element[e] = extendProp;\n } else if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObject)(extendProp)) {\n deepMerge(elementProp, extendProp);\n }\n }\n return element;\n};\nconst clone = (obj2) => {\n const o = {};\n for (const prop2 in obj2) {\n if (prop2 === \"node\")\n continue;\n o[prop2] = obj2[prop2];\n }\n return o;\n};\nconst deepCloneExclude = (obj2, exclude = []) => {\n if ((0, import_types.isArray)(obj2)) {\n return obj2.map((x) => deepCloneExclude(x, exclude));\n }\n const o = {};\n for (const k in obj2) {\n if (exclude.indexOf(k) > -1)\n continue;\n let v = obj2[k];\n if (k === \"extend\" && (0, import_types.isArray)(v)) {\n v = mergeArrayExclude(v, exclude);\n }\n if ((0, import_types.isArray)(v)) {\n o[k] = v.map((x) => deepCloneExclude(x, exclude));\n } else if ((0, import_types.isObject)(v)) {\n o[k] = deepCloneExclude(v, exclude);\n } else\n o[k] = v;\n }\n return o;\n};\nconst mergeArrayExclude = (arr, excl = []) => {\n return arr.reduce((acc, curr) => deepMerge(acc, deepCloneExclude(curr, excl)), {});\n};\nconst deepClone = (obj2) => {\n if ((0, import_types.isArray)(obj2)) {\n return obj2.map(deepClone);\n }\n const o = {};\n for (const prop2 in obj2) {\n let objProp2 = obj2[prop2];\n if (prop2 === \"extend\" && (0, import_types.isArray)(objProp2)) {\n objProp2 = mergeArray(objProp2);\n }\n if ((0, import_types.isArray)(objProp2)) {\n o[prop2] = objProp2.map((v) => (0, import_types.isObject)(v) ? deepClone(v) : v);\n } else if ((0, import_types.isObject)(objProp2)) {\n o[prop2] = deepClone(objProp2);\n } else\n o[prop2] = objProp2;\n }\n return o;\n};\nconst deepStringify = (obj2, stringified2 = {}) => {\n for (const prop2 in obj2) {\n const objProp2 = obj2[prop2];\n if ((0, import_types.isFunction)(objProp2)) {\n stringified2[prop2] = objProp2.toString();\n } else if ((0, import_types.isObject)(objProp2)) {\n stringified2[prop2] = {};\n deepStringify(objProp2[prop2], stringified2[prop2]);\n } else if ((0, import_types.isArray)(objProp2)) {\n stringified2[prop2] = [];\n objProp2.map((v, i) => deepStringify(v, stringified2[prop2][i]));\n } else\n stringified2[prop2] = objProp2;\n }\n return stringified2;\n};\nconst deepDestringify = (obj, stringified = {}) => {\n for (const prop in obj) {\n const objProp = obj[prop];\n if ((0, import_types.isString)(objProp)) {\n if (objProp.includes(\"=>\") || objProp.includes(\"function\") || objProp[0] === \"(\") {\n try {\n const evalProp = eval(objProp);\n stringified[prop] = evalProp;\n } catch (e) {\n if (e)\n stringified[prop] = objProp;\n }\n }\n } else\n stringified[prop] = objProp;\n if ((0, import_types.isObject)(objProp))\n deepDestringify(stringified[prop], stringified[prop]);\n }\n return stringified;\n};\nconst overwrite = (element, params, options) => {\n const { ref } = element;\n const changes = {};\n for (const e in params) {\n if (e === \"props\")\n continue;\n const elementProp = element[e];\n const paramsProp = params[e];\n if (paramsProp) {\n ref.__cache[e] = changes[e] = elementProp;\n ref[e] = paramsProp;\n }\n }\n return changes;\n};\nconst diff = (obj2, original, cache) => {\n const changes = cache || {};\n for (const e in obj2) {\n if (e === \"ref\")\n continue;\n const originalProp = original[e];\n const objProp2 = obj2[e];\n if ((0, import_types.isObjectLike)(originalProp) && (0, import_types.isObjectLike)(objProp2)) {\n changes[e] = {};\n diff(originalProp, objProp2, changes[e]);\n } else if (objProp2 !== void 0) {\n changes[e] = objProp2;\n }\n }\n return changes;\n};\nconst overwriteObj = (params, obj2) => {\n const changes = {};\n for (const e in params) {\n const objProp2 = obj2[e];\n const paramsProp = params[e];\n if (paramsProp) {\n obj2[e] = changes[e] = objProp2;\n }\n }\n return changes;\n};\nconst overwriteDeep = (params, obj2) => {\n for (const e in params) {\n const objProp2 = obj2[e];\n const paramsProp = params[e];\n if ((0, import_types.isObjectLike)(objProp2) && (0, import_types.isObjectLike)(paramsProp)) {\n overwriteDeep(objProp2, paramsProp);\n } else if (paramsProp !== void 0) {\n obj2[e] = paramsProp;\n }\n }\n return obj2;\n};\nconst mergeIfExisted = (a, b) => {\n if ((0, import_types.isObjectLike)(a) && (0, import_types.isObjectLike)(b))\n return deepMerge(a, b);\n return a || b;\n};\nconst mergeArray = (arr) => {\n return arr.reduce((a, c) => deepMerge(a, deepClone(c)), {});\n};\nconst mergeAndCloneIfArray = (obj2) => {\n return (0, import_types.isArray)(obj2) ? mergeArray(obj2) : deepClone(obj2);\n};\nconst flattenRecursive = (param, prop2, stack = []) => {\n const objectized = mergeAndCloneIfArray(param);\n stack.push(objectized);\n const extendOfExtend = objectized[prop2];\n if (extendOfExtend)\n flattenRecursive(extendOfExtend, prop2, stack);\n delete objectized[prop2];\n return stack;\n};\nconst isEqualDeep = (param, element) => {\n if (param === element)\n return true;\n if (!param || !element)\n return false;\n for (const prop2 in param) {\n const paramProp = param[prop2];\n const elementProp = element[prop2];\n if ((0, import_types.isObjectLike)(paramProp)) {\n const isEqual = isEqualDeep(paramProp, elementProp);\n if (!isEqual)\n return false;\n } else {\n const isEqual = paramProp === elementProp;\n if (!isEqual)\n return false;\n }\n }\n return true;\n};\n", "\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar function_exports = {};\n__export(function_exports, {\n debounce: () => debounce,\n memoize: () => memoize\n});\nmodule.exports = __toCommonJS(function_exports);\nconst debounce = (element, func, timeout = 300) => {\n let timer;\n return (...args) => {\n clearTimeout(timer);\n timer = setTimeout(() => {\n func.apply(element, args);\n }, timeout);\n };\n};\nconst memoize = (fn) => {\n const cache = {};\n return (...args) => {\n const n = args[0];\n if (n in cache) {\n return cache[n];\n } else {\n const result = fn(n);\n cache[n] = result;\n return result;\n }\n };\n};\n", "\"use strict\";\n", "\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar node_exports = {};\n__export(node_exports, {\n cleanWithNode: () => cleanWithNode,\n createID: () => createID,\n createSnapshotId: () => createSnapshotId\n});\nmodule.exports = __toCommonJS(node_exports);\nconst cleanWithNode = (extend) => delete extend.node && extend;\nconst createID = function() {\n let index = 0;\n function newId() {\n index++;\n return index;\n }\n return newId;\n}();\nconst createSnapshotId = createID;\n", "\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar log_exports = {};\n__export(log_exports, {\n logGroupIf: () => logGroupIf,\n logIf: () => logIf\n});\nmodule.exports = __toCommonJS(log_exports);\nconst logIf = (bool, ...arg) => {\n if (bool)\n arg.map((v) => console.log(v));\n};\nconst logGroupIf = (bool, key, ...arg) => {\n if (bool) {\n console.group(key);\n arg.map((v) => console.log(v));\n console.groupEnd(key);\n }\n};\n", "\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar utils_exports = {};\nmodule.exports = __toCommonJS(utils_exports);\n__reExport(utils_exports, require(\"./types.js\"), module.exports);\n__reExport(utils_exports, require(\"./object.js\"), module.exports);\n__reExport(utils_exports, require(\"./function.js\"), module.exports);\n__reExport(utils_exports, require(\"./array.js\"), module.exports);\n__reExport(utils_exports, require(\"./node.js\"), module.exports);\n__reExport(utils_exports, require(\"./log.js\"), module.exports);\n", "'use strict'\n\nimport * as utils from '@domql/utils'\nimport * as globals from '@domql/globals'\n\nconst { overwriteDeep, deepDestringify, isObject } = utils\nconst { window } = globals\n\nconst SERVER_URL = window && window.location &&\n window.location.host.includes('local')\n ? 'localhost:13335'\n : 'https://api.symbols.dev' ||\n 'https://api.symbols.dev'\n\nconst defaultOptions = {\n endpoint: SERVER_URL\n}\n\nexport const fetchRemote = async (key, options = defaultOptions) => {\n const baseUrl = `https://${options.endpoint || SERVER_URL}/`\n const route = options.serviceRoute || ''\n\n let response\n try {\n response = await window.fetch(baseUrl + route, {\n method: 'GET',\n headers: { 'Content-Type': 'application/json', 'X-AppKey': key }\n })\n } catch (e) {\n console.error(e)\n }\n\n return await response ? response.json() : {}\n}\n\nexport const fetch = fetchRemote\n\nexport const fetchProject = async (key, options) => {\n const { editor } = options\n\n if (editor && editor.remote) {\n const data = await fetchRemote(key, editor)\n const evalData = deepDestringify(data)\n\n if (editor.serviceRoute) {\n overwriteDeep(options[editor.serviceRoute], evalData)\n } else overwriteDeep(options, evalData)\n }\n\n return options\n}\n\nexport const fetchStateAsync = async (key, options, callback) => {\n const { editor } = options\n\n if (editor && editor.remote) {\n const data = await fetchRemote(key, editor)\n const state = editor.serviceRoute === 'state' ? data : data.state\n if (isObject(state)) callback(state)\n }\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,wDAAAA,UAAAC,SAAA;AAAA;AACA,QAAIC,aAAY,OAAO;AACvB,QAAIC,oBAAmB,OAAO;AAC9B,QAAIC,qBAAoB,OAAO;AAC/B,QAAIC,gBAAe,OAAO,UAAU;AACpC,QAAIC,YAAW,CAAC,QAAQ,QAAQ;AAC9B,eAAS,QAAQ;AACf,QAAAJ,WAAU,QAAQ,MAAM,EAAE,KAAK,IAAI,IAAI,GAAG,YAAY,KAAK,CAAC;AAAA,IAChE;AACA,QAAIK,eAAc,CAAC,IAAI,MAAM,QAAQ,SAAS;AAC5C,UAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;AAClE,iBAAS,OAAOH,mBAAkB,IAAI;AACpC,cAAI,CAACC,cAAa,KAAK,IAAI,GAAG,KAAK,QAAQ;AACzC,YAAAH,WAAU,IAAI,KAAK,EAAE,KAAK,MAAM,KAAK,GAAG,GAAG,YAAY,EAAE,OAAOC,kBAAiB,MAAM,GAAG,MAAM,KAAK,WAAW,CAAC;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AAM,WAAW,SAAS,KAAK,IAAI,CAAC;AAC7C;AAEO,IAAM,QAAQ;AAEd,IAAM,eAAe,OAAO,KAAK,YAAY;AAClD,QAAM,EAAE,OAAO,IAAI;AAEnB,MAAI,UAAU,OAAO,QAAQ;AAC3B,UAAM,OAAO,MAAM,YAAY,KAAK,MAAM;AAC1C,UAAM,WAAWA,iBAAgB,IAAI;AAErC,QAAI,OAAO,cAAc;AACvB,MAAAD,eAAc,QAAQ,OAAO,YAAY,GAAG,QAAQ;AAAA,IACtD;AAAO,MAAAA,eAAc,SAAS,QAAQ;AAAA,EACxC;AAEA,SAAO;AACT;AAEO,IAAM,kBAAkB,OAAO,KAAK,SAAS,aAAa;AAC/D,QAAM,EAAE,OAAO,IAAI;AAEnB,MAAI,UAAU,OAAO,QAAQ;AAC3B,UAAM,OAAO,MAAM,YAAY,KAAK,MAAM;AAC1C,UAAM,QAAQ,OAAO,iBAAiB,UAAU,OAAO,KAAK;AAC5D,QAAI,SAAS,KAAK;AAAG,eAAS,KAAK;AAAA,EACrC;AACF;",
|
|
6
|
-
"names": ["exports", "module", "__defProp", "__getOwnPropDesc", "__getOwnPropNames", "__hasOwnProp", "__export", "__copyProps", "__toCommonJS", "window", "exports", "module", "__defProp", "__getOwnPropDesc", "__getOwnPropNames", "__hasOwnProp", "__export", "__copyProps", "__toCommonJS", "require_cjs", "exports", "module", "__defProp", "__getOwnPropDesc", "__getOwnPropNames", "__hasOwnProp", "__copyProps", "__toCommonJS", "exports", "module", "__defProp", "__getOwnPropDesc", "__getOwnPropNames", "__hasOwnProp", "__export", "__copyProps", "__toCommonJS", "isObject", "obj", "exports", "module", "__defProp", "__getOwnPropDesc", "__getOwnPropNames", "__hasOwnProp", "__export", "__copyProps", "__toCommonJS", "exports", "module", "__defProp", "__getOwnPropDesc", "__getOwnPropNames", "__hasOwnProp", "__export", "__copyProps", "__toCommonJS", "exports", "module", "__defProp", "__getOwnPropDesc", "__getOwnPropNames", "__hasOwnProp", "__export", "__copyProps", "__toCommonJS", "require_cjs", "exports", "module", "__defProp", "__getOwnPropDesc", "__getOwnPropNames", "__hasOwnProp", "__copyProps", "__toCommonJS", "__export", "__toCommonJS", "overwriteDeep", "deepDestringify"]
|
|
7
|
-
}
|