@qelos/aidev 0.11.0 → 1.0.0
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/.env.aidev.example +6 -1
- package/README.md +21 -0
- package/dist/__tests__/accepted.test.d.ts +2 -0
- package/dist/__tests__/accepted.test.d.ts.map +1 -0
- package/dist/__tests__/accepted.test.js +151 -0
- package/dist/__tests__/accepted.test.js.map +1 -0
- package/dist/__tests__/activeTask.test.d.ts +2 -0
- package/dist/__tests__/activeTask.test.d.ts.map +1 -0
- package/dist/__tests__/activeTask.test.js +106 -0
- package/dist/__tests__/activeTask.test.js.map +1 -0
- package/dist/__tests__/ai-runners.test.d.ts +2 -0
- package/dist/__tests__/ai-runners.test.d.ts.map +1 -0
- package/dist/__tests__/ai-runners.test.js +717 -0
- package/dist/__tests__/ai-runners.test.js.map +1 -0
- package/dist/__tests__/clickup-format.test.d.ts +2 -0
- package/dist/__tests__/clickup-format.test.d.ts.map +1 -0
- package/dist/__tests__/clickup-format.test.js +256 -0
- package/dist/__tests__/clickup-format.test.js.map +1 -0
- package/dist/__tests__/config.test.d.ts +2 -0
- package/dist/__tests__/config.test.d.ts.map +1 -0
- package/dist/__tests__/config.test.js +493 -0
- package/dist/__tests__/config.test.js.map +1 -0
- package/dist/__tests__/git.test.d.ts +2 -0
- package/dist/__tests__/git.test.d.ts.map +1 -0
- package/dist/__tests__/git.test.js +697 -0
- package/dist/__tests__/git.test.js.map +1 -0
- package/dist/__tests__/github.test.d.ts +2 -0
- package/dist/__tests__/github.test.d.ts.map +1 -0
- package/dist/__tests__/github.test.js +292 -0
- package/dist/__tests__/github.test.js.map +1 -0
- package/dist/__tests__/help.test.d.ts +2 -0
- package/dist/__tests__/help.test.d.ts.map +1 -0
- package/dist/__tests__/help.test.js +34 -0
- package/dist/__tests__/help.test.js.map +1 -0
- package/dist/__tests__/hooks.test.d.ts +2 -0
- package/dist/__tests__/hooks.test.d.ts.map +1 -0
- package/dist/__tests__/hooks.test.js +381 -0
- package/dist/__tests__/hooks.test.js.map +1 -0
- package/dist/__tests__/init.test.d.ts +2 -0
- package/dist/__tests__/init.test.d.ts.map +1 -0
- package/dist/__tests__/init.test.js +850 -0
- package/dist/__tests__/init.test.js.map +1 -0
- package/dist/__tests__/local-provider.test.d.ts +2 -0
- package/dist/__tests__/local-provider.test.d.ts.map +1 -0
- package/dist/__tests__/local-provider.test.js +631 -0
- package/dist/__tests__/local-provider.test.js.map +1 -0
- package/dist/__tests__/lockfile.test.d.ts +2 -0
- package/dist/__tests__/lockfile.test.d.ts.map +1 -0
- package/dist/__tests__/lockfile.test.js +144 -0
- package/dist/__tests__/lockfile.test.js.map +1 -0
- package/dist/__tests__/permissions.test.d.ts +2 -0
- package/dist/__tests__/permissions.test.d.ts.map +1 -0
- package/dist/__tests__/permissions.test.js +197 -0
- package/dist/__tests__/permissions.test.js.map +1 -0
- package/dist/__tests__/planning.test.d.ts +2 -0
- package/dist/__tests__/planning.test.d.ts.map +1 -0
- package/dist/__tests__/planning.test.js +444 -0
- package/dist/__tests__/planning.test.js.map +1 -0
- package/dist/__tests__/platform.test.d.ts +2 -0
- package/dist/__tests__/platform.test.d.ts.map +1 -0
- package/dist/__tests__/platform.test.js +329 -0
- package/dist/__tests__/platform.test.js.map +1 -0
- package/dist/__tests__/providers.test.d.ts +2 -0
- package/dist/__tests__/providers.test.d.ts.map +1 -0
- package/dist/__tests__/providers.test.js +1238 -0
- package/dist/__tests__/providers.test.js.map +1 -0
- package/dist/__tests__/run.test.d.ts +2 -0
- package/dist/__tests__/run.test.d.ts.map +1 -0
- package/dist/__tests__/run.test.js +943 -0
- package/dist/__tests__/run.test.js.map +1 -0
- package/dist/__tests__/schedule.test.d.ts +2 -0
- package/dist/__tests__/schedule.test.d.ts.map +1 -0
- package/dist/__tests__/schedule.test.js +385 -0
- package/dist/__tests__/schedule.test.js.map +1 -0
- package/dist/__tests__/sessions.test.d.ts +2 -0
- package/dist/__tests__/sessions.test.d.ts.map +1 -0
- package/dist/__tests__/sessions.test.js +232 -0
- package/dist/__tests__/sessions.test.js.map +1 -0
- package/dist/__tests__/tasks.test.d.ts +2 -0
- package/dist/__tests__/tasks.test.d.ts.map +1 -0
- package/dist/__tests__/tasks.test.js +440 -0
- package/dist/__tests__/tasks.test.js.map +1 -0
- package/dist/__tests__/thinking-recovery.test.d.ts +2 -0
- package/dist/__tests__/thinking-recovery.test.d.ts.map +1 -0
- package/dist/__tests__/thinking-recovery.test.js +464 -0
- package/dist/__tests__/thinking-recovery.test.js.map +1 -0
- package/dist/activeTask.d.ts +11 -0
- package/dist/activeTask.d.ts.map +1 -0
- package/dist/activeTask.js +79 -0
- package/dist/activeTask.js.map +1 -0
- package/dist/ai/anthropicSdk.d.ts +6 -4
- package/dist/ai/anthropicSdk.d.ts.map +1 -1
- package/dist/ai/anthropicSdk.js +7 -5
- package/dist/ai/anthropicSdk.js.map +1 -1
- package/dist/ai/claude.d.ts.map +1 -1
- package/dist/ai/claude.js +6 -1
- package/dist/ai/claude.js.map +1 -1
- package/dist/cli.js +38 -13
- package/dist/cli.js.map +1 -1
- package/dist/commands/init.d.ts +2 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +24 -6
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/run.d.ts +4 -2
- package/dist/commands/run.d.ts.map +1 -1
- package/dist/commands/run.js +52 -21
- package/dist/commands/run.js.map +1 -1
- package/dist/commands/schedule.d.ts +40 -0
- package/dist/commands/schedule.d.ts.map +1 -1
- package/dist/commands/schedule.js +296 -25
- package/dist/commands/schedule.js.map +1 -1
- package/dist/commands/ui.d.ts +6 -0
- package/dist/commands/ui.d.ts.map +1 -0
- package/dist/commands/ui.js +175 -0
- package/dist/commands/ui.js.map +1 -0
- package/dist/providers/base.d.ts +11 -3
- package/dist/providers/base.d.ts.map +1 -1
- package/dist/providers/clickup.d.ts +9 -3
- package/dist/providers/clickup.d.ts.map +1 -1
- package/dist/providers/clickup.js +73 -37
- package/dist/providers/clickup.js.map +1 -1
- package/dist/providers/jira.d.ts +3 -3
- package/dist/providers/jira.d.ts.map +1 -1
- package/dist/providers/jira.js +15 -10
- package/dist/providers/jira.js.map +1 -1
- package/dist/providers/linear.d.ts +2 -2
- package/dist/providers/linear.d.ts.map +1 -1
- package/dist/providers/linear.js +2 -2
- package/dist/providers/linear.js.map +1 -1
- package/dist/providers/local.d.ts +2 -2
- package/dist/providers/local.d.ts.map +1 -1
- package/dist/providers/local.js +2 -2
- package/dist/providers/local.js.map +1 -1
- package/dist/providers/monday.d.ts +2 -2
- package/dist/providers/monday.d.ts.map +1 -1
- package/dist/providers/monday.js +2 -2
- package/dist/providers/monday.js.map +1 -1
- package/dist/providers/notion.d.ts +2 -2
- package/dist/providers/notion.d.ts.map +1 -1
- package/dist/providers/notion.js +2 -2
- package/dist/providers/notion.js.map +1 -1
- package/dist/providers/trello.d.ts +3 -3
- package/dist/providers/trello.d.ts.map +1 -1
- package/dist/providers/trello.js +15 -10
- package/dist/providers/trello.js.map +1 -1
- package/dist/types.d.ts +7 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +9 -2
- package/ui/.output/nitro.json +15 -0
- package/ui/.output/public/_nuxt/-JbJIqze.js +1 -0
- package/ui/.output/public/_nuxt/B6CloFTX.js +16 -0
- package/ui/.output/public/_nuxt/BOrBGVUf.js +1 -0
- package/ui/.output/public/_nuxt/BQrd1umS.js +1 -0
- package/ui/.output/public/_nuxt/BzY5_7kS.js +6 -0
- package/ui/.output/public/_nuxt/C0MxF24X.js +1 -0
- package/ui/.output/public/_nuxt/CB-qGQpu.js +1 -0
- package/ui/.output/public/_nuxt/CJImEqMV.js +4 -0
- package/ui/.output/public/_nuxt/CbcumZrF.js +1 -0
- package/ui/.output/public/_nuxt/Cde_Ulqm.js +1 -0
- package/ui/.output/public/_nuxt/Cybd4n4b.js +1 -0
- package/ui/.output/public/_nuxt/D3tjOrt_.js +70 -0
- package/ui/.output/public/_nuxt/DBH-q-5h.js +1 -0
- package/ui/.output/public/_nuxt/DQcp3FR_.js +1 -0
- package/ui/.output/public/_nuxt/DYTQ_K9y.js +5 -0
- package/ui/.output/public/_nuxt/Dd5WWlUa.js +1 -0
- package/ui/.output/public/_nuxt/DlAUqK2U.js +1 -0
- package/ui/.output/public/_nuxt/DoGLy6_9.js +1 -0
- package/ui/.output/public/_nuxt/LmXiirhS.js +1 -0
- package/ui/.output/public/_nuxt/Select.qOczc23w.css +1 -0
- package/ui/.output/public/_nuxt/YG9hQIUX.js +1 -0
- package/ui/.output/public/_nuxt/builds/latest.json +1 -0
- package/ui/.output/public/_nuxt/builds/meta/d82a45ff-ab57-436a-9e74-0088adfd2cb8.json +1 -0
- package/ui/.output/public/_nuxt/config.ClyHUYof.css +1 -0
- package/ui/.output/public/_nuxt/default.Dw-0Xw5D.css +1 -0
- package/ui/.output/public/_nuxt/error-404.DL_4WIao.css +1 -0
- package/ui/.output/public/_nuxt/error-500.I1Dtv2V5.css +1 -0
- package/ui/.output/public/_nuxt/login.DTksG_7N.css +1 -0
- package/ui/.output/public/_nuxt/logs.BmDpUxtf.css +1 -0
- package/ui/.output/public/_nuxt/mH-IieKd.js +1 -0
- package/ui/.output/public/_nuxt/qxvJYqtu.js +1 -0
- package/ui/.output/public/_nuxt/rG-0aeB1.js +1 -0
- package/ui/.output/public/_nuxt/run.ByHLIFjd.css +1 -0
- package/ui/.output/public/_nuxt/schedule.Do4mgJz1.css +1 -0
- package/ui/.output/public/_nuxt/tasks.BoC8zK7P.css +1 -0
- package/ui/.output/public/_nuxt/v9BBpVmo.js +1 -0
- package/ui/.output/public/_nuxt/yiI_BGHY.js +2 -0
- package/ui/.output/server/chunks/_/error-500.mjs +19 -0
- package/ui/.output/server/chunks/_/error-500.mjs.map +1 -0
- package/ui/.output/server/chunks/_/icons.mjs +5190 -0
- package/ui/.output/server/chunks/_/icons.mjs.map +1 -0
- package/ui/.output/server/chunks/build/Badge-2SB8hHdz.mjs +215 -0
- package/ui/.output/server/chunks/build/Badge-2SB8hHdz.mjs.map +1 -0
- package/ui/.output/server/chunks/build/Button-Dgqz5RR8.mjs +718 -0
- package/ui/.output/server/chunks/build/Button-Dgqz5RR8.mjs.map +1 -0
- package/ui/.output/server/chunks/build/Card-BkfpdQZ7.mjs +128 -0
- package/ui/.output/server/chunks/build/Card-BkfpdQZ7.mjs.map +1 -0
- package/ui/.output/server/chunks/build/FormGroup-UXO0FHfr.mjs +185 -0
- package/ui/.output/server/chunks/build/FormGroup-UXO0FHfr.mjs.map +1 -0
- package/ui/.output/server/chunks/build/Input-ckU7qZlb.mjs +374 -0
- package/ui/.output/server/chunks/build/Input-ckU7qZlb.mjs.map +1 -0
- package/ui/.output/server/chunks/build/MarkdownContent-styles.Xj6NTbfU.mjs +8 -0
- package/ui/.output/server/chunks/build/MarkdownContent-styles.Xj6NTbfU.mjs.map +1 -0
- package/ui/.output/server/chunks/build/Modal-KQ_hNOLI.mjs +1194 -0
- package/ui/.output/server/chunks/build/Modal-KQ_hNOLI.mjs.map +1 -0
- package/ui/.output/server/chunks/build/Select-ByGZz9s4.mjs +335 -0
- package/ui/.output/server/chunks/build/Select-ByGZz9s4.mjs.map +1 -0
- package/ui/.output/server/chunks/build/Select-styles.D58nX-1h.mjs +8 -0
- package/ui/.output/server/chunks/build/Select-styles.D58nX-1h.mjs.map +1 -0
- package/ui/.output/server/chunks/build/TaskDetailExecute-styles.T37YBLgC.mjs +8 -0
- package/ui/.output/server/chunks/build/TaskDetailExecute-styles.T37YBLgC.mjs.map +1 -0
- package/ui/.output/server/chunks/build/TaskDetailModal-styles.FkUO4O6f.mjs +8 -0
- package/ui/.output/server/chunks/build/TaskDetailModal-styles.FkUO4O6f.mjs.map +1 -0
- package/ui/.output/server/chunks/build/TasksBoard-styles.CDYjY0Wq.mjs +8 -0
- package/ui/.output/server/chunks/build/TasksBoard-styles.CDYjY0Wq.mjs.map +1 -0
- package/ui/.output/server/chunks/build/TasksBoardColumn-styles.X1QYmfM6.mjs +8 -0
- package/ui/.output/server/chunks/build/TasksBoardColumn-styles.X1QYmfM6.mjs.map +1 -0
- package/ui/.output/server/chunks/build/TasksTaskCard-styles.VxnwrHTQ.mjs +8 -0
- package/ui/.output/server/chunks/build/TasksTaskCard-styles.VxnwrHTQ.mjs.map +1 -0
- package/ui/.output/server/chunks/build/_plugin-vue_export-helper-1tPrXgE0.mjs +10 -0
- package/ui/.output/server/chunks/build/_plugin-vue_export-helper-1tPrXgE0.mjs.map +1 -0
- package/ui/.output/server/chunks/build/client.precomputed.mjs +4 -0
- package/ui/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
- package/ui/.output/server/chunks/build/config-QZGfNfGJ.mjs +2088 -0
- package/ui/.output/server/chunks/build/config-QZGfNfGJ.mjs.map +1 -0
- package/ui/.output/server/chunks/build/config-styles.DjqRFF9g.mjs +8 -0
- package/ui/.output/server/chunks/build/config-styles.DjqRFF9g.mjs.map +1 -0
- package/ui/.output/server/chunks/build/default-DiZbTfNE.mjs +116 -0
- package/ui/.output/server/chunks/build/default-DiZbTfNE.mjs.map +1 -0
- package/ui/.output/server/chunks/build/default-styles.DmprFUrQ.mjs +8 -0
- package/ui/.output/server/chunks/build/default-styles.DmprFUrQ.mjs.map +1 -0
- package/ui/.output/server/chunks/build/entry-styles.CnHWhc9b.mjs +11 -0
- package/ui/.output/server/chunks/build/entry-styles.CnHWhc9b.mjs.map +1 -0
- package/ui/.output/server/chunks/build/error-404-NTLKljQP.mjs +108 -0
- package/ui/.output/server/chunks/build/error-404-NTLKljQP.mjs.map +1 -0
- package/ui/.output/server/chunks/build/error-404-styles.CiJjK6WX.mjs +8 -0
- package/ui/.output/server/chunks/build/error-404-styles.CiJjK6WX.mjs.map +1 -0
- package/ui/.output/server/chunks/build/error-500-CoQbT3iY.mjs +86 -0
- package/ui/.output/server/chunks/build/error-500-CoQbT3iY.mjs.map +1 -0
- package/ui/.output/server/chunks/build/error-500-styles.ulHNpcF1.mjs +8 -0
- package/ui/.output/server/chunks/build/error-500-styles.ulHNpcF1.mjs.map +1 -0
- package/ui/.output/server/chunks/build/index-DZrzYTcX.mjs +89 -0
- package/ui/.output/server/chunks/build/index-DZrzYTcX.mjs.map +1 -0
- package/ui/.output/server/chunks/build/index-Dy4Tu7MB.mjs +607 -0
- package/ui/.output/server/chunks/build/index-Dy4Tu7MB.mjs.map +1 -0
- package/ui/.output/server/chunks/build/interval-CNTT4qkc.mjs +186 -0
- package/ui/.output/server/chunks/build/interval-CNTT4qkc.mjs.map +1 -0
- package/ui/.output/server/chunks/build/login-cekfLp5n.mjs +162 -0
- package/ui/.output/server/chunks/build/login-cekfLp5n.mjs.map +1 -0
- package/ui/.output/server/chunks/build/login-styles.DX0ZNufk.mjs +8 -0
- package/ui/.output/server/chunks/build/login-styles.DX0ZNufk.mjs.map +1 -0
- package/ui/.output/server/chunks/build/logs-CbKQfEiW.mjs +586 -0
- package/ui/.output/server/chunks/build/logs-CbKQfEiW.mjs.map +1 -0
- package/ui/.output/server/chunks/build/logs-styles.jGthmQxA.mjs +8 -0
- package/ui/.output/server/chunks/build/logs-styles.jGthmQxA.mjs.map +1 -0
- package/ui/.output/server/chunks/build/nuxt-link-B3UD8izG.mjs +293 -0
- package/ui/.output/server/chunks/build/nuxt-link-B3UD8izG.mjs.map +1 -0
- package/ui/.output/server/chunks/build/run-CfSa6qTR.mjs +312 -0
- package/ui/.output/server/chunks/build/run-CfSa6qTR.mjs.map +1 -0
- package/ui/.output/server/chunks/build/run-styles.PsIyKaYb.mjs +8 -0
- package/ui/.output/server/chunks/build/run-styles.PsIyKaYb.mjs.map +1 -0
- package/ui/.output/server/chunks/build/schedule-Pz7_wUvq.mjs +869 -0
- package/ui/.output/server/chunks/build/schedule-Pz7_wUvq.mjs.map +1 -0
- package/ui/.output/server/chunks/build/schedule-styles.Bv6vOJH1.mjs +8 -0
- package/ui/.output/server/chunks/build/schedule-styles.Bv6vOJH1.mjs.map +1 -0
- package/ui/.output/server/chunks/build/selectMenu-B2FUotwL.mjs +158 -0
- package/ui/.output/server/chunks/build/selectMenu-B2FUotwL.mjs.map +1 -0
- package/ui/.output/server/chunks/build/server.mjs +1853 -0
- package/ui/.output/server/chunks/build/server.mjs.map +1 -0
- package/ui/.output/server/chunks/build/styles.mjs +23 -0
- package/ui/.output/server/chunks/build/styles.mjs.map +1 -0
- package/ui/.output/server/chunks/build/tasks-CLdWs8cg.mjs +1559 -0
- package/ui/.output/server/chunks/build/tasks-CLdWs8cg.mjs.map +1 -0
- package/ui/.output/server/chunks/build/tasks-styles-1.mjs-F12QSoy2.mjs +4 -0
- package/ui/.output/server/chunks/build/tasks-styles-1.mjs-F12QSoy2.mjs.map +1 -0
- package/ui/.output/server/chunks/build/tasks-styles-2.mjs-U_AoCSxR.mjs +4 -0
- package/ui/.output/server/chunks/build/tasks-styles-2.mjs-U_AoCSxR.mjs.map +1 -0
- package/ui/.output/server/chunks/build/tasks-styles-3.mjs-DI5PT28Z.mjs +4 -0
- package/ui/.output/server/chunks/build/tasks-styles-3.mjs-DI5PT28Z.mjs.map +1 -0
- package/ui/.output/server/chunks/build/tasks-styles-4.mjs-eVZp4A8Q.mjs +4 -0
- package/ui/.output/server/chunks/build/tasks-styles-4.mjs-eVZp4A8Q.mjs.map +1 -0
- package/ui/.output/server/chunks/build/tasks-styles-5.mjs-DPUNG0PO.mjs +4 -0
- package/ui/.output/server/chunks/build/tasks-styles-5.mjs-DPUNG0PO.mjs.map +1 -0
- package/ui/.output/server/chunks/build/tasks-styles-6.mjs-BeuYvxiU.mjs +4 -0
- package/ui/.output/server/chunks/build/tasks-styles-6.mjs-BeuYvxiU.mjs.map +1 -0
- package/ui/.output/server/chunks/build/tasks-styles.CqRo0zZf.mjs +21 -0
- package/ui/.output/server/chunks/build/tasks-styles.CqRo0zZf.mjs.map +1 -0
- package/ui/.output/server/chunks/build/useApi-CFWxoIea.mjs +470 -0
- package/ui/.output/server/chunks/build/useApi-CFWxoIea.mjs.map +1 -0
- package/ui/.output/server/chunks/nitro/nitro.mjs +6384 -0
- package/ui/.output/server/chunks/nitro/nitro.mjs.map +1 -0
- package/ui/.output/server/chunks/routes/api/config/test.post.mjs +146 -0
- package/ui/.output/server/chunks/routes/api/config/test.post.mjs.map +1 -0
- package/ui/.output/server/chunks/routes/api/config.get.mjs +27 -0
- package/ui/.output/server/chunks/routes/api/config.get.mjs.map +1 -0
- package/ui/.output/server/chunks/routes/api/config.put.mjs +44 -0
- package/ui/.output/server/chunks/routes/api/config.put.mjs.map +1 -0
- package/ui/.output/server/chunks/routes/api/logs.delete.mjs +32 -0
- package/ui/.output/server/chunks/routes/api/logs.delete.mjs.map +1 -0
- package/ui/.output/server/chunks/routes/api/logs.get.mjs +63 -0
- package/ui/.output/server/chunks/routes/api/logs.get.mjs.map +1 -0
- package/ui/.output/server/chunks/routes/api/run/cancel.post.mjs +42 -0
- package/ui/.output/server/chunks/routes/api/run/cancel.post.mjs.map +1 -0
- package/ui/.output/server/chunks/routes/api/run.post.mjs +97 -0
- package/ui/.output/server/chunks/routes/api/run.post.mjs.map +1 -0
- package/ui/.output/server/chunks/routes/api/schedule/_id_.delete.mjs +28 -0
- package/ui/.output/server/chunks/routes/api/schedule/_id_.delete.mjs.map +1 -0
- package/ui/.output/server/chunks/routes/api/schedule/fix.post.mjs +21 -0
- package/ui/.output/server/chunks/routes/api/schedule/fix.post.mjs.map +1 -0
- package/ui/.output/server/chunks/routes/api/schedule.get.mjs +21 -0
- package/ui/.output/server/chunks/routes/api/schedule.get.mjs.map +1 -0
- package/ui/.output/server/chunks/routes/api/schedule.post.mjs +31 -0
- package/ui/.output/server/chunks/routes/api/schedule.post.mjs.map +1 -0
- package/ui/.output/server/chunks/routes/api/tasks/_id/comment.post.mjs +36 -0
- package/ui/.output/server/chunks/routes/api/tasks/_id/comment.post.mjs.map +1 -0
- package/ui/.output/server/chunks/routes/api/tasks/_id/execute.post.mjs +87 -0
- package/ui/.output/server/chunks/routes/api/tasks/_id/execute.post.mjs.map +1 -0
- package/ui/.output/server/chunks/routes/api/tasks/_id/status.post.mjs +35 -0
- package/ui/.output/server/chunks/routes/api/tasks/_id/status.post.mjs.map +1 -0
- package/ui/.output/server/chunks/routes/api/tasks/_id_.get.mjs +36 -0
- package/ui/.output/server/chunks/routes/api/tasks/_id_.get.mjs.map +1 -0
- package/ui/.output/server/chunks/routes/api/tasks/_id_.patch.mjs +67 -0
- package/ui/.output/server/chunks/routes/api/tasks/_id_.patch.mjs.map +1 -0
- package/ui/.output/server/chunks/routes/api/tasks/statuses.get.mjs +32 -0
- package/ui/.output/server/chunks/routes/api/tasks/statuses.get.mjs.map +1 -0
- package/ui/.output/server/chunks/routes/api/tasks.get.mjs +53 -0
- package/ui/.output/server/chunks/routes/api/tasks.get.mjs.map +1 -0
- package/ui/.output/server/chunks/routes/renderer.mjs +494 -0
- package/ui/.output/server/chunks/routes/renderer.mjs.map +1 -0
- package/ui/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
- package/ui/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
- package/ui/.output/server/index.mjs +17 -0
- package/ui/.output/server/index.mjs.map +1 -0
- package/ui/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/decode-codepoint.js +77 -0
- package/ui/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/decode.js +568 -0
- package/ui/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/generated/decode-data-html.js +7 -0
- package/ui/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/ui/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/ui/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/internal/decode-shared.js +31 -0
- package/ui/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/package.json +3 -0
- package/ui/.output/server/node_modules/.nitro/entities@7.0.1/package.json +120 -0
- package/ui/.output/server/node_modules/.nitro/entities@8.0.0/dist/decode-codepoint.js +46 -0
- package/ui/.output/server/node_modules/.nitro/entities@8.0.0/dist/decode.js +544 -0
- package/ui/.output/server/node_modules/.nitro/entities@8.0.0/dist/escape.js +132 -0
- package/ui/.output/server/node_modules/.nitro/entities@8.0.0/dist/generated/decode-data-html.js +5 -0
- package/ui/.output/server/node_modules/.nitro/entities@8.0.0/dist/generated/decode-data-xml.js +5 -0
- package/ui/.output/server/node_modules/.nitro/entities@8.0.0/dist/internal/bin-trie-flags.js +18 -0
- package/ui/.output/server/node_modules/.nitro/entities@8.0.0/dist/internal/decode-shared.js +17 -0
- package/ui/.output/server/node_modules/.nitro/entities@8.0.0/package.json +83 -0
- package/ui/.output/server/node_modules/@asamuzakjp/css-color/dist/esm/index.js +29 -0
- package/ui/.output/server/node_modules/@asamuzakjp/css-color/dist/esm/js/cache.js +90 -0
- package/ui/.output/server/node_modules/@asamuzakjp/css-color/dist/esm/js/color.js +3534 -0
- package/ui/.output/server/node_modules/@asamuzakjp/css-color/dist/esm/js/common.js +17 -0
- package/ui/.output/server/node_modules/@asamuzakjp/css-color/dist/esm/js/constant.js +60 -0
- package/ui/.output/server/node_modules/@asamuzakjp/css-color/dist/esm/js/convert.js +245 -0
- package/ui/.output/server/node_modules/@asamuzakjp/css-color/dist/esm/js/css-calc.js +636 -0
- package/ui/.output/server/node_modules/@asamuzakjp/css-color/dist/esm/js/css-gradient.js +291 -0
- package/ui/.output/server/node_modules/@asamuzakjp/css-color/dist/esm/js/css-var.js +144 -0
- package/ui/.output/server/node_modules/@asamuzakjp/css-color/dist/esm/js/relative-color.js +451 -0
- package/ui/.output/server/node_modules/@asamuzakjp/css-color/dist/esm/js/resolve.js +210 -0
- package/ui/.output/server/node_modules/@asamuzakjp/css-color/dist/esm/js/util.js +274 -0
- package/ui/.output/server/node_modules/@asamuzakjp/css-color/package.json +89 -0
- package/ui/.output/server/node_modules/@asamuzakjp/dom-selector/package.json +79 -0
- package/ui/.output/server/node_modules/@asamuzakjp/dom-selector/src/index.js +393 -0
- package/ui/.output/server/node_modules/@asamuzakjp/dom-selector/src/js/constant.js +129 -0
- package/ui/.output/server/node_modules/@asamuzakjp/dom-selector/src/js/finder.js +3150 -0
- package/ui/.output/server/node_modules/@asamuzakjp/dom-selector/src/js/matcher.js +612 -0
- package/ui/.output/server/node_modules/@asamuzakjp/dom-selector/src/js/parser.js +441 -0
- package/ui/.output/server/node_modules/@asamuzakjp/dom-selector/src/js/utility.js +1109 -0
- package/ui/.output/server/node_modules/@asamuzakjp/generational-cache/package.json +65 -0
- package/ui/.output/server/node_modules/@asamuzakjp/generational-cache/src/index.js +125 -0
- package/ui/.output/server/node_modules/@asamuzakjp/nwsapi/package.json +43 -0
- package/ui/.output/server/node_modules/@asamuzakjp/nwsapi/src/nwsapi.js +1855 -0
- package/ui/.output/server/node_modules/@babel/parser/lib/index.js +14599 -0
- package/ui/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/ui/.output/server/node_modules/@bramus/specificity/dist/index.cjs +8 -0
- package/ui/.output/server/node_modules/@bramus/specificity/package.json +92 -0
- package/ui/.output/server/node_modules/@csstools/color-helpers/dist/index.mjs +263 -0
- package/ui/.output/server/node_modules/@csstools/color-helpers/package.json +55 -0
- package/ui/.output/server/node_modules/@csstools/css-calc/dist/index.mjs +1 -0
- package/ui/.output/server/node_modules/@csstools/css-calc/package.json +59 -0
- package/ui/.output/server/node_modules/@csstools/css-color-parser/dist/index.mjs +1 -0
- package/ui/.output/server/node_modules/@csstools/css-color-parser/package.json +64 -0
- package/ui/.output/server/node_modules/@csstools/css-parser-algorithms/dist/index.mjs +1 -0
- package/ui/.output/server/node_modules/@csstools/css-parser-algorithms/package.json +58 -0
- package/ui/.output/server/node_modules/@csstools/css-syntax-patches-for-csstree/dist/index.json +777 -0
- package/ui/.output/server/node_modules/@csstools/css-syntax-patches-for-csstree/package.json +56 -0
- package/ui/.output/server/node_modules/@csstools/css-tokenizer/dist/index.mjs +1 -0
- package/ui/.output/server/node_modules/@csstools/css-tokenizer/package.json +55 -0
- package/ui/.output/server/node_modules/@exodus/bytes/assert.js +26 -0
- package/ui/.output/server/node_modules/@exodus/bytes/base64.js +181 -0
- package/ui/.output/server/node_modules/@exodus/bytes/encoding-lite.js +12 -0
- package/ui/.output/server/node_modules/@exodus/bytes/encoding.js +18 -0
- package/ui/.output/server/node_modules/@exodus/bytes/fallback/_utils.js +60 -0
- package/ui/.output/server/node_modules/@exodus/bytes/fallback/base64.js +191 -0
- package/ui/.output/server/node_modules/@exodus/bytes/fallback/encoding.api.js +38 -0
- package/ui/.output/server/node_modules/@exodus/bytes/fallback/encoding.js +369 -0
- package/ui/.output/server/node_modules/@exodus/bytes/fallback/encoding.labels.js +50 -0
- package/ui/.output/server/node_modules/@exodus/bytes/fallback/encoding.util.js +65 -0
- package/ui/.output/server/node_modules/@exodus/bytes/fallback/latin1.js +152 -0
- package/ui/.output/server/node_modules/@exodus/bytes/fallback/multi-byte.encodings.cjs +1 -0
- package/ui/.output/server/node_modules/@exodus/bytes/fallback/multi-byte.encodings.json +546 -0
- package/ui/.output/server/node_modules/@exodus/bytes/fallback/multi-byte.js +962 -0
- package/ui/.output/server/node_modules/@exodus/bytes/fallback/multi-byte.table.js +118 -0
- package/ui/.output/server/node_modules/@exodus/bytes/fallback/percent.js +31 -0
- package/ui/.output/server/node_modules/@exodus/bytes/fallback/platform.js +2 -0
- package/ui/.output/server/node_modules/@exodus/bytes/fallback/platform.native.js +122 -0
- package/ui/.output/server/node_modules/@exodus/bytes/fallback/single-byte.encodings.js +73 -0
- package/ui/.output/server/node_modules/@exodus/bytes/fallback/single-byte.js +110 -0
- package/ui/.output/server/node_modules/@exodus/bytes/fallback/utf16.js +266 -0
- package/ui/.output/server/node_modules/@exodus/bytes/fallback/utf8.auto.js +1 -0
- package/ui/.output/server/node_modules/@exodus/bytes/fallback/utf8.js +270 -0
- package/ui/.output/server/node_modules/@exodus/bytes/multi-byte.js +19 -0
- package/ui/.output/server/node_modules/@exodus/bytes/multi-byte.node.js +29 -0
- package/ui/.output/server/node_modules/@exodus/bytes/package.json +298 -0
- package/ui/.output/server/node_modules/@exodus/bytes/single-byte.js +135 -0
- package/ui/.output/server/node_modules/@exodus/bytes/single-byte.node.js +127 -0
- package/ui/.output/server/node_modules/@exodus/bytes/utf16.js +1 -0
- package/ui/.output/server/node_modules/@exodus/bytes/utf16.native.js +22 -0
- package/ui/.output/server/node_modules/@exodus/bytes/utf16.node.js +71 -0
- package/ui/.output/server/node_modules/@exodus/bytes/utf8.js +65 -0
- package/ui/.output/server/node_modules/@exodus/bytes/utf8.node.js +67 -0
- package/ui/.output/server/node_modules/@exodus/bytes/whatwg.js +80 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/colors/index.mjs +350 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/colors/keywords.mjs +188 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/css/common.mjs +90 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/css/format.mjs +38 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/css/icon.mjs +76 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/css/icons.mjs +168 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/customisations/bool.mjs +22 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.mjs +14 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/customisations/flip.mjs +16 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/customisations/merge.mjs +22 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.mjs +33 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.mjs +51 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/emoji/convert.mjs +84 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/emoji/data.mjs +16 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/emoji/format.mjs +44 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/emoji/parse.mjs +58 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.mjs +231 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.mjs +31 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.mjs +164 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.mjs +216 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.mjs +113 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.mjs +104 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.mjs +34 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.mjs +75 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.mjs +97 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.mjs +54 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.mjs +97 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.mjs +45 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.mjs +105 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.mjs +54 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/icon/defaults.mjs +24 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/icon/merge.mjs +20 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/icon/name.mjs +53 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/icon/square.mjs +23 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/icon/transformations.mjs +16 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.mjs +182 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.mjs +22 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.mjs +28 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.mjs +46 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.mjs +66 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.mjs +51 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.mjs +23 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.mjs +62 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.mjs +161 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/index.mjs +64 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/loader/custom.mjs +50 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/loader/loader.mjs +59 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/loader/modern.mjs +80 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/loader/utils.mjs +92 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/misc/objects.mjs +30 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/misc/strings.mjs +17 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/misc/title.mjs +5 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/svg/build.mjs +119 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/svg/defs.mjs +30 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.mjs +20 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/svg/html.mjs +9 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/svg/id.mjs +28 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.mjs +19 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/svg/parse.mjs +83 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/svg/pretty.mjs +70 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/svg/size.mjs +40 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/svg/trim.mjs +5 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/svg/url.mjs +11 -0
- package/ui/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.mjs +8 -0
- package/ui/.output/server/node_modules/@iconify/utils/package.json +447 -0
- package/ui/.output/server/node_modules/@iconify/vue/dist/iconify.mjs +1896 -0
- package/ui/.output/server/node_modules/@iconify/vue/package.json +62 -0
- package/ui/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6755 -0
- package/ui/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/ui/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
- package/ui/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/ui/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
- package/ui/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/ui/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/api.js +2 -0
- package/ui/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/app.js +2 -0
- package/ui/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/component.js +2 -0
- package/ui/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/context.js +2 -0
- package/ui/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/hooks.js +2 -0
- package/ui/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/index.js +22 -0
- package/ui/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/util.js +2 -0
- package/ui/.output/server/node_modules/@vue/devtools-api/lib/cjs/const.js +5 -0
- package/ui/.output/server/node_modules/@vue/devtools-api/lib/cjs/env.js +17 -0
- package/ui/.output/server/node_modules/@vue/devtools-api/lib/cjs/index.js +45 -0
- package/ui/.output/server/node_modules/@vue/devtools-api/lib/cjs/plugin.js +2 -0
- package/ui/.output/server/node_modules/@vue/devtools-api/lib/cjs/proxy.js +111 -0
- package/ui/.output/server/node_modules/@vue/devtools-api/lib/cjs/time.js +28 -0
- package/ui/.output/server/node_modules/@vue/devtools-api/package.json +37 -0
- package/ui/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1898 -0
- package/ui/.output/server/node_modules/@vue/reactivity/package.json +55 -0
- package/ui/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6875 -0
- package/ui/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/ui/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1822 -0
- package/ui/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/ui/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +883 -0
- package/ui/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
- package/ui/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
- package/ui/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/ui/.output/server/node_modules/@vueuse/core/index.mjs +8299 -0
- package/ui/.output/server/node_modules/@vueuse/core/package.json +51 -0
- package/ui/.output/server/node_modules/@vueuse/shared/index.mjs +1641 -0
- package/ui/.output/server/node_modules/@vueuse/shared/package.json +44 -0
- package/ui/.output/server/node_modules/bidi-js/dist/bidi.js +1010 -0
- package/ui/.output/server/node_modules/bidi-js/package.json +39 -0
- package/ui/.output/server/node_modules/consola/dist/chunks/prompt.mjs +280 -0
- package/ui/.output/server/node_modules/consola/dist/core.mjs +512 -0
- package/ui/.output/server/node_modules/consola/dist/index.mjs +651 -0
- package/ui/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
- package/ui/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
- package/ui/.output/server/node_modules/consola/package.json +136 -0
- package/ui/.output/server/node_modules/css-tree/cjs/convertor/create.cjs +32 -0
- package/ui/.output/server/node_modules/css-tree/cjs/data-patch.cjs +7 -0
- package/ui/.output/server/node_modules/css-tree/cjs/data.cjs +120 -0
- package/ui/.output/server/node_modules/css-tree/cjs/definition-syntax/SyntaxError.cjs +16 -0
- package/ui/.output/server/node_modules/css-tree/cjs/definition-syntax/generate.cjs +139 -0
- package/ui/.output/server/node_modules/css-tree/cjs/definition-syntax/index.cjs +13 -0
- package/ui/.output/server/node_modules/css-tree/cjs/definition-syntax/parse.cjs +596 -0
- package/ui/.output/server/node_modules/css-tree/cjs/definition-syntax/scanner.cjs +113 -0
- package/ui/.output/server/node_modules/css-tree/cjs/definition-syntax/walk.cjs +57 -0
- package/ui/.output/server/node_modules/css-tree/cjs/generator/create.cjs +107 -0
- package/ui/.output/server/node_modules/css-tree/cjs/generator/sourceMap.cjs +96 -0
- package/ui/.output/server/node_modules/css-tree/cjs/generator/token-before.cjs +169 -0
- package/ui/.output/server/node_modules/css-tree/cjs/index.cjs +65 -0
- package/ui/.output/server/node_modules/css-tree/cjs/lexer/Lexer.cjs +517 -0
- package/ui/.output/server/node_modules/css-tree/cjs/lexer/error.cjs +128 -0
- package/ui/.output/server/node_modules/css-tree/cjs/lexer/generic-an-plus-b.cjs +235 -0
- package/ui/.output/server/node_modules/css-tree/cjs/lexer/generic-const.cjs +12 -0
- package/ui/.output/server/node_modules/css-tree/cjs/lexer/generic-urange.cjs +149 -0
- package/ui/.output/server/node_modules/css-tree/cjs/lexer/generic.cjs +717 -0
- package/ui/.output/server/node_modules/css-tree/cjs/lexer/match-graph.cjs +530 -0
- package/ui/.output/server/node_modules/css-tree/cjs/lexer/match.cjs +632 -0
- package/ui/.output/server/node_modules/css-tree/cjs/lexer/prepare-tokens.cjs +54 -0
- package/ui/.output/server/node_modules/css-tree/cjs/lexer/search.cjs +65 -0
- package/ui/.output/server/node_modules/css-tree/cjs/lexer/structure.cjs +173 -0
- package/ui/.output/server/node_modules/css-tree/cjs/lexer/trace.cjs +73 -0
- package/ui/.output/server/node_modules/css-tree/cjs/lexer/units.cjs +38 -0
- package/ui/.output/server/node_modules/css-tree/cjs/parser/SyntaxError.cjs +74 -0
- package/ui/.output/server/node_modules/css-tree/cjs/parser/create.cjs +402 -0
- package/ui/.output/server/node_modules/css-tree/cjs/parser/sequence.cjs +47 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/atrule/container.cjs +32 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/atrule/font-face.cjs +12 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/atrule/import.cjs +101 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/atrule/index.cjs +27 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/atrule/layer.cjs +16 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/atrule/media.cjs +16 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/atrule/nest.cjs +16 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/atrule/page.cjs +16 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/atrule/scope.cjs +16 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/atrule/starting-style.cjs +12 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/atrule/supports.cjs +16 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/config/lexer.cjs +14 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/config/mix.cjs +126 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/config/parser.cjs +49 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/config/walker.cjs +9 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/create.cjs +58 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/function/expression.cjs +11 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/function/var.cjs +43 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/index.cjs +14 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/AnPlusB.cjs +293 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/Atrule.cjs +103 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/AtrulePrelude.cjs +52 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/AttributeSelector.cjs +148 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/Block.cjs +96 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/Brackets.cjs +38 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/CDC.cjs +26 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/CDO.cjs +26 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/ClassSelector.cjs +31 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/Combinator.cjs +61 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/Comment.cjs +40 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/Condition.cjs +120 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/Declaration.cjs +166 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/DeclarationList.cjs +62 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/Dimension.cjs +30 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/Feature.cjs +101 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/FeatureFunction.cjs +67 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/FeatureRange.cjs +133 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/Function.cjs +45 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/GeneralEnclosed.cjs +68 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/Hash.cjs +30 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/IdSelector.cjs +33 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/Identifier.cjs +25 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/Layer.cjs +35 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/LayerList.cjs +43 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/MediaQuery.cjs +100 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/MediaQueryList.cjs +41 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/NestingSelector.cjs +29 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/Nth.cjs +54 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/Number.cjs +25 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/Operator.cjs +28 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/Parentheses.cjs +38 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/Percentage.cjs +25 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/PseudoClassSelector.cjs +67 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/PseudoElementSelector.cjs +69 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/Ratio.cjs +71 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/Raw.cjs +48 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/Rule.cjs +58 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/Scope.cjs +69 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/Selector.cjs +38 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/SelectorList.cjs +43 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/String.cjs +26 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/StyleSheet.cjs +83 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/SupportsDeclaration.cjs +38 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/TypeSelector.cjs +59 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/UnicodeRange.cjs +158 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/Url.cjs +54 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/Value.cjs +26 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/WhiteSpace.cjs +34 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/index-parse.cjs +103 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/node/index.cjs +103 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/pseudo/index.cjs +60 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/pseudo/lang.cjs +37 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/scope/atrulePrelude.cjs +9 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/scope/default.cjs +76 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/scope/index.cjs +11 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/scope/selector.cjs +88 -0
- package/ui/.output/server/node_modules/css-tree/cjs/syntax/scope/value.cjs +29 -0
- package/ui/.output/server/node_modules/css-tree/cjs/tokenizer/OffsetToLocation.cjs +91 -0
- package/ui/.output/server/node_modules/css-tree/cjs/tokenizer/TokenStream.cjs +358 -0
- package/ui/.output/server/node_modules/css-tree/cjs/tokenizer/adopt-buffer.cjs +13 -0
- package/ui/.output/server/node_modules/css-tree/cjs/tokenizer/char-code-definitions.cjs +236 -0
- package/ui/.output/server/node_modules/css-tree/cjs/tokenizer/index.cjs +554 -0
- package/ui/.output/server/node_modules/css-tree/cjs/tokenizer/names.cjs +32 -0
- package/ui/.output/server/node_modules/css-tree/cjs/tokenizer/types.cjs +57 -0
- package/ui/.output/server/node_modules/css-tree/cjs/tokenizer/utils.cjs +261 -0
- package/ui/.output/server/node_modules/css-tree/cjs/utils/List.cjs +473 -0
- package/ui/.output/server/node_modules/css-tree/cjs/utils/clone.cjs +25 -0
- package/ui/.output/server/node_modules/css-tree/cjs/utils/create-custom-error.cjs +18 -0
- package/ui/.output/server/node_modules/css-tree/cjs/utils/ident.cjs +102 -0
- package/ui/.output/server/node_modules/css-tree/cjs/utils/names.cjs +113 -0
- package/ui/.output/server/node_modules/css-tree/cjs/utils/string.cjs +99 -0
- package/ui/.output/server/node_modules/css-tree/cjs/utils/url.cjs +108 -0
- package/ui/.output/server/node_modules/css-tree/cjs/version.cjs +5 -0
- package/ui/.output/server/node_modules/css-tree/cjs/walker/create.cjs +291 -0
- package/ui/.output/server/node_modules/css-tree/data/patch.json +853 -0
- package/ui/.output/server/node_modules/css-tree/lib/convertor/create.js +28 -0
- package/ui/.output/server/node_modules/css-tree/lib/data-patch.js +6 -0
- package/ui/.output/server/node_modules/css-tree/lib/data.js +118 -0
- package/ui/.output/server/node_modules/css-tree/lib/definition-syntax/SyntaxError.js +12 -0
- package/ui/.output/server/node_modules/css-tree/lib/definition-syntax/generate.js +135 -0
- package/ui/.output/server/node_modules/css-tree/lib/definition-syntax/index.js +4 -0
- package/ui/.output/server/node_modules/css-tree/lib/definition-syntax/parse.js +592 -0
- package/ui/.output/server/node_modules/css-tree/lib/definition-syntax/scanner.js +109 -0
- package/ui/.output/server/node_modules/css-tree/lib/definition-syntax/walk.js +53 -0
- package/ui/.output/server/node_modules/css-tree/lib/generator/create.js +102 -0
- package/ui/.output/server/node_modules/css-tree/lib/generator/sourceMap.js +92 -0
- package/ui/.output/server/node_modules/css-tree/lib/generator/token-before.js +180 -0
- package/ui/.output/server/node_modules/css-tree/lib/index.js +30 -0
- package/ui/.output/server/node_modules/css-tree/lib/lexer/Lexer.js +511 -0
- package/ui/.output/server/node_modules/css-tree/lib/lexer/error.js +123 -0
- package/ui/.output/server/node_modules/css-tree/lib/lexer/generic-an-plus-b.js +238 -0
- package/ui/.output/server/node_modules/css-tree/lib/lexer/generic-const.js +8 -0
- package/ui/.output/server/node_modules/css-tree/lib/lexer/generic-urange.js +151 -0
- package/ui/.output/server/node_modules/css-tree/lib/lexer/generic.js +738 -0
- package/ui/.output/server/node_modules/css-tree/lib/lexer/match-graph.js +527 -0
- package/ui/.output/server/node_modules/css-tree/lib/lexer/match.js +630 -0
- package/ui/.output/server/node_modules/css-tree/lib/lexer/prepare-tokens.js +50 -0
- package/ui/.output/server/node_modules/css-tree/lib/lexer/search.js +61 -0
- package/ui/.output/server/node_modules/css-tree/lib/lexer/structure.js +169 -0
- package/ui/.output/server/node_modules/css-tree/lib/lexer/trace.js +66 -0
- package/ui/.output/server/node_modules/css-tree/lib/lexer/units.js +27 -0
- package/ui/.output/server/node_modules/css-tree/lib/parser/SyntaxError.js +70 -0
- package/ui/.output/server/node_modules/css-tree/lib/parser/create.js +412 -0
- package/ui/.output/server/node_modules/css-tree/lib/parser/sequence.js +43 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/atrule/container.js +28 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/atrule/font-face.js +8 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/atrule/import.js +104 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/atrule/index.js +23 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/atrule/layer.js +12 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/atrule/media.js +12 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/atrule/nest.js +12 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/atrule/page.js +12 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/atrule/scope.js +12 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/atrule/starting-style.js +8 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/atrule/supports.js +12 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/config/lexer.js +10 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/config/mix.js +122 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/config/parser.js +45 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/config/walker.js +5 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/create.js +55 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/function/expression.js +7 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/function/var.js +39 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/index.js +10 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/AnPlusB.js +292 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/Atrule.js +100 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/AtrulePrelude.js +47 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/AttributeSelector.js +147 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/Block.js +95 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/Brackets.js +35 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/CDC.js +19 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/CDO.js +19 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/ClassSelector.js +24 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/Combinator.js +54 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/Comment.js +33 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/Condition.js +123 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/Declaration.js +165 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/DeclarationList.js +62 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/Dimension.js +23 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/Feature.js +103 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/FeatureFunction.js +63 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/FeatureRange.js +133 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/Function.js +41 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/GeneralEnclosed.js +66 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/Hash.js +23 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/IdSelector.js +26 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/Identifier.js +18 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/Layer.js +28 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/LayerList.js +36 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/MediaQuery.js +102 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/MediaQueryList.js +34 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/NestingSelector.js +22 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/Nth.js +47 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/Number.js +18 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/Operator.js +21 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/Parentheses.js +34 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/Percentage.js +18 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/PseudoClassSelector.js +65 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/PseudoElementSelector.js +66 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/Ratio.js +68 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/Raw.js +41 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/Rule.js +51 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/Scope.js +66 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/Selector.js +31 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/SelectorList.js +35 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/String.js +19 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/StyleSheet.js +82 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/SupportsDeclaration.js +34 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/TypeSelector.js +52 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/UnicodeRange.js +156 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/Url.js +52 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/Value.js +19 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/WhiteSpace.js +27 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/index-parse.js +49 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/node/index.js +49 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/pseudo/index.js +56 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/pseudo/lang.js +33 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/scope/atrulePrelude.js +5 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/scope/default.js +85 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/scope/index.js +3 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/scope/selector.js +94 -0
- package/ui/.output/server/node_modules/css-tree/lib/syntax/scope/value.js +25 -0
- package/ui/.output/server/node_modules/css-tree/lib/tokenizer/OffsetToLocation.js +87 -0
- package/ui/.output/server/node_modules/css-tree/lib/tokenizer/TokenStream.js +366 -0
- package/ui/.output/server/node_modules/css-tree/lib/tokenizer/adopt-buffer.js +9 -0
- package/ui/.output/server/node_modules/css-tree/lib/tokenizer/char-code-definitions.js +212 -0
- package/ui/.output/server/node_modules/css-tree/lib/tokenizer/index.js +513 -0
- package/ui/.output/server/node_modules/css-tree/lib/tokenizer/names.js +28 -0
- package/ui/.output/server/node_modules/css-tree/lib/tokenizer/types.js +28 -0
- package/ui/.output/server/node_modules/css-tree/lib/tokenizer/utils.js +254 -0
- package/ui/.output/server/node_modules/css-tree/lib/utils/List.js +469 -0
- package/ui/.output/server/node_modules/css-tree/lib/utils/clone.js +21 -0
- package/ui/.output/server/node_modules/css-tree/lib/utils/create-custom-error.js +14 -0
- package/ui/.output/server/node_modules/css-tree/lib/utils/ident.js +101 -0
- package/ui/.output/server/node_modules/css-tree/lib/utils/names.js +106 -0
- package/ui/.output/server/node_modules/css-tree/lib/utils/string.js +99 -0
- package/ui/.output/server/node_modules/css-tree/lib/utils/url.js +108 -0
- package/ui/.output/server/node_modules/css-tree/lib/version.js +5 -0
- package/ui/.output/server/node_modules/css-tree/lib/walker/create.js +287 -0
- package/ui/.output/server/node_modules/css-tree/package.json +126 -0
- package/ui/.output/server/node_modules/data-urls/lib/parser.js +69 -0
- package/ui/.output/server/node_modules/data-urls/lib/utils.js +20 -0
- package/ui/.output/server/node_modules/data-urls/package.json +51 -0
- package/ui/.output/server/node_modules/debug/package.json +64 -0
- package/ui/.output/server/node_modules/debug/src/browser.js +272 -0
- package/ui/.output/server/node_modules/debug/src/common.js +292 -0
- package/ui/.output/server/node_modules/debug/src/index.js +10 -0
- package/ui/.output/server/node_modules/debug/src/node.js +263 -0
- package/ui/.output/server/node_modules/decimal.js/decimal.js +4951 -0
- package/ui/.output/server/node_modules/decimal.js/package.json +55 -0
- package/ui/.output/server/node_modules/devalue/index.js +4 -0
- package/ui/.output/server/node_modules/devalue/package.json +40 -0
- package/ui/.output/server/node_modules/devalue/src/base64.js +60 -0
- package/ui/.output/server/node_modules/devalue/src/constants.js +12 -0
- package/ui/.output/server/node_modules/devalue/src/parse.js +283 -0
- package/ui/.output/server/node_modules/devalue/src/stringify.js +401 -0
- package/ui/.output/server/node_modules/devalue/src/uneval.js +552 -0
- package/ui/.output/server/node_modules/devalue/src/utils.js +160 -0
- package/ui/.output/server/node_modules/dompurify/dist/purify.es.mjs +1747 -0
- package/ui/.output/server/node_modules/dompurify/package.json +169 -0
- package/ui/.output/server/node_modules/dotenv/lib/main.js +386 -0
- package/ui/.output/server/node_modules/dotenv/package.json +62 -0
- package/ui/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/ui/.output/server/node_modules/estree-walker/package.json +37 -0
- package/ui/.output/server/node_modules/has-flag/index.js +8 -0
- package/ui/.output/server/node_modules/has-flag/package.json +46 -0
- package/ui/.output/server/node_modules/hookable/dist/index.mjs +257 -0
- package/ui/.output/server/node_modules/hookable/package.json +53 -0
- package/ui/.output/server/node_modules/html-encoding-sniffer/lib/html-encoding-sniffer.js +299 -0
- package/ui/.output/server/node_modules/html-encoding-sniffer/package.json +34 -0
- package/ui/.output/server/node_modules/is-potential-custom-element-name/index.js +9 -0
- package/ui/.output/server/node_modules/is-potential-custom-element-name/package.json +35 -0
- package/ui/.output/server/node_modules/isomorphic-dompurify/dist/index.mjs +53 -0
- package/ui/.output/server/node_modules/isomorphic-dompurify/package.json +84 -0
- package/ui/.output/server/node_modules/jsdom/lib/api.js +373 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/css-property-definitions.js +16021 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/css-property-descriptors.js +1686 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/css-property-metadata.js +7698 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/event-sets.js +115 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/AbortController.js +143 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/AbortSignal.js +249 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/AbstractRange.js +171 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/AddEventListenerOptions.js +53 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/AssignedNodesOptions.js +28 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/Attr.js +219 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/BarProp.js +117 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/BeforeUnloadEvent.js +139 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/BinaryType.js +12 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/Blob.js +253 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/BlobCallback.js +30 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/BlobEvent.js +157 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/BlobEventInit.js +43 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/BlobPropertyBag.js +42 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CDATASection.js +109 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CSSConditionRule.js +122 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CSSContainerRule.js +135 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CSSCounterStyleRule.js +439 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CSSFontFaceRule.js +140 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CSSGroupingRule.js +188 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CSSImportRule.js +194 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CSSKeyframeRule.js +170 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CSSKeyframesRule.js +404 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CSSLayerBlockRule.js +122 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CSSLayerStatementRule.js +122 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CSSMediaRule.js +153 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CSSNamespaceRule.js +135 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CSSNestedDeclarations.js +140 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CSSPageRule.js +170 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CSSRule.js +197 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CSSRuleList.js +300 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CSSScopeRule.js +133 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CSSStyleDeclaration.js +497 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CSSStyleProperties.js +66822 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CSSStyleRule.js +170 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CSSStyleSheet.js +351 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CSSStyleSheetInit.js +66 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CSSSupportsRule.js +122 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CharacterData.js +455 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CloseEvent.js +168 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CloseEventInit.js +65 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/Comment.js +120 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CompositionEvent.js +219 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CompositionEventInit.js +32 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/Crypto.js +148 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CustomElementConstructor.js +34 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CustomElementRegistry.js +269 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CustomEvent.js +206 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/CustomEventInit.js +32 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/DOMException.js +222 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/DOMImplementation.js +237 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/DOMParser.js +140 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/DOMRect.js +276 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/DOMRectInit.js +76 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/DOMRectReadOnly.js +285 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/DOMStringMap.js +299 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/DOMTokenList.js +539 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/DeviceMotionEvent.js +183 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/DeviceMotionEventAcceleration.js +145 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/DeviceMotionEventAccelerationInit.js +61 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/DeviceMotionEventInit.js +70 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/DeviceMotionEventRotationRate.js +145 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/DeviceMotionEventRotationRateInit.js +61 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/DeviceOrientationEvent.js +183 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/DeviceOrientationEventInit.js +80 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/Document.js +4511 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/DocumentFragment.js +336 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/DocumentType.js +254 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/Element.js +3720 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/ElementCreationOptions.js +26 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/ElementDefinitionOptions.js +29 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/ElementInternals.js +2152 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/EndingType.js +12 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/ErrorEvent.js +192 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/ErrorEventInit.js +92 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/Event.js +430 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/EventHandlerNonNull.js +36 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/EventInit.js +58 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/EventListener.js +35 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/EventListenerOptions.js +28 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/EventModifierInit.js +221 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/EventTarget.js +259 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/External.js +130 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/File.js +185 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/FileList.js +298 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/FilePropertyBag.js +33 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/FileReader.js +468 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/FocusEvent.js +144 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/FocusEventInit.js +36 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/FormData.js +468 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/Function.js +42 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/GetRootNodeOptions.js +31 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLAnchorElement.js +1026 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLAreaElement.js +825 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLAudioElement.js +111 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLBRElement.js +156 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLBaseElement.js +196 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLBodyElement.js +880 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLButtonElement.js +525 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLCanvasElement.js +325 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLCollection.js +352 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLDListElement.js +159 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLDataElement.js +156 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLDataListElement.js +126 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLDetailsElement.js +159 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLDialogElement.js +159 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLDirectoryElement.js +159 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLDivElement.js +156 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLElement.js +3492 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLEmbedElement.js +381 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLFieldSetElement.js +332 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLFontElement.js +239 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLFormControlsCollection.js +318 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLFormElement.js +661 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLFrameElement.js +513 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLFrameSetElement.js +711 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLHRElement.js +323 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLHeadElement.js +111 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLHeadingElement.js +156 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLHtmlElement.js +156 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLIFrameElement.js +689 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLImageElement.js +906 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLInputElement.js +1931 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLLIElement.js +204 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLLabelElement.js +182 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLLegendElement.js +169 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLLinkElement.js +555 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLMapElement.js +171 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLMarqueeElement.js +558 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLMediaElement.js +900 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLMenuElement.js +159 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLMetaElement.js +279 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLMeterElement.js +368 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLModElement.js +217 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLOListElement.js +292 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLObjectElement.js +945 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLOptGroupElement.js +200 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLOptionElement.js +379 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLOptionsCollection.js +513 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLOutputElement.js +395 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLParagraphElement.js +156 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLParamElement.js +279 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLPictureElement.js +111 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLPreElement.js +163 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLProgressElement.js +232 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLQuoteElement.js +176 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLScriptElement.js +472 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLSelectElement.js +993 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLSlotElement.js +195 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLSourceElement.js +340 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLSpanElement.js +111 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLStyleElement.js +240 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLTableCaptionElement.js +156 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLTableCellElement.js +733 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLTableColElement.js +376 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLTableElement.js +802 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLTableRowElement.js +417 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLTableSectionElement.js +349 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLTemplateElement.js +124 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLTextAreaElement.js +1210 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLTimeElement.js +156 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLTitleElement.js +155 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLTrackElement.js +366 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLUListElement.js +200 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLUnknownElement.js +109 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HTMLVideoElement.js +344 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HashChangeEvent.js +157 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/HashChangeEventInit.js +50 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/Headers.js +418 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/History.js +266 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/InputEvent.js +168 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/InputEventInit.js +68 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/KeyboardEvent.js +445 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/KeyboardEventInit.js +116 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/Location.js +404 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/MediaList.js +391 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/MessageEvent.js +317 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/MessageEventInit.js +100 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/MimeType.js +156 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/MimeTypeArray.js +326 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/MouseEvent.js +595 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/MouseEventInit.js +189 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/MutationCallback.js +34 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/MutationObserver.js +178 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/MutationObserverInit.js +121 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/MutationRecord.js +229 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/NamedNodeMap.js +529 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/Navigator.js +326 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/Node.js +765 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/NodeFilter.js +75 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/NodeIterator.js +207 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/NodeList.js +302 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/OnBeforeUnloadEventHandlerNonNull.js +42 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/OnErrorEventHandlerNonNull.js +56 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/PageTransitionEvent.js +144 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/PageTransitionEventInit.js +35 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/Performance.js +142 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/Plugin.js +359 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/PluginArray.js +336 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/PointerEvent.js +324 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/PointerEventInit.js +241 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/PopStateEvent.js +144 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/PopStateEventInit.js +32 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/ProcessingInstruction.js +122 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/ProgressEvent.js +170 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/ProgressEventInit.js +65 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/PromiseRejectionEvent.js +157 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/PromiseRejectionEventInit.js +42 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/RadioNodeList.js +296 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/Range.js +643 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/SVGAnimatedPreserveAspectRatio.js +136 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/SVGAnimatedRect.js +136 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/SVGAnimatedString.js +149 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/SVGDefsElement.js +109 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/SVGDescElement.js +109 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/SVGElement.js +3157 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/SVGGElement.js +109 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/SVGGraphicsElement.js +139 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/SVGMetadataElement.js +109 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/SVGNumber.js +132 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/SVGPreserveAspectRatio.js +196 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/SVGRect.js +210 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/SVGSVGElement.js +786 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/SVGStringList.js +511 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/SVGSwitchElement.js +109 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/SVGSymbolElement.js +146 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/SVGTitleElement.js +109 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/Screen.js +180 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/Selection.js +571 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/SelectionMode.js +12 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/ShadowRoot.js +189 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/ShadowRootInit.js +30 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/ShadowRootMode.js +12 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/StaticRange.js +123 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/StaticRangeInit.js +72 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/Storage.js +397 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/StorageEvent.js +318 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/StorageEventInit.js +99 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/StyleSheet.js +222 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/StyleSheetList.js +300 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/SubmitEvent.js +144 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/SubmitEventInit.js +36 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/SupportedType.js +18 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/Text.js +170 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/TextDecodeOptions.js +28 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/TextDecoder.js +211 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/TextDecoderOptions.js +43 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/TextEncoder.js +176 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/TextTrackKind.js +12 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/TouchEvent.js +222 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/TouchEventInit.js +89 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/TransitionEvent.js +170 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/TransitionEventInit.js +65 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/TreeWalker.js +255 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/UIEvent.js +235 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/UIEventInit.js +62 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/ValidityState.js +249 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/WebSocket.js +480 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/WheelEvent.js +191 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/WheelEventInit.js +71 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/XMLDocument.js +109 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/XMLHttpRequest.js +663 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/XMLHttpRequestEventTarget.js +334 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/XMLHttpRequestResponseType.js +14 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/XMLHttpRequestUpload.js +109 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/XMLSerializer.js +132 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/idl/utils.js +252 -0
- package/ui/.output/server/node_modules/jsdom/lib/generated/js-globals.json +332 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/browser/Window.js +952 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/browser/default-stylesheet.css +415 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/browser/not-implemented.js +20 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/browser/parser/html.js +208 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/browser/parser/index.js +37 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/browser/parser/xml.js +202 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/browser/resources/async-resource-queue.js +114 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/browser/resources/decompress-interceptor.js +184 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/browser/resources/jsdom-dispatcher.js +769 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/browser/resources/per-document-resource-loader.js +116 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/browser/resources/request-interceptor.js +171 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/browser/resources/request-manager.js +33 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/browser/resources/resource-queue.js +142 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/browser/resources/stream-handler.js +89 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/level3/xpath.js +1875 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/aborting/AbortController-impl.js +17 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/aborting/AbortSignal-impl.js +131 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/attributes/Attr-impl.js +60 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/attributes/NamedNodeMap-impl.js +78 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/attributes.js +312 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/constraint-validation/DefaultConstraintValidation-impl.js +75 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/constraint-validation/ValidityState-impl.js +66 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/crypto/Crypto-impl.js +68 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/CSSConditionRule-impl.js +17 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/CSSContainerRule-impl.js +33 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/CSSCounterStyleRule-impl.js +45 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/CSSFontFaceRule-impl.js +24 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/CSSGroupingRule-impl.js +55 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/CSSImportRule-impl.js +51 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/CSSKeyframeRule-impl.js +71 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/CSSKeyframesRule-impl.js +82 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/CSSLayerBlockRule-impl.js +18 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/CSSLayerStatementRule-impl.js +16 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/CSSMediaRule-impl.js +34 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/CSSNamespaceRule-impl.js +28 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/CSSNestedDeclarations-impl.js +19 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/CSSPageRule-impl.js +86 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/CSSRule-impl.js +24 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/CSSRuleList-impl.js +219 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/CSSScopeRule-impl.js +25 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/CSSStyleDeclaration-impl.js +741 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/CSSStyleProperties-impl.js +18 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/CSSStyleRule-impl.js +66 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/CSSStyleSheet-impl.js +133 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/CSSSupportsRule-impl.js +68 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/ElementCSSInlineStyle-impl.js +15 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/MediaList-impl.js +141 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/StyleSheet-impl.js +22 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/StyleSheetList-impl.js +38 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/helpers/computed-style.js +307 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/helpers/css-parser.js +1032 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/helpers/css-values.js +835 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/helpers/generic-property-descriptor.js +145 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/helpers/patched-csstree.js +12 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/helpers/shorthand-properties.js +1498 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/helpers/stylesheets.js +155 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/helpers/system-colors.js +157 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/background.js +458 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/backgroundAttachment.js +64 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/backgroundClip.js +64 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/backgroundColor.js +53 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/backgroundImage.js +66 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/backgroundOrigin.js +64 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/backgroundPosition.js +205 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/backgroundRepeat.js +97 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/backgroundSize.js +131 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/border.js +115 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/borderBottom.js +105 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/borderBottomColor.js +59 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/borderBottomStyle.js +59 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/borderBottomWidth.js +62 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/borderColor.js +114 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/borderLeft.js +105 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/borderLeftColor.js +59 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/borderLeftStyle.js +59 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/borderLeftWidth.js +62 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/borderRight.js +105 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/borderRightColor.js +59 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/borderRightStyle.js +59 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/borderRightWidth.js +62 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/borderSpacing.js +70 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/borderStyle.js +114 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/borderTop.js +105 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/borderTopColor.js +59 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/borderTopStyle.js +59 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/borderTopWidth.js +62 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/borderWidth.js +115 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/bottom.js +52 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/clip.js +81 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/display.js +217 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/flex.js +187 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/flexBasis.js +55 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/flexGrow.js +55 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/flexShrink.js +55 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/font.js +273 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/fontFamily.js +107 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/fontSize.js +56 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/fontStyle.js +74 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/fontVariant.js +69 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/fontWeight.js +60 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/height.js +53 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/left.js +52 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/lineHeight.js +55 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/margin.js +84 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/marginBottom.js +58 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/marginLeft.js +58 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/marginRight.js +58 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/marginTop.js +58 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/opacity.js +52 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/padding.js +85 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/paddingBottom.js +59 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/paddingLeft.js +59 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/paddingRight.js +59 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/paddingTop.js +59 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/right.js +52 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/top.js +52 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/css/properties/width.js +53 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/custom-elements/CustomElementRegistry-impl.js +279 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/custom-elements/ElementInternals-impl.js +56 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/deviceorientation/DeviceMotionEventAcceleration-impl.js +7 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/deviceorientation/DeviceMotionEventRotationRate-impl.js +7 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/documents.js +15 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/domparsing/DOMParser-impl.js +59 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/domparsing/InnerHTML-impl.js +30 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/domparsing/XMLSerializer-impl.js +18 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/domparsing/parse5-adapter-serialization.js +63 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/domparsing/serialization.js +36 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/encoding/TextDecoder-impl.js +25 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/encoding/TextEncoder-impl.js +26 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/events/BeforeUnloadEvent-impl.js +12 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/events/BlobEvent-impl.js +14 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/events/CloseEvent-impl.js +10 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/events/CompositionEvent-impl.js +20 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/events/CustomEvent-impl.js +21 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/events/DeviceMotionEvent-impl.js +49 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/events/DeviceOrientationEvent-impl.js +10 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/events/ErrorEvent-impl.js +14 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/events/Event-impl.js +195 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/events/EventModifierMixin-impl.js +24 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js +438 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/events/FocusEvent-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/events/HashChangeEvent-impl.js +14 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/events/InputEvent-impl.js +11 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/events/KeyboardEvent-impl.js +29 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/events/MessageEvent-impl.js +25 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js +72 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/events/PageTransitionEvent-impl.js +20 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/events/PointerEvent-impl.js +21 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/events/PopStateEvent-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/events/ProgressEvent-impl.js +14 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/events/PromiseRejectionEvent-impl.js +14 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/events/StorageEvent-impl.js +26 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/events/SubmitEvent-impl.js +13 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/events/TouchEvent-impl.js +14 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/events/TransitionEvent-impl.js +10 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/events/UIEvent-impl.js +43 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/events/WheelEvent-impl.js +12 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/fetch/Headers-impl.js +173 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/fetch/header-list.js +158 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/fetch/header-types.js +205 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/fetch/header-utils.js +26 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/file-api/Blob-impl.js +125 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/file-api/File-impl.js +12 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/file-api/FileList-impl.js +15 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/file-api/FileReader-impl.js +148 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/geometry/DOMRect-impl.js +39 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/geometry/DOMRectReadOnly-impl.js +72 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/helpers/binary-data.js +63 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/helpers/by-id-cache.js +67 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/helpers/create-element.js +329 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/helpers/create-event-accessor.js +209 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/helpers/custom-elements.js +272 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/helpers/dates-and-times.js +270 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/helpers/details.js +15 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/helpers/encoding.js +60 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/helpers/events.js +24 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/helpers/focusing.js +104 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/helpers/form-controls.js +309 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/helpers/html-constructor.js +78 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/helpers/internal-constants.js +12 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/helpers/is-window.js +18 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/helpers/iterable-weak-set.js +48 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/helpers/json.js +7 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/helpers/mutation-observers.js +198 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/helpers/namespaces.js +16 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/helpers/node.js +108 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/helpers/number-and-date-inputs.js +195 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/helpers/ordered-set.js +104 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/helpers/page-transition-event.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js +75 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/helpers/shadow-dom.js +285 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/helpers/strings.js +168 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/helpers/svg/basic-types.js +41 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/helpers/svg/render.js +46 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/helpers/text.js +19 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/helpers/traversal.js +72 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/helpers/validate-names.js +65 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/hr-time/Performance-impl.js +22 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/interfaces.js +273 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/mutation-observer/MutationObserver-impl.js +95 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/mutation-observer/MutationRecord-impl.js +37 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/navigator/MimeType-impl.js +3 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/navigator/MimeTypeArray-impl.js +21 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/navigator/Navigator-impl.js +29 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorConcurrentHardware-impl.js +8 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorCookies-impl.js +7 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorID-impl.js +37 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorLanguage-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorOnLine-impl.js +7 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorPlugins-impl.js +8 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/navigator/Plugin-impl.js +3 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/navigator/PluginArray-impl.js +23 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/node-document-position.js +10 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/node-type.js +16 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/node.js +331 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/CDATASection-impl.js +16 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/CharacterData-impl.js +118 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/ChildNode-impl.js +80 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/Comment-impl.js +20 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/DOMImplementation-impl.js +120 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/DOMStringMap-impl.js +64 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/DOMTokenList-impl.js +171 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js +1015 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/DocumentFragment-impl.js +44 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/DocumentOrShadowRoot-impl.js +28 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/DocumentType-impl.js +24 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/Element-impl.js +584 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/GlobalEventHandlers-impl.js +81 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAnchorElement-impl.js +50 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAreaElement-impl.js +43 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAudioElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBRElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBaseElement-impl.js +44 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBodyElement-impl.js +12 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLButtonElement-impl.js +79 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js +117 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLCollection-impl.js +96 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDListElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDataElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDataListElement-impl.js +20 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDetailsElement-impl.js +35 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDialogElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDirectoryElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDivElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js +211 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLEmbedElement-impl.js +8 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFieldSetElement-impl.js +43 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFontElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFormControlsCollection-impl.js +33 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFormElement-impl.js +248 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFrameElement-impl.js +266 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFrameSetElement-impl.js +12 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHRElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHeadElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHeadingElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHtmlElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHyperlinkElementUtils-impl.js +368 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLIFrameElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLImageElement-impl.js +127 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLInputElement-impl.js +1097 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLIElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLabelElement-impl.js +94 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLegendElement-impl.js +18 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLinkElement-impl.js +107 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMapElement-impl.js +13 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMarqueeElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMediaElement-impl.js +126 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMenuElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMetaElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMeterElement-impl.js +180 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLModElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOListElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLObjectElement-impl.js +26 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOptGroupElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOptionElement-impl.js +146 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOptionsCollection-impl.js +110 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOrSVGElement-impl.js +88 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOutputElement-impl.js +88 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLParagraphElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLParamElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLPictureElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLPreElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLProgressElement-impl.js +72 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLQuoteElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js +255 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSelectElement-impl.js +283 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSlotElement-impl.js +59 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSourceElement-impl.js +8 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSpanElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLStyleElement-impl.js +83 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableCaptionElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableCellElement-impl.js +40 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableColElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableElement-impl.js +236 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableRowElement-impl.js +88 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableSectionElement-impl.js +61 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTemplateElement-impl.js +67 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTextAreaElement-impl.js +244 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTimeElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTitleElement-impl.js +18 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTrackElement-impl.js +13 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLUListElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLUnknownElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/HTMLVideoElement-impl.js +17 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js +1182 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/NodeList-impl.js +43 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/NonDocumentTypeChildNode-impl.js +28 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/NonElementParentNode-impl.js +11 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/ParentNode-impl.js +90 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/ProcessingInstruction-impl.js +22 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/RadioNodeList-impl.js +49 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/SVGDefsElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/SVGDescElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/SVGElement-impl.js +64 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/SVGGElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/SVGGraphicsElement-impl.js +16 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/SVGMetadataElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/SVGSVGElement-impl.js +40 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/SVGSwitchElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/SVGSymbolElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/SVGTests-impl.js +42 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/SVGTitleElement-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/ShadowRoot-impl.js +41 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/Slotable-impl.js +48 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/Text-impl.js +96 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/WindowEventHandlers-impl.js +14 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/nodes/XMLDocument-impl.js +4 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/range/AbstractRange-impl.js +43 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/range/Range-impl.js +902 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/range/StaticRange-impl.js +39 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/range/boundary-point.js +47 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/selection/Selection-impl.js +358 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/svg/SVGAnimatedPreserveAspectRatio-impl.js +24 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/svg/SVGAnimatedRect-impl.js +122 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/svg/SVGAnimatedString-impl.js +42 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/svg/SVGListBase.js +195 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/svg/SVGNumber-impl.js +48 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/svg/SVGPreserveAspectRatio-impl.js +100 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/svg/SVGRect-impl.js +143 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/svg/SVGStringList-impl.js +16 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/traversal/NodeIterator-impl.js +107 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/traversal/TreeWalker-impl.js +217 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/traversal/helpers.js +44 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/webidl/DOMException-impl.js +46 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/websockets/WebSocket-impl.js +211 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/webstorage/Storage-impl.js +102 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/window/BarProp-impl.js +10 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/window/External-impl.js +9 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/window/History-impl.js +148 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/window/Location-impl.js +227 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/window/Screen-impl.js +13 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/window/SessionHistory.js +163 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/window/navigation.js +87 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/window-properties.js +241 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/xhr/FormData-impl.js +191 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js +1087 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequestEventTarget-impl.js +17 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequestUpload-impl.js +4 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/xhr/multipart-form-data.js +99 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/xhr/xhr-sync-worker.js +57 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js +170 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/utils.js +105 -0
- package/ui/.output/server/node_modules/jsdom/lib/jsdom/virtual-console.js +46 -0
- package/ui/.output/server/node_modules/jsdom/package.json +126 -0
- package/ui/.output/server/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
- package/ui/.output/server/node_modules/lru-cache/dist/commonjs/package.json +3 -0
- package/ui/.output/server/node_modules/lru-cache/package.json +154 -0
- package/ui/.output/server/node_modules/marked/lib/marked.esm.js +77 -0
- package/ui/.output/server/node_modules/marked/package.json +103 -0
- package/ui/.output/server/node_modules/mdn-data/css/at-rules.json +581 -0
- package/ui/.output/server/node_modules/mdn-data/css/properties.json +11881 -0
- package/ui/.output/server/node_modules/mdn-data/css/syntaxes.json +1136 -0
- package/ui/.output/server/node_modules/mdn-data/package.json +38 -0
- package/ui/.output/server/node_modules/ms/index.js +162 -0
- package/ui/.output/server/node_modules/ms/package.json +38 -0
- package/ui/.output/server/node_modules/parse5/dist/common/doctype.js +114 -0
- package/ui/.output/server/node_modules/parse5/dist/common/error-codes.js +63 -0
- package/ui/.output/server/node_modules/parse5/dist/common/foreign-content.js +228 -0
- package/ui/.output/server/node_modules/parse5/dist/common/html.js +523 -0
- package/ui/.output/server/node_modules/parse5/dist/common/token.js +20 -0
- package/ui/.output/server/node_modules/parse5/dist/common/unicode.js +62 -0
- package/ui/.output/server/node_modules/parse5/dist/index.js +42 -0
- package/ui/.output/server/node_modules/parse5/dist/parser/formatting-element-list.js +110 -0
- package/ui/.output/server/node_modules/parse5/dist/parser/index.js +3245 -0
- package/ui/.output/server/node_modules/parse5/dist/parser/open-element-stack.js +324 -0
- package/ui/.output/server/node_modules/parse5/dist/serializer/index.js +168 -0
- package/ui/.output/server/node_modules/parse5/dist/tokenizer/index.js +2712 -0
- package/ui/.output/server/node_modules/parse5/dist/tokenizer/preprocessor.js +196 -0
- package/ui/.output/server/node_modules/parse5/dist/tree-adapters/default.js +173 -0
- package/ui/.output/server/node_modules/parse5/package.json +53 -0
- package/ui/.output/server/node_modules/perfect-debounce/dist/index.mjs +89 -0
- package/ui/.output/server/node_modules/perfect-debounce/package.json +41 -0
- package/ui/.output/server/node_modules/punycode/package.json +58 -0
- package/ui/.output/server/node_modules/punycode/punycode.js +443 -0
- package/ui/.output/server/node_modules/saxes/package.json +71 -0
- package/ui/.output/server/node_modules/saxes/saxes.js +2053 -0
- package/ui/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
- package/ui/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/ui/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
- package/ui/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/ui/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/ui/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/ui/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/ui/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/ui/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
- package/ui/.output/server/node_modules/source-map-js/lib/util.js +594 -0
- package/ui/.output/server/node_modules/source-map-js/package.json +71 -0
- package/ui/.output/server/node_modules/source-map-js/source-map.js +8 -0
- package/ui/.output/server/node_modules/supports-color/index.js +135 -0
- package/ui/.output/server/node_modules/supports-color/package.json +53 -0
- package/ui/.output/server/node_modules/symbol-tree/lib/SymbolTree.js +838 -0
- package/ui/.output/server/node_modules/symbol-tree/lib/SymbolTreeNode.js +54 -0
- package/ui/.output/server/node_modules/symbol-tree/lib/TreeIterator.js +69 -0
- package/ui/.output/server/node_modules/symbol-tree/lib/TreePosition.js +11 -0
- package/ui/.output/server/node_modules/symbol-tree/package.json +47 -0
- package/ui/.output/server/node_modules/tailwind-merge/dist/bundle-mjs.mjs +2559 -0
- package/ui/.output/server/node_modules/tailwind-merge/package.json +91 -0
- package/ui/.output/server/node_modules/tldts/dist/cjs/index.js +1170 -0
- package/ui/.output/server/node_modules/tldts/package.json +89 -0
- package/ui/.output/server/node_modules/tough-cookie/dist/index.cjs +2282 -0
- package/ui/.output/server/node_modules/tough-cookie/package.json +148 -0
- package/ui/.output/server/node_modules/tr46/index.js +344 -0
- package/ui/.output/server/node_modules/tr46/lib/mappingTable.json +1 -0
- package/ui/.output/server/node_modules/tr46/lib/regexes.js +29 -0
- package/ui/.output/server/node_modules/tr46/lib/statusMapping.js +9 -0
- package/ui/.output/server/node_modules/tr46/package.json +47 -0
- package/ui/.output/server/node_modules/ufo/dist/index.mjs +645 -0
- package/ui/.output/server/node_modules/ufo/package.json +48 -0
- package/ui/.output/server/node_modules/undici/index.js +234 -0
- package/ui/.output/server/node_modules/undici/lib/api/abort-signal.js +59 -0
- package/ui/.output/server/node_modules/undici/lib/api/api-connect.js +110 -0
- package/ui/.output/server/node_modules/undici/lib/api/api-pipeline.js +252 -0
- package/ui/.output/server/node_modules/undici/lib/api/api-request.js +214 -0
- package/ui/.output/server/node_modules/undici/lib/api/api-stream.js +209 -0
- package/ui/.output/server/node_modules/undici/lib/api/api-upgrade.js +111 -0
- package/ui/.output/server/node_modules/undici/lib/api/index.js +7 -0
- package/ui/.output/server/node_modules/undici/lib/api/readable.js +580 -0
- package/ui/.output/server/node_modules/undici/lib/cache/memory-cache-store.js +234 -0
- package/ui/.output/server/node_modules/undici/lib/cache/sqlite-cache-store.js +461 -0
- package/ui/.output/server/node_modules/undici/lib/core/connect.js +153 -0
- package/ui/.output/server/node_modules/undici/lib/core/constants.js +143 -0
- package/ui/.output/server/node_modules/undici/lib/core/diagnostics.js +227 -0
- package/ui/.output/server/node_modules/undici/lib/core/errors.js +477 -0
- package/ui/.output/server/node_modules/undici/lib/core/request.js +453 -0
- package/ui/.output/server/node_modules/undici/lib/core/socks5-client.js +412 -0
- package/ui/.output/server/node_modules/undici/lib/core/socks5-utils.js +198 -0
- package/ui/.output/server/node_modules/undici/lib/core/symbols.js +75 -0
- package/ui/.output/server/node_modules/undici/lib/core/tree.js +160 -0
- package/ui/.output/server/node_modules/undici/lib/core/util.js +992 -0
- package/ui/.output/server/node_modules/undici/lib/dispatcher/agent.js +158 -0
- package/ui/.output/server/node_modules/undici/lib/dispatcher/balanced-pool.js +219 -0
- package/ui/.output/server/node_modules/undici/lib/dispatcher/client-h1.js +1654 -0
- package/ui/.output/server/node_modules/undici/lib/dispatcher/client-h2.js +995 -0
- package/ui/.output/server/node_modules/undici/lib/dispatcher/client.js +663 -0
- package/ui/.output/server/node_modules/undici/lib/dispatcher/dispatcher-base.js +165 -0
- package/ui/.output/server/node_modules/undici/lib/dispatcher/dispatcher.js +48 -0
- package/ui/.output/server/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +146 -0
- package/ui/.output/server/node_modules/undici/lib/dispatcher/fixed-queue.js +135 -0
- package/ui/.output/server/node_modules/undici/lib/dispatcher/h2c-client.js +51 -0
- package/ui/.output/server/node_modules/undici/lib/dispatcher/pool-base.js +214 -0
- package/ui/.output/server/node_modules/undici/lib/dispatcher/pool.js +118 -0
- package/ui/.output/server/node_modules/undici/lib/dispatcher/proxy-agent.js +318 -0
- package/ui/.output/server/node_modules/undici/lib/dispatcher/retry-agent.js +35 -0
- package/ui/.output/server/node_modules/undici/lib/dispatcher/round-robin-pool.js +137 -0
- package/ui/.output/server/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +249 -0
- package/ui/.output/server/node_modules/undici/lib/encoding/index.js +33 -0
- package/ui/.output/server/node_modules/undici/lib/global.js +50 -0
- package/ui/.output/server/node_modules/undici/lib/handler/cache-handler.js +578 -0
- package/ui/.output/server/node_modules/undici/lib/handler/cache-revalidation-handler.js +124 -0
- package/ui/.output/server/node_modules/undici/lib/handler/decorator-handler.js +67 -0
- package/ui/.output/server/node_modules/undici/lib/handler/deduplication-handler.js +460 -0
- package/ui/.output/server/node_modules/undici/lib/handler/redirect-handler.js +238 -0
- package/ui/.output/server/node_modules/undici/lib/handler/retry-handler.js +394 -0
- package/ui/.output/server/node_modules/undici/lib/handler/unwrap-handler.js +100 -0
- package/ui/.output/server/node_modules/undici/lib/handler/wrap-handler.js +105 -0
- package/ui/.output/server/node_modules/undici/lib/interceptor/cache.js +495 -0
- package/ui/.output/server/node_modules/undici/lib/interceptor/decompress.js +259 -0
- package/ui/.output/server/node_modules/undici/lib/interceptor/deduplicate.js +117 -0
- package/ui/.output/server/node_modules/undici/lib/interceptor/dns.js +571 -0
- package/ui/.output/server/node_modules/undici/lib/interceptor/dump.js +112 -0
- package/ui/.output/server/node_modules/undici/lib/interceptor/redirect.js +21 -0
- package/ui/.output/server/node_modules/undici/lib/interceptor/response-error.js +95 -0
- package/ui/.output/server/node_modules/undici/lib/interceptor/retry.js +19 -0
- package/ui/.output/server/node_modules/undici/lib/llhttp/constants.js +531 -0
- package/ui/.output/server/node_modules/undici/lib/llhttp/llhttp-wasm.js +15 -0
- package/ui/.output/server/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +15 -0
- package/ui/.output/server/node_modules/undici/lib/llhttp/utils.js +12 -0
- package/ui/.output/server/node_modules/undici/lib/mock/mock-agent.js +232 -0
- package/ui/.output/server/node_modules/undici/lib/mock/mock-call-history.js +248 -0
- package/ui/.output/server/node_modules/undici/lib/mock/mock-client.js +68 -0
- package/ui/.output/server/node_modules/undici/lib/mock/mock-errors.js +29 -0
- package/ui/.output/server/node_modules/undici/lib/mock/mock-interceptor.js +209 -0
- package/ui/.output/server/node_modules/undici/lib/mock/mock-pool.js +68 -0
- package/ui/.output/server/node_modules/undici/lib/mock/mock-symbols.js +32 -0
- package/ui/.output/server/node_modules/undici/lib/mock/mock-utils.js +486 -0
- package/ui/.output/server/node_modules/undici/lib/mock/pending-interceptors-formatter.js +43 -0
- package/ui/.output/server/node_modules/undici/lib/mock/snapshot-agent.js +353 -0
- package/ui/.output/server/node_modules/undici/lib/mock/snapshot-recorder.js +588 -0
- package/ui/.output/server/node_modules/undici/lib/mock/snapshot-utils.js +158 -0
- package/ui/.output/server/node_modules/undici/lib/util/cache.js +408 -0
- package/ui/.output/server/node_modules/undici/lib/util/date.js +653 -0
- package/ui/.output/server/node_modules/undici/lib/util/promise.js +28 -0
- package/ui/.output/server/node_modules/undici/lib/util/runtime-features.js +124 -0
- package/ui/.output/server/node_modules/undici/lib/util/stats.js +32 -0
- package/ui/.output/server/node_modules/undici/lib/util/timers.js +425 -0
- package/ui/.output/server/node_modules/undici/lib/web/cache/cache.js +864 -0
- package/ui/.output/server/node_modules/undici/lib/web/cache/cachestorage.js +152 -0
- package/ui/.output/server/node_modules/undici/lib/web/cache/util.js +45 -0
- package/ui/.output/server/node_modules/undici/lib/web/cookies/constants.js +12 -0
- package/ui/.output/server/node_modules/undici/lib/web/cookies/index.js +199 -0
- package/ui/.output/server/node_modules/undici/lib/web/cookies/parse.js +322 -0
- package/ui/.output/server/node_modules/undici/lib/web/cookies/util.js +282 -0
- package/ui/.output/server/node_modules/undici/lib/web/eventsource/eventsource-stream.js +399 -0
- package/ui/.output/server/node_modules/undici/lib/web/eventsource/eventsource.js +501 -0
- package/ui/.output/server/node_modules/undici/lib/web/eventsource/util.js +29 -0
- package/ui/.output/server/node_modules/undici/lib/web/fetch/body.js +509 -0
- package/ui/.output/server/node_modules/undici/lib/web/fetch/constants.js +131 -0
- package/ui/.output/server/node_modules/undici/lib/web/fetch/data-url.js +596 -0
- package/ui/.output/server/node_modules/undici/lib/web/fetch/formdata-parser.js +586 -0
- package/ui/.output/server/node_modules/undici/lib/web/fetch/formdata.js +259 -0
- package/ui/.output/server/node_modules/undici/lib/web/fetch/global.js +40 -0
- package/ui/.output/server/node_modules/undici/lib/web/fetch/headers.js +719 -0
- package/ui/.output/server/node_modules/undici/lib/web/fetch/index.js +2413 -0
- package/ui/.output/server/node_modules/undici/lib/web/fetch/request.js +1115 -0
- package/ui/.output/server/node_modules/undici/lib/web/fetch/response.js +641 -0
- package/ui/.output/server/node_modules/undici/lib/web/fetch/util.js +1522 -0
- package/ui/.output/server/node_modules/undici/lib/web/infra/index.js +229 -0
- package/ui/.output/server/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +307 -0
- package/ui/.output/server/node_modules/undici/lib/web/webidl/index.js +1006 -0
- package/ui/.output/server/node_modules/undici/lib/web/websocket/connection.js +329 -0
- package/ui/.output/server/node_modules/undici/lib/web/websocket/constants.js +126 -0
- package/ui/.output/server/node_modules/undici/lib/web/websocket/events.js +331 -0
- package/ui/.output/server/node_modules/undici/lib/web/websocket/frame.js +133 -0
- package/ui/.output/server/node_modules/undici/lib/web/websocket/permessage-deflate.js +118 -0
- package/ui/.output/server/node_modules/undici/lib/web/websocket/receiver.js +450 -0
- package/ui/.output/server/node_modules/undici/lib/web/websocket/sender.js +109 -0
- package/ui/.output/server/node_modules/undici/lib/web/websocket/stream/websocketerror.js +104 -0
- package/ui/.output/server/node_modules/undici/lib/web/websocket/stream/websocketstream.js +491 -0
- package/ui/.output/server/node_modules/undici/lib/web/websocket/util.js +347 -0
- package/ui/.output/server/node_modules/undici/lib/web/websocket/websocket.js +751 -0
- package/ui/.output/server/node_modules/undici/package.json +152 -0
- package/ui/.output/server/node_modules/unhead/dist/index.mjs +9 -0
- package/ui/.output/server/node_modules/unhead/dist/parser.mjs +508 -0
- package/ui/.output/server/node_modules/unhead/dist/plugins.mjs +101 -0
- package/ui/.output/server/node_modules/unhead/dist/scripts.mjs +30 -0
- package/ui/.output/server/node_modules/unhead/dist/server.mjs +180 -0
- package/ui/.output/server/node_modules/unhead/dist/shared/unhead.B3VbJo7Y.mjs +207 -0
- package/ui/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
- package/ui/.output/server/node_modules/unhead/dist/shared/unhead.BnoAbrHA.mjs +269 -0
- package/ui/.output/server/node_modules/unhead/dist/shared/unhead.CaI5ZD4O.mjs +182 -0
- package/ui/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +71 -0
- package/ui/.output/server/node_modules/unhead/dist/shared/unhead.D4vSFytZ.mjs +236 -0
- package/ui/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
- package/ui/.output/server/node_modules/unhead/dist/shared/unhead.Dh1cQCTe.mjs +44 -0
- package/ui/.output/server/node_modules/unhead/dist/shared/unhead.TxTMM7cM.mjs +166 -0
- package/ui/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
- package/ui/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
- package/ui/.output/server/node_modules/unhead/package.json +105 -0
- package/ui/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/ui/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/ui/.output/server/node_modules/vue/index.js +7 -0
- package/ui/.output/server/node_modules/vue/index.mjs +1 -0
- package/ui/.output/server/node_modules/vue/package.json +112 -0
- package/ui/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/ui/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +301 -0
- package/ui/.output/server/node_modules/vue-bundle-renderer/package.json +55 -0
- package/ui/.output/server/node_modules/vue-router/dist/devtools-EWN81iOl.mjs +1220 -0
- package/ui/.output/server/node_modules/vue-router/dist/vue-router.mjs +1557 -0
- package/ui/.output/server/node_modules/vue-router/package.json +153 -0
- package/ui/.output/server/node_modules/vue-router/vue-router.node.mjs +2 -0
- package/ui/.output/server/node_modules/w3c-xmlserializer/lib/attributes.js +125 -0
- package/ui/.output/server/node_modules/w3c-xmlserializer/lib/constants.js +44 -0
- package/ui/.output/server/node_modules/w3c-xmlserializer/lib/serialize.js +365 -0
- package/ui/.output/server/node_modules/w3c-xmlserializer/package.json +32 -0
- package/ui/.output/server/node_modules/webidl-conversions/lib/index.js +436 -0
- package/ui/.output/server/node_modules/webidl-conversions/package.json +34 -0
- package/ui/.output/server/node_modules/whatwg-mimetype/lib/index.js +4 -0
- package/ui/.output/server/node_modules/whatwg-mimetype/lib/mime-type-parameters.js +70 -0
- package/ui/.output/server/node_modules/whatwg-mimetype/lib/mime-type.js +127 -0
- package/ui/.output/server/node_modules/whatwg-mimetype/lib/parser.js +105 -0
- package/ui/.output/server/node_modules/whatwg-mimetype/lib/serializer.js +25 -0
- package/ui/.output/server/node_modules/whatwg-mimetype/lib/sniff.js +751 -0
- package/ui/.output/server/node_modules/whatwg-mimetype/lib/utils.js +60 -0
- package/ui/.output/server/node_modules/whatwg-mimetype/package.json +44 -0
- package/ui/.output/server/node_modules/whatwg-url/index.js +27 -0
- package/ui/.output/server/node_modules/whatwg-url/lib/Function.js +42 -0
- package/ui/.output/server/node_modules/whatwg-url/lib/URL-impl.js +234 -0
- package/ui/.output/server/node_modules/whatwg-url/lib/URL.js +499 -0
- package/ui/.output/server/node_modules/whatwg-url/lib/URLSearchParams-impl.js +135 -0
- package/ui/.output/server/node_modules/whatwg-url/lib/URLSearchParams.js +505 -0
- package/ui/.output/server/node_modules/whatwg-url/lib/encoding.js +16 -0
- package/ui/.output/server/node_modules/whatwg-url/lib/infra.js +26 -0
- package/ui/.output/server/node_modules/whatwg-url/lib/percent-encoding.js +147 -0
- package/ui/.output/server/node_modules/whatwg-url/lib/url-state-machine.js +1284 -0
- package/ui/.output/server/node_modules/whatwg-url/lib/urlencoded.js +89 -0
- package/ui/.output/server/node_modules/whatwg-url/lib/utils.js +252 -0
- package/ui/.output/server/node_modules/whatwg-url/package.json +57 -0
- package/ui/.output/server/node_modules/whatwg-url/webidl2js-wrapper.js +7 -0
- package/ui/.output/server/node_modules/xml-name-validator/lib/xml-name-validator.js +9 -0
- package/ui/.output/server/node_modules/xml-name-validator/package.json +30 -0
- package/ui/.output/server/node_modules/xmlchars/package.json +51 -0
- package/ui/.output/server/node_modules/xmlchars/xml/1.0/ed5.js +105 -0
- package/ui/.output/server/node_modules/xmlchars/xml/1.1/ed2.js +145 -0
- package/ui/.output/server/node_modules/xmlchars/xmlns/1.0/ed3.js +65 -0
- package/ui/.output/server/package.json +78 -0
- package/ui/package.json +27 -0
- package/CONTRIBUTING.md +0 -78
- package/scripts/run-tests.cjs +0 -18
|
@@ -0,0 +1,2712 @@
|
|
|
1
|
+
import { Preprocessor } from './preprocessor.js';
|
|
2
|
+
import { CODE_POINTS as $, SEQUENCES as $$, REPLACEMENT_CHARACTER, isSurrogate, isUndefinedCodePoint, isControlCodePoint, } from '../common/unicode.js';
|
|
3
|
+
import { TokenType, getTokenAttr, } from '../common/token.js';
|
|
4
|
+
import { htmlDecodeTree, EntityDecoder, DecodingMode } from 'entities/decode';
|
|
5
|
+
import { ERR } from '../common/error-codes.js';
|
|
6
|
+
import { TAG_ID, getTagID } from '../common/html.js';
|
|
7
|
+
//States
|
|
8
|
+
var State;
|
|
9
|
+
(function (State) {
|
|
10
|
+
State[State["DATA"] = 0] = "DATA";
|
|
11
|
+
State[State["RCDATA"] = 1] = "RCDATA";
|
|
12
|
+
State[State["RAWTEXT"] = 2] = "RAWTEXT";
|
|
13
|
+
State[State["SCRIPT_DATA"] = 3] = "SCRIPT_DATA";
|
|
14
|
+
State[State["PLAINTEXT"] = 4] = "PLAINTEXT";
|
|
15
|
+
State[State["TAG_OPEN"] = 5] = "TAG_OPEN";
|
|
16
|
+
State[State["END_TAG_OPEN"] = 6] = "END_TAG_OPEN";
|
|
17
|
+
State[State["TAG_NAME"] = 7] = "TAG_NAME";
|
|
18
|
+
State[State["RCDATA_LESS_THAN_SIGN"] = 8] = "RCDATA_LESS_THAN_SIGN";
|
|
19
|
+
State[State["RCDATA_END_TAG_OPEN"] = 9] = "RCDATA_END_TAG_OPEN";
|
|
20
|
+
State[State["RCDATA_END_TAG_NAME"] = 10] = "RCDATA_END_TAG_NAME";
|
|
21
|
+
State[State["RAWTEXT_LESS_THAN_SIGN"] = 11] = "RAWTEXT_LESS_THAN_SIGN";
|
|
22
|
+
State[State["RAWTEXT_END_TAG_OPEN"] = 12] = "RAWTEXT_END_TAG_OPEN";
|
|
23
|
+
State[State["RAWTEXT_END_TAG_NAME"] = 13] = "RAWTEXT_END_TAG_NAME";
|
|
24
|
+
State[State["SCRIPT_DATA_LESS_THAN_SIGN"] = 14] = "SCRIPT_DATA_LESS_THAN_SIGN";
|
|
25
|
+
State[State["SCRIPT_DATA_END_TAG_OPEN"] = 15] = "SCRIPT_DATA_END_TAG_OPEN";
|
|
26
|
+
State[State["SCRIPT_DATA_END_TAG_NAME"] = 16] = "SCRIPT_DATA_END_TAG_NAME";
|
|
27
|
+
State[State["SCRIPT_DATA_ESCAPE_START"] = 17] = "SCRIPT_DATA_ESCAPE_START";
|
|
28
|
+
State[State["SCRIPT_DATA_ESCAPE_START_DASH"] = 18] = "SCRIPT_DATA_ESCAPE_START_DASH";
|
|
29
|
+
State[State["SCRIPT_DATA_ESCAPED"] = 19] = "SCRIPT_DATA_ESCAPED";
|
|
30
|
+
State[State["SCRIPT_DATA_ESCAPED_DASH"] = 20] = "SCRIPT_DATA_ESCAPED_DASH";
|
|
31
|
+
State[State["SCRIPT_DATA_ESCAPED_DASH_DASH"] = 21] = "SCRIPT_DATA_ESCAPED_DASH_DASH";
|
|
32
|
+
State[State["SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN"] = 22] = "SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN";
|
|
33
|
+
State[State["SCRIPT_DATA_ESCAPED_END_TAG_OPEN"] = 23] = "SCRIPT_DATA_ESCAPED_END_TAG_OPEN";
|
|
34
|
+
State[State["SCRIPT_DATA_ESCAPED_END_TAG_NAME"] = 24] = "SCRIPT_DATA_ESCAPED_END_TAG_NAME";
|
|
35
|
+
State[State["SCRIPT_DATA_DOUBLE_ESCAPE_START"] = 25] = "SCRIPT_DATA_DOUBLE_ESCAPE_START";
|
|
36
|
+
State[State["SCRIPT_DATA_DOUBLE_ESCAPED"] = 26] = "SCRIPT_DATA_DOUBLE_ESCAPED";
|
|
37
|
+
State[State["SCRIPT_DATA_DOUBLE_ESCAPED_DASH"] = 27] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH";
|
|
38
|
+
State[State["SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH"] = 28] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH";
|
|
39
|
+
State[State["SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN"] = 29] = "SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN";
|
|
40
|
+
State[State["SCRIPT_DATA_DOUBLE_ESCAPE_END"] = 30] = "SCRIPT_DATA_DOUBLE_ESCAPE_END";
|
|
41
|
+
State[State["BEFORE_ATTRIBUTE_NAME"] = 31] = "BEFORE_ATTRIBUTE_NAME";
|
|
42
|
+
State[State["ATTRIBUTE_NAME"] = 32] = "ATTRIBUTE_NAME";
|
|
43
|
+
State[State["AFTER_ATTRIBUTE_NAME"] = 33] = "AFTER_ATTRIBUTE_NAME";
|
|
44
|
+
State[State["BEFORE_ATTRIBUTE_VALUE"] = 34] = "BEFORE_ATTRIBUTE_VALUE";
|
|
45
|
+
State[State["ATTRIBUTE_VALUE_DOUBLE_QUOTED"] = 35] = "ATTRIBUTE_VALUE_DOUBLE_QUOTED";
|
|
46
|
+
State[State["ATTRIBUTE_VALUE_SINGLE_QUOTED"] = 36] = "ATTRIBUTE_VALUE_SINGLE_QUOTED";
|
|
47
|
+
State[State["ATTRIBUTE_VALUE_UNQUOTED"] = 37] = "ATTRIBUTE_VALUE_UNQUOTED";
|
|
48
|
+
State[State["AFTER_ATTRIBUTE_VALUE_QUOTED"] = 38] = "AFTER_ATTRIBUTE_VALUE_QUOTED";
|
|
49
|
+
State[State["SELF_CLOSING_START_TAG"] = 39] = "SELF_CLOSING_START_TAG";
|
|
50
|
+
State[State["BOGUS_COMMENT"] = 40] = "BOGUS_COMMENT";
|
|
51
|
+
State[State["MARKUP_DECLARATION_OPEN"] = 41] = "MARKUP_DECLARATION_OPEN";
|
|
52
|
+
State[State["COMMENT_START"] = 42] = "COMMENT_START";
|
|
53
|
+
State[State["COMMENT_START_DASH"] = 43] = "COMMENT_START_DASH";
|
|
54
|
+
State[State["COMMENT"] = 44] = "COMMENT";
|
|
55
|
+
State[State["COMMENT_LESS_THAN_SIGN"] = 45] = "COMMENT_LESS_THAN_SIGN";
|
|
56
|
+
State[State["COMMENT_LESS_THAN_SIGN_BANG"] = 46] = "COMMENT_LESS_THAN_SIGN_BANG";
|
|
57
|
+
State[State["COMMENT_LESS_THAN_SIGN_BANG_DASH"] = 47] = "COMMENT_LESS_THAN_SIGN_BANG_DASH";
|
|
58
|
+
State[State["COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH"] = 48] = "COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH";
|
|
59
|
+
State[State["COMMENT_END_DASH"] = 49] = "COMMENT_END_DASH";
|
|
60
|
+
State[State["COMMENT_END"] = 50] = "COMMENT_END";
|
|
61
|
+
State[State["COMMENT_END_BANG"] = 51] = "COMMENT_END_BANG";
|
|
62
|
+
State[State["DOCTYPE"] = 52] = "DOCTYPE";
|
|
63
|
+
State[State["BEFORE_DOCTYPE_NAME"] = 53] = "BEFORE_DOCTYPE_NAME";
|
|
64
|
+
State[State["DOCTYPE_NAME"] = 54] = "DOCTYPE_NAME";
|
|
65
|
+
State[State["AFTER_DOCTYPE_NAME"] = 55] = "AFTER_DOCTYPE_NAME";
|
|
66
|
+
State[State["AFTER_DOCTYPE_PUBLIC_KEYWORD"] = 56] = "AFTER_DOCTYPE_PUBLIC_KEYWORD";
|
|
67
|
+
State[State["BEFORE_DOCTYPE_PUBLIC_IDENTIFIER"] = 57] = "BEFORE_DOCTYPE_PUBLIC_IDENTIFIER";
|
|
68
|
+
State[State["DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED"] = 58] = "DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED";
|
|
69
|
+
State[State["DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED"] = 59] = "DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED";
|
|
70
|
+
State[State["AFTER_DOCTYPE_PUBLIC_IDENTIFIER"] = 60] = "AFTER_DOCTYPE_PUBLIC_IDENTIFIER";
|
|
71
|
+
State[State["BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS"] = 61] = "BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS";
|
|
72
|
+
State[State["AFTER_DOCTYPE_SYSTEM_KEYWORD"] = 62] = "AFTER_DOCTYPE_SYSTEM_KEYWORD";
|
|
73
|
+
State[State["BEFORE_DOCTYPE_SYSTEM_IDENTIFIER"] = 63] = "BEFORE_DOCTYPE_SYSTEM_IDENTIFIER";
|
|
74
|
+
State[State["DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED"] = 64] = "DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED";
|
|
75
|
+
State[State["DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED"] = 65] = "DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED";
|
|
76
|
+
State[State["AFTER_DOCTYPE_SYSTEM_IDENTIFIER"] = 66] = "AFTER_DOCTYPE_SYSTEM_IDENTIFIER";
|
|
77
|
+
State[State["BOGUS_DOCTYPE"] = 67] = "BOGUS_DOCTYPE";
|
|
78
|
+
State[State["CDATA_SECTION"] = 68] = "CDATA_SECTION";
|
|
79
|
+
State[State["CDATA_SECTION_BRACKET"] = 69] = "CDATA_SECTION_BRACKET";
|
|
80
|
+
State[State["CDATA_SECTION_END"] = 70] = "CDATA_SECTION_END";
|
|
81
|
+
State[State["CHARACTER_REFERENCE"] = 71] = "CHARACTER_REFERENCE";
|
|
82
|
+
State[State["AMBIGUOUS_AMPERSAND"] = 72] = "AMBIGUOUS_AMPERSAND";
|
|
83
|
+
})(State || (State = {}));
|
|
84
|
+
//Tokenizer initial states for different modes
|
|
85
|
+
export const TokenizerMode = {
|
|
86
|
+
DATA: State.DATA,
|
|
87
|
+
RCDATA: State.RCDATA,
|
|
88
|
+
RAWTEXT: State.RAWTEXT,
|
|
89
|
+
SCRIPT_DATA: State.SCRIPT_DATA,
|
|
90
|
+
PLAINTEXT: State.PLAINTEXT,
|
|
91
|
+
CDATA_SECTION: State.CDATA_SECTION,
|
|
92
|
+
};
|
|
93
|
+
//Utils
|
|
94
|
+
//OPTIMIZATION: these utility functions should not be moved out of this module. V8 Crankshaft will not inline
|
|
95
|
+
//this functions if they will be situated in another module due to context switch.
|
|
96
|
+
//Always perform inlining check before modifying this functions ('node --trace-inlining').
|
|
97
|
+
function isAsciiDigit(cp) {
|
|
98
|
+
return cp >= $.DIGIT_0 && cp <= $.DIGIT_9;
|
|
99
|
+
}
|
|
100
|
+
function isAsciiUpper(cp) {
|
|
101
|
+
return cp >= $.LATIN_CAPITAL_A && cp <= $.LATIN_CAPITAL_Z;
|
|
102
|
+
}
|
|
103
|
+
function isAsciiLower(cp) {
|
|
104
|
+
return cp >= $.LATIN_SMALL_A && cp <= $.LATIN_SMALL_Z;
|
|
105
|
+
}
|
|
106
|
+
function isAsciiLetter(cp) {
|
|
107
|
+
return isAsciiLower(cp) || isAsciiUpper(cp);
|
|
108
|
+
}
|
|
109
|
+
function isAsciiAlphaNumeric(cp) {
|
|
110
|
+
return isAsciiLetter(cp) || isAsciiDigit(cp);
|
|
111
|
+
}
|
|
112
|
+
function toAsciiLower(cp) {
|
|
113
|
+
return cp + 32;
|
|
114
|
+
}
|
|
115
|
+
function isWhitespace(cp) {
|
|
116
|
+
return cp === $.SPACE || cp === $.LINE_FEED || cp === $.TABULATION || cp === $.FORM_FEED;
|
|
117
|
+
}
|
|
118
|
+
function isScriptDataDoubleEscapeSequenceEnd(cp) {
|
|
119
|
+
return isWhitespace(cp) || cp === $.SOLIDUS || cp === $.GREATER_THAN_SIGN;
|
|
120
|
+
}
|
|
121
|
+
function getErrorForNumericCharacterReference(code) {
|
|
122
|
+
if (code === $.NULL) {
|
|
123
|
+
return ERR.nullCharacterReference;
|
|
124
|
+
}
|
|
125
|
+
else if (code > 1114111) {
|
|
126
|
+
return ERR.characterReferenceOutsideUnicodeRange;
|
|
127
|
+
}
|
|
128
|
+
else if (isSurrogate(code)) {
|
|
129
|
+
return ERR.surrogateCharacterReference;
|
|
130
|
+
}
|
|
131
|
+
else if (isUndefinedCodePoint(code)) {
|
|
132
|
+
return ERR.noncharacterCharacterReference;
|
|
133
|
+
}
|
|
134
|
+
else if (isControlCodePoint(code) || code === $.CARRIAGE_RETURN) {
|
|
135
|
+
return ERR.controlCharacterReference;
|
|
136
|
+
}
|
|
137
|
+
return null;
|
|
138
|
+
}
|
|
139
|
+
//Tokenizer
|
|
140
|
+
export class Tokenizer {
|
|
141
|
+
constructor(options, handler) {
|
|
142
|
+
this.options = options;
|
|
143
|
+
this.handler = handler;
|
|
144
|
+
this.paused = false;
|
|
145
|
+
/** Ensures that the parsing loop isn't run multiple times at once. */
|
|
146
|
+
this.inLoop = false;
|
|
147
|
+
/**
|
|
148
|
+
* Indicates that the current adjusted node exists, is not an element in the HTML namespace,
|
|
149
|
+
* and that it is not an integration point for either MathML or HTML.
|
|
150
|
+
*
|
|
151
|
+
* @see {@link https://html.spec.whatwg.org/multipage/parsing.html#tree-construction}
|
|
152
|
+
*/
|
|
153
|
+
this.inForeignNode = false;
|
|
154
|
+
this.lastStartTagName = '';
|
|
155
|
+
this.active = false;
|
|
156
|
+
this.state = State.DATA;
|
|
157
|
+
this.returnState = State.DATA;
|
|
158
|
+
this.entityStartPos = 0;
|
|
159
|
+
this.consumedAfterSnapshot = -1;
|
|
160
|
+
this.currentCharacterToken = null;
|
|
161
|
+
this.currentToken = null;
|
|
162
|
+
this.currentAttr = { name: '', value: '' };
|
|
163
|
+
this.preprocessor = new Preprocessor(handler);
|
|
164
|
+
this.currentLocation = this.getCurrentLocation(-1);
|
|
165
|
+
this.entityDecoder = new EntityDecoder(htmlDecodeTree, (cp, consumed) => {
|
|
166
|
+
// Note: Set `pos` _before_ flushing, as flushing might drop
|
|
167
|
+
// the current chunk and invalidate `entityStartPos`.
|
|
168
|
+
this.preprocessor.pos = this.entityStartPos + consumed - 1;
|
|
169
|
+
this._flushCodePointConsumedAsCharacterReference(cp);
|
|
170
|
+
}, handler.onParseError
|
|
171
|
+
? {
|
|
172
|
+
missingSemicolonAfterCharacterReference: () => {
|
|
173
|
+
this._err(ERR.missingSemicolonAfterCharacterReference, 1);
|
|
174
|
+
},
|
|
175
|
+
absenceOfDigitsInNumericCharacterReference: (consumed) => {
|
|
176
|
+
this._err(ERR.absenceOfDigitsInNumericCharacterReference, this.entityStartPos - this.preprocessor.pos + consumed);
|
|
177
|
+
},
|
|
178
|
+
validateNumericCharacterReference: (code) => {
|
|
179
|
+
const error = getErrorForNumericCharacterReference(code);
|
|
180
|
+
if (error)
|
|
181
|
+
this._err(error, 1);
|
|
182
|
+
},
|
|
183
|
+
}
|
|
184
|
+
: undefined);
|
|
185
|
+
}
|
|
186
|
+
//Errors
|
|
187
|
+
_err(code, cpOffset = 0) {
|
|
188
|
+
var _a, _b;
|
|
189
|
+
(_b = (_a = this.handler).onParseError) === null || _b === void 0 ? void 0 : _b.call(_a, this.preprocessor.getError(code, cpOffset));
|
|
190
|
+
}
|
|
191
|
+
// NOTE: `offset` may never run across line boundaries.
|
|
192
|
+
getCurrentLocation(offset) {
|
|
193
|
+
if (!this.options.sourceCodeLocationInfo) {
|
|
194
|
+
return null;
|
|
195
|
+
}
|
|
196
|
+
return {
|
|
197
|
+
startLine: this.preprocessor.line,
|
|
198
|
+
startCol: this.preprocessor.col - offset,
|
|
199
|
+
startOffset: this.preprocessor.offset - offset,
|
|
200
|
+
endLine: -1,
|
|
201
|
+
endCol: -1,
|
|
202
|
+
endOffset: -1,
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
_runParsingLoop() {
|
|
206
|
+
if (this.inLoop)
|
|
207
|
+
return;
|
|
208
|
+
this.inLoop = true;
|
|
209
|
+
while (this.active && !this.paused) {
|
|
210
|
+
this.consumedAfterSnapshot = 0;
|
|
211
|
+
const cp = this._consume();
|
|
212
|
+
if (!this._ensureHibernation()) {
|
|
213
|
+
this._callState(cp);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
this.inLoop = false;
|
|
217
|
+
}
|
|
218
|
+
//API
|
|
219
|
+
pause() {
|
|
220
|
+
this.paused = true;
|
|
221
|
+
}
|
|
222
|
+
resume(writeCallback) {
|
|
223
|
+
if (!this.paused) {
|
|
224
|
+
throw new Error('Parser was already resumed');
|
|
225
|
+
}
|
|
226
|
+
this.paused = false;
|
|
227
|
+
// Necessary for synchronous resume.
|
|
228
|
+
if (this.inLoop)
|
|
229
|
+
return;
|
|
230
|
+
this._runParsingLoop();
|
|
231
|
+
if (!this.paused) {
|
|
232
|
+
writeCallback === null || writeCallback === void 0 ? void 0 : writeCallback();
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
write(chunk, isLastChunk, writeCallback) {
|
|
236
|
+
this.active = true;
|
|
237
|
+
this.preprocessor.write(chunk, isLastChunk);
|
|
238
|
+
this._runParsingLoop();
|
|
239
|
+
if (!this.paused) {
|
|
240
|
+
writeCallback === null || writeCallback === void 0 ? void 0 : writeCallback();
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
insertHtmlAtCurrentPos(chunk) {
|
|
244
|
+
this.active = true;
|
|
245
|
+
this.preprocessor.insertHtmlAtCurrentPos(chunk);
|
|
246
|
+
this._runParsingLoop();
|
|
247
|
+
}
|
|
248
|
+
//Hibernation
|
|
249
|
+
_ensureHibernation() {
|
|
250
|
+
if (this.preprocessor.endOfChunkHit) {
|
|
251
|
+
this.preprocessor.retreat(this.consumedAfterSnapshot);
|
|
252
|
+
this.consumedAfterSnapshot = 0;
|
|
253
|
+
this.active = false;
|
|
254
|
+
return true;
|
|
255
|
+
}
|
|
256
|
+
return false;
|
|
257
|
+
}
|
|
258
|
+
//Consumption
|
|
259
|
+
_consume() {
|
|
260
|
+
this.consumedAfterSnapshot++;
|
|
261
|
+
return this.preprocessor.advance();
|
|
262
|
+
}
|
|
263
|
+
_advanceBy(count) {
|
|
264
|
+
this.consumedAfterSnapshot += count;
|
|
265
|
+
for (let i = 0; i < count; i++) {
|
|
266
|
+
this.preprocessor.advance();
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
_consumeSequenceIfMatch(pattern, caseSensitive) {
|
|
270
|
+
if (this.preprocessor.startsWith(pattern, caseSensitive)) {
|
|
271
|
+
// We will already have consumed one character before calling this method.
|
|
272
|
+
this._advanceBy(pattern.length - 1);
|
|
273
|
+
return true;
|
|
274
|
+
}
|
|
275
|
+
return false;
|
|
276
|
+
}
|
|
277
|
+
//Token creation
|
|
278
|
+
_createStartTagToken() {
|
|
279
|
+
this.currentToken = {
|
|
280
|
+
type: TokenType.START_TAG,
|
|
281
|
+
tagName: '',
|
|
282
|
+
tagID: TAG_ID.UNKNOWN,
|
|
283
|
+
selfClosing: false,
|
|
284
|
+
ackSelfClosing: false,
|
|
285
|
+
attrs: [],
|
|
286
|
+
location: this.getCurrentLocation(1),
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
_createEndTagToken() {
|
|
290
|
+
this.currentToken = {
|
|
291
|
+
type: TokenType.END_TAG,
|
|
292
|
+
tagName: '',
|
|
293
|
+
tagID: TAG_ID.UNKNOWN,
|
|
294
|
+
selfClosing: false,
|
|
295
|
+
ackSelfClosing: false,
|
|
296
|
+
attrs: [],
|
|
297
|
+
location: this.getCurrentLocation(2),
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
_createCommentToken(offset) {
|
|
301
|
+
this.currentToken = {
|
|
302
|
+
type: TokenType.COMMENT,
|
|
303
|
+
data: '',
|
|
304
|
+
location: this.getCurrentLocation(offset),
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
_createDoctypeToken(initialName) {
|
|
308
|
+
this.currentToken = {
|
|
309
|
+
type: TokenType.DOCTYPE,
|
|
310
|
+
name: initialName,
|
|
311
|
+
forceQuirks: false,
|
|
312
|
+
publicId: null,
|
|
313
|
+
systemId: null,
|
|
314
|
+
location: this.currentLocation,
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
_createCharacterToken(type, chars) {
|
|
318
|
+
this.currentCharacterToken = {
|
|
319
|
+
type,
|
|
320
|
+
chars,
|
|
321
|
+
location: this.currentLocation,
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
//Tag attributes
|
|
325
|
+
_createAttr(attrNameFirstCh) {
|
|
326
|
+
this.currentAttr = {
|
|
327
|
+
name: attrNameFirstCh,
|
|
328
|
+
value: '',
|
|
329
|
+
};
|
|
330
|
+
this.currentLocation = this.getCurrentLocation(0);
|
|
331
|
+
}
|
|
332
|
+
_leaveAttrName() {
|
|
333
|
+
var _a;
|
|
334
|
+
var _b;
|
|
335
|
+
const token = this.currentToken;
|
|
336
|
+
if (getTokenAttr(token, this.currentAttr.name) === null) {
|
|
337
|
+
token.attrs.push(this.currentAttr);
|
|
338
|
+
if (token.location && this.currentLocation) {
|
|
339
|
+
const attrLocations = ((_a = (_b = token.location).attrs) !== null && _a !== void 0 ? _a : (_b.attrs = Object.create(null)));
|
|
340
|
+
attrLocations[this.currentAttr.name] = this.currentLocation;
|
|
341
|
+
// Set end location
|
|
342
|
+
this._leaveAttrValue();
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
else {
|
|
346
|
+
this._err(ERR.duplicateAttribute);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
_leaveAttrValue() {
|
|
350
|
+
if (this.currentLocation) {
|
|
351
|
+
this.currentLocation.endLine = this.preprocessor.line;
|
|
352
|
+
this.currentLocation.endCol = this.preprocessor.col;
|
|
353
|
+
this.currentLocation.endOffset = this.preprocessor.offset;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
//Token emission
|
|
357
|
+
prepareToken(ct) {
|
|
358
|
+
this._emitCurrentCharacterToken(ct.location);
|
|
359
|
+
this.currentToken = null;
|
|
360
|
+
if (ct.location) {
|
|
361
|
+
ct.location.endLine = this.preprocessor.line;
|
|
362
|
+
ct.location.endCol = this.preprocessor.col + 1;
|
|
363
|
+
ct.location.endOffset = this.preprocessor.offset + 1;
|
|
364
|
+
}
|
|
365
|
+
this.currentLocation = this.getCurrentLocation(-1);
|
|
366
|
+
}
|
|
367
|
+
emitCurrentTagToken() {
|
|
368
|
+
const ct = this.currentToken;
|
|
369
|
+
this.prepareToken(ct);
|
|
370
|
+
ct.tagID = getTagID(ct.tagName);
|
|
371
|
+
if (ct.type === TokenType.START_TAG) {
|
|
372
|
+
this.lastStartTagName = ct.tagName;
|
|
373
|
+
this.handler.onStartTag(ct);
|
|
374
|
+
}
|
|
375
|
+
else {
|
|
376
|
+
if (ct.attrs.length > 0) {
|
|
377
|
+
this._err(ERR.endTagWithAttributes);
|
|
378
|
+
}
|
|
379
|
+
if (ct.selfClosing) {
|
|
380
|
+
this._err(ERR.endTagWithTrailingSolidus);
|
|
381
|
+
}
|
|
382
|
+
this.handler.onEndTag(ct);
|
|
383
|
+
}
|
|
384
|
+
this.preprocessor.dropParsedChunk();
|
|
385
|
+
}
|
|
386
|
+
emitCurrentComment(ct) {
|
|
387
|
+
this.prepareToken(ct);
|
|
388
|
+
this.handler.onComment(ct);
|
|
389
|
+
this.preprocessor.dropParsedChunk();
|
|
390
|
+
}
|
|
391
|
+
emitCurrentDoctype(ct) {
|
|
392
|
+
this.prepareToken(ct);
|
|
393
|
+
this.handler.onDoctype(ct);
|
|
394
|
+
this.preprocessor.dropParsedChunk();
|
|
395
|
+
}
|
|
396
|
+
_emitCurrentCharacterToken(nextLocation) {
|
|
397
|
+
if (this.currentCharacterToken) {
|
|
398
|
+
//NOTE: if we have a pending character token, make it's end location equal to the
|
|
399
|
+
//current token's start location.
|
|
400
|
+
if (nextLocation && this.currentCharacterToken.location) {
|
|
401
|
+
this.currentCharacterToken.location.endLine = nextLocation.startLine;
|
|
402
|
+
this.currentCharacterToken.location.endCol = nextLocation.startCol;
|
|
403
|
+
this.currentCharacterToken.location.endOffset = nextLocation.startOffset;
|
|
404
|
+
}
|
|
405
|
+
switch (this.currentCharacterToken.type) {
|
|
406
|
+
case TokenType.CHARACTER: {
|
|
407
|
+
this.handler.onCharacter(this.currentCharacterToken);
|
|
408
|
+
break;
|
|
409
|
+
}
|
|
410
|
+
case TokenType.NULL_CHARACTER: {
|
|
411
|
+
this.handler.onNullCharacter(this.currentCharacterToken);
|
|
412
|
+
break;
|
|
413
|
+
}
|
|
414
|
+
case TokenType.WHITESPACE_CHARACTER: {
|
|
415
|
+
this.handler.onWhitespaceCharacter(this.currentCharacterToken);
|
|
416
|
+
break;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
this.currentCharacterToken = null;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
_emitEOFToken() {
|
|
423
|
+
const location = this.getCurrentLocation(0);
|
|
424
|
+
if (location) {
|
|
425
|
+
location.endLine = location.startLine;
|
|
426
|
+
location.endCol = location.startCol;
|
|
427
|
+
location.endOffset = location.startOffset;
|
|
428
|
+
}
|
|
429
|
+
this._emitCurrentCharacterToken(location);
|
|
430
|
+
this.handler.onEof({ type: TokenType.EOF, location });
|
|
431
|
+
this.active = false;
|
|
432
|
+
}
|
|
433
|
+
//Characters emission
|
|
434
|
+
//OPTIMIZATION: The specification uses only one type of character token (one token per character).
|
|
435
|
+
//This causes a huge memory overhead and a lot of unnecessary parser loops. parse5 uses 3 groups of characters.
|
|
436
|
+
//If we have a sequence of characters that belong to the same group, the parser can process it
|
|
437
|
+
//as a single solid character token.
|
|
438
|
+
//So, there are 3 types of character tokens in parse5:
|
|
439
|
+
//1)TokenType.NULL_CHARACTER - \u0000-character sequences (e.g. '\u0000\u0000\u0000')
|
|
440
|
+
//2)TokenType.WHITESPACE_CHARACTER - any whitespace/new-line character sequences (e.g. '\n \r\t \f')
|
|
441
|
+
//3)TokenType.CHARACTER - any character sequence which don't belong to groups 1 and 2 (e.g. 'abcdef1234@@#$%^')
|
|
442
|
+
_appendCharToCurrentCharacterToken(type, ch) {
|
|
443
|
+
if (this.currentCharacterToken) {
|
|
444
|
+
if (this.currentCharacterToken.type === type) {
|
|
445
|
+
this.currentCharacterToken.chars += ch;
|
|
446
|
+
return;
|
|
447
|
+
}
|
|
448
|
+
else {
|
|
449
|
+
this.currentLocation = this.getCurrentLocation(0);
|
|
450
|
+
this._emitCurrentCharacterToken(this.currentLocation);
|
|
451
|
+
this.preprocessor.dropParsedChunk();
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
this._createCharacterToken(type, ch);
|
|
455
|
+
}
|
|
456
|
+
_emitCodePoint(cp) {
|
|
457
|
+
const type = isWhitespace(cp)
|
|
458
|
+
? TokenType.WHITESPACE_CHARACTER
|
|
459
|
+
: cp === $.NULL
|
|
460
|
+
? TokenType.NULL_CHARACTER
|
|
461
|
+
: TokenType.CHARACTER;
|
|
462
|
+
// OPTIMIZATION: Use String.fromCharCode for BMP characters (< 0x10000) which is faster
|
|
463
|
+
// than String.fromCodePoint. Characters outside BMP are rare in HTML.
|
|
464
|
+
this._appendCharToCurrentCharacterToken(type, cp < 65536 ? String.fromCharCode(cp) : String.fromCodePoint(cp));
|
|
465
|
+
}
|
|
466
|
+
//NOTE: used when we emit characters explicitly.
|
|
467
|
+
//This is always for non-whitespace and non-null characters, which allows us to avoid additional checks.
|
|
468
|
+
_emitChars(ch) {
|
|
469
|
+
this._appendCharToCurrentCharacterToken(TokenType.CHARACTER, ch);
|
|
470
|
+
}
|
|
471
|
+
// Character reference helpers
|
|
472
|
+
_startCharacterReference() {
|
|
473
|
+
this.returnState = this.state;
|
|
474
|
+
this.state = State.CHARACTER_REFERENCE;
|
|
475
|
+
this.entityStartPos = this.preprocessor.pos;
|
|
476
|
+
this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute() ? DecodingMode.Attribute : DecodingMode.Legacy);
|
|
477
|
+
}
|
|
478
|
+
_isCharacterReferenceInAttribute() {
|
|
479
|
+
return (this.returnState === State.ATTRIBUTE_VALUE_DOUBLE_QUOTED ||
|
|
480
|
+
this.returnState === State.ATTRIBUTE_VALUE_SINGLE_QUOTED ||
|
|
481
|
+
this.returnState === State.ATTRIBUTE_VALUE_UNQUOTED);
|
|
482
|
+
}
|
|
483
|
+
_flushCodePointConsumedAsCharacterReference(cp) {
|
|
484
|
+
if (this._isCharacterReferenceInAttribute()) {
|
|
485
|
+
this.currentAttr.value += String.fromCodePoint(cp);
|
|
486
|
+
}
|
|
487
|
+
else {
|
|
488
|
+
this._emitCodePoint(cp);
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
// Calling states this way turns out to be much faster than any other approach.
|
|
492
|
+
_callState(cp) {
|
|
493
|
+
switch (this.state) {
|
|
494
|
+
case State.DATA: {
|
|
495
|
+
this._stateData(cp);
|
|
496
|
+
break;
|
|
497
|
+
}
|
|
498
|
+
case State.RCDATA: {
|
|
499
|
+
this._stateRcdata(cp);
|
|
500
|
+
break;
|
|
501
|
+
}
|
|
502
|
+
case State.RAWTEXT: {
|
|
503
|
+
this._stateRawtext(cp);
|
|
504
|
+
break;
|
|
505
|
+
}
|
|
506
|
+
case State.SCRIPT_DATA: {
|
|
507
|
+
this._stateScriptData(cp);
|
|
508
|
+
break;
|
|
509
|
+
}
|
|
510
|
+
case State.PLAINTEXT: {
|
|
511
|
+
this._statePlaintext(cp);
|
|
512
|
+
break;
|
|
513
|
+
}
|
|
514
|
+
case State.TAG_OPEN: {
|
|
515
|
+
this._stateTagOpen(cp);
|
|
516
|
+
break;
|
|
517
|
+
}
|
|
518
|
+
case State.END_TAG_OPEN: {
|
|
519
|
+
this._stateEndTagOpen(cp);
|
|
520
|
+
break;
|
|
521
|
+
}
|
|
522
|
+
case State.TAG_NAME: {
|
|
523
|
+
this._stateTagName(cp);
|
|
524
|
+
break;
|
|
525
|
+
}
|
|
526
|
+
case State.RCDATA_LESS_THAN_SIGN: {
|
|
527
|
+
this._stateRcdataLessThanSign(cp);
|
|
528
|
+
break;
|
|
529
|
+
}
|
|
530
|
+
case State.RCDATA_END_TAG_OPEN: {
|
|
531
|
+
this._stateRcdataEndTagOpen(cp);
|
|
532
|
+
break;
|
|
533
|
+
}
|
|
534
|
+
case State.RCDATA_END_TAG_NAME: {
|
|
535
|
+
this._stateRcdataEndTagName(cp);
|
|
536
|
+
break;
|
|
537
|
+
}
|
|
538
|
+
case State.RAWTEXT_LESS_THAN_SIGN: {
|
|
539
|
+
this._stateRawtextLessThanSign(cp);
|
|
540
|
+
break;
|
|
541
|
+
}
|
|
542
|
+
case State.RAWTEXT_END_TAG_OPEN: {
|
|
543
|
+
this._stateRawtextEndTagOpen(cp);
|
|
544
|
+
break;
|
|
545
|
+
}
|
|
546
|
+
case State.RAWTEXT_END_TAG_NAME: {
|
|
547
|
+
this._stateRawtextEndTagName(cp);
|
|
548
|
+
break;
|
|
549
|
+
}
|
|
550
|
+
case State.SCRIPT_DATA_LESS_THAN_SIGN: {
|
|
551
|
+
this._stateScriptDataLessThanSign(cp);
|
|
552
|
+
break;
|
|
553
|
+
}
|
|
554
|
+
case State.SCRIPT_DATA_END_TAG_OPEN: {
|
|
555
|
+
this._stateScriptDataEndTagOpen(cp);
|
|
556
|
+
break;
|
|
557
|
+
}
|
|
558
|
+
case State.SCRIPT_DATA_END_TAG_NAME: {
|
|
559
|
+
this._stateScriptDataEndTagName(cp);
|
|
560
|
+
break;
|
|
561
|
+
}
|
|
562
|
+
case State.SCRIPT_DATA_ESCAPE_START: {
|
|
563
|
+
this._stateScriptDataEscapeStart(cp);
|
|
564
|
+
break;
|
|
565
|
+
}
|
|
566
|
+
case State.SCRIPT_DATA_ESCAPE_START_DASH: {
|
|
567
|
+
this._stateScriptDataEscapeStartDash(cp);
|
|
568
|
+
break;
|
|
569
|
+
}
|
|
570
|
+
case State.SCRIPT_DATA_ESCAPED: {
|
|
571
|
+
this._stateScriptDataEscaped(cp);
|
|
572
|
+
break;
|
|
573
|
+
}
|
|
574
|
+
case State.SCRIPT_DATA_ESCAPED_DASH: {
|
|
575
|
+
this._stateScriptDataEscapedDash(cp);
|
|
576
|
+
break;
|
|
577
|
+
}
|
|
578
|
+
case State.SCRIPT_DATA_ESCAPED_DASH_DASH: {
|
|
579
|
+
this._stateScriptDataEscapedDashDash(cp);
|
|
580
|
+
break;
|
|
581
|
+
}
|
|
582
|
+
case State.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN: {
|
|
583
|
+
this._stateScriptDataEscapedLessThanSign(cp);
|
|
584
|
+
break;
|
|
585
|
+
}
|
|
586
|
+
case State.SCRIPT_DATA_ESCAPED_END_TAG_OPEN: {
|
|
587
|
+
this._stateScriptDataEscapedEndTagOpen(cp);
|
|
588
|
+
break;
|
|
589
|
+
}
|
|
590
|
+
case State.SCRIPT_DATA_ESCAPED_END_TAG_NAME: {
|
|
591
|
+
this._stateScriptDataEscapedEndTagName(cp);
|
|
592
|
+
break;
|
|
593
|
+
}
|
|
594
|
+
case State.SCRIPT_DATA_DOUBLE_ESCAPE_START: {
|
|
595
|
+
this._stateScriptDataDoubleEscapeStart(cp);
|
|
596
|
+
break;
|
|
597
|
+
}
|
|
598
|
+
case State.SCRIPT_DATA_DOUBLE_ESCAPED: {
|
|
599
|
+
this._stateScriptDataDoubleEscaped(cp);
|
|
600
|
+
break;
|
|
601
|
+
}
|
|
602
|
+
case State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH: {
|
|
603
|
+
this._stateScriptDataDoubleEscapedDash(cp);
|
|
604
|
+
break;
|
|
605
|
+
}
|
|
606
|
+
case State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH: {
|
|
607
|
+
this._stateScriptDataDoubleEscapedDashDash(cp);
|
|
608
|
+
break;
|
|
609
|
+
}
|
|
610
|
+
case State.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN: {
|
|
611
|
+
this._stateScriptDataDoubleEscapedLessThanSign(cp);
|
|
612
|
+
break;
|
|
613
|
+
}
|
|
614
|
+
case State.SCRIPT_DATA_DOUBLE_ESCAPE_END: {
|
|
615
|
+
this._stateScriptDataDoubleEscapeEnd(cp);
|
|
616
|
+
break;
|
|
617
|
+
}
|
|
618
|
+
case State.BEFORE_ATTRIBUTE_NAME: {
|
|
619
|
+
this._stateBeforeAttributeName(cp);
|
|
620
|
+
break;
|
|
621
|
+
}
|
|
622
|
+
case State.ATTRIBUTE_NAME: {
|
|
623
|
+
this._stateAttributeName(cp);
|
|
624
|
+
break;
|
|
625
|
+
}
|
|
626
|
+
case State.AFTER_ATTRIBUTE_NAME: {
|
|
627
|
+
this._stateAfterAttributeName(cp);
|
|
628
|
+
break;
|
|
629
|
+
}
|
|
630
|
+
case State.BEFORE_ATTRIBUTE_VALUE: {
|
|
631
|
+
this._stateBeforeAttributeValue(cp);
|
|
632
|
+
break;
|
|
633
|
+
}
|
|
634
|
+
case State.ATTRIBUTE_VALUE_DOUBLE_QUOTED: {
|
|
635
|
+
this._stateAttributeValueDoubleQuoted(cp);
|
|
636
|
+
break;
|
|
637
|
+
}
|
|
638
|
+
case State.ATTRIBUTE_VALUE_SINGLE_QUOTED: {
|
|
639
|
+
this._stateAttributeValueSingleQuoted(cp);
|
|
640
|
+
break;
|
|
641
|
+
}
|
|
642
|
+
case State.ATTRIBUTE_VALUE_UNQUOTED: {
|
|
643
|
+
this._stateAttributeValueUnquoted(cp);
|
|
644
|
+
break;
|
|
645
|
+
}
|
|
646
|
+
case State.AFTER_ATTRIBUTE_VALUE_QUOTED: {
|
|
647
|
+
this._stateAfterAttributeValueQuoted(cp);
|
|
648
|
+
break;
|
|
649
|
+
}
|
|
650
|
+
case State.SELF_CLOSING_START_TAG: {
|
|
651
|
+
this._stateSelfClosingStartTag(cp);
|
|
652
|
+
break;
|
|
653
|
+
}
|
|
654
|
+
case State.BOGUS_COMMENT: {
|
|
655
|
+
this._stateBogusComment(cp);
|
|
656
|
+
break;
|
|
657
|
+
}
|
|
658
|
+
case State.MARKUP_DECLARATION_OPEN: {
|
|
659
|
+
this._stateMarkupDeclarationOpen(cp);
|
|
660
|
+
break;
|
|
661
|
+
}
|
|
662
|
+
case State.COMMENT_START: {
|
|
663
|
+
this._stateCommentStart(cp);
|
|
664
|
+
break;
|
|
665
|
+
}
|
|
666
|
+
case State.COMMENT_START_DASH: {
|
|
667
|
+
this._stateCommentStartDash(cp);
|
|
668
|
+
break;
|
|
669
|
+
}
|
|
670
|
+
case State.COMMENT: {
|
|
671
|
+
this._stateComment(cp);
|
|
672
|
+
break;
|
|
673
|
+
}
|
|
674
|
+
case State.COMMENT_LESS_THAN_SIGN: {
|
|
675
|
+
this._stateCommentLessThanSign(cp);
|
|
676
|
+
break;
|
|
677
|
+
}
|
|
678
|
+
case State.COMMENT_LESS_THAN_SIGN_BANG: {
|
|
679
|
+
this._stateCommentLessThanSignBang(cp);
|
|
680
|
+
break;
|
|
681
|
+
}
|
|
682
|
+
case State.COMMENT_LESS_THAN_SIGN_BANG_DASH: {
|
|
683
|
+
this._stateCommentLessThanSignBangDash(cp);
|
|
684
|
+
break;
|
|
685
|
+
}
|
|
686
|
+
case State.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH: {
|
|
687
|
+
this._stateCommentLessThanSignBangDashDash(cp);
|
|
688
|
+
break;
|
|
689
|
+
}
|
|
690
|
+
case State.COMMENT_END_DASH: {
|
|
691
|
+
this._stateCommentEndDash(cp);
|
|
692
|
+
break;
|
|
693
|
+
}
|
|
694
|
+
case State.COMMENT_END: {
|
|
695
|
+
this._stateCommentEnd(cp);
|
|
696
|
+
break;
|
|
697
|
+
}
|
|
698
|
+
case State.COMMENT_END_BANG: {
|
|
699
|
+
this._stateCommentEndBang(cp);
|
|
700
|
+
break;
|
|
701
|
+
}
|
|
702
|
+
case State.DOCTYPE: {
|
|
703
|
+
this._stateDoctype(cp);
|
|
704
|
+
break;
|
|
705
|
+
}
|
|
706
|
+
case State.BEFORE_DOCTYPE_NAME: {
|
|
707
|
+
this._stateBeforeDoctypeName(cp);
|
|
708
|
+
break;
|
|
709
|
+
}
|
|
710
|
+
case State.DOCTYPE_NAME: {
|
|
711
|
+
this._stateDoctypeName(cp);
|
|
712
|
+
break;
|
|
713
|
+
}
|
|
714
|
+
case State.AFTER_DOCTYPE_NAME: {
|
|
715
|
+
this._stateAfterDoctypeName(cp);
|
|
716
|
+
break;
|
|
717
|
+
}
|
|
718
|
+
case State.AFTER_DOCTYPE_PUBLIC_KEYWORD: {
|
|
719
|
+
this._stateAfterDoctypePublicKeyword(cp);
|
|
720
|
+
break;
|
|
721
|
+
}
|
|
722
|
+
case State.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER: {
|
|
723
|
+
this._stateBeforeDoctypePublicIdentifier(cp);
|
|
724
|
+
break;
|
|
725
|
+
}
|
|
726
|
+
case State.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED: {
|
|
727
|
+
this._stateDoctypePublicIdentifierDoubleQuoted(cp);
|
|
728
|
+
break;
|
|
729
|
+
}
|
|
730
|
+
case State.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED: {
|
|
731
|
+
this._stateDoctypePublicIdentifierSingleQuoted(cp);
|
|
732
|
+
break;
|
|
733
|
+
}
|
|
734
|
+
case State.AFTER_DOCTYPE_PUBLIC_IDENTIFIER: {
|
|
735
|
+
this._stateAfterDoctypePublicIdentifier(cp);
|
|
736
|
+
break;
|
|
737
|
+
}
|
|
738
|
+
case State.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS: {
|
|
739
|
+
this._stateBetweenDoctypePublicAndSystemIdentifiers(cp);
|
|
740
|
+
break;
|
|
741
|
+
}
|
|
742
|
+
case State.AFTER_DOCTYPE_SYSTEM_KEYWORD: {
|
|
743
|
+
this._stateAfterDoctypeSystemKeyword(cp);
|
|
744
|
+
break;
|
|
745
|
+
}
|
|
746
|
+
case State.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER: {
|
|
747
|
+
this._stateBeforeDoctypeSystemIdentifier(cp);
|
|
748
|
+
break;
|
|
749
|
+
}
|
|
750
|
+
case State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED: {
|
|
751
|
+
this._stateDoctypeSystemIdentifierDoubleQuoted(cp);
|
|
752
|
+
break;
|
|
753
|
+
}
|
|
754
|
+
case State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED: {
|
|
755
|
+
this._stateDoctypeSystemIdentifierSingleQuoted(cp);
|
|
756
|
+
break;
|
|
757
|
+
}
|
|
758
|
+
case State.AFTER_DOCTYPE_SYSTEM_IDENTIFIER: {
|
|
759
|
+
this._stateAfterDoctypeSystemIdentifier(cp);
|
|
760
|
+
break;
|
|
761
|
+
}
|
|
762
|
+
case State.BOGUS_DOCTYPE: {
|
|
763
|
+
this._stateBogusDoctype(cp);
|
|
764
|
+
break;
|
|
765
|
+
}
|
|
766
|
+
case State.CDATA_SECTION: {
|
|
767
|
+
this._stateCdataSection(cp);
|
|
768
|
+
break;
|
|
769
|
+
}
|
|
770
|
+
case State.CDATA_SECTION_BRACKET: {
|
|
771
|
+
this._stateCdataSectionBracket(cp);
|
|
772
|
+
break;
|
|
773
|
+
}
|
|
774
|
+
case State.CDATA_SECTION_END: {
|
|
775
|
+
this._stateCdataSectionEnd(cp);
|
|
776
|
+
break;
|
|
777
|
+
}
|
|
778
|
+
case State.CHARACTER_REFERENCE: {
|
|
779
|
+
this._stateCharacterReference();
|
|
780
|
+
break;
|
|
781
|
+
}
|
|
782
|
+
case State.AMBIGUOUS_AMPERSAND: {
|
|
783
|
+
this._stateAmbiguousAmpersand(cp);
|
|
784
|
+
break;
|
|
785
|
+
}
|
|
786
|
+
default: {
|
|
787
|
+
throw new Error('Unknown state');
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
// State machine
|
|
792
|
+
// Data state
|
|
793
|
+
//------------------------------------------------------------------
|
|
794
|
+
_stateData(cp) {
|
|
795
|
+
switch (cp) {
|
|
796
|
+
case $.LESS_THAN_SIGN: {
|
|
797
|
+
this.state = State.TAG_OPEN;
|
|
798
|
+
break;
|
|
799
|
+
}
|
|
800
|
+
case $.AMPERSAND: {
|
|
801
|
+
this._startCharacterReference();
|
|
802
|
+
break;
|
|
803
|
+
}
|
|
804
|
+
case $.NULL: {
|
|
805
|
+
this._err(ERR.unexpectedNullCharacter);
|
|
806
|
+
this._emitCodePoint(cp);
|
|
807
|
+
break;
|
|
808
|
+
}
|
|
809
|
+
case $.EOF: {
|
|
810
|
+
this._emitEOFToken();
|
|
811
|
+
break;
|
|
812
|
+
}
|
|
813
|
+
default: {
|
|
814
|
+
this._emitCodePoint(cp);
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
// RCDATA state
|
|
819
|
+
//------------------------------------------------------------------
|
|
820
|
+
_stateRcdata(cp) {
|
|
821
|
+
switch (cp) {
|
|
822
|
+
case $.AMPERSAND: {
|
|
823
|
+
this._startCharacterReference();
|
|
824
|
+
break;
|
|
825
|
+
}
|
|
826
|
+
case $.LESS_THAN_SIGN: {
|
|
827
|
+
this.state = State.RCDATA_LESS_THAN_SIGN;
|
|
828
|
+
break;
|
|
829
|
+
}
|
|
830
|
+
case $.NULL: {
|
|
831
|
+
this._err(ERR.unexpectedNullCharacter);
|
|
832
|
+
this._emitChars(REPLACEMENT_CHARACTER);
|
|
833
|
+
break;
|
|
834
|
+
}
|
|
835
|
+
case $.EOF: {
|
|
836
|
+
this._emitEOFToken();
|
|
837
|
+
break;
|
|
838
|
+
}
|
|
839
|
+
default: {
|
|
840
|
+
this._emitCodePoint(cp);
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
// RAWTEXT state
|
|
845
|
+
//------------------------------------------------------------------
|
|
846
|
+
_stateRawtext(cp) {
|
|
847
|
+
switch (cp) {
|
|
848
|
+
case $.LESS_THAN_SIGN: {
|
|
849
|
+
this.state = State.RAWTEXT_LESS_THAN_SIGN;
|
|
850
|
+
break;
|
|
851
|
+
}
|
|
852
|
+
case $.NULL: {
|
|
853
|
+
this._err(ERR.unexpectedNullCharacter);
|
|
854
|
+
this._emitChars(REPLACEMENT_CHARACTER);
|
|
855
|
+
break;
|
|
856
|
+
}
|
|
857
|
+
case $.EOF: {
|
|
858
|
+
this._emitEOFToken();
|
|
859
|
+
break;
|
|
860
|
+
}
|
|
861
|
+
default: {
|
|
862
|
+
this._emitCodePoint(cp);
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
// Script data state
|
|
867
|
+
//------------------------------------------------------------------
|
|
868
|
+
_stateScriptData(cp) {
|
|
869
|
+
switch (cp) {
|
|
870
|
+
case $.LESS_THAN_SIGN: {
|
|
871
|
+
this.state = State.SCRIPT_DATA_LESS_THAN_SIGN;
|
|
872
|
+
break;
|
|
873
|
+
}
|
|
874
|
+
case $.NULL: {
|
|
875
|
+
this._err(ERR.unexpectedNullCharacter);
|
|
876
|
+
this._emitChars(REPLACEMENT_CHARACTER);
|
|
877
|
+
break;
|
|
878
|
+
}
|
|
879
|
+
case $.EOF: {
|
|
880
|
+
this._emitEOFToken();
|
|
881
|
+
break;
|
|
882
|
+
}
|
|
883
|
+
default: {
|
|
884
|
+
this._emitCodePoint(cp);
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
// PLAINTEXT state
|
|
889
|
+
//------------------------------------------------------------------
|
|
890
|
+
_statePlaintext(cp) {
|
|
891
|
+
switch (cp) {
|
|
892
|
+
case $.NULL: {
|
|
893
|
+
this._err(ERR.unexpectedNullCharacter);
|
|
894
|
+
this._emitChars(REPLACEMENT_CHARACTER);
|
|
895
|
+
break;
|
|
896
|
+
}
|
|
897
|
+
case $.EOF: {
|
|
898
|
+
this._emitEOFToken();
|
|
899
|
+
break;
|
|
900
|
+
}
|
|
901
|
+
default: {
|
|
902
|
+
this._emitCodePoint(cp);
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
// Tag open state
|
|
907
|
+
//------------------------------------------------------------------
|
|
908
|
+
_stateTagOpen(cp) {
|
|
909
|
+
if (isAsciiLetter(cp)) {
|
|
910
|
+
this._createStartTagToken();
|
|
911
|
+
this.state = State.TAG_NAME;
|
|
912
|
+
this._stateTagName(cp);
|
|
913
|
+
}
|
|
914
|
+
else
|
|
915
|
+
switch (cp) {
|
|
916
|
+
case $.EXCLAMATION_MARK: {
|
|
917
|
+
this.state = State.MARKUP_DECLARATION_OPEN;
|
|
918
|
+
break;
|
|
919
|
+
}
|
|
920
|
+
case $.SOLIDUS: {
|
|
921
|
+
this.state = State.END_TAG_OPEN;
|
|
922
|
+
break;
|
|
923
|
+
}
|
|
924
|
+
case $.QUESTION_MARK: {
|
|
925
|
+
this._err(ERR.unexpectedQuestionMarkInsteadOfTagName);
|
|
926
|
+
this._createCommentToken(1);
|
|
927
|
+
this.state = State.BOGUS_COMMENT;
|
|
928
|
+
this._stateBogusComment(cp);
|
|
929
|
+
break;
|
|
930
|
+
}
|
|
931
|
+
case $.EOF: {
|
|
932
|
+
this._err(ERR.eofBeforeTagName);
|
|
933
|
+
this._emitChars('<');
|
|
934
|
+
this._emitEOFToken();
|
|
935
|
+
break;
|
|
936
|
+
}
|
|
937
|
+
default: {
|
|
938
|
+
this._err(ERR.invalidFirstCharacterOfTagName);
|
|
939
|
+
this._emitChars('<');
|
|
940
|
+
this.state = State.DATA;
|
|
941
|
+
this._stateData(cp);
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
// End tag open state
|
|
946
|
+
//------------------------------------------------------------------
|
|
947
|
+
_stateEndTagOpen(cp) {
|
|
948
|
+
if (isAsciiLetter(cp)) {
|
|
949
|
+
this._createEndTagToken();
|
|
950
|
+
this.state = State.TAG_NAME;
|
|
951
|
+
this._stateTagName(cp);
|
|
952
|
+
}
|
|
953
|
+
else
|
|
954
|
+
switch (cp) {
|
|
955
|
+
case $.GREATER_THAN_SIGN: {
|
|
956
|
+
this._err(ERR.missingEndTagName);
|
|
957
|
+
this.state = State.DATA;
|
|
958
|
+
break;
|
|
959
|
+
}
|
|
960
|
+
case $.EOF: {
|
|
961
|
+
this._err(ERR.eofBeforeTagName);
|
|
962
|
+
this._emitChars('</');
|
|
963
|
+
this._emitEOFToken();
|
|
964
|
+
break;
|
|
965
|
+
}
|
|
966
|
+
default: {
|
|
967
|
+
this._err(ERR.invalidFirstCharacterOfTagName);
|
|
968
|
+
this._createCommentToken(2);
|
|
969
|
+
this.state = State.BOGUS_COMMENT;
|
|
970
|
+
this._stateBogusComment(cp);
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
// Tag name state
|
|
975
|
+
//------------------------------------------------------------------
|
|
976
|
+
_stateTagName(cp) {
|
|
977
|
+
const token = this.currentToken;
|
|
978
|
+
switch (cp) {
|
|
979
|
+
case $.SPACE:
|
|
980
|
+
case $.LINE_FEED:
|
|
981
|
+
case $.TABULATION:
|
|
982
|
+
case $.FORM_FEED: {
|
|
983
|
+
this.state = State.BEFORE_ATTRIBUTE_NAME;
|
|
984
|
+
break;
|
|
985
|
+
}
|
|
986
|
+
case $.SOLIDUS: {
|
|
987
|
+
this.state = State.SELF_CLOSING_START_TAG;
|
|
988
|
+
break;
|
|
989
|
+
}
|
|
990
|
+
case $.GREATER_THAN_SIGN: {
|
|
991
|
+
this.state = State.DATA;
|
|
992
|
+
this.emitCurrentTagToken();
|
|
993
|
+
break;
|
|
994
|
+
}
|
|
995
|
+
case $.NULL: {
|
|
996
|
+
this._err(ERR.unexpectedNullCharacter);
|
|
997
|
+
token.tagName += REPLACEMENT_CHARACTER;
|
|
998
|
+
break;
|
|
999
|
+
}
|
|
1000
|
+
case $.EOF: {
|
|
1001
|
+
this._err(ERR.eofInTag);
|
|
1002
|
+
this._emitEOFToken();
|
|
1003
|
+
break;
|
|
1004
|
+
}
|
|
1005
|
+
default: {
|
|
1006
|
+
token.tagName += String.fromCodePoint(isAsciiUpper(cp) ? toAsciiLower(cp) : cp);
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
// RCDATA less-than sign state
|
|
1011
|
+
//------------------------------------------------------------------
|
|
1012
|
+
_stateRcdataLessThanSign(cp) {
|
|
1013
|
+
if (cp === $.SOLIDUS) {
|
|
1014
|
+
this.state = State.RCDATA_END_TAG_OPEN;
|
|
1015
|
+
}
|
|
1016
|
+
else {
|
|
1017
|
+
this._emitChars('<');
|
|
1018
|
+
this.state = State.RCDATA;
|
|
1019
|
+
this._stateRcdata(cp);
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
// RCDATA end tag open state
|
|
1023
|
+
//------------------------------------------------------------------
|
|
1024
|
+
_stateRcdataEndTagOpen(cp) {
|
|
1025
|
+
if (isAsciiLetter(cp)) {
|
|
1026
|
+
this.state = State.RCDATA_END_TAG_NAME;
|
|
1027
|
+
this._stateRcdataEndTagName(cp);
|
|
1028
|
+
}
|
|
1029
|
+
else {
|
|
1030
|
+
this._emitChars('</');
|
|
1031
|
+
this.state = State.RCDATA;
|
|
1032
|
+
this._stateRcdata(cp);
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
handleSpecialEndTag(_cp) {
|
|
1036
|
+
if (!this.preprocessor.startsWith(this.lastStartTagName, false)) {
|
|
1037
|
+
return !this._ensureHibernation();
|
|
1038
|
+
}
|
|
1039
|
+
this._createEndTagToken();
|
|
1040
|
+
const token = this.currentToken;
|
|
1041
|
+
token.tagName = this.lastStartTagName;
|
|
1042
|
+
const cp = this.preprocessor.peek(this.lastStartTagName.length);
|
|
1043
|
+
switch (cp) {
|
|
1044
|
+
case $.SPACE:
|
|
1045
|
+
case $.LINE_FEED:
|
|
1046
|
+
case $.TABULATION:
|
|
1047
|
+
case $.FORM_FEED: {
|
|
1048
|
+
this._advanceBy(this.lastStartTagName.length);
|
|
1049
|
+
this.state = State.BEFORE_ATTRIBUTE_NAME;
|
|
1050
|
+
return false;
|
|
1051
|
+
}
|
|
1052
|
+
case $.SOLIDUS: {
|
|
1053
|
+
this._advanceBy(this.lastStartTagName.length);
|
|
1054
|
+
this.state = State.SELF_CLOSING_START_TAG;
|
|
1055
|
+
return false;
|
|
1056
|
+
}
|
|
1057
|
+
case $.GREATER_THAN_SIGN: {
|
|
1058
|
+
this._advanceBy(this.lastStartTagName.length);
|
|
1059
|
+
this.emitCurrentTagToken();
|
|
1060
|
+
this.state = State.DATA;
|
|
1061
|
+
return false;
|
|
1062
|
+
}
|
|
1063
|
+
default: {
|
|
1064
|
+
return !this._ensureHibernation();
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
// RCDATA end tag name state
|
|
1069
|
+
//------------------------------------------------------------------
|
|
1070
|
+
_stateRcdataEndTagName(cp) {
|
|
1071
|
+
if (this.handleSpecialEndTag(cp)) {
|
|
1072
|
+
this._emitChars('</');
|
|
1073
|
+
this.state = State.RCDATA;
|
|
1074
|
+
this._stateRcdata(cp);
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
// RAWTEXT less-than sign state
|
|
1078
|
+
//------------------------------------------------------------------
|
|
1079
|
+
_stateRawtextLessThanSign(cp) {
|
|
1080
|
+
if (cp === $.SOLIDUS) {
|
|
1081
|
+
this.state = State.RAWTEXT_END_TAG_OPEN;
|
|
1082
|
+
}
|
|
1083
|
+
else {
|
|
1084
|
+
this._emitChars('<');
|
|
1085
|
+
this.state = State.RAWTEXT;
|
|
1086
|
+
this._stateRawtext(cp);
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
// RAWTEXT end tag open state
|
|
1090
|
+
//------------------------------------------------------------------
|
|
1091
|
+
_stateRawtextEndTagOpen(cp) {
|
|
1092
|
+
if (isAsciiLetter(cp)) {
|
|
1093
|
+
this.state = State.RAWTEXT_END_TAG_NAME;
|
|
1094
|
+
this._stateRawtextEndTagName(cp);
|
|
1095
|
+
}
|
|
1096
|
+
else {
|
|
1097
|
+
this._emitChars('</');
|
|
1098
|
+
this.state = State.RAWTEXT;
|
|
1099
|
+
this._stateRawtext(cp);
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
// RAWTEXT end tag name state
|
|
1103
|
+
//------------------------------------------------------------------
|
|
1104
|
+
_stateRawtextEndTagName(cp) {
|
|
1105
|
+
if (this.handleSpecialEndTag(cp)) {
|
|
1106
|
+
this._emitChars('</');
|
|
1107
|
+
this.state = State.RAWTEXT;
|
|
1108
|
+
this._stateRawtext(cp);
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
// Script data less-than sign state
|
|
1112
|
+
//------------------------------------------------------------------
|
|
1113
|
+
_stateScriptDataLessThanSign(cp) {
|
|
1114
|
+
switch (cp) {
|
|
1115
|
+
case $.SOLIDUS: {
|
|
1116
|
+
this.state = State.SCRIPT_DATA_END_TAG_OPEN;
|
|
1117
|
+
break;
|
|
1118
|
+
}
|
|
1119
|
+
case $.EXCLAMATION_MARK: {
|
|
1120
|
+
this.state = State.SCRIPT_DATA_ESCAPE_START;
|
|
1121
|
+
this._emitChars('<!');
|
|
1122
|
+
break;
|
|
1123
|
+
}
|
|
1124
|
+
default: {
|
|
1125
|
+
this._emitChars('<');
|
|
1126
|
+
this.state = State.SCRIPT_DATA;
|
|
1127
|
+
this._stateScriptData(cp);
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
// Script data end tag open state
|
|
1132
|
+
//------------------------------------------------------------------
|
|
1133
|
+
_stateScriptDataEndTagOpen(cp) {
|
|
1134
|
+
if (isAsciiLetter(cp)) {
|
|
1135
|
+
this.state = State.SCRIPT_DATA_END_TAG_NAME;
|
|
1136
|
+
this._stateScriptDataEndTagName(cp);
|
|
1137
|
+
}
|
|
1138
|
+
else {
|
|
1139
|
+
this._emitChars('</');
|
|
1140
|
+
this.state = State.SCRIPT_DATA;
|
|
1141
|
+
this._stateScriptData(cp);
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
// Script data end tag name state
|
|
1145
|
+
//------------------------------------------------------------------
|
|
1146
|
+
_stateScriptDataEndTagName(cp) {
|
|
1147
|
+
if (this.handleSpecialEndTag(cp)) {
|
|
1148
|
+
this._emitChars('</');
|
|
1149
|
+
this.state = State.SCRIPT_DATA;
|
|
1150
|
+
this._stateScriptData(cp);
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
// Script data escape start state
|
|
1154
|
+
//------------------------------------------------------------------
|
|
1155
|
+
_stateScriptDataEscapeStart(cp) {
|
|
1156
|
+
if (cp === $.HYPHEN_MINUS) {
|
|
1157
|
+
this.state = State.SCRIPT_DATA_ESCAPE_START_DASH;
|
|
1158
|
+
this._emitChars('-');
|
|
1159
|
+
}
|
|
1160
|
+
else {
|
|
1161
|
+
this.state = State.SCRIPT_DATA;
|
|
1162
|
+
this._stateScriptData(cp);
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
// Script data escape start dash state
|
|
1166
|
+
//------------------------------------------------------------------
|
|
1167
|
+
_stateScriptDataEscapeStartDash(cp) {
|
|
1168
|
+
if (cp === $.HYPHEN_MINUS) {
|
|
1169
|
+
this.state = State.SCRIPT_DATA_ESCAPED_DASH_DASH;
|
|
1170
|
+
this._emitChars('-');
|
|
1171
|
+
}
|
|
1172
|
+
else {
|
|
1173
|
+
this.state = State.SCRIPT_DATA;
|
|
1174
|
+
this._stateScriptData(cp);
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
// Script data escaped state
|
|
1178
|
+
//------------------------------------------------------------------
|
|
1179
|
+
_stateScriptDataEscaped(cp) {
|
|
1180
|
+
switch (cp) {
|
|
1181
|
+
case $.HYPHEN_MINUS: {
|
|
1182
|
+
this.state = State.SCRIPT_DATA_ESCAPED_DASH;
|
|
1183
|
+
this._emitChars('-');
|
|
1184
|
+
break;
|
|
1185
|
+
}
|
|
1186
|
+
case $.LESS_THAN_SIGN: {
|
|
1187
|
+
this.state = State.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;
|
|
1188
|
+
break;
|
|
1189
|
+
}
|
|
1190
|
+
case $.NULL: {
|
|
1191
|
+
this._err(ERR.unexpectedNullCharacter);
|
|
1192
|
+
this._emitChars(REPLACEMENT_CHARACTER);
|
|
1193
|
+
break;
|
|
1194
|
+
}
|
|
1195
|
+
case $.EOF: {
|
|
1196
|
+
this._err(ERR.eofInScriptHtmlCommentLikeText);
|
|
1197
|
+
this._emitEOFToken();
|
|
1198
|
+
break;
|
|
1199
|
+
}
|
|
1200
|
+
default: {
|
|
1201
|
+
this._emitCodePoint(cp);
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
// Script data escaped dash state
|
|
1206
|
+
//------------------------------------------------------------------
|
|
1207
|
+
_stateScriptDataEscapedDash(cp) {
|
|
1208
|
+
switch (cp) {
|
|
1209
|
+
case $.HYPHEN_MINUS: {
|
|
1210
|
+
this.state = State.SCRIPT_DATA_ESCAPED_DASH_DASH;
|
|
1211
|
+
this._emitChars('-');
|
|
1212
|
+
break;
|
|
1213
|
+
}
|
|
1214
|
+
case $.LESS_THAN_SIGN: {
|
|
1215
|
+
this.state = State.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;
|
|
1216
|
+
break;
|
|
1217
|
+
}
|
|
1218
|
+
case $.NULL: {
|
|
1219
|
+
this._err(ERR.unexpectedNullCharacter);
|
|
1220
|
+
this.state = State.SCRIPT_DATA_ESCAPED;
|
|
1221
|
+
this._emitChars(REPLACEMENT_CHARACTER);
|
|
1222
|
+
break;
|
|
1223
|
+
}
|
|
1224
|
+
case $.EOF: {
|
|
1225
|
+
this._err(ERR.eofInScriptHtmlCommentLikeText);
|
|
1226
|
+
this._emitEOFToken();
|
|
1227
|
+
break;
|
|
1228
|
+
}
|
|
1229
|
+
default: {
|
|
1230
|
+
this.state = State.SCRIPT_DATA_ESCAPED;
|
|
1231
|
+
this._emitCodePoint(cp);
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
// Script data escaped dash dash state
|
|
1236
|
+
//------------------------------------------------------------------
|
|
1237
|
+
_stateScriptDataEscapedDashDash(cp) {
|
|
1238
|
+
switch (cp) {
|
|
1239
|
+
case $.HYPHEN_MINUS: {
|
|
1240
|
+
this._emitChars('-');
|
|
1241
|
+
break;
|
|
1242
|
+
}
|
|
1243
|
+
case $.LESS_THAN_SIGN: {
|
|
1244
|
+
this.state = State.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;
|
|
1245
|
+
break;
|
|
1246
|
+
}
|
|
1247
|
+
case $.GREATER_THAN_SIGN: {
|
|
1248
|
+
this.state = State.SCRIPT_DATA;
|
|
1249
|
+
this._emitChars('>');
|
|
1250
|
+
break;
|
|
1251
|
+
}
|
|
1252
|
+
case $.NULL: {
|
|
1253
|
+
this._err(ERR.unexpectedNullCharacter);
|
|
1254
|
+
this.state = State.SCRIPT_DATA_ESCAPED;
|
|
1255
|
+
this._emitChars(REPLACEMENT_CHARACTER);
|
|
1256
|
+
break;
|
|
1257
|
+
}
|
|
1258
|
+
case $.EOF: {
|
|
1259
|
+
this._err(ERR.eofInScriptHtmlCommentLikeText);
|
|
1260
|
+
this._emitEOFToken();
|
|
1261
|
+
break;
|
|
1262
|
+
}
|
|
1263
|
+
default: {
|
|
1264
|
+
this.state = State.SCRIPT_DATA_ESCAPED;
|
|
1265
|
+
this._emitCodePoint(cp);
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
// Script data escaped less-than sign state
|
|
1270
|
+
//------------------------------------------------------------------
|
|
1271
|
+
_stateScriptDataEscapedLessThanSign(cp) {
|
|
1272
|
+
if (cp === $.SOLIDUS) {
|
|
1273
|
+
this.state = State.SCRIPT_DATA_ESCAPED_END_TAG_OPEN;
|
|
1274
|
+
}
|
|
1275
|
+
else if (isAsciiLetter(cp)) {
|
|
1276
|
+
this._emitChars('<');
|
|
1277
|
+
this.state = State.SCRIPT_DATA_DOUBLE_ESCAPE_START;
|
|
1278
|
+
this._stateScriptDataDoubleEscapeStart(cp);
|
|
1279
|
+
}
|
|
1280
|
+
else {
|
|
1281
|
+
this._emitChars('<');
|
|
1282
|
+
this.state = State.SCRIPT_DATA_ESCAPED;
|
|
1283
|
+
this._stateScriptDataEscaped(cp);
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
// Script data escaped end tag open state
|
|
1287
|
+
//------------------------------------------------------------------
|
|
1288
|
+
_stateScriptDataEscapedEndTagOpen(cp) {
|
|
1289
|
+
if (isAsciiLetter(cp)) {
|
|
1290
|
+
this.state = State.SCRIPT_DATA_ESCAPED_END_TAG_NAME;
|
|
1291
|
+
this._stateScriptDataEscapedEndTagName(cp);
|
|
1292
|
+
}
|
|
1293
|
+
else {
|
|
1294
|
+
this._emitChars('</');
|
|
1295
|
+
this.state = State.SCRIPT_DATA_ESCAPED;
|
|
1296
|
+
this._stateScriptDataEscaped(cp);
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
// Script data escaped end tag name state
|
|
1300
|
+
//------------------------------------------------------------------
|
|
1301
|
+
_stateScriptDataEscapedEndTagName(cp) {
|
|
1302
|
+
if (this.handleSpecialEndTag(cp)) {
|
|
1303
|
+
this._emitChars('</');
|
|
1304
|
+
this.state = State.SCRIPT_DATA_ESCAPED;
|
|
1305
|
+
this._stateScriptDataEscaped(cp);
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
// Script data double escape start state
|
|
1309
|
+
//------------------------------------------------------------------
|
|
1310
|
+
_stateScriptDataDoubleEscapeStart(cp) {
|
|
1311
|
+
if (this.preprocessor.startsWith($$.SCRIPT, false) &&
|
|
1312
|
+
isScriptDataDoubleEscapeSequenceEnd(this.preprocessor.peek($$.SCRIPT.length))) {
|
|
1313
|
+
this._emitCodePoint(cp);
|
|
1314
|
+
for (let i = 0; i < $$.SCRIPT.length; i++) {
|
|
1315
|
+
this._emitCodePoint(this._consume());
|
|
1316
|
+
}
|
|
1317
|
+
this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;
|
|
1318
|
+
}
|
|
1319
|
+
else if (!this._ensureHibernation()) {
|
|
1320
|
+
this.state = State.SCRIPT_DATA_ESCAPED;
|
|
1321
|
+
this._stateScriptDataEscaped(cp);
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
// Script data double escaped state
|
|
1325
|
+
//------------------------------------------------------------------
|
|
1326
|
+
_stateScriptDataDoubleEscaped(cp) {
|
|
1327
|
+
switch (cp) {
|
|
1328
|
+
case $.HYPHEN_MINUS: {
|
|
1329
|
+
this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH;
|
|
1330
|
+
this._emitChars('-');
|
|
1331
|
+
break;
|
|
1332
|
+
}
|
|
1333
|
+
case $.LESS_THAN_SIGN: {
|
|
1334
|
+
this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN;
|
|
1335
|
+
this._emitChars('<');
|
|
1336
|
+
break;
|
|
1337
|
+
}
|
|
1338
|
+
case $.NULL: {
|
|
1339
|
+
this._err(ERR.unexpectedNullCharacter);
|
|
1340
|
+
this._emitChars(REPLACEMENT_CHARACTER);
|
|
1341
|
+
break;
|
|
1342
|
+
}
|
|
1343
|
+
case $.EOF: {
|
|
1344
|
+
this._err(ERR.eofInScriptHtmlCommentLikeText);
|
|
1345
|
+
this._emitEOFToken();
|
|
1346
|
+
break;
|
|
1347
|
+
}
|
|
1348
|
+
default: {
|
|
1349
|
+
this._emitCodePoint(cp);
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
// Script data double escaped dash state
|
|
1354
|
+
//------------------------------------------------------------------
|
|
1355
|
+
_stateScriptDataDoubleEscapedDash(cp) {
|
|
1356
|
+
switch (cp) {
|
|
1357
|
+
case $.HYPHEN_MINUS: {
|
|
1358
|
+
this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH;
|
|
1359
|
+
this._emitChars('-');
|
|
1360
|
+
break;
|
|
1361
|
+
}
|
|
1362
|
+
case $.LESS_THAN_SIGN: {
|
|
1363
|
+
this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN;
|
|
1364
|
+
this._emitChars('<');
|
|
1365
|
+
break;
|
|
1366
|
+
}
|
|
1367
|
+
case $.NULL: {
|
|
1368
|
+
this._err(ERR.unexpectedNullCharacter);
|
|
1369
|
+
this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;
|
|
1370
|
+
this._emitChars(REPLACEMENT_CHARACTER);
|
|
1371
|
+
break;
|
|
1372
|
+
}
|
|
1373
|
+
case $.EOF: {
|
|
1374
|
+
this._err(ERR.eofInScriptHtmlCommentLikeText);
|
|
1375
|
+
this._emitEOFToken();
|
|
1376
|
+
break;
|
|
1377
|
+
}
|
|
1378
|
+
default: {
|
|
1379
|
+
this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;
|
|
1380
|
+
this._emitCodePoint(cp);
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
// Script data double escaped dash dash state
|
|
1385
|
+
//------------------------------------------------------------------
|
|
1386
|
+
_stateScriptDataDoubleEscapedDashDash(cp) {
|
|
1387
|
+
switch (cp) {
|
|
1388
|
+
case $.HYPHEN_MINUS: {
|
|
1389
|
+
this._emitChars('-');
|
|
1390
|
+
break;
|
|
1391
|
+
}
|
|
1392
|
+
case $.LESS_THAN_SIGN: {
|
|
1393
|
+
this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN;
|
|
1394
|
+
this._emitChars('<');
|
|
1395
|
+
break;
|
|
1396
|
+
}
|
|
1397
|
+
case $.GREATER_THAN_SIGN: {
|
|
1398
|
+
this.state = State.SCRIPT_DATA;
|
|
1399
|
+
this._emitChars('>');
|
|
1400
|
+
break;
|
|
1401
|
+
}
|
|
1402
|
+
case $.NULL: {
|
|
1403
|
+
this._err(ERR.unexpectedNullCharacter);
|
|
1404
|
+
this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;
|
|
1405
|
+
this._emitChars(REPLACEMENT_CHARACTER);
|
|
1406
|
+
break;
|
|
1407
|
+
}
|
|
1408
|
+
case $.EOF: {
|
|
1409
|
+
this._err(ERR.eofInScriptHtmlCommentLikeText);
|
|
1410
|
+
this._emitEOFToken();
|
|
1411
|
+
break;
|
|
1412
|
+
}
|
|
1413
|
+
default: {
|
|
1414
|
+
this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;
|
|
1415
|
+
this._emitCodePoint(cp);
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
// Script data double escaped less-than sign state
|
|
1420
|
+
//------------------------------------------------------------------
|
|
1421
|
+
_stateScriptDataDoubleEscapedLessThanSign(cp) {
|
|
1422
|
+
if (cp === $.SOLIDUS) {
|
|
1423
|
+
this.state = State.SCRIPT_DATA_DOUBLE_ESCAPE_END;
|
|
1424
|
+
this._emitChars('/');
|
|
1425
|
+
}
|
|
1426
|
+
else {
|
|
1427
|
+
this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;
|
|
1428
|
+
this._stateScriptDataDoubleEscaped(cp);
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
// Script data double escape end state
|
|
1432
|
+
//------------------------------------------------------------------
|
|
1433
|
+
_stateScriptDataDoubleEscapeEnd(cp) {
|
|
1434
|
+
if (this.preprocessor.startsWith($$.SCRIPT, false) &&
|
|
1435
|
+
isScriptDataDoubleEscapeSequenceEnd(this.preprocessor.peek($$.SCRIPT.length))) {
|
|
1436
|
+
this._emitCodePoint(cp);
|
|
1437
|
+
for (let i = 0; i < $$.SCRIPT.length; i++) {
|
|
1438
|
+
this._emitCodePoint(this._consume());
|
|
1439
|
+
}
|
|
1440
|
+
this.state = State.SCRIPT_DATA_ESCAPED;
|
|
1441
|
+
}
|
|
1442
|
+
else if (!this._ensureHibernation()) {
|
|
1443
|
+
this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;
|
|
1444
|
+
this._stateScriptDataDoubleEscaped(cp);
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
// Before attribute name state
|
|
1448
|
+
//------------------------------------------------------------------
|
|
1449
|
+
_stateBeforeAttributeName(cp) {
|
|
1450
|
+
switch (cp) {
|
|
1451
|
+
case $.SPACE:
|
|
1452
|
+
case $.LINE_FEED:
|
|
1453
|
+
case $.TABULATION:
|
|
1454
|
+
case $.FORM_FEED: {
|
|
1455
|
+
// Ignore whitespace
|
|
1456
|
+
break;
|
|
1457
|
+
}
|
|
1458
|
+
case $.SOLIDUS:
|
|
1459
|
+
case $.GREATER_THAN_SIGN:
|
|
1460
|
+
case $.EOF: {
|
|
1461
|
+
this.state = State.AFTER_ATTRIBUTE_NAME;
|
|
1462
|
+
this._stateAfterAttributeName(cp);
|
|
1463
|
+
break;
|
|
1464
|
+
}
|
|
1465
|
+
case $.EQUALS_SIGN: {
|
|
1466
|
+
this._err(ERR.unexpectedEqualsSignBeforeAttributeName);
|
|
1467
|
+
this._createAttr('=');
|
|
1468
|
+
this.state = State.ATTRIBUTE_NAME;
|
|
1469
|
+
break;
|
|
1470
|
+
}
|
|
1471
|
+
default: {
|
|
1472
|
+
this._createAttr('');
|
|
1473
|
+
this.state = State.ATTRIBUTE_NAME;
|
|
1474
|
+
this._stateAttributeName(cp);
|
|
1475
|
+
}
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
// Attribute name state
|
|
1479
|
+
//------------------------------------------------------------------
|
|
1480
|
+
_stateAttributeName(cp) {
|
|
1481
|
+
switch (cp) {
|
|
1482
|
+
case $.SPACE:
|
|
1483
|
+
case $.LINE_FEED:
|
|
1484
|
+
case $.TABULATION:
|
|
1485
|
+
case $.FORM_FEED:
|
|
1486
|
+
case $.SOLIDUS:
|
|
1487
|
+
case $.GREATER_THAN_SIGN:
|
|
1488
|
+
case $.EOF: {
|
|
1489
|
+
this._leaveAttrName();
|
|
1490
|
+
this.state = State.AFTER_ATTRIBUTE_NAME;
|
|
1491
|
+
this._stateAfterAttributeName(cp);
|
|
1492
|
+
break;
|
|
1493
|
+
}
|
|
1494
|
+
case $.EQUALS_SIGN: {
|
|
1495
|
+
this._leaveAttrName();
|
|
1496
|
+
this.state = State.BEFORE_ATTRIBUTE_VALUE;
|
|
1497
|
+
break;
|
|
1498
|
+
}
|
|
1499
|
+
case $.QUOTATION_MARK:
|
|
1500
|
+
case $.APOSTROPHE:
|
|
1501
|
+
case $.LESS_THAN_SIGN: {
|
|
1502
|
+
this._err(ERR.unexpectedCharacterInAttributeName);
|
|
1503
|
+
this.currentAttr.name += String.fromCodePoint(cp);
|
|
1504
|
+
break;
|
|
1505
|
+
}
|
|
1506
|
+
case $.NULL: {
|
|
1507
|
+
this._err(ERR.unexpectedNullCharacter);
|
|
1508
|
+
this.currentAttr.name += REPLACEMENT_CHARACTER;
|
|
1509
|
+
break;
|
|
1510
|
+
}
|
|
1511
|
+
default: {
|
|
1512
|
+
this.currentAttr.name += String.fromCodePoint(isAsciiUpper(cp) ? toAsciiLower(cp) : cp);
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
// After attribute name state
|
|
1517
|
+
//------------------------------------------------------------------
|
|
1518
|
+
_stateAfterAttributeName(cp) {
|
|
1519
|
+
switch (cp) {
|
|
1520
|
+
case $.SPACE:
|
|
1521
|
+
case $.LINE_FEED:
|
|
1522
|
+
case $.TABULATION:
|
|
1523
|
+
case $.FORM_FEED: {
|
|
1524
|
+
// Ignore whitespace
|
|
1525
|
+
break;
|
|
1526
|
+
}
|
|
1527
|
+
case $.SOLIDUS: {
|
|
1528
|
+
this.state = State.SELF_CLOSING_START_TAG;
|
|
1529
|
+
break;
|
|
1530
|
+
}
|
|
1531
|
+
case $.EQUALS_SIGN: {
|
|
1532
|
+
this.state = State.BEFORE_ATTRIBUTE_VALUE;
|
|
1533
|
+
break;
|
|
1534
|
+
}
|
|
1535
|
+
case $.GREATER_THAN_SIGN: {
|
|
1536
|
+
this.state = State.DATA;
|
|
1537
|
+
this.emitCurrentTagToken();
|
|
1538
|
+
break;
|
|
1539
|
+
}
|
|
1540
|
+
case $.EOF: {
|
|
1541
|
+
this._err(ERR.eofInTag);
|
|
1542
|
+
this._emitEOFToken();
|
|
1543
|
+
break;
|
|
1544
|
+
}
|
|
1545
|
+
default: {
|
|
1546
|
+
this._createAttr('');
|
|
1547
|
+
this.state = State.ATTRIBUTE_NAME;
|
|
1548
|
+
this._stateAttributeName(cp);
|
|
1549
|
+
}
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
// Before attribute value state
|
|
1553
|
+
//------------------------------------------------------------------
|
|
1554
|
+
_stateBeforeAttributeValue(cp) {
|
|
1555
|
+
switch (cp) {
|
|
1556
|
+
case $.SPACE:
|
|
1557
|
+
case $.LINE_FEED:
|
|
1558
|
+
case $.TABULATION:
|
|
1559
|
+
case $.FORM_FEED: {
|
|
1560
|
+
// Ignore whitespace
|
|
1561
|
+
break;
|
|
1562
|
+
}
|
|
1563
|
+
case $.QUOTATION_MARK: {
|
|
1564
|
+
this.state = State.ATTRIBUTE_VALUE_DOUBLE_QUOTED;
|
|
1565
|
+
break;
|
|
1566
|
+
}
|
|
1567
|
+
case $.APOSTROPHE: {
|
|
1568
|
+
this.state = State.ATTRIBUTE_VALUE_SINGLE_QUOTED;
|
|
1569
|
+
break;
|
|
1570
|
+
}
|
|
1571
|
+
case $.GREATER_THAN_SIGN: {
|
|
1572
|
+
this._err(ERR.missingAttributeValue);
|
|
1573
|
+
this.state = State.DATA;
|
|
1574
|
+
this.emitCurrentTagToken();
|
|
1575
|
+
break;
|
|
1576
|
+
}
|
|
1577
|
+
default: {
|
|
1578
|
+
this.state = State.ATTRIBUTE_VALUE_UNQUOTED;
|
|
1579
|
+
this._stateAttributeValueUnquoted(cp);
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
// Attribute value (double-quoted) state
|
|
1584
|
+
//------------------------------------------------------------------
|
|
1585
|
+
_stateAttributeValueDoubleQuoted(cp) {
|
|
1586
|
+
switch (cp) {
|
|
1587
|
+
case $.QUOTATION_MARK: {
|
|
1588
|
+
this.state = State.AFTER_ATTRIBUTE_VALUE_QUOTED;
|
|
1589
|
+
break;
|
|
1590
|
+
}
|
|
1591
|
+
case $.AMPERSAND: {
|
|
1592
|
+
this._startCharacterReference();
|
|
1593
|
+
break;
|
|
1594
|
+
}
|
|
1595
|
+
case $.NULL: {
|
|
1596
|
+
this._err(ERR.unexpectedNullCharacter);
|
|
1597
|
+
this.currentAttr.value += REPLACEMENT_CHARACTER;
|
|
1598
|
+
break;
|
|
1599
|
+
}
|
|
1600
|
+
case $.EOF: {
|
|
1601
|
+
this._err(ERR.eofInTag);
|
|
1602
|
+
this._emitEOFToken();
|
|
1603
|
+
break;
|
|
1604
|
+
}
|
|
1605
|
+
default: {
|
|
1606
|
+
this.currentAttr.value += String.fromCodePoint(cp);
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
// Attribute value (single-quoted) state
|
|
1611
|
+
//------------------------------------------------------------------
|
|
1612
|
+
_stateAttributeValueSingleQuoted(cp) {
|
|
1613
|
+
switch (cp) {
|
|
1614
|
+
case $.APOSTROPHE: {
|
|
1615
|
+
this.state = State.AFTER_ATTRIBUTE_VALUE_QUOTED;
|
|
1616
|
+
break;
|
|
1617
|
+
}
|
|
1618
|
+
case $.AMPERSAND: {
|
|
1619
|
+
this._startCharacterReference();
|
|
1620
|
+
break;
|
|
1621
|
+
}
|
|
1622
|
+
case $.NULL: {
|
|
1623
|
+
this._err(ERR.unexpectedNullCharacter);
|
|
1624
|
+
this.currentAttr.value += REPLACEMENT_CHARACTER;
|
|
1625
|
+
break;
|
|
1626
|
+
}
|
|
1627
|
+
case $.EOF: {
|
|
1628
|
+
this._err(ERR.eofInTag);
|
|
1629
|
+
this._emitEOFToken();
|
|
1630
|
+
break;
|
|
1631
|
+
}
|
|
1632
|
+
default: {
|
|
1633
|
+
this.currentAttr.value += String.fromCodePoint(cp);
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
// Attribute value (unquoted) state
|
|
1638
|
+
//------------------------------------------------------------------
|
|
1639
|
+
_stateAttributeValueUnquoted(cp) {
|
|
1640
|
+
switch (cp) {
|
|
1641
|
+
case $.SPACE:
|
|
1642
|
+
case $.LINE_FEED:
|
|
1643
|
+
case $.TABULATION:
|
|
1644
|
+
case $.FORM_FEED: {
|
|
1645
|
+
this._leaveAttrValue();
|
|
1646
|
+
this.state = State.BEFORE_ATTRIBUTE_NAME;
|
|
1647
|
+
break;
|
|
1648
|
+
}
|
|
1649
|
+
case $.AMPERSAND: {
|
|
1650
|
+
this._startCharacterReference();
|
|
1651
|
+
break;
|
|
1652
|
+
}
|
|
1653
|
+
case $.GREATER_THAN_SIGN: {
|
|
1654
|
+
this._leaveAttrValue();
|
|
1655
|
+
this.state = State.DATA;
|
|
1656
|
+
this.emitCurrentTagToken();
|
|
1657
|
+
break;
|
|
1658
|
+
}
|
|
1659
|
+
case $.NULL: {
|
|
1660
|
+
this._err(ERR.unexpectedNullCharacter);
|
|
1661
|
+
this.currentAttr.value += REPLACEMENT_CHARACTER;
|
|
1662
|
+
break;
|
|
1663
|
+
}
|
|
1664
|
+
case $.QUOTATION_MARK:
|
|
1665
|
+
case $.APOSTROPHE:
|
|
1666
|
+
case $.LESS_THAN_SIGN:
|
|
1667
|
+
case $.EQUALS_SIGN:
|
|
1668
|
+
case $.GRAVE_ACCENT: {
|
|
1669
|
+
this._err(ERR.unexpectedCharacterInUnquotedAttributeValue);
|
|
1670
|
+
this.currentAttr.value += String.fromCodePoint(cp);
|
|
1671
|
+
break;
|
|
1672
|
+
}
|
|
1673
|
+
case $.EOF: {
|
|
1674
|
+
this._err(ERR.eofInTag);
|
|
1675
|
+
this._emitEOFToken();
|
|
1676
|
+
break;
|
|
1677
|
+
}
|
|
1678
|
+
default: {
|
|
1679
|
+
this.currentAttr.value += String.fromCodePoint(cp);
|
|
1680
|
+
}
|
|
1681
|
+
}
|
|
1682
|
+
}
|
|
1683
|
+
// After attribute value (quoted) state
|
|
1684
|
+
//------------------------------------------------------------------
|
|
1685
|
+
_stateAfterAttributeValueQuoted(cp) {
|
|
1686
|
+
switch (cp) {
|
|
1687
|
+
case $.SPACE:
|
|
1688
|
+
case $.LINE_FEED:
|
|
1689
|
+
case $.TABULATION:
|
|
1690
|
+
case $.FORM_FEED: {
|
|
1691
|
+
this._leaveAttrValue();
|
|
1692
|
+
this.state = State.BEFORE_ATTRIBUTE_NAME;
|
|
1693
|
+
break;
|
|
1694
|
+
}
|
|
1695
|
+
case $.SOLIDUS: {
|
|
1696
|
+
this._leaveAttrValue();
|
|
1697
|
+
this.state = State.SELF_CLOSING_START_TAG;
|
|
1698
|
+
break;
|
|
1699
|
+
}
|
|
1700
|
+
case $.GREATER_THAN_SIGN: {
|
|
1701
|
+
this._leaveAttrValue();
|
|
1702
|
+
this.state = State.DATA;
|
|
1703
|
+
this.emitCurrentTagToken();
|
|
1704
|
+
break;
|
|
1705
|
+
}
|
|
1706
|
+
case $.EOF: {
|
|
1707
|
+
this._err(ERR.eofInTag);
|
|
1708
|
+
this._emitEOFToken();
|
|
1709
|
+
break;
|
|
1710
|
+
}
|
|
1711
|
+
default: {
|
|
1712
|
+
this._err(ERR.missingWhitespaceBetweenAttributes);
|
|
1713
|
+
this.state = State.BEFORE_ATTRIBUTE_NAME;
|
|
1714
|
+
this._stateBeforeAttributeName(cp);
|
|
1715
|
+
}
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
// Self-closing start tag state
|
|
1719
|
+
//------------------------------------------------------------------
|
|
1720
|
+
_stateSelfClosingStartTag(cp) {
|
|
1721
|
+
switch (cp) {
|
|
1722
|
+
case $.GREATER_THAN_SIGN: {
|
|
1723
|
+
const token = this.currentToken;
|
|
1724
|
+
token.selfClosing = true;
|
|
1725
|
+
this.state = State.DATA;
|
|
1726
|
+
this.emitCurrentTagToken();
|
|
1727
|
+
break;
|
|
1728
|
+
}
|
|
1729
|
+
case $.EOF: {
|
|
1730
|
+
this._err(ERR.eofInTag);
|
|
1731
|
+
this._emitEOFToken();
|
|
1732
|
+
break;
|
|
1733
|
+
}
|
|
1734
|
+
default: {
|
|
1735
|
+
this._err(ERR.unexpectedSolidusInTag);
|
|
1736
|
+
this.state = State.BEFORE_ATTRIBUTE_NAME;
|
|
1737
|
+
this._stateBeforeAttributeName(cp);
|
|
1738
|
+
}
|
|
1739
|
+
}
|
|
1740
|
+
}
|
|
1741
|
+
// Bogus comment state
|
|
1742
|
+
//------------------------------------------------------------------
|
|
1743
|
+
_stateBogusComment(cp) {
|
|
1744
|
+
const token = this.currentToken;
|
|
1745
|
+
switch (cp) {
|
|
1746
|
+
case $.GREATER_THAN_SIGN: {
|
|
1747
|
+
this.state = State.DATA;
|
|
1748
|
+
this.emitCurrentComment(token);
|
|
1749
|
+
break;
|
|
1750
|
+
}
|
|
1751
|
+
case $.EOF: {
|
|
1752
|
+
this.emitCurrentComment(token);
|
|
1753
|
+
this._emitEOFToken();
|
|
1754
|
+
break;
|
|
1755
|
+
}
|
|
1756
|
+
case $.NULL: {
|
|
1757
|
+
this._err(ERR.unexpectedNullCharacter);
|
|
1758
|
+
token.data += REPLACEMENT_CHARACTER;
|
|
1759
|
+
break;
|
|
1760
|
+
}
|
|
1761
|
+
default: {
|
|
1762
|
+
token.data += String.fromCodePoint(cp);
|
|
1763
|
+
}
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
// Markup declaration open state
|
|
1767
|
+
//------------------------------------------------------------------
|
|
1768
|
+
_stateMarkupDeclarationOpen(cp) {
|
|
1769
|
+
if (this._consumeSequenceIfMatch($$.DASH_DASH, true)) {
|
|
1770
|
+
this._createCommentToken($$.DASH_DASH.length + 1);
|
|
1771
|
+
this.state = State.COMMENT_START;
|
|
1772
|
+
}
|
|
1773
|
+
else if (this._consumeSequenceIfMatch($$.DOCTYPE, false)) {
|
|
1774
|
+
// NOTE: Doctypes tokens are created without fixed offsets. We keep track of the moment a doctype *might* start here.
|
|
1775
|
+
this.currentLocation = this.getCurrentLocation($$.DOCTYPE.length + 1);
|
|
1776
|
+
this.state = State.DOCTYPE;
|
|
1777
|
+
}
|
|
1778
|
+
else if (this._consumeSequenceIfMatch($$.CDATA_START, true)) {
|
|
1779
|
+
if (this.inForeignNode) {
|
|
1780
|
+
this.state = State.CDATA_SECTION;
|
|
1781
|
+
}
|
|
1782
|
+
else {
|
|
1783
|
+
this._err(ERR.cdataInHtmlContent);
|
|
1784
|
+
this._createCommentToken($$.CDATA_START.length + 1);
|
|
1785
|
+
this.currentToken.data = '[CDATA[';
|
|
1786
|
+
this.state = State.BOGUS_COMMENT;
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
1789
|
+
//NOTE: Sequence lookups can be abrupted by hibernation. In that case, lookup
|
|
1790
|
+
//results are no longer valid and we will need to start over.
|
|
1791
|
+
else if (!this._ensureHibernation()) {
|
|
1792
|
+
this._err(ERR.incorrectlyOpenedComment);
|
|
1793
|
+
this._createCommentToken(2);
|
|
1794
|
+
this.state = State.BOGUS_COMMENT;
|
|
1795
|
+
this._stateBogusComment(cp);
|
|
1796
|
+
}
|
|
1797
|
+
}
|
|
1798
|
+
// Comment start state
|
|
1799
|
+
//------------------------------------------------------------------
|
|
1800
|
+
_stateCommentStart(cp) {
|
|
1801
|
+
switch (cp) {
|
|
1802
|
+
case $.HYPHEN_MINUS: {
|
|
1803
|
+
this.state = State.COMMENT_START_DASH;
|
|
1804
|
+
break;
|
|
1805
|
+
}
|
|
1806
|
+
case $.GREATER_THAN_SIGN: {
|
|
1807
|
+
this._err(ERR.abruptClosingOfEmptyComment);
|
|
1808
|
+
this.state = State.DATA;
|
|
1809
|
+
const token = this.currentToken;
|
|
1810
|
+
this.emitCurrentComment(token);
|
|
1811
|
+
break;
|
|
1812
|
+
}
|
|
1813
|
+
default: {
|
|
1814
|
+
this.state = State.COMMENT;
|
|
1815
|
+
this._stateComment(cp);
|
|
1816
|
+
}
|
|
1817
|
+
}
|
|
1818
|
+
}
|
|
1819
|
+
// Comment start dash state
|
|
1820
|
+
//------------------------------------------------------------------
|
|
1821
|
+
_stateCommentStartDash(cp) {
|
|
1822
|
+
const token = this.currentToken;
|
|
1823
|
+
switch (cp) {
|
|
1824
|
+
case $.HYPHEN_MINUS: {
|
|
1825
|
+
this.state = State.COMMENT_END;
|
|
1826
|
+
break;
|
|
1827
|
+
}
|
|
1828
|
+
case $.GREATER_THAN_SIGN: {
|
|
1829
|
+
this._err(ERR.abruptClosingOfEmptyComment);
|
|
1830
|
+
this.state = State.DATA;
|
|
1831
|
+
this.emitCurrentComment(token);
|
|
1832
|
+
break;
|
|
1833
|
+
}
|
|
1834
|
+
case $.EOF: {
|
|
1835
|
+
this._err(ERR.eofInComment);
|
|
1836
|
+
this.emitCurrentComment(token);
|
|
1837
|
+
this._emitEOFToken();
|
|
1838
|
+
break;
|
|
1839
|
+
}
|
|
1840
|
+
default: {
|
|
1841
|
+
token.data += '-';
|
|
1842
|
+
this.state = State.COMMENT;
|
|
1843
|
+
this._stateComment(cp);
|
|
1844
|
+
}
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
// Comment state
|
|
1848
|
+
//------------------------------------------------------------------
|
|
1849
|
+
_stateComment(cp) {
|
|
1850
|
+
const token = this.currentToken;
|
|
1851
|
+
switch (cp) {
|
|
1852
|
+
case $.HYPHEN_MINUS: {
|
|
1853
|
+
this.state = State.COMMENT_END_DASH;
|
|
1854
|
+
break;
|
|
1855
|
+
}
|
|
1856
|
+
case $.LESS_THAN_SIGN: {
|
|
1857
|
+
token.data += '<';
|
|
1858
|
+
this.state = State.COMMENT_LESS_THAN_SIGN;
|
|
1859
|
+
break;
|
|
1860
|
+
}
|
|
1861
|
+
case $.NULL: {
|
|
1862
|
+
this._err(ERR.unexpectedNullCharacter);
|
|
1863
|
+
token.data += REPLACEMENT_CHARACTER;
|
|
1864
|
+
break;
|
|
1865
|
+
}
|
|
1866
|
+
case $.EOF: {
|
|
1867
|
+
this._err(ERR.eofInComment);
|
|
1868
|
+
this.emitCurrentComment(token);
|
|
1869
|
+
this._emitEOFToken();
|
|
1870
|
+
break;
|
|
1871
|
+
}
|
|
1872
|
+
default: {
|
|
1873
|
+
token.data += String.fromCodePoint(cp);
|
|
1874
|
+
}
|
|
1875
|
+
}
|
|
1876
|
+
}
|
|
1877
|
+
// Comment less-than sign state
|
|
1878
|
+
//------------------------------------------------------------------
|
|
1879
|
+
_stateCommentLessThanSign(cp) {
|
|
1880
|
+
const token = this.currentToken;
|
|
1881
|
+
switch (cp) {
|
|
1882
|
+
case $.EXCLAMATION_MARK: {
|
|
1883
|
+
token.data += '!';
|
|
1884
|
+
this.state = State.COMMENT_LESS_THAN_SIGN_BANG;
|
|
1885
|
+
break;
|
|
1886
|
+
}
|
|
1887
|
+
case $.LESS_THAN_SIGN: {
|
|
1888
|
+
token.data += '<';
|
|
1889
|
+
break;
|
|
1890
|
+
}
|
|
1891
|
+
default: {
|
|
1892
|
+
this.state = State.COMMENT;
|
|
1893
|
+
this._stateComment(cp);
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
}
|
|
1897
|
+
// Comment less-than sign bang state
|
|
1898
|
+
//------------------------------------------------------------------
|
|
1899
|
+
_stateCommentLessThanSignBang(cp) {
|
|
1900
|
+
if (cp === $.HYPHEN_MINUS) {
|
|
1901
|
+
this.state = State.COMMENT_LESS_THAN_SIGN_BANG_DASH;
|
|
1902
|
+
}
|
|
1903
|
+
else {
|
|
1904
|
+
this.state = State.COMMENT;
|
|
1905
|
+
this._stateComment(cp);
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
// Comment less-than sign bang dash state
|
|
1909
|
+
//------------------------------------------------------------------
|
|
1910
|
+
_stateCommentLessThanSignBangDash(cp) {
|
|
1911
|
+
if (cp === $.HYPHEN_MINUS) {
|
|
1912
|
+
this.state = State.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH;
|
|
1913
|
+
}
|
|
1914
|
+
else {
|
|
1915
|
+
this.state = State.COMMENT_END_DASH;
|
|
1916
|
+
this._stateCommentEndDash(cp);
|
|
1917
|
+
}
|
|
1918
|
+
}
|
|
1919
|
+
// Comment less-than sign bang dash dash state
|
|
1920
|
+
//------------------------------------------------------------------
|
|
1921
|
+
_stateCommentLessThanSignBangDashDash(cp) {
|
|
1922
|
+
if (cp !== $.GREATER_THAN_SIGN && cp !== $.EOF) {
|
|
1923
|
+
this._err(ERR.nestedComment);
|
|
1924
|
+
}
|
|
1925
|
+
this.state = State.COMMENT_END;
|
|
1926
|
+
this._stateCommentEnd(cp);
|
|
1927
|
+
}
|
|
1928
|
+
// Comment end dash state
|
|
1929
|
+
//------------------------------------------------------------------
|
|
1930
|
+
_stateCommentEndDash(cp) {
|
|
1931
|
+
const token = this.currentToken;
|
|
1932
|
+
switch (cp) {
|
|
1933
|
+
case $.HYPHEN_MINUS: {
|
|
1934
|
+
this.state = State.COMMENT_END;
|
|
1935
|
+
break;
|
|
1936
|
+
}
|
|
1937
|
+
case $.EOF: {
|
|
1938
|
+
this._err(ERR.eofInComment);
|
|
1939
|
+
this.emitCurrentComment(token);
|
|
1940
|
+
this._emitEOFToken();
|
|
1941
|
+
break;
|
|
1942
|
+
}
|
|
1943
|
+
default: {
|
|
1944
|
+
token.data += '-';
|
|
1945
|
+
this.state = State.COMMENT;
|
|
1946
|
+
this._stateComment(cp);
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
}
|
|
1950
|
+
// Comment end state
|
|
1951
|
+
//------------------------------------------------------------------
|
|
1952
|
+
_stateCommentEnd(cp) {
|
|
1953
|
+
const token = this.currentToken;
|
|
1954
|
+
switch (cp) {
|
|
1955
|
+
case $.GREATER_THAN_SIGN: {
|
|
1956
|
+
this.state = State.DATA;
|
|
1957
|
+
this.emitCurrentComment(token);
|
|
1958
|
+
break;
|
|
1959
|
+
}
|
|
1960
|
+
case $.EXCLAMATION_MARK: {
|
|
1961
|
+
this.state = State.COMMENT_END_BANG;
|
|
1962
|
+
break;
|
|
1963
|
+
}
|
|
1964
|
+
case $.HYPHEN_MINUS: {
|
|
1965
|
+
token.data += '-';
|
|
1966
|
+
break;
|
|
1967
|
+
}
|
|
1968
|
+
case $.EOF: {
|
|
1969
|
+
this._err(ERR.eofInComment);
|
|
1970
|
+
this.emitCurrentComment(token);
|
|
1971
|
+
this._emitEOFToken();
|
|
1972
|
+
break;
|
|
1973
|
+
}
|
|
1974
|
+
default: {
|
|
1975
|
+
token.data += '--';
|
|
1976
|
+
this.state = State.COMMENT;
|
|
1977
|
+
this._stateComment(cp);
|
|
1978
|
+
}
|
|
1979
|
+
}
|
|
1980
|
+
}
|
|
1981
|
+
// Comment end bang state
|
|
1982
|
+
//------------------------------------------------------------------
|
|
1983
|
+
_stateCommentEndBang(cp) {
|
|
1984
|
+
const token = this.currentToken;
|
|
1985
|
+
switch (cp) {
|
|
1986
|
+
case $.HYPHEN_MINUS: {
|
|
1987
|
+
token.data += '--!';
|
|
1988
|
+
this.state = State.COMMENT_END_DASH;
|
|
1989
|
+
break;
|
|
1990
|
+
}
|
|
1991
|
+
case $.GREATER_THAN_SIGN: {
|
|
1992
|
+
this._err(ERR.incorrectlyClosedComment);
|
|
1993
|
+
this.state = State.DATA;
|
|
1994
|
+
this.emitCurrentComment(token);
|
|
1995
|
+
break;
|
|
1996
|
+
}
|
|
1997
|
+
case $.EOF: {
|
|
1998
|
+
this._err(ERR.eofInComment);
|
|
1999
|
+
this.emitCurrentComment(token);
|
|
2000
|
+
this._emitEOFToken();
|
|
2001
|
+
break;
|
|
2002
|
+
}
|
|
2003
|
+
default: {
|
|
2004
|
+
token.data += '--!';
|
|
2005
|
+
this.state = State.COMMENT;
|
|
2006
|
+
this._stateComment(cp);
|
|
2007
|
+
}
|
|
2008
|
+
}
|
|
2009
|
+
}
|
|
2010
|
+
// DOCTYPE state
|
|
2011
|
+
//------------------------------------------------------------------
|
|
2012
|
+
_stateDoctype(cp) {
|
|
2013
|
+
switch (cp) {
|
|
2014
|
+
case $.SPACE:
|
|
2015
|
+
case $.LINE_FEED:
|
|
2016
|
+
case $.TABULATION:
|
|
2017
|
+
case $.FORM_FEED: {
|
|
2018
|
+
this.state = State.BEFORE_DOCTYPE_NAME;
|
|
2019
|
+
break;
|
|
2020
|
+
}
|
|
2021
|
+
case $.GREATER_THAN_SIGN: {
|
|
2022
|
+
this.state = State.BEFORE_DOCTYPE_NAME;
|
|
2023
|
+
this._stateBeforeDoctypeName(cp);
|
|
2024
|
+
break;
|
|
2025
|
+
}
|
|
2026
|
+
case $.EOF: {
|
|
2027
|
+
this._err(ERR.eofInDoctype);
|
|
2028
|
+
this._createDoctypeToken(null);
|
|
2029
|
+
const token = this.currentToken;
|
|
2030
|
+
token.forceQuirks = true;
|
|
2031
|
+
this.emitCurrentDoctype(token);
|
|
2032
|
+
this._emitEOFToken();
|
|
2033
|
+
break;
|
|
2034
|
+
}
|
|
2035
|
+
default: {
|
|
2036
|
+
this._err(ERR.missingWhitespaceBeforeDoctypeName);
|
|
2037
|
+
this.state = State.BEFORE_DOCTYPE_NAME;
|
|
2038
|
+
this._stateBeforeDoctypeName(cp);
|
|
2039
|
+
}
|
|
2040
|
+
}
|
|
2041
|
+
}
|
|
2042
|
+
// Before DOCTYPE name state
|
|
2043
|
+
//------------------------------------------------------------------
|
|
2044
|
+
_stateBeforeDoctypeName(cp) {
|
|
2045
|
+
if (isAsciiUpper(cp)) {
|
|
2046
|
+
this._createDoctypeToken(String.fromCharCode(toAsciiLower(cp)));
|
|
2047
|
+
this.state = State.DOCTYPE_NAME;
|
|
2048
|
+
}
|
|
2049
|
+
else
|
|
2050
|
+
switch (cp) {
|
|
2051
|
+
case $.SPACE:
|
|
2052
|
+
case $.LINE_FEED:
|
|
2053
|
+
case $.TABULATION:
|
|
2054
|
+
case $.FORM_FEED: {
|
|
2055
|
+
// Ignore whitespace
|
|
2056
|
+
break;
|
|
2057
|
+
}
|
|
2058
|
+
case $.NULL: {
|
|
2059
|
+
this._err(ERR.unexpectedNullCharacter);
|
|
2060
|
+
this._createDoctypeToken(REPLACEMENT_CHARACTER);
|
|
2061
|
+
this.state = State.DOCTYPE_NAME;
|
|
2062
|
+
break;
|
|
2063
|
+
}
|
|
2064
|
+
case $.GREATER_THAN_SIGN: {
|
|
2065
|
+
this._err(ERR.missingDoctypeName);
|
|
2066
|
+
this._createDoctypeToken(null);
|
|
2067
|
+
const token = this.currentToken;
|
|
2068
|
+
token.forceQuirks = true;
|
|
2069
|
+
this.emitCurrentDoctype(token);
|
|
2070
|
+
this.state = State.DATA;
|
|
2071
|
+
break;
|
|
2072
|
+
}
|
|
2073
|
+
case $.EOF: {
|
|
2074
|
+
this._err(ERR.eofInDoctype);
|
|
2075
|
+
this._createDoctypeToken(null);
|
|
2076
|
+
const token = this.currentToken;
|
|
2077
|
+
token.forceQuirks = true;
|
|
2078
|
+
this.emitCurrentDoctype(token);
|
|
2079
|
+
this._emitEOFToken();
|
|
2080
|
+
break;
|
|
2081
|
+
}
|
|
2082
|
+
default: {
|
|
2083
|
+
this._createDoctypeToken(String.fromCodePoint(cp));
|
|
2084
|
+
this.state = State.DOCTYPE_NAME;
|
|
2085
|
+
}
|
|
2086
|
+
}
|
|
2087
|
+
}
|
|
2088
|
+
// DOCTYPE name state
|
|
2089
|
+
//------------------------------------------------------------------
|
|
2090
|
+
_stateDoctypeName(cp) {
|
|
2091
|
+
const token = this.currentToken;
|
|
2092
|
+
switch (cp) {
|
|
2093
|
+
case $.SPACE:
|
|
2094
|
+
case $.LINE_FEED:
|
|
2095
|
+
case $.TABULATION:
|
|
2096
|
+
case $.FORM_FEED: {
|
|
2097
|
+
this.state = State.AFTER_DOCTYPE_NAME;
|
|
2098
|
+
break;
|
|
2099
|
+
}
|
|
2100
|
+
case $.GREATER_THAN_SIGN: {
|
|
2101
|
+
this.state = State.DATA;
|
|
2102
|
+
this.emitCurrentDoctype(token);
|
|
2103
|
+
break;
|
|
2104
|
+
}
|
|
2105
|
+
case $.NULL: {
|
|
2106
|
+
this._err(ERR.unexpectedNullCharacter);
|
|
2107
|
+
token.name += REPLACEMENT_CHARACTER;
|
|
2108
|
+
break;
|
|
2109
|
+
}
|
|
2110
|
+
case $.EOF: {
|
|
2111
|
+
this._err(ERR.eofInDoctype);
|
|
2112
|
+
token.forceQuirks = true;
|
|
2113
|
+
this.emitCurrentDoctype(token);
|
|
2114
|
+
this._emitEOFToken();
|
|
2115
|
+
break;
|
|
2116
|
+
}
|
|
2117
|
+
default: {
|
|
2118
|
+
token.name += String.fromCodePoint(isAsciiUpper(cp) ? toAsciiLower(cp) : cp);
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
}
|
|
2122
|
+
// After DOCTYPE name state
|
|
2123
|
+
//------------------------------------------------------------------
|
|
2124
|
+
_stateAfterDoctypeName(cp) {
|
|
2125
|
+
const token = this.currentToken;
|
|
2126
|
+
switch (cp) {
|
|
2127
|
+
case $.SPACE:
|
|
2128
|
+
case $.LINE_FEED:
|
|
2129
|
+
case $.TABULATION:
|
|
2130
|
+
case $.FORM_FEED: {
|
|
2131
|
+
// Ignore whitespace
|
|
2132
|
+
break;
|
|
2133
|
+
}
|
|
2134
|
+
case $.GREATER_THAN_SIGN: {
|
|
2135
|
+
this.state = State.DATA;
|
|
2136
|
+
this.emitCurrentDoctype(token);
|
|
2137
|
+
break;
|
|
2138
|
+
}
|
|
2139
|
+
case $.EOF: {
|
|
2140
|
+
this._err(ERR.eofInDoctype);
|
|
2141
|
+
token.forceQuirks = true;
|
|
2142
|
+
this.emitCurrentDoctype(token);
|
|
2143
|
+
this._emitEOFToken();
|
|
2144
|
+
break;
|
|
2145
|
+
}
|
|
2146
|
+
default: {
|
|
2147
|
+
if (this._consumeSequenceIfMatch($$.PUBLIC, false)) {
|
|
2148
|
+
this.state = State.AFTER_DOCTYPE_PUBLIC_KEYWORD;
|
|
2149
|
+
}
|
|
2150
|
+
else if (this._consumeSequenceIfMatch($$.SYSTEM, false)) {
|
|
2151
|
+
this.state = State.AFTER_DOCTYPE_SYSTEM_KEYWORD;
|
|
2152
|
+
}
|
|
2153
|
+
//NOTE: sequence lookup can be abrupted by hibernation. In that case lookup
|
|
2154
|
+
//results are no longer valid and we will need to start over.
|
|
2155
|
+
else if (!this._ensureHibernation()) {
|
|
2156
|
+
this._err(ERR.invalidCharacterSequenceAfterDoctypeName);
|
|
2157
|
+
token.forceQuirks = true;
|
|
2158
|
+
this.state = State.BOGUS_DOCTYPE;
|
|
2159
|
+
this._stateBogusDoctype(cp);
|
|
2160
|
+
}
|
|
2161
|
+
}
|
|
2162
|
+
}
|
|
2163
|
+
}
|
|
2164
|
+
// After DOCTYPE public keyword state
|
|
2165
|
+
//------------------------------------------------------------------
|
|
2166
|
+
_stateAfterDoctypePublicKeyword(cp) {
|
|
2167
|
+
const token = this.currentToken;
|
|
2168
|
+
switch (cp) {
|
|
2169
|
+
case $.SPACE:
|
|
2170
|
+
case $.LINE_FEED:
|
|
2171
|
+
case $.TABULATION:
|
|
2172
|
+
case $.FORM_FEED: {
|
|
2173
|
+
this.state = State.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;
|
|
2174
|
+
break;
|
|
2175
|
+
}
|
|
2176
|
+
case $.QUOTATION_MARK: {
|
|
2177
|
+
this._err(ERR.missingWhitespaceAfterDoctypePublicKeyword);
|
|
2178
|
+
token.publicId = '';
|
|
2179
|
+
this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
|
|
2180
|
+
break;
|
|
2181
|
+
}
|
|
2182
|
+
case $.APOSTROPHE: {
|
|
2183
|
+
this._err(ERR.missingWhitespaceAfterDoctypePublicKeyword);
|
|
2184
|
+
token.publicId = '';
|
|
2185
|
+
this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
|
|
2186
|
+
break;
|
|
2187
|
+
}
|
|
2188
|
+
case $.GREATER_THAN_SIGN: {
|
|
2189
|
+
this._err(ERR.missingDoctypePublicIdentifier);
|
|
2190
|
+
token.forceQuirks = true;
|
|
2191
|
+
this.state = State.DATA;
|
|
2192
|
+
this.emitCurrentDoctype(token);
|
|
2193
|
+
break;
|
|
2194
|
+
}
|
|
2195
|
+
case $.EOF: {
|
|
2196
|
+
this._err(ERR.eofInDoctype);
|
|
2197
|
+
token.forceQuirks = true;
|
|
2198
|
+
this.emitCurrentDoctype(token);
|
|
2199
|
+
this._emitEOFToken();
|
|
2200
|
+
break;
|
|
2201
|
+
}
|
|
2202
|
+
default: {
|
|
2203
|
+
this._err(ERR.missingQuoteBeforeDoctypePublicIdentifier);
|
|
2204
|
+
token.forceQuirks = true;
|
|
2205
|
+
this.state = State.BOGUS_DOCTYPE;
|
|
2206
|
+
this._stateBogusDoctype(cp);
|
|
2207
|
+
}
|
|
2208
|
+
}
|
|
2209
|
+
}
|
|
2210
|
+
// Before DOCTYPE public identifier state
|
|
2211
|
+
//------------------------------------------------------------------
|
|
2212
|
+
_stateBeforeDoctypePublicIdentifier(cp) {
|
|
2213
|
+
const token = this.currentToken;
|
|
2214
|
+
switch (cp) {
|
|
2215
|
+
case $.SPACE:
|
|
2216
|
+
case $.LINE_FEED:
|
|
2217
|
+
case $.TABULATION:
|
|
2218
|
+
case $.FORM_FEED: {
|
|
2219
|
+
// Ignore whitespace
|
|
2220
|
+
break;
|
|
2221
|
+
}
|
|
2222
|
+
case $.QUOTATION_MARK: {
|
|
2223
|
+
token.publicId = '';
|
|
2224
|
+
this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
|
|
2225
|
+
break;
|
|
2226
|
+
}
|
|
2227
|
+
case $.APOSTROPHE: {
|
|
2228
|
+
token.publicId = '';
|
|
2229
|
+
this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
|
|
2230
|
+
break;
|
|
2231
|
+
}
|
|
2232
|
+
case $.GREATER_THAN_SIGN: {
|
|
2233
|
+
this._err(ERR.missingDoctypePublicIdentifier);
|
|
2234
|
+
token.forceQuirks = true;
|
|
2235
|
+
this.state = State.DATA;
|
|
2236
|
+
this.emitCurrentDoctype(token);
|
|
2237
|
+
break;
|
|
2238
|
+
}
|
|
2239
|
+
case $.EOF: {
|
|
2240
|
+
this._err(ERR.eofInDoctype);
|
|
2241
|
+
token.forceQuirks = true;
|
|
2242
|
+
this.emitCurrentDoctype(token);
|
|
2243
|
+
this._emitEOFToken();
|
|
2244
|
+
break;
|
|
2245
|
+
}
|
|
2246
|
+
default: {
|
|
2247
|
+
this._err(ERR.missingQuoteBeforeDoctypePublicIdentifier);
|
|
2248
|
+
token.forceQuirks = true;
|
|
2249
|
+
this.state = State.BOGUS_DOCTYPE;
|
|
2250
|
+
this._stateBogusDoctype(cp);
|
|
2251
|
+
}
|
|
2252
|
+
}
|
|
2253
|
+
}
|
|
2254
|
+
// DOCTYPE public identifier (double-quoted) state
|
|
2255
|
+
//------------------------------------------------------------------
|
|
2256
|
+
_stateDoctypePublicIdentifierDoubleQuoted(cp) {
|
|
2257
|
+
const token = this.currentToken;
|
|
2258
|
+
switch (cp) {
|
|
2259
|
+
case $.QUOTATION_MARK: {
|
|
2260
|
+
this.state = State.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;
|
|
2261
|
+
break;
|
|
2262
|
+
}
|
|
2263
|
+
case $.NULL: {
|
|
2264
|
+
this._err(ERR.unexpectedNullCharacter);
|
|
2265
|
+
token.publicId += REPLACEMENT_CHARACTER;
|
|
2266
|
+
break;
|
|
2267
|
+
}
|
|
2268
|
+
case $.GREATER_THAN_SIGN: {
|
|
2269
|
+
this._err(ERR.abruptDoctypePublicIdentifier);
|
|
2270
|
+
token.forceQuirks = true;
|
|
2271
|
+
this.emitCurrentDoctype(token);
|
|
2272
|
+
this.state = State.DATA;
|
|
2273
|
+
break;
|
|
2274
|
+
}
|
|
2275
|
+
case $.EOF: {
|
|
2276
|
+
this._err(ERR.eofInDoctype);
|
|
2277
|
+
token.forceQuirks = true;
|
|
2278
|
+
this.emitCurrentDoctype(token);
|
|
2279
|
+
this._emitEOFToken();
|
|
2280
|
+
break;
|
|
2281
|
+
}
|
|
2282
|
+
default: {
|
|
2283
|
+
token.publicId += String.fromCodePoint(cp);
|
|
2284
|
+
}
|
|
2285
|
+
}
|
|
2286
|
+
}
|
|
2287
|
+
// DOCTYPE public identifier (single-quoted) state
|
|
2288
|
+
//------------------------------------------------------------------
|
|
2289
|
+
_stateDoctypePublicIdentifierSingleQuoted(cp) {
|
|
2290
|
+
const token = this.currentToken;
|
|
2291
|
+
switch (cp) {
|
|
2292
|
+
case $.APOSTROPHE: {
|
|
2293
|
+
this.state = State.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;
|
|
2294
|
+
break;
|
|
2295
|
+
}
|
|
2296
|
+
case $.NULL: {
|
|
2297
|
+
this._err(ERR.unexpectedNullCharacter);
|
|
2298
|
+
token.publicId += REPLACEMENT_CHARACTER;
|
|
2299
|
+
break;
|
|
2300
|
+
}
|
|
2301
|
+
case $.GREATER_THAN_SIGN: {
|
|
2302
|
+
this._err(ERR.abruptDoctypePublicIdentifier);
|
|
2303
|
+
token.forceQuirks = true;
|
|
2304
|
+
this.emitCurrentDoctype(token);
|
|
2305
|
+
this.state = State.DATA;
|
|
2306
|
+
break;
|
|
2307
|
+
}
|
|
2308
|
+
case $.EOF: {
|
|
2309
|
+
this._err(ERR.eofInDoctype);
|
|
2310
|
+
token.forceQuirks = true;
|
|
2311
|
+
this.emitCurrentDoctype(token);
|
|
2312
|
+
this._emitEOFToken();
|
|
2313
|
+
break;
|
|
2314
|
+
}
|
|
2315
|
+
default: {
|
|
2316
|
+
token.publicId += String.fromCodePoint(cp);
|
|
2317
|
+
}
|
|
2318
|
+
}
|
|
2319
|
+
}
|
|
2320
|
+
// After DOCTYPE public identifier state
|
|
2321
|
+
//------------------------------------------------------------------
|
|
2322
|
+
_stateAfterDoctypePublicIdentifier(cp) {
|
|
2323
|
+
const token = this.currentToken;
|
|
2324
|
+
switch (cp) {
|
|
2325
|
+
case $.SPACE:
|
|
2326
|
+
case $.LINE_FEED:
|
|
2327
|
+
case $.TABULATION:
|
|
2328
|
+
case $.FORM_FEED: {
|
|
2329
|
+
this.state = State.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;
|
|
2330
|
+
break;
|
|
2331
|
+
}
|
|
2332
|
+
case $.GREATER_THAN_SIGN: {
|
|
2333
|
+
this.state = State.DATA;
|
|
2334
|
+
this.emitCurrentDoctype(token);
|
|
2335
|
+
break;
|
|
2336
|
+
}
|
|
2337
|
+
case $.QUOTATION_MARK: {
|
|
2338
|
+
this._err(ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers);
|
|
2339
|
+
token.systemId = '';
|
|
2340
|
+
this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
|
|
2341
|
+
break;
|
|
2342
|
+
}
|
|
2343
|
+
case $.APOSTROPHE: {
|
|
2344
|
+
this._err(ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers);
|
|
2345
|
+
token.systemId = '';
|
|
2346
|
+
this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
|
|
2347
|
+
break;
|
|
2348
|
+
}
|
|
2349
|
+
case $.EOF: {
|
|
2350
|
+
this._err(ERR.eofInDoctype);
|
|
2351
|
+
token.forceQuirks = true;
|
|
2352
|
+
this.emitCurrentDoctype(token);
|
|
2353
|
+
this._emitEOFToken();
|
|
2354
|
+
break;
|
|
2355
|
+
}
|
|
2356
|
+
default: {
|
|
2357
|
+
this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier);
|
|
2358
|
+
token.forceQuirks = true;
|
|
2359
|
+
this.state = State.BOGUS_DOCTYPE;
|
|
2360
|
+
this._stateBogusDoctype(cp);
|
|
2361
|
+
}
|
|
2362
|
+
}
|
|
2363
|
+
}
|
|
2364
|
+
// Between DOCTYPE public and system identifiers state
|
|
2365
|
+
//------------------------------------------------------------------
|
|
2366
|
+
_stateBetweenDoctypePublicAndSystemIdentifiers(cp) {
|
|
2367
|
+
const token = this.currentToken;
|
|
2368
|
+
switch (cp) {
|
|
2369
|
+
case $.SPACE:
|
|
2370
|
+
case $.LINE_FEED:
|
|
2371
|
+
case $.TABULATION:
|
|
2372
|
+
case $.FORM_FEED: {
|
|
2373
|
+
// Ignore whitespace
|
|
2374
|
+
break;
|
|
2375
|
+
}
|
|
2376
|
+
case $.GREATER_THAN_SIGN: {
|
|
2377
|
+
this.emitCurrentDoctype(token);
|
|
2378
|
+
this.state = State.DATA;
|
|
2379
|
+
break;
|
|
2380
|
+
}
|
|
2381
|
+
case $.QUOTATION_MARK: {
|
|
2382
|
+
token.systemId = '';
|
|
2383
|
+
this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
|
|
2384
|
+
break;
|
|
2385
|
+
}
|
|
2386
|
+
case $.APOSTROPHE: {
|
|
2387
|
+
token.systemId = '';
|
|
2388
|
+
this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
|
|
2389
|
+
break;
|
|
2390
|
+
}
|
|
2391
|
+
case $.EOF: {
|
|
2392
|
+
this._err(ERR.eofInDoctype);
|
|
2393
|
+
token.forceQuirks = true;
|
|
2394
|
+
this.emitCurrentDoctype(token);
|
|
2395
|
+
this._emitEOFToken();
|
|
2396
|
+
break;
|
|
2397
|
+
}
|
|
2398
|
+
default: {
|
|
2399
|
+
this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier);
|
|
2400
|
+
token.forceQuirks = true;
|
|
2401
|
+
this.state = State.BOGUS_DOCTYPE;
|
|
2402
|
+
this._stateBogusDoctype(cp);
|
|
2403
|
+
}
|
|
2404
|
+
}
|
|
2405
|
+
}
|
|
2406
|
+
// After DOCTYPE system keyword state
|
|
2407
|
+
//------------------------------------------------------------------
|
|
2408
|
+
_stateAfterDoctypeSystemKeyword(cp) {
|
|
2409
|
+
const token = this.currentToken;
|
|
2410
|
+
switch (cp) {
|
|
2411
|
+
case $.SPACE:
|
|
2412
|
+
case $.LINE_FEED:
|
|
2413
|
+
case $.TABULATION:
|
|
2414
|
+
case $.FORM_FEED: {
|
|
2415
|
+
this.state = State.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;
|
|
2416
|
+
break;
|
|
2417
|
+
}
|
|
2418
|
+
case $.QUOTATION_MARK: {
|
|
2419
|
+
this._err(ERR.missingWhitespaceAfterDoctypeSystemKeyword);
|
|
2420
|
+
token.systemId = '';
|
|
2421
|
+
this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
|
|
2422
|
+
break;
|
|
2423
|
+
}
|
|
2424
|
+
case $.APOSTROPHE: {
|
|
2425
|
+
this._err(ERR.missingWhitespaceAfterDoctypeSystemKeyword);
|
|
2426
|
+
token.systemId = '';
|
|
2427
|
+
this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
|
|
2428
|
+
break;
|
|
2429
|
+
}
|
|
2430
|
+
case $.GREATER_THAN_SIGN: {
|
|
2431
|
+
this._err(ERR.missingDoctypeSystemIdentifier);
|
|
2432
|
+
token.forceQuirks = true;
|
|
2433
|
+
this.state = State.DATA;
|
|
2434
|
+
this.emitCurrentDoctype(token);
|
|
2435
|
+
break;
|
|
2436
|
+
}
|
|
2437
|
+
case $.EOF: {
|
|
2438
|
+
this._err(ERR.eofInDoctype);
|
|
2439
|
+
token.forceQuirks = true;
|
|
2440
|
+
this.emitCurrentDoctype(token);
|
|
2441
|
+
this._emitEOFToken();
|
|
2442
|
+
break;
|
|
2443
|
+
}
|
|
2444
|
+
default: {
|
|
2445
|
+
this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier);
|
|
2446
|
+
token.forceQuirks = true;
|
|
2447
|
+
this.state = State.BOGUS_DOCTYPE;
|
|
2448
|
+
this._stateBogusDoctype(cp);
|
|
2449
|
+
}
|
|
2450
|
+
}
|
|
2451
|
+
}
|
|
2452
|
+
// Before DOCTYPE system identifier state
|
|
2453
|
+
//------------------------------------------------------------------
|
|
2454
|
+
_stateBeforeDoctypeSystemIdentifier(cp) {
|
|
2455
|
+
const token = this.currentToken;
|
|
2456
|
+
switch (cp) {
|
|
2457
|
+
case $.SPACE:
|
|
2458
|
+
case $.LINE_FEED:
|
|
2459
|
+
case $.TABULATION:
|
|
2460
|
+
case $.FORM_FEED: {
|
|
2461
|
+
// Ignore whitespace
|
|
2462
|
+
break;
|
|
2463
|
+
}
|
|
2464
|
+
case $.QUOTATION_MARK: {
|
|
2465
|
+
token.systemId = '';
|
|
2466
|
+
this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
|
|
2467
|
+
break;
|
|
2468
|
+
}
|
|
2469
|
+
case $.APOSTROPHE: {
|
|
2470
|
+
token.systemId = '';
|
|
2471
|
+
this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
|
|
2472
|
+
break;
|
|
2473
|
+
}
|
|
2474
|
+
case $.GREATER_THAN_SIGN: {
|
|
2475
|
+
this._err(ERR.missingDoctypeSystemIdentifier);
|
|
2476
|
+
token.forceQuirks = true;
|
|
2477
|
+
this.state = State.DATA;
|
|
2478
|
+
this.emitCurrentDoctype(token);
|
|
2479
|
+
break;
|
|
2480
|
+
}
|
|
2481
|
+
case $.EOF: {
|
|
2482
|
+
this._err(ERR.eofInDoctype);
|
|
2483
|
+
token.forceQuirks = true;
|
|
2484
|
+
this.emitCurrentDoctype(token);
|
|
2485
|
+
this._emitEOFToken();
|
|
2486
|
+
break;
|
|
2487
|
+
}
|
|
2488
|
+
default: {
|
|
2489
|
+
this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier);
|
|
2490
|
+
token.forceQuirks = true;
|
|
2491
|
+
this.state = State.BOGUS_DOCTYPE;
|
|
2492
|
+
this._stateBogusDoctype(cp);
|
|
2493
|
+
}
|
|
2494
|
+
}
|
|
2495
|
+
}
|
|
2496
|
+
// DOCTYPE system identifier (double-quoted) state
|
|
2497
|
+
//------------------------------------------------------------------
|
|
2498
|
+
_stateDoctypeSystemIdentifierDoubleQuoted(cp) {
|
|
2499
|
+
const token = this.currentToken;
|
|
2500
|
+
switch (cp) {
|
|
2501
|
+
case $.QUOTATION_MARK: {
|
|
2502
|
+
this.state = State.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;
|
|
2503
|
+
break;
|
|
2504
|
+
}
|
|
2505
|
+
case $.NULL: {
|
|
2506
|
+
this._err(ERR.unexpectedNullCharacter);
|
|
2507
|
+
token.systemId += REPLACEMENT_CHARACTER;
|
|
2508
|
+
break;
|
|
2509
|
+
}
|
|
2510
|
+
case $.GREATER_THAN_SIGN: {
|
|
2511
|
+
this._err(ERR.abruptDoctypeSystemIdentifier);
|
|
2512
|
+
token.forceQuirks = true;
|
|
2513
|
+
this.emitCurrentDoctype(token);
|
|
2514
|
+
this.state = State.DATA;
|
|
2515
|
+
break;
|
|
2516
|
+
}
|
|
2517
|
+
case $.EOF: {
|
|
2518
|
+
this._err(ERR.eofInDoctype);
|
|
2519
|
+
token.forceQuirks = true;
|
|
2520
|
+
this.emitCurrentDoctype(token);
|
|
2521
|
+
this._emitEOFToken();
|
|
2522
|
+
break;
|
|
2523
|
+
}
|
|
2524
|
+
default: {
|
|
2525
|
+
token.systemId += String.fromCodePoint(cp);
|
|
2526
|
+
}
|
|
2527
|
+
}
|
|
2528
|
+
}
|
|
2529
|
+
// DOCTYPE system identifier (single-quoted) state
|
|
2530
|
+
//------------------------------------------------------------------
|
|
2531
|
+
_stateDoctypeSystemIdentifierSingleQuoted(cp) {
|
|
2532
|
+
const token = this.currentToken;
|
|
2533
|
+
switch (cp) {
|
|
2534
|
+
case $.APOSTROPHE: {
|
|
2535
|
+
this.state = State.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;
|
|
2536
|
+
break;
|
|
2537
|
+
}
|
|
2538
|
+
case $.NULL: {
|
|
2539
|
+
this._err(ERR.unexpectedNullCharacter);
|
|
2540
|
+
token.systemId += REPLACEMENT_CHARACTER;
|
|
2541
|
+
break;
|
|
2542
|
+
}
|
|
2543
|
+
case $.GREATER_THAN_SIGN: {
|
|
2544
|
+
this._err(ERR.abruptDoctypeSystemIdentifier);
|
|
2545
|
+
token.forceQuirks = true;
|
|
2546
|
+
this.emitCurrentDoctype(token);
|
|
2547
|
+
this.state = State.DATA;
|
|
2548
|
+
break;
|
|
2549
|
+
}
|
|
2550
|
+
case $.EOF: {
|
|
2551
|
+
this._err(ERR.eofInDoctype);
|
|
2552
|
+
token.forceQuirks = true;
|
|
2553
|
+
this.emitCurrentDoctype(token);
|
|
2554
|
+
this._emitEOFToken();
|
|
2555
|
+
break;
|
|
2556
|
+
}
|
|
2557
|
+
default: {
|
|
2558
|
+
token.systemId += String.fromCodePoint(cp);
|
|
2559
|
+
}
|
|
2560
|
+
}
|
|
2561
|
+
}
|
|
2562
|
+
// After DOCTYPE system identifier state
|
|
2563
|
+
//------------------------------------------------------------------
|
|
2564
|
+
_stateAfterDoctypeSystemIdentifier(cp) {
|
|
2565
|
+
const token = this.currentToken;
|
|
2566
|
+
switch (cp) {
|
|
2567
|
+
case $.SPACE:
|
|
2568
|
+
case $.LINE_FEED:
|
|
2569
|
+
case $.TABULATION:
|
|
2570
|
+
case $.FORM_FEED: {
|
|
2571
|
+
// Ignore whitespace
|
|
2572
|
+
break;
|
|
2573
|
+
}
|
|
2574
|
+
case $.GREATER_THAN_SIGN: {
|
|
2575
|
+
this.emitCurrentDoctype(token);
|
|
2576
|
+
this.state = State.DATA;
|
|
2577
|
+
break;
|
|
2578
|
+
}
|
|
2579
|
+
case $.EOF: {
|
|
2580
|
+
this._err(ERR.eofInDoctype);
|
|
2581
|
+
token.forceQuirks = true;
|
|
2582
|
+
this.emitCurrentDoctype(token);
|
|
2583
|
+
this._emitEOFToken();
|
|
2584
|
+
break;
|
|
2585
|
+
}
|
|
2586
|
+
default: {
|
|
2587
|
+
this._err(ERR.unexpectedCharacterAfterDoctypeSystemIdentifier);
|
|
2588
|
+
this.state = State.BOGUS_DOCTYPE;
|
|
2589
|
+
this._stateBogusDoctype(cp);
|
|
2590
|
+
}
|
|
2591
|
+
}
|
|
2592
|
+
}
|
|
2593
|
+
// Bogus DOCTYPE state
|
|
2594
|
+
//------------------------------------------------------------------
|
|
2595
|
+
_stateBogusDoctype(cp) {
|
|
2596
|
+
const token = this.currentToken;
|
|
2597
|
+
switch (cp) {
|
|
2598
|
+
case $.GREATER_THAN_SIGN: {
|
|
2599
|
+
this.emitCurrentDoctype(token);
|
|
2600
|
+
this.state = State.DATA;
|
|
2601
|
+
break;
|
|
2602
|
+
}
|
|
2603
|
+
case $.NULL: {
|
|
2604
|
+
this._err(ERR.unexpectedNullCharacter);
|
|
2605
|
+
break;
|
|
2606
|
+
}
|
|
2607
|
+
case $.EOF: {
|
|
2608
|
+
this.emitCurrentDoctype(token);
|
|
2609
|
+
this._emitEOFToken();
|
|
2610
|
+
break;
|
|
2611
|
+
}
|
|
2612
|
+
default:
|
|
2613
|
+
// Do nothing
|
|
2614
|
+
}
|
|
2615
|
+
}
|
|
2616
|
+
// CDATA section state
|
|
2617
|
+
//------------------------------------------------------------------
|
|
2618
|
+
_stateCdataSection(cp) {
|
|
2619
|
+
switch (cp) {
|
|
2620
|
+
case $.RIGHT_SQUARE_BRACKET: {
|
|
2621
|
+
this.state = State.CDATA_SECTION_BRACKET;
|
|
2622
|
+
break;
|
|
2623
|
+
}
|
|
2624
|
+
case $.EOF: {
|
|
2625
|
+
this._err(ERR.eofInCdata);
|
|
2626
|
+
this._emitEOFToken();
|
|
2627
|
+
break;
|
|
2628
|
+
}
|
|
2629
|
+
default: {
|
|
2630
|
+
this._emitCodePoint(cp);
|
|
2631
|
+
}
|
|
2632
|
+
}
|
|
2633
|
+
}
|
|
2634
|
+
// CDATA section bracket state
|
|
2635
|
+
//------------------------------------------------------------------
|
|
2636
|
+
_stateCdataSectionBracket(cp) {
|
|
2637
|
+
if (cp === $.RIGHT_SQUARE_BRACKET) {
|
|
2638
|
+
this.state = State.CDATA_SECTION_END;
|
|
2639
|
+
}
|
|
2640
|
+
else {
|
|
2641
|
+
this._emitChars(']');
|
|
2642
|
+
this.state = State.CDATA_SECTION;
|
|
2643
|
+
this._stateCdataSection(cp);
|
|
2644
|
+
}
|
|
2645
|
+
}
|
|
2646
|
+
// CDATA section end state
|
|
2647
|
+
//------------------------------------------------------------------
|
|
2648
|
+
_stateCdataSectionEnd(cp) {
|
|
2649
|
+
switch (cp) {
|
|
2650
|
+
case $.GREATER_THAN_SIGN: {
|
|
2651
|
+
this.state = State.DATA;
|
|
2652
|
+
break;
|
|
2653
|
+
}
|
|
2654
|
+
case $.RIGHT_SQUARE_BRACKET: {
|
|
2655
|
+
this._emitChars(']');
|
|
2656
|
+
break;
|
|
2657
|
+
}
|
|
2658
|
+
default: {
|
|
2659
|
+
this._emitChars(']]');
|
|
2660
|
+
this.state = State.CDATA_SECTION;
|
|
2661
|
+
this._stateCdataSection(cp);
|
|
2662
|
+
}
|
|
2663
|
+
}
|
|
2664
|
+
}
|
|
2665
|
+
// Character reference state
|
|
2666
|
+
//------------------------------------------------------------------
|
|
2667
|
+
_stateCharacterReference() {
|
|
2668
|
+
let length = this.entityDecoder.write(this.preprocessor.html, this.preprocessor.pos);
|
|
2669
|
+
if (length < 0) {
|
|
2670
|
+
if (this.preprocessor.lastChunkWritten) {
|
|
2671
|
+
length = this.entityDecoder.end();
|
|
2672
|
+
}
|
|
2673
|
+
else {
|
|
2674
|
+
// Wait for the rest of the entity.
|
|
2675
|
+
this.active = false;
|
|
2676
|
+
// Mark the entire buffer as read.
|
|
2677
|
+
this.preprocessor.pos = this.preprocessor.html.length - 1;
|
|
2678
|
+
this.consumedAfterSnapshot = 0;
|
|
2679
|
+
this.preprocessor.endOfChunkHit = true;
|
|
2680
|
+
return;
|
|
2681
|
+
}
|
|
2682
|
+
}
|
|
2683
|
+
if (length === 0) {
|
|
2684
|
+
// This was not a valid entity. Go back to the beginning, and
|
|
2685
|
+
// figure out what to do.
|
|
2686
|
+
this.preprocessor.pos = this.entityStartPos;
|
|
2687
|
+
this._flushCodePointConsumedAsCharacterReference($.AMPERSAND);
|
|
2688
|
+
this.state =
|
|
2689
|
+
!this._isCharacterReferenceInAttribute() && isAsciiAlphaNumeric(this.preprocessor.peek(1))
|
|
2690
|
+
? State.AMBIGUOUS_AMPERSAND
|
|
2691
|
+
: this.returnState;
|
|
2692
|
+
}
|
|
2693
|
+
else {
|
|
2694
|
+
// We successfully parsed an entity. Switch to the return state.
|
|
2695
|
+
this.state = this.returnState;
|
|
2696
|
+
}
|
|
2697
|
+
}
|
|
2698
|
+
// Ambiguos ampersand state
|
|
2699
|
+
//------------------------------------------------------------------
|
|
2700
|
+
_stateAmbiguousAmpersand(cp) {
|
|
2701
|
+
if (isAsciiAlphaNumeric(cp)) {
|
|
2702
|
+
this._flushCodePointConsumedAsCharacterReference(cp);
|
|
2703
|
+
}
|
|
2704
|
+
else {
|
|
2705
|
+
if (cp === $.SEMICOLON) {
|
|
2706
|
+
this._err(ERR.unknownNamedCharacterReference);
|
|
2707
|
+
}
|
|
2708
|
+
this.state = this.returnState;
|
|
2709
|
+
this._callState(cp);
|
|
2710
|
+
}
|
|
2711
|
+
}
|
|
2712
|
+
}
|