@markuplint/ml-core 3.11.0 → 4.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/lib/configs.browser.js +1 -5
  2. package/lib/configs.js +33 -30
  3. package/lib/convert-ruleset.d.ts +1 -1
  4. package/lib/convert-ruleset.js +3 -8
  5. package/lib/debug.js +9 -14
  6. package/lib/index.d.ts +12 -12
  7. package/lib/index.js +13 -29
  8. package/lib/ml-core.d.ts +2 -2
  9. package/lib/ml-core.js +60 -66
  10. package/lib/ml-dom/helper/accname.d.ts +1 -1
  11. package/lib/ml-dom/helper/accname.js +9 -16
  12. package/lib/ml-dom/helper/create-node.d.ts +2 -2
  13. package/lib/ml-dom/helper/create-node.js +11 -15
  14. package/lib/ml-dom/helper/debug.d.ts +1 -1
  15. package/lib/ml-dom/helper/debug.js +2 -7
  16. package/lib/ml-dom/helper/getIndent.d.ts +2 -2
  17. package/lib/ml-dom/helper/getIndent.js +15 -19
  18. package/lib/ml-dom/helper/walkers.d.ts +1 -1
  19. package/lib/ml-dom/helper/walkers.js +2 -7
  20. package/lib/ml-dom/index.d.ts +9 -9
  21. package/lib/ml-dom/index.js +1 -5
  22. package/lib/ml-dom/manipulations/child-node-methods.d.ts +2 -2
  23. package/lib/ml-dom/manipulations/child-node-methods.js +13 -25
  24. package/lib/ml-dom/manipulations/get-children.d.ts +2 -2
  25. package/lib/ml-dom/manipulations/get-children.js +3 -7
  26. package/lib/ml-dom/node/attr.d.ts +5 -5
  27. package/lib/ml-dom/node/attr.js +28 -33
  28. package/lib/ml-dom/node/block.d.ts +4 -4
  29. package/lib/ml-dom/node/block.js +7 -11
  30. package/lib/ml-dom/node/character-data.d.ts +2 -2
  31. package/lib/ml-dom/node/character-data.js +11 -16
  32. package/lib/ml-dom/node/child-node.d.ts +6 -6
  33. package/lib/ml-dom/node/child-node.js +1 -5
  34. package/lib/ml-dom/node/comment.d.ts +2 -2
  35. package/lib/ml-dom/node/comment.js +2 -6
  36. package/lib/ml-dom/node/document-fragment.d.ts +2 -2
  37. package/lib/ml-dom/node/document-fragment.js +4 -9
  38. package/lib/ml-dom/node/document-type.d.ts +4 -4
  39. package/lib/ml-dom/node/document-type.js +7 -11
  40. package/lib/ml-dom/node/document.d.ts +13 -13
  41. package/lib/ml-dom/node/document.js +233 -241
  42. package/lib/ml-dom/node/dom-token-list.d.ts +1 -1
  43. package/lib/ml-dom/node/dom-token-list.js +25 -31
  44. package/lib/ml-dom/node/element.d.ts +8 -8
  45. package/lib/ml-dom/node/element.js +278 -296
  46. package/lib/ml-dom/node/named-node-map.d.ts +1 -1
  47. package/lib/ml-dom/node/named-node-map.js +10 -18
  48. package/lib/ml-dom/node/node-list.d.ts +2 -2
  49. package/lib/ml-dom/node/node-list.js +6 -14
  50. package/lib/ml-dom/node/node-store.d.ts +2 -2
  51. package/lib/ml-dom/node/node-store.js +9 -12
  52. package/lib/ml-dom/node/node.d.ts +8 -8
  53. package/lib/ml-dom/node/node.js +58 -66
  54. package/lib/ml-dom/node/parent-node.d.ts +2 -2
  55. package/lib/ml-dom/node/parent-node.js +22 -29
  56. package/lib/ml-dom/node/rule-mapper.d.ts +2 -2
  57. package/lib/ml-dom/node/rule-mapper.js +11 -16
  58. package/lib/ml-dom/node/text.d.ts +2 -2
  59. package/lib/ml-dom/node/text.js +6 -11
  60. package/lib/ml-dom/node/types.d.ts +10 -10
  61. package/lib/ml-dom/node/types.js +1 -2
  62. package/lib/ml-dom/node/unexpected-call-error.js +1 -4
  63. package/lib/ml-dom/token/token.js +19 -23
  64. package/lib/ml-rule/create-rule.d.ts +1 -1
  65. package/lib/ml-rule/create-rule.js +1 -5
  66. package/lib/ml-rule/create-test-rule.d.ts +2 -2
  67. package/lib/ml-rule/create-test-rule.js +3 -7
  68. package/lib/ml-rule/index.d.ts +3 -3
  69. package/lib/ml-rule/index.js +3 -6
  70. package/lib/ml-rule/ml-rule-context.d.ts +2 -2
  71. package/lib/ml-rule/ml-rule-context.js +7 -11
  72. package/lib/ml-rule/ml-rule.d.ts +3 -3
  73. package/lib/ml-rule/ml-rule.js +23 -30
  74. package/lib/ml-rule/types.d.ts +2 -2
  75. package/lib/ml-rule/types.js +1 -2
  76. package/lib/plugin/index.d.ts +2 -2
  77. package/lib/plugin/index.js +2 -5
  78. package/lib/plugin/plugin.d.ts +1 -1
  79. package/lib/plugin/plugin.js +1 -5
  80. package/lib/plugin/types.d.ts +1 -1
  81. package/lib/plugin/types.js +1 -2
  82. package/lib/ruleset/index.js +4 -8
  83. package/lib/test/index.d.ts +4 -4
  84. package/lib/test/index.js +13 -23
  85. package/lib/types.d.ts +2 -2
  86. package/lib/types.js +1 -2
  87. package/lib/utils/get-location-from-chars.js +1 -5
  88. package/lib/utils/index.d.ts +1 -1
  89. package/lib/utils/index.js +1 -5
  90. package/lib/utils/string-splice.js +1 -5
  91. package/package.json +20 -15
  92. package/test/ml-dom/helper/accname.spec.js +0 -85
  93. package/test/ml-dom/helper/create-node.spec.js +0 -18
  94. package/test/ml-dom/index.spec.js +0 -680
  95. package/test/ml-dom/ml-rule/create-rule.spec.js +0 -108
@@ -1,24 +1,21 @@
1
- "use strict";
2
1
  var _MLDocument_filename, _MLDocument_tokenList;
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.MLDocument = void 0;
5
- const tslib_1 = require("tslib");
6
- const ml_config_1 = require("@markuplint/ml-config");
7
- const ml_spec_1 = require("@markuplint/ml-spec");
8
- const parser_utils_1 = require("@markuplint/parser-utils");
9
- const selector_1 = require("@markuplint/selector");
10
- const debug_1 = require("../../debug");
11
- const create_node_1 = require("../helper/create-node");
12
- const debug_2 = require("../helper/debug");
13
- const walkers_1 = require("../helper/walkers");
14
- const node_list_1 = require("./node-list");
15
- const parent_node_1 = require("./parent-node");
16
- const rule_mapper_1 = require("./rule-mapper");
17
- const unexpected_call_error_1 = tslib_1.__importDefault(require("./unexpected-call-error"));
18
- const log = debug_1.log.extend('ml-dom');
2
+ import { __classPrivateFieldGet, __classPrivateFieldSet } from "tslib";
3
+ import { exchangeValueOnRule, mergeRule } from '@markuplint/ml-config';
4
+ import { schemaToSpec } from '@markuplint/ml-spec';
5
+ import { ConfigParserError } from '@markuplint/parser-utils';
6
+ import { InvalidSelectorError, matchSelector } from '@markuplint/selector';
7
+ import { log as coreLog } from '../../debug.js';
8
+ import { createNode } from '../helper/create-node.js';
9
+ import { nodeListToDebugMaps } from '../helper/debug.js';
10
+ import { sequentialWalker, syncWalk } from '../helper/walkers.js';
11
+ import { nodeListToHTMLCollection } from './node-list.js';
12
+ import { MLParentNode } from './parent-node.js';
13
+ import { RuleMapper } from './rule-mapper.js';
14
+ import UnexpectedCallError from './unexpected-call-error.js';
15
+ const log = coreLog.extend('ml-dom');
19
16
  const docLog = log.extend('document');
20
17
  const ruleLog = docLog.extend('rule');
