aizryu.js 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.cache/replit/__replit_disk_meta.json +1 -0
- package/.cache/replit/modules.stamp +0 -0
- package/.cache/replit/nix/env.json +1 -0
- package/.cache/typescript/5.0/node_modules/.package-lock.json +156 -0
- package/.cache/typescript/5.0/node_modules/@types/body-parser/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/body-parser/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/body-parser/index.d.ts +95 -0
- package/.cache/typescript/5.0/node_modules/@types/body-parser/package.json +58 -0
- package/.cache/typescript/5.0/node_modules/@types/connect/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/connect/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/connect/index.d.ts +91 -0
- package/.cache/typescript/5.0/node_modules/@types/connect/package.json +32 -0
- package/.cache/typescript/5.0/node_modules/@types/express/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/express/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/express/index.d.ts +128 -0
- package/.cache/typescript/5.0/node_modules/@types/express/package.json +45 -0
- package/.cache/typescript/5.0/node_modules/@types/express-serve-static-core/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/express-serve-static-core/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/express-serve-static-core/index.d.ts +1261 -0
- package/.cache/typescript/5.0/node_modules/@types/express-serve-static-core/package.json +55 -0
- package/.cache/typescript/5.0/node_modules/@types/http-errors/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/http-errors/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/http-errors/index.d.ts +77 -0
- package/.cache/typescript/5.0/node_modules/@types/http-errors/package.json +30 -0
- package/.cache/typescript/5.0/node_modules/@types/jsdom/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/jsdom/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/jsdom/base.d.ts +456 -0
- package/.cache/typescript/5.0/node_modules/@types/jsdom/index.d.ts +18 -0
- package/.cache/typescript/5.0/node_modules/@types/jsdom/package.json +45 -0
- package/.cache/typescript/5.0/node_modules/@types/mime/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/mime/Mime.d.ts +10 -0
- package/.cache/typescript/5.0/node_modules/@types/mime/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/mime/index.d.ts +31 -0
- package/.cache/typescript/5.0/node_modules/@types/mime/lite.d.ts +7 -0
- package/.cache/typescript/5.0/node_modules/@types/mime/package.json +30 -0
- package/.cache/typescript/5.0/node_modules/@types/node/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/node/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/.cache/typescript/5.0/node_modules/@types/node/assert.d.ts +996 -0
- package/.cache/typescript/5.0/node_modules/@types/node/async_hooks.d.ts +539 -0
- package/.cache/typescript/5.0/node_modules/@types/node/buffer.d.ts +2362 -0
- package/.cache/typescript/5.0/node_modules/@types/node/child_process.d.ts +1540 -0
- package/.cache/typescript/5.0/node_modules/@types/node/cluster.d.ts +432 -0
- package/.cache/typescript/5.0/node_modules/@types/node/console.d.ts +415 -0
- package/.cache/typescript/5.0/node_modules/@types/node/constants.d.ts +19 -0
- package/.cache/typescript/5.0/node_modules/@types/node/crypto.d.ts +4456 -0
- package/.cache/typescript/5.0/node_modules/@types/node/dgram.d.ts +586 -0
- package/.cache/typescript/5.0/node_modules/@types/node/diagnostics_channel.d.ts +191 -0
- package/.cache/typescript/5.0/node_modules/@types/node/dns/promises.d.ts +425 -0
- package/.cache/typescript/5.0/node_modules/@types/node/dns.d.ts +809 -0
- package/.cache/typescript/5.0/node_modules/@types/node/dom-events.d.ts +122 -0
- package/.cache/typescript/5.0/node_modules/@types/node/domain.d.ts +170 -0
- package/.cache/typescript/5.0/node_modules/@types/node/events.d.ts +879 -0
- package/.cache/typescript/5.0/node_modules/@types/node/fs/promises.d.ts +1239 -0
- package/.cache/typescript/5.0/node_modules/@types/node/fs.d.ts +4291 -0
- package/.cache/typescript/5.0/node_modules/@types/node/globals.d.ts +381 -0
- package/.cache/typescript/5.0/node_modules/@types/node/globals.global.d.ts +1 -0
- package/.cache/typescript/5.0/node_modules/@types/node/http.d.ts +1888 -0
- package/.cache/typescript/5.0/node_modules/@types/node/http2.d.ts +2382 -0
- package/.cache/typescript/5.0/node_modules/@types/node/https.d.ts +550 -0
- package/.cache/typescript/5.0/node_modules/@types/node/index.d.ts +88 -0
- package/.cache/typescript/5.0/node_modules/@types/node/inspector.d.ts +2747 -0
- package/.cache/typescript/5.0/node_modules/@types/node/module.d.ts +301 -0
- package/.cache/typescript/5.0/node_modules/@types/node/net.d.ts +949 -0
- package/.cache/typescript/5.0/node_modules/@types/node/os.d.ts +478 -0
- package/.cache/typescript/5.0/node_modules/@types/node/package.json +230 -0
- package/.cache/typescript/5.0/node_modules/@types/node/path.d.ts +191 -0
- package/.cache/typescript/5.0/node_modules/@types/node/perf_hooks.d.ts +639 -0
- package/.cache/typescript/5.0/node_modules/@types/node/process.d.ts +1532 -0
- package/.cache/typescript/5.0/node_modules/@types/node/punycode.d.ts +117 -0
- package/.cache/typescript/5.0/node_modules/@types/node/querystring.d.ts +141 -0
- package/.cache/typescript/5.0/node_modules/@types/node/readline/promises.d.ts +150 -0
- package/.cache/typescript/5.0/node_modules/@types/node/readline.d.ts +539 -0
- package/.cache/typescript/5.0/node_modules/@types/node/repl.d.ts +430 -0
- package/.cache/typescript/5.0/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/.cache/typescript/5.0/node_modules/@types/node/stream/promises.d.ts +83 -0
- package/.cache/typescript/5.0/node_modules/@types/node/stream/web.d.ts +350 -0
- package/.cache/typescript/5.0/node_modules/@types/node/stream.d.ts +1701 -0
- package/.cache/typescript/5.0/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/.cache/typescript/5.0/node_modules/@types/node/test.d.ts +1382 -0
- package/.cache/typescript/5.0/node_modules/@types/node/timers/promises.d.ts +93 -0
- package/.cache/typescript/5.0/node_modules/@types/node/timers.d.ts +240 -0
- package/.cache/typescript/5.0/node_modules/@types/node/tls.d.ts +1210 -0
- package/.cache/typescript/5.0/node_modules/@types/node/trace_events.d.ts +182 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/assert.d.ts +996 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/async_hooks.d.ts +539 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/buffer.d.ts +2362 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/child_process.d.ts +1540 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/cluster.d.ts +432 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/console.d.ts +415 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/constants.d.ts +19 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/crypto.d.ts +4455 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/dgram.d.ts +586 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/dns/promises.d.ts +425 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/dns.d.ts +809 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/dom-events.d.ts +122 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/events.d.ts +879 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/fs/promises.d.ts +1239 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/fs.d.ts +4291 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/globals.d.ts +381 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/http.d.ts +1888 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/http2.d.ts +2382 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/https.d.ts +550 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/index.d.ts +88 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/inspector.d.ts +2747 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/module.d.ts +301 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/net.d.ts +949 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/os.d.ts +478 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/path.d.ts +191 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/perf_hooks.d.ts +639 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/process.d.ts +1532 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/querystring.d.ts +141 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/readline/promises.d.ts +150 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/readline.d.ts +539 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/repl.d.ts +430 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/stream/promises.d.ts +83 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/stream/web.d.ts +350 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/stream.d.ts +1701 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/test.d.ts +1382 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/timers.d.ts +240 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/tls.d.ts +1210 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/tty.d.ts +208 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/url.d.ts +927 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/util.d.ts +2186 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/v8.d.ts +635 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/vm.d.ts +903 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/wasi.d.ts +158 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/worker_threads.d.ts +691 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
- package/.cache/typescript/5.0/node_modules/@types/node/tty.d.ts +208 -0
- package/.cache/typescript/5.0/node_modules/@types/node/url.d.ts +927 -0
- package/.cache/typescript/5.0/node_modules/@types/node/util.d.ts +2186 -0
- package/.cache/typescript/5.0/node_modules/@types/node/v8.d.ts +635 -0
- package/.cache/typescript/5.0/node_modules/@types/node/vm.d.ts +903 -0
- package/.cache/typescript/5.0/node_modules/@types/node/wasi.d.ts +158 -0
- package/.cache/typescript/5.0/node_modules/@types/node/worker_threads.d.ts +691 -0
- package/.cache/typescript/5.0/node_modules/@types/node/zlib.d.ts +517 -0
- package/.cache/typescript/5.0/node_modules/@types/qs/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/qs/README.md +75 -0
- package/.cache/typescript/5.0/node_modules/@types/qs/index.d.ts +56 -0
- package/.cache/typescript/5.0/node_modules/@types/qs/package.json +65 -0
- package/.cache/typescript/5.0/node_modules/@types/range-parser/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/range-parser/README.md +53 -0
- package/.cache/typescript/5.0/node_modules/@types/range-parser/index.d.ts +34 -0
- package/.cache/typescript/5.0/node_modules/@types/range-parser/package.json +25 -0
- package/.cache/typescript/5.0/node_modules/@types/send/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/send/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/send/index.d.ts +225 -0
- package/.cache/typescript/5.0/node_modules/@types/send/package.json +33 -0
- package/.cache/typescript/5.0/node_modules/@types/serve-static/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/serve-static/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/serve-static/index.d.ts +107 -0
- package/.cache/typescript/5.0/node_modules/@types/serve-static/package.json +39 -0
- package/.cache/typescript/5.0/node_modules/@types/tough-cookie/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/tough-cookie/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/tough-cookie/index.d.ts +321 -0
- package/.cache/typescript/5.0/node_modules/@types/tough-cookie/package.json +35 -0
- package/.cache/typescript/5.0/node_modules/entities/LICENSE +11 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode.d.ts +211 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode.js +536 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode_codepoint.d.ts +19 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode_codepoint.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode_codepoint.js +76 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode_codepoint.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/encode.d.ts +22 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/encode.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/encode.js +77 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/encode.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/escape.d.ts +43 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/escape.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/escape.js +122 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/escape.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode.d.ts +211 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode.js +496 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode_codepoint.d.ts +19 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode_codepoint.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode_codepoint.js +71 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode_codepoint.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/encode.d.ts +22 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/encode.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/encode.js +69 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/encode.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/escape.d.ts +43 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/escape.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/escape.js +116 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/escape.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +3 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-html.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-html.js +7 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-html.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +3 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js +7 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/encode-html.d.ts +8 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/encode-html.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/encode-html.js +10 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/encode-html.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/index.d.ts +96 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/index.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/index.js +99 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/index.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/package.json +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-html.d.ts +3 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-html.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-html.js +9 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-html.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-xml.d.ts +3 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-xml.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-xml.js +9 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-xml.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/encode-html.d.ts +8 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/encode-html.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/encode-html.js +12 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/encode-html.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/index.d.ts +96 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/index.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/index.js +126 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/index.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/package.json +90 -0
- package/.cache/typescript/5.0/node_modules/entities/readme.md +122 -0
- package/.cache/typescript/5.0/node_modules/parse5/LICENSE +19 -0
- package/.cache/typescript/5.0/node_modules/parse5/README.md +38 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/doctype.d.ts +5 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/doctype.js +120 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/error-codes.d.ts +68 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/error-codes.js +67 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/foreign-content.d.ts +10 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/foreign-content.js +239 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/html.d.ts +288 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/html.js +529 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/token.d.ts +85 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/token.js +25 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/unicode.d.ts +49 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/unicode.js +77 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/index.d.ts +60 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/index.js +57 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/package.json +1 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/parser/formatting-element-list.d.ts +37 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/parser/formatting-element-list.js +115 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/parser/index.d.ts +157 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/parser/index.js +3163 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/parser/open-element-stack.d.ts +53 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/parser/open-element-stack.js +316 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/serializer/index.d.ts +61 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/serializer/index.js +173 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tokenizer/index.d.ts +248 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tokenizer/index.js +2908 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tokenizer/preprocessor.d.ts +37 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tokenizer/preprocessor.js +199 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tree-adapters/default.d.ts +85 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tree-adapters/default.js +177 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tree-adapters/interface.d.ts +250 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tree-adapters/interface.js +3 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/doctype.d.ts +5 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/doctype.js +115 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/error-codes.d.ts +68 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/error-codes.js +64 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/foreign-content.d.ts +10 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/foreign-content.js +230 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/html.d.ts +288 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/html.js +523 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/token.d.ts +85 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/token.js +21 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/unicode.d.ts +49 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/unicode.js +69 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/index.d.ts +60 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/index.js +45 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/parser/formatting-element-list.d.ts +37 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/parser/formatting-element-list.js +111 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/parser/index.d.ts +157 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/parser/index.js +3168 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/parser/open-element-stack.d.ts +53 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/parser/open-element-stack.js +312 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/serializer/index.d.ts +61 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/serializer/index.js +168 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tokenizer/index.d.ts +248 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tokenizer/index.js +2904 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tokenizer/preprocessor.d.ts +37 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tokenizer/preprocessor.js +195 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tree-adapters/default.d.ts +85 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tree-adapters/default.js +174 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tree-adapters/interface.d.ts +250 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tree-adapters/interface.js +2 -0
- package/.cache/typescript/5.0/node_modules/parse5/package.json +50 -0
- package/.cache/typescript/5.0/node_modules/types-registry/README.md +2 -0
- package/.cache/typescript/5.0/node_modules/types-registry/index.json +1 -0
- package/.cache/typescript/5.0/node_modules/types-registry/package.json +20 -0
- package/.cache/typescript/5.0/node_modules/undici-types/README.md +6 -0
- package/.cache/typescript/5.0/node_modules/undici-types/agent.d.ts +31 -0
- package/.cache/typescript/5.0/node_modules/undici-types/api.d.ts +43 -0
- package/.cache/typescript/5.0/node_modules/undici-types/balanced-pool.d.ts +18 -0
- package/.cache/typescript/5.0/node_modules/undici-types/cache.d.ts +36 -0
- package/.cache/typescript/5.0/node_modules/undici-types/client.d.ts +97 -0
- package/.cache/typescript/5.0/node_modules/undici-types/connector.d.ts +34 -0
- package/.cache/typescript/5.0/node_modules/undici-types/content-type.d.ts +21 -0
- package/.cache/typescript/5.0/node_modules/undici-types/cookies.d.ts +28 -0
- package/.cache/typescript/5.0/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
- package/.cache/typescript/5.0/node_modules/undici-types/dispatcher.d.ts +241 -0
- package/.cache/typescript/5.0/node_modules/undici-types/errors.d.ts +128 -0
- package/.cache/typescript/5.0/node_modules/undici-types/fetch.d.ts +209 -0
- package/.cache/typescript/5.0/node_modules/undici-types/file.d.ts +39 -0
- package/.cache/typescript/5.0/node_modules/undici-types/filereader.d.ts +54 -0
- package/.cache/typescript/5.0/node_modules/undici-types/formdata.d.ts +108 -0
- package/.cache/typescript/5.0/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/.cache/typescript/5.0/node_modules/undici-types/global-origin.d.ts +7 -0
- package/.cache/typescript/5.0/node_modules/undici-types/handlers.d.ts +9 -0
- package/.cache/typescript/5.0/node_modules/undici-types/header.d.ts +4 -0
- package/.cache/typescript/5.0/node_modules/undici-types/index.d.ts +63 -0
- package/.cache/typescript/5.0/node_modules/undici-types/interceptors.d.ts +5 -0
- package/.cache/typescript/5.0/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/.cache/typescript/5.0/node_modules/undici-types/mock-client.d.ts +25 -0
- package/.cache/typescript/5.0/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/.cache/typescript/5.0/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/.cache/typescript/5.0/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/.cache/typescript/5.0/node_modules/undici-types/package.json +55 -0
- package/.cache/typescript/5.0/node_modules/undici-types/patch.d.ts +71 -0
- package/.cache/typescript/5.0/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/.cache/typescript/5.0/node_modules/undici-types/pool.d.ts +28 -0
- package/.cache/typescript/5.0/node_modules/undici-types/proxy-agent.d.ts +30 -0
- package/.cache/typescript/5.0/node_modules/undici-types/readable.d.ts +61 -0
- package/.cache/typescript/5.0/node_modules/undici-types/webidl.d.ts +220 -0
- package/.cache/typescript/5.0/node_modules/undici-types/websocket.d.ts +131 -0
- package/.cache/typescript/5.0/package-lock.json +166 -0
- package/.cache/typescript/5.0/package.json +1 -0
- package/.replit +14 -0
- package/.upm/store.json +1 -0
- package/README.md +24 -0
- package/index.js +1 -0
- package/package.json +21 -0
@@ -0,0 +1,250 @@
|
|
1
|
+
import type { DOCUMENT_MODE, NS } from '../common/html.js';
|
2
|
+
import type { Attribute, ElementLocation } from '../common/token.js';
|
3
|
+
export interface TreeAdapterTypeMap<Node = unknown, ParentNode = unknown, ChildNode = unknown, Document = unknown, DocumentFragment = unknown, Element = unknown, CommentNode = unknown, TextNode = unknown, Template = unknown, DocumentType = unknown> {
|
4
|
+
node: Node;
|
5
|
+
parentNode: ParentNode;
|
6
|
+
childNode: ChildNode;
|
7
|
+
document: Document;
|
8
|
+
documentFragment: DocumentFragment;
|
9
|
+
element: Element;
|
10
|
+
commentNode: CommentNode;
|
11
|
+
textNode: TextNode;
|
12
|
+
template: Template;
|
13
|
+
documentType: DocumentType;
|
14
|
+
}
|
15
|
+
/**
|
16
|
+
* Tree adapter is a set of utility functions that provides minimal required abstraction layer beetween parser and a specific AST format.
|
17
|
+
* Note that `TreeAdapter` is not designed to be a general purpose AST manipulation library. You can build such library
|
18
|
+
* on top of existing `TreeAdapter` or use one of the existing libraries from npm.
|
19
|
+
*
|
20
|
+
* @see The default implementation {@link parse5.treeAdapters.default}
|
21
|
+
*/
|
22
|
+
export interface TreeAdapter<T extends TreeAdapterTypeMap = TreeAdapterTypeMap> {
|
23
|
+
/**
|
24
|
+
* Copies attributes to the given element. Only attributes that are not yet present in the element are copied.
|
25
|
+
*
|
26
|
+
* @param recipient - Element to copy attributes into.
|
27
|
+
* @param attrs - Attributes to copy.
|
28
|
+
*/
|
29
|
+
adoptAttributes(recipient: T['element'], attrs: Attribute[]): void;
|
30
|
+
/**
|
31
|
+
* Appends a child node to the given parent node.
|
32
|
+
*
|
33
|
+
* @param parentNode - Parent node.
|
34
|
+
* @param newNode - Child node.
|
35
|
+
*/
|
36
|
+
appendChild(parentNode: T['parentNode'], newNode: T['childNode']): void;
|
37
|
+
/**
|
38
|
+
* Creates a comment node.
|
39
|
+
*
|
40
|
+
* @param data - Comment text.
|
41
|
+
*/
|
42
|
+
createCommentNode(data: string): T['commentNode'];
|
43
|
+
/**
|
44
|
+
* Creates a document node.
|
45
|
+
*/
|
46
|
+
createDocument(): T['document'];
|
47
|
+
/**
|
48
|
+
* Creates a document fragment node.
|
49
|
+
*/
|
50
|
+
createDocumentFragment(): T['documentFragment'];
|
51
|
+
/**
|
52
|
+
* Creates an element node.
|
53
|
+
*
|
54
|
+
* @param tagName - Tag name of the element.
|
55
|
+
* @param namespaceURI - Namespace of the element.
|
56
|
+
* @param attrs - Attribute name-value pair array. Foreign attributes may contain `namespace` and `prefix` fields as well.
|
57
|
+
*/
|
58
|
+
createElement(tagName: string, namespaceURI: NS, attrs: Attribute[]): T['element'];
|
59
|
+
/**
|
60
|
+
* Removes a node from its parent.
|
61
|
+
*
|
62
|
+
* @param node - Node to remove.
|
63
|
+
*/
|
64
|
+
detachNode(node: T['childNode']): void;
|
65
|
+
/**
|
66
|
+
* Returns the given element's attributes in an array, in the form of name-value pairs.
|
67
|
+
* Foreign attributes may contain `namespace` and `prefix` fields as well.
|
68
|
+
*
|
69
|
+
* @param element - Element.
|
70
|
+
*/
|
71
|
+
getAttrList(element: T['element']): Attribute[];
|
72
|
+
/**
|
73
|
+
* Returns the given node's children in an array.
|
74
|
+
*
|
75
|
+
* @param node - Node.
|
76
|
+
*/
|
77
|
+
getChildNodes(node: T['parentNode']): T['childNode'][];
|
78
|
+
/**
|
79
|
+
* Returns the given comment node's content.
|
80
|
+
*
|
81
|
+
* @param commentNode - Comment node.
|
82
|
+
*/
|
83
|
+
getCommentNodeContent(commentNode: T['commentNode']): string;
|
84
|
+
/**
|
85
|
+
* Returns [document mode](https://dom.spec.whatwg.org/#concept-document-limited-quirks).
|
86
|
+
*
|
87
|
+
* @param document - Document node.
|
88
|
+
*/
|
89
|
+
getDocumentMode(document: T['document']): DOCUMENT_MODE;
|
90
|
+
/**
|
91
|
+
* Returns the given document type node's name.
|
92
|
+
*
|
93
|
+
* @param doctypeNode - Document type node.
|
94
|
+
*/
|
95
|
+
getDocumentTypeNodeName(doctypeNode: T['documentType']): string;
|
96
|
+
/**
|
97
|
+
* Returns the given document type node's public identifier.
|
98
|
+
*
|
99
|
+
* @param doctypeNode - Document type node.
|
100
|
+
*/
|
101
|
+
getDocumentTypeNodePublicId(doctypeNode: T['documentType']): string;
|
102
|
+
/**
|
103
|
+
* Returns the given document type node's system identifier.
|
104
|
+
*
|
105
|
+
* @param doctypeNode - Document type node.
|
106
|
+
*/
|
107
|
+
getDocumentTypeNodeSystemId(doctypeNode: T['documentType']): string;
|
108
|
+
/**
|
109
|
+
* Returns the first child of the given node.
|
110
|
+
*
|
111
|
+
* @param node - Node.
|
112
|
+
*/
|
113
|
+
getFirstChild(node: T['parentNode']): T['childNode'] | null;
|
114
|
+
/**
|
115
|
+
* Returns the given element's namespace.
|
116
|
+
*
|
117
|
+
* @param element - Element.
|
118
|
+
*/
|
119
|
+
getNamespaceURI(element: T['element']): NS;
|
120
|
+
/**
|
121
|
+
* Returns the given node's source code location information.
|
122
|
+
*
|
123
|
+
* @param node - Node.
|
124
|
+
*/
|
125
|
+
getNodeSourceCodeLocation(node: T['node']): ElementLocation | undefined | null;
|
126
|
+
/**
|
127
|
+
* Returns the given node's parent.
|
128
|
+
*
|
129
|
+
* @param node - Node.
|
130
|
+
*/
|
131
|
+
getParentNode(node: T['node']): T['parentNode'] | null;
|
132
|
+
/**
|
133
|
+
* Returns the given element's tag name.
|
134
|
+
*
|
135
|
+
* @param element - Element.
|
136
|
+
*/
|
137
|
+
getTagName(element: T['element']): string;
|
138
|
+
/**
|
139
|
+
* Returns the given text node's content.
|
140
|
+
*
|
141
|
+
* @param textNode - Text node.
|
142
|
+
*/
|
143
|
+
getTextNodeContent(textNode: T['textNode']): string;
|
144
|
+
/**
|
145
|
+
* Returns the `<template>` element content element.
|
146
|
+
*
|
147
|
+
* @param templateElement - `<template>` element.
|
148
|
+
*/
|
149
|
+
getTemplateContent(templateElement: T['template']): T['documentFragment'];
|
150
|
+
/**
|
151
|
+
* Inserts a child node to the given parent node before the given reference node.
|
152
|
+
*
|
153
|
+
* @param parentNode - Parent node.
|
154
|
+
* @param newNode - Child node.
|
155
|
+
* @param referenceNode - Reference node.
|
156
|
+
*/
|
157
|
+
insertBefore(parentNode: T['parentNode'], newNode: T['childNode'], referenceNode: T['childNode']): void;
|
158
|
+
/**
|
159
|
+
* Inserts text into a node. If the last child of the node is a text node, the provided text will be appended to the
|
160
|
+
* text node content. Otherwise, inserts a new text node with the given text.
|
161
|
+
*
|
162
|
+
* @param parentNode - Node to insert text into.
|
163
|
+
* @param text - Text to insert.
|
164
|
+
*/
|
165
|
+
insertText(parentNode: T['parentNode'], text: string): void;
|
166
|
+
/**
|
167
|
+
* Inserts text into a sibling node that goes before the reference node. If this sibling node is the text node,
|
168
|
+
* the provided text will be appended to the text node content. Otherwise, inserts a new sibling text node with
|
169
|
+
* the given text before the reference node.
|
170
|
+
*
|
171
|
+
* @param parentNode - Node to insert text into.
|
172
|
+
* @param text - Text to insert.
|
173
|
+
* @param referenceNode - Node to insert text before.
|
174
|
+
*/
|
175
|
+
insertTextBefore(parentNode: T['parentNode'], text: string, referenceNode: T['childNode']): void;
|
176
|
+
/**
|
177
|
+
* Determines if the given node is a comment node.
|
178
|
+
*
|
179
|
+
* @param node - Node.
|
180
|
+
*/
|
181
|
+
isCommentNode(node: T['node']): node is T['commentNode'];
|
182
|
+
/**
|
183
|
+
* Determines if the given node is a document type node.
|
184
|
+
*
|
185
|
+
* @param node - Node.
|
186
|
+
*/
|
187
|
+
isDocumentTypeNode(node: T['node']): node is T['documentType'];
|
188
|
+
/**
|
189
|
+
* Determines if the given node is an element.
|
190
|
+
*
|
191
|
+
* @param node - Node.
|
192
|
+
*/
|
193
|
+
isElementNode(node: T['node']): node is T['element'];
|
194
|
+
/**
|
195
|
+
* Determines if the given node is a text node.
|
196
|
+
*
|
197
|
+
* @param node - Node.
|
198
|
+
*/
|
199
|
+
isTextNode(node: T['node']): node is T['textNode'];
|
200
|
+
/**
|
201
|
+
* Sets the [document mode](https://dom.spec.whatwg.org/#concept-document-limited-quirks).
|
202
|
+
*
|
203
|
+
* @param document - Document node.
|
204
|
+
* @param mode - Document mode.
|
205
|
+
*/
|
206
|
+
setDocumentMode(document: T['document'], mode: DOCUMENT_MODE): void;
|
207
|
+
/**
|
208
|
+
* Sets the document type. If the `document` already contains a document type node, the `name`, `publicId` and `systemId`
|
209
|
+
* properties of this node will be updated with the provided values. Otherwise, creates a new document type node
|
210
|
+
* with the given properties and inserts it into the `document`.
|
211
|
+
*
|
212
|
+
* @param document - Document node.
|
213
|
+
* @param name - Document type name.
|
214
|
+
* @param publicId - Document type public identifier.
|
215
|
+
* @param systemId - Document type system identifier.
|
216
|
+
*/
|
217
|
+
setDocumentType(document: T['document'], name: string, publicId: string, systemId: string): void;
|
218
|
+
/**
|
219
|
+
* Attaches source code location information to the node.
|
220
|
+
*
|
221
|
+
* @param node - Node.
|
222
|
+
*/
|
223
|
+
setNodeSourceCodeLocation(node: T['node'], location: ElementLocation | null): void;
|
224
|
+
/**
|
225
|
+
* Updates the source code location information of the node.
|
226
|
+
*
|
227
|
+
* @param node - Node.
|
228
|
+
*/
|
229
|
+
updateNodeSourceCodeLocation(node: T['node'], location: Partial<ElementLocation>): void;
|
230
|
+
/**
|
231
|
+
* Sets the `<template>` element content element.
|
232
|
+
*
|
233
|
+
* @param templateElement - `<template>` element.
|
234
|
+
* @param contentElement - Content element.
|
235
|
+
*/
|
236
|
+
setTemplateContent(templateElement: T['template'], contentElement: T['documentFragment']): void;
|
237
|
+
/**
|
238
|
+
* Optional callback for elements being pushed to the stack of open elements.
|
239
|
+
*
|
240
|
+
* @param element The element being pushed to the stack of open elements.
|
241
|
+
*/
|
242
|
+
onItemPush?: (item: T['element']) => void;
|
243
|
+
/**
|
244
|
+
* Optional callback for elements being popped from the stack of open elements.
|
245
|
+
*
|
246
|
+
* @param item The element being popped.
|
247
|
+
*/
|
248
|
+
onItemPop?: (item: T['element'], newTop: T['parentNode']) => void;
|
249
|
+
}
|
250
|
+
//# sourceMappingURL=interface.d.ts.map
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { DOCUMENT_MODE } from './html.js';
|
2
|
+
import type { DoctypeToken } from './token.js';
|
3
|
+
export declare function isConforming(token: DoctypeToken): boolean;
|
4
|
+
export declare function getDocumentMode(token: DoctypeToken): DOCUMENT_MODE;
|
5
|
+
//# sourceMappingURL=doctype.d.ts.map
|
@@ -0,0 +1,115 @@
|
|
1
|
+
import { DOCUMENT_MODE } from './html.js';
|
2
|
+
//Const
|
3
|
+
const VALID_DOCTYPE_NAME = 'html';
|
4
|
+
const VALID_SYSTEM_ID = 'about:legacy-compat';
|
5
|
+
const QUIRKS_MODE_SYSTEM_ID = 'http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd';
|
6
|
+
const QUIRKS_MODE_PUBLIC_ID_PREFIXES = [
|
7
|
+
'+//silmaril//dtd html pro v0r11 19970101//',
|
8
|
+
'-//as//dtd html 3.0 aswedit + extensions//',
|
9
|
+
'-//advasoft ltd//dtd html 3.0 aswedit + extensions//',
|
10
|
+
'-//ietf//dtd html 2.0 level 1//',
|
11
|
+
'-//ietf//dtd html 2.0 level 2//',
|
12
|
+
'-//ietf//dtd html 2.0 strict level 1//',
|
13
|
+
'-//ietf//dtd html 2.0 strict level 2//',
|
14
|
+
'-//ietf//dtd html 2.0 strict//',
|
15
|
+
'-//ietf//dtd html 2.0//',
|
16
|
+
'-//ietf//dtd html 2.1e//',
|
17
|
+
'-//ietf//dtd html 3.0//',
|
18
|
+
'-//ietf//dtd html 3.2 final//',
|
19
|
+
'-//ietf//dtd html 3.2//',
|
20
|
+
'-//ietf//dtd html 3//',
|
21
|
+
'-//ietf//dtd html level 0//',
|
22
|
+
'-//ietf//dtd html level 1//',
|
23
|
+
'-//ietf//dtd html level 2//',
|
24
|
+
'-//ietf//dtd html level 3//',
|
25
|
+
'-//ietf//dtd html strict level 0//',
|
26
|
+
'-//ietf//dtd html strict level 1//',
|
27
|
+
'-//ietf//dtd html strict level 2//',
|
28
|
+
'-//ietf//dtd html strict level 3//',
|
29
|
+
'-//ietf//dtd html strict//',
|
30
|
+
'-//ietf//dtd html//',
|
31
|
+
'-//metrius//dtd metrius presentational//',
|
32
|
+
'-//microsoft//dtd internet explorer 2.0 html strict//',
|
33
|
+
'-//microsoft//dtd internet explorer 2.0 html//',
|
34
|
+
'-//microsoft//dtd internet explorer 2.0 tables//',
|
35
|
+
'-//microsoft//dtd internet explorer 3.0 html strict//',
|
36
|
+
'-//microsoft//dtd internet explorer 3.0 html//',
|
37
|
+
'-//microsoft//dtd internet explorer 3.0 tables//',
|
38
|
+
'-//netscape comm. corp.//dtd html//',
|
39
|
+
'-//netscape comm. corp.//dtd strict html//',
|
40
|
+
"-//o'reilly and associates//dtd html 2.0//",
|
41
|
+
"-//o'reilly and associates//dtd html extended 1.0//",
|
42
|
+
"-//o'reilly and associates//dtd html extended relaxed 1.0//",
|
43
|
+
'-//sq//dtd html 2.0 hotmetal + extensions//',
|
44
|
+
'-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//',
|
45
|
+
'-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//',
|
46
|
+
'-//spyglass//dtd html 2.0 extended//',
|
47
|
+
'-//sun microsystems corp.//dtd hotjava html//',
|
48
|
+
'-//sun microsystems corp.//dtd hotjava strict html//',
|
49
|
+
'-//w3c//dtd html 3 1995-03-24//',
|
50
|
+
'-//w3c//dtd html 3.2 draft//',
|
51
|
+
'-//w3c//dtd html 3.2 final//',
|
52
|
+
'-//w3c//dtd html 3.2//',
|
53
|
+
'-//w3c//dtd html 3.2s draft//',
|
54
|
+
'-//w3c//dtd html 4.0 frameset//',
|
55
|
+
'-//w3c//dtd html 4.0 transitional//',
|
56
|
+
'-//w3c//dtd html experimental 19960712//',
|
57
|
+
'-//w3c//dtd html experimental 970421//',
|
58
|
+
'-//w3c//dtd w3 html//',
|
59
|
+
'-//w3o//dtd w3 html 3.0//',
|
60
|
+
'-//webtechs//dtd mozilla html 2.0//',
|
61
|
+
'-//webtechs//dtd mozilla html//',
|
62
|
+
];
|
63
|
+
const QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES = [
|
64
|
+
...QUIRKS_MODE_PUBLIC_ID_PREFIXES,
|
65
|
+
'-//w3c//dtd html 4.01 frameset//',
|
66
|
+
'-//w3c//dtd html 4.01 transitional//',
|
67
|
+
];
|
68
|
+
const QUIRKS_MODE_PUBLIC_IDS = new Set([
|
69
|
+
'-//w3o//dtd w3 html strict 3.0//en//',
|
70
|
+
'-/w3c/dtd html 4.0 transitional/en',
|
71
|
+
'html',
|
72
|
+
]);
|
73
|
+
const LIMITED_QUIRKS_PUBLIC_ID_PREFIXES = ['-//w3c//dtd xhtml 1.0 frameset//', '-//w3c//dtd xhtml 1.0 transitional//'];
|
74
|
+
const LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES = [
|
75
|
+
...LIMITED_QUIRKS_PUBLIC_ID_PREFIXES,
|
76
|
+
'-//w3c//dtd html 4.01 frameset//',
|
77
|
+
'-//w3c//dtd html 4.01 transitional//',
|
78
|
+
];
|
79
|
+
//Utils
|
80
|
+
function hasPrefix(publicId, prefixes) {
|
81
|
+
return prefixes.some((prefix) => publicId.startsWith(prefix));
|
82
|
+
}
|
83
|
+
//API
|
84
|
+
export function isConforming(token) {
|
85
|
+
return (token.name === VALID_DOCTYPE_NAME &&
|
86
|
+
token.publicId === null &&
|
87
|
+
(token.systemId === null || token.systemId === VALID_SYSTEM_ID));
|
88
|
+
}
|
89
|
+
export function getDocumentMode(token) {
|
90
|
+
if (token.name !== VALID_DOCTYPE_NAME) {
|
91
|
+
return DOCUMENT_MODE.QUIRKS;
|
92
|
+
}
|
93
|
+
const { systemId } = token;
|
94
|
+
if (systemId && systemId.toLowerCase() === QUIRKS_MODE_SYSTEM_ID) {
|
95
|
+
return DOCUMENT_MODE.QUIRKS;
|
96
|
+
}
|
97
|
+
let { publicId } = token;
|
98
|
+
if (publicId !== null) {
|
99
|
+
publicId = publicId.toLowerCase();
|
100
|
+
if (QUIRKS_MODE_PUBLIC_IDS.has(publicId)) {
|
101
|
+
return DOCUMENT_MODE.QUIRKS;
|
102
|
+
}
|
103
|
+
let prefixes = systemId === null ? QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES : QUIRKS_MODE_PUBLIC_ID_PREFIXES;
|
104
|
+
if (hasPrefix(publicId, prefixes)) {
|
105
|
+
return DOCUMENT_MODE.QUIRKS;
|
106
|
+
}
|
107
|
+
prefixes =
|
108
|
+
systemId === null ? LIMITED_QUIRKS_PUBLIC_ID_PREFIXES : LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES;
|
109
|
+
if (hasPrefix(publicId, prefixes)) {
|
110
|
+
return DOCUMENT_MODE.LIMITED_QUIRKS;
|
111
|
+
}
|
112
|
+
}
|
113
|
+
return DOCUMENT_MODE.NO_QUIRKS;
|
114
|
+
}
|
115
|
+
//# sourceMappingURL=doctype.js.map
|
@@ -0,0 +1,68 @@
|
|
1
|
+
import type { Location } from './token.js';
|
2
|
+
export interface ParserError extends Location {
|
3
|
+
code: ERR;
|
4
|
+
}
|
5
|
+
export type ParserErrorHandler = (error: ParserError) => void;
|
6
|
+
export declare enum ERR {
|
7
|
+
controlCharacterInInputStream = "control-character-in-input-stream",
|
8
|
+
noncharacterInInputStream = "noncharacter-in-input-stream",
|
9
|
+
surrogateInInputStream = "surrogate-in-input-stream",
|
10
|
+
nonVoidHtmlElementStartTagWithTrailingSolidus = "non-void-html-element-start-tag-with-trailing-solidus",
|
11
|
+
endTagWithAttributes = "end-tag-with-attributes",
|
12
|
+
endTagWithTrailingSolidus = "end-tag-with-trailing-solidus",
|
13
|
+
unexpectedSolidusInTag = "unexpected-solidus-in-tag",
|
14
|
+
unexpectedNullCharacter = "unexpected-null-character",
|
15
|
+
unexpectedQuestionMarkInsteadOfTagName = "unexpected-question-mark-instead-of-tag-name",
|
16
|
+
invalidFirstCharacterOfTagName = "invalid-first-character-of-tag-name",
|
17
|
+
unexpectedEqualsSignBeforeAttributeName = "unexpected-equals-sign-before-attribute-name",
|
18
|
+
missingEndTagName = "missing-end-tag-name",
|
19
|
+
unexpectedCharacterInAttributeName = "unexpected-character-in-attribute-name",
|
20
|
+
unknownNamedCharacterReference = "unknown-named-character-reference",
|
21
|
+
missingSemicolonAfterCharacterReference = "missing-semicolon-after-character-reference",
|
22
|
+
unexpectedCharacterAfterDoctypeSystemIdentifier = "unexpected-character-after-doctype-system-identifier",
|
23
|
+
unexpectedCharacterInUnquotedAttributeValue = "unexpected-character-in-unquoted-attribute-value",
|
24
|
+
eofBeforeTagName = "eof-before-tag-name",
|
25
|
+
eofInTag = "eof-in-tag",
|
26
|
+
missingAttributeValue = "missing-attribute-value",
|
27
|
+
missingWhitespaceBetweenAttributes = "missing-whitespace-between-attributes",
|
28
|
+
missingWhitespaceAfterDoctypePublicKeyword = "missing-whitespace-after-doctype-public-keyword",
|
29
|
+
missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers = "missing-whitespace-between-doctype-public-and-system-identifiers",
|
30
|
+
missingWhitespaceAfterDoctypeSystemKeyword = "missing-whitespace-after-doctype-system-keyword",
|
31
|
+
missingQuoteBeforeDoctypePublicIdentifier = "missing-quote-before-doctype-public-identifier",
|
32
|
+
missingQuoteBeforeDoctypeSystemIdentifier = "missing-quote-before-doctype-system-identifier",
|
33
|
+
missingDoctypePublicIdentifier = "missing-doctype-public-identifier",
|
34
|
+
missingDoctypeSystemIdentifier = "missing-doctype-system-identifier",
|
35
|
+
abruptDoctypePublicIdentifier = "abrupt-doctype-public-identifier",
|
36
|
+
abruptDoctypeSystemIdentifier = "abrupt-doctype-system-identifier",
|
37
|
+
cdataInHtmlContent = "cdata-in-html-content",
|
38
|
+
incorrectlyOpenedComment = "incorrectly-opened-comment",
|
39
|
+
eofInScriptHtmlCommentLikeText = "eof-in-script-html-comment-like-text",
|
40
|
+
eofInDoctype = "eof-in-doctype",
|
41
|
+
nestedComment = "nested-comment",
|
42
|
+
abruptClosingOfEmptyComment = "abrupt-closing-of-empty-comment",
|
43
|
+
eofInComment = "eof-in-comment",
|
44
|
+
incorrectlyClosedComment = "incorrectly-closed-comment",
|
45
|
+
eofInCdata = "eof-in-cdata",
|
46
|
+
absenceOfDigitsInNumericCharacterReference = "absence-of-digits-in-numeric-character-reference",
|
47
|
+
nullCharacterReference = "null-character-reference",
|
48
|
+
surrogateCharacterReference = "surrogate-character-reference",
|
49
|
+
characterReferenceOutsideUnicodeRange = "character-reference-outside-unicode-range",
|
50
|
+
controlCharacterReference = "control-character-reference",
|
51
|
+
noncharacterCharacterReference = "noncharacter-character-reference",
|
52
|
+
missingWhitespaceBeforeDoctypeName = "missing-whitespace-before-doctype-name",
|
53
|
+
missingDoctypeName = "missing-doctype-name",
|
54
|
+
invalidCharacterSequenceAfterDoctypeName = "invalid-character-sequence-after-doctype-name",
|
55
|
+
duplicateAttribute = "duplicate-attribute",
|
56
|
+
nonConformingDoctype = "non-conforming-doctype",
|
57
|
+
missingDoctype = "missing-doctype",
|
58
|
+
misplacedDoctype = "misplaced-doctype",
|
59
|
+
endTagWithoutMatchingOpenElement = "end-tag-without-matching-open-element",
|
60
|
+
closingOfElementWithOpenChildElements = "closing-of-element-with-open-child-elements",
|
61
|
+
disallowedContentInNoscriptInHead = "disallowed-content-in-noscript-in-head",
|
62
|
+
openElementsLeftAfterEof = "open-elements-left-after-eof",
|
63
|
+
abandonedHeadElementChild = "abandoned-head-element-child",
|
64
|
+
misplacedStartTagForHeadElement = "misplaced-start-tag-for-head-element",
|
65
|
+
nestedNoscriptInHead = "nested-noscript-in-head",
|
66
|
+
eofInElementThatCanContainOnlyText = "eof-in-element-that-can-contain-only-text"
|
67
|
+
}
|
68
|
+
//# sourceMappingURL=error-codes.d.ts.map
|
@@ -0,0 +1,64 @@
|
|
1
|
+
export var ERR;
|
2
|
+
(function (ERR) {
|
3
|
+
ERR["controlCharacterInInputStream"] = "control-character-in-input-stream";
|
4
|
+
ERR["noncharacterInInputStream"] = "noncharacter-in-input-stream";
|
5
|
+
ERR["surrogateInInputStream"] = "surrogate-in-input-stream";
|
6
|
+
ERR["nonVoidHtmlElementStartTagWithTrailingSolidus"] = "non-void-html-element-start-tag-with-trailing-solidus";
|
7
|
+
ERR["endTagWithAttributes"] = "end-tag-with-attributes";
|
8
|
+
ERR["endTagWithTrailingSolidus"] = "end-tag-with-trailing-solidus";
|
9
|
+
ERR["unexpectedSolidusInTag"] = "unexpected-solidus-in-tag";
|
10
|
+
ERR["unexpectedNullCharacter"] = "unexpected-null-character";
|
11
|
+
ERR["unexpectedQuestionMarkInsteadOfTagName"] = "unexpected-question-mark-instead-of-tag-name";
|
12
|
+
ERR["invalidFirstCharacterOfTagName"] = "invalid-first-character-of-tag-name";
|
13
|
+
ERR["unexpectedEqualsSignBeforeAttributeName"] = "unexpected-equals-sign-before-attribute-name";
|
14
|
+
ERR["missingEndTagName"] = "missing-end-tag-name";
|
15
|
+
ERR["unexpectedCharacterInAttributeName"] = "unexpected-character-in-attribute-name";
|
16
|
+
ERR["unknownNamedCharacterReference"] = "unknown-named-character-reference";
|
17
|
+
ERR["missingSemicolonAfterCharacterReference"] = "missing-semicolon-after-character-reference";
|
18
|
+
ERR["unexpectedCharacterAfterDoctypeSystemIdentifier"] = "unexpected-character-after-doctype-system-identifier";
|
19
|
+
ERR["unexpectedCharacterInUnquotedAttributeValue"] = "unexpected-character-in-unquoted-attribute-value";
|
20
|
+
ERR["eofBeforeTagName"] = "eof-before-tag-name";
|
21
|
+
ERR["eofInTag"] = "eof-in-tag";
|
22
|
+
ERR["missingAttributeValue"] = "missing-attribute-value";
|
23
|
+
ERR["missingWhitespaceBetweenAttributes"] = "missing-whitespace-between-attributes";
|
24
|
+
ERR["missingWhitespaceAfterDoctypePublicKeyword"] = "missing-whitespace-after-doctype-public-keyword";
|
25
|
+
ERR["missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers"] = "missing-whitespace-between-doctype-public-and-system-identifiers";
|
26
|
+
ERR["missingWhitespaceAfterDoctypeSystemKeyword"] = "missing-whitespace-after-doctype-system-keyword";
|
27
|
+
ERR["missingQuoteBeforeDoctypePublicIdentifier"] = "missing-quote-before-doctype-public-identifier";
|
28
|
+
ERR["missingQuoteBeforeDoctypeSystemIdentifier"] = "missing-quote-before-doctype-system-identifier";
|
29
|
+
ERR["missingDoctypePublicIdentifier"] = "missing-doctype-public-identifier";
|
30
|
+
ERR["missingDoctypeSystemIdentifier"] = "missing-doctype-system-identifier";
|
31
|
+
ERR["abruptDoctypePublicIdentifier"] = "abrupt-doctype-public-identifier";
|
32
|
+
ERR["abruptDoctypeSystemIdentifier"] = "abrupt-doctype-system-identifier";
|
33
|
+
ERR["cdataInHtmlContent"] = "cdata-in-html-content";
|
34
|
+
ERR["incorrectlyOpenedComment"] = "incorrectly-opened-comment";
|
35
|
+
ERR["eofInScriptHtmlCommentLikeText"] = "eof-in-script-html-comment-like-text";
|
36
|
+
ERR["eofInDoctype"] = "eof-in-doctype";
|
37
|
+
ERR["nestedComment"] = "nested-comment";
|
38
|
+
ERR["abruptClosingOfEmptyComment"] = "abrupt-closing-of-empty-comment";
|
39
|
+
ERR["eofInComment"] = "eof-in-comment";
|
40
|
+
ERR["incorrectlyClosedComment"] = "incorrectly-closed-comment";
|
41
|
+
ERR["eofInCdata"] = "eof-in-cdata";
|
42
|
+
ERR["absenceOfDigitsInNumericCharacterReference"] = "absence-of-digits-in-numeric-character-reference";
|
43
|
+
ERR["nullCharacterReference"] = "null-character-reference";
|
44
|
+
ERR["surrogateCharacterReference"] = "surrogate-character-reference";
|
45
|
+
ERR["characterReferenceOutsideUnicodeRange"] = "character-reference-outside-unicode-range";
|
46
|
+
ERR["controlCharacterReference"] = "control-character-reference";
|
47
|
+
ERR["noncharacterCharacterReference"] = "noncharacter-character-reference";
|
48
|
+
ERR["missingWhitespaceBeforeDoctypeName"] = "missing-whitespace-before-doctype-name";
|
49
|
+
ERR["missingDoctypeName"] = "missing-doctype-name";
|
50
|
+
ERR["invalidCharacterSequenceAfterDoctypeName"] = "invalid-character-sequence-after-doctype-name";
|
51
|
+
ERR["duplicateAttribute"] = "duplicate-attribute";
|
52
|
+
ERR["nonConformingDoctype"] = "non-conforming-doctype";
|
53
|
+
ERR["missingDoctype"] = "missing-doctype";
|
54
|
+
ERR["misplacedDoctype"] = "misplaced-doctype";
|
55
|
+
ERR["endTagWithoutMatchingOpenElement"] = "end-tag-without-matching-open-element";
|
56
|
+
ERR["closingOfElementWithOpenChildElements"] = "closing-of-element-with-open-child-elements";
|
57
|
+
ERR["disallowedContentInNoscriptInHead"] = "disallowed-content-in-noscript-in-head";
|
58
|
+
ERR["openElementsLeftAfterEof"] = "open-elements-left-after-eof";
|
59
|
+
ERR["abandonedHeadElementChild"] = "abandoned-head-element-child";
|
60
|
+
ERR["misplacedStartTagForHeadElement"] = "misplaced-start-tag-for-head-element";
|
61
|
+
ERR["nestedNoscriptInHead"] = "nested-noscript-in-head";
|
62
|
+
ERR["eofInElementThatCanContainOnlyText"] = "eof-in-element-that-can-contain-only-text";
|
63
|
+
})(ERR = ERR || (ERR = {}));
|
64
|
+
//# sourceMappingURL=error-codes.js.map
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { TAG_ID as $, NS } from './html.js';
|
2
|
+
import type { TagToken, Attribute } from './token.js';
|
3
|
+
export declare const SVG_TAG_NAMES_ADJUSTMENT_MAP: Map<string, string>;
|
4
|
+
export declare function causesExit(startTagToken: TagToken): boolean;
|
5
|
+
export declare function adjustTokenMathMLAttrs(token: TagToken): void;
|
6
|
+
export declare function adjustTokenSVGAttrs(token: TagToken): void;
|
7
|
+
export declare function adjustTokenXMLAttrs(token: TagToken): void;
|
8
|
+
export declare function adjustTokenSVGTagName(token: TagToken): void;
|
9
|
+
export declare function isIntegrationPoint(tn: $, ns: NS, attrs: Attribute[], foreignNS?: NS): boolean;
|
10
|
+
//# sourceMappingURL=foreign-content.d.ts.map
|