@techdocs/cli 1.11.5-next.2 → 1.12.1-next.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/CHANGELOG.md +31 -0
- package/dist/commands/generate/generate.cjs.js +32 -2
- package/dist/commands/generate/generate.cjs.js.map +1 -1
- package/dist/commands/index.cjs.js +9 -1
- package/dist/commands/index.cjs.js.map +1 -1
- package/dist/commands/migrate/migrate.cjs.js.map +1 -1
- package/dist/commands/publish/publish.cjs.js +47 -0
- package/dist/commands/publish/publish.cjs.js.map +1 -1
- package/dist/commands/serve/mkdocs.cjs.js.map +1 -1
- package/dist/commands/serve/serve.cjs.js.map +1 -1
- package/dist/commands/serve/utils.cjs.js.map +1 -1
- package/dist/embedded-app/.config-schema.json +52 -46
- package/dist/embedded-app/index.html +1 -1
- package/dist/embedded-app/index.html.tmpl +1 -1
- package/dist/embedded-app/static/123.bc6a54ead4a3.chunk.js +2 -0
- package/dist/embedded-app/static/123.bc6a54ead4a3.chunk.js.map +1 -0
- package/dist/embedded-app/static/{1659.4dc5ef343178.chunk.js → 1659.9fe64c5d9180.chunk.js} +2 -2
- package/dist/embedded-app/static/{1659.4dc5ef343178.chunk.js.map → 1659.9fe64c5d9180.chunk.js.map} +1 -1
- package/dist/embedded-app/static/1749.99ba95728e00.chunk.js +2 -0
- package/dist/embedded-app/static/1749.99ba95728e00.chunk.js.map +1 -0
- package/dist/embedded-app/static/1767.511a3dc76c96.chunk.js +2 -0
- package/dist/embedded-app/static/1767.511a3dc76c96.chunk.js.map +1 -0
- package/dist/embedded-app/static/1994.7736057c2e9f.chunk.js +2 -0
- package/dist/embedded-app/static/1994.7736057c2e9f.chunk.js.map +1 -0
- package/dist/embedded-app/static/{2063.c6396ce3e9c9.chunk.js → 2063.be81f1843585.chunk.js} +3 -3
- package/dist/embedded-app/static/2063.be81f1843585.chunk.js.map +1 -0
- package/dist/embedded-app/static/{2295.0f797d8c2780.chunk.js → 2295.aaedbca4c1c5.chunk.js} +3 -3
- package/dist/embedded-app/static/2295.aaedbca4c1c5.chunk.js.map +1 -0
- package/dist/embedded-app/static/2360.806f2e1ab212.chunk.js +2 -0
- package/dist/embedded-app/static/2360.806f2e1ab212.chunk.js.map +1 -0
- package/dist/embedded-app/static/3031.f2ee3495211a.chunk.js +2 -0
- package/dist/embedded-app/static/{3031.cd0a0f1ddfd2.chunk.js.map → 3031.f2ee3495211a.chunk.js.map} +1 -1
- package/dist/embedded-app/static/3554.78dd0c182f6c.chunk.js +2 -0
- package/dist/embedded-app/static/3554.78dd0c182f6c.chunk.js.map +1 -0
- package/dist/embedded-app/static/{4587.96f03715ec4f.chunk.js → 4587.f762d58ffd52.chunk.js} +2 -2
- package/dist/embedded-app/static/{4587.96f03715ec4f.chunk.js.map → 4587.f762d58ffd52.chunk.js.map} +1 -1
- package/dist/embedded-app/static/4591.d741c025cb8a.chunk.js +2 -0
- package/dist/embedded-app/static/4591.d741c025cb8a.chunk.js.map +1 -0
- package/dist/embedded-app/static/4609.9d9e4473afcc.chunk.js +531 -0
- package/dist/embedded-app/static/4609.9d9e4473afcc.chunk.js.map +1 -0
- package/dist/embedded-app/static/4648.cd5b8df48435.chunk.js +2 -0
- package/dist/embedded-app/static/4648.cd5b8df48435.chunk.js.map +1 -0
- package/dist/embedded-app/static/4876.fa3ad2676113.chunk.js +2 -0
- package/dist/embedded-app/static/4876.fa3ad2676113.chunk.js.map +1 -0
- package/dist/embedded-app/static/5877.73f1d4863c15.chunk.js +2 -0
- package/dist/embedded-app/static/5877.73f1d4863c15.chunk.js.map +1 -0
- package/dist/embedded-app/static/6138.f15d6245c80d.chunk.js +2 -0
- package/dist/embedded-app/static/6138.f15d6245c80d.chunk.js.map +1 -0
- package/dist/embedded-app/static/6206.3e7f13e11c59.chunk.js +2 -0
- package/dist/embedded-app/static/6206.3e7f13e11c59.chunk.js.map +1 -0
- package/dist/embedded-app/static/6949.beeb90ede97f.chunk.js +4 -0
- package/dist/embedded-app/static/6949.beeb90ede97f.chunk.js.map +1 -0
- package/dist/embedded-app/static/7203.8b3d94b34b16.chunk.js +2 -0
- package/dist/embedded-app/static/7203.8b3d94b34b16.chunk.js.map +1 -0
- package/dist/embedded-app/static/8877.ab3d98868650.chunk.js +2 -0
- package/dist/embedded-app/static/8877.ab3d98868650.chunk.js.map +1 -0
- package/dist/embedded-app/static/9050.bd63e0a33f06.chunk.js +2 -0
- package/dist/embedded-app/static/9050.bd63e0a33f06.chunk.js.map +1 -0
- package/dist/embedded-app/static/9230.422824f655e0.chunk.js +2 -0
- package/dist/embedded-app/static/9230.422824f655e0.chunk.js.map +1 -0
- package/dist/embedded-app/static/main.2b07c1548609.js +2 -0
- package/dist/embedded-app/static/main.2b07c1548609.js.map +1 -0
- package/dist/embedded-app/static/module-remix-run.32d1d7665115.js +2 -0
- package/dist/embedded-app/static/module-remix-run.32d1d7665115.js.map +1 -0
- package/dist/embedded-app/static/module-zod.da562d5b5226.js +56 -0
- package/dist/embedded-app/static/module-zod.da562d5b5226.js.map +1 -0
- package/dist/embedded-app/static/{runtime.304ce6fa8de1.js → runtime.f472dc4c479f.js} +2 -2
- package/dist/embedded-app/static/{runtime.304ce6fa8de1.js.map → runtime.f472dc4c479f.js.map} +1 -1
- package/dist/embedded-app/static/vendor.d2c73d5e1e09.js +2 -0
- package/dist/embedded-app/static/vendor.d2c73d5e1e09.js.map +1 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/lib/PublisherConfig.cjs.js.map +1 -1
- package/dist/lib/etag.cjs.js +40 -0
- package/dist/lib/etag.cjs.js.map +1 -0
- package/dist/lib/httpServer.cjs.js.map +1 -1
- package/dist/lib/livereload.cjs.js.map +1 -1
- package/dist/lib/mkdocsServer.cjs.js.map +1 -1
- package/dist/lib/utility.cjs.js.map +1 -1
- package/dist/package.json.cjs.js +1 -1
- package/dist/package.json.cjs.js.map +1 -1
- package/package.json +8 -7
- package/dist/embedded-app/static/123.580aa7a9bfda.chunk.js +0 -2
- package/dist/embedded-app/static/123.580aa7a9bfda.chunk.js.map +0 -1
- package/dist/embedded-app/static/1749.fcf12bbab446.chunk.js +0 -2
- package/dist/embedded-app/static/1749.fcf12bbab446.chunk.js.map +0 -1
- package/dist/embedded-app/static/1767.5aca18e1057b.chunk.js +0 -2
- package/dist/embedded-app/static/1767.5aca18e1057b.chunk.js.map +0 -1
- package/dist/embedded-app/static/1994.9de2967d46a1.chunk.js +0 -2
- package/dist/embedded-app/static/1994.9de2967d46a1.chunk.js.map +0 -1
- package/dist/embedded-app/static/2063.c6396ce3e9c9.chunk.js.map +0 -1
- package/dist/embedded-app/static/2295.0f797d8c2780.chunk.js.map +0 -1
- package/dist/embedded-app/static/2360.c56e85f47e34.chunk.js +0 -2
- package/dist/embedded-app/static/2360.c56e85f47e34.chunk.js.map +0 -1
- package/dist/embedded-app/static/3031.cd0a0f1ddfd2.chunk.js +0 -2
- package/dist/embedded-app/static/3554.bb882f8e4aea.chunk.js +0 -2
- package/dist/embedded-app/static/3554.bb882f8e4aea.chunk.js.map +0 -1
- package/dist/embedded-app/static/4591.5563e3a7aea4.chunk.js +0 -2
- package/dist/embedded-app/static/4591.5563e3a7aea4.chunk.js.map +0 -1
- package/dist/embedded-app/static/4609.152f14ef4904.chunk.js +0 -531
- package/dist/embedded-app/static/4609.152f14ef4904.chunk.js.map +0 -1
- package/dist/embedded-app/static/4648.8a54a9ce4e70.chunk.js +0 -2
- package/dist/embedded-app/static/4648.8a54a9ce4e70.chunk.js.map +0 -1
- package/dist/embedded-app/static/4876.67117dbbe8d1.chunk.js +0 -2
- package/dist/embedded-app/static/4876.67117dbbe8d1.chunk.js.map +0 -1
- package/dist/embedded-app/static/5877.8ad98e3207c5.chunk.js +0 -2
- package/dist/embedded-app/static/5877.8ad98e3207c5.chunk.js.map +0 -1
- package/dist/embedded-app/static/6138.a55572f5ecc5.chunk.js +0 -2
- package/dist/embedded-app/static/6138.a55572f5ecc5.chunk.js.map +0 -1
- package/dist/embedded-app/static/6206.b2713857572e.chunk.js +0 -2
- package/dist/embedded-app/static/6206.b2713857572e.chunk.js.map +0 -1
- package/dist/embedded-app/static/6949.62c7fa0aab7f.chunk.js +0 -4
- package/dist/embedded-app/static/6949.62c7fa0aab7f.chunk.js.map +0 -1
- package/dist/embedded-app/static/7203.16b8799346fa.chunk.js +0 -2
- package/dist/embedded-app/static/7203.16b8799346fa.chunk.js.map +0 -1
- package/dist/embedded-app/static/8877.58093d2c2ba0.chunk.js +0 -2
- package/dist/embedded-app/static/8877.58093d2c2ba0.chunk.js.map +0 -1
- package/dist/embedded-app/static/9050.093f683d75b8.chunk.js +0 -2
- package/dist/embedded-app/static/9050.093f683d75b8.chunk.js.map +0 -1
- package/dist/embedded-app/static/9230.1a571175884d.chunk.js +0 -2
- package/dist/embedded-app/static/9230.1a571175884d.chunk.js.map +0 -1
- package/dist/embedded-app/static/main.3b7e5948ec11.js +0 -2
- package/dist/embedded-app/static/main.3b7e5948ec11.js.map +0 -1
- package/dist/embedded-app/static/module-remix-run.0c80eb31316a.js +0 -2
- package/dist/embedded-app/static/module-remix-run.0c80eb31316a.js.map +0 -1
- package/dist/embedded-app/static/module-zod.faf74f910029.js +0 -38
- package/dist/embedded-app/static/module-zod.faf74f910029.js.map +0 -1
- package/dist/embedded-app/static/vendor.3bc2778face5.js +0 -2
- package/dist/embedded-app/static/vendor.3bc2778face5.js.map +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([["5877"],{90292(e,t,n){"use strict";var r=n(4293),o=n(78920);t.default=void 0;var a=o(n(14041));t.default=(0,r(n(74044)).default)(a.createElement("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H5.17l-.59.59-.58.58V4h16v12zm-9-4h2v2h-2zm0-6h2v4h-2z"}),"FeedbackOutlined")},55290(e,t,n){"use strict";var r=n(4293),o=n(78920);t.default=void 0;var a=o(n(14041));t.default=(0,r(n(74044)).default)(a.createElement("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z"}),"Share")},48209(e,t,n){"use strict";n.d(t,{A:()=>v});var r=n(39850),o=n(89575),a=n(14041),i=n(57384),l=n(268),c=n(7031),u=n(4321),s=n(38483);let f=(0,s.A)(a.createElement("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),p=(0,s.A)(a.createElement("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),m=(0,s.A)(a.createElement("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),d=(0,s.A)(a.createElement("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined");var h=n(68430),g=n(29365),y=n(11192),b={success:a.createElement(f,{fontSize:"inherit"}),warning:a.createElement(p,{fontSize:"inherit"}),error:a.createElement(m,{fontSize:"inherit"}),info:a.createElement(d,{fontSize:"inherit"})},T=a.createElement(h.A,{fontSize:"small"}),A=a.forwardRef(function(e,t){var n=e.action,l=e.children,c=e.classes,s=e.className,f=e.closeText,p=void 0===f?"Close":f,m=e.color,d=e.icon,h=e.iconMapping,A=void 0===h?b:h,v=e.onClose,E=e.role,S=e.severity,_=void 0===S?"success":S,N=e.variant,w=(0,r.A)(e,["action","children","classes","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"]);return a.createElement(u.A,(0,o.A)({role:void 0===E?"alert":E,square:!0,elevation:0,className:(0,i.A)(c.root,c["".concat(void 0===N?"standard":N).concat((0,y.A)(m||_))],s),ref:t},w),!1!==d?a.createElement("div",{className:c.icon},d||A[_]||b[_]):null,a.createElement("div",{className:c.message},l),null!=n?a.createElement("div",{className:c.action},n):null,null==n&&v?a.createElement("div",{className:c.action},a.createElement(g.A,{size:"small","aria-label":p,title:p,color:"inherit",onClick:v},T)):null)});let v=(0,c.A)(function(e){var t="light"===e.palette.type?l.e$:l.a,n="light"===e.palette.type?l.a:l.e$;return{root:(0,o.A)({},e.typography.body2,{borderRadius:e.shape.borderRadius,backgroundColor:"transparent",display:"flex",padding:"6px 16px"}),standardSuccess:{color:t(e.palette.success.main,.6),backgroundColor:n(e.palette.success.main,.9),"& $icon":{color:e.palette.success.main}},standardInfo:{color:t(e.palette.info.main,.6),backgroundColor:n(e.palette.info.main,.9),"& $icon":{color:e.palette.info.main}},standardWarning:{color:t(e.palette.warning.main,.6),backgroundColor:n(e.palette.warning.main,.9),"& $icon":{color:e.palette.warning.main}},standardError:{color:t(e.palette.error.main,.6),backgroundColor:n(e.palette.error.main,.9),"& $icon":{color:e.palette.error.main}},outlinedSuccess:{color:t(e.palette.success.main,.6),border:"1px solid ".concat(e.palette.success.main),"& $icon":{color:e.palette.success.main}},outlinedInfo:{color:t(e.palette.info.main,.6),border:"1px solid ".concat(e.palette.info.main),"& $icon":{color:e.palette.info.main}},outlinedWarning:{color:t(e.palette.warning.main,.6),border:"1px solid ".concat(e.palette.warning.main),"& $icon":{color:e.palette.warning.main}},outlinedError:{color:t(e.palette.error.main,.6),border:"1px solid ".concat(e.palette.error.main),"& $icon":{color:e.palette.error.main}},filledSuccess:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.success.main},filledInfo:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.info.main},filledWarning:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.warning.main},filledError:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.error.main},icon:{marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9},message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}},{name:"MuiAlert"})(A)},4387(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(89575),o=n(39850),a=n(14041),i=n(57384),l=n(268),c=n(7031),u=a.forwardRef(function(e,t){var n=e.animation,l=void 0===n?"pulse":n,c=e.classes,u=e.className,s=e.component,f=e.height,p=e.variant,m=e.width,d=(0,o.A)(e,["animation","classes","className","component","height","variant","width"]),h=!!d.children;return a.createElement(void 0===s?"span":s,(0,r.A)({ref:t,className:(0,i.A)(c.root,c[void 0===p?"text":p],u,h&&[c.withChildren,!m&&c.fitContent,!f&&c.heightAuto],!1!==l&&c[l])},d,{style:(0,r.A)({width:m,height:f},d.style)}))});let s=(0,c.A)(function(e){return{root:{display:"block",backgroundColor:(0,l.X4)(e.palette.text.primary,"light"===e.palette.type?.11:.13),height:"1.2em"},text:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 60%",transform:"scale(1, 0.60)",borderRadius:e.shape.borderRadius,"&:empty:before":{content:'"\\00a0"'}},rect:{},circle:{borderRadius:"50%"},pulse:{animation:"$pulse 1.5s ease-in-out 0.5s infinite"},"@keyframes pulse":{"0%":{opacity:1},"50%":{opacity:.4},"100%":{opacity:1}},wave:{position:"relative",overflow:"hidden","&::after":{animation:"$wave 1.6s linear 0.5s infinite",background:"linear-gradient(90deg, transparent, ".concat(e.palette.action.hover,", transparent)"),content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}},"@keyframes wave":{"0%":{transform:"translateX(-100%)"},"60%":{transform:"translateX(100%)"},"100%":{transform:"translateX(100%)"}},withChildren:{"& > *":{visibility:"hidden"}},fitContent:{maxWidth:"fit-content"},heightAuto:{height:"auto"}}},{name:"MuiSkeleton"})(u)},52837(e){e.exports=function(e){return e.split("")}},73501(e){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r<o;)a[r]=e[r+t];return a}},28931(e,t,n){var r=n(73501);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},4326(e,t,n){var r=n(28931),o=n(83417),a=n(82237),i=n(95243);e.exports=function(e){return function(t){var n=o(t=i(t))?a(t):void 0,l=n?n[0]:t.charAt(0),c=n?r(n,1).join(""):t.slice(1);return l[e]()+c}}},83417(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},82237(e,t,n){var r=n(52837),o=n(83417),a=n(92013);e.exports=function(e){return o(e)?a(e):r(e)}},92013(e){var t="\\ud800-\\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",i="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+n+"|"+r+")?",c="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[o,a,i].join("|")+")"+c+l+")*",s=RegExp(r+"(?="+r+")|"+("(?:"+[o+n+"?",n,a,i,"["+t+"]"].join("|"))+")"+(c+l+u),"g");e.exports=function(e){return e.match(s)||[]}},56005(e,t,n){var r=n(95243),o=n(5485);e.exports=function(e){return o(r(e).toLowerCase())}},5485(e,t,n){e.exports=n(4326)("toUpperCase")},5877(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(14041);function o(e){var t=(0,r.useRef)();return(0,r.useEffect)(function(){t.current=e}),t.current}},91042(e,t,n){"use strict";n.d(t,{Y:()=>a});var r=n(14041),o=n(16261);function a(e,t){let[n,a]=(0,r.useState)({status:"not-executed",error:void 0,result:t}),i=(0,r.useRef)(),l=(0,r.useRef)(),c=(0,o.J)({execute(...t){l.current=t;let n=e(...t);return i.current=n,a(e=>({...e,status:"loading"})),n.then(e=>{n===i.current&&a(t=>({...t,status:"success",error:void 0,result:e}))},e=>{n===i.current&&a(t=>({...t,status:"error",error:e}))}),n},reset(){a({status:"not-executed",error:void 0,result:t}),i.current=void 0,l.current=void 0}});return[n,(0,r.useMemo)(()=>({reset(){c.current.reset()},execute:(...e)=>c.current.execute(...e)}),[]),{promise:i.current,lastArgs:l.current}]}},97519(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>ed});let o=Object.entries,a=Object.setPrototypeOf,i=Object.isFrozen,l=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor,u=Object.freeze,s=Object.seal,f=Object.create,p="u">typeof Reflect&&Reflect,m=p.apply,d=p.construct;u||(u=function(e){return e}),s||(s=function(e){return e}),m||(m=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),d||(d=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});let h=M(Array.prototype.forEach),g=M(Array.prototype.lastIndexOf),y=M(Array.prototype.pop),b=M(Array.prototype.push),T=M(Array.prototype.splice),A=Array.isArray,v=M(String.prototype.toLowerCase),E=M(String.prototype.toString),S=M(String.prototype.match),_=M(String.prototype.replace),N=M(String.prototype.indexOf),w=M(String.prototype.trim),C=M(Number.prototype.toString),O=M(Boolean.prototype.toString),x="u"<typeof BigInt?null:M(BigInt.prototype.toString),k="u"<typeof Symbol?null:M(Symbol.prototype.toString),R=M(Object.prototype.hasOwnProperty),I=M(Object.prototype.toString),D=M(RegExp.prototype.test),L=(em=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return d(em,t)});function M(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return m(e,t,r)}}function z(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v;if(a&&a(e,null),!A(t))return e;let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){let e=n(o);e!==o&&(i(t)||(t[r]=e),o=e)}e[o]=!0}return e}function P(e){let t=f(null);for(let a of o(e)){var n=function(e){if(Array.isArray(e))return e}(a)||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o,a,i=[],l=!0,c=!1;try{o=(t=t.call(e)).next,!1;for(;!(l=(n=o.call(t)).done)&&(i.push(n.value),2!==i.length);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw r}}return i}}(a)||function(e){if(e){if("string"==typeof e)return r(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?r(e,2):void 0}}(a)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let o=n[0],i=n[1];R(e,o)&&(A(i)?t[o]=function(e){for(let t=0;t<e.length;t++)R(e,t)||(e[t]=null);return e}(i):i&&"object"==typeof i&&i.constructor===Object?t[o]=P(i):t[o]=i)}return t}function U(e,t){for(;null!==e;){let n=c(e,t);if(n){if(n.get)return M(n.get);if("function"==typeof n.value)return M(n.value)}e=l(e)}return function(){return null}}let F=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),H=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),W=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),j=u(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),B=u(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),G=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Y=u(["#text"]),$=u(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),X=u(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),q=u(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),V=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),K=s(/{{[\w\W]*|^[\w\W]*}}/g),Z=s(/<%[\w\W]*|^[\w\W]*%>/g),J=s(/\${[\w\W]*/g),Q=s(/^data-[\-\w.\u00B7-\uFFFF]+$/),ee=s(/^aria-[\-\w]+$/),et=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),en=s(/^(?:\w+script|data):/i),er=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),eo=s(/^html$/i),ea=s(/^[a-z][.\w]*(-[.\w]+)+$/i),ei=s(/<[/\w!]/g),el=s(/<[/\w]/g),ec=s(/<\/no(script|embed|frames)/i),eu=s(/\/>/i),es=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}},ef=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ep=function(e,t,n,r){return R(e,t)&&A(e[t])?z(r.base?P(r.base):{},e[t],r.transform):n};var em,ed=function e(){let t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"u"<typeof window?null:window,a=t=>e(t);if(a.version="3.4.13",a.removed=[],!r||!r.document||9!==r.document.nodeType||!r.Element)return a.isSupported=!1,a;let i=r.document,l=i,c=l.currentScript;r.DocumentFragment;let p=r.HTMLTemplateElement,m=r.Node,d=r.Element,M=r.NodeFilter;void 0===r.NamedNodeMap&&(r.NamedNodeMap||r.MozNamedAttrMap),r.HTMLFormElement;let em=r.DOMParser,ed=r.trustedTypes,eh=d.prototype,eg=U(eh,"cloneNode"),ey=U(eh,"remove"),eb=U(eh,"nextSibling"),eT=U(eh,"childNodes"),eA=U(eh,"parentNode"),ev=U(eh,"shadowRoot"),eE=U(eh,"attributes"),eS=m&&m.prototype?U(m.prototype,"nodeType"):null,e_=m&&m.prototype?U(m.prototype,"nodeName"):null,eN=m&&m.prototype?U(m.prototype,"ownerDocument"):null;if("function"==typeof p){let e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let ew="",eC=!1,eO=0,ex=function(){if(eO>0)throw L('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},ek=function(e){ex(),eO++;try{return t.createHTML(e)}finally{eO--}},eR=function(e){ex(),eO++;try{return t.createScriptURL(e)}finally{eO--}},eI=i,eD=eI.implementation,eL=eI.createNodeIterator,eM=eI.createDocumentFragment,ez=eI.getElementsByTagName,eP=l.importNode,eU=ef();a.isSupported="function"==typeof o&&"function"==typeof eA&&eD&&void 0!==eD.createHTMLDocument;let eF=et,eH=null,eW=z({},[...F,...H,...W,...B,...Y]),ej=null,eB=z({},[...$,...X,...q,...V]),eG=Object.seal(f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),eY=null,e$=null,eX=Object.seal(f(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),eq=!0,eV=!0,eK=!1,eZ=!0,eJ=!1,eQ=!0,e0=!1,e1=!1,e2=null,e4=null,e9=!1,e3=!1,e8=!1,e5=!1,e7=!0,e6=!1,te="user-content-",tt=!0,tn=!1,tr={},to=null,ta=z({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),ti=null,tl=z({},["audio","video","img","source","image","track"]),tc=null,tu=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ts="http://www.w3.org/1998/Math/MathML",tf="http://www.w3.org/2000/svg",tp="http://www.w3.org/1999/xhtml",tm=tp,td=!1,th=null,tg=z({},[ts,tf,tp],E),ty=u(["mi","mo","mn","ms","mtext"]),tb=z({},ty),tT=u(["annotation-xml"]),tA=z({},tT),tv=z({},["title","style","font","a","script"]),tE=null,tS=["application/xhtml+xml","text/html"],t_=null,tN=null,tw=i.createElement("form"),tC=function(e){return e instanceof RegExp||e instanceof Function},tO=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(tN&&tN===e)return;e&&"object"==typeof e||(e={}),e=P(e),t_="application/xhtml+xml"===(tE=-1===tS.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?E:v,eH=ep(e,"ALLOWED_TAGS",eW,{transform:t_}),ej=ep(e,"ALLOWED_ATTR",eB,{transform:t_}),th=ep(e,"ALLOWED_NAMESPACES",tg,{transform:E}),tc=ep(e,"ADD_URI_SAFE_ATTR",tu,{transform:t_,base:tu}),ti=ep(e,"ADD_DATA_URI_TAGS",tl,{transform:t_,base:tl}),to=ep(e,"FORBID_CONTENTS",ta,{transform:t_}),eY=ep(e,"FORBID_TAGS",P({}),{transform:t_}),e$=ep(e,"FORBID_ATTR",P({}),{transform:t_}),tr=!!R(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?P(e.USE_PROFILES):e.USE_PROFILES),eq=!1!==e.ALLOW_ARIA_ATTR,eV=!1!==e.ALLOW_DATA_ATTR,eK=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eZ=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,eJ=e.SAFE_FOR_TEMPLATES||!1,eQ=!1!==e.SAFE_FOR_XML,e0=e.WHOLE_DOCUMENT||!1,e3=e.RETURN_DOM||!1,e8=e.RETURN_DOM_FRAGMENT||!1,e5=e.RETURN_TRUSTED_TYPE||!1,e9=e.FORCE_BODY||!1,e7=!1!==e.SANITIZE_DOM,e6=e.SANITIZE_NAMED_PROPS||!1,tt=!1!==e.KEEP_CONTENT,tn=e.IN_PLACE||!1,eF=!function(e){try{return D(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?et:e.ALLOWED_URI_REGEXP,tm="string"==typeof e.NAMESPACE?e.NAMESPACE:tp,tb=R(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?P(e.MATHML_TEXT_INTEGRATION_POINTS):z({},ty),tA=R(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?P(e.HTML_INTEGRATION_POINTS):z({},tT);let r=R(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?P(e.CUSTOM_ELEMENT_HANDLING):f(null);if(eG=f(null),R(r,"tagNameCheck")&&tC(r.tagNameCheck)&&(eG.tagNameCheck=r.tagNameCheck),R(r,"attributeNameCheck")&&tC(r.attributeNameCheck)&&(eG.attributeNameCheck=r.attributeNameCheck),R(r,"allowCustomizedBuiltInElements")&&"boolean"==typeof r.allowCustomizedBuiltInElements&&(eG.allowCustomizedBuiltInElements=r.allowCustomizedBuiltInElements),s(eG),eJ&&(eV=!1),e8&&(e3=!0),tr&&(eH=z({},Y),ej=f(null),!0===tr.html&&(z(eH,F),z(ej,$)),!0===tr.svg&&(z(eH,H),z(ej,X),z(ej,V)),!0===tr.svgFilters&&(z(eH,W),z(ej,X),z(ej,V)),!0===tr.mathMl&&(z(eH,B),z(ej,q),z(ej,V))),eX.tagCheck=null,eX.attributeCheck=null,R(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?eX.tagCheck=e.ADD_TAGS:A(e.ADD_TAGS)&&(eH===eW&&(eH=P(eH)),z(eH,e.ADD_TAGS,t_))),R(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?eX.attributeCheck=e.ADD_ATTR:A(e.ADD_ATTR)&&(ej===eB&&(ej=P(ej)),z(ej,e.ADD_ATTR,t_))),R(e,"ADD_URI_SAFE_ATTR")&&A(e.ADD_URI_SAFE_ATTR)&&z(tc,e.ADD_URI_SAFE_ATTR,t_),R(e,"FORBID_CONTENTS")&&A(e.FORBID_CONTENTS)&&(to===ta&&(to=P(to)),z(to,e.FORBID_CONTENTS,t_)),R(e,"ADD_FORBID_CONTENTS")&&A(e.ADD_FORBID_CONTENTS)&&(to===ta&&(to=P(to)),z(to,e.ADD_FORBID_CONTENTS,t_)),tt&&(eH["#text"]=!0),e0&&z(eH,["html","head","body"]),eH.table&&(z(eH,["tbody"]),delete eY.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw L('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw L('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let n=t;t=e.TRUSTED_TYPES_POLICY;try{ew=ek("")}catch(e){throw t=n,e}}else null===e.TRUSTED_TYPES_POLICY?(t=void 0,ew=""):(void 0===t&&(eC||(n=es(ed,c),eC=!0),t=n),t&&"string"==typeof ew&&(ew=ek("")));u&&u(e),tN=e},tx=z({},[...H,...W,...j]),tk=z({},[...B,...G]),tR=function(e){var t,n,r;let o=eA(e);o&&o.tagName||(o={namespaceURI:tm,tagName:"template"});let a=v(e.tagName),i=v(o.tagName);return!!th[e.namespaceURI]&&(e.namespaceURI===tf?(t=o).namespaceURI===tp?"svg"===a:t.namespaceURI===ts?"svg"===a&&("annotation-xml"===i||tb[i]):!!tx[a]:e.namespaceURI===ts?(n=o).namespaceURI===tp?"math"===a:n.namespaceURI===tf?"math"===a&&tA[i]:!!tk[a]:e.namespaceURI===tp?((r=o).namespaceURI!==tf||!!tA[i])&&(r.namespaceURI!==ts||!!tb[i])&&!tk[a]&&(tv[a]||!tx[a]):"application/xhtml+xml"===tE&&!!th[e.namespaceURI])},tI=function(e){b(a.removed,{element:e});try{eA(e).removeChild(e)}catch(t){if(ey(e),!eA(e))throw L("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},tD=function(e){tz(e);let t=eT(e);if(t){let e=[];h(t,t=>{b(e,t)}),h(e,e=>{try{ey(e)}catch(e){}})}let n=eE(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],o=r&&r.name;if("string"==typeof o)try{e.removeAttribute(o)}catch(e){}}},tL=function(e,t){try{b(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){b(a.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(e3||e8)try{tI(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},tM=function(e){let t=eE(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],o=r&&r.name;if("string"==typeof o&&!ej[t_(o)])try{e.removeAttribute(o)}catch(e){}}},tz=function(e){let t=[e];for(;t.length>0;){let e=t.pop();(eS?eS(e):e.nodeType)===1&&tM(e);let n=eT(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},tP=function(e){if(!eQ)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=eS?eS(e):e.nodeType;if(7===n||8===n&&D(el,e.data)){try{ey(e)}catch(e){}continue}if(1===n){let t=t_(e_?e_(e):e.nodeName);try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&"label"!==t&&"output"!==t&&e.removeAttribute("for")}catch(e){}}let r=eT(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},tU=function(e){let n=null,r=null;if(e9)e="<remove></remove>"+e;else{let t=S(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===tE&&tm===tp&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let o=t?ek(e):e;if(tm===tp)try{n=new em().parseFromString(o,tE)}catch(e){}if(!n||!n.documentElement){n=eD.createDocument(tm,"template",null);try{n.documentElement.innerHTML=td?ew:o}catch(e){}}let a=n.body||n.documentElement;return(e&&r&&a.insertBefore(i.createTextNode(r),a.childNodes[0]||null),tm===tp)?ez.call(n,e0?"html":"body")[0]:e0?n.documentElement:a},tF=function(e){let t=eN?eN(e):e.ownerDocument;return eL.call(t||e,e,M.SHOW_ELEMENT|M.SHOW_COMMENT|M.SHOW_TEXT|M.SHOW_PROCESSING_INSTRUCTION|M.SHOW_CDATA_SECTION,null)},tH=function(e){return e=_(e,K," "),e=_(e,Z," "),e=_(e,J," ")},tW=function(e){var t;e.normalize();let n=eN?eN(e):e.ownerDocument,r=eL.call(n||e,e,M.SHOW_TEXT|M.SHOW_COMMENT|M.SHOW_CDATA_SECTION|M.SHOW_PROCESSING_INSTRUCTION,null),o=r.nextNode();for(;o;)o.data=tH(o.data),o=r.nextNode();let a=null==(t=e.querySelectorAll)?void 0:t.call(e,"template");a&&h(a,e=>{tB(e.content)&&tW(e.content)})},tj=function(e){let t=e_?e_(e):null;return"string"==typeof t&&"form"===t_(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==eE(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==eS(e)||e.childNodes!==eT(e))},tB=function(e){if(!eS||"object"!=typeof e||null===e)return!1;try{return 11===eS(e)}catch(e){return!1}},tG=function(e){if(!eS||"object"!=typeof e||null===e)return!1;try{return"number"==typeof eS(e)}catch(e){return!1}};function tY(e,t,n){0!==e.length&&h(e,e=>{e.call(a,t,n,tN)})}let t$=function(e,t,n){if(!eY[t]&&tZ(t)&&(eG.tagNameCheck instanceof RegExp&&D(eG.tagNameCheck,t)||eG.tagNameCheck instanceof Function&&eG.tagNameCheck(t)))return!1;if(tt&&!to[t]){let t=eA(e),r=eT(e);if(r&&t){let o=r.length;for(let a=o-1;a>=0;--a){let o=e===n?eg(r[a],!0):r[a];t.insertBefore(o,eb(e))}}}return tI(e),!0},tX=function(e,t,n,r){return 0===e.length?t:t===n||t===r?P(t):t},tq=function(e,t){if(tY(eU.beforeSanitizeElements,e,null),e!==t&&null===eA(e))return tn&&tz(e),!0;if(tj(e))return tI(e),!0;let n=t_(e_?e_(e):e.nodeName);if(eH=tX(eU.uponSanitizeElement,eH,eW,e2),tY(eU.uponSanitizeElement,e,{tagName:n,allowedTags:eH}),e!==t&&null===eA(e))return tn&&tz(e),!0;if(eQ&&e.hasChildNodes()&&!tG(e.firstElementChild)&&D(ei,e.textContent)&&D(ei,e.innerHTML)||eQ&&e.namespaceURI===tp&&"style"===n&&tG(e.firstElementChild)||7===e.nodeType||eQ&&8===e.nodeType&&D(el,e.data))return tI(e),!0;if(eY[n]||!(eX.tagCheck instanceof Function&&eX.tagCheck(n))&&!eH[n]){let r=t$(e,n,t);return!1===r&&tY(eU.afterSanitizeElements,e,null),r}if((eS?eS(e):e.nodeType)===1&&!tR(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&D(ec,e.innerHTML))return tI(e),!0;if(eJ&&3===e.nodeType){let t=tH(e.textContent);e.textContent!==t&&(b(a.removed,{element:e.cloneNode()}),e.textContent=t)}return tY(eU.afterSanitizeElements,e,null),!1},tV=function(e,t,n){if(e$[t]||eQ&&"patchsrc"===t||eQ&&"for"===t&&"label"!==e&&"output"!==e||e7&&("id"===t||"name"===t)&&(n in i||n in tw))return!1;let r=ej[t]||eX.attributeCheck instanceof Function&&eX.attributeCheck(t,e);if(eV&&D(Q,t));else if(eq&&D(ee,t));else if(r){if(tc[t]);else if(D(eF,_(n,er,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===N(n,"data:")&&ti[e]);else if(eK&&!D(en,_(n,er,"")));else if(n)return!1}else if(!(tZ(e)&&(eG.tagNameCheck instanceof RegExp&&D(eG.tagNameCheck,e)||eG.tagNameCheck instanceof Function&&eG.tagNameCheck(e))&&(eG.attributeNameCheck instanceof RegExp&&D(eG.attributeNameCheck,t)||eG.attributeNameCheck instanceof Function&&eG.attributeNameCheck(t,e))||"is"===t&&eG.allowCustomizedBuiltInElements&&(eG.tagNameCheck instanceof RegExp&&D(eG.tagNameCheck,n)||eG.tagNameCheck instanceof Function&&eG.tagNameCheck(n))))return!1;return!0},tK=z({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),tZ=function(e){return!tK[v(e)]&&D(ea,e)},tJ=function(e,n,r,o){if(t&&"object"==typeof ed&&"function"==typeof ed.getAttributeType&&!r)switch(ed.getAttributeType(e,n)){case"TrustedHTML":return ek(o);case"TrustedScriptURL":return eR(o)}return o},tQ=function(e,t,n,r){try{n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),tj(e)?tI(e):y(a.removed)}catch(n){tL(t,e)}},t0=function(e){tY(eU.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||tj(e))return;let n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ej=tX(eU.uponSanitizeAttribute,ej,eB,e4),forceKeepAttr:void 0},r=t.length,o=t_(e.nodeName);for(;r--;){let a=t[r],i=a.name,l=a.namespaceURI,c=a.value,u=t_(i),s="value"===i?c:w(c);if(n.attrName=u,n.attrValue=s,n.keepAttr=!0,n.forceKeepAttr=void 0,tY(eU.uponSanitizeAttribute,e,n),s=n.attrValue,e6&&("id"===u||"name"===u)&&0!==N(s,te)&&(tL(i,e),s=te+s),eQ&&D(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,s)||"attributename"===u&&S(s,"href")){tL(i,e);continue}if(!n.forceKeepAttr){if(!n.keepAttr||!eZ&&D(eu,s)||(eJ&&(s=tH(s)),!tV(o,u,s))){tL(i,e);continue}(s=tJ(o,u,l,s))!==c&&tQ(e,i,l,s)}}tY(eU.afterSanitizeAttributes,e,null)},t1=function(e){let t=null,n=tF(e);for(tY(eU.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(tY(eU.uponSanitizeShadowNode,t,null),tq(t,e),t0(t),tB(t.content)&&t1(t.content),(eS?eS(t):t.nodeType)===1){let e=ev(t);tB(e)&&(t2(e),t1(e))}tY(eU.afterSanitizeShadowDOM,e,null)},t2=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){t1(e.shadow);continue}let n=e.node,r=(eS?eS(n):n.nodeType)===1,o=eT(n);if(o)for(let e=o.length-1;e>=0;--e)t.push({node:o[e],shadow:null});if(r){let e=e_?e_(n):null;if("string"==typeof e&&"template"===t_(e)){let e=n.content;tB(e)&&t.push({node:e,shadow:null})}}if(r){let e=ev(n);tB(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return a.sanitize=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,i=null,c=null;if((td=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!tG(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return C(e);case"boolean":return O(e);case"bigint":return x?x(e):"0";case"symbol":return k?k(e):"Symbol()";case"undefined":default:return I(e);case"function":case"object":{if(null===e)return I(e);let t=U(e,"toString");if("function"==typeof t){let n=t(e);return"string"==typeof n?n:I(n)}return I(e)}}}(e)))throw L("dirty is not a string, aborting");if(!a.isSupported)return e;e1?(eH=e2,ej=e4):tO(n),(eU.uponSanitizeElement.length>0||eU.uponSanitizeAttribute.length>0)&&(eH=P(eH)),eU.uponSanitizeAttribute.length>0&&(ej=P(ej)),a.removed=[];let u=tn&&"string"!=typeof e&&tG(e);if(u){tP(e);let t=e_?e_(e):e.nodeName;if("string"==typeof t){let n=t_(t);if(!eH[n]||eY[n])throw tD(e),L("root node is forbidden and cannot be sanitized in-place")}if(tj(e))throw tD(e),L("root node is clobbered and cannot be sanitized in-place");try{t2(e)}catch(t){throw tD(e),t}}else if(tG(e))1===(o=(r=tU("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o),t2(o);else{if(!e3&&!eJ&&!e0&&-1===e.indexOf("<"))return t&&e5?ek(e):e;if(!(r=tU(e)))return e3?null:e5?ew:""}r&&e9&&tI(r.firstChild);let s=u?e:r;try{let e=tF(s);for(;i=e.nextNode();)tq(i,s),t0(i),tB(i.content)&&t1(i.content)}catch(t){throw u&&(tD(e),h(a.removed,e=>{e.element&&tz(e.element)})),t}if(u)return h(a.removed,e=>{e.element&&tz(e.element)}),eJ&&tW(e),e;if(e3){if(eJ&&tW(r),e8)for(c=eM.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(ej.shadowroot||ej.shadowrootmode)&&(c=eP.call(l,c,!0)),c}let f=e0?r.outerHTML:r.innerHTML;return e0&&eH["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&D(eo,r.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+f),eJ&&(f=tH(f)),t&&e5?ek(f):f},a.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tO(e),e1=!0,e2=eH,e4=ej},a.clearConfig=function(){tN=null,e1=!1,e2=null,e4=null,t=n,ew=""},a.isValidAttribute=function(e,t,n){return tN||tO({}),tV(t_(e),t_(t),n)},a.addHook=function(e,t){"function"!=typeof t||R(eU,e)&&b(eU[e],t)},a.removeHook=function(e,t){if(R(eU,e)){if(void 0!==t){let n=g(eU[e],t);return -1===n?void 0:T(eU[e],n,1)[0]}return y(eU[e])}},a.removeHooks=function(e){R(eU,e)&&(eU[e]=[])},a.removeAllHooks=function(){eU=ef()},a}()}}]);
|
|
2
|
-
//# sourceMappingURL=5877.8ad98e3207c5.chunk.js.map
|