21
- class MLDocument extends parent_node_1.MLParentNode {
18
+ export class MLDocument extends MLParentNode {
22
19
  /**
23
20
  *
24
21
  * @param ast node list of markuplint AST
@@ -27,7 +24,6 @@ class MLDocument extends parent_node_1.MLParentNode {
27
24
  constructor(
28
25
  // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
29
26
  ast, ruleset, schemas, options) {
30
- var _a, _b;
31
27
  // @ts-ignore
32
28
  super(ast, null);
33
29
  /**
@@ -40,26 +36,26 @@ class MLDocument extends parent_node_1.MLParentNode {
40
36
  _MLDocument_filename.set(this, void 0);
41
37
  _MLDocument_tokenList.set(this, null);
42
38
  this.isFragment = ast.isFragment;
43
- this.specs = (0, ml_spec_1.schemaToSpec)(schemas);
44
- this.booleanish = (_a = options === null || options === void 0 ? void 0 : options.booleanish) !== null && _a !== void 0 ? _a : false;
45
- this.endTag = (_b = options === null || options === void 0 ? void 0 : options.endTag) !== null && _b !== void 0 ? _b : 'omittable';
46
- tslib_1.__classPrivateFieldSet(this, _MLDocument_filename, options === null || options === void 0 ? void 0 : options.filename, "f");
39
+ this.specs = schemaToSpec(schemas);
40
+ this.booleanish = options?.booleanish ?? false;
41
+ this.endTag = options?.endTag ?? 'omittable';
42
+ __classPrivateFieldSet(this, _MLDocument_filename, options?.filename, "f");
47
43
  // console.log(ast.nodeList.map((n, i) => `${i}: ${n.uuid} "${n.raw.trim()}"(${n.type})`));
48
44
  this.nodeList = Object.freeze(ast.nodeList
49
45
  .map(astNode => {
50
46
  if (astNode.type === 'endtag') {
51
47
  return;
52
48
  }
53
- return (0, create_node_1.createNode)(astNode, this);
49
+ return createNode(astNode, this);
54
50
  })
55
51
  .filter((n) => !!n));
56
- this._pretending(options === null || options === void 0 ? void 0 : options.pretenders);
52
+ this._pretending(options?.pretenders);
57
53
  try {
58
54
  this._ruleMapping(ruleset);
59
55
  }
60
56
  catch (error) {
61
- if (error instanceof selector_1.InvalidSelectorError) {
62
- throw new parser_utils_1.ConfigParserError(error.message, {
57
+ if (error instanceof InvalidSelectorError) {
58
+ throw new ConfigParserError(error.message, {
63
59
  filePath: 'the configuration',
64
60
  });
65
61
  }
@@ -73,7 +69,7 @@ class MLDocument extends parent_node_1.MLParentNode {
73
69
  * @implements DOM API: `Document`
74
70
  */
75
71
  get URL() {
76
- throw new unexpected_call_error_1.default('Not supported "URL" property');
72
+ throw new UnexpectedCallError('Not supported "URL" property');
77
73
  }
78
74
  /**
79
75
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -82,7 +78,7 @@ class MLDocument extends parent_node_1.MLParentNode {
82
78
  * @implements DOM API: `Document`
83
79
  */
84
80
  get activeElement() {
85
- throw new unexpected_call_error_1.default('Not supported "activeElement" property');
81
+ throw new UnexpectedCallError('Not supported "activeElement" property');
86
82
  }
87
83
  /**
88
84
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -91,7 +87,7 @@ class MLDocument extends parent_node_1.MLParentNode {
91
87
  * @implements DOM API: `Document`
92
88
  */
93
89
  get adoptedStyleSheets() {
94
- throw new unexpected_call_error_1.default('Not supported "adoptedStyleSheets" property');
90
+ throw new UnexpectedCallError('Not supported "adoptedStyleSheets" property');
95
91
  }
96
92
  /**
97
93
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -101,7 +97,7 @@ class MLDocument extends parent_node_1.MLParentNode {
101
97
  * @implements DOM API: `Document`
102
98
  */
103
99
  get alinkColor() {
104
- throw new unexpected_call_error_1.default('Not supported "alinkColor" property');
100
+ throw new UnexpectedCallError('Not supported "alinkColor" property');
105
101
  }
106
102
  /**
107
103
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -111,7 +107,7 @@ class MLDocument extends parent_node_1.MLParentNode {
111
107
  * @implements DOM API: `Document`
112
108
  */
113
109
  get all() {
114
- throw new unexpected_call_error_1.default('Not supported "all" property');
110
+ throw new UnexpectedCallError('Not supported "all" property');
115
111
  }
116
112
  /**
117
113
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -121,7 +117,7 @@ class MLDocument extends parent_node_1.MLParentNode {
121
117
  * @implements DOM API: `Document`
122
118
  */
123
119
  get anchors() {
124
- throw new unexpected_call_error_1.default('Not supported "anchors" property');
120
+ throw new UnexpectedCallError('Not supported "anchors" property');
125
121
  }
126
122
  /**
127
123
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -131,7 +127,7 @@ class MLDocument extends parent_node_1.MLParentNode {
131
127
  * @implements DOM API: `Document`
132
128
  */
133
129
  get applets() {
134
- throw new unexpected_call_error_1.default('Not supported "applets" property');
130
+ throw new UnexpectedCallError('Not supported "applets" property');
135
131
  }
136
132
  /**
137
133
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -141,7 +137,7 @@ class MLDocument extends parent_node_1.MLParentNode {
141
137
  * @implements DOM API: `Document`
142
138
  */
143
139
  get bgColor() {
144
- throw new unexpected_call_error_1.default('Not supported "bgColor" property');
140
+ throw new UnexpectedCallError('Not supported "bgColor" property');
145
141
  }
146
142
  /**
147
143
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -150,7 +146,7 @@ class MLDocument extends parent_node_1.MLParentNode {
150
146
  * @implements DOM API: `Document`
151
147
  */
152
148
  get body() {
153
- throw new unexpected_call_error_1.default('Not supported "body" property');
149
+ throw new UnexpectedCallError('Not supported "body" property');
154
150
  }
155
151
  /**
156
152
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -159,7 +155,7 @@ class MLDocument extends parent_node_1.MLParentNode {
159
155
  * @implements DOM API: `Document`
160
156
  */
161
157
  get characterSet() {
162
- throw new unexpected_call_error_1.default('Not supported "characterSet" property');
158
+ throw new UnexpectedCallError('Not supported "characterSet" property');
163
159
  }
164
160
  /**
165
161
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -169,7 +165,7 @@ class MLDocument extends parent_node_1.MLParentNode {
169
165
  * @implements DOM API: `Document`
170
166
  */
171
167
  get charset() {
172
- throw new unexpected_call_error_1.default('Not supported "charset" property');
168
+ throw new UnexpectedCallError('Not supported "charset" property');
173
169
  }
174
170
  /**
175
171
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -178,7 +174,7 @@ class MLDocument extends parent_node_1.MLParentNode {
178
174
  * @implements DOM API: `Document`
179
175
  */
180
176
  get compatMode() {
181
- throw new unexpected_call_error_1.default('Not supported "compatMode" property');
177
+ throw new UnexpectedCallError('Not supported "compatMode" property');
182
178
  }
183
179
  /**
184
180
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -187,7 +183,7 @@ class MLDocument extends parent_node_1.MLParentNode {
187
183
  * @implements DOM API: `Document`
188
184
  */
189
185
  get contentType() {
190
- throw new unexpected_call_error_1.default('Not supported "contentType" property');
186
+ throw new UnexpectedCallError('Not supported "contentType" property');
191
187
  }
192
188
  /**
193
189
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -196,7 +192,7 @@ class MLDocument extends parent_node_1.MLParentNode {
196
192
  * @implements DOM API: `Document`
197
193
  */
198
194
  get cookie() {
199
- throw new unexpected_call_error_1.default('Not supported "cookie" property');
195
+ throw new UnexpectedCallError('Not supported "cookie" property');
200
196
  }
201
197
  /**
202
198
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -205,7 +201,7 @@ class MLDocument extends parent_node_1.MLParentNode {
205
201
  * @implements DOM API: `Document`
206
202
  */
207
203
  get currentScript() {
208
- throw new unexpected_call_error_1.default('Not supported "currentScript" property');
204
+ throw new UnexpectedCallError('Not supported "currentScript" property');
209
205
  }
210
206
  /**
211
207
  * Window object for calling the `getComputedStyle` and the `getPropertyValue` that
@@ -235,7 +231,7 @@ class MLDocument extends parent_node_1.MLParentNode {
235
231
  * @implements DOM API: `Document`
236
232
  */
237
233
  get designMode() {
238
- throw new unexpected_call_error_1.default('Not supported "designMode" property');
234
+ throw new UnexpectedCallError('Not supported "designMode" property');
239
235
  }
240
236
  /**
241
237
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -244,7 +240,7 @@ class MLDocument extends parent_node_1.MLParentNode {
244
240
  * @implements DOM API: `Document`
245
241
  */
246
242
  get dir() {
247
- throw new unexpected_call_error_1.default('Not supported "dir" property');
243
+ throw new UnexpectedCallError('Not supported "dir" property');
248
244
  }
249
245
  /**
250
246
  * @implements DOM API: `Document`
@@ -264,7 +260,7 @@ class MLDocument extends parent_node_1.MLParentNode {
264
260
  * @implements DOM API: `Document`
265
261
  */
266
262
  get documentElement() {
267
- throw new unexpected_call_error_1.default('Not supported "documentElement" property');
263
+ throw new UnexpectedCallError('Not supported "documentElement" property');
268
264
  }
269
265
  /**
270
266
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -273,7 +269,7 @@ class MLDocument extends parent_node_1.MLParentNode {
273
269
  * @implements DOM API: `Document`
274
270
  */
275
271
  get documentURI() {
276
- throw new unexpected_call_error_1.default('Not supported "documentURI" property');
272
+ throw new UnexpectedCallError('Not supported "documentURI" property');
277
273
  }
278
274
  /**
279
275
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -282,7 +278,7 @@ class MLDocument extends parent_node_1.MLParentNode {
282
278
  * @implements DOM API: `Document`
283
279
  */
284
280
  get domain() {
285
- throw new unexpected_call_error_1.default('Not supported "domain" property');
281
+ throw new UnexpectedCallError('Not supported "domain" property');
286
282
  }
287
283
  /**
288
284
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -291,7 +287,7 @@ class MLDocument extends parent_node_1.MLParentNode {
291
287
  * @implements DOM API: `Document`
292
288
  */
293
289
  get embeds() {
294
- throw new unexpected_call_error_1.default('Not supported "embeds" property');
290
+ throw new UnexpectedCallError('Not supported "embeds" property');
295
291
  }
296
292
  /**
297
293
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -301,7 +297,7 @@ class MLDocument extends parent_node_1.MLParentNode {
301
297
  * @implements DOM API: `Document`
302
298
  */
303
299
  get fgColor() {
304
- throw new unexpected_call_error_1.default('Not supported "fgColor" property');
300
+ throw new UnexpectedCallError('Not supported "fgColor" property');
305
301
  }
306
302
  /**
307
303
  * It could be used in rule, make sure it is immutable
@@ -309,7 +305,7 @@ class MLDocument extends parent_node_1.MLParentNode {
309
305
  * @implements `@markuplint/ml-core` API: `MLDOMDocument`
310
306
  */
311
307
  get filename() {
312
- return tslib_1.__classPrivateFieldGet(this, _MLDocument_filename, "f");
308
+ return __classPrivateFieldGet(this, _MLDocument_filename, "f");
313
309
  }
314
310
  /**
315
311
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -318,7 +314,7 @@ class MLDocument extends parent_node_1.MLParentNode {
318
314
  * @implements DOM API: `Document`
319
315
  */
320
316
  get fonts() {
321
- throw new unexpected_call_error_1.default('Not supported "fonts" property');
317
+ throw new UnexpectedCallError('Not supported "fonts" property');
322
318
  }
323
319
  /**
324
320
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -327,7 +323,7 @@ class MLDocument extends parent_node_1.MLParentNode {
327
323
  * @implements DOM API: `Document`
328
324
  */
329
325
  get forms() {
330
- throw new unexpected_call_error_1.default('Not supported "forms" property');
326
+ throw new UnexpectedCallError('Not supported "forms" property');
331
327
  }
332
328
  /**
333
329
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -337,7 +333,7 @@ class MLDocument extends parent_node_1.MLParentNode {
337
333
  * @implements DOM API: `Document`
338
334
  */
339
335
  get fullscreen() {
340
- throw new unexpected_call_error_1.default('Not supported "fullscreen" property');
336
+ throw new UnexpectedCallError('Not supported "fullscreen" property');
341
337
  }
342
338
  /**
343
339
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -346,7 +342,7 @@ class MLDocument extends parent_node_1.MLParentNode {
346
342
  * @implements DOM API: `Document`
347
343
  */
348
344
  get fullscreenElement() {
349
- throw new unexpected_call_error_1.default('Not supported "fullscreenElement" property');
345
+ throw new UnexpectedCallError('Not supported "fullscreenElement" property');
350
346
  }
351
347
  /**
352
348
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -355,7 +351,7 @@ class MLDocument extends parent_node_1.MLParentNode {
355
351
  * @implements DOM API: `Document`
356
352
  */
357
353
  get fullscreenEnabled() {
358
- throw new unexpected_call_error_1.default('Not supported "FullscreenEnabledURL" property');
354
+ throw new UnexpectedCallError('Not supported "FullscreenEnabledURL" property');
359
355
  }
360
356
  /**
361
357
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -364,7 +360,7 @@ class MLDocument extends parent_node_1.MLParentNode {
364
360
  * @implements DOM API: `Document`
365
361
  */
366
362
  get head() {
367
- throw new unexpected_call_error_1.default('Not supported "head" property');
363
+ throw new UnexpectedCallError('Not supported "head" property');
368
364
  }
369
365
  /**
370
366
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -373,7 +369,7 @@ class MLDocument extends parent_node_1.MLParentNode {
373
369
  * @implements DOM API: `Document`
374
370
  */
375
371
  get hidden() {
376
- throw new unexpected_call_error_1.default('Not supported "hidden" property');
372
+ throw new UnexpectedCallError('Not supported "hidden" property');
377
373
  }
378
374
  /**
379
375
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -382,7 +378,7 @@ class MLDocument extends parent_node_1.MLParentNode {
382
378
  * @implements DOM API: `Document`
383
379
  */
384
380
  get images() {
385
- throw new unexpected_call_error_1.default('Not supported "images" property');
381
+ throw new UnexpectedCallError('Not supported "images" property');
386
382
  }
387
383
  /**
388
384
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -391,7 +387,7 @@ class MLDocument extends parent_node_1.MLParentNode {
391
387
  * @implements DOM API: `Document`
392
388
  */
393
389
  get implementation() {
394
- throw new unexpected_call_error_1.default('Not supported "implementation" property');
390
+ throw new UnexpectedCallError('Not supported "implementation" property');
395
391
  }
396
392
  /**
397
393
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -401,7 +397,7 @@ class MLDocument extends parent_node_1.MLParentNode {
401
397
  * @implements DOM API: `Document`
402
398
  */
403
399
  get inputEncoding() {
404
- throw new unexpected_call_error_1.default('Not supported "inputEncoding" property');
400
+ throw new UnexpectedCallError('Not supported "inputEncoding" property');
405
401
  }
406
402
  /**
407
403
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -410,7 +406,7 @@ class MLDocument extends parent_node_1.MLParentNode {
410
406
  * @implements DOM API: `Document`
411
407
  */
412
408
  get lastModified() {
413
- throw new unexpected_call_error_1.default('Not supported "lastModified" property');
409
+ throw new UnexpectedCallError('Not supported "lastModified" property');
414
410
  }
415
411
  /**
416
412
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -420,7 +416,7 @@ class MLDocument extends parent_node_1.MLParentNode {
420
416
  * @implements DOM API: `Document`
421
417
  */
422
418
  get linkColor() {
423
- throw new unexpected_call_error_1.default('Not supported "linkColor" property');
419
+ throw new UnexpectedCallError('Not supported "linkColor" property');
424
420
  }
425
421
  /**
426
422
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -429,7 +425,7 @@ class MLDocument extends parent_node_1.MLParentNode {
429
425
  * @implements DOM API: `Document`
430
426
  */
431
427
  get links() {
432
- throw new unexpected_call_error_1.default('Not supported "links" property');
428
+ throw new UnexpectedCallError('Not supported "links" property');
433
429
  }
434
430
  /**
435
431
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -438,7 +434,7 @@ class MLDocument extends parent_node_1.MLParentNode {
438
434
  * @implements DOM API: `Document`
439
435
  */
440
436
  get location() {
441
- throw new unexpected_call_error_1.default('Not supported "location" property');
437
+ throw new UnexpectedCallError('Not supported "location" property');
442
438
  }
443
439
  /**
444
440
  * Returns a string appropriate for the type of node as `Document`
@@ -462,7 +458,7 @@ class MLDocument extends parent_node_1.MLParentNode {
462
458
  * @implements DOM API: `Document`
463
459
  */
464
460
  get onabort() {
465
- throw new unexpected_call_error_1.default('Not supported "onabort" property');
461
+ throw new UnexpectedCallError('Not supported "onabort" property');
466
462
  }
467
463
  /**
468
464
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -472,7 +468,7 @@ class MLDocument extends parent_node_1.MLParentNode {
472
468
  * @implements DOM API: `Document`
473
469
  */
474
470
  get onanimationcancel() {
475
- throw new unexpected_call_error_1.default('Not supported "onanimationcancel" property');
471
+ throw new UnexpectedCallError('Not supported "onanimationcancel" property');
476
472
  }
477
473
  /**
478
474
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -482,7 +478,7 @@ class MLDocument extends parent_node_1.MLParentNode {
482
478
  * @implements DOM API: `Document`
483
479
  */
484
480
  get onanimationend() {
485
- throw new unexpected_call_error_1.default('Not supported "onanimationend" property');
481
+ throw new UnexpectedCallError('Not supported "onanimationend" property');
486
482
  }
487
483
  /**
488
484
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -492,7 +488,7 @@ class MLDocument extends parent_node_1.MLParentNode {
492
488
  * @implements DOM API: `Document`
493
489
  */
494
490
  get onanimationiteration() {
495
- throw new unexpected_call_error_1.default('Not supported "onanimationiteration" property');
491
+ throw new UnexpectedCallError('Not supported "onanimationiteration" property');
496
492
  }
497
493
  /**
498
494
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -502,7 +498,7 @@ class MLDocument extends parent_node_1.MLParentNode {
502
498
  * @implements DOM API: `Document`
503
499
  */
504
500
  get onanimationstart() {
505
- throw new unexpected_call_error_1.default('Not supported "onanimationstart" property');
501
+ throw new UnexpectedCallError('Not supported "onanimationstart" property');
506
502
  }
507
503
  /**
508
504
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -512,7 +508,7 @@ class MLDocument extends parent_node_1.MLParentNode {
512
508
  * @implements DOM API: `Document`
513
509
  */
514
510
  get onauxclick() {
515
- throw new unexpected_call_error_1.default('Not supported "onauxclick" property');
511
+ throw new UnexpectedCallError('Not supported "onauxclick" property');
516
512
  }
517
513
  /**
518
514
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -522,7 +518,7 @@ class MLDocument extends parent_node_1.MLParentNode {
522
518
  * @implements DOM API: `Document`
523
519
  */
524
520
  get onbeforeinput() {
525
- throw new unexpected_call_error_1.default('Not supported "onbeforeinput" property');
521
+ throw new UnexpectedCallError('Not supported "onbeforeinput" property');
526
522
  }
527
523
  /**
528
524
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -532,7 +528,7 @@ class MLDocument extends parent_node_1.MLParentNode {
532
528
  * @implements DOM API: `Document`
533
529
  */
534
530
  get onblur() {
535
- throw new unexpected_call_error_1.default('Not supported "onblur" property');
531
+ throw new UnexpectedCallError('Not supported "onblur" property');
536
532
  }
537
533
  /**
538
534
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -542,7 +538,7 @@ class MLDocument extends parent_node_1.MLParentNode {
542
538
  * @implements DOM API: `Document`
543
539
  */
544
540
  get oncancel() {
545
- throw new unexpected_call_error_1.default('Not supported "oncanplay" property');
541
+ throw new UnexpectedCallError('Not supported "oncanplay" property');
546
542
  }
547
543
  /**
548
544
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -552,7 +548,7 @@ class MLDocument extends parent_node_1.MLParentNode {
552
548
  * @implements DOM API: `Document`
553
549
  */
554
550
  get oncanplay() {
555
- throw new unexpected_call_error_1.default('Not supported "oncanplay" property');
551
+ throw new UnexpectedCallError('Not supported "oncanplay" property');
556
552
  }
557
553
  /**
558
554
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -562,7 +558,7 @@ class MLDocument extends parent_node_1.MLParentNode {
562
558
  * @implements DOM API: `Document`
563
559
  */
564
560
  get oncanplaythrough() {
565
- throw new unexpected_call_error_1.default('Not supported "oncanplaythrough" property');
561
+ throw new UnexpectedCallError('Not supported "oncanplaythrough" property');
566
562
  }
567
563
  /**
568
564
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -572,7 +568,7 @@ class MLDocument extends parent_node_1.MLParentNode {
572
568
  * @implements DOM API: `Document`
573
569
  */
574
570
  get onchange() {
575
- throw new unexpected_call_error_1.default('Not supported "onchange" property');
571
+ throw new UnexpectedCallError('Not supported "onchange" property');
576
572
  }
577
573
  /**
578
574
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -582,7 +578,7 @@ class MLDocument extends parent_node_1.MLParentNode {
582
578
  * @implements DOM API: `Document`
583
579
  */
584
580
  get onclick() {
585
- throw new unexpected_call_error_1.default('Not supported "onclick" property');
581
+ throw new UnexpectedCallError('Not supported "onclick" property');
586
582
  }
587
583
  /**
588
584
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -592,7 +588,7 @@ class MLDocument extends parent_node_1.MLParentNode {
592
588
  * @implements DOM API: `Document`
593
589
  */
594
590
  get onclose() {
595
- throw new unexpected_call_error_1.default('Not supported "onclose" property');
591
+ throw new UnexpectedCallError('Not supported "onclose" property');
596
592
  }
597
593
  /**
598
594
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -602,7 +598,7 @@ class MLDocument extends parent_node_1.MLParentNode {
602
598
  * @implements DOM API: `Document`
603
599
  */
604
600
  get oncontextmenu() {
605
- throw new unexpected_call_error_1.default('Not supported "oncontextmenu" property');
601
+ throw new UnexpectedCallError('Not supported "oncontextmenu" property');
606
602
  }
607
603
  /**
608
604
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -612,7 +608,7 @@ class MLDocument extends parent_node_1.MLParentNode {
612
608
  * @implements DOM API: `Document`
613
609
  */
614
610
  get oncopy() {
615
- throw new unexpected_call_error_1.default('Not supported "oncopy" property');
611
+ throw new UnexpectedCallError('Not supported "oncopy" property');
616
612
  }
617
613
  /**
618
614
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -622,7 +618,7 @@ class MLDocument extends parent_node_1.MLParentNode {
622
618
  * @implements DOM API: `Document`
623
619
  */
624
620
  get oncuechange() {
625
- throw new unexpected_call_error_1.default('Not supported "oncuechange" property');
621
+ throw new UnexpectedCallError('Not supported "oncuechange" property');
626
622
  }
627
623
  /**
628
624
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -632,7 +628,7 @@ class MLDocument extends parent_node_1.MLParentNode {
632
628
  * @implements DOM API: `Document`
633
629
  */
634
630
  get oncut() {
635
- throw new unexpected_call_error_1.default('Not supported "oncut" property');
631
+ throw new UnexpectedCallError('Not supported "oncut" property');
636
632
  }
637
633
  /**
638
634
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -642,7 +638,7 @@ class MLDocument extends parent_node_1.MLParentNode {
642
638
  * @implements DOM API: `Document`
643
639
  */
644
640
  get ondblclick() {
645
- throw new unexpected_call_error_1.default('Not supported "ondblclick" property');
641
+ throw new UnexpectedCallError('Not supported "ondblclick" property');
646
642
  }
647
643
  /**
648
644
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -652,7 +648,7 @@ class MLDocument extends parent_node_1.MLParentNode {
652
648
  * @implements DOM API: `Document`
653
649
  */
654
650
  get ondrag() {
655
- throw new unexpected_call_error_1.default('Not supported "ondrag" property');
651
+ throw new UnexpectedCallError('Not supported "ondrag" property');
656
652
  }
657
653
  /**
658
654
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -662,7 +658,7 @@ class MLDocument extends parent_node_1.MLParentNode {
662
658
  * @implements DOM API: `Document`
663
659
  */
664
660
  get ondragend() {
665
- throw new unexpected_call_error_1.default('Not supported "ondragend" property');
661
+ throw new UnexpectedCallError('Not supported "ondragend" property');
666
662
  }
667
663
  /**
668
664
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -672,7 +668,7 @@ class MLDocument extends parent_node_1.MLParentNode {
672
668
  * @implements DOM API: `Document`
673
669
  */
674
670
  get ondragenter() {
675
- throw new unexpected_call_error_1.default('Not supported "ondragenter" property');
671
+ throw new UnexpectedCallError('Not supported "ondragenter" property');
676
672
  }
677
673
  /**
678
674
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -682,7 +678,7 @@ class MLDocument extends parent_node_1.MLParentNode {
682
678
  * @implements DOM API: `Document`
683
679
  */
684
680
  get ondragleave() {
685
- throw new unexpected_call_error_1.default('Not supported "ondragleave" property');
681
+ throw new UnexpectedCallError('Not supported "ondragleave" property');
686
682
  }
687
683
  /**
688
684
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -692,7 +688,7 @@ class MLDocument extends parent_node_1.MLParentNode {
692
688
  * @implements DOM API: `Document`
693
689
  */
694
690
  get ondragover() {
695
- throw new unexpected_call_error_1.default('Not supported "ondragover" property');
691
+ throw new UnexpectedCallError('Not supported "ondragover" property');
696
692
  }
697
693
  /**
698
694
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -702,7 +698,7 @@ class MLDocument extends parent_node_1.MLParentNode {
702
698
  * @implements DOM API: `Document`
703
699
  */
704
700
  get ondragstart() {
705
- throw new unexpected_call_error_1.default('Not supported "ondragstart" property');
701
+ throw new UnexpectedCallError('Not supported "ondragstart" property');
706
702
  }
707
703
  /**
708
704
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -712,7 +708,7 @@ class MLDocument extends parent_node_1.MLParentNode {
712
708
  * @implements DOM API: `Document`
713
709
  */
714
710
  get ondrop() {
715
- throw new unexpected_call_error_1.default('Not supported "ondrop" property');
711
+ throw new UnexpectedCallError('Not supported "ondrop" property');
716
712
  }
717
713
  /**
718
714
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -722,7 +718,7 @@ class MLDocument extends parent_node_1.MLParentNode {
722
718
  * @implements DOM API: `Document`
723
719
  */
724
720
  get ondurationchange() {
725
- throw new unexpected_call_error_1.default('Not supported "ondurationchange" property');
721
+ throw new UnexpectedCallError('Not supported "ondurationchange" property');
726
722
  }
727
723
  /**
728
724
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -732,7 +728,7 @@ class MLDocument extends parent_node_1.MLParentNode {
732
728
  * @implements DOM API: `Document`
733
729
  */
734
730
  get onemptied() {
735
- throw new unexpected_call_error_1.default('Not supported "onemptied" property');
731
+ throw new UnexpectedCallError('Not supported "onemptied" property');
736
732
  }
737
733
  /**
738
734
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -742,7 +738,7 @@ class MLDocument extends parent_node_1.MLParentNode {
742
738
  * @implements DOM API: `Document`
743
739
  */
744
740
  get onended() {
745
- throw new unexpected_call_error_1.default('Not supported "onended" property');
741
+ throw new UnexpectedCallError('Not supported "onended" property');
746
742
  }
747
743
  /**
748
744
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -752,7 +748,7 @@ class MLDocument extends parent_node_1.MLParentNode {
752
748
  * @implements DOM API: `Document`
753
749
  */
754
750
  get onerror() {
755
- throw new unexpected_call_error_1.default('Not supported "onerror" property');
751
+ throw new UnexpectedCallError('Not supported "onerror" property');
756
752
  }
757
753
  /**
758
754
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -762,7 +758,7 @@ class MLDocument extends parent_node_1.MLParentNode {
762
758
  * @implements DOM API: `Document`
763
759
  */
764
760
  get onfocus() {
765
- throw new unexpected_call_error_1.default('Not supported "onfocus" property');
761
+ throw new UnexpectedCallError('Not supported "onfocus" property');
766
762
  }
767
763
  /**
768
764
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -772,7 +768,7 @@ class MLDocument extends parent_node_1.MLParentNode {
772
768
  * @implements DOM API: `Document`
773
769
  */
774
770
  get onformdata() {
775
- throw new unexpected_call_error_1.default('Not supported "onformdata" property');
771
+ throw new UnexpectedCallError('Not supported "onformdata" property');
776
772
  }
777
773
  /**
778
774
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -782,7 +778,7 @@ class MLDocument extends parent_node_1.MLParentNode {
782
778
  * @implements DOM API: `Document`
783
779
  */
784
780
  get onfullscreenchange() {
785
- throw new unexpected_call_error_1.default('Not supported "onfullscreenchange" property');
781
+ throw new UnexpectedCallError('Not supported "onfullscreenchange" property');
786
782
  }
787
783
  /**
788
784
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -792,7 +788,7 @@ class MLDocument extends parent_node_1.MLParentNode {
792
788
  * @implements DOM API: `Document`
793
789
  */
794
790
  get onfullscreenerror() {
795
- throw new unexpected_call_error_1.default('Not supported "onfullscreenerror" property');
791
+ throw new UnexpectedCallError('Not supported "onfullscreenerror" property');
796
792
  }
797
793
  /**
798
794
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -802,7 +798,7 @@ class MLDocument extends parent_node_1.MLParentNode {
802
798
  * @implements DOM API: `Document`
803
799
  */
804
800
  get ongotpointercapture() {
805
- throw new unexpected_call_error_1.default('Not supported "ongotpointercapture" property');
801
+ throw new UnexpectedCallError('Not supported "ongotpointercapture" property');
806
802
  }
807
803
  /**
808
804
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -812,7 +808,7 @@ class MLDocument extends parent_node_1.MLParentNode {
812
808
  * @implements DOM API: `Document`
813
809
  */
814
810
  get oninput() {
815
- throw new unexpected_call_error_1.default('Not supported "oninput" property');
811
+ throw new UnexpectedCallError('Not supported "oninput" property');
816
812
  }
817
813
  /**
818
814
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -822,7 +818,7 @@ class MLDocument extends parent_node_1.MLParentNode {
822
818
  * @implements DOM API: `Document`
823
819
  */
824
820
  get oninvalid() {
825
- throw new unexpected_call_error_1.default('Not supported "oninvalid" property');
821
+ throw new UnexpectedCallError('Not supported "oninvalid" property');
826
822
  }
827
823
  /**
828
824
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -832,7 +828,7 @@ class MLDocument extends parent_node_1.MLParentNode {
832
828
  * @implements DOM API: `Document`
833
829
  */
834
830
  get onkeydown() {
835
- throw new unexpected_call_error_1.default('Not supported "onkeydown" property');
831
+ throw new UnexpectedCallError('Not supported "onkeydown" property');
836
832
  }
837
833
  /**
838
834
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -842,7 +838,7 @@ class MLDocument extends parent_node_1.MLParentNode {
842
838
  * @implements DOM API: `Document`
843
839
  */
844
840
  get onkeypress() {
845
- throw new unexpected_call_error_1.default('Not supported "onkeypress" property');
841
+ throw new UnexpectedCallError('Not supported "onkeypress" property');
846
842
  }
847
843
  /**
848
844
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -852,7 +848,7 @@ class MLDocument extends parent_node_1.MLParentNode {
852
848
  * @implements DOM API: `Document`
853
849
  */
854
850
  get onkeyup() {
855
- throw new unexpected_call_error_1.default('Not supported "onkeyup" property');
851
+ throw new UnexpectedCallError('Not supported "onkeyup" property');
856
852
  }
857
853
  /**
858
854
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -862,7 +858,7 @@ class MLDocument extends parent_node_1.MLParentNode {
862
858
  * @implements DOM API: `Document`
863
859
  */
864
860
  get onload() {
865
- throw new unexpected_call_error_1.default('Not supported "onload" property');
861
+ throw new UnexpectedCallError('Not supported "onload" property');
866
862
  }
867
863
  /**
868
864
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -872,7 +868,7 @@ class MLDocument extends parent_node_1.MLParentNode {
872
868
  * @implements DOM API: `Document`
873
869
  */
874
870
  get onloadeddata() {
875
- throw new unexpected_call_error_1.default('Not supported "onloadeddata" property');
871
+ throw new UnexpectedCallError('Not supported "onloadeddata" property');
876
872
  }
877
873
  /**
878
874
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -882,7 +878,7 @@ class MLDocument extends parent_node_1.MLParentNode {
882
878
  * @implements DOM API: `Document`
883
879
  */
884
880
  get onloadedmetadata() {
885
- throw new unexpected_call_error_1.default('Not supported "onloadedmetadata" property');
881
+ throw new UnexpectedCallError('Not supported "onloadedmetadata" property');
886
882
  }
887
883
  /**
888
884
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -892,7 +888,7 @@ class MLDocument extends parent_node_1.MLParentNode {
892
888
  * @implements DOM API: `Document`
893
889
  */
894
890
  get onloadstart() {
895
- throw new unexpected_call_error_1.default('Not supported "onloadstart" property');
891
+ throw new UnexpectedCallError('Not supported "onloadstart" property');
896
892
  }
897
893
  /**
898
894
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -902,7 +898,7 @@ class MLDocument extends parent_node_1.MLParentNode {
902
898
  * @implements DOM API: `Document`
903
899
  */
904
900
  get onlostpointercapture() {
905
- throw new unexpected_call_error_1.default('Not supported "onlostpointercapture" property');
901
+ throw new UnexpectedCallError('Not supported "onlostpointercapture" property');
906
902
  }
907
903
  /**
908
904
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -912,7 +908,7 @@ class MLDocument extends parent_node_1.MLParentNode {
912
908
  * @implements DOM API: `Document`
913
909
  */
914
910
  get onmousedown() {
915
- throw new unexpected_call_error_1.default('Not supported "onmousedown" property');
911
+ throw new UnexpectedCallError('Not supported "onmousedown" property');
916
912
  }
917
913
  /**
918
914
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -922,7 +918,7 @@ class MLDocument extends parent_node_1.MLParentNode {
922
918
  * @implements DOM API: `Document`
923
919
  */
924
920
  get onmouseenter() {
925
- throw new unexpected_call_error_1.default('Not supported "onmouseenter" property');
921
+ throw new UnexpectedCallError('Not supported "onmouseenter" property');
926
922
  }
927
923
  /**
928
924
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -932,7 +928,7 @@ class MLDocument extends parent_node_1.MLParentNode {
932
928
  * @implements DOM API: `Document`
933
929
  */
934
930
  get onmouseleave() {
935
- throw new unexpected_call_error_1.default('Not supported "onmouseleave" property');
931
+ throw new UnexpectedCallError('Not supported "onmouseleave" property');
936
932
  }
937
933
  /**
938
934
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -942,7 +938,7 @@ class MLDocument extends parent_node_1.MLParentNode {
942
938
  * @implements DOM API: `Document`
943
939
  */
944
940
  get onmousemove() {
945
- throw new unexpected_call_error_1.default('Not supported "onmousemove" property');
941
+ throw new UnexpectedCallError('Not supported "onmousemove" property');
946
942
  }
947
943
  /**
948
944
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -952,7 +948,7 @@ class MLDocument extends parent_node_1.MLParentNode {
952
948
  * @implements DOM API: `Document`
953
949
  */
954
950
  get onmouseout() {
955
- throw new unexpected_call_error_1.default('Not supported "onmouseout" property');
951
+ throw new UnexpectedCallError('Not supported "onmouseout" property');
956
952
  }
957
953
  /**
958
954
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -962,7 +958,7 @@ class MLDocument extends parent_node_1.MLParentNode {
962
958
  * @implements DOM API: `Document`
963
959
  */
964
960
  get onmouseover() {
965
- throw new unexpected_call_error_1.default('Not supported "onmouseover" property');
961
+ throw new UnexpectedCallError('Not supported "onmouseover" property');
966
962
  }
967
963
  /**
968
964
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -972,7 +968,7 @@ class MLDocument extends parent_node_1.MLParentNode {
972
968
  * @implements DOM API: `Document`
973
969
  */
974
970
  get onmouseup() {
975
- throw new unexpected_call_error_1.default('Not supported "onmouseup" property');
971
+ throw new UnexpectedCallError('Not supported "onmouseup" property');
976
972
  }
977
973
  /**
978
974
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -982,7 +978,7 @@ class MLDocument extends parent_node_1.MLParentNode {
982
978
  * @implements DOM API: `Document`
983
979
  */
984
980
  get onpaste() {
985
- throw new unexpected_call_error_1.default('Not supported "onpaste" property');
981
+ throw new UnexpectedCallError('Not supported "onpaste" property');
986
982
  }
987
983
  /**
988
984
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -992,7 +988,7 @@ class MLDocument extends parent_node_1.MLParentNode {
992
988
  * @implements DOM API: `Document`
993
989
  */
994
990
  get onpause() {
995
- throw new unexpected_call_error_1.default('Not supported "onpause" property');
991
+ throw new UnexpectedCallError('Not supported "onpause" property');
996
992
  }
997
993
  /**
998
994
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1002,7 +998,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1002
998
  * @implements DOM API: `Document`
1003
999
  */
1004
1000
  get onplay() {
1005
- throw new unexpected_call_error_1.default('Not supported "onplay" property');
1001
+ throw new UnexpectedCallError('Not supported "onplay" property');
1006
1002
  }
1007
1003
  /**
1008
1004
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1012,7 +1008,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1012
1008
  * @implements DOM API: `Document`
1013
1009
  */
1014
1010
  get onplaying() {
1015
- throw new unexpected_call_error_1.default('Not supported "onplaying" property');
1011
+ throw new UnexpectedCallError('Not supported "onplaying" property');
1016
1012
  }
1017
1013
  /**
1018
1014
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1022,7 +1018,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1022
1018
  * @implements DOM API: `Document`
1023
1019
  */
1024
1020
  get onpointercancel() {
1025
- throw new unexpected_call_error_1.default('Not supported "onpointercancel" property');
1021
+ throw new UnexpectedCallError('Not supported "onpointercancel" property');
1026
1022
  }
1027
1023
  /**
1028
1024
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1032,7 +1028,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1032
1028
  * @implements DOM API: `Document`
1033
1029
  */
1034
1030
  get onpointerdown() {
1035
- throw new unexpected_call_error_1.default('Not supported "onpointerdown" property');
1031
+ throw new UnexpectedCallError('Not supported "onpointerdown" property');
1036
1032
  }
1037
1033
  /**
1038
1034
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1042,7 +1038,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1042
1038
  * @implements DOM API: `Document`
1043
1039
  */
1044
1040
  get onpointerenter() {
1045
- throw new unexpected_call_error_1.default('Not supported "onpointerenter" property');
1041
+ throw new UnexpectedCallError('Not supported "onpointerenter" property');
1046
1042
  }
1047
1043
  /**
1048
1044
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1052,7 +1048,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1052
1048
  * @implements DOM API: `Document`
1053
1049
  */
1054
1050
  get onpointerleave() {
1055
- throw new unexpected_call_error_1.default('Not supported "onpointerleave" property');
1051
+ throw new UnexpectedCallError('Not supported "onpointerleave" property');
1056
1052
  }
1057
1053
  /**
1058
1054
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1062,7 +1058,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1062
1058
  * @implements DOM API: `Document`
1063
1059
  */
1064
1060
  get onpointerlockchange() {
1065
- throw new unexpected_call_error_1.default('Not supported "onpointerlockchange" property');
1061
+ throw new UnexpectedCallError('Not supported "onpointerlockchange" property');
1066
1062
  }
1067
1063
  /**
1068
1064
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1072,7 +1068,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1072
1068
  * @implements DOM API: `Document`
1073
1069
  */
1074
1070
  get onpointerlockerror() {
1075
- throw new unexpected_call_error_1.default('Not supported "onpointerlockerror" property');
1071
+ throw new UnexpectedCallError('Not supported "onpointerlockerror" property');
1076
1072
  }
1077
1073
  /**
1078
1074
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1082,7 +1078,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1082
1078
  * @implements DOM API: `Document`
1083
1079
  */
1084
1080
  get onpointermove() {
1085
- throw new unexpected_call_error_1.default('Not supported "onpointermove" property');
1081
+ throw new UnexpectedCallError('Not supported "onpointermove" property');
1086
1082
  }
1087
1083
  /**
1088
1084
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1092,7 +1088,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1092
1088
  * @implements DOM API: `Document`
1093
1089
  */
1094
1090
  get onpointerout() {
1095
- throw new unexpected_call_error_1.default('Not supported "onpointerout" property');
1091
+ throw new UnexpectedCallError('Not supported "onpointerout" property');
1096
1092
  }
1097
1093
  /**
1098
1094
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1102,7 +1098,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1102
1098
  * @implements DOM API: `Document`
1103
1099
  */
1104
1100
  get onpointerover() {
1105
- throw new unexpected_call_error_1.default('Not supported "onpointerover" property');
1101
+ throw new UnexpectedCallError('Not supported "onpointerover" property');
1106
1102
  }
1107
1103
  /**
1108
1104
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1112,7 +1108,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1112
1108
  * @implements DOM API: `Document`
1113
1109
  */
1114
1110
  get onpointerup() {
1115
- throw new unexpected_call_error_1.default('Not supported "onpointerup" property');
1111
+ throw new UnexpectedCallError('Not supported "onpointerup" property');
1116
1112
  }
1117
1113
  /**
1118
1114
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1122,7 +1118,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1122
1118
  * @implements DOM API: `Document`
1123
1119
  */
1124
1120
  get onprogress() {
1125
- throw new unexpected_call_error_1.default('Not supported "onprogress" property');
1121
+ throw new UnexpectedCallError('Not supported "onprogress" property');
1126
1122
  }
1127
1123
  /**
1128
1124
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1132,7 +1128,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1132
1128
  * @implements DOM API: `Document`
1133
1129
  */
1134
1130
  get onratechange() {
1135
- throw new unexpected_call_error_1.default('Not supported "onratechange" property');
1131
+ throw new UnexpectedCallError('Not supported "onratechange" property');
1136
1132
  }
1137
1133
  /**
1138
1134
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1142,7 +1138,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1142
1138
  * @implements DOM API: `Document`
1143
1139
  */
1144
1140
  get onreadystatechange() {
1145
- throw new unexpected_call_error_1.default('Not supported "onreadystatechange" property');
1141
+ throw new UnexpectedCallError('Not supported "onreadystatechange" property');
1146
1142
  }
1147
1143
  /**
1148
1144
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1152,7 +1148,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1152
1148
  * @implements DOM API: `Document`
1153
1149
  */
1154
1150
  get onreset() {
1155
- throw new unexpected_call_error_1.default('Not supported "onreset" property');
1151
+ throw new UnexpectedCallError('Not supported "onreset" property');
1156
1152
  }
1157
1153
  /**
1158
1154
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1162,7 +1158,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1162
1158
  * @implements DOM API: `Document`
1163
1159
  */
1164
1160
  get onresize() {
1165
- throw new unexpected_call_error_1.default('Not supported "onresize" property');
1161
+ throw new UnexpectedCallError('Not supported "onresize" property');
1166
1162
  }
1167
1163
  /**
1168
1164
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1172,7 +1168,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1172
1168
  * @implements DOM API: `Document`
1173
1169
  */
1174
1170
  get onscroll() {
1175
- throw new unexpected_call_error_1.default('Not supported "onscroll" property');
1171
+ throw new UnexpectedCallError('Not supported "onscroll" property');
1176
1172
  }
1177
1173
  /**
1178
1174
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1182,7 +1178,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1182
1178
  * @implements DOM API: `Document`
1183
1179
  */
1184
1180
  get onsecuritypolicyviolation() {
1185
- throw new unexpected_call_error_1.default('Not supported "onsecuritypolicyviolation" property');
1181
+ throw new UnexpectedCallError('Not supported "onsecuritypolicyviolation" property');
1186
1182
  }
1187
1183
  /**
1188
1184
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1192,7 +1188,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1192
1188
  * @implements DOM API: `Document`
1193
1189
  */
1194
1190
  get onseeked() {
1195
- throw new unexpected_call_error_1.default('Not supported "onseeked" property');
1191
+ throw new UnexpectedCallError('Not supported "onseeked" property');
1196
1192
  }
1197
1193
  /**
1198
1194
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1202,7 +1198,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1202
1198
  * @implements DOM API: `Document`
1203
1199
  */
1204
1200
  get onseeking() {
1205
- throw new unexpected_call_error_1.default('Not supported "onseeking" property');
1201
+ throw new UnexpectedCallError('Not supported "onseeking" property');
1206
1202
  }
1207
1203
  /**
1208
1204
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1212,7 +1208,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1212
1208
  * @implements DOM API: `Document`
1213
1209
  */
1214
1210
  get onselect() {
1215
- throw new unexpected_call_error_1.default('Not supported "onselect" property');
1211
+ throw new UnexpectedCallError('Not supported "onselect" property');
1216
1212
  }
1217
1213
  /**
1218
1214
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1222,7 +1218,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1222
1218
  * @implements DOM API: `Document`
1223
1219
  */
1224
1220
  get onselectionchange() {
1225
- throw new unexpected_call_error_1.default('Not supported "onselectionchange" property');
1221
+ throw new UnexpectedCallError('Not supported "onselectionchange" property');
1226
1222
  }
1227
1223
  /**
1228
1224
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1232,7 +1228,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1232
1228
  * @implements DOM API: `Document`
1233
1229
  */
1234
1230
  get onselectstart() {
1235
- throw new unexpected_call_error_1.default('Not supported "onselectstart" property');
1231
+ throw new UnexpectedCallError('Not supported "onselectstart" property');
1236
1232
  }
1237
1233
  /**
1238
1234
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1242,7 +1238,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1242
1238
  * @implements DOM API: `Document`
1243
1239
  */
1244
1240
  get onslotchange() {
1245
- throw new unexpected_call_error_1.default('Not supported "onslotchange" property');
1241
+ throw new UnexpectedCallError('Not supported "onslotchange" property');
1246
1242
  }
1247
1243
  /**
1248
1244
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1252,7 +1248,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1252
1248
  * @implements DOM API: `Document`
1253
1249
  */
1254
1250
  get onstalled() {
1255
- throw new unexpected_call_error_1.default('Not supported "onstalled" property');
1251
+ throw new UnexpectedCallError('Not supported "onstalled" property');
1256
1252
  }
1257
1253
  /**
1258
1254
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1262,7 +1258,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1262
1258
  * @implements DOM API: `Document`
1263
1259
  */
1264
1260
  get onsubmit() {
1265
- throw new unexpected_call_error_1.default('Not supported "onsubmit" property');
1261
+ throw new UnexpectedCallError('Not supported "onsubmit" property');
1266
1262
  }
1267
1263
  /**
1268
1264
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1272,7 +1268,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1272
1268
  * @implements DOM API: `Document`
1273
1269
  */
1274
1270
  get onsuspend() {
1275
- throw new unexpected_call_error_1.default('Not supported "onsuspend" property');
1271
+ throw new UnexpectedCallError('Not supported "onsuspend" property');
1276
1272
  }
1277
1273
  /**
1278
1274
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1282,7 +1278,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1282
1278
  * @implements DOM API: `Document`
1283
1279
  */
1284
1280
  get ontimeupdate() {
1285
- throw new unexpected_call_error_1.default('Not supported "ontimeupdate" property');
1281
+ throw new UnexpectedCallError('Not supported "ontimeupdate" property');
1286
1282
  }
1287
1283
  /**
1288
1284
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1292,7 +1288,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1292
1288
  * @implements DOM API: `Document`
1293
1289
  */
1294
1290
  get ontoggle() {
1295
- throw new unexpected_call_error_1.default('Not supported "ontoggle" property');
1291
+ throw new UnexpectedCallError('Not supported "ontoggle" property');
1296
1292
  }
1297
1293
  /**
1298
1294
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1302,7 +1298,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1302
1298
  * @implements DOM API: `Document`
1303
1299
  */
1304
1300
  get ontransitioncancel() {
1305
- throw new unexpected_call_error_1.default('Not supported "ontransitioncancel" property');
1301
+ throw new UnexpectedCallError('Not supported "ontransitioncancel" property');
1306
1302
  }
1307
1303
  /**
1308
1304
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1312,7 +1308,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1312
1308
  * @implements DOM API: `Document`
1313
1309
  */
1314
1310
  get ontransitionend() {
1315
- throw new unexpected_call_error_1.default('Not supported "ontransitionend" property');
1311
+ throw new UnexpectedCallError('Not supported "ontransitionend" property');
1316
1312
  }
1317
1313
  /**
1318
1314
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1322,7 +1318,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1322
1318
  * @implements DOM API: `Document`
1323
1319
  */
1324
1320
  get ontransitionrun() {
1325
- throw new unexpected_call_error_1.default('Not supported "ontransitionrun" property');
1321
+ throw new UnexpectedCallError('Not supported "ontransitionrun" property');
1326
1322
  }
1327
1323
  /**
1328
1324
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1332,7 +1328,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1332
1328
  * @implements DOM API: `Document`
1333
1329
  */
1334
1330
  get ontransitionstart() {
1335
- throw new unexpected_call_error_1.default('Not supported "ontransitionstart" property');
1331
+ throw new UnexpectedCallError('Not supported "ontransitionstart" property');
1336
1332
  }
1337
1333
  /**
1338
1334
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1342,7 +1338,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1342
1338
  * @implements DOM API: `Document`
1343
1339
  */
1344
1340
  get onvisibilitychange() {
1345
- throw new unexpected_call_error_1.default('Not supported "onvisibilitychange" property');
1341
+ throw new UnexpectedCallError('Not supported "onvisibilitychange" property');
1346
1342
  }
1347
1343
  /**
1348
1344
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1352,7 +1348,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1352
1348
  * @implements DOM API: `Document`
1353
1349
  */
1354
1350
  get onvolumechange() {
1355
- throw new unexpected_call_error_1.default('Not supported "onvolumechange" property');
1351
+ throw new UnexpectedCallError('Not supported "onvolumechange" property');
1356
1352
  }
1357
1353
  /**
1358
1354
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1362,7 +1358,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1362
1358
  * @implements DOM API: `Document`
1363
1359
  */
1364
1360
  get onwaiting() {
1365
- throw new unexpected_call_error_1.default('Not supported "onwaiting" property');
1361
+ throw new UnexpectedCallError('Not supported "onwaiting" property');
1366
1362
  }
1367
1363
  /**
1368
1364
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1372,7 +1368,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1372
1368
  * @implements DOM API: `Document`
1373
1369
  */
1374
1370
  get onwebkitanimationend() {
1375
- throw new unexpected_call_error_1.default('Not supported "onwebkitanimationend" property');
1371
+ throw new UnexpectedCallError('Not supported "onwebkitanimationend" property');
1376
1372
  }
1377
1373
  /**
1378
1374
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1382,7 +1378,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1382
1378
  * @implements DOM API: `Document`
1383
1379
  */
1384
1380
  get onwebkitanimationiteration() {
1385
- throw new unexpected_call_error_1.default('Not supported "onwebkitanimationiteration" property');
1381
+ throw new UnexpectedCallError('Not supported "onwebkitanimationiteration" property');
1386
1382
  }
1387
1383
  /**
1388
1384
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1392,7 +1388,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1392
1388
  * @implements DOM API: `Document`
1393
1389
  */
1394
1390
  get onwebkitanimationstart() {
1395
- throw new unexpected_call_error_1.default('Not supported "onwebkitanimationstart" property');
1391
+ throw new UnexpectedCallError('Not supported "onwebkitanimationstart" property');
1396
1392
  }
1397
1393
  /**
1398
1394
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1402,7 +1398,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1402
1398
  * @implements DOM API: `Document`
1403
1399
  */
1404
1400
  get onwebkittransitionend() {
1405
- throw new unexpected_call_error_1.default('Not supported "onwebkittransitionend" property');
1401
+ throw new UnexpectedCallError('Not supported "onwebkittransitionend" property');
1406
1402
  }
1407
1403
  /**
1408
1404
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1412,7 +1408,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1412
1408
  * @implements DOM API: `Document`
1413
1409
  */
1414
1410
  get onwheel() {
1415
- throw new unexpected_call_error_1.default('Not supported "onwheel" property');
1411
+ throw new UnexpectedCallError('Not supported "onwheel" property');
1416
1412
  }
1417
1413
  get ownerDocument() {
1418
1414
  return null;
@@ -1434,7 +1430,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1434
1430
  * @implements DOM API: `Document`
1435
1431
  */
1436
1432
  get pictureInPictureElement() {
1437
- throw new unexpected_call_error_1.default('Not supported "pictureInPictureElement" property');
1433
+ throw new UnexpectedCallError('Not supported "pictureInPictureElement" property');
1438
1434
  }
1439
1435
  /**
1440
1436
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1443,7 +1439,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1443
1439
  * @implements DOM API: `Document`
1444
1440
  */
1445
1441
  get pictureInPictureEnabled() {
1446
- throw new unexpected_call_error_1.default('Not supported "pictureInPictureEnabled" property');
1442
+ throw new UnexpectedCallError('Not supported "pictureInPictureEnabled" property');
1447
1443
  }
1448
1444
  /**
1449
1445
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1452,7 +1448,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1452
1448
  * @implements DOM API: `Document`
1453
1449
  */
1454
1450
  get plugins() {
1455
- throw new unexpected_call_error_1.default('Not supported "plugins" property');
1451
+ throw new UnexpectedCallError('Not supported "plugins" property');
1456
1452
  }
1457
1453
  /**
1458
1454
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1461,7 +1457,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1461
1457
  * @implements DOM API: `Document`
1462
1458
  */
1463
1459
  get pointerLockElement() {
1464
- throw new unexpected_call_error_1.default('Not supported "pointerLockElement" property');
1460
+ throw new UnexpectedCallError('Not supported "pointerLockElement" property');
1465
1461
  }
1466
1462
  /**
1467
1463
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1470,7 +1466,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1470
1466
  * @implements DOM API: `Document`
1471
1467
  */
1472
1468
  get readyState() {
1473
- throw new unexpected_call_error_1.default('Not supported "readyState" property');
1469
+ throw new UnexpectedCallError('Not supported "readyState" property');
1474
1470
  }
1475
1471
  /**
1476
1472
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1479,7 +1475,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1479
1475
  * @implements DOM API: `Document`
1480
1476
  */
1481
1477
  get referrer() {
1482
- throw new unexpected_call_error_1.default('Not supported "referrer" property');
1478
+ throw new UnexpectedCallError('Not supported "referrer" property');
1483
1479
  }
1484
1480
  /**
1485
1481
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1489,7 +1485,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1489
1485
  * @implements DOM API: `Document`
1490
1486
  */
1491
1487
  get rootElement() {
1492
- throw new unexpected_call_error_1.default('Not supported "rootElement" property');
1488
+ throw new UnexpectedCallError('Not supported "rootElement" property');
1493
1489
  }
1494
1490
  /**
1495
1491
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1498,7 +1494,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1498
1494
  * @implements DOM API: `Document`
1499
1495
  */
1500
1496
  get scripts() {
1501
- throw new unexpected_call_error_1.default('Not supported "scripts" property');
1497
+ throw new UnexpectedCallError('Not supported "scripts" property');
1502
1498
  }
1503
1499
  /**
1504
1500
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1507,7 +1503,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1507
1503
  * @implements DOM API: `Document`
1508
1504
  */
1509
1505
  get scrollingElement() {
1510
- throw new unexpected_call_error_1.default('Not supported "scrollingElement" property');
1506
+ throw new UnexpectedCallError('Not supported "scrollingElement" property');
1511
1507
  }
1512
1508
  /**
1513
1509
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1516,7 +1512,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1516
1512
  * @implements DOM API: `Document`
1517
1513
  */
1518
1514
  get styleSheets() {
1519
- throw new unexpected_call_error_1.default('Not supported "styleSheets" property');
1515
+ throw new UnexpectedCallError('Not supported "styleSheets" property');
1520
1516
  }
1521
1517
  /**
1522
1518
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1525,7 +1521,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1525
1521
  * @implements DOM API: `Document`
1526
1522
  */
1527
1523
  get timeline() {
1528
- throw new unexpected_call_error_1.default('Not supported "timeline" property');
1524
+ throw new UnexpectedCallError('Not supported "timeline" property');
1529
1525
  }
1530
1526
  /**
1531
1527
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1534,7 +1530,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1534
1530
  * @implements DOM API: `Document`
1535
1531
  */
1536
1532
  get title() {
1537
- throw new unexpected_call_error_1.default('Not supported "title" property');
1533
+ throw new UnexpectedCallError('Not supported "title" property');
1538
1534
  }
1539
1535
  /**
1540
1536
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1543,7 +1539,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1543
1539
  * @implements DOM API: `Document`
1544
1540
  */
1545
1541
  get visibilityState() {
1546
- throw new unexpected_call_error_1.default('Not supported "visibilityState" property');
1542
+ throw new UnexpectedCallError('Not supported "visibilityState" property');
1547
1543
  }
1548
1544
  /**
1549
1545
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1553,7 +1549,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1553
1549
  * @implements DOM API: `Document`
1554
1550
  */
1555
1551
  get vlinkColor() {
1556
- throw new unexpected_call_error_1.default('Not supported "vlinkColor" property');
1552
+ throw new UnexpectedCallError('Not supported "vlinkColor" property');
1557
1553
  }
1558
1554
  /**
1559
1555
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1562,7 +1558,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1562
1558
  * @implements DOM API: `Document`
1563
1559
  */
1564
1560
  adoptNode(node) {
1565
- throw new unexpected_call_error_1.default('Not supported "adoptNode" method');
1561
+ throw new UnexpectedCallError('Not supported "adoptNode" method');
1566
1562
  }
1567
1563
  /**
1568
1564
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1572,7 +1568,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1572
1568
  * @implements DOM API: `Document`
1573
1569
  */
1574
1570
  captureEvents() {
1575
- throw new unexpected_call_error_1.default('Not supported "captureEvents" method');
1571
+ throw new UnexpectedCallError('Not supported "captureEvents" method');
1576
1572
  }
1577
1573
  /**
1578
1574
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1581,7 +1577,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1581
1577
  * @implements DOM API: `Document`
1582
1578
  */
1583
1579
  caretRangeFromPoint(x, y) {
1584
- throw new unexpected_call_error_1.default('Not supported "caretRangeFromPoint" method');
1580
+ throw new UnexpectedCallError('Not supported "caretRangeFromPoint" method');
1585
1581
  }
1586
1582
  /**
1587
1583
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1591,7 +1587,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1591
1587
  * @implements DOM API: `Document`
1592
1588
  */
1593
1589
  clear() {
1594
- throw new unexpected_call_error_1.default('Not supported "clear" method');
1590
+ throw new UnexpectedCallError('Not supported "clear" method');
1595
1591
  }
1596
1592
  /**
1597
1593
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1600,7 +1596,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1600
1596
  * @implements DOM API: `Document`
1601
1597
  */
1602
1598
  close() {
1603
- throw new unexpected_call_error_1.default('Not supported "close" method');
1599
+ throw new UnexpectedCallError('Not supported "close" method');
1604
1600
  }
1605
1601
  /**
1606
1602
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1609,7 +1605,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1609
1605
  * @implements DOM API: `Document`
1610
1606
  */
1611
1607
  createAttribute(localName) {
1612
- throw new unexpected_call_error_1.default('Not supported "createAttribute" method');
1608
+ throw new UnexpectedCallError('Not supported "createAttribute" method');
1613
1609
  }
1614
1610
  /**
1615
1611
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1618,7 +1614,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1618
1614
  * @implements DOM API: `Document`
1619
1615
  */
1620
1616
  createAttributeNS(namespace, qualifiedName) {
1621
- throw new unexpected_call_error_1.default('Not supported "createAttributeNS" method');
1617
+ throw new UnexpectedCallError('Not supported "createAttributeNS" method');
1622
1618
  }
1623
1619
  /**
1624
1620
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1627,7 +1623,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1627
1623
  * @implements DOM API: `Document`
1628
1624
  */
1629
1625
  createCDATASection(data) {
1630
- throw new unexpected_call_error_1.default('Not supported "createCDATASection" method');
1626
+ throw new UnexpectedCallError('Not supported "createCDATASection" method');
1631
1627
  }
1632
1628
  /**
1633
1629
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1636,7 +1632,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1636
1632
  * @implements DOM API: `Document`
1637
1633
  */
1638
1634
  createComment(data) {
1639
- throw new unexpected_call_error_1.default('Not supported "createComment" method');
1635
+ throw new UnexpectedCallError('Not supported "createComment" method');
1640
1636
  }
1641
1637
  /**
1642
1638
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1645,7 +1641,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1645
1641
  * @implements DOM API: `Document`
1646
1642
  */
1647
1643
  createDocumentFragment() {
1648
- throw new unexpected_call_error_1.default('Not supported "createDocumentFragment" method');
1644
+ throw new UnexpectedCallError('Not supported "createDocumentFragment" method');
1649
1645
  }
1650
1646
  /**
1651
1647
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1654,7 +1650,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1654
1650
  * @implements DOM API: `Document`
1655
1651
  */
1656
1652
  createElement(tagName, options) {
1657
- throw new unexpected_call_error_1.default('Not supported "createElement" method');
1653
+ throw new UnexpectedCallError('Not supported "createElement" method');
1658
1654
  }
1659
1655
  /**
1660
1656
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1663,7 +1659,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1663
1659
  * @implements DOM API: `Document`
1664
1660
  */
1665
1661
  createElementNS(namespace, qualifiedName, options) {
1666
- throw new unexpected_call_error_1.default('Not supported "createElementNS" method');
1662
+ throw new UnexpectedCallError('Not supported "createElementNS" method');
1667
1663
  }
1668
1664
  /**
1669
1665
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1672,7 +1668,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1672
1668
  * @implements DOM API: `Document`
1673
1669
  */
1674
1670
  createEvent(eventInterface) {
1675
- throw new unexpected_call_error_1.default('Not supported "createEvent" method');
1671
+ throw new UnexpectedCallError('Not supported "createEvent" method');
1676
1672
  }
1677
1673
  /**
1678
1674
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1683,7 +1679,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1683
1679
  createExpression(expression,
1684
1680
  // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
1685
1681
  resolver) {
1686
- throw new unexpected_call_error_1.default('Not supported "createExpression" method');
1682
+ throw new UnexpectedCallError('Not supported "createExpression" method');
1687
1683
  }
1688
1684
  /**
1689
1685
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1694,7 +1690,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1694
1690
  createNSResolver(
1695
1691
  // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
1696
1692
  nodeResolver) {
1697
- throw new unexpected_call_error_1.default('Not supported "createNSResolver" method');
1693
+ throw new UnexpectedCallError('Not supported "createNSResolver" method');
1698
1694
  }
1699
1695
  /**
1700
1696
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1707,7 +1703,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1707
1703
  root, whatToShow,
1708
1704
  // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
1709
1705
  filter) {
1710
- throw new unexpected_call_error_1.default('Not supported "createNodeIterator" method');
1706
+ throw new UnexpectedCallError('Not supported "createNodeIterator" method');
1711
1707
  }
1712
1708
  /**
1713
1709
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1716,7 +1712,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1716
1712
  * @implements DOM API: `Document`
1717
1713
  */
1718
1714
  createProcessingInstruction(target, data) {
1719
- throw new unexpected_call_error_1.default('Not supported "createProcessingInstruction" method');
1715
+ throw new UnexpectedCallError('Not supported "createProcessingInstruction" method');
1720
1716
  }
1721
1717
  /**
1722
1718
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1725,7 +1721,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1725
1721
  * @implements DOM API: `Document`
1726
1722
  */
1727
1723
  createRange() {
1728
- throw new unexpected_call_error_1.default('Not supported "createRange" method');
1724
+ throw new UnexpectedCallError('Not supported "createRange" method');
1729
1725
  }
1730
1726
  /**
1731
1727
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1734,7 +1730,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1734
1730
  * @implements DOM API: `Document`
1735
1731
  */
1736
1732
  createTextNode(data) {
1737
- throw new unexpected_call_error_1.default('Not supported "createTextNode" method');
1733
+ throw new UnexpectedCallError('Not supported "createTextNode" method');
1738
1734
  }
1739
1735
  /**
1740
1736
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1747,13 +1743,13 @@ class MLDocument extends parent_node_1.MLParentNode {
1747
1743
  root, whatToShow,
1748
1744
  // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
1749
1745
  filter) {
1750
- throw new unexpected_call_error_1.default('Not supported "createTreeWalker" method');
1746
+ throw new UnexpectedCallError('Not supported "createTreeWalker" method');
1751
1747
  }
1752
1748
  /**
1753
1749
  * @implements `@markuplint/ml-core` API: `MLDocument`
1754
1750
  */
1755
1751
  debugMap() {
1756
- return (0, debug_2.nodeListToDebugMaps)(this.nodeList, true);
1752
+ return nodeListToDebugMaps(this.nodeList, true);
1757
1753
  }
1758
1754
  /**
1759
1755
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1762,7 +1758,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1762
1758
  * @implements DOM API: `Document`
1763
1759
  */
1764
1760
  elementFromPoint(x, y) {
1765
- throw new unexpected_call_error_1.default('Not supported "elementFromPoint" method');
1761
+ throw new UnexpectedCallError('Not supported "elementFromPoint" method');
1766
1762
  }
1767
1763
  /**
1768
1764
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1771,7 +1767,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1771
1767
  * @implements DOM API: `Document`
1772
1768
  */
1773
1769
  elementsFromPoint(x, y) {
1774
- throw new unexpected_call_error_1.default('Not supported "elementsFromPoint" method');
1770
+ throw new UnexpectedCallError('Not supported "elementsFromPoint" method');
1775
1771
  }
1776
1772
  /**
1777
1773
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1786,7 +1782,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1786
1782
  resolver, type,
1787
1783
  // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
1788
1784
  result) {
1789
- throw new unexpected_call_error_1.default('Not supported "evaluate" method');
1785
+ throw new UnexpectedCallError('Not supported "evaluate" method');
1790
1786
  }
1791
1787
  /**
1792
1788
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1796,7 +1792,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1796
1792
  * @implements DOM API: `Document`
1797
1793
  */
1798
1794
  execCommand(commandId, showUI, value) {
1799
- throw new unexpected_call_error_1.default('Not supported "execCommand" method');
1795
+ throw new UnexpectedCallError('Not supported "execCommand" method');
1800
1796
  }
1801
1797
  /**
1802
1798
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1805,7 +1801,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1805
1801
  * @implements DOM API: `Document`
1806
1802
  */
1807
1803
  exitFullscreen() {
1808
- throw new unexpected_call_error_1.default('Not supported "exitFullscreen" method');
1804
+ throw new UnexpectedCallError('Not supported "exitFullscreen" method');
1809
1805
  }
1810
1806
  /**
1811
1807
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1814,7 +1810,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1814
1810
  * @implements DOM API: `Document`
1815
1811
  */
1816
1812
  exitPictureInPicture() {
1817
- throw new unexpected_call_error_1.default('Not supported "exitPictureInPicture" method');
1813
+ throw new UnexpectedCallError('Not supported "exitPictureInPicture" method');
1818
1814
  }
1819
1815
  /**
1820
1816
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1823,7 +1819,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1823
1819
  * @implements DOM API: `Document`
1824
1820
  */
1825
1821
  exitPointerLock() {
1826
- throw new unexpected_call_error_1.default('Not supported "exitPointerLock" method');
1822
+ throw new UnexpectedCallError('Not supported "exitPointerLock" method');
1827
1823
  }
1828
1824
  /**
1829
1825
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1832,7 +1828,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1832
1828
  * @implements DOM API: `Document`
1833
1829
  */
1834
1830
  getAnimations() {
1835
- throw new unexpected_call_error_1.default('Not supported "getAnimations" method');
1831
+ throw new UnexpectedCallError('Not supported "getAnimations" method');
1836
1832
  }
1837
1833
  /**
1838
1834
  * @implements DOM API: `Document`
@@ -1848,7 +1844,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1848
1844
  * @implements DOM API: `Document`
1849
1845
  */
1850
1846
  getElementsByClassName(classNames) {
1851
- return (0, node_list_1.nodeListToHTMLCollection)(this.querySelectorAll(classNames));
1847
+ return nodeListToHTMLCollection(this.querySelectorAll(classNames));
1852
1848
  }
1853
1849
  /**
1854
1850
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1857,7 +1853,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1857
1853
  * @implements DOM API: `Document`
1858
1854
  */
1859
1855
  getElementsByName(elementName) {
1860
- throw new unexpected_call_error_1.default('Not supported "getElementsByName" method');
1856
+ throw new UnexpectedCallError('Not supported "getElementsByName" method');
1861
1857
  }
1862
1858
  /**
1863
1859
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1866,7 +1862,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1866
1862
  * @implements DOM API: `Document`
1867
1863
  */
1868
1864
  getElementsByTagName(qualifiedName) {
1869
- return (0, node_list_1.nodeListToHTMLCollection)(this.querySelectorAll(qualifiedName));
1865
+ return nodeListToHTMLCollection(this.querySelectorAll(qualifiedName));
1870
1866
  }
1871
1867
  /**
1872
1868
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1875,7 +1871,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1875
1871
  * @implements DOM API: `Document`
1876
1872
  */
1877
1873
  getElementsByTagNameNS(namespace, localName) {
1878
- throw new unexpected_call_error_1.default('Not supported "getElementsByTagNameNS" method');
1874
+ throw new UnexpectedCallError('Not supported "getElementsByTagNameNS" method');
1879
1875
  }
1880
1876
  /**
1881
1877
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1884,14 +1880,14 @@ class MLDocument extends parent_node_1.MLParentNode {
1884
1880
  * @implements DOM API: `Document`
1885
1881
  */
1886
1882
  getSelection() {
1887
- throw new unexpected_call_error_1.default('Not supported "getSelection" method');
1883
+ throw new UnexpectedCallError('Not supported "getSelection" method');
1888
1884
  }
1889
1885
  /**
1890
1886
  * @implements `@markuplint/ml-core` API: `MLDocument`
1891
1887
  */
1892
1888
  getTokenList() {
1893
- if (tslib_1.__classPrivateFieldGet(this, _MLDocument_tokenList, "f")) {
1894
- return tslib_1.__classPrivateFieldGet(this, _MLDocument_tokenList, "f");
1889
+ if (__classPrivateFieldGet(this, _MLDocument_tokenList, "f")) {
1890
+ return __classPrivateFieldGet(this, _MLDocument_tokenList, "f");
1895
1891
  }
1896
1892
  const tokens = [];
1897
1893
  for (const node of this.nodeList) {
@@ -1901,8 +1897,8 @@ class MLDocument extends parent_node_1.MLParentNode {
1901
1897
  }
1902
1898
  }
1903
1899
  tokens.sort((a, b) => a.startOffset - b.startOffset);
1904
- tslib_1.__classPrivateFieldSet(this, _MLDocument_tokenList, Object.freeze(tokens), "f");
1905
- return tslib_1.__classPrivateFieldGet(this, _MLDocument_tokenList, "f");
1900
+ __classPrivateFieldSet(this, _MLDocument_tokenList, Object.freeze(tokens), "f");
1901
+ return __classPrivateFieldGet(this, _MLDocument_tokenList, "f");
1906
1902
  }
1907
1903
  /**
1908
1904
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1911,7 +1907,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1911
1907
  * @implements DOM API: `Document`
1912
1908
  */
1913
1909
  hasFocus() {
1914
- throw new unexpected_call_error_1.default('Not supported "hasFocus" method');
1910
+ throw new UnexpectedCallError('Not supported "hasFocus" method');
1915
1911
  }
1916
1912
  /**
1917
1913
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1920,7 +1916,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1920
1916
  * @implements DOM API: `Document`
1921
1917
  */
1922
1918
  hasStorageAccess() {
1923
- throw new unexpected_call_error_1.default('Not supported "hasStorageAccess" method');
1919
+ throw new UnexpectedCallError('Not supported "hasStorageAccess" method');
1924
1920
  }
1925
1921
  /**
1926
1922
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1929,7 +1925,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1929
1925
  * @implements DOM API: `Document`
1930
1926
  */
1931
1927
  importNode(node, deep) {
1932
- throw new unexpected_call_error_1.default('Not supported "importNode" method');
1928
+ throw new UnexpectedCallError('Not supported "importNode" method');
1933
1929
  }
1934
1930
  /**
1935
1931
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1938,7 +1934,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1938
1934
  * @implements DOM API: `Document`
1939
1935
  */
1940
1936
  open(url, name, features) {
1941
- throw new unexpected_call_error_1.default('Not supported "open" method');
1937
+ throw new UnexpectedCallError('Not supported "open" method');
1942
1938
  }
1943
1939
  /**
1944
1940
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1948,7 +1944,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1948
1944
  * @implements DOM API: `Document`
1949
1945
  */
1950
1946
  queryCommandEnabled(commandId) {
1951
- throw new unexpected_call_error_1.default('Not supported "queryCommandEnabled" method');
1947
+ throw new UnexpectedCallError('Not supported "queryCommandEnabled" method');
1952
1948
  }
1953
1949
  /**
1954
1950
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1958,7 +1954,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1958
1954
  * @implements DOM API: `Document`
1959
1955
  */
1960
1956
  queryCommandIndeterm(commandId) {
1961
- throw new unexpected_call_error_1.default('Not supported "queryCommandIndeterm" method');
1957
+ throw new UnexpectedCallError('Not supported "queryCommandIndeterm" method');
1962
1958
  }
1963
1959
  /**
1964
1960
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1968,7 +1964,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1968
1964
  * @implements DOM API: `Document`
1969
1965
  */
1970
1966
  queryCommandState(commandId) {
1971
- throw new unexpected_call_error_1.default('Not supported "queryCommandState" method');
1967
+ throw new UnexpectedCallError('Not supported "queryCommandState" method');
1972
1968
  }
1973
1969
  /**
1974
1970
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1978,7 +1974,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1978
1974
  * @implements DOM API: `Document`
1979
1975
  */
1980
1976
  queryCommandSupported(commandId) {
1981
- throw new unexpected_call_error_1.default('Not supported "queryCommandSupported" method');
1977
+ throw new UnexpectedCallError('Not supported "queryCommandSupported" method');
1982
1978
  }
1983
1979
  /**
1984
1980
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1988,7 +1984,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1988
1984
  * @implements DOM API: `Document`
1989
1985
  */
1990
1986
  queryCommandValue(commandId) {
1991
- throw new unexpected_call_error_1.default('Not supported "queryCommandValue" method');
1987
+ throw new UnexpectedCallError('Not supported "queryCommandValue" method');
1992
1988
  }
1993
1989
  /**
1994
1990
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1998,7 +1994,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1998
1994
  * @implements DOM API: `Document`
1999
1995
  */
2000
1996
  releaseEvents() {
2001
- throw new unexpected_call_error_1.default('Not supported "releaseEvents" method');
1997
+ throw new UnexpectedCallError('Not supported "releaseEvents" method');
2002
1998
  }
2003
1999
  /**
2004
2000
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -2007,7 +2003,7 @@ class MLDocument extends parent_node_1.MLParentNode {
2007
2003
  * @implements DOM API: `Document`
2008
2004
  */
2009
2005
  requestStorageAccess() {
2010
- throw new unexpected_call_error_1.default('Not supported "requestStorageAccess" method');
2006
+ throw new UnexpectedCallError('Not supported "requestStorageAccess" method');
2011
2007
  }
2012
2008
  /**
2013
2009
  * @implements `@markuplint/ml-core` API: `MLDocument`
@@ -2037,7 +2033,7 @@ class MLDocument extends parent_node_1.MLParentNode {
2037
2033
  return html.join('');
2038
2034
  }
2039
2035
  walkOn(type, walker, skipWhenRuleIsDisabled = true) {
2040
- return (0, walkers_1.sequentialWalker)(this.nodeList, node => {
2036
+ return sequentialWalker(this.nodeList, node => {
2041
2037
  if (skipWhenRuleIsDisabled && node.rule.disabled) {
2042
2038
  return;
2043
2039
  }
@@ -2051,7 +2047,7 @@ class MLDocument extends parent_node_1.MLParentNode {
2051
2047
  return walker(node);
2052
2048
  }
2053
2049
  if (type === 'Attr' && node.is(node.ELEMENT_NODE)) {
2054
- return (0, walkers_1.sequentialWalker)(Array.from(node.attributes), attr => walker(attr));
2050
+ return sequentialWalker(Array.from(node.attributes), attr => walker(attr));
2055
2051
  }
2056
2052
  if (type === 'ElementCloseTag' && node.is(node.ELEMENT_NODE) && node.closeTag) {
2057
2053
  return walker(node.closeTag);
@@ -2065,7 +2061,7 @@ class MLDocument extends parent_node_1.MLParentNode {
2065
2061
  * @implements DOM API: `Document`
2066
2062
  */
2067
2063
  write(...text) {
2068
- throw new unexpected_call_error_1.default('Not supported "write" method');
2064
+ throw new UnexpectedCallError('Not supported "write" method');
2069
2065
  }
2070
2066
  /**
2071
2067
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -2074,7 +2070,7 @@ class MLDocument extends parent_node_1.MLParentNode {
2074
2070
  * @implements DOM API: `Document`
2075
2071
  */
2076
2072
  writeln(...text) {
2077
- throw new unexpected_call_error_1.default('Not supported "writeln" method');
2073
+ throw new UnexpectedCallError('Not supported "writeln" method');
2078
2074
  }
2079
2075
  _pretending(pretenders) {
2080
2076
  if (docLog.enabled) {
@@ -2093,7 +2089,7 @@ class MLDocument extends parent_node_1.MLParentNode {
2093
2089
  if (docLog.enabled) {
2094
2090
  docLog('Rule Mapping: %O', Object.keys(ruleset.rules));
2095
2091
  }
2096
- const ruleMapper = new rule_mapper_1.RuleMapper(this);
2092
+ const ruleMapper = new RuleMapper(this);
2097
2093
  // global rules to #document
2098
2094
  Object.keys(ruleset.rules).forEach(ruleName => {
2099
2095
  const rule = ruleset.rules[ruleName];
@@ -2129,15 +2125,14 @@ class MLDocument extends parent_node_1.MLParentNode {
2129
2125
  const selectorTarget = node.is(node.ELEMENT_NODE) ? node : null;
2130
2126
  // node specs and special rules for node by selector
2131
2127
  ruleset.nodeRules.forEach(nodeRule => {
2132
- var _a, _b;
2133
2128
  if (!nodeRule.rules) {
2134
2129
  return;
2135
2130
  }
2136
2131
  if (!selectorTarget) {
2137
2132
  return;
2138
2133
  }
2139
- const selector = (_a = nodeRule.selector) !== null && _a !== void 0 ? _a : nodeRule.regexSelector;
2140
- const matches = (0, selector_1.matchSelector)(selectorTarget, selector);
2134
+ const selector = nodeRule.selector ?? nodeRule.regexSelector;
2135
+ const matches = matchSelector(selectorTarget, selector);
2141
2136
  if (!matches.matched) {
2142
2137
  return;
2143
2138
  }
@@ -2150,12 +2145,12 @@ class MLDocument extends parent_node_1.MLParentNode {
2150
2145
  if (rule == null) {
2151
2146
  continue;
2152
2147
  }
2153
- const convertedRule = (0, ml_config_1.exchangeValueOnRule)(rule, (_b = matches.data) !== null && _b !== void 0 ? _b : {});
2148
+ const convertedRule = exchangeValueOnRule(rule, matches.data ?? {});
2154
2149
  if (convertedRule === undefined) {
2155
2150
  continue;
2156
2151
  }
2157
2152
  const globalRule = ruleset.rules[ruleName];
2158
- const mergedRule = globalRule != null ? (0, ml_config_1.mergeRule)(globalRule, convertedRule) : convertedRule;
2153
+ const mergedRule = globalRule != null ? mergeRule(globalRule, convertedRule) : convertedRule;
2159
2154
  ruleLog('↑ nodeRule (%s): %O', ruleName, mergedRule);
2160
2155
  ruleMapper.set(node, ruleName, {
2161
2156
  from: 'nodeRules',
@@ -2168,20 +2163,19 @@ class MLDocument extends parent_node_1.MLParentNode {
2168
2163
  if (selectorTarget && ruleset.childNodeRules.length > 0) {
2169
2164
  const descendants = [];
2170
2165
  const children = Array.from(selectorTarget.childNodes);
2171
- (0, walkers_1.syncWalk)(children, childNode => {
2166
+ syncWalk(children, childNode => {
2172
2167
  descendants.push(childNode);
2173
2168
  });
2174
2169
  ruleset.childNodeRules.forEach(nodeRule => {
2175
- var _a;
2176
2170
  if (!nodeRule.rules) {
2177
2171
  return;
2178
2172
  }
2179
2173
  const nodeRuleRules = nodeRule.rules;
2180
- const selector = (_a = nodeRule.selector) !== null && _a !== void 0 ? _a : nodeRule.regexSelector;
2174
+ const selector = nodeRule.selector ?? nodeRule.regexSelector;
2181
2175
  if (selector == null) {
2182
2176
  return;
2183
2177
  }
2184
- const matches = (0, selector_1.matchSelector)(selectorTarget, selector);
2178
+ const matches = matchSelector(selectorTarget, selector);
2185
2179
  if (!matches.matched) {
2186
2180
  return;
2187
2181
  }
@@ -2190,17 +2184,16 @@ class MLDocument extends parent_node_1.MLParentNode {
2190
2184
  }
2191
2185
  const targetDescendants = nodeRule.inheritance ? descendants : children;
2192
2186
  Object.keys(nodeRuleRules).forEach(ruleName => {
2193
- var _a;
2194
2187
  const rule = nodeRuleRules[ruleName];
2195
2188
  if (rule == null) {
2196
2189
  return;
2197
2190
  }
2198
- const convertedRule = (0, ml_config_1.exchangeValueOnRule)(rule, (_a = matches.data) !== null && _a !== void 0 ? _a : {});
2191
+ const convertedRule = exchangeValueOnRule(rule, matches.data ?? {});
2199
2192
  if (convertedRule === undefined) {
2200
2193
  return;
2201
2194
  }
2202
2195
  const globalRule = ruleset.rules[ruleName];
2203
- const mergedRule = globalRule != null ? (0, ml_config_1.mergeRule)(globalRule, convertedRule) : convertedRule;
2196
+ const mergedRule = globalRule != null ? mergeRule(globalRule, convertedRule) : convertedRule;
2204
2197
  ruleLog('↑ childNodeRule (%s): %O', ruleName, mergedRule);
2205
2198
  targetDescendants.forEach(descendant => {
2206
2199
  ruleMapper.set(descendant, ruleName, {
@@ -2216,5 +2209,4 @@ class MLDocument extends parent_node_1.MLParentNode {
2216
2209
  ruleMapper.apply();
2217
2210
  }
2218
2211
  }
2219
- exports.MLDocument = MLDocument;
2220
2212
  _MLDocument_filename = new WeakMap(), _MLDocument_tokenList = new WeakMap();