diff --git a/225.2a4e217ff75588099a45.js b/225.2a4e217ff75588099a45.js deleted file mode 100644 index bacd9407..00000000 --- a/225.2a4e217ff75588099a45.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkdomiso=globalThis.webpackChunkdomiso||[]).push([[225],{225:(s,e,n)=>{n.r(e),n.d(e,{default:()=>c});var t=n(527);function i(s){const e=Object.assign({h1:"h1",p:"p",a:"a",img:"img",h2:"h2",ul:"ul",li:"li",h3:"h3",pre:"pre",code:"code",table:"table",thead:"thead",tr:"tr",th:"th",tbody:"tbody",td:"td"},s.components);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(e.h1,{children:"domiso"}),"\n",(0,t.jsxs)(e.p,{children:[(0,t.jsx)(e.a,{href:"https://github.com/un-ts/domiso/actions/workflows/ci.yml",children:(0,t.jsx)(e.img,{src:"https://github.com/un-ts/domiso/workflows/CI/badge.svg",alt:"GitHub Actions"})}),"\n",(0,t.jsx)(e.a,{href:"https://codecov.io/gh/un-ts/domiso",children:(0,t.jsx)(e.img,{src:"https://img.shields.io/codecov/c/github/un-ts/domiso.svg",alt:"Codecov"})}),"\n",(0,t.jsx)(e.a,{href:"https://lgtm.com/projects/g/un-ts/domiso/context:javascript",children:(0,t.jsx)(e.img,{src:"https://img.shields.io/lgtm/grade/javascript/g/un-ts/domiso.svg?logo=lgtm&logoWidth=18",alt:"Language grade: JavaScript"})}),"\n",(0,t.jsx)(e.a,{href:"https://github.com/plantain-00/type-coverage",children:(0,t.jsx)(e.img,{src:"https://img.shields.io/badge/dynamic/json.svg?label=type-coverage&prefix=%E2%89%A5&suffix=%25&query=$.typeCoverage.atLeast&uri=https%3A%2F%2Fraw.githubusercontent.com%2Fun-ts%2Fdomiso%2Fmain%2Fpackage.json",alt:"type-coverage"})}),"\n",(0,t.jsx)(e.a,{href:"https://www.npmjs.com/package/domiso",children:(0,t.jsx)(e.img,{src:"https://img.shields.io/npm/v/domiso.svg",alt:"npm"})}),"\n",(0,t.jsx)(e.a,{href:"https://github.com/un-ts/domiso/releases",children:(0,t.jsx)(e.img,{src:"https://img.shields.io/github/release/un-ts/domiso",alt:"GitHub Release"})})]}),"\n",(0,t.jsxs)(e.p,{children:[(0,t.jsx)(e.a,{href:"https://conventionalcommits.org",children:(0,t.jsx)(e.img,{src:"https://img.shields.io/badge/conventional%20commits-1.0.0-yellow.svg",alt:"Conventional Commits"})}),"\n",(0,t.jsx)(e.a,{href:"https://renovatebot.com",children:(0,t.jsx)(e.img,{src:"https://img.shields.io/badge/renovate-enabled-brightgreen.svg",alt:"Renovate enabled"})}),"\n",(0,t.jsx)(e.a,{href:"https://standardjs.com",children:(0,t.jsx)(e.img,{src:"https://img.shields.io/badge/code_style-standard-brightgreen.svg",alt:"JavaScript Style Guide"})}),"\n",(0,t.jsx)(e.a,{href:"https://github.com/prettier/prettier",children:(0,t.jsx)(e.img,{src:"https://img.shields.io/badge/code_style-prettier-ff69b4.svg",alt:"Code Style: Prettier"})}),"\n",(0,t.jsx)(e.a,{href:"https://github.com/atlassian/changesets",children:(0,t.jsx)(e.img,{src:"https://img.shields.io/badge/maintained%20with-changesets-176de3.svg",alt:"changesets"})})]}),"\n",(0,t.jsx)(e.p,{children:"The smallest and fastest DOM sanitizer based on browser native DOMParser"}),"\n",(0,t.jsx)(e.h2,{children:"TOC "}),"\n",(0,t.jsxs)(e.ul,{children:["\n",(0,t.jsxs)(e.li,{children:[(0,t.jsx)(e.a,{href:"#usage",children:"Usage"}),"\n",(0,t.jsxs)(e.ul,{children:["\n",(0,t.jsx)(e.li,{children:(0,t.jsx)(e.a,{href:"#install",children:"Install"})}),"\n",(0,t.jsx)(e.li,{children:(0,t.jsx)(e.a,{href:"#api",children:"API"})}),"\n"]}),"\n"]}),"\n",(0,t.jsx)(e.li,{children:(0,t.jsx)(e.a,{href:"#sponsors",children:"Sponsors"})}),"\n",(0,t.jsx)(e.li,{children:(0,t.jsx)(e.a,{href:"#backers",children:"Backers"})}),"\n",(0,t.jsx)(e.li,{children:(0,t.jsx)(e.a,{href:"#changelog",children:"Changelog"})}),"\n",(0,t.jsx)(e.li,{children:(0,t.jsx)(e.a,{href:"#license",children:"License"})}),"\n"]}),"\n",(0,t.jsx)(e.h2,{children:"Usage"}),"\n",(0,t.jsx)(e.h3,{children:"Install"}),"\n",(0,t.jsx)(e.pre,{children:(0,t.jsx)(e.code,{className:"language-sh",children:"# pnpm\npnpm add domiso\n\n# yarn\nyarn add domiso\n\n# npm\nnpm i domiso\n"})}),"\n",(0,t.jsx)(e.h3,{children:"API"}),"\n",(0,t.jsx)(e.pre,{children:(0,t.jsx)(e.code,{className:"language-js",children:"import { IMAGE_SVG_XML, sanitize, sanitizeSvg } from 'domiso'\n\nsanitize(`\x3c!-- HTML content --\x3e`)\nsanitize(`SVG content`, IMAGE_SVG_XML)\nsanitizeSvg(`SVG content`)\n"})}),"\n",(0,t.jsx)(e.h2,{children:"Sponsors"}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,t.jsxs)(e.table,{children:[(0,t.jsx)(e.thead,{children:(0,t.jsxs)(e.tr,{children:[(0,t.jsx)(e.th,{children:"1stG"}),(0,t.jsx)(e.th,{children:"RxTS"}),(0,t.jsx)(e.th,{children:"UnTS"})]})}),(0,t.jsx)(e.tbody,{children:(0,t.jsxs)(e.tr,{children:[(0,t.jsx)(e.td,{children:(0,t.jsx)(e.a,{href:"https://opencollective.com/1stG",children:(0,t.jsx)(e.img,{src:"https://opencollective.com/1stG/organizations.svg",alt:"1stG Open Collective backers and sponsors"})})}),(0,t.jsx)(e.td,{children:(0,t.jsx)(e.a,{href:"https://opencollective.com/rxts",children:(0,t.jsx)(e.img,{src:"https://opencollective.com/rxts/organizations.svg",alt:"RxTS Open Collective backers and sponsors"})})}),(0,t.jsx)(e.td,{children:(0,t.jsx)(e.a,{href:"https://opencollective.com/unts",children:(0,t.jsx)(e.img,{src:"https://opencollective.com/unts/organizations.svg",alt:"UnTS Open Collective backers and sponsors"})})})]})})]}),"\n",(0,t.jsx)(e.h2,{children:"Backers"}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,t.jsxs)(e.table,{children:[(0,t.jsx)(e.thead,{children:(0,t.jsxs)(e.tr,{children:[(0,t.jsx)(e.th,{children:"1stG"}),(0,t.jsx)(e.th,{children:"RxTS"}),(0,t.jsx)(e.th,{children:"UnTS"})]})}),(0,t.jsx)(e.tbody,{children:(0,t.jsxs)(e.tr,{children:[(0,t.jsx)(e.td,{children:(0,t.jsx)(e.a,{href:"https://opencollective.com/1stG",children:(0,t.jsx)(e.img,{src:"https://opencollective.com/1stG/individuals.svg",alt:"1stG Open Collective backers and sponsors"})})}),(0,t.jsx)(e.td,{children:(0,t.jsx)(e.a,{href:"https://opencollective.com/rxts",children:(0,t.jsx)(e.img,{src:"https://opencollective.com/rxts/individuals.svg",alt:"RxTS Open Collective backers and sponsors"})})}),(0,t.jsx)(e.td,{children:(0,t.jsx)(e.a,{href:"https://opencollective.com/unts",children:(0,t.jsx)(e.img,{src:"https://opencollective.com/unts/individuals.svg",alt:"UnTS Open Collective backers and sponsors"})})})]})})]}),"\n",(0,t.jsx)(e.h2,{children:"Changelog"}),"\n",(0,t.jsxs)(e.p,{children:["Detailed changes for each release are documented in ",(0,t.jsx)(e.a,{href:"./CHANGELOG.md",children:"CHANGELOG.md"}),"."]}),"\n",(0,t.jsx)(e.h2,{children:"License"}),"\n",(0,t.jsxs)(e.p,{children:[(0,t.jsx)(e.a,{href:"http://opensource.org/licenses/MIT",children:"MIT"})," © ",(0,t.jsx)(e.a,{href:"https://GitHub.com/JounQin",children:"JounQin"}),"@",(0,t.jsx)(e.a,{href:"https://www.1stg.me",children:"1stG.me"})]})]})}const c=function(s={}){const{wrapper:e}=s.components||{};return e?(0,t.jsx)(e,Object.assign({},s,{children:(0,t.jsx)(i,s)})):i(s)}}}]); \ No newline at end of file diff --git a/306.85bdf943298cbe60ea2f.js b/306.85bdf943298cbe60ea2f.js new file mode 100644 index 00000000..d303bd20 --- /dev/null +++ b/306.85bdf943298cbe60ea2f.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkdomiso=globalThis.webpackChunkdomiso||[]).push([[306],{306:(s,e,n)=>{n.r(e),n.d(e,{default:()=>c});var t=n(527);function i(s){const e=Object.assign({h1:"h1",p:"p",a:"a",img:"img",h2:"h2",ul:"ul",li:"li",h3:"h3",pre:"pre",code:"code",table:"table",thead:"thead",tr:"tr",th:"th",tbody:"tbody",td:"td"},s.components);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(e.h1,{children:"domiso"}),"\n",(0,t.jsxs)(e.p,{children:[(0,t.jsx)(e.a,{href:"https://github.com/un-ts/domiso/actions/workflows/ci.yml",children:(0,t.jsx)(e.img,{src:"https://github.com/un-ts/domiso/workflows/CI/badge.svg",alt:"GitHub Actions"})}),"\n",(0,t.jsx)(e.a,{href:"https://codecov.io/gh/un-ts/domiso",children:(0,t.jsx)(e.img,{src:"https://img.shields.io/codecov/c/github/un-ts/domiso.svg",alt:"Codecov"})}),"\n",(0,t.jsx)(e.a,{href:"https://github.com/plantain-00/type-coverage",children:(0,t.jsx)(e.img,{src:"https://img.shields.io/badge/dynamic/json.svg?label=type-coverage&prefix=%E2%89%A5&suffix=%25&query=$.typeCoverage.atLeast&uri=https%3A%2F%2Fraw.githubusercontent.com%2Fun-ts%2Fdomiso%2Fmain%2Fpackage.json",alt:"type-coverage"})}),"\n",(0,t.jsx)(e.a,{href:"https://www.npmjs.com/package/domiso",children:(0,t.jsx)(e.img,{src:"https://img.shields.io/npm/v/domiso.svg",alt:"npm"})}),"\n",(0,t.jsx)(e.a,{href:"https://github.com/un-ts/domiso/releases",children:(0,t.jsx)(e.img,{src:"https://img.shields.io/github/release/un-ts/domiso",alt:"GitHub Release"})})]}),"\n",(0,t.jsxs)(e.p,{children:[(0,t.jsx)(e.a,{href:"https://conventionalcommits.org",children:(0,t.jsx)(e.img,{src:"https://img.shields.io/badge/conventional%20commits-1.0.0-yellow.svg",alt:"Conventional Commits"})}),"\n",(0,t.jsx)(e.a,{href:"https://renovatebot.com",children:(0,t.jsx)(e.img,{src:"https://img.shields.io/badge/renovate-enabled-brightgreen.svg",alt:"Renovate enabled"})}),"\n",(0,t.jsx)(e.a,{href:"https://standardjs.com",children:(0,t.jsx)(e.img,{src:"https://img.shields.io/badge/code_style-standard-brightgreen.svg",alt:"JavaScript Style Guide"})}),"\n",(0,t.jsx)(e.a,{href:"https://github.com/prettier/prettier",children:(0,t.jsx)(e.img,{src:"https://img.shields.io/badge/code_style-prettier-ff69b4.svg",alt:"Code Style: Prettier"})}),"\n",(0,t.jsx)(e.a,{href:"https://github.com/atlassian/changesets",children:(0,t.jsx)(e.img,{src:"https://img.shields.io/badge/maintained%20with-changesets-176de3.svg",alt:"changesets"})})]}),"\n",(0,t.jsx)(e.p,{children:"The smallest and fastest DOM sanitizer based on browser native DOMParser"}),"\n",(0,t.jsx)(e.h2,{children:"TOC "}),"\n",(0,t.jsxs)(e.ul,{children:["\n",(0,t.jsxs)(e.li,{children:[(0,t.jsx)(e.a,{href:"#usage",children:"Usage"}),"\n",(0,t.jsxs)(e.ul,{children:["\n",(0,t.jsx)(e.li,{children:(0,t.jsx)(e.a,{href:"#install",children:"Install"})}),"\n",(0,t.jsx)(e.li,{children:(0,t.jsx)(e.a,{href:"#api",children:"API"})}),"\n"]}),"\n"]}),"\n",(0,t.jsx)(e.li,{children:(0,t.jsx)(e.a,{href:"#sponsors",children:"Sponsors"})}),"\n",(0,t.jsx)(e.li,{children:(0,t.jsx)(e.a,{href:"#backers",children:"Backers"})}),"\n",(0,t.jsx)(e.li,{children:(0,t.jsx)(e.a,{href:"#changelog",children:"Changelog"})}),"\n",(0,t.jsx)(e.li,{children:(0,t.jsx)(e.a,{href:"#license",children:"License"})}),"\n"]}),"\n",(0,t.jsx)(e.h2,{children:"Usage"}),"\n",(0,t.jsx)(e.h3,{children:"Install"}),"\n",(0,t.jsx)(e.pre,{children:(0,t.jsx)(e.code,{className:"language-sh",children:"# pnpm\npnpm add domiso\n\n# yarn\nyarn add domiso\n\n# npm\nnpm i domiso\n"})}),"\n",(0,t.jsx)(e.h3,{children:"API"}),"\n",(0,t.jsx)(e.pre,{children:(0,t.jsx)(e.code,{className:"language-js",children:"import { IMAGE_SVG_XML, sanitize, sanitizeSvg } from 'domiso'\n\nsanitize(`\x3c!-- HTML content --\x3e`)\nsanitize(`SVG content`, IMAGE_SVG_XML)\nsanitizeSvg(`SVG content`)\n"})}),"\n",(0,t.jsx)(e.h2,{children:"Sponsors"}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,t.jsxs)(e.table,{children:[(0,t.jsx)(e.thead,{children:(0,t.jsxs)(e.tr,{children:[(0,t.jsx)(e.th,{children:"1stG"}),(0,t.jsx)(e.th,{children:"RxTS"}),(0,t.jsx)(e.th,{children:"UnTS"})]})}),(0,t.jsx)(e.tbody,{children:(0,t.jsxs)(e.tr,{children:[(0,t.jsx)(e.td,{children:(0,t.jsx)(e.a,{href:"https://opencollective.com/1stG",children:(0,t.jsx)(e.img,{src:"https://opencollective.com/1stG/organizations.svg",alt:"1stG Open Collective backers and sponsors"})})}),(0,t.jsx)(e.td,{children:(0,t.jsx)(e.a,{href:"https://opencollective.com/rxts",children:(0,t.jsx)(e.img,{src:"https://opencollective.com/rxts/organizations.svg",alt:"RxTS Open Collective backers and sponsors"})})}),(0,t.jsx)(e.td,{children:(0,t.jsx)(e.a,{href:"https://opencollective.com/unts",children:(0,t.jsx)(e.img,{src:"https://opencollective.com/unts/organizations.svg",alt:"UnTS Open Collective backers and sponsors"})})})]})})]}),"\n",(0,t.jsx)(e.h2,{children:"Backers"}),"\n",(0,t.jsx)(e.p,{children:(0,t.jsx)(e.a,{href:"https://github.com/sponsors/JounQin",children:(0,t.jsx)(e.img,{src:"https://raw.githubusercontent.com/1stG/static/master/sponsors.svg",alt:"Backers"})})}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,t.jsxs)(e.table,{children:[(0,t.jsx)(e.thead,{children:(0,t.jsxs)(e.tr,{children:[(0,t.jsx)(e.th,{children:"1stG"}),(0,t.jsx)(e.th,{children:"RxTS"}),(0,t.jsx)(e.th,{children:"UnTS"})]})}),(0,t.jsx)(e.tbody,{children:(0,t.jsxs)(e.tr,{children:[(0,t.jsx)(e.td,{children:(0,t.jsx)(e.a,{href:"https://opencollective.com/1stG",children:(0,t.jsx)(e.img,{src:"https://opencollective.com/1stG/individuals.svg",alt:"1stG Open Collective backers and sponsors"})})}),(0,t.jsx)(e.td,{children:(0,t.jsx)(e.a,{href:"https://opencollective.com/rxts",children:(0,t.jsx)(e.img,{src:"https://opencollective.com/rxts/individuals.svg",alt:"RxTS Open Collective backers and sponsors"})})}),(0,t.jsx)(e.td,{children:(0,t.jsx)(e.a,{href:"https://opencollective.com/unts",children:(0,t.jsx)(e.img,{src:"https://opencollective.com/unts/individuals.svg",alt:"UnTS Open Collective backers and sponsors"})})})]})})]}),"\n",(0,t.jsx)(e.h2,{children:"Changelog"}),"\n",(0,t.jsxs)(e.p,{children:["Detailed changes for each release are documented in ",(0,t.jsx)(e.a,{href:"./CHANGELOG.md",children:"CHANGELOG.md"}),"."]}),"\n",(0,t.jsx)(e.h2,{children:"License"}),"\n",(0,t.jsxs)(e.p,{children:[(0,t.jsx)(e.a,{href:"http://opensource.org/licenses/MIT",children:"MIT"})," © ",(0,t.jsx)(e.a,{href:"https://GitHub.com/JounQin",children:"JounQin"}),"@",(0,t.jsx)(e.a,{href:"https://www.1stg.me",children:"1stG.me"})]})]})}const c=function(s={}){const{wrapper:e}=s.components||{};return e?(0,t.jsx)(e,Object.assign({},s,{children:(0,t.jsx)(i,s)})):i(s)}}}]); \ No newline at end of file diff --git a/398.62ac6f47c0a1dd2c5ea0.js b/398.62ac6f47c0a1dd2c5ea0.js deleted file mode 100644 index 56ef69d8..00000000 --- a/398.62ac6f47c0a1dd2c5ea0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkdomiso=globalThis.webpackChunkdomiso||[]).push([[398],{398:(n,s,e)=>{e.r(s),e.d(s,{default:()=>i});var h=e(527);function c(n){const s=Object.assign({h1:"h1",h2:"h2",h3:"h3",ul:"ul",li:"li",a:"a",code:"code"},n.components);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(s.h1,{children:"Change Log"}),"\n",(0,h.jsx)(s.h2,{children:"0.0.3"}),"\n",(0,h.jsx)(s.h3,{children:"Patch Changes"}),"\n",(0,h.jsxs)(s.ul,{children:["\n",(0,h.jsxs)(s.li,{children:[(0,h.jsx)(s.a,{href:"https://github.com/un-ts/domiso/pull/8",children:"#8"})," ",(0,h.jsx)(s.a,{href:"https://github.com/un-ts/domiso/commit/1effc290a5ce7081039d98729366c9864133b500",children:(0,h.jsx)(s.code,{children:"1effc29"})})," Thanks ",(0,h.jsx)(s.a,{href:"https://github.com/JounQin",children:"@JounQin"}),"! - chore: add keywords, upper case DOM in README"]}),"\n"]}),"\n",(0,h.jsx)(s.h2,{children:"0.0.2"}),"\n",(0,h.jsx)(s.h3,{children:"Patch Changes"}),"\n",(0,h.jsxs)(s.ul,{children:["\n",(0,h.jsxs)(s.li,{children:[(0,h.jsx)(s.a,{href:"https://github.com/un-ts/domiso/pull/5",children:"#5"})," ",(0,h.jsx)(s.a,{href:"https://github.com/un-ts/domiso/commit/80480d98fb2433eb697ab1332f9b363b1d58cec3",children:(0,h.jsx)(s.code,{children:"80480d9"})})," Thanks ",(0,h.jsx)(s.a,{href:"https://github.com/JounQin",children:"@JounQin"}),"! - feat: support removing unnecessary parent, remove parsererror"]}),"\n"]}),"\n",(0,h.jsxs)(s.ul,{children:["\n",(0,h.jsxs)(s.li,{children:[(0,h.jsx)(s.a,{href:"https://github.com/un-ts/domiso/pull/5",children:"#5"})," ",(0,h.jsx)(s.a,{href:"https://github.com/un-ts/domiso/commit/80480d98fb2433eb697ab1332f9b363b1d58cec3",children:(0,h.jsx)(s.code,{children:"80480d9"})})," Thanks ",(0,h.jsx)(s.a,{href:"https://github.com/JounQin",children:"@JounQin"}),"! - feat: better HTML/XML support, remove ",(0,h.jsx)(s.code,{children:"data:"}),", ",(0,h.jsx)(s.code,{children:"javascript:"})," and ",(0,h.jsx)(s.code,{children:"vbscript:"})," attributes"]}),"\n"]}),"\n",(0,h.jsx)(s.h2,{children:"0.0.1"}),"\n",(0,h.jsx)(s.h3,{children:"Patch Changes"}),"\n",(0,h.jsxs)(s.ul,{children:["\n",(0,h.jsxs)(s.li,{children:[(0,h.jsx)(s.a,{href:"https://github.com/un-ts/domiso/pull/2",children:"#2"})," ",(0,h.jsx)(s.a,{href:"https://github.com/un-ts/domiso/commit/0e277f00d6860fd2e041a61ea6871f64758074a8",children:(0,h.jsx)(s.code,{children:"0e277f0"})})," Thanks ",(0,h.jsx)(s.a,{href:"https://github.com/JounQin",children:"@JounQin"}),"! - chore: add xml test case, update description"]}),"\n"]})]})}const i=function(n={}){const{wrapper:s}=n.components||{};return s?(0,h.jsx)(s,Object.assign({},n,{children:(0,h.jsx)(c,n)})):c(n)}}}]); \ No newline at end of file diff --git a/91.26fd24f7f2e6fdec8e08.js b/91.26fd24f7f2e6fdec8e08.js new file mode 100644 index 00000000..3010b524 --- /dev/null +++ b/91.26fd24f7f2e6fdec8e08.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkdomiso=globalThis.webpackChunkdomiso||[]).push([[91],{91:(n,s,e)=>{e.r(s),e.d(s,{default:()=>i});var h=e(527);function c(n){const s=Object.assign({h1:"h1",h2:"h2",h3:"h3",ul:"ul",li:"li",a:"a",code:"code"},n.components);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(s.h1,{children:"Change Log"}),"\n",(0,h.jsx)(s.h2,{children:"0.0.3"}),"\n",(0,h.jsx)(s.h3,{children:"Patch Changes"}),"\n",(0,h.jsxs)(s.ul,{children:["\n",(0,h.jsxs)(s.li,{children:[(0,h.jsx)(s.a,{href:"https://github.com/un-ts/domiso/pull/8",children:"#8"})," ",(0,h.jsx)(s.a,{href:"https://github.com/un-ts/domiso/commit/1effc290a5ce7081039d98729366c9864133b500",children:(0,h.jsx)(s.code,{children:"1effc29"})})," Thanks ",(0,h.jsx)(s.a,{href:"https://github.com/JounQin",children:"@JounQin"}),"! - chore: add keywords, upper case DOM in README"]}),"\n"]}),"\n",(0,h.jsx)(s.h2,{children:"0.0.2"}),"\n",(0,h.jsx)(s.h3,{children:"Patch Changes"}),"\n",(0,h.jsxs)(s.ul,{children:["\n",(0,h.jsxs)(s.li,{children:[(0,h.jsx)(s.a,{href:"https://github.com/un-ts/domiso/pull/5",children:"#5"})," ",(0,h.jsx)(s.a,{href:"https://github.com/un-ts/domiso/commit/80480d98fb2433eb697ab1332f9b363b1d58cec3",children:(0,h.jsx)(s.code,{children:"80480d9"})})," Thanks ",(0,h.jsx)(s.a,{href:"https://github.com/JounQin",children:"@JounQin"}),"! - feat: support removing unnecessary parent, remove parsererror"]}),"\n"]}),"\n",(0,h.jsxs)(s.ul,{children:["\n",(0,h.jsxs)(s.li,{children:[(0,h.jsx)(s.a,{href:"https://github.com/un-ts/domiso/pull/5",children:"#5"})," ",(0,h.jsx)(s.a,{href:"https://github.com/un-ts/domiso/commit/80480d98fb2433eb697ab1332f9b363b1d58cec3",children:(0,h.jsx)(s.code,{children:"80480d9"})})," Thanks ",(0,h.jsx)(s.a,{href:"https://github.com/JounQin",children:"@JounQin"}),"! - feat: better HTML/XML support, remove ",(0,h.jsx)(s.code,{children:"data:"}),", ",(0,h.jsx)(s.code,{children:"javascript:"})," and ",(0,h.jsx)(s.code,{children:"vbscript:"})," attributes"]}),"\n"]}),"\n",(0,h.jsx)(s.h2,{children:"0.0.1"}),"\n",(0,h.jsx)(s.h3,{children:"Patch Changes"}),"\n",(0,h.jsxs)(s.ul,{children:["\n",(0,h.jsxs)(s.li,{children:[(0,h.jsx)(s.a,{href:"https://github.com/un-ts/domiso/pull/2",children:"#2"})," ",(0,h.jsx)(s.a,{href:"https://github.com/un-ts/domiso/commit/0e277f00d6860fd2e041a61ea6871f64758074a8",children:(0,h.jsx)(s.code,{children:"0e277f0"})})," Thanks ",(0,h.jsx)(s.a,{href:"https://github.com/JounQin",children:"@JounQin"}),"! - chore: add xml test case, update description"]}),"\n"]})]})}const i=function(n={}){const{wrapper:s}=n.components||{};return s?(0,h.jsx)(s,Object.assign({},n,{children:(0,h.jsx)(c,n)})):c(n)}}}]); \ No newline at end of file diff --git a/app.1cb3360eeff06810c6b3.js b/app.1cb3360eeff06810c6b3.js new file mode 100644 index 00000000..919758c8 --- /dev/null +++ b/app.1cb3360eeff06810c6b3.js @@ -0,0 +1,2 @@ +/*! For license information please see app.1cb3360eeff06810c6b3.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkdomiso=globalThis.webpackChunkdomiso||[]).push([[143],{680:(e,t,n)=>{var r,l=n(478),a=n(959),o=n.t(a,2);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var d;function p(e,t,n){void 0===n&&(n="/");let r=w(("string"==typeof t?f(t):t).pathname||"/",n);if(null==r)return null;let l=h(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(l);let a=null;for(let e=0;null==a&&e{let a={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:l,route:e};a.relativePath.startsWith("/")&&(k(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let o=x([r,a.relativePath]),u=n.concat(a);e.children&&e.children.length>0&&(k(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+o+'".'),h(e.children,t,u,o)),(null!=e.path||e.index)&&t.push({path:o,score:g(o,e.index),routesMeta:u})})),t}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(d||(d={}));const m=/^:\w+$/,v=e=>"*"===e;function g(e,t){let n=e.split("/"),r=n.length;return n.some(v)&&(r+=-2),t&&(r+=2),n.filter((e=>!v(e))).reduce(((e,t)=>e+(m.test(t)?3:""===t?1:10)),r)}function y(e,t){let{routesMeta:n}=e,r={},l="/",a=[];for(let e=0;e(r.push(t),"([^\\/]+)")));return e.endsWith("*")?(r.push("*"),l+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):l+=n?"\\/*$":"(?:(?=[@.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(l,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),l=t.match(n);if(!l)return null;let a=l[0],o=a.replace(/(.)\/+$/,"$1"),u=l.slice(1);return{params:r.reduce(((e,t,n)=>{if("*"===t){let e=u[n]||"";o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return S(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(u[n]||"",t),e}),{}),pathname:a,pathnameBase:o,pattern:e}}function w(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function k(e,t){if(!1===e||null==e)throw new Error(t)}function S(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}const x=e=>e.join("/").replace(/\/\/+/g,"/"),E=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");Error;function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t")))}class j extends a.Component{constructor(e){super(e),this.state={location:e.location,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location?{error:e.error,location:e.location}:{error:e.error||t.error,location:t.location}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?a.createElement(D.Provider,{value:this.state.error,children:this.props.component}):this.props.children}}function $(e){let{routeContext:t,match:n,children:r}=e,l=a.useContext(T);return l&&n.route.errorElement&&(l._deepestRenderedBoundaryId=n.route.id),a.createElement(F.Provider,{value:t},r)}var A,V;function B(e){k(!1)}function H(e){let{basename:t="/",children:n=null,location:l,navigationType:o=r.Pop,navigator:u,static:i=!1}=e;I()&&k(!1);let s=t.replace(/^\/*/,"/"),c=a.useMemo((()=>({basename:s,navigator:u,static:i})),[s,u,i]);"string"==typeof l&&(l=f(l));let{pathname:d="/",search:p="",hash:h="",state:m=null,key:v="default"}=l,g=a.useMemo((()=>{let e=w(d,s);return null==e?null:{pathname:e,search:p,hash:h,state:m,key:v}}),[s,d,p,h,m,v]);return null==g?null:a.createElement(O.Provider,{value:c},a.createElement(M.Provider,{children:n,value:{location:g,navigationType:o}}))}function W(e){let{children:t,location:n}=e,l=a.useContext(L);return function(e,t){I()||k(!1);let n=a.useContext(R),{matches:l}=a.useContext(F),o=l[l.length-1],u=o?o.params:{},i=(o&&o.pathname,o?o.pathnameBase:"/");o&&o.route;let s,c=(I()||k(!1),a.useContext(M).location);if(t){var d;let e="string"==typeof t?f(t):t;"/"===i||(null==(d=e.pathname)?void 0:d.startsWith(i))||k(!1),s=e}else s=c;let h=s.pathname||"/",m=p(e,{pathname:"/"===i?h:h.slice(i.length)||"/"}),v=function(e,t,n){if(void 0===t&&(t=[]),null==e){if(null==n||!n.errors)return null;e=n.matches}let r=e,l=null==n?void 0:n.errors;if(null!=l){let e=r.findIndex((e=>e.route.id&&(null==l?void 0:l[e.route.id])));e>=0||k(!1),r=r.slice(0,Math.min(r.length,e+1))}return r.reduceRight(((e,o,u)=>{let i=o.route.id?null==l?void 0:l[o.route.id]:null,s=n?o.route.errorElement||a.createElement(U,null):null,c=()=>a.createElement($,{match:o,routeContext:{outlet:e,matches:t.concat(r.slice(0,u+1))}},i?s:void 0!==o.route.element?o.route.element:e);return n&&(o.route.errorElement||0===u)?a.createElement(j,{location:n.location,component:s,error:i,children:c()}):c()}),null)}(m&&m.map((e=>Object.assign({},e,{params:Object.assign({},u,e.params),pathname:x([i,e.pathname]),pathnameBase:"/"===e.pathnameBase?i:x([i,e.pathnameBase])}))),l,n||void 0);return t?a.createElement(M.Provider,{value:{location:C({pathname:"/",search:"",hash:"",state:null,key:"default"},s),navigationType:r.Pop}},v):v}(l&&!t?l.router.routes:Q(t),n)}function Q(e,t){void 0===t&&(t=[]);let n=[];return a.Children.forEach(e,((e,r)=>{if(!a.isValidElement(e))return;if(e.type===a.Fragment)return void n.push.apply(n,Q(e.props.children,t));e.type!==B&&k(!1);let l=[...t,r],o={id:e.props.id||l.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,hasErrorBoundary:null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle};e.props.children&&(o.children=Q(e.props.children,l)),n.push(o)})),n}function q(e){let{basename:t,children:n,window:l}=e,o=a.useRef();var u;null==o.current&&(o.current=(void 0===(u={window:l,v5Compat:!0})&&(u={}),function(e,t,n,l){void 0===l&&(l={});let{window:a=document.defaultView,v5Compat:o=!1}=l,u=a.history,f=r.Pop,d=null;function p(){f=r.Pop,d&&d({action:f,location:h.location})}let h={get action(){return f},get location(){return e(a,u)},listen(e){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(i,p),d=e,()=>{a.removeEventListener(i,p),d=null}},createHref:e=>t(a,e),push:function(e,t){f=r.Push;let l=c(h.location,e,t);null==n||n(l,e);let i=s(l),p=h.createHref(l);try{u.pushState(i,"",p)}catch(e){a.location.assign(p)}o&&d&&d({action:f,location:l})},replace:function(e,t){f=r.Replace;let l=c(h.location,e,t);null==n||n(l,e);let a=s(l),i=h.createHref(l);u.replaceState(a,"",i),o&&d&&d({action:f,location:l})},go:e=>u.go(e)};return h}((function(e,t){var n,r;let{pathname:l,search:a,hash:o}=e.location;return c("",{pathname:l,search:a,hash:o},(null==(n=t.state)?void 0:n.usr)||null,(null==(r=t.state)?void 0:r.key)||"default")}),(function(e,t){return"string"==typeof t?t:function(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}(t)}),null,u)));let f=o.current,[d,p]=a.useState({action:f.action,location:f.location});return a.useLayoutEffect((()=>f.listen(p)),[f]),a.createElement(H,{basename:t,children:n,location:d.location,navigationType:d.action,navigator:f})}!function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"}(A||(A={})),function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(V||(V={})),new Promise((()=>{})),a.Component;var K=n(527);const Y=()=>{const e=(0,a.lazy)((()=>n.e(306).then(n.bind(n,306))));return(0,K.jsx)(a.Suspense,{children:(0,K.jsx)(e,{})})},X=()=>{const e=(0,a.lazy)((()=>n.e(91).then(n.bind(n,91))));return(0,K.jsx)(a.Suspense,{children:(0,K.jsx)(e,{})})},G=()=>(0,K.jsx)(q,{children:(0,K.jsxs)(W,{children:[(0,K.jsx)(B,{path:"/CHANGELOG.md",element:(0,K.jsx)(X,{})}),(0,K.jsx)(B,{path:"/",element:(0,K.jsx)(Y,{})})]})}),Z=document.querySelector("#app");Z.classList.add("markdown-body"),(0,l.s)(Z).render((0,K.jsx)(G,{}))},746:(e,t,n)=>{var r=n(959),l=n(962);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n