@gjsify/domparser 0.1.9
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/lib/esm/index.js +238 -0
- package/lib/esm/register.js +4 -0
- package/lib/types/index.d.ts +40 -0
- package/lib/types/index.spec.d.ts +2 -0
- package/lib/types/register.d.ts +1 -0
- package/package.json +47 -0
- package/src/index.spec.ts +236 -0
- package/src/index.ts +290 -0
- package/src/register.ts +8 -0
- package/src/test.mts +5 -0
- package/tsconfig.json +21 -0
- package/tsconfig.tsbuildinfo +1 -0
package/lib/esm/index.js
ADDED
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
class DOMNode {
|
|
2
|
+
nodeType;
|
|
3
|
+
nodeName;
|
|
4
|
+
nodeValue;
|
|
5
|
+
parentNode = null;
|
|
6
|
+
childNodes = [];
|
|
7
|
+
constructor(nodeType, nodeName, nodeValue = null) {
|
|
8
|
+
this.nodeType = nodeType;
|
|
9
|
+
this.nodeName = nodeName;
|
|
10
|
+
this.nodeValue = nodeValue;
|
|
11
|
+
}
|
|
12
|
+
get textContent() {
|
|
13
|
+
if (this.nodeType === 3 || this.nodeType === 4) return this.nodeValue ?? "";
|
|
14
|
+
return this.childNodes.map((c) => c.textContent ?? "").join("");
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
class DOMElement extends DOMNode {
|
|
18
|
+
tagName;
|
|
19
|
+
localName;
|
|
20
|
+
_attrs = /* @__PURE__ */ new Map();
|
|
21
|
+
constructor(tagName) {
|
|
22
|
+
super(1, tagName.toUpperCase());
|
|
23
|
+
this.tagName = tagName.toLowerCase();
|
|
24
|
+
this.localName = this.tagName;
|
|
25
|
+
}
|
|
26
|
+
get children() {
|
|
27
|
+
return this.childNodes.filter((n) => n.nodeType === 1);
|
|
28
|
+
}
|
|
29
|
+
getAttribute(name) {
|
|
30
|
+
return this._attrs.has(name) ? this._attrs.get(name) ?? null : null;
|
|
31
|
+
}
|
|
32
|
+
setAttribute(name, value) {
|
|
33
|
+
this._attrs.set(name, value);
|
|
34
|
+
}
|
|
35
|
+
hasAttribute(name) {
|
|
36
|
+
return this._attrs.has(name);
|
|
37
|
+
}
|
|
38
|
+
get attributes() {
|
|
39
|
+
return Array.from(this._attrs.entries()).map(([name, value]) => ({ name, value }));
|
|
40
|
+
}
|
|
41
|
+
get innerHTML() {
|
|
42
|
+
return this.childNodes.map((n) => {
|
|
43
|
+
if (n.nodeType === 1) return n.outerHTML;
|
|
44
|
+
if (n.nodeType === 3) return n.nodeValue ?? "";
|
|
45
|
+
if (n.nodeType === 4) return "<![CDATA[" + (n.nodeValue ?? "") + "]]>";
|
|
46
|
+
return "";
|
|
47
|
+
}).join("");
|
|
48
|
+
}
|
|
49
|
+
get outerHTML() {
|
|
50
|
+
const attrs = Array.from(this._attrs.entries()).map(([k, v]) => " " + k + '="' + v.replace(/"/g, """) + '"').join("");
|
|
51
|
+
if (this.childNodes.length === 0) return "<" + this.tagName + attrs + "/>";
|
|
52
|
+
return "<" + this.tagName + attrs + ">" + this.innerHTML + "</" + this.tagName + ">";
|
|
53
|
+
}
|
|
54
|
+
querySelector(selector) {
|
|
55
|
+
const parts = selector.trim().split(/\s*>\s*/);
|
|
56
|
+
if (parts.length > 1) return this._queryChildChain(parts);
|
|
57
|
+
const parts2 = selector.trim().split(/\s+/);
|
|
58
|
+
if (parts2.length > 1) return this._queryDescendantChain(parts2);
|
|
59
|
+
return this._find(selector.trim().toLowerCase()) ?? null;
|
|
60
|
+
}
|
|
61
|
+
querySelectorAll(selector) {
|
|
62
|
+
const tag = selector.trim().toLowerCase();
|
|
63
|
+
const results = [];
|
|
64
|
+
this._findAll(tag, results);
|
|
65
|
+
return results;
|
|
66
|
+
}
|
|
67
|
+
_find(tag) {
|
|
68
|
+
for (const child of this.children) {
|
|
69
|
+
if (child.tagName === tag) return child;
|
|
70
|
+
const found = child._find(tag);
|
|
71
|
+
if (found) return found;
|
|
72
|
+
}
|
|
73
|
+
return void 0;
|
|
74
|
+
}
|
|
75
|
+
_findAll(tag, results) {
|
|
76
|
+
for (const child of this.children) {
|
|
77
|
+
if (child.tagName === tag) results.push(child);
|
|
78
|
+
child._findAll(tag, results);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
_queryChildChain(parts) {
|
|
82
|
+
const [first, ...rest] = parts;
|
|
83
|
+
const matching = this.children.filter((c) => c.tagName === first.trim().toLowerCase());
|
|
84
|
+
if (rest.length === 0) return matching[0] ?? null;
|
|
85
|
+
for (const el of matching) {
|
|
86
|
+
const found = el._queryChildChain(rest);
|
|
87
|
+
if (found) return found;
|
|
88
|
+
}
|
|
89
|
+
return null;
|
|
90
|
+
}
|
|
91
|
+
_queryDescendantChain(parts) {
|
|
92
|
+
const [first, ...rest] = parts;
|
|
93
|
+
const candidates = [];
|
|
94
|
+
this._findAll(first.trim().toLowerCase(), candidates);
|
|
95
|
+
if (rest.length === 0) return candidates[0] ?? null;
|
|
96
|
+
for (const el of candidates) {
|
|
97
|
+
const found = el._queryDescendantChain(rest);
|
|
98
|
+
if (found) return found;
|
|
99
|
+
}
|
|
100
|
+
return null;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
class DOMDocument extends DOMElement {
|
|
104
|
+
documentElement = null;
|
|
105
|
+
constructor() {
|
|
106
|
+
super("#document");
|
|
107
|
+
this.nodeType = 9;
|
|
108
|
+
this.nodeName = "#document";
|
|
109
|
+
}
|
|
110
|
+
querySelector(selector) {
|
|
111
|
+
if (this.documentElement) {
|
|
112
|
+
const tag = selector.trim().toLowerCase();
|
|
113
|
+
if (this.documentElement.tagName === tag) return this.documentElement;
|
|
114
|
+
return this.documentElement.querySelector(selector);
|
|
115
|
+
}
|
|
116
|
+
return super.querySelector(selector);
|
|
117
|
+
}
|
|
118
|
+
querySelectorAll(selector) {
|
|
119
|
+
const tag = selector.trim().toLowerCase();
|
|
120
|
+
const results = [];
|
|
121
|
+
if (this.documentElement) {
|
|
122
|
+
if (this.documentElement.tagName === tag) results.push(this.documentElement);
|
|
123
|
+
this.documentElement._findAll(tag, results);
|
|
124
|
+
}
|
|
125
|
+
return results;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
const ATTR_PATTERN = /\s+([\w:.-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\S+))/g;
|
|
129
|
+
function parseAttributes(attrsStr, el) {
|
|
130
|
+
let m;
|
|
131
|
+
ATTR_PATTERN.lastIndex = 0;
|
|
132
|
+
while ((m = ATTR_PATTERN.exec(attrsStr)) !== null) {
|
|
133
|
+
el.setAttribute(m[1], m[2] ?? m[3] ?? m[4] ?? "");
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
function parseXml(xml) {
|
|
137
|
+
const doc = new DOMDocument();
|
|
138
|
+
const stack = [doc];
|
|
139
|
+
let i = 0;
|
|
140
|
+
const len = xml.length;
|
|
141
|
+
while (i < len) {
|
|
142
|
+
const ltIdx = xml.indexOf("<", i);
|
|
143
|
+
if (ltIdx === -1) {
|
|
144
|
+
const text = xml.slice(i);
|
|
145
|
+
if (text.trim()) {
|
|
146
|
+
const tn = new DOMNode(3, "#text", text);
|
|
147
|
+
const top2 = stack[stack.length - 1];
|
|
148
|
+
tn.parentNode = top2;
|
|
149
|
+
top2.childNodes.push(tn);
|
|
150
|
+
}
|
|
151
|
+
break;
|
|
152
|
+
}
|
|
153
|
+
if (ltIdx > i) {
|
|
154
|
+
const text = xml.slice(i, ltIdx);
|
|
155
|
+
if (text.trim()) {
|
|
156
|
+
const tn = new DOMNode(3, "#text", text);
|
|
157
|
+
const top2 = stack[stack.length - 1];
|
|
158
|
+
tn.parentNode = top2;
|
|
159
|
+
top2.childNodes.push(tn);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
if (xml.startsWith("<![CDATA[", ltIdx)) {
|
|
163
|
+
const end = xml.indexOf("]]>", ltIdx);
|
|
164
|
+
if (end === -1) break;
|
|
165
|
+
const cn = new DOMNode(4, "#cdata-section", xml.slice(ltIdx + 9, end));
|
|
166
|
+
const top2 = stack[stack.length - 1];
|
|
167
|
+
cn.parentNode = top2;
|
|
168
|
+
top2.childNodes.push(cn);
|
|
169
|
+
i = end + 3;
|
|
170
|
+
continue;
|
|
171
|
+
}
|
|
172
|
+
if (xml.startsWith("<!--", ltIdx)) {
|
|
173
|
+
const end = xml.indexOf("-->", ltIdx);
|
|
174
|
+
i = end === -1 ? len : end + 3;
|
|
175
|
+
continue;
|
|
176
|
+
}
|
|
177
|
+
if (xml.startsWith("<?", ltIdx) || xml.startsWith("<!", ltIdx)) {
|
|
178
|
+
const end = xml.indexOf(">", ltIdx);
|
|
179
|
+
i = end === -1 ? len : end + 1;
|
|
180
|
+
continue;
|
|
181
|
+
}
|
|
182
|
+
const gtIdx = findTagEnd(xml, ltIdx + 1);
|
|
183
|
+
if (gtIdx === -1) break;
|
|
184
|
+
const tagContent = xml.slice(ltIdx + 1, gtIdx);
|
|
185
|
+
if (tagContent.startsWith("/")) {
|
|
186
|
+
if (stack.length > 1) stack.pop();
|
|
187
|
+
i = gtIdx + 1;
|
|
188
|
+
continue;
|
|
189
|
+
}
|
|
190
|
+
const selfClosing = tagContent.endsWith("/");
|
|
191
|
+
const inner = selfClosing ? tagContent.slice(0, -1) : tagContent;
|
|
192
|
+
const wsIdx = inner.search(/\s/);
|
|
193
|
+
const tagName = (wsIdx === -1 ? inner : inner.slice(0, wsIdx)).trim();
|
|
194
|
+
if (!tagName) {
|
|
195
|
+
i = gtIdx + 1;
|
|
196
|
+
continue;
|
|
197
|
+
}
|
|
198
|
+
const el = new DOMElement(tagName);
|
|
199
|
+
if (wsIdx !== -1) parseAttributes(inner.slice(wsIdx), el);
|
|
200
|
+
const top = stack[stack.length - 1];
|
|
201
|
+
el.parentNode = top;
|
|
202
|
+
top.childNodes.push(el);
|
|
203
|
+
if (top === doc && !doc.documentElement) {
|
|
204
|
+
doc.documentElement = el;
|
|
205
|
+
}
|
|
206
|
+
if (!selfClosing) stack.push(el);
|
|
207
|
+
i = gtIdx + 1;
|
|
208
|
+
}
|
|
209
|
+
return doc;
|
|
210
|
+
}
|
|
211
|
+
function findTagEnd(xml, start) {
|
|
212
|
+
let inSingle = false;
|
|
213
|
+
let inDouble = false;
|
|
214
|
+
for (let i = start; i < xml.length; i++) {
|
|
215
|
+
const ch = xml[i];
|
|
216
|
+
if (ch === '"' && !inSingle) {
|
|
217
|
+
inDouble = !inDouble;
|
|
218
|
+
continue;
|
|
219
|
+
}
|
|
220
|
+
if (ch === "'" && !inDouble) {
|
|
221
|
+
inSingle = !inSingle;
|
|
222
|
+
continue;
|
|
223
|
+
}
|
|
224
|
+
if (ch === ">" && !inSingle && !inDouble) return i;
|
|
225
|
+
}
|
|
226
|
+
return -1;
|
|
227
|
+
}
|
|
228
|
+
class DOMParser {
|
|
229
|
+
parseFromString(string, _mimeType) {
|
|
230
|
+
return parseXml(string);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
export {
|
|
234
|
+
DOMDocument,
|
|
235
|
+
DOMElement,
|
|
236
|
+
DOMNode,
|
|
237
|
+
DOMParser
|
|
238
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare class DOMNode {
|
|
2
|
+
nodeType: number;
|
|
3
|
+
nodeName: string;
|
|
4
|
+
nodeValue: string | null;
|
|
5
|
+
parentNode: DOMNode | null;
|
|
6
|
+
childNodes: DOMNode[];
|
|
7
|
+
constructor(nodeType: number, nodeName: string, nodeValue?: string | null);
|
|
8
|
+
get textContent(): string;
|
|
9
|
+
}
|
|
10
|
+
export declare class DOMElement extends DOMNode {
|
|
11
|
+
tagName: string;
|
|
12
|
+
localName: string;
|
|
13
|
+
private _attrs;
|
|
14
|
+
constructor(tagName: string);
|
|
15
|
+
get children(): DOMElement[];
|
|
16
|
+
getAttribute(name: string): string | null;
|
|
17
|
+
setAttribute(name: string, value: string): void;
|
|
18
|
+
hasAttribute(name: string): boolean;
|
|
19
|
+
get attributes(): {
|
|
20
|
+
name: string;
|
|
21
|
+
value: string;
|
|
22
|
+
}[];
|
|
23
|
+
get innerHTML(): string;
|
|
24
|
+
get outerHTML(): string;
|
|
25
|
+
querySelector(selector: string): DOMElement | null;
|
|
26
|
+
querySelectorAll(selector: string): DOMElement[];
|
|
27
|
+
_find(tag: string): DOMElement | undefined;
|
|
28
|
+
_findAll(tag: string, results: DOMElement[]): void;
|
|
29
|
+
private _queryChildChain;
|
|
30
|
+
private _queryDescendantChain;
|
|
31
|
+
}
|
|
32
|
+
export declare class DOMDocument extends DOMElement {
|
|
33
|
+
documentElement: DOMElement | null;
|
|
34
|
+
constructor();
|
|
35
|
+
querySelector(selector: string): DOMElement | null;
|
|
36
|
+
querySelectorAll(selector: string): DOMElement[];
|
|
37
|
+
}
|
|
38
|
+
export declare class DOMParser {
|
|
39
|
+
parseFromString(string: string, _mimeType: string): DOMDocument;
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@gjsify/domparser",
|
|
3
|
+
"version": "0.1.9",
|
|
4
|
+
"description": "DOMParser for GJS — self-contained XML parser with minimal DOM (querySelector, getAttribute, children)",
|
|
5
|
+
"module": "lib/esm/index.js",
|
|
6
|
+
"types": "lib/types/index.d.ts",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./lib/types/index.d.ts",
|
|
11
|
+
"default": "./lib/esm/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./register": {
|
|
14
|
+
"types": "./lib/types/register.d.ts",
|
|
15
|
+
"default": "./lib/esm/register.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"sideEffects": [
|
|
19
|
+
"./lib/esm/register.js"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"clear": "rm -rf lib tsconfig.tsbuildinfo tsconfig.types.tsbuildinfo test.gjs.mjs test.node.mjs || exit 0",
|
|
23
|
+
"check": "tsc --noEmit",
|
|
24
|
+
"build": "yarn build:gjsify && yarn build:types",
|
|
25
|
+
"build:gjsify": "gjsify build --library 'src/**/*.{ts,js}' --exclude 'src/**/*.spec.{mts,ts}' 'src/test.{mts,ts}'",
|
|
26
|
+
"build:types": "tsc",
|
|
27
|
+
"build:test": "yarn build:test:gjs && yarn build:test:node",
|
|
28
|
+
"build:test:gjs": "gjsify build src/test.mts --app gjs --outfile test.gjs.mjs",
|
|
29
|
+
"build:test:node": "gjsify build src/test.mts --app node --outfile test.node.mjs",
|
|
30
|
+
"test": "yarn build:gjsify && yarn build:test && yarn test:node && yarn test:gjs",
|
|
31
|
+
"test:gjs": "gjs -m test.gjs.mjs",
|
|
32
|
+
"test:node": "node test.node.mjs"
|
|
33
|
+
},
|
|
34
|
+
"keywords": [
|
|
35
|
+
"gjs",
|
|
36
|
+
"domparser",
|
|
37
|
+
"xml",
|
|
38
|
+
"dom",
|
|
39
|
+
"web-api"
|
|
40
|
+
],
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@gjsify/cli": "^0.1.9",
|
|
43
|
+
"@gjsify/unit": "^0.1.9",
|
|
44
|
+
"@types/node": "^25.6.0",
|
|
45
|
+
"typescript": "^6.0.2"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
// Ported from refs/wpt/domparsing and refs/happy-dom/packages/happy-dom/test/xml-parser/
|
|
2
|
+
// Original: web-platform-tests contributors (3-Clause BSD) and David Ortner (MIT).
|
|
3
|
+
// Tests target the minimal DOM API surface consumed by @excaliburjs/plugin-tiled:
|
|
4
|
+
// DOMParser.parseFromString, Document.documentElement, Element.querySelector,
|
|
5
|
+
// Element.children, Element.getAttribute, Element.tagName.
|
|
6
|
+
|
|
7
|
+
import { describe, it, expect } from '@gjsify/unit';
|
|
8
|
+
import { DOMParser } from '@gjsify/domparser';
|
|
9
|
+
|
|
10
|
+
export default async () => {
|
|
11
|
+
await describe('DOMParser', async () => {
|
|
12
|
+
|
|
13
|
+
await describe('parseFromString — basic XML', async () => {
|
|
14
|
+
await it('parses a simple element with no children', async () => {
|
|
15
|
+
const doc = new DOMParser().parseFromString('<root/>', 'application/xml');
|
|
16
|
+
expect(doc.documentElement).not.toBeNull();
|
|
17
|
+
expect(doc.documentElement!.tagName).toBe('root');
|
|
18
|
+
expect(doc.documentElement!.children.length).toBe(0);
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
await it('parses nested elements and preserves order', async () => {
|
|
22
|
+
const xml = '<map><layer/><tileset/><object/></map>';
|
|
23
|
+
const doc = new DOMParser().parseFromString(xml, 'application/xml');
|
|
24
|
+
const map = doc.documentElement!;
|
|
25
|
+
expect(map.tagName).toBe('map');
|
|
26
|
+
expect(map.children.length).toBe(3);
|
|
27
|
+
expect(map.children[0].tagName).toBe('layer');
|
|
28
|
+
expect(map.children[1].tagName).toBe('tileset');
|
|
29
|
+
expect(map.children[2].tagName).toBe('object');
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
await it('skips XML processing instruction at the start', async () => {
|
|
33
|
+
const xml = '<?xml version="1.0" encoding="UTF-8"?><root><child/></root>';
|
|
34
|
+
const doc = new DOMParser().parseFromString(xml, 'application/xml');
|
|
35
|
+
expect(doc.documentElement!.tagName).toBe('root');
|
|
36
|
+
expect(doc.documentElement!.children.length).toBe(1);
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
await it('handles deeply nested elements', async () => {
|
|
40
|
+
const xml = '<a><b><c><d><e/></d></c></b></a>';
|
|
41
|
+
const doc = new DOMParser().parseFromString(xml, 'application/xml');
|
|
42
|
+
const a = doc.documentElement!;
|
|
43
|
+
expect(a.tagName).toBe('a');
|
|
44
|
+
expect(a.children[0].tagName).toBe('b');
|
|
45
|
+
expect(a.children[0].children[0].tagName).toBe('c');
|
|
46
|
+
expect(a.children[0].children[0].children[0].tagName).toBe('d');
|
|
47
|
+
expect(a.children[0].children[0].children[0].children[0].tagName).toBe('e');
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
await describe('parseFromString — attributes', async () => {
|
|
52
|
+
await it('reads double-quoted string attributes', async () => {
|
|
53
|
+
const doc = new DOMParser().parseFromString('<tile id="42" name="stone"/>', 'application/xml');
|
|
54
|
+
const tile = doc.documentElement!;
|
|
55
|
+
expect(tile.getAttribute('id')).toBe('42');
|
|
56
|
+
expect(tile.getAttribute('name')).toBe('stone');
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
await it('reads single-quoted string attributes', async () => {
|
|
60
|
+
const doc = new DOMParser().parseFromString("<tile id='7' name='grass'/>", 'application/xml');
|
|
61
|
+
expect(doc.documentElement!.getAttribute('id')).toBe('7');
|
|
62
|
+
expect(doc.documentElement!.getAttribute('name')).toBe('grass');
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
await it('returns null for missing attributes', async () => {
|
|
66
|
+
const doc = new DOMParser().parseFromString('<tile/>', 'application/xml');
|
|
67
|
+
expect(doc.documentElement!.getAttribute('id')).toBeNull();
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
await it('preserves TMX-style numeric attributes as strings', async () => {
|
|
71
|
+
const xml = '<map version="1.10" width="260" height="30" tilewidth="16" tileheight="16" infinite="0"/>';
|
|
72
|
+
const doc = new DOMParser().parseFromString(xml, 'application/xml');
|
|
73
|
+
const map = doc.documentElement!;
|
|
74
|
+
expect(map.getAttribute('version')).toBe('1.10');
|
|
75
|
+
expect(map.getAttribute('width')).toBe('260');
|
|
76
|
+
expect(map.getAttribute('height')).toBe('30');
|
|
77
|
+
expect(map.getAttribute('infinite')).toBe('0');
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
await it('handles attributes containing the > character', async () => {
|
|
81
|
+
// Real-world TMX does not include literal > in attributes, but
|
|
82
|
+
// the parser must not prematurely end the tag on one if it ever
|
|
83
|
+
// appears inside quoted values.
|
|
84
|
+
const doc = new DOMParser().parseFromString('<e a="x>y" b="z"/>', 'application/xml');
|
|
85
|
+
expect(doc.documentElement!.getAttribute('a')).toBe('x>y');
|
|
86
|
+
expect(doc.documentElement!.getAttribute('b')).toBe('z');
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
await describe('parseFromString — self-closing tags', async () => {
|
|
91
|
+
await it('handles self-closing tag with attributes', async () => {
|
|
92
|
+
const doc = new DOMParser().parseFromString('<image source="foo.png" width="16" height="16"/>', 'application/xml');
|
|
93
|
+
const img = doc.documentElement!;
|
|
94
|
+
expect(img.tagName).toBe('image');
|
|
95
|
+
expect(img.children.length).toBe(0);
|
|
96
|
+
expect(img.getAttribute('source')).toBe('foo.png');
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
await it('handles self-closing tag inside a parent', async () => {
|
|
100
|
+
const doc = new DOMParser().parseFromString('<parent><child1/><child2/></parent>', 'application/xml');
|
|
101
|
+
const parent = doc.documentElement!;
|
|
102
|
+
expect(parent.children.length).toBe(2);
|
|
103
|
+
expect(parent.children[0].tagName).toBe('child1');
|
|
104
|
+
expect(parent.children[1].tagName).toBe('child2');
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
await describe('parseFromString — comments and CDATA', async () => {
|
|
109
|
+
await it('skips XML comments', async () => {
|
|
110
|
+
const xml = '<root><!-- this is a comment --><child/></root>';
|
|
111
|
+
const doc = new DOMParser().parseFromString(xml, 'application/xml');
|
|
112
|
+
const root = doc.documentElement!;
|
|
113
|
+
expect(root.children.length).toBe(1);
|
|
114
|
+
expect(root.children[0].tagName).toBe('child');
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
await it('preserves CDATA content as text', async () => {
|
|
118
|
+
const xml = '<data><![CDATA[raw <content> & stuff]]></data>';
|
|
119
|
+
const doc = new DOMParser().parseFromString(xml, 'application/xml');
|
|
120
|
+
expect(doc.documentElement!.textContent).toBe('raw <content> & stuff');
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
await it('handles CDATA with embedded ]]', async () => {
|
|
124
|
+
// CDATA terminates at the FIRST ]]>, so we just verify the
|
|
125
|
+
// happy path here (single ]]).
|
|
126
|
+
const xml = '<data><![CDATA[ok]]></data>';
|
|
127
|
+
const doc = new DOMParser().parseFromString(xml, 'application/xml');
|
|
128
|
+
expect(doc.documentElement!.textContent).toBe('ok');
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
await describe('Element.querySelector', async () => {
|
|
133
|
+
const xml = `<map>
|
|
134
|
+
<tileset firstgid="1" name="ts1"/>
|
|
135
|
+
<tileset firstgid="100" name="ts2"/>
|
|
136
|
+
<layer><data/></layer>
|
|
137
|
+
<objectgroup><object id="1"/><object id="2"/></objectgroup>
|
|
138
|
+
</map>`;
|
|
139
|
+
|
|
140
|
+
await it('finds the first matching descendant by tag name', async () => {
|
|
141
|
+
const doc = new DOMParser().parseFromString(xml, 'application/xml');
|
|
142
|
+
const ts = doc.querySelector('tileset');
|
|
143
|
+
expect(ts).not.toBeNull();
|
|
144
|
+
expect(ts!.getAttribute('name')).toBe('ts1');
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
await it('returns null when no element matches', async () => {
|
|
148
|
+
const doc = new DOMParser().parseFromString(xml, 'application/xml');
|
|
149
|
+
expect(doc.querySelector('imagelayer')).toBeNull();
|
|
150
|
+
});
|
|
151
|
+
|
|
152
|
+
await it('finds nested elements (data inside layer)', async () => {
|
|
153
|
+
const doc = new DOMParser().parseFromString(xml, 'application/xml');
|
|
154
|
+
const data = doc.querySelector('data');
|
|
155
|
+
expect(data).not.toBeNull();
|
|
156
|
+
expect(data!.tagName).toBe('data');
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
await it('querySelectorAll returns all matches', async () => {
|
|
160
|
+
const doc = new DOMParser().parseFromString(xml, 'application/xml');
|
|
161
|
+
const tilesets = doc.querySelectorAll('tileset');
|
|
162
|
+
expect(tilesets.length).toBe(2);
|
|
163
|
+
expect(tilesets[0].getAttribute('name')).toBe('ts1');
|
|
164
|
+
expect(tilesets[1].getAttribute('name')).toBe('ts2');
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
await it('querySelectorAll finds nested matches', async () => {
|
|
168
|
+
const doc = new DOMParser().parseFromString(xml, 'application/xml');
|
|
169
|
+
const objects = doc.querySelectorAll('object');
|
|
170
|
+
expect(objects.length).toBe(2);
|
|
171
|
+
expect(objects[0].getAttribute('id')).toBe('1');
|
|
172
|
+
expect(objects[1].getAttribute('id')).toBe('2');
|
|
173
|
+
});
|
|
174
|
+
});
|
|
175
|
+
|
|
176
|
+
await describe('TMX real-world subset', async () => {
|
|
177
|
+
// Minimal subset of an actual Tiled .tmx map — validates that the
|
|
178
|
+
// parser handles the concrete structure used by excalibur-tiled.
|
|
179
|
+
const tmx = `<?xml version="1.0" encoding="UTF-8"?>
|
|
180
|
+
<map version="1.10" tiledversion="1.10.2" orientation="orthogonal" width="260" height="30" tilewidth="16" tileheight="16" infinite="0">
|
|
181
|
+
<properties>
|
|
182
|
+
<property name="excalibur" type="bool" value="true"/>
|
|
183
|
+
</properties>
|
|
184
|
+
<tileset firstgid="1" name="tileset" tilewidth="16" tileheight="16" tilecount="512" columns="32">
|
|
185
|
+
<image source="../images/tileset.png" width="512" height="256"/>
|
|
186
|
+
<tile id="17">
|
|
187
|
+
<properties>
|
|
188
|
+
<property name="ladder" type="bool" value="true"/>
|
|
189
|
+
</properties>
|
|
190
|
+
</tile>
|
|
191
|
+
</tileset>
|
|
192
|
+
</map>`;
|
|
193
|
+
|
|
194
|
+
await it('parses the map element and its attributes', async () => {
|
|
195
|
+
const doc = new DOMParser().parseFromString(tmx, 'application/xml');
|
|
196
|
+
const map = doc.documentElement!;
|
|
197
|
+
expect(map.tagName).toBe('map');
|
|
198
|
+
expect(map.getAttribute('version')).toBe('1.10');
|
|
199
|
+
expect(map.getAttribute('width')).toBe('260');
|
|
200
|
+
expect(map.getAttribute('orientation')).toBe('orthogonal');
|
|
201
|
+
});
|
|
202
|
+
|
|
203
|
+
await it('finds the properties child of the map', async () => {
|
|
204
|
+
const doc = new DOMParser().parseFromString(tmx, 'application/xml');
|
|
205
|
+
const props = doc.querySelector('properties');
|
|
206
|
+
expect(props).not.toBeNull();
|
|
207
|
+
expect(props!.children[0].tagName).toBe('property');
|
|
208
|
+
expect(props!.children[0].getAttribute('name')).toBe('excalibur');
|
|
209
|
+
});
|
|
210
|
+
|
|
211
|
+
await it('iterates tileset children and finds the image source', async () => {
|
|
212
|
+
const doc = new DOMParser().parseFromString(tmx, 'application/xml');
|
|
213
|
+
const tileset = doc.querySelector('tileset');
|
|
214
|
+
expect(tileset).not.toBeNull();
|
|
215
|
+
// Replicates excalibur-tiled's `for (let child of tilesetNode.children)` loop
|
|
216
|
+
let imageSource: string | null = null;
|
|
217
|
+
for (const child of tileset!.children) {
|
|
218
|
+
if (child.tagName === 'image') {
|
|
219
|
+
imageSource = child.getAttribute('source');
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
expect(imageSource).toBe('../images/tileset.png');
|
|
223
|
+
});
|
|
224
|
+
|
|
225
|
+
await it('finds nested tile properties', async () => {
|
|
226
|
+
const doc = new DOMParser().parseFromString(tmx, 'application/xml');
|
|
227
|
+
const tile = doc.querySelector('tile');
|
|
228
|
+
expect(tile).not.toBeNull();
|
|
229
|
+
expect(tile!.getAttribute('id')).toBe('17');
|
|
230
|
+
const tileProps = tile!.querySelector('properties');
|
|
231
|
+
expect(tileProps).not.toBeNull();
|
|
232
|
+
expect(tileProps!.children[0].getAttribute('name')).toBe('ladder');
|
|
233
|
+
});
|
|
234
|
+
});
|
|
235
|
+
});
|
|
236
|
+
};
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
// DOMParser for GJS — self-contained XML/HTML parser.
|
|
2
|
+
// Implements the WHATWG DOMParser interface (parseFromString) with a minimal
|
|
3
|
+
// DOM sufficient for the excalibur-tiled plugin:
|
|
4
|
+
// - Element: tagName, getAttribute, children, childNodes, querySelector,
|
|
5
|
+
// querySelectorAll, textContent, innerHTML
|
|
6
|
+
// - Document: documentElement, querySelector, querySelectorAll
|
|
7
|
+
//
|
|
8
|
+
// Reference: https://developer.mozilla.org/en-US/docs/Web/API/DOMParser
|
|
9
|
+
|
|
10
|
+
export class DOMNode {
|
|
11
|
+
nodeType: number;
|
|
12
|
+
nodeName: string;
|
|
13
|
+
nodeValue: string | null;
|
|
14
|
+
parentNode: DOMNode | null = null;
|
|
15
|
+
childNodes: DOMNode[] = [];
|
|
16
|
+
|
|
17
|
+
constructor(nodeType: number, nodeName: string, nodeValue: string | null = null) {
|
|
18
|
+
this.nodeType = nodeType;
|
|
19
|
+
this.nodeName = nodeName;
|
|
20
|
+
this.nodeValue = nodeValue;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
get textContent(): string {
|
|
24
|
+
if (this.nodeType === 3 || this.nodeType === 4) return this.nodeValue ?? '';
|
|
25
|
+
return this.childNodes.map(c => c.textContent ?? '').join('');
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export class DOMElement extends DOMNode {
|
|
30
|
+
tagName: string;
|
|
31
|
+
localName: string;
|
|
32
|
+
private _attrs: Map<string, string> = new Map();
|
|
33
|
+
|
|
34
|
+
constructor(tagName: string) {
|
|
35
|
+
super(1, tagName.toUpperCase());
|
|
36
|
+
this.tagName = tagName.toLowerCase();
|
|
37
|
+
this.localName = this.tagName;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
get children(): DOMElement[] {
|
|
41
|
+
return this.childNodes.filter((n): n is DOMElement => n.nodeType === 1);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
getAttribute(name: string): string | null {
|
|
45
|
+
return this._attrs.has(name) ? (this._attrs.get(name) ?? null) : null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
setAttribute(name: string, value: string): void {
|
|
49
|
+
this._attrs.set(name, value);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
hasAttribute(name: string): boolean {
|
|
53
|
+
return this._attrs.has(name);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
get attributes(): { name: string; value: string }[] {
|
|
57
|
+
return Array.from(this._attrs.entries()).map(([name, value]) => ({ name, value }));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
get innerHTML(): string {
|
|
61
|
+
return this.childNodes.map(n => {
|
|
62
|
+
if (n.nodeType === 1) return (n as DOMElement).outerHTML;
|
|
63
|
+
if (n.nodeType === 3) return n.nodeValue ?? '';
|
|
64
|
+
if (n.nodeType === 4) return '<![CDATA[' + (n.nodeValue ?? '') + ']]>';
|
|
65
|
+
return '';
|
|
66
|
+
}).join('');
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
get outerHTML(): string {
|
|
70
|
+
const attrs = Array.from(this._attrs.entries())
|
|
71
|
+
.map(([k, v]) => ' ' + k + '="' + v.replace(/"/g, '"') + '"')
|
|
72
|
+
.join('');
|
|
73
|
+
if (this.childNodes.length === 0) return '<' + this.tagName + attrs + '/>';
|
|
74
|
+
return '<' + this.tagName + attrs + '>' + this.innerHTML + '</' + this.tagName + '>';
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
querySelector(selector: string): DOMElement | null {
|
|
78
|
+
const parts = selector.trim().split(/\s*>\s*/);
|
|
79
|
+
if (parts.length > 1) return this._queryChildChain(parts);
|
|
80
|
+
const parts2 = selector.trim().split(/\s+/);
|
|
81
|
+
if (parts2.length > 1) return this._queryDescendantChain(parts2);
|
|
82
|
+
return this._find(selector.trim().toLowerCase()) ?? null;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
querySelectorAll(selector: string): DOMElement[] {
|
|
86
|
+
const tag = selector.trim().toLowerCase();
|
|
87
|
+
const results: DOMElement[] = [];
|
|
88
|
+
this._findAll(tag, results);
|
|
89
|
+
return results;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
_find(tag: string): DOMElement | undefined {
|
|
93
|
+
for (const child of this.children) {
|
|
94
|
+
if (child.tagName === tag) return child;
|
|
95
|
+
const found = child._find(tag);
|
|
96
|
+
if (found) return found;
|
|
97
|
+
}
|
|
98
|
+
return undefined;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
_findAll(tag: string, results: DOMElement[]): void {
|
|
102
|
+
for (const child of this.children) {
|
|
103
|
+
if (child.tagName === tag) results.push(child);
|
|
104
|
+
child._findAll(tag, results);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
private _queryChildChain(parts: string[]): DOMElement | null {
|
|
109
|
+
const [first, ...rest] = parts;
|
|
110
|
+
const matching = this.children.filter(c => c.tagName === first.trim().toLowerCase());
|
|
111
|
+
if (rest.length === 0) return matching[0] ?? null;
|
|
112
|
+
for (const el of matching) {
|
|
113
|
+
const found = el._queryChildChain(rest);
|
|
114
|
+
if (found) return found;
|
|
115
|
+
}
|
|
116
|
+
return null;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
private _queryDescendantChain(parts: string[]): DOMElement | null {
|
|
120
|
+
const [first, ...rest] = parts;
|
|
121
|
+
const candidates: DOMElement[] = [];
|
|
122
|
+
this._findAll(first.trim().toLowerCase(), candidates);
|
|
123
|
+
if (rest.length === 0) return candidates[0] ?? null;
|
|
124
|
+
for (const el of candidates) {
|
|
125
|
+
const found = el._queryDescendantChain(rest);
|
|
126
|
+
if (found) return found;
|
|
127
|
+
}
|
|
128
|
+
return null;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export class DOMDocument extends DOMElement {
|
|
133
|
+
documentElement: DOMElement | null = null;
|
|
134
|
+
|
|
135
|
+
constructor() {
|
|
136
|
+
super('#document');
|
|
137
|
+
this.nodeType = 9;
|
|
138
|
+
this.nodeName = '#document';
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
querySelector(selector: string): DOMElement | null {
|
|
142
|
+
if (this.documentElement) {
|
|
143
|
+
const tag = selector.trim().toLowerCase();
|
|
144
|
+
if (this.documentElement.tagName === tag) return this.documentElement;
|
|
145
|
+
return this.documentElement.querySelector(selector);
|
|
146
|
+
}
|
|
147
|
+
return super.querySelector(selector);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
querySelectorAll(selector: string): DOMElement[] {
|
|
151
|
+
const tag = selector.trim().toLowerCase();
|
|
152
|
+
const results: DOMElement[] = [];
|
|
153
|
+
if (this.documentElement) {
|
|
154
|
+
if (this.documentElement.tagName === tag) results.push(this.documentElement);
|
|
155
|
+
this.documentElement._findAll(tag, results);
|
|
156
|
+
}
|
|
157
|
+
return results;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
// ---------------------------------------------------------------------------
|
|
162
|
+
// XML tokeniser
|
|
163
|
+
// ---------------------------------------------------------------------------
|
|
164
|
+
|
|
165
|
+
const ATTR_PATTERN = /\s+([\w:.-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\S+))/g;
|
|
166
|
+
|
|
167
|
+
function parseAttributes(attrsStr: string, el: DOMElement): void {
|
|
168
|
+
let m: RegExpExecArray | null;
|
|
169
|
+
ATTR_PATTERN.lastIndex = 0;
|
|
170
|
+
while ((m = ATTR_PATTERN.exec(attrsStr)) !== null) {
|
|
171
|
+
el.setAttribute(m[1], m[2] ?? m[3] ?? m[4] ?? '');
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
function parseXml(xml: string): DOMDocument {
|
|
176
|
+
const doc = new DOMDocument();
|
|
177
|
+
const stack: DOMElement[] = [doc];
|
|
178
|
+
let i = 0;
|
|
179
|
+
const len = xml.length;
|
|
180
|
+
|
|
181
|
+
while (i < len) {
|
|
182
|
+
const ltIdx = xml.indexOf('<', i);
|
|
183
|
+
if (ltIdx === -1) {
|
|
184
|
+
const text = xml.slice(i);
|
|
185
|
+
if (text.trim()) {
|
|
186
|
+
const tn = new DOMNode(3, '#text', text);
|
|
187
|
+
const top = stack[stack.length - 1];
|
|
188
|
+
tn.parentNode = top;
|
|
189
|
+
top.childNodes.push(tn);
|
|
190
|
+
}
|
|
191
|
+
break;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
if (ltIdx > i) {
|
|
195
|
+
const text = xml.slice(i, ltIdx);
|
|
196
|
+
if (text.trim()) {
|
|
197
|
+
const tn = new DOMNode(3, '#text', text);
|
|
198
|
+
const top = stack[stack.length - 1];
|
|
199
|
+
tn.parentNode = top;
|
|
200
|
+
top.childNodes.push(tn);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
// CDATA
|
|
205
|
+
if (xml.startsWith('<![CDATA[', ltIdx)) {
|
|
206
|
+
const end = xml.indexOf(']]>', ltIdx);
|
|
207
|
+
if (end === -1) break;
|
|
208
|
+
const cn = new DOMNode(4, '#cdata-section', xml.slice(ltIdx + 9, end));
|
|
209
|
+
const top = stack[stack.length - 1];
|
|
210
|
+
cn.parentNode = top;
|
|
211
|
+
top.childNodes.push(cn);
|
|
212
|
+
i = end + 3;
|
|
213
|
+
continue;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
// Comment
|
|
217
|
+
if (xml.startsWith('<!--', ltIdx)) {
|
|
218
|
+
const end = xml.indexOf('-->', ltIdx);
|
|
219
|
+
i = end === -1 ? len : end + 3;
|
|
220
|
+
continue;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
// Processing instruction or DOCTYPE
|
|
224
|
+
if (xml.startsWith('<?', ltIdx) || xml.startsWith('<!', ltIdx)) {
|
|
225
|
+
const end = xml.indexOf('>', ltIdx);
|
|
226
|
+
i = end === -1 ? len : end + 1;
|
|
227
|
+
continue;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
// For tags that may contain '>' inside attribute values, find proper end
|
|
231
|
+
const gtIdx = findTagEnd(xml, ltIdx + 1);
|
|
232
|
+
if (gtIdx === -1) break;
|
|
233
|
+
|
|
234
|
+
const tagContent = xml.slice(ltIdx + 1, gtIdx);
|
|
235
|
+
|
|
236
|
+
// Closing tag
|
|
237
|
+
if (tagContent.startsWith('/')) {
|
|
238
|
+
if (stack.length > 1) stack.pop();
|
|
239
|
+
i = gtIdx + 1;
|
|
240
|
+
continue;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
const selfClosing = tagContent.endsWith('/');
|
|
244
|
+
const inner = selfClosing ? tagContent.slice(0, -1) : tagContent;
|
|
245
|
+
|
|
246
|
+
const wsIdx = inner.search(/\s/);
|
|
247
|
+
const tagName = (wsIdx === -1 ? inner : inner.slice(0, wsIdx)).trim();
|
|
248
|
+
if (!tagName) { i = gtIdx + 1; continue; }
|
|
249
|
+
|
|
250
|
+
const el = new DOMElement(tagName);
|
|
251
|
+
if (wsIdx !== -1) parseAttributes(inner.slice(wsIdx), el);
|
|
252
|
+
|
|
253
|
+
const top = stack[stack.length - 1];
|
|
254
|
+
el.parentNode = top;
|
|
255
|
+
top.childNodes.push(el);
|
|
256
|
+
|
|
257
|
+
if (top === doc && !doc.documentElement) {
|
|
258
|
+
doc.documentElement = el;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
if (!selfClosing) stack.push(el);
|
|
262
|
+
|
|
263
|
+
i = gtIdx + 1;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
return doc;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/** Find the index of '>' that closes a tag, skipping '>' inside quoted attribute values. */
|
|
270
|
+
function findTagEnd(xml: string, start: number): number {
|
|
271
|
+
let inSingle = false;
|
|
272
|
+
let inDouble = false;
|
|
273
|
+
for (let i = start; i < xml.length; i++) {
|
|
274
|
+
const ch = xml[i];
|
|
275
|
+
if (ch === '"' && !inSingle) { inDouble = !inDouble; continue; }
|
|
276
|
+
if (ch === "'" && !inDouble) { inSingle = !inSingle; continue; }
|
|
277
|
+
if (ch === '>' && !inSingle && !inDouble) return i;
|
|
278
|
+
}
|
|
279
|
+
return -1;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
// ---------------------------------------------------------------------------
|
|
283
|
+
// DOMParser
|
|
284
|
+
// ---------------------------------------------------------------------------
|
|
285
|
+
|
|
286
|
+
export class DOMParser {
|
|
287
|
+
parseFromString(string: string, _mimeType: string): DOMDocument {
|
|
288
|
+
return parseXml(string);
|
|
289
|
+
}
|
|
290
|
+
}
|
package/src/register.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Side-effect module: registers DOMParser on globalThis.
|
|
2
|
+
// Import via `@gjsify/domparser/register` or list `DOMParser` in --globals.
|
|
3
|
+
|
|
4
|
+
import { DOMParser } from './index.js';
|
|
5
|
+
|
|
6
|
+
if (typeof (globalThis as any).DOMParser === 'undefined') {
|
|
7
|
+
(globalThis as any).DOMParser = DOMParser;
|
|
8
|
+
}
|
package/src/test.mts
ADDED
package/tsconfig.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"module": "ESNext",
|
|
4
|
+
"types": ["node"],
|
|
5
|
+
"target": "ESNext",
|
|
6
|
+
"emitDeclarationOnly": true,
|
|
7
|
+
"declaration": true,
|
|
8
|
+
"outDir": "lib",
|
|
9
|
+
"rootDir": "src",
|
|
10
|
+
"declarationDir": "lib/types",
|
|
11
|
+
"composite": true,
|
|
12
|
+
"moduleResolution": "bundler",
|
|
13
|
+
"allowImportingTsExtensions": true,
|
|
14
|
+
"skipLibCheck": true,
|
|
15
|
+
"allowJs": true,
|
|
16
|
+
"checkJs": false,
|
|
17
|
+
"strict": false
|
|
18
|
+
},
|
|
19
|
+
"reflection": false,
|
|
20
|
+
"include": ["src/**/*.ts"]
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/typescript/lib/lib.es2024.d.ts","../../../node_modules/typescript/lib/lib.es2025.d.ts","../../../node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.dom.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../node_modules/typescript/lib/lib.scripthost.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2024.collection.d.ts","../../../node_modules/typescript/lib/lib.es2024.object.d.ts","../../../node_modules/typescript/lib/lib.es2024.promise.d.ts","../../../node_modules/typescript/lib/lib.es2024.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2024.string.d.ts","../../../node_modules/typescript/lib/lib.es2025.collection.d.ts","../../../node_modules/typescript/lib/lib.es2025.float16.d.ts","../../../node_modules/typescript/lib/lib.es2025.intl.d.ts","../../../node_modules/typescript/lib/lib.es2025.iterator.d.ts","../../../node_modules/typescript/lib/lib.es2025.promise.d.ts","../../../node_modules/typescript/lib/lib.es2025.regexp.d.ts","../../../node_modules/typescript/lib/lib.esnext.array.d.ts","../../../node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../node_modules/typescript/lib/lib.esnext.date.d.ts","../../../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../node_modules/typescript/lib/lib.esnext.error.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.esnext.temporal.d.ts","../../../node_modules/typescript/lib/lib.esnext.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/typescript/lib/lib.esnext.full.d.ts","../../../node_modules/@girs/gjs/gettext.d.ts","../../../node_modules/@girs/gobject-2.0/gobject-2.0-ambient.d.ts","../../../node_modules/@girs/gobject-2.0/gobject-2.0-import.d.ts","../../../node_modules/@girs/glib-2.0/glib-2.0-ambient.d.ts","../../../node_modules/@girs/glib-2.0/glib-2.0-import.d.ts","../../../node_modules/@girs/glib-2.0/glib-2.0.d.ts","../../../node_modules/@girs/glib-2.0/index.d.ts","../../../node_modules/@girs/gobject-2.0/gobject-2.0.d.ts","../../../node_modules/@girs/gobject-2.0/index.d.ts","../../../node_modules/@girs/gjs/system.d.ts","../../../node_modules/@girs/cairo-1.0/cairo-1.0-ambient.d.ts","../../../node_modules/@girs/cairo-1.0/cairo-1.0-import.d.ts","../../../node_modules/@girs/cairo-1.0/cairo-1.0.d.ts","../../../node_modules/@girs/cairo-1.0/index.d.ts","../../../node_modules/@girs/gjs/cairo.d.ts","../../../node_modules/@girs/gjs/console.d.ts","../../../node_modules/@girs/gjs/gi.d.ts","../../../node_modules/@girs/gjs/gjs-ambient.d.ts","../../../node_modules/@girs/gjs/gjs.d.ts","../../../node_modules/@girs/gjs/index.d.ts","../../gjs/unit/lib/types/spy.d.ts","../../gjs/unit/lib/types/index.d.ts","./src/index.ts","./src/index.spec.ts","./src/register.ts","../../../node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../node_modules/@types/node/web-globals/blob.d.ts","../../../node_modules/@types/node/web-globals/console.d.ts","../../../node_modules/@types/node/web-globals/crypto.d.ts","../../../node_modules/@types/node/web-globals/domexception.d.ts","../../../node_modules/@types/node/web-globals/encoding.d.ts","../../../node_modules/@types/node/web-globals/events.d.ts","../../../node_modules/undici-types/utility.d.ts","../../../node_modules/undici-types/header.d.ts","../../../node_modules/undici-types/readable.d.ts","../../../node_modules/undici-types/fetch.d.ts","../../../node_modules/undici-types/formdata.d.ts","../../../node_modules/undici-types/connector.d.ts","../../../node_modules/undici-types/client-stats.d.ts","../../../node_modules/undici-types/client.d.ts","../../../node_modules/undici-types/errors.d.ts","../../../node_modules/undici-types/dispatcher.d.ts","../../../node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/undici-types/global-origin.d.ts","../../../node_modules/undici-types/pool-stats.d.ts","../../../node_modules/undici-types/pool.d.ts","../../../node_modules/undici-types/handlers.d.ts","../../../node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/undici-types/round-robin-pool.d.ts","../../../node_modules/undici-types/h2c-client.d.ts","../../../node_modules/undici-types/agent.d.ts","../../../node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/undici-types/mock-call-history.d.ts","../../../node_modules/undici-types/mock-agent.d.ts","../../../node_modules/undici-types/mock-client.d.ts","../../../node_modules/undici-types/mock-pool.d.ts","../../../node_modules/undici-types/snapshot-agent.d.ts","../../../node_modules/undici-types/mock-errors.d.ts","../../../node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/undici-types/retry-handler.d.ts","../../../node_modules/undici-types/retry-agent.d.ts","../../../node_modules/undici-types/api.d.ts","../../../node_modules/undici-types/cache-interceptor.d.ts","../../../node_modules/undici-types/interceptors.d.ts","../../../node_modules/undici-types/util.d.ts","../../../node_modules/undici-types/cookies.d.ts","../../../node_modules/undici-types/patch.d.ts","../../../node_modules/undici-types/websocket.d.ts","../../../node_modules/undici-types/eventsource.d.ts","../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/undici-types/content-type.d.ts","../../../node_modules/undici-types/cache.d.ts","../../../node_modules/undici-types/index.d.ts","../../../node_modules/@types/node/web-globals/fetch.d.ts","../../../node_modules/@types/node/web-globals/importmeta.d.ts","../../../node_modules/@types/node/web-globals/messaging.d.ts","../../../node_modules/@types/node/web-globals/navigator.d.ts","../../../node_modules/@types/node/web-globals/performance.d.ts","../../../node_modules/@types/node/web-globals/storage.d.ts","../../../node_modules/@types/node/web-globals/streams.d.ts","../../../node_modules/@types/node/web-globals/timers.d.ts","../../../node_modules/@types/node/web-globals/url.d.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/inspector.generated.d.ts","../../../node_modules/@types/node/inspector/promises.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/buffer/index.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/path/posix.d.ts","../../../node_modules/@types/node/path/win32.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/quic.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/readline/promises.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/sea.d.ts","../../../node_modules/@types/node/sqlite.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/test.d.ts","../../../node_modules/@types/node/test/reporters.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/util/types.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/index.d.ts"],"fileIdsList":[[104,107,111,121,184,187,192,196,199,201,202,203,216],[107,111,121,184,187,192,196,199,201,202,203,216],[100,102,111,113,121,184,187,192,196,199,201,202,203,216],[105,106,111,121,184,187,192,196,199,201,202,203,216],[102,107,111,121,184,187,192,196,199,201,202,203,216],[111,121,184,187,192,196,199,201,202,203,216],[94,103,108,109,110,121,184,187,192,196,199,201,202,203,216],[94,100,102,103,108,111,121,184,187,192,196,199,201,202,203,216],[111,112,121,184,187,192,196,199,201,202,203,216],[102,111,121,184,187,192,196,199,201,202,203,216],[97,100,111,121,184,187,192,196,199,201,202,203,216],[100,111,121,184,187,192,196,199,201,202,203,216],[102,111,113,121,184,187,192,196,199,201,202,203,216],[98,99,111,121,184,187,192,196,199,201,202,203,216],[95,102,111,121,184,187,192,196,199,201,202,203,216],[100,111,113,121,184,187,192,196,199,201,202,203,216],[96,101,111,121,184,187,192,196,199,201,202,203,216],[111,121,181,182,184,187,192,196,199,201,202,203,216],[111,121,183,184,187,192,196,199,201,202,203,216],[111,184,187,192,196,199,201,202,203,216],[111,121,184,187,192,196,199,201,202,203,216,224],[111,121,184,185,187,190,192,195,196,199,201,202,203,205,216,221,233],[111,121,184,185,186,187,192,195,196,199,201,202,203,216],[111,121,184,187,192,196,199,201,202,203,216,234],[111,121,184,187,188,189,192,196,199,201,202,203,207,216],[111,121,184,187,189,192,196,199,201,202,203,216,221,230],[111,121,184,187,190,192,195,196,199,201,202,203,205,216],[111,121,183,184,187,191,192,196,199,201,202,203,216],[111,121,184,187,192,193,196,199,201,202,203,216],[111,121,184,187,192,194,195,196,199,201,202,203,216],[111,121,183,184,187,192,195,196,199,201,202,203,216],[111,121,184,187,192,195,196,197,199,201,202,203,216,221,233],[111,121,184,187,192,195,196,197,199,201,202,203,216,221,224],[111,121,171,184,187,192,195,196,198,199,201,202,203,205,216,221,233],[111,121,184,187,192,195,196,198,199,201,202,203,205,216,221,230,233],[111,121,184,187,192,196,198,199,200,201,202,203,216,221,230,233],[111,119,120,121,122,123,124,125,126,127,128,129,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240],[111,121,184,187,192,195,196,199,201,202,203,216],[111,121,184,187,192,196,199,201,203,216],[111,121,184,187,192,196,199,201,202,203,204,216,233],[111,121,184,187,192,195,196,199,201,202,203,205,216,221],[111,121,184,187,192,196,199,201,202,203,207,216],[111,121,184,187,192,196,199,201,202,203,208,216],[111,121,184,187,192,195,196,199,201,202,203,211,216],[111,121,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240],[111,121,184,187,192,196,199,201,202,203,213,216],[111,121,184,187,192,196,199,201,202,203,214,216],[111,121,184,187,189,192,196,199,201,202,203,205,216,224],[111,121,184,187,192,195,196,199,201,202,203,216,217],[111,121,184,187,192,196,199,201,202,203,216,218,234,237],[111,121,184,187,192,195,196,199,201,202,203,216,221,223,224],[111,121,184,187,192,196,199,201,202,203,216,222,224],[111,121,184,187,192,196,199,201,202,203,216,224,234],[111,121,184,187,192,196,199,201,202,203,216,225],[111,121,181,184,187,192,196,199,201,202,203,216,221,227,233],[111,121,184,187,192,196,199,201,202,203,216,221,226],[111,121,184,187,192,195,196,199,201,202,203,216,228,229],[111,121,184,187,192,196,199,201,202,203,216,228,229],[111,121,184,187,189,192,196,199,201,202,203,205,216,221,230],[111,121,184,187,192,196,199,201,202,203,216,231],[111,121,184,187,192,196,199,201,202,203,205,216,232],[111,121,184,187,192,196,198,199,201,202,203,214,216,233],[111,121,184,187,192,196,199,201,202,203,216,234,235],[111,121,184,187,189,192,196,199,201,202,203,216,235],[111,121,184,187,192,196,199,201,202,203,216,221,236],[111,121,184,187,192,196,199,201,202,203,204,216,237],[111,121,184,187,192,196,199,201,202,203,216,238],[111,121,184,187,189,192,196,199,201,202,203,216],[111,121,171,184,187,192,196,199,201,202,203,216],[111,121,184,187,192,196,199,201,202,203,216,233],[111,121,184,187,192,196,199,201,202,203,216,239],[111,121,184,187,192,196,199,201,202,203,211,216],[111,121,184,187,192,196,199,201,202,203,216,229],[111,121,171,184,187,192,195,196,197,199,201,202,203,211,216,221,224,233,236,237,239],[111,121,184,187,192,196,199,201,202,203,216,221,240],[111,121,136,139,142,143,184,187,192,196,199,201,202,203,216,233],[111,121,139,184,187,192,196,199,201,202,203,216,221,233],[111,121,139,143,184,187,192,196,199,201,202,203,216,233],[111,121,184,187,192,196,199,201,202,203,216,221],[111,121,133,184,187,192,196,199,201,202,203,216],[111,121,137,184,187,192,196,199,201,202,203,216],[111,121,135,136,139,184,187,192,196,199,201,202,203,216,233],[111,121,184,187,192,196,199,201,202,203,205,216,230],[111,121,184,187,192,196,199,201,202,203,216,241],[111,121,133,184,187,192,196,199,201,202,203,216,241],[111,121,135,139,184,187,192,196,199,201,202,203,205,216,233],[111,121,130,131,132,134,138,184,187,192,195,196,199,201,202,203,216,221,233],[111,121,139,148,156,184,187,192,196,199,201,202,203,216],[111,121,131,137,184,187,192,196,199,201,202,203,216],[111,121,139,165,166,184,187,192,196,199,201,202,203,216],[111,121,131,134,139,184,187,192,196,199,201,202,203,216,224,233,241],[111,121,139,184,187,192,196,199,201,202,203,216],[111,121,135,139,184,187,192,196,199,201,202,203,216,233],[111,121,130,184,187,192,196,199,201,202,203,216],[111,121,133,134,135,137,138,139,140,141,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,166,167,168,169,170,184,187,192,196,199,201,202,203,216],[111,121,139,158,161,184,187,192,196,199,201,202,203,216],[111,121,139,148,149,150,184,187,192,196,199,201,202,203,216],[111,121,137,139,149,151,184,187,192,196,199,201,202,203,216],[111,121,138,184,187,192,196,199,201,202,203,216],[111,121,131,133,139,184,187,192,196,199,201,202,203,216],[111,121,139,143,149,151,184,187,192,196,199,201,202,203,216],[111,121,143,184,187,192,196,199,201,202,203,216],[111,121,137,139,142,184,187,192,196,199,201,202,203,216,233],[111,121,131,135,139,148,184,187,192,196,199,201,202,203,216],[111,121,139,158,184,187,192,196,199,201,202,203,216],[111,121,151,184,187,192,196,199,201,202,203,216],[111,121,133,139,165,184,187,192,196,199,201,202,203,216,224,239,241],[111,113,114,121,184,187,192,196,199,201,202,203,216],[111,115,116,121,184,187,192,196,199,201,202,203,216],[111,116,121,184,187,192,196,199,201,202,203,216]],"fileInfos":[{"version":"bcd24271a113971ba9eb71ff8cb01bc6b0f872a85c23fdbe5d93065b375933cd","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f88bedbeb09c6f5a6645cb24c7c55f1aa22d19ae96c8e6959cbd8b85a707bc6","impliedFormat":1},{"version":"7fe93b39b810eadd916be8db880dd7f0f7012a5cc6ffb62de8f62a2117fa6f1f","impliedFormat":1},{"version":"bb0074cc08b84a2374af33d8bf044b80851ccc9e719a5e202eacf40db2c31600","impliedFormat":1},{"version":"1a7daebe4f45fb03d9ec53d60008fbf9ac45a697fdc89e4ce218bc94b94f94d6","impliedFormat":1},{"version":"f94b133a3cb14a288803be545ac2683e0d0ff6661bcd37e31aaaec54fc382aed","impliedFormat":1},{"version":"f59d0650799f8782fd74cf73c19223730c6d1b9198671b1c5b3a38e1188b5953","impliedFormat":1},{"version":"8a15b4607d9a499e2dbeed9ec0d3c0d7372c850b2d5f1fb259e8f6d41d468a84","impliedFormat":1},{"version":"26e0fe14baee4e127f4365d1ae0b276f400562e45e19e35fd2d4c296684715e6","impliedFormat":1},{"version":"1e9332c23e9a907175e0ffc6a49e236f97b48838cc8aec9ce7e4cec21e544b65","impliedFormat":1},{"version":"3753fbc1113dc511214802a2342280a8b284ab9094f6420e7aa171e868679f91","impliedFormat":1},{"version":"999ca32883495a866aa5737fe1babc764a469e4cde6ee6b136a4b9ae68853e4b","impliedFormat":1},{"version":"17f13ecb98cbc39243f2eee1f16d45cd8ec4706b03ee314f1915f1a8b42f6984","impliedFormat":1},{"version":"d6b1eba8496bdd0eed6fc8a685768fe01b2da4a0388b5fe7df558290bffcf32f","affectsGlobalScope":true,"impliedFormat":1},{"version":"7f57fc4404ff020bc45b9c620aff2b40f700b95fe31164024c453a5e3c163c54","impliedFormat":1},{"version":"7f57fc4404ff020bc45b9c620aff2b40f700b95fe31164024c453a5e3c163c54","impliedFormat":1},{"version":"2a2de5b9459b3fc44decd9ce6100b72f1b002ef523126c1d3d8b2a4a63d74d78","affectsGlobalScope":true,"impliedFormat":1},{"version":"f13f4b465c99041e912db5c44129a94588e1aafee35a50eab51044833f50b4ee","affectsGlobalScope":true,"impliedFormat":1},{"version":"eadcffda2aa84802c73938e589b9e58248d74c59cb7fcbca6474e3435ac15504","affectsGlobalScope":true,"impliedFormat":1},{"version":"105ba8ff7ba746404fe1a2e189d1d3d2e0eb29a08c18dded791af02f29fb4711","affectsGlobalScope":true,"impliedFormat":1},{"version":"00343ca5b2e3d48fa5df1db6e32ea2a59afab09590274a6cccb1dbae82e60c7c","affectsGlobalScope":true,"impliedFormat":1},{"version":"ebd9f816d4002697cb2864bea1f0b70a103124e18a8cd9645eeccc09bdf80ab4","affectsGlobalScope":true,"impliedFormat":1},{"version":"2c1afac30a01772cd2a9a298a7ce7706b5892e447bb46bdbeef720f7b5da77ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"7b0225f483e4fa685625ebe43dd584bb7973bbd84e66a6ba7bbe175ee1048b4f","affectsGlobalScope":true,"impliedFormat":1},{"version":"c0a4b8ac6ce74679c1da2b3795296f5896e31c38e888469a8e0f99dc3305de60","affectsGlobalScope":true,"impliedFormat":1},{"version":"3084a7b5f569088e0146533a00830e206565de65cae2239509168b11434cd84f","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5079c53f0f141a0698faa903e76cb41cd664e3efb01cc17a5c46ec2eb0bef42","affectsGlobalScope":true,"impliedFormat":1},{"version":"32cafbc484dea6b0ab62cf8473182bbcb23020d70845b406f80b7526f38ae862","affectsGlobalScope":true,"impliedFormat":1},{"version":"fca4cdcb6d6c5ef18a869003d02c9f0fd95df8cfaf6eb431cd3376bc034cad36","affectsGlobalScope":true,"impliedFormat":1},{"version":"b93ec88115de9a9dc1b602291b85baf825c85666bf25985cc5f698073892b467","affectsGlobalScope":true,"impliedFormat":1},{"version":"f5c06dcc3fe849fcb297c247865a161f995cc29de7aa823afdd75aaaddc1419b","affectsGlobalScope":true,"impliedFormat":1},{"version":"b77e16112127a4b169ef0b8c3a4d730edf459c5f25fe52d5e436a6919206c4d7","affectsGlobalScope":true,"impliedFormat":1},{"version":"fbffd9337146eff822c7c00acbb78b01ea7ea23987f6c961eba689349e744f8c","affectsGlobalScope":true,"impliedFormat":1},{"version":"a995c0e49b721312f74fdfb89e4ba29bd9824c770bbb4021d74d2bf560e4c6bd","affectsGlobalScope":true,"impliedFormat":1},{"version":"c7b3542146734342e440a84b213384bfa188835537ddbda50d30766f0593aff9","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce6180fa19b1cccd07ee7f7dbb9a367ac19c0ed160573e4686425060b6df7f57","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f02e2476bccb9dbe21280d6090f0df17d2f66b74711489415a8aa4df73c9675","affectsGlobalScope":true,"impliedFormat":1},{"version":"45e3ab34c1c013c8ab2dc1ba4c80c780744b13b5676800ae2e3be27ae862c40c","affectsGlobalScope":true,"impliedFormat":1},{"version":"805c86f6cca8d7702a62a844856dbaa2a3fd2abef0536e65d48732441dde5b5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"e42e397f1a5a77994f0185fd1466520691456c772d06bf843e5084ceb879a0ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"f4c2b41f90c95b1c532ecc874bd3c111865793b23aebcc1c3cbbabcd5d76ffb0","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab26191cfad5b66afa11b8bf935ef1cd88fabfcb28d30b2dfa6fad877d050332","affectsGlobalScope":true,"impliedFormat":1},{"version":"2088bc26531e38fb05eedac2951480db5309f6be3fa4a08d2221abb0f5b4200d","affectsGlobalScope":true,"impliedFormat":1},{"version":"cb9d366c425fea79716a8fb3af0d78e6b22ebbab3bd64d25063b42dc9f531c1e","affectsGlobalScope":true,"impliedFormat":1},{"version":"500934a8089c26d57ebdb688fc9757389bb6207a3c8f0674d68efa900d2abb34","affectsGlobalScope":true,"impliedFormat":1},{"version":"689da16f46e647cef0d64b0def88910e818a5877ca5379ede156ca3afb780ac3","affectsGlobalScope":true,"impliedFormat":1},{"version":"bc21cc8b6fee4f4c2440d08035b7ea3c06b3511314c8bab6bef7a92de58a2593","affectsGlobalScope":true,"impliedFormat":1},{"version":"7ca53d13d2957003abb47922a71866ba7cb2068f8d154877c596d63c359fed25","affectsGlobalScope":true,"impliedFormat":1},{"version":"54725f8c4df3d900cb4dac84b64689ce29548da0b4e9b7c2de61d41c79293611","affectsGlobalScope":true,"impliedFormat":1},{"version":"e5594bc3076ac29e6c1ebda77939bc4c8833de72f654b6e376862c0473199323","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f3eb332c2d73e729f3364fcc0c2b375e72a121e8157d25a82d67a138c83a95c","affectsGlobalScope":true,"impliedFormat":1},{"version":"6f4427f9642ce8d500970e4e69d1397f64072ab73b97e476b4002a646ac743b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"48915f327cd1dea4d7bd358d9dc7732f58f9e1626a29cc0c05c8c692419d9bb7","affectsGlobalScope":true,"impliedFormat":1},{"version":"b7bf9377723203b5a6a4b920164df22d56a43f593269ba6ae1fdc97774b68855","affectsGlobalScope":true,"impliedFormat":1},{"version":"db9709688f82c9e5f65a119c64d835f906efe5f559d08b11642d56eb85b79357","affectsGlobalScope":true,"impliedFormat":1},{"version":"4b25b8c874acd1a4cf8444c3617e037d444d19080ac9f634b405583fd10ce1f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"37be57d7c90cf1f8112ee2636a068d8fd181289f82b744160ec56a7dc158a9f5","affectsGlobalScope":true,"impliedFormat":1},{"version":"a917a49ac94cd26b754ab84e113369a75d1a47a710661d7cd25e961cc797065f","affectsGlobalScope":true,"impliedFormat":1},{"version":"6d3261badeb7843d157ef3e6f5d1427d0eeb0af0cf9df84a62cfd29fd47ac86e","affectsGlobalScope":true,"impliedFormat":1},{"version":"195daca651dde22f2167ac0d0a05e215308119a3100f5e6268e8317d05a92526","affectsGlobalScope":true,"impliedFormat":1},{"version":"8b11e4285cd2bb164a4dc09248bdec69e9842517db4ca47c1ba913011e44ff2f","affectsGlobalScope":true,"impliedFormat":1},{"version":"0508571a52475e245b02bc50fa1394065a0a3d05277fbf5120c3784b85651799","affectsGlobalScope":true,"impliedFormat":1},{"version":"8f9af488f510c3015af3cc8c267a9e9d96c4dd38a1fdff0e11dc5a544711415b","affectsGlobalScope":true,"impliedFormat":1},{"version":"fc611fea8d30ea72c6bbfb599c9b4d393ce22e2f5bfef2172534781e7d138104","affectsGlobalScope":true,"impliedFormat":1},{"version":"0bd714129fca875f7d4c477a1a392200b0bcd13fb2e80928cd334b63830ea047","affectsGlobalScope":true,"impliedFormat":1},{"version":"e2c9037ae6cd2c52d80ceef0b3c5ffdb488627d71529cf4f63776daf11161c9a","affectsGlobalScope":true,"impliedFormat":1},{"version":"135d5cf4d345f59f1a9caadfafcd858d3d9cc68290db616cc85797224448cccc","affectsGlobalScope":true,"impliedFormat":1},{"version":"bc238c3f81c2984751932b6aab223cd5b830e0ac6cad76389e5e9d2ffc03287d","affectsGlobalScope":true,"impliedFormat":1},{"version":"4a07f9b76d361f572620927e5735b77d6d2101c23cdd94383eb5b706e7b36357","affectsGlobalScope":true,"impliedFormat":1},{"version":"7c4e8dc6ab834cc6baa0227e030606d29e3e8449a9f67cdf5605ea5493c4db29","affectsGlobalScope":true,"impliedFormat":1},{"version":"de7ba0fd02e06cd9a5bd4ab441ed0e122735786e67dde1e849cced1cd8b46b78","affectsGlobalScope":true,"impliedFormat":1},{"version":"6148e4e88d720a06855071c3db02069434142a8332cf9c182cda551adedf3156","affectsGlobalScope":true,"impliedFormat":1},{"version":"d63dba625b108316a40c95a4425f8d4294e0deeccfd6c7e59d819efa19e23409","affectsGlobalScope":true,"impliedFormat":1},{"version":"0568d6befee03dd435bed4fc25c4e46865b24bdcb8c563fdc21f580a2c301904","affectsGlobalScope":true,"impliedFormat":1},{"version":"30d62269b05b584741f19a5369852d5d34895aa2ac4fd948956f886d15f9cc0d","affectsGlobalScope":true,"impliedFormat":1},{"version":"f128dae7c44d8f35ee42e0a437000a57c9f06cc04f8b4fb42eebf44954d53dc8","affectsGlobalScope":true,"impliedFormat":1},{"version":"ffbe6d7b295306b2ba88030f65b74c107d8d99bdcf596ea99c62a02f606108b0","affectsGlobalScope":true,"impliedFormat":1},{"version":"996fb27b15277369c68a4ba46ed138b4e9e839a02fb4ec756f7997629242fd9f","affectsGlobalScope":true,"impliedFormat":1},{"version":"79b712591b270d4778c89706ca2cfc56ddb8c3f895840e477388f1710dc5eda9","affectsGlobalScope":true,"impliedFormat":1},{"version":"20884846cef428b992b9bd032e70a4ef88e349263f63aeddf04dda837a7dba26","affectsGlobalScope":true,"impliedFormat":1},{"version":"5fcab789c73a97cd43828ee3cc94a61264cf24d4c44472ce64ced0e0f148bdb2","affectsGlobalScope":true,"impliedFormat":1},{"version":"db59a81f070c1880ad645b2c0275022baa6a0c4f0acdc58d29d349c6efcf0903","affectsGlobalScope":true,"impliedFormat":1},{"version":"673294292640f5722b700e7d814e17aaf7d93f83a48a2c9b38f33cbc940ad8b0","affectsGlobalScope":true,"impliedFormat":1},{"version":"d786b48f934cbca483b3c6d0a798cb43bbb4ada283e76fb22c28e53ae05b9e69","affectsGlobalScope":true,"impliedFormat":1},{"version":"1ecb8e347cb6b2a8927c09b86263663289418df375f5e68e11a0ae683776978f","affectsGlobalScope":true,"impliedFormat":1},{"version":"142efd4ce210576f777dc34df121777be89eda476942d6d6663b03dcb53be3ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"379bc41580c2d774f82e828c70308f24a005b490c25ba34d679d84bcf05c3d9d","affectsGlobalScope":true,"impliedFormat":1},{"version":"ed484fb2aa8a1a23d0277056ec3336e0a0b52f9b8d6a961f338a642faf43235d","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ffedae1d1c2d53fdbca1c96d3c7dda544281f7d262f99b6880634f8fd8d9820","affectsGlobalScope":true,"impliedFormat":1},{"version":"83a730b125d477dd264df8ba479afab27a3dae7152b005c214ab94dc7ee44fd3","affectsGlobalScope":true,"impliedFormat":1},{"version":"1ce14b81c5cc821994aa8ec1d42b220dd41b27fcc06373bce3958af7421b77d4","affectsGlobalScope":true,"impliedFormat":1},{"version":"b3a048b3e9302ef9a34ef4ebb9aecfb28b66abb3bce577206a79fee559c230da","affectsGlobalScope":true,"impliedFormat":1},{"version":"ef4a897cd2a3f91000c10264e400b3667c7e51e1b7365f03b62e8081dc53bde6","impliedFormat":1},{"version":"2085382b07f3cd64087a991b6becb50133f01238539acfd02b4056a94a5ebb9d","impliedFormat":99},{"version":"db35eb1245b36fd3ff663811086d15cb8c68f3b3dc5f5f831db3b0eefbcb033c","impliedFormat":99},{"version":"0f3c61a292d85a2e818df1f9a7c7f37846cb1a6a3a4ecf7894f8a738d4bdb192","affectsGlobalScope":true,"impliedFormat":99},{"version":"8c9787aadb580199528c52892a52d65cf5681cbf431f50c387b4452d830e8260","impliedFormat":99},{"version":"6e9045bc4cb132b149dac58eeb9689f1fdb2b2b356ebbf02b93912b7a0fdbc25","affectsGlobalScope":true,"impliedFormat":99},{"version":"8691883b1661c3ab42fd7604cad90ef572d1022241fd846301bb701a22140679","impliedFormat":99},{"version":"a1eeac57c42f81587bdb5ba17781055a64913a1b6896752b5b9e45ba007577a2","impliedFormat":99},{"version":"c9529e5d9ddb7cfff0465931f0e33ed7992d5dfa60a54795bb51d507ee8d8c4c","impliedFormat":99},{"version":"86a89e907573f6d3c8ddab189817f10eff6b0c42ec08c485888d5e8b2efa1e2c","impliedFormat":99},{"version":"e73f713456ae34abd233f29196aa99fdf404cb91164c5122bc19a3d719047cd2","impliedFormat":99},{"version":"54c3513e44305cbe56ef433417d9e42104cdc317a63c43ecf72a1849ee69ccc2","impliedFormat":99},{"version":"7b0dc352c423e02893e3dbefdc5172f227c7638cd40c35c4b1b77af3008613de","affectsGlobalScope":true,"impliedFormat":99},{"version":"58fd9932dca08c73d5749118cd28214224c589fc48b41202f9ce0b5ba1423fb6","impliedFormat":99},{"version":"0add61f82f10b4bb3bf837edda13915a643fa650f577e79a03be219c656f9e18","impliedFormat":99},{"version":"4db1053ff2a3a26c56ec68803986fb9a2de7ecb26d6252e1d4b719c48398f799","impliedFormat":99},{"version":"c1bf15bba38171793cfc7112559b1714b0bcb9f79477e012dffc4bb0ef2292a1","impliedFormat":99},{"version":"6922180d916be5ec823dd103ec60bf1ec48bded8e53194a760831a877a7cff0f","impliedFormat":99},{"version":"d0cd0ed5ad50d765e2e30fd7a45ce1b054cce85ff8235d19bbe45152acd32a08","impliedFormat":99},{"version":"7a61ece44b95f226c4166f48ed58e90a7b76242588293c52bb45bd74368c7559","affectsGlobalScope":true,"impliedFormat":99},{"version":"8dd968f41e49b2b0514d16baa1199620746dd6e8017accbea9a39a4b0c2a9d28","impliedFormat":99},"cda120f78df4c624c7fb1bd8e17343a39bfbede803f38312fb8e51fa818e1a7a","b4e9bfc3fbd192952c7a7d07dbff2bf444262d337d4c54a898b52d9467623d45",{"version":"9dbe92c7fae1c3996ef4770f131bd954e69ff755a4be3460331ff0590f12c142","signature":"02197638aa753050ef99675c0b6c3001b287d661147163ae587e2fcb1db56dec"},{"version":"6d9cbfafccec8eb2ec98ee708d5554717f090252e1df4e2f9c5a8efa57404ed9","signature":"fefaf643ad02c05059e06244a8291c4cb3a2693ec928c843599c25d00ee9f574"},{"version":"3c21c7978897aac29541a4143bda963f154a823cad04033c9fc3dfcf27365add","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"0ccdaa19852d25ecd84eec365c3bfa16e7859cadecf6e9ca6d0dbbbee439743f","affectsGlobalScope":true,"impliedFormat":1},{"version":"cc2110f7decca6bfb9392e30421cfa1436479e4a6756e8fec6cbc22625d4f881","affectsGlobalScope":true,"impliedFormat":1},{"version":"096116f8fedc1765d5bd6ef360c257b4a9048e5415054b3bf3c41b07f8951b0b","affectsGlobalScope":true,"impliedFormat":1},{"version":"e5e01375c9e124a83b52ee4b3244ed1a4d214a6cfb54ac73e164a823a4a7860a","affectsGlobalScope":true,"impliedFormat":1},{"version":"f90ae2bbce1505e67f2f6502392e318f5714bae82d2d969185c4a6cecc8af2fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"4b58e207b93a8f1c88bbf2a95ddc686ac83962b13830fe8ad3f404ffc7051fb4","affectsGlobalScope":true,"impliedFormat":1},{"version":"1fefabcb2b06736a66d2904074d56268753654805e829989a46a0161cd8412c5","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"c18a99f01eb788d849ad032b31cafd49de0b19e083fe775370834c5675d7df8e","affectsGlobalScope":true,"impliedFormat":1},{"version":"5247874c2a23b9a62d178ae84f2db6a1d54e6c9a2e7e057e178cc5eea13757fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"cdcf9ea426ad970f96ac930cd176d5c69c6c24eebd9fc580e1572d6c6a88f62c","impliedFormat":1},{"version":"23cd712e2ce083d68afe69224587438e5914b457b8acf87073c22494d706a3d0","impliedFormat":1},{"version":"156a859e21ef3244d13afeeba4e49760a6afa035c149dda52f0c45ea8903b338","impliedFormat":1},{"version":"10ec5e82144dfac6f04fa5d1d6c11763b3e4dbbac6d99101427219ab3e2ae887","impliedFormat":1},{"version":"615754924717c0b1e293e083b83503c0a872717ad5aa60ed7f1a699eb1b4ea5c","impliedFormat":1},{"version":"074de5b2fdead0165a2757e3aaef20f27a6347b1c36adea27d51456795b37682","impliedFormat":1},{"version":"68834d631c8838c715f225509cfc3927913b9cc7a4870460b5b60c8dbdb99baf","impliedFormat":1},{"version":"4137ebf04166f3a325f056aa56101adc75e9dceb30404a1844eb8604d89770e2","impliedFormat":1},{"version":"ccab02f3920fc75c01174c47fcf67882a11daf16baf9e81701d0a94636e94556","impliedFormat":1},{"version":"3e11fce78ad8c0e1d1db4ba5f0652285509be3acdd519529bc8fcef85f7dafd9","impliedFormat":1},{"version":"ea6bc8de8b59f90a7a3960005fd01988f98fd0784e14bc6922dde2e93305ec7d","impliedFormat":1},{"version":"36107995674b29284a115e21a0618c4c2751b32a8766dd4cb3ba740308b16d59","impliedFormat":1},{"version":"914a0ae30d96d71915fc519ccb4efbf2b62c0ddfb3a3fc6129151076bc01dc60","impliedFormat":1},{"version":"9c32412007b5662fd34a8eb04292fb5314ec370d7016d1c2fb8aa193c807fe22","impliedFormat":1},{"version":"7fd1b31fd35876b0aa650811c25ec2c97a3c6387e5473eb18004bed86cdd76b6","impliedFormat":1},{"version":"4d327f7d72ad0918275cea3eee49a6a8dc8114ae1d5b7f3f5d0774de75f7439a","impliedFormat":1},{"version":"6ebe8ebb8659aaa9d1acbf3710d7dae3e923e97610238b9511c25dc39023a166","impliedFormat":1},{"version":"e85d7f8068f6a26710bff0cc8c0fc5e47f71089c3780fbede05857331d2ddec9","impliedFormat":1},{"version":"7befaf0e76b5671be1d47b77fcc65f2b0aad91cc26529df1904f4a7c46d216e9","impliedFormat":1},{"version":"0a60a292b89ca7218b8616f78e5bbd1c96b87e048849469cccb4355e98af959a","impliedFormat":1},{"version":"0b6e25234b4eec6ed96ab138d96eb70b135690d7dd01f3dd8a8ab291c35a683a","impliedFormat":1},{"version":"9666f2f84b985b62400d2e5ab0adae9ff44de9b2a34803c2c5bd3c8325b17dc0","impliedFormat":1},{"version":"40cd35c95e9cf22cfa5bd84e96408b6fcbca55295f4ff822390abb11afbc3dca","impliedFormat":1},{"version":"b1616b8959bf557feb16369c6124a97a0e74ed6f49d1df73bb4b9ddf68acf3f3","impliedFormat":1},{"version":"5b03a034c72146b61573aab280f295b015b9168470f2df05f6080a2122f9b4df","impliedFormat":1},{"version":"40b463c6766ca1b689bfcc46d26b5e295954f32ad43e37ee6953c0a677e4ae2b","impliedFormat":1},{"version":"249b9cab7f5d628b71308c7d9bb0a808b50b091e640ba3ed6e2d0516f4a8d91d","impliedFormat":1},{"version":"80aae6afc67faa5ac0b32b5b8bc8cc9f7fa299cff15cf09cc2e11fd28c6ae29e","impliedFormat":1},{"version":"f473cd2288991ff3221165dcf73cd5d24da30391f87e85b3dd4d0450c787a391","impliedFormat":1},{"version":"499e5b055a5aba1e1998f7311a6c441a369831c70905cc565ceac93c28083d53","impliedFormat":1},{"version":"8aee8b6d4f9f62cf3776cda1305fb18763e2aade7e13cea5bbe699112df85214","impliedFormat":1},{"version":"98498b101803bb3dde9f76a56e65c14b75db1cc8bec5f4db72be541570f74fc5","impliedFormat":1},{"version":"1cc2a09e1a61a5222d4174ab358a9f9de5e906afe79dbf7363d871a7edda3955","impliedFormat":1},{"version":"5d0375ca7310efb77e3ef18d068d53784faf62705e0ad04569597ae0e755c401","impliedFormat":1},{"version":"59af37caec41ecf7b2e76059c9672a49e682c1a2aa6f9d7dc78878f53aa284d6","impliedFormat":1},{"version":"addf417b9eb3f938fddf8d81e96393a165e4be0d4a8b6402292f9c634b1cb00d","impliedFormat":1},{"version":"b64d4d1c5f877f9c666e98e833f0205edb9384acc46e98a1fef344f64d6aba44","impliedFormat":1},{"version":"adf27937dba6af9f08a68c5b1d3fce0ca7d4b960c57e6d6c844e7d1a8e53adae","impliedFormat":1},{"version":"12950411eeab8563b349cb7959543d92d8d02c289ed893d78499a19becb5a8cc","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"c9381908473a1c92cb8c516b184e75f4d226dad95c3a85a5af35f670064d9a2f","impliedFormat":1},{"version":"c3f5289820990ab66b70c7fb5b63cb674001009ff84b13de40619619a9c8175f","affectsGlobalScope":true,"impliedFormat":1},{"version":"b3275d55fac10b799c9546804126239baf020d220136163f763b55a74e50e750","affectsGlobalScope":true,"impliedFormat":1},{"version":"fa68a0a3b7cb32c00e39ee3cd31f8f15b80cac97dce51b6ee7fc14a1e8deb30b","affectsGlobalScope":true,"impliedFormat":1},{"version":"1cf059eaf468efcc649f8cf6075d3cb98e9a35a0fe9c44419ec3d2f5428d7123","affectsGlobalScope":true,"impliedFormat":1},{"version":"6c36e755bced82df7fb6ce8169265d0a7bb046ab4e2cb6d0da0cb72b22033e89","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"7a93de4ff8a63bafe62ba86b89af1df0ccb5e40bb85b0c67d6bbcfdcf96bf3d4","affectsGlobalScope":true,"impliedFormat":1},{"version":"90e85f9bc549dfe2b5749b45fe734144e96cd5d04b38eae244028794e142a77e","affectsGlobalScope":true,"impliedFormat":1},{"version":"e0a5deeb610b2a50a6350bd23df6490036a1773a8a71d70f2f9549ab009e67ee","affectsGlobalScope":true,"impliedFormat":1},{"version":"d2ae155afe8a01cc0ae612d99117cf8ef16692ba7c4366590156fdec1bcf2d8c","impliedFormat":1},{"version":"3f5e5d9be35913db9fea42a63f3df0b7e3c8703b97670a2125587b4dbbd56d7c","impliedFormat":1},{"version":"8caeb65fdc3bfe0d13f86f67324fcb2d858ed1c55f1f0cce892eb1acfb9f3239","impliedFormat":1},{"version":"57c23df0b5f7a8e26363a3849b0bc7763f6b241207157c8e40089d1df4116f35","affectsGlobalScope":true,"impliedFormat":1},{"version":"3b8bc0c17b54081b0878673989216229e575d67a10874e84566a21025a2461ee","impliedFormat":1},{"version":"5b0db5a58b73498792a29bfebc333438e61906fef75da898b410e24e52229e6f","impliedFormat":1},{"version":"dbe055b2b29a7bab2c1ca8f259436306adb43f469dca7e639a02cd3695d3f621","impliedFormat":1},{"version":"1678b04557dca52feab73cc67610918a7f5e25bfdba3e7fa081acd625d93106d","impliedFormat":1},{"version":"e3905f6902f0b69e5eefc230daa69fdd4ab707a973ec2d086d65af1b3ea47ef0","impliedFormat":1},{"version":"2ea729503db9793f2691162fec3dd1118cab62e96d025f8eeb376d43ec293395","impliedFormat":1},{"version":"9ec87fea42b92894b0f209931a880789d43c3397d09dd99c631ae40a2f7071d1","impliedFormat":1},{"version":"c68e88cdfadfb6c8ba5fc38e58a3a166b0beae77b1f05b7d921150a32a5ffb8d","impliedFormat":1},{"version":"2bc7aa4fba46df0bd495425a7c8201437a7d465f83854fac859df2d67f664df3","impliedFormat":1},{"version":"41d17e1ad9a002feb11c8cdd2777e5bbc0cdb1e3f595d237e4dded0b6949983b","impliedFormat":1},{"version":"07e4e61e946a9c15045539ecd5f5d2d02e7aab6fa82567826857e09cf0f37c2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c4714ccc29149efb8777a1da0b04b8d2258f5d13ddbf4cd3c3d361fb531ac86","impliedFormat":1},{"version":"3ff275f84f89f8a7c0543da838f9da9614201abc4ce74c533029825adfb4433d","impliedFormat":1},{"version":"0eb5d0cbf09de5d34542b977fd6a933bb2e0817bffe8e1a541b2f1ad1b9af1ff","impliedFormat":1},{"version":"f9713757bcdfa4d58b48c0fb249e752c94a3eee8bf4532b906094246ac49ef88","impliedFormat":1},{"version":"2c2bdaa1d8ead9f68628d6d9d250e46ee8e81aa4898b4769a36956ae15e060fe","impliedFormat":1},{"version":"c32c840c62d8bd7aeb3147aa6754cd2d922b990a6b6634530cb2ebdce5adc8e9","impliedFormat":1},{"version":"e1c1a0b4d1ead0de9eca52203aeb1f771f21e6238d6fcd15aa56ac2a02f1b7bf","impliedFormat":1},{"version":"82b91e4e42e6c41bc7fc1b6c2dc5eba6a2ba98375eb1f210e6ff6bba2d54177e","impliedFormat":1},{"version":"6fe28249ac0c7bc19a79aa9264baf00efbd080e868dbe1d3052033ad1c64f206","affectsGlobalScope":true,"impliedFormat":1},{"version":"cbed824fec91efefc7bbdcb8b43d1a531fdbebd0e2ef19481501ff365a93cb70","impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"d0716593b3f2b0451bcf0c24cfa86dec2235c325c89f201934248b7c742715fc","impliedFormat":1},{"version":"ec501101c2a96133a6c695f934c8f6642149cc728571b29cbb7b770984c1088e","impliedFormat":1},{"version":"b214ebcf76c51b115453f69729ee8aa7b7f8eccdae2a922b568a45c2d7ff52f7","impliedFormat":1},{"version":"429c9cdfa7d126255779efd7e6d9057ced2d69c81859bbab32073bad52e9ba76","impliedFormat":1},{"version":"2991bca2cc0f0628a278df2a2ccdb8d6cbcb700f3761abbed62bba137d5b1790","impliedFormat":1},{"version":"ce8653341224f8b45ff46d2a06f2cacb96f841f768a886c9d8dd8ec0878b11bd","affectsGlobalScope":true,"impliedFormat":1},{"version":"230763250f20449fa7b3c9273e1967adb0023dc890d4be1553faca658ee65971","impliedFormat":1},{"version":"c3e9078b60cb329d1221f5878e88cecfa3e74460550e605a58fcfb41a66029ff","impliedFormat":1},{"version":"a74edb3bab7394a9dbde529d60632be590def2f5f01024dbd85441587fbfbbe0","impliedFormat":1},{"version":"0ea59f7d3e51440baa64f429253759b106cfcbaf51e474cae606e02265b37cf8","impliedFormat":1},{"version":"bc18a1991ba681f03e13285fa1d7b99b03b67ee671b7bc936254467177543890","impliedFormat":1},{"version":"00049ccc87f3f37726db03c01ca68fe74fd9c0109b68c29eb9923ebec2c76b13","impliedFormat":1},{"version":"fa94bbf532b7af8f394b95fa310980d6e20bd2d4c871c6a6cb9f70f03750a44b","impliedFormat":1},{"version":"68d3f35108e2608b1f2f28b36d19d7055f31c4465cc5692cbd06c716a9fe7973","impliedFormat":1},{"version":"a6d543044570fbeed13a7f9925a868081cd2b14ef59cdd9da6ae76d41cab03d3","affectsGlobalScope":true,"impliedFormat":1},{"version":"7fa2214bb0d64701bc6f9ce8cde2fd2ff8c571e0b23065fa04a8a5a6beb91511","impliedFormat":1},{"version":"f1c93e046fb3d9b7f8249629f4b63dc068dd839b824dd0aa39a5e68476dc9420","impliedFormat":1},{"version":"eab2f3179607acb3d44b2db2a76dd7d621c5039b145dc160a1ee733963f9d2f5","impliedFormat":1},{"version":"841983e39bd4cbb463be385e92fda11057cab368bf27100a801c492f1d86cbaa","impliedFormat":1},{"version":"6f5383b3df1cdf4ff1aa7fb0850f77042b5786b5e65ec9a9b6be56ebfe4d9036","impliedFormat":1},{"version":"62fc21ed9ccbd83bd1166de277a4b5daaa8d15b5fa614c75610d20f3b73fba87","impliedFormat":1},{"version":"e4156ddb25aa0e3b5303d372f26957b36778f0f6bbd4326359269873295e3058","affectsGlobalScope":true,"impliedFormat":1},{"version":"cc1b433a84cae05ddc5672d4823170af78606ad21ecef60dbc4570190cbf1357","impliedFormat":1},{"version":"9d3821bc75c59577e52643324cec92fc2145642e8d17cf7ee07a3181f21d985d","impliedFormat":1},{"version":"7f78cfb2b343838612c192cb251746e3a7c62ac7675726a47e130d9b213f6580","impliedFormat":1},{"version":"201db9cf1687fab1adf5282fcba861f382b32303dc4f67c89d59655e78a25461","impliedFormat":1},{"version":"c77fb31bc17fd241d3922a9f88c59e3361cdf76d1328ba9412fc6bf7310b638d","impliedFormat":1},{"version":"0a20eaf2e4b1e3c1e1f87f7bccb0c936375b23b022baeea750519b7c9bc6ce83","impliedFormat":1},{"version":"b484ec11ba00e3a2235562a41898d55372ccabe607986c6fa4f4aba72093749f","impliedFormat":1},{"version":"a16b91b27bd6b706c687c88cbc8a7d4ee98e5ed6043026d6b84bda923c0aed67","impliedFormat":1},{"version":"694b812e0ed11285e8822cf8131e3ce7083a500b3b1d185fff9ed1089677bd0a","impliedFormat":1},{"version":"99ab6d0d660ce4d21efb52288a39fd35bb3f556980ec5463b1ae8f304a3bbc85","impliedFormat":1},{"version":"6eeded8c7e352be6e0efb83f4935ec752513c4d22043b52522b90849a49a3a11","impliedFormat":1},{"version":"6c1ad90050ffbb151cacc68e2d06ea1a26a945659391e32651f5d42b86fd7f2c","impliedFormat":1},{"version":"55cdbeebe76a1fa18bbd7e7bf73350a2173926bd3085bb050cf5a5397025ee4e","impliedFormat":1}],"root":[[116,118]],"options":{"allowImportingTsExtensions":true,"allowJs":true,"checkJs":false,"composite":true,"declaration":true,"declarationDir":"./lib/types","emitDeclarationOnly":true,"module":99,"outDir":"./lib","rootDir":"./src","skipLibCheck":true,"strict":false,"target":99},"referencedMap":[[104,1],[105,2],[106,3],[107,4],[108,5],[109,6],[94,6],[110,6],[111,7],[112,8],[113,9],[103,10],[97,11],[98,12],[99,13],[100,14],[95,15],[96,10],[101,16],[102,17],[181,18],[182,18],[183,19],[121,20],[184,21],[185,22],[186,23],[119,6],[187,24],[188,25],[189,26],[190,27],[191,28],[192,29],[193,29],[194,30],[195,31],[196,32],[197,33],[122,6],[120,6],[198,34],[199,35],[200,36],[241,37],[201,38],[202,39],[203,38],[204,40],[205,41],[207,42],[208,43],[209,43],[210,43],[211,44],[212,45],[213,46],[214,47],[215,48],[216,49],[217,49],[218,50],[219,6],[220,6],[221,51],[222,52],[223,51],[224,53],[225,54],[226,55],[227,56],[228,57],[229,58],[230,59],[231,60],[232,61],[233,62],[234,63],[235,64],[236,65],[237,66],[238,67],[123,38],[124,6],[125,6],[126,68],[127,6],[128,24],[129,6],[172,69],[173,70],[174,71],[175,71],[176,72],[177,6],[178,21],[179,73],[180,70],[239,74],[240,75],[206,6],[91,6],[92,6],[16,6],[14,6],[15,6],[20,6],[19,6],[2,6],[21,6],[22,6],[23,6],[24,6],[25,6],[26,6],[27,6],[28,6],[3,6],[29,6],[30,6],[4,6],[31,6],[35,6],[32,6],[33,6],[34,6],[36,6],[37,6],[38,6],[5,6],[39,6],[40,6],[41,6],[42,6],[6,6],[46,6],[43,6],[44,6],[45,6],[47,6],[7,6],[48,6],[53,6],[54,6],[49,6],[50,6],[51,6],[52,6],[8,6],[58,6],[55,6],[56,6],[57,6],[59,6],[9,6],[60,6],[61,6],[62,6],[64,6],[63,6],[65,6],[66,6],[10,6],[67,6],[68,6],[69,6],[11,6],[70,6],[71,6],[72,6],[73,6],[74,6],[75,6],[12,6],[76,6],[77,6],[78,6],[79,6],[80,6],[1,6],[81,6],[82,6],[13,6],[83,6],[84,6],[85,6],[86,6],[93,6],[87,6],[88,6],[89,6],[90,6],[18,6],[17,6],[148,76],[160,77],[145,78],[161,79],[170,80],[136,81],[137,82],[135,83],[169,84],[164,85],[168,86],[139,87],[157,88],[138,89],[167,90],[133,91],[134,85],[140,92],[141,6],[147,93],[144,92],[131,94],[171,95],[162,96],[151,97],[150,92],[152,98],[155,99],[149,100],[153,101],[165,84],[142,102],[143,103],[156,104],[132,79],[159,105],[158,92],[146,103],[154,106],[163,6],[130,6],[166,107],[115,108],[114,6],[117,109],[116,6],[118,110]],"latestChangedDtsFile":"./lib/types/register.d.ts","version":"6.0.2"}
|