html-standard 0.0.8 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,300 +1,2 @@
1
- // src/constants/defaults.ts
2
- var DEFAULT_ATTRIBUTES_OPTIONS = {
3
- get(_) {
4
- return null;
5
- }
6
- };
7
- var DEFAULT_ELEMENT_OPTIONS = {
8
- attributes: {
9
- get(_) {
10
- return null;
11
- }
12
- }
13
- };
14
-
15
- // src/core/attribute-state.ts
16
- var AttributeState = class {
17
- constructor(options = DEFAULT_ATTRIBUTES_OPTIONS) {
18
- this.options = options;
19
- }
20
- get(key) {
21
- return this.options.get(key);
22
- }
23
- has(key) {
24
- return this.options.get(key) !== null;
25
- }
26
- };
27
-
28
- // src/core/element-state.ts
29
- var ElementState = class _ElementState {
30
- constructor(name, options) {
31
- this.options = options;
32
- this.name = name.toLowerCase();
33
- }
34
- get attributes() {
35
- return new AttributeState(this.options.attributes);
36
- }
37
- parent() {
38
- if (!this.options.ancestors) {
39
- return null;
40
- }
41
- const iterator = this.options.ancestors()[Symbol.iterator]();
42
- const first = iterator.next();
43
- if (first.done || !first.value) {
44
- return null;
45
- }
46
- return new _ElementState(first.value.name, first.value);
47
- }
48
- anceters() {
49
- var _a, _b;
50
- return ((_b = (_a = this.options).ancestors) == null ? void 0 : _b.call(_a)) || [];
51
- }
52
- };
53
-
54
- // src/constants/roles.ts
55
- var ROLES = {
56
- ARTICLE: "article",
57
- BLOCKQUOTE: "blockquote",
58
- BUTTON: "button",
59
- CAPTION: "caption",
60
- CELL: "cell",
61
- CHECKBOX: "checkbox",
62
- CODE: "code",
63
- COMBOBOX: "combobox",
64
- COMPLEMENTARY: "complementary",
65
- CONTENTINFO: "contentinfo",
66
- DELETION: "deletion",
67
- DIALOG: "dialog",
68
- DOCUMENT: "document",
69
- EMPHASIS: "emphasis",
70
- FIGURE: "figure",
71
- FORM: "form",
72
- GENERIC: "generic",
73
- GROUP: "group",
74
- HEADING: "heading",
75
- IMG: "img",
76
- INSERTION: "insertion",
77
- LINK: "link",
78
- LIST: "list",
79
- LISTBOX: "listbox",
80
- MAIN: "main",
81
- METER: "meter",
82
- NAVIGATION: "navigation",
83
- OPTION: "option",
84
- PARAGRAPH: "paragraph",
85
- PROGRESSBAR: "progressbar",
86
- RADIO: "radio",
87
- ROW: "row",
88
- ROWGROUP: "rowgroup",
89
- SEARCH: "search",
90
- SEARCHBOX: "searchbox",
91
- SEPARATOR: "separator",
92
- SLIDER: "slider",
93
- SPINBUTTON: "spinbutton",
94
- STATUS: "status",
95
- STRONG: "strong",
96
- TABLE: "table",
97
- TERM: "term",
98
- TEXTBOX: "textbox",
99
- TIME: "time"
100
- };
101
-
102
- // src/accessibility/implicit-role/implicit-role.ts
103
- var IMPLICIT_ROLE = {
104
- a: (element2) => element2.attributes.has("href") ? ROLES.LINK : ROLES.GENERIC,
105
- abbr: () => null,
106
- address: () => ROLES.GROUP,
107
- area: (element2) => element2.attributes.has("href") ? ROLES.LINK : ROLES.GENERIC,
108
- article: () => ROLES.ARTICLE,
109
- aside: () => ROLES.COMPLEMENTARY,
110
- audio: () => null,
111
- b: () => ROLES.GENERIC,
112
- base: () => null,
113
- bdi: () => ROLES.GENERIC,
114
- bdo: () => ROLES.GENERIC,
115
- blockquote: () => ROLES.BLOCKQUOTE,
116
- body: () => ROLES.GENERIC,
117
- br: () => null,
118
- button: () => ROLES.BUTTON,
119
- canvas: () => null,
120
- caption: () => ROLES.CAPTION,
121
- cite: () => null,
122
- code: () => ROLES.CODE,
123
- col: () => null,
124
- colgroup: () => null,
125
- data: () => ROLES.GENERIC,
126
- datalist: () => ROLES.LISTBOX,
127
- dd: () => null,
128
- del: () => ROLES.DELETION,
129
- details: () => ROLES.GROUP,
130
- dfn: () => ROLES.TERM,
131
- dialog: () => ROLES.DIALOG,
132
- div: () => ROLES.GENERIC,
133
- dl: () => null,
134
- dt: () => null,
135
- em: () => ROLES.EMPHASIS,
136
- embed: () => null,
137
- fieldset: () => ROLES.GROUP,
138
- figcaption: () => null,
139
- figure: () => ROLES.FIGURE,
140
- footer: (element2) => {
141
- const sectioningElements = ["article", "aside", "main", "nav", "section"];
142
- for (const ancestor of element2.anceters()) {
143
- if (sectioningElements.includes(ancestor.name.toLowerCase())) {
144
- return ROLES.GENERIC;
145
- }
146
- }
147
- return ROLES.CONTENTINFO;
148
- },
149
- form: () => ROLES.FORM,
150
- h1: () => ROLES.HEADING,
151
- h2: () => ROLES.HEADING,
152
- h3: () => ROLES.HEADING,
153
- h4: () => ROLES.HEADING,
154
- h5: () => ROLES.HEADING,
155
- h6: () => ROLES.HEADING,
156
- head: () => null,
157
- header: () => null,
158
- // TODO: banner if not descendant of article/aside/main/nav/section, otherwise generic
159
- hgroup: () => ROLES.GROUP,
160
- hr: () => ROLES.SEPARATOR,
161
- html: () => ROLES.DOCUMENT,
162
- i: () => ROLES.GENERIC,
163
- iframe: () => null,
164
- img: (element2) => {
165
- const alt = element2.attributes.get("alt");
166
- if (alt === "") return null;
167
- return ROLES.IMG;
168
- },
169
- input: (element2) => {
170
- const type = element2.attributes.get("type") || "text";
171
- switch (type) {
172
- case "button":
173
- case "image":
174
- case "reset":
175
- case "submit":
176
- return ROLES.BUTTON;
177
- case "checkbox":
178
- return ROLES.CHECKBOX;
179
- case "color":
180
- case "date":
181
- case "datetime-local":
182
- case "file":
183
- case "hidden":
184
- case "month":
185
- case "password":
186
- case "time":
187
- case "week":
188
- return null;
189
- case "email":
190
- case "tel":
191
- case "text":
192
- case "url":
193
- return ROLES.TEXTBOX;
194
- case "number":
195
- return ROLES.SPINBUTTON;
196
- case "radio":
197
- return ROLES.RADIO;
198
- case "range":
199
- return ROLES.SLIDER;
200
- case "search":
201
- return ROLES.SEARCHBOX;
202
- default:
203
- return ROLES.TEXTBOX;
204
- }
205
- },
206
- ins: () => ROLES.INSERTION,
207
- kbd: () => null,
208
- label: () => null,
209
- legend: () => null,
210
- li: () => null,
211
- // TODO: listitem if child of ol/ul/menu, otherwise generic
212
- link: () => null,
213
- main: () => ROLES.MAIN,
214
- map: () => null,
215
- mark: () => null,
216
- menu: () => ROLES.LIST,
217
- meta: () => null,
218
- meter: () => ROLES.METER,
219
- nav: () => ROLES.NAVIGATION,
220
- noscript: () => null,
221
- object: () => null,
222
- ol: () => ROLES.LIST,
223
- optgroup: () => ROLES.GROUP,
224
- option: () => ROLES.OPTION,
225
- output: () => ROLES.STATUS,
226
- p: () => ROLES.PARAGRAPH,
227
- param: () => null,
228
- picture: () => null,
229
- pre: () => ROLES.GENERIC,
230
- progress: () => ROLES.PROGRESSBAR,
231
- q: () => ROLES.GENERIC,
232
- rp: () => null,
233
- rt: () => null,
234
- ruby: () => null,
235
- s: () => ROLES.DELETION,
236
- samp: () => ROLES.GENERIC,
237
- script: () => null,
238
- search: () => ROLES.SEARCH,
239
- section: () => null,
240
- select: (element2) => element2.attributes.has("multiple") ? ROLES.LISTBOX : ROLES.COMBOBOX,
241
- slot: () => null,
242
- small: () => ROLES.GENERIC,
243
- span: () => ROLES.GENERIC,
244
- strong: () => ROLES.STRONG,
245
- style: () => null,
246
- sub: () => null,
247
- summary: () => ROLES.BUTTON,
248
- sup: () => null,
249
- svg: () => null,
250
- table: () => ROLES.TABLE,
251
- tbody: () => ROLES.ROWGROUP,
252
- td: () => ROLES.CELL,
253
- template: () => null,
254
- textarea: () => ROLES.TEXTBOX,
255
- tfoot: () => ROLES.ROWGROUP,
256
- th: () => null,
257
- thead: () => ROLES.ROWGROUP,
258
- time: () => ROLES.TIME,
259
- title: () => null,
260
- tr: () => ROLES.ROW,
261
- track: () => null,
262
- u: () => null,
263
- ul: () => ROLES.LIST,
264
- var: () => null,
265
- video: () => null,
266
- wbr: () => null
267
- };
268
-
269
- // src/accessibility/accessibility.ts
270
- var Accessibility = class {
271
- constructor(element2) {
272
- this.element = element2;
273
- }
274
- implicitRole() {
275
- var _a, _b, _c;
276
- return (_c = (_b = (_a = IMPLICIT_ROLE)[this.element.name.toLowerCase()]) == null ? void 0 : _b.call(_a, this.element)) != null ? _c : null;
277
- }
278
- };
279
- function accessibility(name, options) {
280
- return new Accessibility(new ElementState(name, options));
281
- }
282
-
283
- // src/element.ts
284
- var Element = class {
285
- constructor(name, options) {
286
- this.name = name;
287
- this.options = options;
288
- }
289
- get accessibility() {
290
- return accessibility(this.name, this.options);
291
- }
292
- };
293
- function element(name, options = DEFAULT_ELEMENT_OPTIONS) {
294
- return new Element(name, options);
295
- }
296
- export {
297
- accessibility,
298
- element
299
- };
1
+ var e={ARTICLE:"article",BLOCKQUOTE:"blockquote",BUTTON:"button",CAPTION:"caption",CELL:"cell",CHECKBOX:"checkbox",CODE:"code",COMBOBOX:"combobox",COMPLEMENTARY:"complementary",CONTENTINFO:"contentinfo",DELETION:"deletion",DIALOG:"dialog",DOCUMENT:"document",EMPHASIS:"emphasis",FIGURE:"figure",FORM:"form",GENERIC:"generic",GROUP:"group",HEADING:"heading",IMG:"img",INSERTION:"insertion",LINK:"link",LIST:"list",LISTBOX:"listbox",MAIN:"main",METER:"meter",NAVIGATION:"navigation",OPTION:"option",PARAGRAPH:"paragraph",PROGRESSBAR:"progressbar",RADIO:"radio",ROW:"row",ROWGROUP:"rowgroup",SEARCH:"search",SEARCHBOX:"searchbox",SEPARATOR:"separator",SLIDER:"slider",SPINBUTTON:"spinbutton",STATUS:"status",STRONG:"strong",TABLE:"table",TERM:"term",TEXTBOX:"textbox",TIME:"time"};var J={get(n){return null}};var F=class{constructor(t=J){this.options=t}get(t){return this.options.get(t)}has(t){return this.options.get(t)!==null}};var W=class n{constructor(t,i){this.options=i;this.name=t.toLowerCase()}get attributes(){return new F(this.options.attributes)}parent(){if(!this.options.ancestors)return null;let i=this.options.ancestors()[Symbol.iterator]().next();return i.done||!i.value?null:new n(i.value.name,i.value)}ancestors(){var t,i;return((i=(t=this.options).ancestors)==null?void 0:i.call(t))||[]}};var rt={a:n=>n.attributes.has("href")?e.LINK:e.GENERIC,abbr:()=>null,address:()=>e.GROUP,area:n=>n.attributes.has("href")?e.LINK:e.GENERIC,article:()=>e.ARTICLE,aside:()=>e.COMPLEMENTARY,audio:()=>null,b:()=>e.GENERIC,base:()=>null,bdi:()=>e.GENERIC,bdo:()=>e.GENERIC,blockquote:()=>e.BLOCKQUOTE,body:()=>e.GENERIC,br:()=>null,button:()=>e.BUTTON,canvas:()=>null,caption:()=>e.CAPTION,cite:()=>null,code:()=>e.CODE,col:()=>null,colgroup:()=>null,data:()=>e.GENERIC,datalist:()=>e.LISTBOX,dd:()=>null,del:()=>e.DELETION,details:()=>e.GROUP,dfn:()=>e.TERM,dialog:()=>e.DIALOG,div:()=>e.GENERIC,dl:()=>null,dt:()=>null,em:()=>e.EMPHASIS,embed:()=>null,fieldset:()=>e.GROUP,figcaption:()=>null,figure:()=>e.FIGURE,footer:n=>{let t=["article","aside","main","nav","section"];for(let i of n.ancestors())if(t.includes(i.name.toLowerCase()))return e.GENERIC;return e.CONTENTINFO},form:()=>e.FORM,h1:()=>e.HEADING,h2:()=>e.HEADING,h3:()=>e.HEADING,h4:()=>e.HEADING,h5:()=>e.HEADING,h6:()=>e.HEADING,head:()=>null,header:()=>null,hgroup:()=>e.GROUP,hr:()=>e.SEPARATOR,html:()=>e.DOCUMENT,i:()=>e.GENERIC,iframe:()=>null,img:n=>n.attributes.get("alt")===""?null:e.IMG,input:n=>{switch(n.attributes.get("type")||"text"){case"button":case"image":case"reset":case"submit":return e.BUTTON;case"checkbox":return e.CHECKBOX;case"color":case"date":case"datetime-local":case"file":case"hidden":case"month":case"password":case"time":case"week":return null;case"email":case"tel":case"text":case"url":return e.TEXTBOX;case"number":return e.SPINBUTTON;case"radio":return e.RADIO;case"range":return e.SLIDER;case"search":return e.SEARCHBOX;default:return e.TEXTBOX}},ins:()=>e.INSERTION,kbd:()=>null,label:()=>null,legend:()=>null,li:()=>null,link:()=>null,main:()=>e.MAIN,map:()=>null,mark:()=>null,menu:()=>e.LIST,meta:()=>null,meter:()=>e.METER,nav:()=>e.NAVIGATION,noscript:()=>null,object:()=>null,ol:()=>e.LIST,optgroup:()=>e.GROUP,option:()=>e.OPTION,output:()=>e.STATUS,p:()=>e.PARAGRAPH,param:()=>null,picture:()=>null,pre:()=>e.GENERIC,progress:()=>e.PROGRESSBAR,q:()=>e.GENERIC,rp:()=>null,rt:()=>null,ruby:()=>null,s:()=>e.DELETION,samp:()=>e.GENERIC,script:()=>null,search:()=>e.SEARCH,section:()=>null,select:n=>n.attributes.has("multiple")?e.LISTBOX:e.COMBOBOX,slot:()=>null,small:()=>e.GENERIC,span:()=>e.GENERIC,strong:()=>e.STRONG,style:()=>null,sub:()=>null,summary:()=>e.BUTTON,sup:()=>null,svg:()=>null,table:()=>e.TABLE,tbody:()=>e.ROWGROUP,td:()=>e.CELL,template:()=>null,textarea:()=>e.TEXTBOX,tfoot:()=>e.ROWGROUP,th:()=>null,thead:()=>e.ROWGROUP,time:()=>e.TIME,title:()=>null,tr:()=>e.ROW,track:()=>null,u:()=>null,ul:()=>e.LIST,var:()=>null,video:()=>null,wbr:()=>null};var pt={valid:!0};function l(){return pt}function o(n){return{valid:!1,reason:n}}var a=class{constructor(t){this.attributeKey=t}validateValue(t){return t?this.attributeKey===(t==null?void 0:t.toLowerCase())?l():o(`Boolean attribute value must be empty or match the attribute name "${this.attributeKey}", got: "${t}"`):l()}};a.type="BooleanAttribute";var it={VALUE_MUST_BE_STRING:"Value must be a string",VALUE_CANNOT_BE_EMPTY:"Value cannot be empty"};var r=class{constructor(t){this.options=t}validateValue(t){let i=t.toLowerCase();return this.options.keywords.includes(i)?l():o(`Value "${t}" is not a valid keyword. Expected one of: ${this.options.keywords.join(", ")}`)}};r.type="EnumeratedAttribute";var B=class B{validateValue(t){return B.PATTERN.test(t)?l():o(`Invalid signed integer: "${t}"`)}};B.type="SignedInteger",B.PATTERN=/^-?\d+$/;var x=B;var X=/[\u0009\u000A\u000C\u000D\u0020]/;var b=class{constructor(t){this.options=t}parse(t){return t.split(X)}validateValue(t){let i=this.parse(t).filter(s=>s!=="");if(this.options.unique){let s=new Set(i);if(i.length!==s.size)return o("Tokens must be unique")}if(this.options.allowed){for(let s of i)if(!this.options.allowed.some(d=>s.toLowerCase()===d.toLowerCase()))return o(`Invalid token: "${s}". Allowed tokens: ${this.options.allowed.join(", ")}`)}if(typeof this.options.validateToken=="function"){for(let s of i)if(!this.options.validateToken(s))return o(`Invalid token: "${s}"`)}return l()}};b.type="SpaceSeparatedTokens";var u=class{validateValue(t){return l()}};u.type="Text";var m=class{validateValue(t){return l()}};m.type="ValidURL";var D=class D{constructor(t){this.options=t}validateValue(t){var s,y;if(!D.PATTERN.test(t))return o(`Invalid non-negative integer: "${t}"`);let i=parseInt(t,10);return((s=this.options)==null?void 0:s.min)!==void 0&&i<this.options.min?o(`Value must be at least ${this.options.min}: "${t}"`):((y=this.options)==null?void 0:y.max)!==void 0&&i>this.options.max?o(`Value must be at most ${this.options.max}: "${t}"`):l()}};D.type="NonNegativeInteger",D.PATTERN=/^\d+$/;var c=D;var A=class{constructor(){}validateValue(t){return l()}};A.type="ID";var U=class U{validateValue(t){return U.PATTERN.test(t)?l():o(`Invalid floating-point number: "${t}"`)}};U.type="FloatingPointNumber",U.PATTERN=/^-?(?:\d+(?:\.\d+)?|\.\d+)(?:[eE][+-]?\d+)?$/;var f=U;var N=class{validateValue(t){return l()}};N.type="CommaSeparatedTokens";var L=class{validateValue(t){return l()}};L.type="CSSColor";var j=class j{validateValue(t){if(t==="")return l();if(!j.PATTERN.test(t))return o(`Invalid BCP 47 language tag: "${t}"`);let i=t.split("-");for(let s=0;s<i.length;s++){let y=i[s];if(y.length===0)return o(`Invalid BCP 47 language tag: empty subtag in "${t}"`);if(s===0){if(y==="x")continue;if(!/^[a-zA-Z]{2,8}$/.test(y))return o(`Invalid language subtag in "${t}": "${y}"`)}}return l()}};j.type="BCP47",j.PATTERN=/^[a-zA-Z]{2,3}(?:-[a-zA-Z]{3}){0,3}(?:-[a-zA-Z]{4})?(?:-(?:[a-zA-Z]{2}|[0-9]{3}))?(?:-(?:[a-zA-Z0-9]{5,8}|[0-9][a-zA-Z0-9]{3}))*(?:-[0-9a-wyzA-WYZ](?:-[a-zA-Z0-9]{2,8})+)*(?:-x(?:-[a-zA-Z0-9]{1,8})+)?$|^x(?:-[a-zA-Z0-9]{1,8})+$|^[a-zA-Z]{4,8}$/;var w=j;var z=class z{constructor(){}validateValue(t){return z.PATTERN.test(t)?l():o(`Invalid MIME type: "${t}"`)}};z.type="MIMEType",z.PATTERN=/^[a-zA-Z0-9!#$%&'*+\-.^_`{|}~]+\/[a-zA-Z0-9!#$%&'*+\-.^_`{|}~]+(?:\s*;\s*[a-zA-Z0-9!#$%&'*+\-.^_`{|}~]+=(?:[a-zA-Z0-9!#$%&'*+\-.^_`{|}~]+|"[^"]*"))*$/;var E=z;var G=class G{constructor(){}validateValue(t){if(!G.DATE_PATTERN.test(t)&&!G.DATETIME_PATTERN.test(t))return o(`Invalid date or datetime string: "${t}"`);let i=t.match(/^(\d{4,})-(\d{2})-(\d{2})/);if(i){let y=parseInt(i[1],10),d=parseInt(i[2],10),g=parseInt(i[3],10);if(y===0)return o(`Year must be greater than 0: "${t}"`);if(d<1||d>12)return o(`Month must be between 1 and 12: "${t}"`);if(g<1||g>31)return o(`Day must be between 1 and 31: "${t}"`)}let s=t.match(/[T ](\d{2}):(\d{2})/);if(s){let y=parseInt(s[1],10),d=parseInt(s[2],10);if(y>23)return o(`Hour must be between 0 and 23: "${t}"`);if(d>59)return o(`Minute must be between 0 and 59: "${t}"`);let g=t.match(/[T ]\d{2}:\d{2}:(\d{2})/);if(g&&parseInt(g[1],10)>59)return o(`Second must be between 0 and 59: "${t}"`)}return l()}};G.type="DateString",G.DATE_PATTERN=/^\d{4,}-\d{2}-\d{2}$/,G.DATETIME_PATTERN=/^\d{4,}-\d{2}-\d{2}[T ]\d{2}:\d{2}(?::\d{2}(?:\.\d{1,3})?)?(?:Z|[+-]\d{2}:\d{2})?$/;var V=G;var C=class{constructor(){}validateValue(t){try{return new RegExp(t),l()}catch(i){return o(`Invalid regular expression: "${t}" - ${i instanceof Error?i.message:String(i)}`)}}};C.type="RegularExpression";var _=class{validateValue(t){return t.startsWith("#")?t.length===1?o(`Hash-name reference must have a name after "#": "${t}"`):l():o(`Hash-name reference must start with "#": "${t}"`)}};_.type="HashNameReference";var q=class q{constructor(){}validateValue(t){return t.length===0?o("Navigable target name must have at least one character"):t.startsWith("_")?o(`Navigable target name cannot start with "_" (reserved for keywords like _blank, _self): "${t}"`):q.INVALID_CHARS_PATTERN.test(t)?o(`Navigable target name cannot contain tab, newline, or "<" character: "${t}"`):l()}};q.type="NavigableTargetName",q.INVALID_CHARS_PATTERN=/[\t\n<]/;var S=q;var T=class{validateValue(t){if(t.trim()==="")return o("Srcset cannot be empty");let i=t.split(",");for(let s=0;s<i.length;s++){let y=i[s].trim();if(y==="")return o(`Image candidate string ${s+1} is empty`);let d=y.split(/\s+/),g=d[0];if(g.startsWith(",")||g.endsWith(","))return o(`URL cannot start or end with comma: "${g}"`);if(g==="")return o(`URL in candidate string ${s+1} is empty`);if(d.length>1){let h=d[d.length-1];if(h.endsWith("w")){let O=h.slice(0,-1),I=parseInt(O,10);if(!/^\d+$/.test(O)||I<=0)return o(`Invalid width descriptor: "${h}" (must be positive integer followed by 'w')`)}else if(h.endsWith("x")){let O=h.slice(0,-1),I=parseFloat(O);if(!/^-?(?:\d+(?:\.\d+)?|\.\d+)(?:[eE][+-]?\d+)?$/.test(O)||I<=0)return o(`Invalid pixel density descriptor: "${h}" (must be positive number followed by 'x')`)}else return o(`Invalid descriptor: "${h}" (must end with 'w' or 'x')`);if(d.length>2&&d.slice(1,-1).some(I=>I!==""))return o(`Invalid image candidate string: "${y}" (extra tokens found)`)}}return l()}};T.type="SrcsetAttribute";var R=class{validateValue(t){return l()}};R.type="MediaQueryList";var v=class{validateValue(t){return l()}};v.type="SourceSizeList";var P=class{constructor(){this.floatingPointNumberValidator=new f}validateValue(t){if(t.length===0)return o(it.VALUE_CANNOT_BE_EMPTY);let i=t.split(",");for(let s=0;s<i.length;s++){let y=i[s];if(y.length===0)return o(`Empty value at position ${s+1}`);if(!this.floatingPointNumberValidator.validateValue(y).valid)return o(`Invalid floating-point number at position ${s+1}: "${y}"`)}return l()}};P.type="FloatingPointNumberList";var M=class{constructor(t){this.options=t}validateValue(t){let i;for(let s of this.options.items){let d=Z("",s).validateValue(t);if(d.valid)return l();i=d.reason}return o(i!=null?i:"Value does not match any of the allowed formats")}};M.type="#or";var $=class ${validateValue(t){var et;if(t==="")return l();let i=t.toLowerCase().trim();if(i==="on"||i==="off")return l();let s=i.split(X).filter(Boolean);if(s.length===0)return o("Autocomplete value cannot be empty");let y=0,d=!1,g=!1,h=!1,O=!1,I="";if((et=s[y])!=null&&et.startsWith("section-")&&(d=!0,y++),(s[y]==="billing"||s[y]==="shipping")&&(g=!0,y++),y<s.length){let Q=s[y];if($.AUTOFILL_FIELD_NAMES.has(Q))h=!0,I=Q,y++;else return o(`Invalid autofill field name: "${Q}". Must be one of the standard autofill field names.`)}else return o("Autocomplete value must include an autofill field name");if(y<s.length&&s[y]==="webauthn"){if(!$.WEBAUTHN_COMPATIBLE_FIELDS.has(I))return o(`"webauthn" token is only valid with username or current-password fields, not "${I}"`);O=!0,y++}return y<s.length?o(`Invalid extra token in autocomplete value: "${s[y]}"`):l()}};$.type="AutocompleteAttribute",$.AUTOFILL_FIELD_NAMES=new Set(["name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","username","new-password","current-password","one-time-code","organization-title","organization","street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo","tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"]),$.WEBAUTHN_COMPATIBLE_FIELDS=new Set(["username","current-password"]);var k=$;function Z(n,t){switch(t.type){case b.type:return new b(t.options);case r.type:return new r(t.options);case a.type:return new a(n);case x.type:return new x;case u.type:return new u;case m.type:return new m;case c.type:return new c(t.options);case A.type:return new A;case f.type:return new f;case N.type:return new N;case L.type:return new L;case w.type:return new w;case E.type:return new E;case V.type:return new V;case C.type:return new C;case _.type:return new _;case S.type:return new S;case T.type:return new T;case R.type:return new R;case v.type:return new v;case P.type:return new P;case M.type:return new M({items:t.items});case k.type:return new k}}var H=class{constructor(t,i){this.key=t;this.definition=i}validateValue(t){return Z(this.key,this.definition).validateValue(t)}};var tt=new Map([["accesskey",{type:b.type,options:{unique:!0,validateToken(n){return Array.from(n).length===1}}}],["autocapitalize",{type:r.type,options:{keywords:["off","none","on","sentences","words","characters"]}}],["autocorrect",{type:r.type,options:{keywords:["on","off"]}}],["autofocus",{type:a.type}],["contenteditable",{type:r.type,options:{keywords:["true","false","plaintext-only"]}}],["dir",{type:r.type,options:{keywords:["ltr","rtl","auto"]}}],["draggable",{type:r.type,options:{keywords:["true","false"]}}],["enterkeyhint",{type:r.type,options:{keywords:["enter","done","go","next","previous","search","send"]}}],["headingoffset",{type:c.type,options:{min:0,max:8}}],["headingreset",{type:a.type}],["hidden",{type:r.type,options:{keywords:["","until-found","hidden"]}}],["inert",{type:a.type}],["inputmode",{type:r.type,options:{keywords:["none","text","tel","url","email","numeric","decimal","search"]}}],["is",{type:u.type}],["itemid",{type:m.type}],["itemprop",{type:b.type,options:{unique:!0}}],["itemref",{type:b.type,options:{unique:!0}}],["itemscope",{type:a.type}],["itemtype",{type:b.type,options:{unique:!0,validateToken(n){try{return new URL(n),!0}catch(t){return!1}}}}],["lang",{type:w.type}],["nonce",{type:u.type}],["popover",{type:"#or",items:[{type:a.type},{type:r.type,options:{keywords:["","auto","manual","hint"]}}]}],["spellcheck",{type:r.type,options:{keywords:["","true","false"]}}],["style",{type:u.type}],["tabindex",{type:x.type}],["title",{type:u.type}],["translate",{type:r.type,options:{keywords:["","yes","no"]}}],["writingsuggestions",{type:r.type,options:{keywords:["","true","false"]}}]]);var p=[],ot={html:{globalAttributes:!0,attributes:p},head:{globalAttributes:!0,attributes:p},title:{globalAttributes:!0,attributes:p},base:{globalAttributes:!0,attributes:[["href",{type:m.type}],["target",{type:"#or",items:[{type:S.type},{type:r.type,options:{keywords:["_blank","_self","_parent","_top"]}}]}]]},link:{globalAttributes:!0,attributes:[["href",{type:m.type}],["crossorigin",{type:r.type,options:{keywords:["","anonymous","use-credentials"]}}],["rel",{type:b.type,options:{unique:!0}}],["media",{type:R.type}],["integrity",{type:u.type}],["hreflang",{type:w.type}],["type",{type:E.type}],["referrerpolicy",{type:r.type,options:{keywords:["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"]}}],["sizes",{type:b.type,options:{unique:!0,validateToken(n){if(n.toLowerCase()==="any")return!0;let t=/^([1-9]\d*|0)[xX]([1-9]\d*|0)$/,i=n.match(t);if(!i)return!1;let[,s,y]=i;return!(s.length>1&&s.startsWith("0")||y.length>1&&y.startsWith("0"))}}}],["imagesrcset",{type:T.type}],["imagesizes",{type:v.type}],["as",{type:r.type,options:{keywords:["fetch","font","image","script","style","track","json","style","audioworklet","paintworklet","script","serviceworker","sharedworker","worker"]}}],["blocking",{type:b.type,options:{unique:!0,allowed:["render"]}}],["color",{type:L.type}],["disabled",{type:a.type}],["fetchpriority",{type:r.type,options:{keywords:["high","low","auto"]}}]]},meta:{globalAttributes:!0,attributes:[["name",{type:u.type}],["http-equiv",{type:r.type,options:{keywords:["content-language","content-type","default-style","refresh","set-cookie","x-ua-compatible","content-security-policy"]}}],["content",{type:u.type}],["charset",{type:r.type,options:{keywords:["utf-8"]}}],["media",{type:R.type}]]},style:{globalAttributes:!0,attributes:[["media",{type:R.type}],["blocking",{type:b.type,options:{unique:!0,allowed:["render"]}}]]},body:{globalAttributes:!0,attributes:p},article:{globalAttributes:!0,attributes:p},section:{globalAttributes:!0,attributes:p},nav:{globalAttributes:!0,attributes:p},aside:{globalAttributes:!0,attributes:p},hgroup:{globalAttributes:!0,attributes:p},header:{globalAttributes:!0,attributes:p},footer:{globalAttributes:!0,attributes:p},address:{globalAttributes:!0,attributes:p},p:{globalAttributes:!0,attributes:p},hr:{globalAttributes:!0,attributes:p},pre:{globalAttributes:!0,attributes:p},blockquote:{globalAttributes:!0,attributes:[["cite",{type:m.type}]]},ol:{globalAttributes:!0,attributes:[["reversed",{type:a.type}],["start",{type:x.type}],["type",{type:r.type,options:{keywords:["1","a","A","i","I"]}}]]},ul:{globalAttributes:!0,attributes:p},menu:{globalAttributes:!0,attributes:p},li:{globalAttributes:!0,attributes:[["value",{type:x.type}]]},dl:{globalAttributes:!0,attributes:p},dt:{globalAttributes:!0,attributes:p},dd:{globalAttributes:!0,attributes:p},figure:{globalAttributes:!0,attributes:p},figcaption:{globalAttributes:!0,attributes:p},main:{globalAttributes:!0,attributes:p},search:{globalAttributes:!0,attributes:p},div:{globalAttributes:!0,attributes:p},a:{globalAttributes:!0,attributes:[["href",{type:m.type}],["target",{type:"#or",items:[{type:S.type},{type:r.type,options:{keywords:["_blank","_self","_parent","_top"]}}]}],["download",{type:u.type}],["ping",{type:b.type,options:{unique:!1,validateToken(n){if(n.length===0)return!1;try{let t=new URL(n);return t.protocol==="http:"||t.protocol==="https:"}catch(t){return!1}}}}],["rel",{type:b.type,options:{unique:!0,allowed:["alternate","author","bookmark","external","help","license","next","nofollow","noopener","noreferrer","opener","prev","privacy-policy","search","tag","terms-of-service"]}}],["hreflang",{type:w.type}],["type",{type:E.type}],["referrerpolicy",{type:r.type,options:{keywords:["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"]}}]]},em:{globalAttributes:!0,attributes:p},strong:{globalAttributes:!0,attributes:p},small:{globalAttributes:!0,attributes:p},s:{globalAttributes:!0,attributes:p},cite:{globalAttributes:!0,attributes:p},q:{globalAttributes:!0,attributes:[["cite",{type:m.type}]]},dfn:{globalAttributes:!0,attributes:p},abbr:{globalAttributes:!0,attributes:p},ruby:{globalAttributes:!0,attributes:p},rt:{globalAttributes:!0,attributes:p},rp:{globalAttributes:!0,attributes:p},data:{globalAttributes:!0,attributes:[["value",{type:u.type}]]},time:{globalAttributes:!0,attributes:[["datetime",{type:V.type}]]},code:{globalAttributes:!0,attributes:p},var:{globalAttributes:!0,attributes:p},samp:{globalAttributes:!0,attributes:p},kbd:{globalAttributes:!0,attributes:p},i:{globalAttributes:!0,attributes:p},b:{globalAttributes:!0,attributes:p},u:{globalAttributes:!0,attributes:p},mark:{globalAttributes:!0,attributes:p},bdi:{globalAttributes:!0,attributes:p},bdo:{globalAttributes:!0,attributes:p},span:{globalAttributes:!0,attributes:p},br:{globalAttributes:!0,attributes:p},wbr:{globalAttributes:!0,attributes:p},ins:{globalAttributes:!0,attributes:[["cite",{type:m.type}],["datetime",{type:V.type}]]},del:{globalAttributes:!0,attributes:[["cite",{type:m.type}],["datetime",{type:V.type}]]},picture:{globalAttributes:!0,attributes:p},source:{globalAttributes:!0,attributes:[["type",{type:E.type}],["media",{type:R.type}],["src",{type:m.type}],["srcset",{type:T.type}],["sizes",{type:v.type}],["width",{type:c.type,options:{}}],["height",{type:c.type,options:{}}]]},img:{globalAttributes:!0,attributes:[["alt",{type:u.type}],["src",{type:m.type}],["srcset",{type:T.type}],["sizes",{type:v.type}],["crossorigin",{type:r.type,options:{keywords:["","anonymous","use-credentials"]}}],["usemap",{type:_.type}],["ismap",{type:a.type}],["width",{type:c.type,options:{}}],["height",{type:c.type,options:{}}],["referrerpolicy",{type:r.type,options:{keywords:["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"]}}],["decoding",{type:r.type,options:{keywords:["sync","async","auto"]}}],["loading",{type:r.type,options:{keywords:["eager","lazy"]}}],["fetchpriority",{type:r.type,options:{keywords:["high","low","auto"]}}]]},iframe:{globalAttributes:!0,attributes:[["src",{type:m.type}],["srcdoc",{type:u.type}],["name",{type:"#or",items:[{type:S.type},{type:r.type,options:{keywords:["_blank","_self","_parent","_top"]}}]}],["sandbox",{type:b.type,options:{unique:!0,allowed:["allow-downloads","allow-forms","allow-modals","allow-orientation-lock","allow-pointer-lock","allow-popups","allow-popups-to-escape-sandbox","allow-presentation","allow-same-origin","allow-scripts","allow-top-navigation","allow-top-navigation-by-user-activation","allow-top-navigation-to-custom-protocols"]}}],["allow",{type:u.type}],["allowfullscreen",{type:a.type}],["width",{type:c.type,options:{}}],["height",{type:c.type,options:{}}],["referrerpolicy",{type:r.type,options:{keywords:["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"]}}],["loading",{type:r.type,options:{keywords:["eager","lazy"]}}]]},embed:{globalAttributes:!0,attributes:[["src",{type:m.type}],["type",{type:E.type}],["width",{type:c.type,options:{}}],["height",{type:c.type,options:{}}]]},object:{globalAttributes:!0,attributes:[["data",{type:m.type}],["type",{type:E.type}],["name",{type:"#or",items:[{type:S.type},{type:r.type,options:{keywords:["_blank","_self","_parent","_top"]}}]}],["form",{type:A.type}],["width",{type:c.type,options:{}}],["height",{type:c.type,options:{}}]]},video:{globalAttributes:!0,attributes:[["src",{type:m.type}],["crossorigin",{type:r.type,options:{keywords:["","anonymous","use-credentials"]}}],["poster",{type:m.type}],["preload",{type:r.type,options:{keywords:["","none","metadata","auto"]}}],["autoplay",{type:a.type}],["playsinline",{type:a.type}],["loop",{type:a.type}],["muted",{type:a.type}],["controls",{type:a.type}],["width",{type:c.type,options:{}}],["height",{type:c.type,options:{}}]]},audio:{globalAttributes:!0,attributes:[["src",{type:m.type}],["crossorigin",{type:r.type,options:{keywords:["","anonymous","use-credentials"]}}],["preload",{type:r.type,options:{keywords:["","none","metadata","auto"]}}],["autoplay",{type:a.type}],["loop",{type:a.type}],["muted",{type:a.type}],["controls",{type:a.type}]]},track:{globalAttributes:!0,attributes:[["kind",{type:r.type,options:{keywords:["subtitles","captions","descriptions","chapters","metadata"]}}],["src",{type:m.type}],["srclang",{type:w.type}],["label",{type:u.type}],["default",{type:a.type}]]},map:{globalAttributes:!0,attributes:[["name",{type:u.type}]]},area:{globalAttributes:!0,attributes:[["alt",{type:u.type}],["coords",{type:P.type}],["shape",{type:r.type,options:{keywords:["circle","default","poly","rect"]}}],["href",{type:m.type}],["target",{type:"#or",items:[{type:S.type},{type:r.type,options:{keywords:["_blank","_self","_parent","_top"]}}]}],["download",{type:u.type}],["ping",{type:b.type,options:{unique:!1,validateToken(n){if(n.length===0)return!1;try{let t=new URL(n);return t.protocol==="http:"||t.protocol==="https:"}catch(t){return!1}}}}],["rel",{type:b.type,options:{unique:!0,allowed:["alternate","author","bookmark","external","help","license","next","nofollow","noopener","noreferrer","opener","prev","privacy-policy","search","tag","terms-of-service"]}}],["referrerpolicy",{type:r.type,options:{keywords:["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"]}}]]},table:{globalAttributes:!0,attributes:p},caption:{globalAttributes:!0,attributes:p},colgroup:{globalAttributes:!0,attributes:[["span",{type:c.type,options:{min:1}}]]},col:{globalAttributes:!0,attributes:[["span",{type:c.type,options:{min:1}}]]},tbody:{globalAttributes:!0,attributes:p},thead:{globalAttributes:!0,attributes:p},tfoot:{globalAttributes:!0,attributes:p},tr:{globalAttributes:!0,attributes:p},td:{globalAttributes:!0,attributes:[["colspan",{type:c.type,options:{min:1}}],["rowspan",{type:c.type,options:{}}],["headers",{type:b.type,options:{unique:!0}}]]},th:{globalAttributes:!0,attributes:[["colspan",{type:c.type,options:{min:1}}],["rowspan",{type:c.type,options:{}}],["headers",{type:b.type,options:{unique:!0}}],["scope",{type:r.type,options:{keywords:["row","col","rowgroup","colgroup"]}}],["abbr",{type:u.type}]]},form:{globalAttributes:!0,attributes:[["accept-charset",{type:b.type,options:{unique:!0}}],["action",{type:m.type}],["autocomplete",{type:r.type,options:{keywords:["on","off"]}}],["enctype",{type:r.type,options:{keywords:["application/x-www-form-urlencoded","multipart/form-data","text/plain"]}}],["method",{type:r.type,options:{keywords:["get","post","dialog"]}}],["name",{type:u.type}],["novalidate",{type:a.type}],["target",{type:"#or",items:[{type:S.type},{type:r.type,options:{keywords:["_blank","_self","_parent","_top"]}}]}],["rel",{type:b.type,options:{unique:!0,allowed:["external","help","license","next","nofollow","noopener","noreferrer","opener","prev","search"]}}]]},label:{globalAttributes:!0,attributes:[["for",{type:A.type}]]},input:{globalAttributes:!0,attributes:[["accept",{type:N.type}],["alt",{type:u.type}],["autocomplete",{type:k.type}],["checked",{type:a.type}],["dirname",{type:u.type}],["disabled",{type:a.type}],["form",{type:A.type}],["formaction",{type:m.type}],["formenctype",{type:r.type,options:{keywords:["application/x-www-form-urlencoded","multipart/form-data","text/plain"]}}],["formmethod",{type:r.type,options:{keywords:["get","post","dialog"]}}],["formnovalidate",{type:a.type}],["formtarget",{type:"#or",items:[{type:S.type},{type:r.type,options:{keywords:["_blank","_self","_parent","_top"]}}]}],["height",{type:c.type,options:{}}],["list",{type:A.type}],["max",{type:u.type}],["maxlength",{type:c.type,options:{}}],["min",{type:u.type}],["minlength",{type:c.type,options:{}}],["multiple",{type:a.type}],["name",{type:u.type}],["pattern",{type:C.type}],["placeholder",{type:u.type}],["popovertarget",{type:u.type}],["popovertargetaction",{type:r.type,options:{keywords:["hide","show","toggle"]}}],["readonly",{type:a.type}],["required",{type:a.type}],["size",{type:c.type,options:{min:1}}],["src",{type:m.type}],["step",{type:"#or",items:[{type:f.type},{type:r.type,options:{keywords:["any"]}}]}],["type",{type:r.type,options:{keywords:["hidden","text","search","tel","url","email","password","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}}],["value",{type:u.type}],["width",{type:c.type,options:{}}]]},button:{globalAttributes:!0,attributes:[["disabled",{type:a.type}],["form",{type:A.type}],["formaction",{type:m.type}],["formenctype",{type:r.type,options:{keywords:["application/x-www-form-urlencoded","multipart/form-data","text/plain"]}}],["formmethod",{type:r.type,options:{keywords:["get","post","dialog"]}}],["formnovalidate",{type:a.type}],["formtarget",{type:"#or",items:[{type:S.type},{type:r.type,options:{keywords:["_blank","_self","_parent","_top"]}}]}],["name",{type:u.type}],["popovertarget",{type:u.type}],["popovertargetaction",{type:r.type,options:{keywords:["hide","show","toggle"]}}],["type",{type:r.type,options:{keywords:["submit","reset","button"]}}],["value",{type:u.type}]]},select:{globalAttributes:!0,attributes:[["autocomplete",{type:k.type}],["disabled",{type:a.type}],["form",{type:A.type}],["multiple",{type:a.type}],["name",{type:u.type}],["required",{type:a.type}],["size",{type:c.type,options:{min:1}}]]},datalist:{globalAttributes:!0,attributes:p},optgroup:{globalAttributes:!0,attributes:[["disabled",{type:a.type}],["label",{type:u.type}]]},option:{globalAttributes:!0,attributes:[["disabled",{type:a.type}],["label",{type:u.type}],["selected",{type:a.type}],["value",{type:u.type}]]},textarea:{globalAttributes:!0,attributes:[["autocomplete",{type:k.type}],["cols",{type:c.type,options:{min:1}}],["dirname",{type:u.type}],["disabled",{type:a.type}],["form",{type:A.type}],["maxlength",{type:c.type,options:{}}],["minlength",{type:c.type,options:{}}],["name",{type:u.type}],["placeholder",{type:u.type}],["readonly",{type:a.type}],["required",{type:a.type}],["rows",{type:c.type,options:{min:1}}],["wrap",{type:r.type,options:{keywords:["soft","hard"]}}]]},output:{globalAttributes:!0,attributes:[["for",{type:b.type,options:{unique:!0}}],["form",{type:A.type}],["name",{type:u.type}]]},progress:{globalAttributes:!0,attributes:[["value",{type:f.type}],["max",{type:f.type}]]},meter:{globalAttributes:!0,attributes:[["value",{type:f.type}],["min",{type:f.type}],["max",{type:f.type}],["low",{type:f.type}],["high",{type:f.type}],["optimum",{type:f.type}]]},fieldset:{globalAttributes:!0,attributes:[["disabled",{type:a.type}],["form",{type:A.type}],["name",{type:u.type}]]},legend:{globalAttributes:!0,attributes:p},selectedcontent:{globalAttributes:!0,attributes:p},details:{globalAttributes:!0,attributes:[["open",{type:a.type}],["name",{type:u.type}]]},summary:{globalAttributes:!0,attributes:p},dialog:{globalAttributes:!0,attributes:[["open",{type:a.type}]]},script:{globalAttributes:!0,attributes:[["src",{type:m.type}],["type",{type:M.type,items:[{type:r.type,options:{keywords:["module","importmap","speculationrules"]}},{type:E.type}]}],["nomodule",{type:a.type}],["async",{type:a.type}],["defer",{type:a.type}],["crossorigin",{type:r.type,options:{keywords:["","anonymous","use-credentials"]}}],["integrity",{type:u.type}],["referrerpolicy",{type:r.type,options:{keywords:["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"]}}],["blocking",{type:b.type,options:{unique:!0}}],["fetchpriority",{type:r.type,options:{keywords:["high","low","auto"]}}]]},noscript:{globalAttributes:!0,attributes:p},template:{globalAttributes:!0,attributes:[["shadowrootmode",{type:r.type,options:{keywords:["open","closed"]}}],["shadowrootdelegatesfocus",{type:a.type}],["shadowrootclonable",{type:a.type}],["shadowrootserializable",{type:a.type}]]},slot:{globalAttributes:!0,attributes:[["name",{type:u.type}]]},canvas:{globalAttributes:!0,attributes:[["width",{type:c.type,options:{}}],["height",{type:c.type,options:{}}]]}};var K=class{constructor(t){this.state=t;this.get=t=>{var y,d,g;let i=this.getSpecDefinition();if(!i)return null;let s=null;return i.globalAttributes&&(s=(y=tt.get(t))!=null?y:null,s)?new H(t,s):(s=(g=(d=i==null?void 0:i.attributes.find(([h])=>t.toLowerCase()===h))==null?void 0:d[1])!=null?g:null,s?new H(t,s):null)};this.has=t=>{let i=this.getSpecDefinition();return i!=null&&i.globalAttributes&&tt.has(t)?!0:!!(i==null?void 0:i.attributes.find(([y])=>t.toLowerCase()===y))}}getSpecDefinition(){let t=ot[this.state.name];return t!=null?t:null}};var Y=class{constructor(t,i){this.implicitRole=()=>{let t=rt[this.state.name];return t?t(this.state):null};this.state=new W(t,i)}get attributes(){return new K(this.state)}};function st(n,t={}){return new Y(n,t)}export{st as element};
300
2
  //# sourceMappingURL=index.js.map