mdast2docx 0.2.0 → 0.3.1
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/README.md +54 -15
- package/dist/chunk-KWOFOD3W.mjs +31 -0
- package/dist/chunk-NMFJ4KIZ.mjs +4 -0
- package/dist/index.d.ts +1 -23
- package/dist/index.js +1 -2
- package/dist/index.mjs +1 -1
- package/dist/{multipart-parser-ECCTUILZ.mjs → multipart-parser-I4OTWNXG.mjs} +1 -1
- package/dist/plugins/index.d.ts +5 -5
- package/dist/plugins/index.js +1 -79
- package/dist/plugins/index.mjs +1 -1
- package/dist/plugins/node/index.mjs +1 -1
- package/dist/plugins/node/node-image.d.ts +1 -1
- package/dist/plugins/node/node-image.mjs +1 -1
- package/package.json +15 -11
- package/dist/chunk-35E6UZDH.mjs +0 -4
- package/dist/chunk-ALSMH2CW.mjs +0 -75
- package/dist/chunk-CRVVOUD7.mjs +0 -1
- package/dist/chunk-ECHPYCZC.mjs +0 -2
- package/dist/chunk-I5QUWH2X.mjs +0 -1
- package/dist/chunk-JOIHCSIR.mjs +0 -31
- package/dist/chunk-LXTXD4UG.mjs +0 -1
- package/dist/chunk-MSGIMOZN.mjs +0 -1
- package/dist/chunk-Q6Q2NBIZ.mjs +0 -1
- package/dist/chunk-X6PWMGYB.mjs +0 -5
- package/dist/chunk-Z2MODMIK.mjs +0 -1
- package/dist/plugins/html.d.ts +0 -9
- package/dist/plugins/html.js +0 -5
- package/dist/plugins/html.mjs +0 -1
- package/dist/plugins/image.d.ts +0 -41
- package/dist/plugins/image.js +0 -1
- package/dist/plugins/image.mjs +0 -1
- package/dist/plugins/list.d.ts +0 -57
- package/dist/plugins/list.js +0 -1
- package/dist/plugins/list.mjs +0 -1
- package/dist/plugins/math.d.ts +0 -11
- package/dist/plugins/math.js +0 -75
- package/dist/plugins/math.mjs +0 -1
- package/dist/plugins/table.d.ts +0 -26
- package/dist/plugins/table.js +0 -1
- package/dist/plugins/table.mjs +0 -1
- package/dist/section.d.ts +0 -26
- package/dist/section.js +0 -2
- package/dist/section.mjs +0 -1
- package/dist/utils.d.ts +0 -113
- package/dist/utils.js +0 -1
- package/dist/utils.mjs +0 -1
package/dist/chunk-X6PWMGYB.mjs
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{f as vu,g as Yu}from"./chunk-MSGIMOZN.mjs";import{c as Ke}from"./chunk-I5QUWH2X.mjs";var qu=typeof self=="object"?self:globalThis,sa=(e,t)=>{let u=(a,s)=>(e.set(s,a),a),r=a=>{if(e.has(a))return e.get(a);let[s,c]=t[a];switch(s){case 0:case-1:return u(c,a);case 1:{let d=u([],a);for(let f of c)d.push(r(f));return d}case 2:{let d=u({},a);for(let[f,m]of c)d[r(f)]=r(m);return d}case 3:return u(new Date(c),a);case 4:{let{source:d,flags:f}=c;return u(new RegExp(d,f),a)}case 5:{let d=u(new Map,a);for(let[f,m]of c)d.set(r(f),r(m));return d}case 6:{let d=u(new Set,a);for(let f of c)d.add(r(f));return d}case 7:{let{name:d,message:f}=c;return u(new qu[d](f),a)}case 8:return u(BigInt(c),a);case"BigInt":return u(Object(BigInt(c)),a);case"ArrayBuffer":return u(new Uint8Array(c).buffer,c);case"DataView":{let{buffer:d}=new Uint8Array(c);return u(new DataView(d),c)}}return u(new qu[s](c),a)};return r},Mt=e=>sa(new Map,e)(0);var fe="",{toString:ia}={},{keys:oa}=Object,Ne=e=>{let t=typeof e;if(t!=="object"||!e)return[0,t];let u=ia.call(e).slice(8,-1);switch(u){case"Array":return[1,fe];case"Object":return[2,fe];case"Date":return[3,fe];case"RegExp":return[4,fe];case"Map":return[5,fe];case"Set":return[6,fe];case"DataView":return[1,u]}return u.includes("Array")?[1,u]:u.includes("Error")?[7,u]:[2,u]},je=([e,t])=>e===0&&(t==="function"||t==="symbol"),ca=(e,t,u,r)=>{let a=(c,d)=>{let f=r.push(c)-1;return u.set(d,f),f},s=c=>{if(u.has(c))return u.get(c);let[d,f]=Ne(c);switch(d){case 0:{let A=c;switch(f){case"bigint":d=8,A=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);A=null;break;case"undefined":return a([-1],c)}return a([d,A],c)}case 1:{if(f){let S=c;return f==="DataView"?S=new Uint8Array(c.buffer):f==="ArrayBuffer"&&(S=new Uint8Array(c)),a([f,[...S]],c)}let A=[],_=a([d,A],c);for(let S of c)A.push(s(S));return _}case 2:{if(f)switch(f){case"BigInt":return a([f,c.toString()],c);case"Boolean":case"Number":case"String":return a([f,c.valueOf()],c)}if(t&&"toJSON"in c)return s(c.toJSON());let A=[],_=a([d,A],c);for(let S of oa(c))(e||!je(Ne(c[S])))&&A.push([s(S),s(c[S])]);return _}case 3:return a([d,c.toISOString()],c);case 4:{let{source:A,flags:_}=c;return a([d,{source:A,flags:_}],c)}case 5:{let A=[],_=a([d,A],c);for(let[S,O]of c)(e||!(je(Ne(S))||je(Ne(O))))&&A.push([s(S),s(O)]);return _}case 6:{let A=[],_=a([d,A],c);for(let S of c)(e||!je(Ne(S)))&&A.push(s(S));return _}}let{message:m}=c;return a([d,{name:f,message:m}],c)};return s},kt=(e,{json:t,lossy:u}={})=>{let r=[];return ca(!(t||u),!!t,new Map,r)(e),r};var Je=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Mt(kt(e,t)):structuredClone(e):(e,t)=>Mt(kt(e,t));var Ce=function(e,t,u,r,a){let s=Y(t);if(u!=null&&(typeof u!="number"||u<0||u===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite `index`");if(r!=null&&(!r.type||!r.children))throw new Error("Expected valid `parent`");if(u==null!=(r==null))throw new Error("Expected both `index` and `parent`");return Vu(e)?s.call(a,e,u,r):!1},Y=function(e){if(e==null)return fa;if(typeof e=="string")return da(e);if(typeof e=="object")return la(e);if(typeof e=="function")return Bt(e);throw new Error("Expected function, string, or array as `test`")};function la(e){let t=[],u=-1;for(;++u<e.length;)t[u]=Y(e[u]);return Bt(r);function r(...a){let s=-1;for(;++s<t.length;)if(t[s].apply(this,a))return!0;return!1}}function da(e){return Bt(t);function t(u){return u.tagName===e}}function Bt(e){return t;function t(u,r,a){return!!(Vu(u)&&e.call(this,u,typeof r=="number"?r:void 0,a||void 0))}}function fa(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Vu(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}var Ie=Y(function(e){return e.tagName==="audio"||e.tagName==="canvas"||e.tagName==="embed"||e.tagName==="iframe"||e.tagName==="img"||e.tagName==="math"||e.tagName==="object"||e.tagName==="picture"||e.tagName==="svg"||e.tagName==="video"});var ha=/[ \t\n\f\r]/g;function Se(e){return typeof e=="object"?e.type==="text"?Ku(e.value):!1:Ku(e)}function Ku(e){return e.replace(ha,"")===""}var J=function(e){if(e==null)return Ta;if(typeof e=="function")return $e(e);if(typeof e=="object")return Array.isArray(e)?Ea(e):ma(e);if(typeof e=="string")return pa(e);throw new Error("Expected function, string, or object as test")};function Ea(e){let t=[],u=-1;for(;++u<e.length;)t[u]=J(e[u]);return $e(r);function r(...a){let s=-1;for(;++s<t.length;)if(t[s].apply(this,a))return!0;return!1}}function ma(e){let t=e;return $e(u);function u(r){let a=r,s;for(s in e)if(a[s]!==t[s])return!1;return!0}}function pa(e){return $e(t);function t(u){return u&&u.type===e}}function $e(e){return t;function t(u,r,a){return!!(ba(u)&&e.call(this,u,typeof r=="number"?r:void 0,a||void 0))}}function Ta(){return!0}function ba(e){return e!==null&&typeof e=="object"&&"type"in e}var zu=["address","article","aside","blockquote","body","br","caption","center","col","colgroup","dd","dialog","dir","div","dl","dt","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","legend","li","li","listing","main","menu","nav","ol","optgroup","option","p","plaintext","pre","section","summary","table","tbody","td","td","tfoot","th","th","thead","tr","ul","wbr","xmp"];var ju=["button","input","select","textarea"];var Ju=["area","base","basefont","dialog","datalist","head","link","meta","noembed","noframes","param","rp","script","source","style","template","track","title"];var Aa={},Ut=J(["comment","doctype"]);function Ht(e,t){Zu(e,{collapse:Oa((t||Aa).newlines?Ia:Sa),whitespace:"normal"})}function Zu(e,t){if("children"in e){let u={...t};return(e.type==="root"||un(e))&&(u.before=!0,u.after=!0),u.whitespace=La(e,t),ga(e,u)}if(e.type==="text"){if(t.whitespace==="normal")return _a(e,t);t.whitespace==="nowrap"&&(e.value=t.collapse(e.value))}return{ignore:Ut(e),stripAtStart:!1,remove:!1}}function _a(e,t){let u=t.collapse(e.value),r={ignore:!1,stripAtStart:!1,remove:!1},a=0,s=u.length;return t.before&&$u(u.charAt(0))&&a++,a!==s&&$u(u.charAt(s-1))&&(t.after?s--:r.stripAtStart=!0),a===s?r.remove=!0:e.value=u.slice(a,s),r}function ga(e,t){let u=t.before,r=t.after,a=e.children,s=a.length,c=-1;for(;++c<s;){let d=Zu(a[c],{...t,after:en(a,c,r),before:u});d.remove?(a.splice(c,1),c--,s--):d.ignore||(u=d.stripAtStart),tn(a[c])&&(u=!1)}return{ignore:!1,stripAtStart:!!(u||r),remove:!1}}function en(e,t,u){for(;++t<e.length;){let r=e[t],a=Na(r);if(a===void 0&&"children"in r&&!Ca(r)&&(a=en(r.children,-1)),typeof a=="boolean")return a}return u}function Na(e){if(e.type==="element"){if(tn(e))return!1;if(un(e))return!0}else if(e.type==="text"){if(!Se(e))return!1}else if(!Ut(e))return!1}function tn(e){return Ie(e)||Ce(e,ju)}function un(e){return Ce(e,zu)}function Ca(e){return!!(e.type==="element"&&e.properties.hidden)||Ut(e)||Ce(e,Ju)}function $u(e){return e===" "||e===`
|
|
2
|
-
`}function Ia(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function Sa(){return" "}function Oa(e){return t;function t(u){return String(u).replace(/[\t\n\v\f\r ]+/g,e)}}function La(e,t){if("tagName"in e&&e.properties)switch(e.tagName){case"listing":case"plaintext":case"script":case"style":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return e.properties.wrap?"pre-wrap":"pre";case"td":case"th":return e.properties.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap";default:}return t.whitespace}function Ze(e){return function(t){Ht(t,e)}}function nn(e){return"\x1B[33m"+e+"\x1B[39m"}var rn=[],et=!0,ie=!1,he="skip";function Ft(e,t,u,r){let a;typeof t=="function"&&typeof u!="function"?(r=u,u=t):a=t;let s=J(a),c=r?-1:1;d(e,void 0,[])();function d(f,m,A){let _=f&&typeof f=="object"?f:{};if(typeof _.type=="string"){let O=typeof _.tagName=="string"?_.tagName:typeof _.name=="string"?_.name:void 0;Object.defineProperty(S,"name",{value:"node ("+nn(f.type+(O?"<"+O+">":""))+")"})}return S;function S(){let O=rn,y,R,Q;if((!t||s(f,m,A[A.length-1]||void 0))&&(O=xa(u(f,A)),O[0]===ie))return O;if("children"in f&&f.children){let k=f;if(k.children&&O[0]!==he)for(R=(r?k.children.length:-1)+c,Q=A.concat(k);R>-1&&R<k.children.length;){let Dt=k.children[R];if(y=d(Dt,R,Q)(),y[0]===ie)return y;R=typeof y[1]=="number"?y[1]:R+c}}return O}}}function xa(e){return Array.isArray(e)?e:typeof e=="number"?[et,e]:e==null?rn:[e]}function ue(e,t,u,r){let a,s,c;typeof t=="function"&&typeof u!="function"?(s=void 0,c=t,a=u):(s=t,c=u,a=r),Ft(e,s,d,a);function d(f,m){let A=m[m.length-1],_=A?A.children.indexOf(f):void 0;return c(f,_,A)}}var an=on("end"),sn=on("start");function on(e){return t;function t(u){let r=u&&u.position&&u.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function wt(e){let t=sn(e),u=an(e);if(t&&u)return{start:t,end:u}}function cn(e,t){let u=t.properties||{},r=e.all(t),a={type:"link",url:e.resolve(String(u.href||"")||null),title:u.title?String(u.title):null,children:r};return e.patch(t,a),a}function ln(e,t){e.baseFound||(e.frozenBaseUrl=String(t.properties&&t.properties.href||"")||void 0,e.baseFound=!0)}function dn(e,t){let u={type:"blockquote",children:e.toFlow(e.all(t))};return e.patch(t,u),u}function fn(e,t){let u={type:"break"};return e.patch(t,u),u}var tt=function(e,t,u){let r=J(u);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]};var hn=/\n/g,En=/[\t ]+/g,vt=Y("br"),mn=Y(Ba),Ra=Y("p"),pn=Y("tr"),Da=Y(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",ka,Ua]),Tn=Y(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function X(e,t){let u=t||{},r="children"in e?e.children:[],a=Tn(e),s=_n(e,{whitespace:u.whitespace||"normal",breakBefore:!1,breakAfter:!1}),c=[];(e.type==="text"||e.type==="comment")&&c.push(...An(e,{whitespace:s,breakBefore:!0,breakAfter:!0}));let d=-1;for(;++d<r.length;)c.push(...bn(r[d],e,{whitespace:s,breakBefore:d?void 0:a,breakAfter:d<r.length-1?vt(r[d+1]):a}));let f=[],m;for(d=-1;++d<c.length;){let A=c[d];typeof A=="number"?m!==void 0&&A>m&&(m=A):A&&(m!==void 0&&m>-1&&f.push(`
|
|
3
|
-
`.repeat(m)||" "),m=-1,f.push(A))}return f.join("")}function bn(e,t,u){return e.type==="element"?ya(e,t,u):e.type==="text"?u.whitespace==="normal"?An(e,u):Pa(e):[]}function ya(e,t,u){let r=_n(e,u),a=e.children||[],s=-1,c=[];if(Da(e))return c;let d,f;for(vt(e)||pn(e)&&tt(t,e,pn)?f=`
|
|
4
|
-
`:Ra(e)?(d=2,f=2):Tn(e)&&(d=1,f=1);++s<a.length;)c=c.concat(bn(a[s],e,{whitespace:r,breakBefore:s?void 0:d,breakAfter:s<a.length-1?vt(a[s+1]):f}));return mn(e)&&tt(t,e,mn)&&c.push(" "),d&&c.unshift(d),f&&c.push(f),c}function An(e,t){let u=String(e.value),r=[],a=[],s=0;for(;s<=u.length;){hn.lastIndex=s;let f=hn.exec(u),m=f&&"index"in f?f.index:u.length;r.push(Ma(u.slice(s,m).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),s===0?t.breakBefore:!0,m===u.length?t.breakAfter:!0)),s=m+1}let c=-1,d;for(;++c<r.length;)r[c].charCodeAt(r[c].length-1)===8203||c<r.length-1&&r[c+1].charCodeAt(0)===8203?(a.push(r[c]),d=void 0):r[c]?(typeof d=="number"&&a.push(d),a.push(r[c]),d=0):(c===0||c===r.length-1)&&a.push(0);return a}function Pa(e){return[String(e.value)]}function Ma(e,t,u){let r=[],a=0,s;for(;a<e.length;){En.lastIndex=a;let c=En.exec(e);s=c?c.index:e.length,!a&&!s&&c&&!t&&r.push(""),a!==s&&r.push(e.slice(a,s)),a=c?s+c[0].length:s}return a!==s&&!u&&r.push(""),r.join(" ")}function _n(e,t){if(e.type==="element"){let u=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return u.wrap?"pre-wrap":"pre";case"td":case"th":return u.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap";default:}}return t.whitespace}function ka(e){return!!(e.properties||{}).hidden}function Ba(e){return e.tagName==="td"||e.tagName==="th"}function Ua(e){return e.tagName==="dialog"&&!(e.properties||{}).open}function gn(e){let t=String(e),u=t.length;for(;u>0;){let r=t.codePointAt(u-1);if(r!==void 0&&(r===10||r===13))u--;else break}return t.slice(0,u)}var Yt="language-";function Oe(e,t){let u=t.children,r=-1,a,s;if(t.tagName==="pre")for(;++r<u.length;){let d=u[r];if(d.type==="element"&&d.tagName==="code"&&d.properties&&d.properties.className&&Array.isArray(d.properties.className)){a=d.properties.className;break}}if(a){for(r=-1;++r<a.length;)if(String(a[r]).slice(0,Yt.length)===Yt){s=String(a[r]).slice(Yt.length);break}}let c={type:"code",lang:s||null,meta:null,value:gn(X(t))};return e.patch(t,c),c}function Nn(e,t){let u={type:"html",value:"<!--"+t.value+"-->"};return e.patch(t,u),u}function ut(e,t){let r={type:"delete",children:e.all(t)};return e.patch(t,r),r}function Le(e){let t=-1;if(e.length>1){for(;++t<e.length;)if(e[t].spread)return!0}return!1}function In(e,t){let u=[],r=[],a=-1;for(;++a<t.children.length;){let d=t.children[a];d.type==="element"&&d.tagName==="div"?u.push(...d.children):u.push(d)}let s={definitions:[],titles:[]};for(a=-1;++a<u.length;){let d=u[a];if(d.type==="element"&&d.tagName==="dt"){let f=u[a-1];f&&f.type==="element"&&f.tagName==="dd"&&(r.push(s),s={definitions:[],titles:[]}),s.titles.push(d)}else s.definitions.push(d)}r.push(s),a=-1;let c=[];for(;++a<r.length;){let d=[...Cn(e,r[a].titles),...Cn(e,r[a].definitions)];d.length>0&&c.push({type:"listItem",spread:d.length>1,checked:null,children:d})}if(c.length>0){let d={type:"list",ordered:!1,start:null,spread:Le(c),children:c};return e.patch(t,d),d}}function Cn(e,t){let u=e.all({type:"root",children:t}),r=e.toSpecificContent(u,Ha);return r.length===0?[]:r.length===1?r[0].children:[{type:"list",ordered:!1,start:null,spread:Le(r),children:r}]}function Ha(){return{type:"listItem",spread:!1,checked:null,children:[]}}function xe(e,t){let r={type:"emphasis",children:e.all(t)};return e.patch(t,r),r}function Ee(e){let t=0,u=e.length;for(;t<u&&e[t].type==="break";)t++;for(;u>t&&e[u-1].type==="break";)u--;return t===0&&u===e.length?e:e.slice(t,u)}function oe(e,t){let u=Number(t.tagName.charAt(1))||1,r=Ee(e.all(t)),a={type:"heading",depth:u,children:r};return e.patch(t,a),a}function Sn(e,t){let u={type:"thematicBreak"};return e.patch(t,u),u}function On(e,t){let u=t.properties||{},r=String(u.src||""),a=String(u.title||"");if(r&&a){let s={type:"link",title:null,url:e.resolve(r),children:[{type:"text",value:a}]};return e.patch(t,s),s}}function qt(e,t){let u=t.properties||{},r={type:"image",url:e.resolve(String(u.src||"")||null),title:u.title?String(u.title):null,alt:u.alt?String(u.alt):""};return e.patch(t,r),r}function me(e,t){let u={type:"inlineCode",value:X(t)};return e.patch(t,u),u}function nt(e,t){let u=[],r=[],a=t||e.properties||{},s=Ln(e),c=Math.min(Number.parseInt(String(a.size),10),0)||(a.multiple?4:1),d=-1;for(;++d<s.length;){let A=s[d];A&&A.properties&&A.properties.selected&&u.push(A)}let f=u.length>0?u:s,m=Math.min(f.length,c);for(d=-1;++d<m;){let A=f[d],_=A.properties||{},S=X(A),O=S||String(_.label||""),y=String(_.value||"")||S;r.push([y,O===y?void 0:O])}return r}function Ln(e){let t=[],u=-1;for(;++u<e.children.length;){let r=e.children[u];"children"in r&&Array.isArray(r.children)&&t.push(...Ln(r)),r.type==="element"&&r.tagName==="option"&&(!r.properties||!r.properties.disabled)&&t.push(r)}return t}var Fa="[x]",wa="[ ]";function xn(e,t){let u=t.properties||{},r=String(u.value||u.placeholder||"");if(u.disabled||u.type==="hidden"||u.type==="file")return;if(u.type==="checkbox"||u.type==="radio"){let f={type:"text",value:u.checked?e.options.checked||Fa:e.options.unchecked||wa};return e.patch(t,f),f}if(u.type==="image"){let f=u.alt||r;if(f){let m={type:"image",url:e.resolve(String(u.src||"")||null),title:String(u.title||"")||null,alt:String(f)};return e.patch(t,m),m}return}let a=[];if(r)a=[[r,void 0]];else if(u.type!=="button"&&u.type!=="file"&&u.type!=="password"&&u.type!=="reset"&&u.type!=="submit"&&u.list){let f=String(u.list),m=e.elementById.get(f);m&&m.tagName==="datalist"&&(a=nt(m,u))}if(a.length===0)return;if(u.type==="password"&&(a[0]=["\u2022".repeat(a[0][0].length),void 0]),u.type==="email"||u.type==="url"){let f=[],m=-1;for(;++m<a.length;){let A=e.resolve(a[m][0]),_={type:"link",title:null,url:u.type==="email"?"mailto:"+A:A,children:[{type:"text",value:a[m][1]||A}]};f.push(_),m!==a.length-1&&f.push({type:"text",value:", "})}return f}let s=[],c=-1;for(;++c<a.length;)s.push(a[c][1]?a[c][1]+" ("+a[c][0]+")":a[c][0]);let d={type:"text",value:s.join(", ")};return e.patch(t,d),d}var va={}.hasOwnProperty;function Wt(e,t){let u=e.type==="element"&&va.call(e.properties,t)&&e.properties[t];return u!=null&&u!==!1}var Ya=new Set(["pingback","prefetch","stylesheet"]);function Qt(e){if(e.type!=="element"||e.tagName!=="link")return!1;if(e.properties.itemProp)return!0;let t=e.properties.rel,u=-1;if(!Array.isArray(t)||t.length===0)return!1;for(;++u<t.length;)if(!Ya.has(String(t[u])))return!1;return!0}var qa=Y(["a","abbr","area","b","bdi","bdo","br","button","cite","code","data","datalist","del","dfn","em","i","input","ins","kbd","keygen","label","map","mark","meter","noscript","output","progress","q","ruby","s","samp","script","select","small","span","strong","sub","sup","template","textarea","time","u","var","wbr"]),Wa=Y("meta");function Re(e){return!!(e.type==="text"||qa(e)||Ie(e)||Qt(e)||Wa(e)&&Wt(e,"itemProp"))}function rt(e,t){let{rest:u,checkbox:r}=Dn(t),a=r?!!r.properties.checked:null,s=Rn(u),c=e.toFlow(e.all(u)),d={type:"listItem",spread:s,checked:a,children:c};return e.patch(t,d),d}function Rn(e){let t=-1,u=!1;for(;++t<e.children.length;){let r=e.children[t];if(r.type==="element"){if(Re(r))continue;if(r.tagName==="p"||u||Rn(r))return!0;u=!0}}return!1}function Dn(e){let t=e.children[0];if(t&&t.type==="element"&&t.tagName==="input"&&t.properties&&(t.properties.type==="checkbox"||t.properties.type==="radio")){let u={...e,children:e.children.slice(1)};return{checkbox:t,rest:u}}if(t&&t.type==="element"&&t.tagName==="p"){let{checkbox:u,rest:r}=Dn(t);if(u){let a={...e,children:[r,...e.children.slice(1)]};return{checkbox:u,rest:a}}}return{checkbox:void 0,rest:e}}function at(e,t){let u=t.tagName==="ol",r=e.toSpecificContent(e.all(t),Qa),a=null;u&&(a=t.properties&&t.properties.start?Number.parseInt(String(t.properties.start),10):1);let s={type:"list",ordered:u,start:a,spread:Le(r),children:r};return e.patch(t,s),s}function Qa(){return{type:"listItem",spread:!1,checked:null,children:[]}}var Ga={};function Gt(e,t){let u=t||Ga,r=typeof u.includeImageAlt=="boolean"?u.includeImageAlt:!0,a=typeof u.includeHtml=="boolean"?u.includeHtml:!0;return Pn(e,r,a)}function Pn(e,t,u){if(Xa(e)){if("value"in e)return e.type==="html"&&!u?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return yn(e.children,t,u)}return Array.isArray(e)?yn(e,t,u):""}function yn(e,t,u){let r=[],a=-1;for(;++a<e.length;)r[a]=Pn(e[a],t,u);return r.join("")}function Xa(e){return!!(e&&typeof e=="object")}var Xt=J(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function pe(e){let t=-1;for(;++t<e.length;){let u=e[t];if(!kn(u)||"children"in u&&pe(u.children))return!0}return!1}function st(e){return Mn(e,t,function(u){return u});function t(u){return u.every(function(r){return r.type==="text"?Se(r.value):!1})?[]:[{type:"paragraph",children:Ee(u)}]}}function Va(e){return Mn(e.children,t,u);function t(r){let a=Vt(e);return a.children=r,[a]}function u(r){if("children"in r&&"children"in e){let a=Vt(e),s=Vt(r);return a.children=r.children,s.children.push(a),s}return{...r}}}function Mn(e,t,u){let r=Ka(e),a=[],s=[],c=-1;for(;++c<r.length;){let d=r[c];kn(d)?s.push(d):(s.length>0&&(a.push(...t(s)),s=[]),a.push(u(d)))}return s.length>0&&(a.push(...t(s)),s=[]),a}function Ka(e){let t=[],u=-1;for(;++u<e.length;){let r=e[u];(r.type==="delete"||r.type==="link")&&pe(r.children)?t.push(...Va(r)):t.push(r)}return t}function kn(e){let t=e.data&&e.data.hName;return t?Re({type:"element",tagName:t,properties:{},children:[]}):Xt(e)}function Vt(e){return Je({...e,children:[]})}function Kt(e,t){let u=t.properties||{},r=t.tagName==="video"?String(u.poster||""):"",a=String(u.src||""),s=-1,c=!1,d=e.all(t);if(ue({type:"root",children:d},function(_){if(_.type==="link")return c=!0,ie}),c||pe(d))return d;for(;!a&&++s<t.children.length;){let _=t.children[s];_.type==="element"&&_.tagName==="source"&&_.properties&&(a=String(_.properties.src||""))}if(r){let _={type:"image",title:null,url:e.resolve(r),alt:Gt(d)};e.patch(t,_),d=[_]}let m=d,A={type:"link",title:u.title?String(u.title):null,url:e.resolve(a),children:m};return e.patch(t,A),A}function zt(e,t){let u=Ee(e.all(t));if(u.length>0){let r={type:"paragraph",children:u};return e.patch(t,r),r}}var za=['"'];function Bn(e,t){let u=e.options.quotes||za;e.qNesting++;let r=e.all(t);e.qNesting--;let a=u[e.qNesting%u.length],s=r[0],c=r[r.length-1],d=a.charAt(0),f=a.length>1?a.charAt(1):a;return s&&s.type==="text"?s.value=d+s.value:r.unshift({type:"text",value:d}),c&&c.type==="text"?c.value+=f:r.push({type:"text",value:f}),r}function Un(e,t){let u=e.all(t);(e.options.document||pe(u))&&(u=st(u));let r={type:"root",children:u};return e.patch(t,r),r}function Hn(e,t){let u=nt(t),r=-1,a=[];for(;++r<u.length;){let s=u[r];a.push(s[1]?s[1]+" ("+s[0]+")":s[0])}if(a.length>0){let s={type:"text",value:a.join(", ")};return e.patch(t,s),s}}function jt(e,t){let r={type:"strong",children:e.all(t)};return e.patch(t,r),r}function Jt(e,t){let r={type:"tableCell",children:e.all(t)};if(e.patch(t,r),t.properties){let a=t.properties.rowSpan,s=t.properties.colSpan;if(a||s){let c=r.data||(r.data={});a&&(c.hastUtilToMdastTemporaryRowSpan=a),s&&(c.hastUtilToMdastTemporaryColSpan=s)}}return r}function Fn(e,t){let r={type:"tableRow",children:e.toSpecificContent(e.all(t),ja)};return e.patch(t,r),r}function ja(){return{type:"tableCell",children:[]}}function vn(e,t){if(e.inTable){let m={type:"text",value:X(t)};return e.patch(t,m),m}e.inTable=!0;let{align:u,headless:r}=Ja(t),a=e.toSpecificContent(e.all(t),wn);r&&a.unshift(wn());let s=-1;for(;++s<a.length;){let m=a[s],A=e.toSpecificContent(m.children,$a);m.children=A}let c=1;for(s=-1;++s<a.length;){let m=a[s].children,A=-1;for(;++A<m.length;){let _=m[A];if(_.data){let S=_.data,O=Number.parseInt(String(S.hastUtilToMdastTemporaryColSpan),10)||1,y=Number.parseInt(String(S.hastUtilToMdastTemporaryRowSpan),10)||1;if(O>1||y>1){let R=s-1;for(;++R<s+y;){let Q=A-1;for(;++Q<A+O&&a[R];){let k=[];(R!==s||Q!==A)&&k.push({type:"tableCell",children:[]}),a[R].children.splice(Q,0,...k)}}}"hastUtilToMdastTemporaryColSpan"in _.data&&delete _.data.hastUtilToMdastTemporaryColSpan,"hastUtilToMdastTemporaryRowSpan"in _.data&&delete _.data.hastUtilToMdastTemporaryRowSpan,Object.keys(_.data).length===0&&delete _.data}}m.length>c&&(c=m.length)}for(s=-1;++s<a.length;){let m=a[s].children,A=m.length-1;for(;++A<c;)m.push({type:"tableCell",children:[]})}let d=u.length-1;for(;++d<c;)u.push(null);e.inTable=!1;let f={type:"table",align:u,children:a};return e.patch(t,f),f}function Ja(e){let t={align:[null],headless:!0},u=0,r=0;return ue(e,function(a){if(a.type==="element"){if(a.tagName==="table"&&e!==a)return he;if((a.tagName==="th"||a.tagName==="td")&&a.properties){if(!t.align[r]){let s=String(a.properties.align||"")||null;(s==="center"||s==="left"||s==="right"||s===null)&&(t.align[r]=s)}t.headless&&u<2&&a.tagName==="th"&&(t.headless=!1),r++}else a.tagName==="thead"?t.headless=!1:a.tagName==="tr"&&(u++,r=0)}}),t}function $a(){return{type:"tableCell",children:[]}}function wn(){return{type:"tableRow",children:[]}}function Yn(e,t){let u={type:"text",value:t.value};return e.patch(t,u),u}function qn(e,t){let u={type:"text",value:X(t)};return e.patch(t,u),u}function Wn(e,t){let u={type:"text",value:"\u200B"};return e.patch(t,u),u}var Qn={comment:Nn,doctype:C,root:Un,text:Yn},Gn={applet:C,area:C,basefont:C,bgsound:C,caption:C,col:C,colgroup:C,command:C,content:C,datalist:C,dialog:C,element:C,embed:C,frame:C,frameset:C,isindex:C,keygen:C,link:C,math:C,menu:C,menuitem:C,meta:C,nextid:C,noembed:C,noframes:C,optgroup:C,option:C,param:C,script:C,shadow:C,source:C,spacer:C,style:C,svg:C,template:C,title:C,track:C,abbr:N,acronym:N,bdi:N,bdo:N,big:N,blink:N,button:N,canvas:N,cite:N,data:N,details:N,dfn:N,font:N,ins:N,label:N,map:N,marquee:N,meter:N,nobr:N,noscript:N,object:N,output:N,progress:N,rb:N,rbc:N,rp:N,rt:N,rtc:N,ruby:N,slot:N,small:N,span:N,sup:N,sub:N,tbody:N,tfoot:N,thead:N,time:N,address:P,article:P,aside:P,body:P,center:P,div:P,fieldset:P,figcaption:P,figure:P,form:P,footer:P,header:P,hgroup:P,html:P,legend:P,main:P,multicol:P,nav:P,picture:P,section:P,a:cn,audio:Kt,b:jt,base:ln,blockquote:dn,br:fn,code:me,dir:at,dl:In,dt:rt,dd:rt,del:ut,em:xe,h1:oe,h2:oe,h3:oe,h4:oe,h5:oe,h6:oe,hr:Sn,i:xe,iframe:On,img:qt,image:qt,input:xn,kbd:me,li:rt,listing:Oe,mark:xe,ol:at,p:zt,plaintext:Oe,pre:Oe,q:Bn,s:ut,samp:me,select:Hn,strike:ut,strong:jt,summary:zt,table:vn,td:Jt,textarea:qn,th:Jt,tr:Fn,tt:me,u:xe,ul:at,var:me,video:Kt,wbr:Wn,xmp:Oe};function N(e,t){return e.all(t)}function P(e,t){return e.toFlow(e.all(t))}function C(){}var Xn={}.hasOwnProperty;function Vn(e){return{all:Za,baseFound:!1,elementById:new Map,frozenBaseUrl:void 0,handlers:{...Gn,...e.handlers},inTable:!1,nodeHandlers:{...Qn,...e.nodeHandlers},one:es,options:e,patch:ts,qNesting:0,resolve:us,toFlow:ns,toSpecificContent:rs}}function Za(e){let t=e.children||[],u=[],r=-1;for(;++r<t.length;){let a=t[r],s=this.one(a,e);Array.isArray(s)?u.push(...s):s&&u.push(s)}return u}function es(e,t){if(e.type==="element"){if(e.properties&&e.properties.dataMdast==="ignore")return;if(Xn.call(this.handlers,e.tagName))return this.handlers[e.tagName](this,e,t)||void 0}else if(Xn.call(this.nodeHandlers,e.type))return this.nodeHandlers[e.type](this,e,t)||void 0;if("value"in e&&typeof e.value=="string"){let u={type:"text",value:e.value};return this.patch(e,u),u}if("children"in e)return this.all(e)}function ts(e,t){e.position&&(t.position=wt(e))}function us(e){let t=this.frozenBaseUrl;return e==null?"":t?String(new URL(e,t)):e}function ns(e){return st(e)}function rs(e,t){let u=t(),r=[],a=[],s=-1;for(;++s<e.length;){let d=e[s];if(c(d))a.length>0&&(d.children.unshift(...a),a=[]),r.push(d);else{let f=d;a.push(f)}}if(a.length>0){let d=r[r.length-1];d||(d=t(),r.push(d)),d.children.push(...a),a=[]}return r;function c(d){return d.type===u.type}}var as={};function $t(e,t){let u=Je(e),r=t||as,a=Ze({newlines:r.newlines===!0}),s=Vn(r),c;a(u),ue(u,function(f){if(f&&f.type==="element"&&f.properties){let m=String(f.properties.id||"")||void 0;m&&!s.elementById.has(m)&&s.elementById.set(m,f)}});let d=s.one(u,void 0);return d?Array.isArray(d)?c={type:"root",children:d}:c=d:c={type:"root",children:[]},ue(c,function(f,m,A){if(f.type==="text"&&m!==void 0&&A){let _=A.children[m-1];if(_&&_.type===f.type)return _.value+=f.value,A.children.splice(m,1),_.position&&f.position&&(_.position.end=f.position.end),m-1;if(f.value=f.value.replace(/[\t ]*(\r?\n|\r)[\t ]*/,"$1"),A&&(A.type==="heading"||A.type==="paragraph"||A.type==="root")&&(m||(f.value=f.value.replace(/^[\t ]+/,"")),m===A.children.length-1&&(f.value=f.value.replace(/[\t ]+$/,""))),!f.value)return A.children.splice(m,1),m}}),c}var ee=class{constructor(t,u,r){this.normal=u,this.property=t,r&&(this.space=r)}};ee.prototype.normal={};ee.prototype.property={};ee.prototype.space=void 0;function Zt(e,t){let u={},r={};for(let a of e)Object.assign(u,a.property),Object.assign(r,a.normal);return new ee(u,r,t)}function te(e){return e.toLowerCase()}var B=class{constructor(t,u){this.attribute=u,this.property=t}};B.prototype.attribute="";B.prototype.booleanish=!1;B.prototype.boolean=!1;B.prototype.commaOrSpaceSeparated=!1;B.prototype.commaSeparated=!1;B.prototype.defined=!1;B.prototype.mustUseProperty=!1;B.prototype.number=!1;B.prototype.overloadedBoolean=!1;B.prototype.property="";B.prototype.spaceSeparated=!1;B.prototype.space=void 0;var De={};Ke(De,{boolean:()=>g,booleanish:()=>D,commaOrSpaceSeparated:()=>W,commaSeparated:()=>ne,number:()=>b,overloadedBoolean:()=>eu,spaceSeparated:()=>L});var ss=0,g=ce(),D=ce(),eu=ce(),b=ce(),L=ce(),ne=ce(),W=ce();function ce(){return 2**++ss}var tu=Object.keys(De),le=class extends B{constructor(t,u,r,a){let s=-1;if(super(t,u),Kn(this,"space",a),typeof r=="number")for(;++s<tu.length;){let c=tu[s];Kn(this,tu[s],(r&De[c])===De[c])}}};le.prototype.defined=!0;function Kn(e,t,u){u&&(e[t]=u)}function G(e){let t={},u={};for(let[r,a]of Object.entries(e.properties)){let s=new le(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,u[te(r)]=r,u[te(s.attribute)]=r}return new ee(t,u,e.space)}var uu=G({properties:{ariaActiveDescendant:null,ariaAtomic:D,ariaAutoComplete:null,ariaBusy:D,ariaChecked:D,ariaColCount:b,ariaColIndex:b,ariaColSpan:b,ariaControls:L,ariaCurrent:null,ariaDescribedBy:L,ariaDetails:null,ariaDisabled:D,ariaDropEffect:L,ariaErrorMessage:null,ariaExpanded:D,ariaFlowTo:L,ariaGrabbed:D,ariaHasPopup:null,ariaHidden:D,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:L,ariaLevel:b,ariaLive:null,ariaModal:D,ariaMultiLine:D,ariaMultiSelectable:D,ariaOrientation:null,ariaOwns:L,ariaPlaceholder:null,ariaPosInSet:b,ariaPressed:D,ariaReadOnly:D,ariaRelevant:null,ariaRequired:D,ariaRoleDescription:L,ariaRowCount:b,ariaRowIndex:b,ariaRowSpan:b,ariaSelected:D,ariaSetSize:b,ariaSort:null,ariaValueMax:b,ariaValueMin:b,ariaValueNow:b,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function it(e,t){return t in e?e[t]:t}function ot(e,t){return it(e,t.toLowerCase())}var zn=G({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ne,acceptCharset:L,accessKey:L,action:null,allow:null,allowFullScreen:g,allowPaymentRequest:g,allowUserMedia:g,alt:null,as:null,async:g,autoCapitalize:null,autoComplete:L,autoFocus:g,autoPlay:g,blocking:L,capture:null,charSet:null,checked:g,cite:null,className:L,cols:b,colSpan:null,content:null,contentEditable:D,controls:g,controlsList:L,coords:b|ne,crossOrigin:null,data:null,dateTime:null,decoding:null,default:g,defer:g,dir:null,dirName:null,disabled:g,download:eu,draggable:D,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:g,formTarget:null,headers:L,height:b,hidden:g,high:b,href:null,hrefLang:null,htmlFor:L,httpEquiv:L,id:null,imageSizes:null,imageSrcSet:null,inert:g,inputMode:null,integrity:null,is:null,isMap:g,itemId:null,itemProp:L,itemRef:L,itemScope:g,itemType:L,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:g,low:b,manifest:null,max:null,maxLength:b,media:null,method:null,min:null,minLength:b,multiple:g,muted:g,name:null,nonce:null,noModule:g,noValidate:g,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:g,optimum:b,pattern:null,ping:L,placeholder:null,playsInline:g,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:g,referrerPolicy:null,rel:L,required:g,reversed:g,rows:b,rowSpan:b,sandbox:L,scope:null,scoped:g,seamless:g,selected:g,shadowRootClonable:g,shadowRootDelegatesFocus:g,shadowRootMode:null,shape:null,size:b,sizes:null,slot:null,span:b,spellCheck:D,src:null,srcDoc:null,srcLang:null,srcSet:null,start:b,step:null,style:null,tabIndex:b,target:null,title:null,translate:null,type:null,typeMustMatch:g,useMap:null,value:D,width:b,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:L,axis:null,background:null,bgColor:null,border:b,borderColor:null,bottomMargin:b,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:g,declare:g,event:null,face:null,frame:null,frameBorder:null,hSpace:b,leftMargin:b,link:null,longDesc:null,lowSrc:null,marginHeight:b,marginWidth:b,noResize:g,noHref:g,noShade:g,noWrap:g,object:null,profile:null,prompt:null,rev:null,rightMargin:b,rules:null,scheme:null,scrolling:D,standby:null,summary:null,text:null,topMargin:b,valueType:null,version:null,vAlign:null,vLink:null,vSpace:b,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:g,disableRemotePlayback:g,prefix:null,property:null,results:b,security:null,unselectable:null},space:"html",transform:ot});var jn=G({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:W,accentHeight:b,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:b,amplitude:b,arabicForm:null,ascent:b,attributeName:null,attributeType:null,azimuth:b,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:b,by:null,calcMode:null,capHeight:b,className:L,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:b,diffuseConstant:b,direction:null,display:null,dur:null,divisor:b,dominantBaseline:null,download:g,dx:null,dy:null,edgeMode:null,editable:null,elevation:b,enableBackground:null,end:null,event:null,exponent:b,externalResourcesRequired:null,fill:null,fillOpacity:b,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ne,g2:ne,glyphName:ne,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:b,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:b,horizOriginX:b,horizOriginY:b,id:null,ideographic:b,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:b,k:b,k1:b,k2:b,k3:b,k4:b,kernelMatrix:W,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:b,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:b,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:b,overlineThickness:b,paintOrder:null,panose1:null,path:null,pathLength:b,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:L,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:b,pointsAtY:b,pointsAtZ:b,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:W,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:W,rev:W,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:W,requiredFeatures:W,requiredFonts:W,requiredFormats:W,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:b,specularExponent:b,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:b,strikethroughThickness:b,string:null,stroke:null,strokeDashArray:W,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:b,strokeOpacity:b,strokeWidth:null,style:null,surfaceScale:b,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:W,tabIndex:b,tableValues:null,target:null,targetX:b,targetY:b,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:W,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:b,underlineThickness:b,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:b,values:null,vAlphabetic:b,vMathematical:b,vectorEffect:null,vHanging:b,vIdeographic:b,version:null,vertAdvY:b,vertOriginX:b,vertOriginY:b,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:b,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:it});var nu=G({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}});var ru=G({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ot});var au=G({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}});var is=/[A-Z]/g,Jn=/-[a-z]/g,os=/^data[-\w.:]+$/i;function ye(e,t){let u=te(t),r=t,a=B;if(u in e.normal)return e.property[e.normal[u]];if(u.length>4&&u.slice(0,4)==="data"&&os.test(t)){if(t.charAt(4)==="-"){let s=t.slice(5).replace(Jn,ls);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{let s=t.slice(4);if(!Jn.test(s)){let c=s.replace(is,cs);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}a=le}return new a(r,t)}function cs(e){return"-"+e.toLowerCase()}function ls(e){return e.charAt(1).toUpperCase()}var Pe=Zt([uu,zn,nu,ru,au],"html"),Me=Zt([uu,jn,nu,ru,au],"svg");function su(e){let t=[],u=String(e||""),r=u.indexOf(","),a=0,s=!1;for(;!s;){r===-1&&(r=u.length,s=!0);let c=u.slice(a,r).trim();(c||!s)&&t.push(c),a=r+1,r=u.indexOf(",",a)}return t}var $n=/[#.]/g;function iu(e,t){let u=e||"",r={},a=0,s,c;for(;a<u.length;){$n.lastIndex=a;let d=$n.exec(u),f=u.slice(a,d?d.index:u.length);f&&(s?s==="#"?r.id=f:Array.isArray(r.className)?r.className.push(f):r.className=[f]:c=f,a+=f.length),d&&(s=d[0],a++)}return{type:"element",tagName:c||t||"div",properties:r,children:[]}}function ou(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function lu(e,t,u){let r=u?Es(u):void 0;function a(s,c,...d){let f;if(s==null){f={type:"root",children:[]};let m=c;d.unshift(m)}else{f=iu(s,t);let m=f.tagName.toLowerCase(),A=r?r.get(m):void 0;if(f.tagName=A||m,ds(c))d.unshift(c);else for(let[_,S]of Object.entries(c))fs(e,f.properties,_,S)}for(let m of d)cu(f.children,m);return f.type==="element"&&f.tagName==="template"&&(f.content={type:"root",children:f.children},f.children=[]),f}return a}function ds(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;let t=e,u=Object.keys(e);for(let r of u){let a=t[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;let s=a;for(let c of s)if(typeof c!="number"&&typeof c!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function fs(e,t,u,r){let a=ye(e,u),s;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;s=r}else typeof r=="boolean"?s=r:typeof r=="string"?a.spaceSeparated?s=ou(r):a.commaSeparated?s=su(r):a.commaOrSpaceSeparated?s=ou(su(r).join(" ")):s=Zn(a,a.property,r):Array.isArray(r)?s=[...r]:s=a.property==="style"?hs(r):String(r);if(Array.isArray(s)){let c=[];for(let d of s)c.push(Zn(a,a.property,d));s=c}a.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[a.property]=s}}function cu(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(let u of t)cu(e,u);else if(typeof t=="object"&&"type"in t)t.type==="root"?cu(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Zn(e,t,u){if(typeof u=="string"){if(e.number&&u&&!Number.isNaN(Number(u)))return Number(u);if((e.boolean||e.overloadedBoolean)&&(u===""||te(u)===te(t)))return!0}return u}function hs(e){let t=[];for(let[u,r]of Object.entries(e))t.push([u,r].join(": "));return t.join("; ")}function Es(e){let t=new Map;for(let u of e)t.set(u.toLowerCase(),u);return t}var er=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","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","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"];var du=lu(Pe,"div"),fu=lu(Me,"g",er);function hu(e){let t=String(e),u=[];return{toOffset:a,toPoint:r};function r(s){if(typeof s=="number"&&s>-1&&s<=t.length){let c=0;for(;;){let d=u[c];if(d===void 0){let f=tr(t,u[c-1]);d=f===-1?t.length+1:f+1,u[c]=d}if(d>s)return{line:c+1,column:s-(c>0?u[c-1]:0)+1,offset:s};c++}}}function a(s){if(s&&typeof s.line=="number"&&typeof s.column=="number"&&!Number.isNaN(s.line)&&!Number.isNaN(s.column)){for(;u.length<s.line;){let d=u[u.length-1],f=tr(t,d),m=f===-1?t.length+1:f+1;if(d===m)break;u.push(m)}let c=(s.line>1?u[s.line-2]:0)+s.column-1;if(c<u[s.line-1])return c}}}function tr(e,t){let u=e.indexOf("\r",t),r=e.indexOf(`
|
|
5
|
-
`,t);return r===-1?u:u===-1||u+1===r?r:u<r?u:r}var ur={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};var rr={}.hasOwnProperty,ms=Object.prototype;function Eu(e,t){let u=t||{};return mu({file:u.file||void 0,location:!1,schema:u.space==="svg"?Me:Pe,verbose:u.verbose||!1},e)}function mu(e,t){let u;switch(t.nodeName){case"#comment":{let r=t;return u={type:"comment",value:r.data},ct(e,r,u),u}case"#document":case"#document-fragment":{let r=t,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(u={type:"root",children:ar(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){let s=String(e.file),c=hu(s),d=c.toPoint(0),f=c.toPoint(s.length);u.position={start:d,end:f}}return u}case"#documentType":{let r=t;return u={type:"doctype"},ct(e,r,u),u}case"#text":{let r=t;return u={type:"text",value:r.value},ct(e,r,u),u}default:return u=ps(e,t),u}}function ar(e,t){let u=-1,r=[];for(;++u<t.length;){let a=mu(e,t[u]);r.push(a)}return r}function ps(e,t){let u=e.schema;e.schema=t.namespaceURI===ur.svg?Me:Pe;let r=-1,a={};for(;++r<t.attrs.length;){let d=t.attrs[r],f=(d.prefix?d.prefix+":":"")+d.name;rr.call(ms,f)||(a[f]=d.value)}let c=(e.schema.space==="svg"?fu:du)(t.tagName,a,ar(e,t.childNodes));if(ct(e,t,c),c.tagName==="template"){let d=t,f=d.sourceCodeLocation,m=f&&f.startTag&&Te(f.startTag),A=f&&f.endTag&&Te(f.endTag),_=mu(e,d.content);m&&A&&e.file&&(_.position={start:m.end,end:A.start}),c.content=_}return e.schema=u,c}function ct(e,t,u){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){let r=Ts(e,u,t.sourceCodeLocation);r&&(e.location=!0,u.position=r)}}function Ts(e,t,u){let r=Te(u);if(t.type==="element"){let a=t.children[t.children.length-1];if(r&&!u.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){let s={},c;if(u.attrs)for(c in u.attrs)rr.call(u.attrs,c)&&(s[ye(e.schema,c).property]=Te(u.attrs[c]));u.startTag;let d=Te(u.startTag),f=u.endTag?Te(u.endTag):void 0,m={opening:d};f&&(m.closing=f),m.properties=s,t.data={position:m}}}return r}function Te(e){let t=nr({line:e.startLine,column:e.startCol,offset:e.startOffset}),u=nr({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||u?{start:t,end:u}:void 0}function nr(e){return e.line&&e.column?e:void 0}var bs=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),x="\uFFFD",i;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(i||(i={}));var q={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function lt(e){return e>=55296&&e<=57343}function sr(e){return e>=56320&&e<=57343}function ir(e,t){return(e-55296)*1024+9216+t}function dt(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function ft(e){return e>=64976&&e<=65007||bs.has(e)}var E;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(E||(E={}));var _s=65536,ht=class{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=_s,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,u){let{line:r,col:a,offset:s}=this,c=a+u,d=s+u;return{code:t,startLine:r,endLine:r,startCol:c,endCol:c,startOffset:d,endOffset:d}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){let u=this.html.charCodeAt(this.pos+1);if(sr(u))return this.pos++,this._addGap(),ir(t,u)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,i.EOF;return this._err(E.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,u){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=u}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,u){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(u)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){let u=this.pos+t;if(u>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,i.EOF;let r=this.html.charCodeAt(u);return r===i.CARRIAGE_RETURN?i.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,i.EOF;let t=this.html.charCodeAt(this.pos);return t===i.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,i.LINE_FEED):t===i.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,lt(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===i.LINE_FEED||t===i.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){dt(t)?this._err(E.controlCharacterInInputStream):ft(t)&&this._err(E.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}};var pu={};Ke(pu,{TokenType:()=>I,getTokenAttr:()=>ke});var I;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(I||(I={}));function ke(e,t){for(let u=e.attrs.length-1;u>=0;u--)if(e.attrs[u].name===t)return e.attrs[u].value;return null}var Et=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(e=>e.charCodeAt(0)));var or=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(e=>e.charCodeAt(0)));var Tu,gs=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),bu=(Tu=String.fromCodePoint)!==null&&Tu!==void 0?Tu:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Au(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=gs.get(e))!==null&&t!==void 0?t:e}var H;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(H||(H={}));var Ns=32,re;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(re||(re={}));function _u(e){return e>=H.ZERO&&e<=H.NINE}function Cs(e){return e>=H.UPPER_A&&e<=H.UPPER_F||e>=H.LOWER_A&&e<=H.LOWER_F}function Is(e){return e>=H.UPPER_A&&e<=H.UPPER_Z||e>=H.LOWER_A&&e<=H.LOWER_Z||_u(e)}function Ss(e){return e===H.EQUALS||Is(e)}var U;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(U||(U={}));var $;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})($||($={}));var Be=class{constructor(t,u,r){this.decodeTree=t,this.emitCodePoint=u,this.errors=r,this.state=U.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=$.Strict}startEntity(t){this.decodeMode=t,this.state=U.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,u){switch(this.state){case U.EntityStart:return t.charCodeAt(u)===H.NUM?(this.state=U.NumericStart,this.consumed+=1,this.stateNumericStart(t,u+1)):(this.state=U.NamedEntity,this.stateNamedEntity(t,u));case U.NumericStart:return this.stateNumericStart(t,u);case U.NumericDecimal:return this.stateNumericDecimal(t,u);case U.NumericHex:return this.stateNumericHex(t,u);case U.NamedEntity:return this.stateNamedEntity(t,u)}}stateNumericStart(t,u){return u>=t.length?-1:(t.charCodeAt(u)|Ns)===H.LOWER_X?(this.state=U.NumericHex,this.consumed+=1,this.stateNumericHex(t,u+1)):(this.state=U.NumericDecimal,this.stateNumericDecimal(t,u))}addToNumericResult(t,u,r,a){if(u!==r){let s=r-u;this.result=this.result*Math.pow(a,s)+parseInt(t.substr(u,s),a),this.consumed+=s}}stateNumericHex(t,u){let r=u;for(;u<t.length;){let a=t.charCodeAt(u);if(_u(a)||Cs(a))u+=1;else return this.addToNumericResult(t,r,u,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,r,u,16),-1}stateNumericDecimal(t,u){let r=u;for(;u<t.length;){let a=t.charCodeAt(u);if(_u(a))u+=1;else return this.addToNumericResult(t,r,u,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,r,u,10),-1}emitNumericEntity(t,u){var r;if(this.consumed<=u)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===H.SEMI)this.consumed+=1;else if(this.decodeMode===$.Strict)return 0;return this.emitCodePoint(Au(this.result),this.consumed),this.errors&&(t!==H.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,u){let{decodeTree:r}=this,a=r[this.treeIndex],s=(a&re.VALUE_LENGTH)>>14;for(;u<t.length;u++,this.excess++){let c=t.charCodeAt(u);if(this.treeIndex=Os(r,a,this.treeIndex+Math.max(1,s),c),this.treeIndex<0)return this.result===0||this.decodeMode===$.Attribute&&(s===0||Ss(c))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],s=(a&re.VALUE_LENGTH)>>14,s!==0){if(c===H.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==$.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;let{result:u,decodeTree:r}=this,a=(r[u]&re.VALUE_LENGTH)>>14;return this.emitNamedEntityData(u,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,u,r){let{decodeTree:a}=this;return this.emitCodePoint(u===1?a[t]&~re.VALUE_LENGTH:a[t+1],r),u===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case U.NamedEntity:return this.result!==0&&(this.decodeMode!==$.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case U.NumericDecimal:return this.emitNumericEntity(0,2);case U.NumericHex:return this.emitNumericEntity(0,3);case U.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case U.EntityStart:return 0}}};function cr(e){let t="",u=new Be(e,r=>t+=bu(r));return function(a,s){let c=0,d=0;for(;(d=a.indexOf("&",d))>=0;){t+=a.slice(c,d),u.startEntity(s);let m=u.write(a,d+1);if(m<0){c=d+u.end();break}c=d+m,d=m===0?c+1:c}let f=t+a.slice(c);return t="",f}}function Os(e,t,u,r){let a=(t&re.BRANCH_LENGTH)>>7,s=t&re.JUMP_TABLE;if(a===0)return s!==0&&r===s?u:-1;if(s){let f=r-s;return f<0||f>=a?-1:e[u+f]-1}let c=u,d=c+a-1;for(;c<=d;){let f=c+d>>>1,m=e[f];if(m<r)c=f+1;else if(m>r)d=f-1;else return e[f+a]}return-1}var qf=cr(Et),Wf=cr(or);var Nu={};Ke(Nu,{ATTRS:()=>Z,DOCUMENT_MODE:()=>F,NS:()=>p,NUMBERED_HEADERS:()=>be,SPECIAL_ELEMENTS:()=>gu,TAG_ID:()=>n,TAG_NAMES:()=>h,getTagID:()=>ae,hasUnescapedText:()=>lr});var p;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(p||(p={}));var Z;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Z||(Z={}));var F;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(F||(F={}));var h;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(h||(h={}));var n;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(n||(n={}));var Ls=new Map([[h.A,n.A],[h.ADDRESS,n.ADDRESS],[h.ANNOTATION_XML,n.ANNOTATION_XML],[h.APPLET,n.APPLET],[h.AREA,n.AREA],[h.ARTICLE,n.ARTICLE],[h.ASIDE,n.ASIDE],[h.B,n.B],[h.BASE,n.BASE],[h.BASEFONT,n.BASEFONT],[h.BGSOUND,n.BGSOUND],[h.BIG,n.BIG],[h.BLOCKQUOTE,n.BLOCKQUOTE],[h.BODY,n.BODY],[h.BR,n.BR],[h.BUTTON,n.BUTTON],[h.CAPTION,n.CAPTION],[h.CENTER,n.CENTER],[h.CODE,n.CODE],[h.COL,n.COL],[h.COLGROUP,n.COLGROUP],[h.DD,n.DD],[h.DESC,n.DESC],[h.DETAILS,n.DETAILS],[h.DIALOG,n.DIALOG],[h.DIR,n.DIR],[h.DIV,n.DIV],[h.DL,n.DL],[h.DT,n.DT],[h.EM,n.EM],[h.EMBED,n.EMBED],[h.FIELDSET,n.FIELDSET],[h.FIGCAPTION,n.FIGCAPTION],[h.FIGURE,n.FIGURE],[h.FONT,n.FONT],[h.FOOTER,n.FOOTER],[h.FOREIGN_OBJECT,n.FOREIGN_OBJECT],[h.FORM,n.FORM],[h.FRAME,n.FRAME],[h.FRAMESET,n.FRAMESET],[h.H1,n.H1],[h.H2,n.H2],[h.H3,n.H3],[h.H4,n.H4],[h.H5,n.H5],[h.H6,n.H6],[h.HEAD,n.HEAD],[h.HEADER,n.HEADER],[h.HGROUP,n.HGROUP],[h.HR,n.HR],[h.HTML,n.HTML],[h.I,n.I],[h.IMG,n.IMG],[h.IMAGE,n.IMAGE],[h.INPUT,n.INPUT],[h.IFRAME,n.IFRAME],[h.KEYGEN,n.KEYGEN],[h.LABEL,n.LABEL],[h.LI,n.LI],[h.LINK,n.LINK],[h.LISTING,n.LISTING],[h.MAIN,n.MAIN],[h.MALIGNMARK,n.MALIGNMARK],[h.MARQUEE,n.MARQUEE],[h.MATH,n.MATH],[h.MENU,n.MENU],[h.META,n.META],[h.MGLYPH,n.MGLYPH],[h.MI,n.MI],[h.MO,n.MO],[h.MN,n.MN],[h.MS,n.MS],[h.MTEXT,n.MTEXT],[h.NAV,n.NAV],[h.NOBR,n.NOBR],[h.NOFRAMES,n.NOFRAMES],[h.NOEMBED,n.NOEMBED],[h.NOSCRIPT,n.NOSCRIPT],[h.OBJECT,n.OBJECT],[h.OL,n.OL],[h.OPTGROUP,n.OPTGROUP],[h.OPTION,n.OPTION],[h.P,n.P],[h.PARAM,n.PARAM],[h.PLAINTEXT,n.PLAINTEXT],[h.PRE,n.PRE],[h.RB,n.RB],[h.RP,n.RP],[h.RT,n.RT],[h.RTC,n.RTC],[h.RUBY,n.RUBY],[h.S,n.S],[h.SCRIPT,n.SCRIPT],[h.SEARCH,n.SEARCH],[h.SECTION,n.SECTION],[h.SELECT,n.SELECT],[h.SOURCE,n.SOURCE],[h.SMALL,n.SMALL],[h.SPAN,n.SPAN],[h.STRIKE,n.STRIKE],[h.STRONG,n.STRONG],[h.STYLE,n.STYLE],[h.SUB,n.SUB],[h.SUMMARY,n.SUMMARY],[h.SUP,n.SUP],[h.TABLE,n.TABLE],[h.TBODY,n.TBODY],[h.TEMPLATE,n.TEMPLATE],[h.TEXTAREA,n.TEXTAREA],[h.TFOOT,n.TFOOT],[h.TD,n.TD],[h.TH,n.TH],[h.THEAD,n.THEAD],[h.TITLE,n.TITLE],[h.TR,n.TR],[h.TRACK,n.TRACK],[h.TT,n.TT],[h.U,n.U],[h.UL,n.UL],[h.SVG,n.SVG],[h.VAR,n.VAR],[h.WBR,n.WBR],[h.XMP,n.XMP]]);function ae(e){var t;return(t=Ls.get(e))!==null&&t!==void 0?t:n.UNKNOWN}var T=n,gu={[p.HTML]:new Set([T.ADDRESS,T.APPLET,T.AREA,T.ARTICLE,T.ASIDE,T.BASE,T.BASEFONT,T.BGSOUND,T.BLOCKQUOTE,T.BODY,T.BR,T.BUTTON,T.CAPTION,T.CENTER,T.COL,T.COLGROUP,T.DD,T.DETAILS,T.DIR,T.DIV,T.DL,T.DT,T.EMBED,T.FIELDSET,T.FIGCAPTION,T.FIGURE,T.FOOTER,T.FORM,T.FRAME,T.FRAMESET,T.H1,T.H2,T.H3,T.H4,T.H5,T.H6,T.HEAD,T.HEADER,T.HGROUP,T.HR,T.HTML,T.IFRAME,T.IMG,T.INPUT,T.LI,T.LINK,T.LISTING,T.MAIN,T.MARQUEE,T.MENU,T.META,T.NAV,T.NOEMBED,T.NOFRAMES,T.NOSCRIPT,T.OBJECT,T.OL,T.P,T.PARAM,T.PLAINTEXT,T.PRE,T.SCRIPT,T.SECTION,T.SELECT,T.SOURCE,T.STYLE,T.SUMMARY,T.TABLE,T.TBODY,T.TD,T.TEMPLATE,T.TEXTAREA,T.TFOOT,T.TH,T.THEAD,T.TITLE,T.TR,T.TRACK,T.UL,T.WBR,T.XMP]),[p.MATHML]:new Set([T.MI,T.MO,T.MN,T.MS,T.MTEXT,T.ANNOTATION_XML]),[p.SVG]:new Set([T.TITLE,T.FOREIGN_OBJECT,T.DESC]),[p.XLINK]:new Set,[p.XML]:new Set,[p.XMLNS]:new Set},be=new Set([T.H1,T.H2,T.H3,T.H4,T.H5,T.H6]),xs=new Set([h.STYLE,h.SCRIPT,h.XMP,h.IFRAME,h.NOEMBED,h.NOFRAMES,h.PLAINTEXT]);function lr(e,t){return xs.has(e)||t&&e===h.NOSCRIPT}var o;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(o||(o={}));var w={DATA:o.DATA,RCDATA:o.RCDATA,RAWTEXT:o.RAWTEXT,SCRIPT_DATA:o.SCRIPT_DATA,PLAINTEXT:o.PLAINTEXT,CDATA_SECTION:o.CDATA_SECTION};function Rs(e){return e>=i.DIGIT_0&&e<=i.DIGIT_9}function Ue(e){return e>=i.LATIN_CAPITAL_A&&e<=i.LATIN_CAPITAL_Z}function Ds(e){return e>=i.LATIN_SMALL_A&&e<=i.LATIN_SMALL_Z}function se(e){return Ds(e)||Ue(e)}function dr(e){return se(e)||Rs(e)}function mt(e){return e+32}function hr(e){return e===i.SPACE||e===i.LINE_FEED||e===i.TABULATION||e===i.FORM_FEED}function fr(e){return hr(e)||e===i.SOLIDUS||e===i.GREATER_THAN_SIGN}function ys(e){return e===i.NULL?E.nullCharacterReference:e>1114111?E.characterReferenceOutsideUnicodeRange:lt(e)?E.surrogateCharacterReference:ft(e)?E.noncharacterCharacterReference:dt(e)||e===i.CARRIAGE_RETURN?E.controlCharacterReference:null}var He=class{constructor(t,u){this.options=t,this.handler=u,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=o.DATA,this.returnState=o.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new ht(u),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Be(Et,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},u.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(E.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(E.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{let a=ys(r);a&&this._err(a,1)}}:void 0)}_err(t,u=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.call(r,this.preprocessor.getError(t,u))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,u,r){this.active=!0,this.preprocessor.write(t,u),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let u=0;u<t;u++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,u){return this.preprocessor.startsWith(t,u)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:I.START_TAG,tagName:"",tagID:n.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:I.END_TAG,tagName:"",tagID:n.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:I.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:I.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,u){this.currentCharacterToken={type:t,chars:u,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,u;let r=this.currentToken;if(ke(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){let a=(t=(u=r.location).attrs)!==null&&t!==void 0?t:u.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(E.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){let t=this.currentToken;this.prepareToken(t),t.tagID=ae(t.tagName),t.type===I.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(E.endTagWithAttributes),t.selfClosing&&this._err(E.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case I.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case I.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case I.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){let t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:I.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,u){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=u;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,u)}_emitCodePoint(t){let u=hr(t)?I.WHITESPACE_CHARACTER:t===i.NULL?I.NULL_CHARACTER:I.CHARACTER;this._appendCharToCurrentCharacterToken(u,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(I.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=o.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?$.Attribute:$.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===o.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===o.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===o.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case o.DATA:{this._stateData(t);break}case o.RCDATA:{this._stateRcdata(t);break}case o.RAWTEXT:{this._stateRawtext(t);break}case o.SCRIPT_DATA:{this._stateScriptData(t);break}case o.PLAINTEXT:{this._statePlaintext(t);break}case o.TAG_OPEN:{this._stateTagOpen(t);break}case o.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case o.TAG_NAME:{this._stateTagName(t);break}case o.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case o.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case o.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case o.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case o.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case o.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case o.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case o.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case o.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case o.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case o.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case o.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case o.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case o.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case o.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case o.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case o.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case o.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case o.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case o.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case o.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case o.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case o.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case o.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case o.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case o.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case o.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case o.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case o.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case o.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case o.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case o.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case o.BOGUS_COMMENT:{this._stateBogusComment(t);break}case o.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case o.COMMENT_START:{this._stateCommentStart(t);break}case o.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case o.COMMENT:{this._stateComment(t);break}case o.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case o.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case o.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case o.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case o.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case o.COMMENT_END:{this._stateCommentEnd(t);break}case o.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case o.DOCTYPE:{this._stateDoctype(t);break}case o.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case o.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case o.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case o.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case o.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case o.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case o.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case o.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case o.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case o.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case o.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case o.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case o.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case o.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case o.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case o.CDATA_SECTION:{this._stateCdataSection(t);break}case o.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case o.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case o.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case o.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case i.LESS_THAN_SIGN:{this.state=o.TAG_OPEN;break}case i.AMPERSAND:{this._startCharacterReference();break}case i.NULL:{this._err(E.unexpectedNullCharacter),this._emitCodePoint(t);break}case i.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case i.AMPERSAND:{this._startCharacterReference();break}case i.LESS_THAN_SIGN:{this.state=o.RCDATA_LESS_THAN_SIGN;break}case i.NULL:{this._err(E.unexpectedNullCharacter),this._emitChars(x);break}case i.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case i.LESS_THAN_SIGN:{this.state=o.RAWTEXT_LESS_THAN_SIGN;break}case i.NULL:{this._err(E.unexpectedNullCharacter),this._emitChars(x);break}case i.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case i.LESS_THAN_SIGN:{this.state=o.SCRIPT_DATA_LESS_THAN_SIGN;break}case i.NULL:{this._err(E.unexpectedNullCharacter),this._emitChars(x);break}case i.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case i.NULL:{this._err(E.unexpectedNullCharacter),this._emitChars(x);break}case i.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(se(t))this._createStartTagToken(),this.state=o.TAG_NAME,this._stateTagName(t);else switch(t){case i.EXCLAMATION_MARK:{this.state=o.MARKUP_DECLARATION_OPEN;break}case i.SOLIDUS:{this.state=o.END_TAG_OPEN;break}case i.QUESTION_MARK:{this._err(E.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=o.BOGUS_COMMENT,this._stateBogusComment(t);break}case i.EOF:{this._err(E.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(E.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=o.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(se(t))this._createEndTagToken(),this.state=o.TAG_NAME,this._stateTagName(t);else switch(t){case i.GREATER_THAN_SIGN:{this._err(E.missingEndTagName),this.state=o.DATA;break}case i.EOF:{this._err(E.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(E.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=o.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){let u=this.currentToken;switch(t){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this.state=o.BEFORE_ATTRIBUTE_NAME;break}case i.SOLIDUS:{this.state=o.SELF_CLOSING_START_TAG;break}case i.GREATER_THAN_SIGN:{this.state=o.DATA,this.emitCurrentTagToken();break}case i.NULL:{this._err(E.unexpectedNullCharacter),u.tagName+=x;break}case i.EOF:{this._err(E.eofInTag),this._emitEOFToken();break}default:u.tagName+=String.fromCodePoint(Ue(t)?mt(t):t)}}_stateRcdataLessThanSign(t){t===i.SOLIDUS?this.state=o.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=o.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){se(t)?(this.state=o.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=o.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();let u=this.currentToken;switch(u.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=o.BEFORE_ATTRIBUTE_NAME,!1;case i.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=o.SELF_CLOSING_START_TAG,!1;case i.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=o.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=o.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===i.SOLIDUS?this.state=o.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=o.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){se(t)?(this.state=o.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=o.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=o.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case i.SOLIDUS:{this.state=o.SCRIPT_DATA_END_TAG_OPEN;break}case i.EXCLAMATION_MARK:{this.state=o.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=o.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){se(t)?(this.state=o.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=o.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=o.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===i.HYPHEN_MINUS?(this.state=o.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=o.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===i.HYPHEN_MINUS?(this.state=o.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=o.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case i.HYPHEN_MINUS:{this.state=o.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case i.LESS_THAN_SIGN:{this.state=o.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case i.NULL:{this._err(E.unexpectedNullCharacter),this._emitChars(x);break}case i.EOF:{this._err(E.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case i.HYPHEN_MINUS:{this.state=o.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case i.LESS_THAN_SIGN:{this.state=o.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case i.NULL:{this._err(E.unexpectedNullCharacter),this.state=o.SCRIPT_DATA_ESCAPED,this._emitChars(x);break}case i.EOF:{this._err(E.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=o.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case i.HYPHEN_MINUS:{this._emitChars("-");break}case i.LESS_THAN_SIGN:{this.state=o.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case i.GREATER_THAN_SIGN:{this.state=o.SCRIPT_DATA,this._emitChars(">");break}case i.NULL:{this._err(E.unexpectedNullCharacter),this.state=o.SCRIPT_DATA_ESCAPED,this._emitChars(x);break}case i.EOF:{this._err(E.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=o.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===i.SOLIDUS?this.state=o.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:se(t)?(this._emitChars("<"),this.state=o.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=o.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){se(t)?(this.state=o.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=o.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=o.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(q.SCRIPT,!1)&&fr(this.preprocessor.peek(q.SCRIPT.length))){this._emitCodePoint(t);for(let u=0;u<q.SCRIPT.length;u++)this._emitCodePoint(this._consume());this.state=o.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=o.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case i.HYPHEN_MINUS:{this.state=o.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case i.LESS_THAN_SIGN:{this.state=o.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case i.NULL:{this._err(E.unexpectedNullCharacter),this._emitChars(x);break}case i.EOF:{this._err(E.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case i.HYPHEN_MINUS:{this.state=o.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case i.LESS_THAN_SIGN:{this.state=o.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case i.NULL:{this._err(E.unexpectedNullCharacter),this.state=o.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(x);break}case i.EOF:{this._err(E.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=o.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case i.HYPHEN_MINUS:{this._emitChars("-");break}case i.LESS_THAN_SIGN:{this.state=o.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case i.GREATER_THAN_SIGN:{this.state=o.SCRIPT_DATA,this._emitChars(">");break}case i.NULL:{this._err(E.unexpectedNullCharacter),this.state=o.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(x);break}case i.EOF:{this._err(E.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=o.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===i.SOLIDUS?(this.state=o.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=o.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(q.SCRIPT,!1)&&fr(this.preprocessor.peek(q.SCRIPT.length))){this._emitCodePoint(t);for(let u=0;u<q.SCRIPT.length;u++)this._emitCodePoint(this._consume());this.state=o.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=o.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.SOLIDUS:case i.GREATER_THAN_SIGN:case i.EOF:{this.state=o.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case i.EQUALS_SIGN:{this._err(E.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=o.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=o.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:case i.SOLIDUS:case i.GREATER_THAN_SIGN:case i.EOF:{this._leaveAttrName(),this.state=o.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case i.EQUALS_SIGN:{this._leaveAttrName(),this.state=o.BEFORE_ATTRIBUTE_VALUE;break}case i.QUOTATION_MARK:case i.APOSTROPHE:case i.LESS_THAN_SIGN:{this._err(E.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case i.NULL:{this._err(E.unexpectedNullCharacter),this.currentAttr.name+=x;break}default:this.currentAttr.name+=String.fromCodePoint(Ue(t)?mt(t):t)}}_stateAfterAttributeName(t){switch(t){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.SOLIDUS:{this.state=o.SELF_CLOSING_START_TAG;break}case i.EQUALS_SIGN:{this.state=o.BEFORE_ATTRIBUTE_VALUE;break}case i.GREATER_THAN_SIGN:{this.state=o.DATA,this.emitCurrentTagToken();break}case i.EOF:{this._err(E.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=o.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.QUOTATION_MARK:{this.state=o.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case i.APOSTROPHE:{this.state=o.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case i.GREATER_THAN_SIGN:{this._err(E.missingAttributeValue),this.state=o.DATA,this.emitCurrentTagToken();break}default:this.state=o.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case i.QUOTATION_MARK:{this.state=o.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case i.AMPERSAND:{this._startCharacterReference();break}case i.NULL:{this._err(E.unexpectedNullCharacter),this.currentAttr.value+=x;break}case i.EOF:{this._err(E.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case i.APOSTROPHE:{this.state=o.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case i.AMPERSAND:{this._startCharacterReference();break}case i.NULL:{this._err(E.unexpectedNullCharacter),this.currentAttr.value+=x;break}case i.EOF:{this._err(E.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this._leaveAttrValue(),this.state=o.BEFORE_ATTRIBUTE_NAME;break}case i.AMPERSAND:{this._startCharacterReference();break}case i.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=o.DATA,this.emitCurrentTagToken();break}case i.NULL:{this._err(E.unexpectedNullCharacter),this.currentAttr.value+=x;break}case i.QUOTATION_MARK:case i.APOSTROPHE:case i.LESS_THAN_SIGN:case i.EQUALS_SIGN:case i.GRAVE_ACCENT:{this._err(E.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case i.EOF:{this._err(E.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this._leaveAttrValue(),this.state=o.BEFORE_ATTRIBUTE_NAME;break}case i.SOLIDUS:{this._leaveAttrValue(),this.state=o.SELF_CLOSING_START_TAG;break}case i.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=o.DATA,this.emitCurrentTagToken();break}case i.EOF:{this._err(E.eofInTag),this._emitEOFToken();break}default:this._err(E.missingWhitespaceBetweenAttributes),this.state=o.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case i.GREATER_THAN_SIGN:{let u=this.currentToken;u.selfClosing=!0,this.state=o.DATA,this.emitCurrentTagToken();break}case i.EOF:{this._err(E.eofInTag),this._emitEOFToken();break}default:this._err(E.unexpectedSolidusInTag),this.state=o.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){let u=this.currentToken;switch(t){case i.GREATER_THAN_SIGN:{this.state=o.DATA,this.emitCurrentComment(u);break}case i.EOF:{this.emitCurrentComment(u),this._emitEOFToken();break}case i.NULL:{this._err(E.unexpectedNullCharacter),u.data+=x;break}default:u.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(q.DASH_DASH,!0)?(this._createCommentToken(q.DASH_DASH.length+1),this.state=o.COMMENT_START):this._consumeSequenceIfMatch(q.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(q.DOCTYPE.length+1),this.state=o.DOCTYPE):this._consumeSequenceIfMatch(q.CDATA_START,!0)?this.inForeignNode?this.state=o.CDATA_SECTION:(this._err(E.cdataInHtmlContent),this._createCommentToken(q.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=o.BOGUS_COMMENT):this._ensureHibernation()||(this._err(E.incorrectlyOpenedComment),this._createCommentToken(2),this.state=o.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case i.HYPHEN_MINUS:{this.state=o.COMMENT_START_DASH;break}case i.GREATER_THAN_SIGN:{this._err(E.abruptClosingOfEmptyComment),this.state=o.DATA;let u=this.currentToken;this.emitCurrentComment(u);break}default:this.state=o.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){let u=this.currentToken;switch(t){case i.HYPHEN_MINUS:{this.state=o.COMMENT_END;break}case i.GREATER_THAN_SIGN:{this._err(E.abruptClosingOfEmptyComment),this.state=o.DATA,this.emitCurrentComment(u);break}case i.EOF:{this._err(E.eofInComment),this.emitCurrentComment(u),this._emitEOFToken();break}default:u.data+="-",this.state=o.COMMENT,this._stateComment(t)}}_stateComment(t){let u=this.currentToken;switch(t){case i.HYPHEN_MINUS:{this.state=o.COMMENT_END_DASH;break}case i.LESS_THAN_SIGN:{u.data+="<",this.state=o.COMMENT_LESS_THAN_SIGN;break}case i.NULL:{this._err(E.unexpectedNullCharacter),u.data+=x;break}case i.EOF:{this._err(E.eofInComment),this.emitCurrentComment(u),this._emitEOFToken();break}default:u.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){let u=this.currentToken;switch(t){case i.EXCLAMATION_MARK:{u.data+="!",this.state=o.COMMENT_LESS_THAN_SIGN_BANG;break}case i.LESS_THAN_SIGN:{u.data+="<";break}default:this.state=o.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===i.HYPHEN_MINUS?this.state=o.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=o.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===i.HYPHEN_MINUS?this.state=o.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=o.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==i.GREATER_THAN_SIGN&&t!==i.EOF&&this._err(E.nestedComment),this.state=o.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){let u=this.currentToken;switch(t){case i.HYPHEN_MINUS:{this.state=o.COMMENT_END;break}case i.EOF:{this._err(E.eofInComment),this.emitCurrentComment(u),this._emitEOFToken();break}default:u.data+="-",this.state=o.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){let u=this.currentToken;switch(t){case i.GREATER_THAN_SIGN:{this.state=o.DATA,this.emitCurrentComment(u);break}case i.EXCLAMATION_MARK:{this.state=o.COMMENT_END_BANG;break}case i.HYPHEN_MINUS:{u.data+="-";break}case i.EOF:{this._err(E.eofInComment),this.emitCurrentComment(u),this._emitEOFToken();break}default:u.data+="--",this.state=o.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){let u=this.currentToken;switch(t){case i.HYPHEN_MINUS:{u.data+="--!",this.state=o.COMMENT_END_DASH;break}case i.GREATER_THAN_SIGN:{this._err(E.incorrectlyClosedComment),this.state=o.DATA,this.emitCurrentComment(u);break}case i.EOF:{this._err(E.eofInComment),this.emitCurrentComment(u),this._emitEOFToken();break}default:u.data+="--!",this.state=o.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this.state=o.BEFORE_DOCTYPE_NAME;break}case i.GREATER_THAN_SIGN:{this.state=o.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case i.EOF:{this._err(E.eofInDoctype),this._createDoctypeToken(null);let u=this.currentToken;u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(E.missingWhitespaceBeforeDoctypeName),this.state=o.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Ue(t))this._createDoctypeToken(String.fromCharCode(mt(t))),this.state=o.DOCTYPE_NAME;else switch(t){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.NULL:{this._err(E.unexpectedNullCharacter),this._createDoctypeToken(x),this.state=o.DOCTYPE_NAME;break}case i.GREATER_THAN_SIGN:{this._err(E.missingDoctypeName),this._createDoctypeToken(null);let u=this.currentToken;u.forceQuirks=!0,this.emitCurrentDoctype(u),this.state=o.DATA;break}case i.EOF:{this._err(E.eofInDoctype),this._createDoctypeToken(null);let u=this.currentToken;u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=o.DOCTYPE_NAME}}_stateDoctypeName(t){let u=this.currentToken;switch(t){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this.state=o.AFTER_DOCTYPE_NAME;break}case i.GREATER_THAN_SIGN:{this.state=o.DATA,this.emitCurrentDoctype(u);break}case i.NULL:{this._err(E.unexpectedNullCharacter),u.name+=x;break}case i.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:u.name+=String.fromCodePoint(Ue(t)?mt(t):t)}}_stateAfterDoctypeName(t){let u=this.currentToken;switch(t){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.GREATER_THAN_SIGN:{this.state=o.DATA,this.emitCurrentDoctype(u);break}case i.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(q.PUBLIC,!1)?this.state=o.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(q.SYSTEM,!1)?this.state=o.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(E.invalidCharacterSequenceAfterDoctypeName),u.forceQuirks=!0,this.state=o.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){let u=this.currentToken;switch(t){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this.state=o.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case i.QUOTATION_MARK:{this._err(E.missingWhitespaceAfterDoctypePublicKeyword),u.publicId="",this.state=o.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case i.APOSTROPHE:{this._err(E.missingWhitespaceAfterDoctypePublicKeyword),u.publicId="",this.state=o.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case i.GREATER_THAN_SIGN:{this._err(E.missingDoctypePublicIdentifier),u.forceQuirks=!0,this.state=o.DATA,this.emitCurrentDoctype(u);break}case i.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(E.missingQuoteBeforeDoctypePublicIdentifier),u.forceQuirks=!0,this.state=o.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){let u=this.currentToken;switch(t){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.QUOTATION_MARK:{u.publicId="",this.state=o.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case i.APOSTROPHE:{u.publicId="",this.state=o.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case i.GREATER_THAN_SIGN:{this._err(E.missingDoctypePublicIdentifier),u.forceQuirks=!0,this.state=o.DATA,this.emitCurrentDoctype(u);break}case i.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(E.missingQuoteBeforeDoctypePublicIdentifier),u.forceQuirks=!0,this.state=o.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){let u=this.currentToken;switch(t){case i.QUOTATION_MARK:{this.state=o.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case i.NULL:{this._err(E.unexpectedNullCharacter),u.publicId+=x;break}case i.GREATER_THAN_SIGN:{this._err(E.abruptDoctypePublicIdentifier),u.forceQuirks=!0,this.emitCurrentDoctype(u),this.state=o.DATA;break}case i.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:u.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){let u=this.currentToken;switch(t){case i.APOSTROPHE:{this.state=o.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case i.NULL:{this._err(E.unexpectedNullCharacter),u.publicId+=x;break}case i.GREATER_THAN_SIGN:{this._err(E.abruptDoctypePublicIdentifier),u.forceQuirks=!0,this.emitCurrentDoctype(u),this.state=o.DATA;break}case i.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:u.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){let u=this.currentToken;switch(t){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this.state=o.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case i.GREATER_THAN_SIGN:{this.state=o.DATA,this.emitCurrentDoctype(u);break}case i.QUOTATION_MARK:{this._err(E.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),u.systemId="",this.state=o.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case i.APOSTROPHE:{this._err(E.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),u.systemId="",this.state=o.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case i.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(E.missingQuoteBeforeDoctypeSystemIdentifier),u.forceQuirks=!0,this.state=o.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){let u=this.currentToken;switch(t){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.GREATER_THAN_SIGN:{this.emitCurrentDoctype(u),this.state=o.DATA;break}case i.QUOTATION_MARK:{u.systemId="",this.state=o.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case i.APOSTROPHE:{u.systemId="",this.state=o.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case i.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(E.missingQuoteBeforeDoctypeSystemIdentifier),u.forceQuirks=!0,this.state=o.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){let u=this.currentToken;switch(t){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this.state=o.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case i.QUOTATION_MARK:{this._err(E.missingWhitespaceAfterDoctypeSystemKeyword),u.systemId="",this.state=o.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case i.APOSTROPHE:{this._err(E.missingWhitespaceAfterDoctypeSystemKeyword),u.systemId="",this.state=o.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case i.GREATER_THAN_SIGN:{this._err(E.missingDoctypeSystemIdentifier),u.forceQuirks=!0,this.state=o.DATA,this.emitCurrentDoctype(u);break}case i.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(E.missingQuoteBeforeDoctypeSystemIdentifier),u.forceQuirks=!0,this.state=o.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){let u=this.currentToken;switch(t){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.QUOTATION_MARK:{u.systemId="",this.state=o.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case i.APOSTROPHE:{u.systemId="",this.state=o.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case i.GREATER_THAN_SIGN:{this._err(E.missingDoctypeSystemIdentifier),u.forceQuirks=!0,this.state=o.DATA,this.emitCurrentDoctype(u);break}case i.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(E.missingQuoteBeforeDoctypeSystemIdentifier),u.forceQuirks=!0,this.state=o.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){let u=this.currentToken;switch(t){case i.QUOTATION_MARK:{this.state=o.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case i.NULL:{this._err(E.unexpectedNullCharacter),u.systemId+=x;break}case i.GREATER_THAN_SIGN:{this._err(E.abruptDoctypeSystemIdentifier),u.forceQuirks=!0,this.emitCurrentDoctype(u),this.state=o.DATA;break}case i.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:u.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){let u=this.currentToken;switch(t){case i.APOSTROPHE:{this.state=o.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case i.NULL:{this._err(E.unexpectedNullCharacter),u.systemId+=x;break}case i.GREATER_THAN_SIGN:{this._err(E.abruptDoctypeSystemIdentifier),u.forceQuirks=!0,this.emitCurrentDoctype(u),this.state=o.DATA;break}case i.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:u.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){let u=this.currentToken;switch(t){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.GREATER_THAN_SIGN:{this.emitCurrentDoctype(u),this.state=o.DATA;break}case i.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(E.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=o.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){let u=this.currentToken;switch(t){case i.GREATER_THAN_SIGN:{this.emitCurrentDoctype(u),this.state=o.DATA;break}case i.NULL:{this._err(E.unexpectedNullCharacter);break}case i.EOF:{this.emitCurrentDoctype(u),this._emitEOFToken();break}default:}}_stateCdataSection(t){switch(t){case i.RIGHT_SQUARE_BRACKET:{this.state=o.CDATA_SECTION_BRACKET;break}case i.EOF:{this._err(E.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===i.RIGHT_SQUARE_BRACKET?this.state=o.CDATA_SECTION_END:(this._emitChars("]"),this.state=o.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case i.GREATER_THAN_SIGN:{this.state=o.DATA;break}case i.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=o.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(i.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&dr(this.preprocessor.peek(1))?o.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){dr(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===i.SEMICOLON&&this._err(E.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}};var Tr=new Set([n.DD,n.DT,n.LI,n.OPTGROUP,n.OPTION,n.P,n.RB,n.RP,n.RT,n.RTC]),Er=new Set([...Tr,n.CAPTION,n.COLGROUP,n.TBODY,n.TD,n.TFOOT,n.TH,n.THEAD,n.TR]),pt=new Set([n.APPLET,n.CAPTION,n.HTML,n.MARQUEE,n.OBJECT,n.TABLE,n.TD,n.TEMPLATE,n.TH]),Ps=new Set([...pt,n.OL,n.UL]),Ms=new Set([...pt,n.BUTTON]),mr=new Set([n.ANNOTATION_XML,n.MI,n.MN,n.MO,n.MS,n.MTEXT]),pr=new Set([n.DESC,n.FOREIGN_OBJECT,n.TITLE]),ks=new Set([n.TR,n.TEMPLATE,n.HTML]),Bs=new Set([n.TBODY,n.TFOOT,n.THEAD,n.TEMPLATE,n.HTML]),Us=new Set([n.TABLE,n.TEMPLATE,n.HTML]),Hs=new Set([n.TD,n.TH]),Tt=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,u,r){this.treeAdapter=u,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=n.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===n.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===p.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,u){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=u,this.currentTagId=u,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,u,!0)}pop(){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,u){let r=this._indexOf(t);this.items[r]=u,r===this.stackTop&&(this.current=u)}insertAfter(t,u,r){let a=this._indexOf(t)+1;this.items.splice(a,0,u),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let u=this.stackTop+1;do u=this.tagIDs.lastIndexOf(t,u-1);while(u>0&&this.treeAdapter.getNamespaceURI(this.items[u])!==p.HTML);this.shortenToLength(u<0?0:u)}shortenToLength(t){for(;this.stackTop>=t;){let u=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(u,this.stackTop<t)}}popUntilElementPopped(t){let u=this._indexOf(t);this.shortenToLength(u<0?0:u)}popUntilPopped(t,u){let r=this._indexOfTagNames(t,u);this.shortenToLength(r<0?0:r)}popUntilNumberedHeaderPopped(){this.popUntilPopped(be,p.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Hs,p.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,u){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===u)return r;return-1}clearBackTo(t,u){let r=this._indexOfTagNames(t,u);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(Us,p.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Bs,p.HTML)}clearBackToTableRowContext(){this.clearBackTo(ks,p.HTML)}remove(t){let u=this._indexOf(t);u>=0&&(u===this.stackTop?this.pop():(this.items.splice(u,1),this.tagIDs.splice(u,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===n.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let u=this._indexOf(t)-1;return u>=0?this.items[u]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===n.HTML}hasInDynamicScope(t,u){for(let r=this.stackTop;r>=0;r--){let a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case p.HTML:{if(a===t)return!0;if(u.has(a))return!1;break}case p.SVG:{if(pr.has(a))return!1;break}case p.MATHML:{if(mr.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,pt)}hasInListItemScope(t){return this.hasInDynamicScope(t,Ps)}hasInButtonScope(t){return this.hasInDynamicScope(t,Ms)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){let u=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case p.HTML:{if(be.has(u))return!0;if(pt.has(u))return!1;break}case p.SVG:{if(pr.has(u))return!1;break}case p.MATHML:{if(mr.has(u))return!1;break}}}return!0}hasInTableScope(t){for(let u=this.stackTop;u>=0;u--)if(this.treeAdapter.getNamespaceURI(this.items[u])===p.HTML)switch(this.tagIDs[u]){case t:return!0;case n.TABLE:case n.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===p.HTML)switch(this.tagIDs[t]){case n.TBODY:case n.THEAD:case n.TFOOT:return!0;case n.TABLE:case n.HTML:return!1}return!0}hasInSelectScope(t){for(let u=this.stackTop;u>=0;u--)if(this.treeAdapter.getNamespaceURI(this.items[u])===p.HTML)switch(this.tagIDs[u]){case t:return!0;case n.OPTION:case n.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;Tr.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Er.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&Er.has(this.currentTagId);)this.pop()}};var V;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(V||(V={}));var br={type:V.Marker},bt=class{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,u){let r=[],a=u.length,s=this.treeAdapter.getTagName(t),c=this.treeAdapter.getNamespaceURI(t);for(let d=0;d<this.entries.length;d++){let f=this.entries[d];if(f.type===V.Marker)break;let{element:m}=f;if(this.treeAdapter.getTagName(m)===s&&this.treeAdapter.getNamespaceURI(m)===c){let A=this.treeAdapter.getAttrList(m);A.length===a&&r.push({idx:d,attrs:A})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<3)return;let u=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,u);if(r.length<3)return;let a=new Map(u.map(c=>[c.name,c.value])),s=0;for(let c=0;c<r.length;c++){let d=r[c];d.attrs.every(f=>a.get(f.name)===f.value)&&(s+=1,s>=3&&this.entries.splice(d.idx,1))}}insertMarker(){this.entries.unshift(br)}pushElement(t,u){this._ensureNoahArkCondition(t),this.entries.unshift({type:V.Element,element:t,token:u})}insertElementAfterBookmark(t,u){let r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:V.Element,element:t,token:u})}removeEntry(t){let u=this.entries.indexOf(t);u>=0&&this.entries.splice(u,1)}clearToLastMarker(){let t=this.entries.indexOf(br);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){let u=this.entries.find(r=>r.type===V.Marker||this.treeAdapter.getTagName(r.element)===t);return u&&u.type===V.Element?u:null}getElementEntry(t){return this.entries.find(u=>u.type===V.Element&&u.element===t)}};var K={createDocument(){return{nodeName:"#document",mode:F.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,u){return{nodeName:e,tagName:e,attrs:u,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,u){let r=e.childNodes.indexOf(u);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,u,r){let a=e.childNodes.find(s=>s.nodeName==="#documentType");if(a)a.name=t,a.publicId=u,a.systemId=r;else{let s={nodeName:"#documentType",name:t,publicId:u,systemId:r,parentNode:null};K.appendChild(e,s)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let u=e.childNodes[e.childNodes.length-1];if(K.isTextNode(u)){u.value+=t;return}}K.appendChild(e,K.createTextNode(t))},insertTextBefore(e,t,u){let r=e.childNodes[e.childNodes.indexOf(u)-1];r&&K.isTextNode(r)?r.value+=t:K.insertBefore(e,K.createTextNode(t),u)},adoptAttributes(e,t){let u=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)u.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}};var _r="html",Fs="about:legacy-compat",ws="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",gr=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],vs=[...gr,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Ys=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Nr=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],qs=[...Nr,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Ar(e,t){return t.some(u=>e.startsWith(u))}function Cr(e){return e.name===_r&&e.publicId===null&&(e.systemId===null||e.systemId===Fs)}function Ir(e){if(e.name!==_r)return F.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===ws)return F.QUIRKS;let{publicId:u}=e;if(u!==null){if(u=u.toLowerCase(),Ys.has(u))return F.QUIRKS;let r=t===null?vs:gr;if(Ar(u,r))return F.QUIRKS;if(r=t===null?Nr:qs,Ar(u,r))return F.LIMITED_QUIRKS}return F.NO_QUIRKS}var gt={};Ke(gt,{SVG_TAG_NAMES_ADJUSTMENT_MAP:()=>Or,adjustTokenMathMLAttrs:()=>At,adjustTokenSVGAttrs:()=>_t,adjustTokenSVGTagName:()=>Iu,adjustTokenXMLAttrs:()=>Fe,causesExit:()=>Cu,isIntegrationPoint:()=>Su});var Sr={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Qs="definitionurl",Gs="definitionURL",Xs=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Vs=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:p.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:p.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:p.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:p.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:p.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:p.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:p.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:p.XML}],["xml:space",{prefix:"xml",name:"space",namespace:p.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:p.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:p.XMLNS}]]),Or=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Ks=new Set([n.B,n.BIG,n.BLOCKQUOTE,n.BODY,n.BR,n.CENTER,n.CODE,n.DD,n.DIV,n.DL,n.DT,n.EM,n.EMBED,n.H1,n.H2,n.H3,n.H4,n.H5,n.H6,n.HEAD,n.HR,n.I,n.IMG,n.LI,n.LISTING,n.MENU,n.META,n.NOBR,n.OL,n.P,n.PRE,n.RUBY,n.S,n.SMALL,n.SPAN,n.STRONG,n.STRIKE,n.SUB,n.SUP,n.TABLE,n.TT,n.U,n.UL,n.VAR]);function Cu(e){let t=e.tagID;return t===n.FONT&&e.attrs.some(({name:r})=>r===Z.COLOR||r===Z.SIZE||r===Z.FACE)||Ks.has(t)}function At(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Qs){e.attrs[t].name=Gs;break}}function _t(e){for(let t=0;t<e.attrs.length;t++){let u=Xs.get(e.attrs[t].name);u!=null&&(e.attrs[t].name=u)}}function Fe(e){for(let t=0;t<e.attrs.length;t++){let u=Vs.get(e.attrs[t].name);u&&(e.attrs[t].prefix=u.prefix,e.attrs[t].name=u.name,e.attrs[t].namespace=u.namespace)}}function Iu(e){let t=Or.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=ae(e.tagName))}function zs(e,t){return t===p.MATHML&&(e===n.MI||e===n.MO||e===n.MN||e===n.MS||e===n.MTEXT)}function js(e,t,u){if(t===p.MATHML&&e===n.ANNOTATION_XML){for(let r=0;r<u.length;r++)if(u[r].name===Z.ENCODING){let a=u[r].value.toLowerCase();return a===Sr.TEXT_HTML||a===Sr.APPLICATION_XML}}return t===p.SVG&&(e===n.FOREIGN_OBJECT||e===n.DESC||e===n.TITLE)}function Su(e,t,u,r){return(!r||r===p.HTML)&&js(e,t,u)||(!r||r===p.MATHML)&&zs(e,t)}var Js="hidden",$s=8,Zs=3,l;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(l||(l={}));var ei={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Dr=new Set([n.TABLE,n.TBODY,n.TFOOT,n.THEAD,n.TR]),Lr={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:K,onParseError:null},Ae=class{constructor(t,u,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=l.INITIAL,this.originalInsertionMode=l.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Lr,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=u!=null?u:this.treeAdapter.createDocument(),this.tokenizer=new He(this.options,this),this.activeFormattingElements=new bt(this.treeAdapter),this.fragmentContextID=r?ae(this.treeAdapter.getTagName(r)):n.UNKNOWN,this._setContextModes(r!=null?r:this.document,this.fragmentContextID),this.openElements=new Tt(this.document,this.treeAdapter,this)}static parse(t,u){let r=new this(u);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,u){let r={...Lr,...u};t!=null||(t=r.treeAdapter.createElement(h.TEMPLATE,p.HTML,[]));let a=r.treeAdapter.createElement("documentmock",p.HTML,[]),s=new this(r,a,t);return s.fragmentContextID===n.TEMPLATE&&s.tmplInsertionModeStack.unshift(l.IN_TEMPLATE),s._initTokenizerForFragmentParsing(),s._insertFakeRootElement(),s._resetInsertionMode(),s._findFormInFragmentContext(),s}getFragment(){let t=this.treeAdapter.getFirstChild(this.document),u=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,u),u}_err(t,u,r){var a;if(!this.onParseError)return;let s=(a=t.location)!==null&&a!==void 0?a:ei,c={code:u,startLine:s.startLine,startCol:s.startCol,startOffset:s.startOffset,endLine:r?s.startLine:s.endLine,endCol:r?s.startCol:s.endCol,endOffset:r?s.startOffset:s.endOffset};this.onParseError(c)}onItemPush(t,u,r){var a,s;(s=(a=this.treeAdapter).onItemPush)===null||s===void 0||s.call(a,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,u)}onItemPop(t,u){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,t,this.openElements.current),u){let s,c;this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,c=this.fragmentContextID):{current:s,currentTagId:c}=this.openElements,this._setContextModes(s,c)}}_setContextModes(t,u){let r=t===this.document||this.treeAdapter.getNamespaceURI(t)===p.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(u,t)}_switchToTextParsing(t,u){this._insertElement(t,p.HTML),this.tokenizer.state=u,this.originalInsertionMode=this.insertionMode,this.insertionMode=l.TEXT}switchToPlaintextParsing(){this.insertionMode=l.TEXT,this.originalInsertionMode=l.IN_BODY,this.tokenizer.state=w.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===h.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==p.HTML))switch(this.fragmentContextID){case n.TITLE:case n.TEXTAREA:{this.tokenizer.state=w.RCDATA;break}case n.STYLE:case n.XMP:case n.IFRAME:case n.NOEMBED:case n.NOFRAMES:case n.NOSCRIPT:{this.tokenizer.state=w.RAWTEXT;break}case n.SCRIPT:{this.tokenizer.state=w.SCRIPT_DATA;break}case n.PLAINTEXT:{this.tokenizer.state=w.PLAINTEXT;break}default:}}_setDocumentType(t){let u=t.name||"",r=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,u,r,a),t.location){let c=this.treeAdapter.getChildNodes(this.document).find(d=>this.treeAdapter.isDocumentTypeNode(d));c&&this.treeAdapter.setNodeSourceCodeLocation(c,t.location)}}_attachElementToTree(t,u){if(this.options.sourceCodeLocationInfo){let r=u&&{...u,startTag:u};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{let r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,u){let r=this.treeAdapter.createElement(t.tagName,u,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,u){let r=this.treeAdapter.createElement(t.tagName,u,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,u){let r=this.treeAdapter.createElement(t,p.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,u)}_insertTemplate(t){let u=this.treeAdapter.createElement(t.tagName,p.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(u,r),this._attachElementToTree(u,t.location),this.openElements.push(u,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){let t=this.treeAdapter.createElement(h.HTML,p.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,n.HTML)}_appendCommentNode(t,u){let r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(u,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let u,r;if(this._shouldFosterParentOnInsertion()?({parent:u,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(u,t.chars,r):this.treeAdapter.insertText(u,t.chars)):(u=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(u,t.chars)),!t.location)return;let a=this.treeAdapter.getChildNodes(u),s=r?a.lastIndexOf(r):a.length,c=a[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(c)){let{endLine:f,endCol:m,endOffset:A}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(c,{endLine:f,endCol:m,endOffset:A})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(c,t.location)}_adoptNodes(t,u){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(u,r)}_setEndLocation(t,u){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&u.location){let r=u.location,a=this.treeAdapter.getTagName(t),s=u.type===I.END_TAG&&a===u.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let u,r;return this.openElements.stackTop===0&&this.fragmentContext?(u=this.fragmentContext,r=this.fragmentContextID):{current:u,currentTagId:r}=this.openElements,t.tagID===n.SVG&&this.treeAdapter.getTagName(u)===h.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(u)===p.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===n.MGLYPH||t.tagID===n.MALIGNMARK)&&!this._isIntegrationPoint(r,u,p.HTML)}_processToken(t){switch(t.type){case I.CHARACTER:{this.onCharacter(t);break}case I.NULL_CHARACTER:{this.onNullCharacter(t);break}case I.COMMENT:{this.onComment(t);break}case I.DOCTYPE:{this.onDoctype(t);break}case I.START_TAG:{this._processStartTag(t);break}case I.END_TAG:{this.onEndTag(t);break}case I.EOF:{this.onEof(t);break}case I.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,u,r){let a=this.treeAdapter.getNamespaceURI(u),s=this.treeAdapter.getAttrList(u);return Su(t,a,s,r)}_reconstructActiveFormattingElements(){let t=this.activeFormattingElements.entries.length;if(t){let u=this.activeFormattingElements.entries.findIndex(a=>a.type===V.Marker||this.openElements.contains(a.element)),r=u<0?t-1:u-1;for(let a=r;a>=0;a--){let s=this.activeFormattingElements.entries[a];this._insertElement(s.token,this.treeAdapter.getNamespaceURI(s.element)),s.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=l.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(n.P),this.openElements.popUntilTagNamePopped(n.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case n.TR:{this.insertionMode=l.IN_ROW;return}case n.TBODY:case n.THEAD:case n.TFOOT:{this.insertionMode=l.IN_TABLE_BODY;return}case n.CAPTION:{this.insertionMode=l.IN_CAPTION;return}case n.COLGROUP:{this.insertionMode=l.IN_COLUMN_GROUP;return}case n.TABLE:{this.insertionMode=l.IN_TABLE;return}case n.BODY:{this.insertionMode=l.IN_BODY;return}case n.FRAMESET:{this.insertionMode=l.IN_FRAMESET;return}case n.SELECT:{this._resetInsertionModeForSelect(t);return}case n.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case n.HTML:{this.insertionMode=this.headElement?l.AFTER_HEAD:l.BEFORE_HEAD;return}case n.TD:case n.TH:{if(t>0){this.insertionMode=l.IN_CELL;return}break}case n.HEAD:{if(t>0){this.insertionMode=l.IN_HEAD;return}break}}this.insertionMode=l.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let u=t-1;u>0;u--){let r=this.openElements.tagIDs[u];if(r===n.TEMPLATE)break;if(r===n.TABLE){this.insertionMode=l.IN_SELECT_IN_TABLE;return}}this.insertionMode=l.IN_SELECT}_isElementCausesFosterParenting(t){return Dr.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){let u=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case n.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(u)===p.HTML)return{parent:this.treeAdapter.getTemplateContent(u),beforeElement:null};break}case n.TABLE:{let r=this.treeAdapter.getParentNode(u);return r?{parent:r,beforeElement:u}:{parent:this.openElements.items[t-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){let u=this._findFosterParentingLocation();u.beforeElement?this.treeAdapter.insertBefore(u.parent,t,u.beforeElement):this.treeAdapter.appendChild(u.parent,t)}_isSpecialElement(t,u){let r=this.treeAdapter.getNamespaceURI(t);return gu[r].has(u)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){yo(this,t);return}switch(this.insertionMode){case l.INITIAL:{we(this,t);break}case l.BEFORE_HTML:{Ye(this,t);break}case l.BEFORE_HEAD:{qe(this,t);break}case l.IN_HEAD:{We(this,t);break}case l.IN_HEAD_NO_SCRIPT:{Qe(this,t);break}case l.AFTER_HEAD:{Ge(this,t);break}case l.IN_BODY:case l.IN_CAPTION:case l.IN_CELL:case l.IN_TEMPLATE:{Pr(this,t);break}case l.TEXT:case l.IN_SELECT:case l.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case l.IN_TABLE:case l.IN_TABLE_BODY:case l.IN_ROW:{Ou(this,t);break}case l.IN_TABLE_TEXT:{Fr(this,t);break}case l.IN_COLUMN_GROUP:{Ct(this,t);break}case l.AFTER_BODY:{It(this,t);break}case l.AFTER_AFTER_BODY:{Nt(this,t);break}default:}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Do(this,t);return}switch(this.insertionMode){case l.INITIAL:{we(this,t);break}case l.BEFORE_HTML:{Ye(this,t);break}case l.BEFORE_HEAD:{qe(this,t);break}case l.IN_HEAD:{We(this,t);break}case l.IN_HEAD_NO_SCRIPT:{Qe(this,t);break}case l.AFTER_HEAD:{Ge(this,t);break}case l.TEXT:{this._insertCharacters(t);break}case l.IN_TABLE:case l.IN_TABLE_BODY:case l.IN_ROW:{Ou(this,t);break}case l.IN_COLUMN_GROUP:{Ct(this,t);break}case l.AFTER_BODY:{It(this,t);break}case l.AFTER_AFTER_BODY:{Nt(this,t);break}default:}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Lu(this,t);return}switch(this.insertionMode){case l.INITIAL:case l.BEFORE_HTML:case l.BEFORE_HEAD:case l.IN_HEAD:case l.IN_HEAD_NO_SCRIPT:case l.AFTER_HEAD:case l.IN_BODY:case l.IN_TABLE:case l.IN_CAPTION:case l.IN_COLUMN_GROUP:case l.IN_TABLE_BODY:case l.IN_ROW:case l.IN_CELL:case l.IN_SELECT:case l.IN_SELECT_IN_TABLE:case l.IN_TEMPLATE:case l.IN_FRAMESET:case l.AFTER_FRAMESET:{Lu(this,t);break}case l.IN_TABLE_TEXT:{ve(this,t);break}case l.AFTER_BODY:{ii(this,t);break}case l.AFTER_AFTER_BODY:case l.AFTER_AFTER_FRAMESET:{oi(this,t);break}default:}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case l.INITIAL:{ci(this,t);break}case l.BEFORE_HEAD:case l.IN_HEAD:case l.IN_HEAD_NO_SCRIPT:case l.AFTER_HEAD:{this._err(t,E.misplacedDoctype);break}case l.IN_TABLE_TEXT:{ve(this,t);break}default:}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,E.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Po(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case l.INITIAL:{we(this,t);break}case l.BEFORE_HTML:{li(this,t);break}case l.BEFORE_HEAD:{fi(this,t);break}case l.IN_HEAD:{z(this,t);break}case l.IN_HEAD_NO_SCRIPT:{mi(this,t);break}case l.AFTER_HEAD:{Ti(this,t);break}case l.IN_BODY:{v(this,t);break}case l.IN_TABLE:{_e(this,t);break}case l.IN_TABLE_TEXT:{ve(this,t);break}case l.IN_CAPTION:{Eo(this,t);break}case l.IN_COLUMN_GROUP:{yu(this,t);break}case l.IN_TABLE_BODY:{Lt(this,t);break}case l.IN_ROW:{xt(this,t);break}case l.IN_CELL:{To(this,t);break}case l.IN_SELECT:{Yr(this,t);break}case l.IN_SELECT_IN_TABLE:{Ao(this,t);break}case l.IN_TEMPLATE:{go(this,t);break}case l.AFTER_BODY:{Co(this,t);break}case l.IN_FRAMESET:{Io(this,t);break}case l.AFTER_FRAMESET:{Oo(this,t);break}case l.AFTER_AFTER_BODY:{xo(this,t);break}case l.AFTER_AFTER_FRAMESET:{Ro(this,t);break}default:}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Mo(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case l.INITIAL:{we(this,t);break}case l.BEFORE_HTML:{di(this,t);break}case l.BEFORE_HEAD:{hi(this,t);break}case l.IN_HEAD:{Ei(this,t);break}case l.IN_HEAD_NO_SCRIPT:{pi(this,t);break}case l.AFTER_HEAD:{bi(this,t);break}case l.IN_BODY:{Ot(this,t);break}case l.TEXT:{no(this,t);break}case l.IN_TABLE:{Xe(this,t);break}case l.IN_TABLE_TEXT:{ve(this,t);break}case l.IN_CAPTION:{mo(this,t);break}case l.IN_COLUMN_GROUP:{po(this,t);break}case l.IN_TABLE_BODY:{xu(this,t);break}case l.IN_ROW:{vr(this,t);break}case l.IN_CELL:{bo(this,t);break}case l.IN_SELECT:{qr(this,t);break}case l.IN_SELECT_IN_TABLE:{_o(this,t);break}case l.IN_TEMPLATE:{No(this,t);break}case l.AFTER_BODY:{Qr(this,t);break}case l.IN_FRAMESET:{So(this,t);break}case l.AFTER_FRAMESET:{Lo(this,t);break}case l.AFTER_AFTER_BODY:{Nt(this,t);break}default:}}onEof(t){switch(this.insertionMode){case l.INITIAL:{we(this,t);break}case l.BEFORE_HTML:{Ye(this,t);break}case l.BEFORE_HEAD:{qe(this,t);break}case l.IN_HEAD:{We(this,t);break}case l.IN_HEAD_NO_SCRIPT:{Qe(this,t);break}case l.AFTER_HEAD:{Ge(this,t);break}case l.IN_BODY:case l.IN_TABLE:case l.IN_CAPTION:case l.IN_COLUMN_GROUP:case l.IN_TABLE_BODY:case l.IN_ROW:case l.IN_CELL:case l.IN_SELECT:case l.IN_SELECT_IN_TABLE:{Ur(this,t);break}case l.TEXT:{ro(this,t);break}case l.IN_TABLE_TEXT:{ve(this,t);break}case l.IN_TEMPLATE:{Wr(this,t);break}case l.AFTER_BODY:case l.IN_FRAMESET:case l.AFTER_FRAMESET:case l.AFTER_AFTER_BODY:case l.AFTER_AFTER_FRAMESET:{Du(this,t);break}default:}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===i.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case l.IN_HEAD:case l.IN_HEAD_NO_SCRIPT:case l.AFTER_HEAD:case l.TEXT:case l.IN_COLUMN_GROUP:case l.IN_SELECT:case l.IN_SELECT_IN_TABLE:case l.IN_FRAMESET:case l.AFTER_FRAMESET:{this._insertCharacters(t);break}case l.IN_BODY:case l.IN_CAPTION:case l.IN_CELL:case l.IN_TEMPLATE:case l.AFTER_BODY:case l.AFTER_AFTER_BODY:case l.AFTER_AFTER_FRAMESET:{yr(this,t);break}case l.IN_TABLE:case l.IN_TABLE_BODY:case l.IN_ROW:{Ou(this,t);break}case l.IN_TABLE_TEXT:{Hr(this,t);break}default:}}};function ti(e,t){let u=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return u?e.openElements.contains(u.element)?e.openElements.hasInScope(t.tagID)||(u=null):(e.activeFormattingElements.removeEntry(u),u=null):Br(e,t),u}function ui(e,t){let u=null,r=e.openElements.stackTop;for(;r>=0;r--){let a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(u=a)}return u||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),u}function ni(e,t,u){let r=t,a=e.openElements.getCommonAncestor(t);for(let s=0,c=a;c!==u;s++,c=a){a=e.openElements.getCommonAncestor(c);let d=e.activeFormattingElements.getElementEntry(c),f=d&&s>=Zs;!d||f?(f&&e.activeFormattingElements.removeEntry(d),e.openElements.remove(c)):(c=ri(e,d),r===t&&(e.activeFormattingElements.bookmark=d),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(c,r),r=c)}return r}function ri(e,t){let u=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,u,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function ai(e,t,u){let r=e.treeAdapter.getTagName(t),a=ae(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(u);else{let s=e.treeAdapter.getNamespaceURI(t);a===n.TEMPLATE&&s===p.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,u)}}function si(e,t,u){let r=e.treeAdapter.getNamespaceURI(u.element),{token:a}=u,s=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,a),e.activeFormattingElements.removeEntry(u),e.openElements.remove(u.element),e.openElements.insertAfter(t,s,a.tagID)}function Ru(e,t){for(let u=0;u<$s;u++){let r=ti(e,t);if(!r)break;let a=ui(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;let s=ni(e,a,r.element),c=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(s),c&&ai(e,c,s),si(e,a,r)}}function Lu(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function ii(e,t){e._appendCommentNode(t,e.openElements.items[0])}function oi(e,t){e._appendCommentNode(t,e.document)}function Du(e,t){if(e.stopped=!0,t.location){let u=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=u;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){let s=e.openElements.items[1],c=e.treeAdapter.getNodeSourceCodeLocation(s);c&&!c.endTag&&e._setEndLocation(s,t)}}}}function ci(e,t){e._setDocumentType(t);let u=t.forceQuirks?F.QUIRKS:Ir(t);Cr(t)||e._err(t,E.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,u),e.insertionMode=l.BEFORE_HTML}function we(e,t){e._err(t,E.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,F.QUIRKS),e.insertionMode=l.BEFORE_HTML,e._processToken(t)}function li(e,t){t.tagID===n.HTML?(e._insertElement(t,p.HTML),e.insertionMode=l.BEFORE_HEAD):Ye(e,t)}function di(e,t){let u=t.tagID;(u===n.HTML||u===n.HEAD||u===n.BODY||u===n.BR)&&Ye(e,t)}function Ye(e,t){e._insertFakeRootElement(),e.insertionMode=l.BEFORE_HEAD,e._processToken(t)}function fi(e,t){switch(t.tagID){case n.HTML:{v(e,t);break}case n.HEAD:{e._insertElement(t,p.HTML),e.headElement=e.openElements.current,e.insertionMode=l.IN_HEAD;break}default:qe(e,t)}}function hi(e,t){let u=t.tagID;u===n.HEAD||u===n.BODY||u===n.HTML||u===n.BR?qe(e,t):e._err(t,E.endTagWithoutMatchingOpenElement)}function qe(e,t){e._insertFakeElement(h.HEAD,n.HEAD),e.headElement=e.openElements.current,e.insertionMode=l.IN_HEAD,e._processToken(t)}function z(e,t){switch(t.tagID){case n.HTML:{v(e,t);break}case n.BASE:case n.BASEFONT:case n.BGSOUND:case n.LINK:case n.META:{e._appendElement(t,p.HTML),t.ackSelfClosing=!0;break}case n.TITLE:{e._switchToTextParsing(t,w.RCDATA);break}case n.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,w.RAWTEXT):(e._insertElement(t,p.HTML),e.insertionMode=l.IN_HEAD_NO_SCRIPT);break}case n.NOFRAMES:case n.STYLE:{e._switchToTextParsing(t,w.RAWTEXT);break}case n.SCRIPT:{e._switchToTextParsing(t,w.SCRIPT_DATA);break}case n.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=l.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(l.IN_TEMPLATE);break}case n.HEAD:{e._err(t,E.misplacedStartTagForHeadElement);break}default:We(e,t)}}function Ei(e,t){switch(t.tagID){case n.HEAD:{e.openElements.pop(),e.insertionMode=l.AFTER_HEAD;break}case n.BODY:case n.BR:case n.HTML:{We(e,t);break}case n.TEMPLATE:{de(e,t);break}default:e._err(t,E.endTagWithoutMatchingOpenElement)}}function de(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==n.TEMPLATE&&e._err(t,E.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(n.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,E.endTagWithoutMatchingOpenElement)}function We(e,t){e.openElements.pop(),e.insertionMode=l.AFTER_HEAD,e._processToken(t)}function mi(e,t){switch(t.tagID){case n.HTML:{v(e,t);break}case n.BASEFONT:case n.BGSOUND:case n.HEAD:case n.LINK:case n.META:case n.NOFRAMES:case n.STYLE:{z(e,t);break}case n.NOSCRIPT:{e._err(t,E.nestedNoscriptInHead);break}default:Qe(e,t)}}function pi(e,t){switch(t.tagID){case n.NOSCRIPT:{e.openElements.pop(),e.insertionMode=l.IN_HEAD;break}case n.BR:{Qe(e,t);break}default:e._err(t,E.endTagWithoutMatchingOpenElement)}}function Qe(e,t){let u=t.type===I.EOF?E.openElementsLeftAfterEof:E.disallowedContentInNoscriptInHead;e._err(t,u),e.openElements.pop(),e.insertionMode=l.IN_HEAD,e._processToken(t)}function Ti(e,t){switch(t.tagID){case n.HTML:{v(e,t);break}case n.BODY:{e._insertElement(t,p.HTML),e.framesetOk=!1,e.insertionMode=l.IN_BODY;break}case n.FRAMESET:{e._insertElement(t,p.HTML),e.insertionMode=l.IN_FRAMESET;break}case n.BASE:case n.BASEFONT:case n.BGSOUND:case n.LINK:case n.META:case n.NOFRAMES:case n.SCRIPT:case n.STYLE:case n.TEMPLATE:case n.TITLE:{e._err(t,E.abandonedHeadElementChild),e.openElements.push(e.headElement,n.HEAD),z(e,t),e.openElements.remove(e.headElement);break}case n.HEAD:{e._err(t,E.misplacedStartTagForHeadElement);break}default:Ge(e,t)}}function bi(e,t){switch(t.tagID){case n.BODY:case n.HTML:case n.BR:{Ge(e,t);break}case n.TEMPLATE:{de(e,t);break}default:e._err(t,E.endTagWithoutMatchingOpenElement)}}function Ge(e,t){e._insertFakeElement(h.BODY,n.BODY),e.insertionMode=l.IN_BODY,St(e,t)}function St(e,t){switch(t.type){case I.CHARACTER:{Pr(e,t);break}case I.WHITESPACE_CHARACTER:{yr(e,t);break}case I.COMMENT:{Lu(e,t);break}case I.START_TAG:{v(e,t);break}case I.END_TAG:{Ot(e,t);break}case I.EOF:{Ur(e,t);break}default:}}function yr(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Pr(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Ai(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function _i(e,t){let u=e.openElements.tryPeekProperlyNestedBodyElement();u&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(u,t.attrs))}function gi(e,t){let u=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&u&&(e.treeAdapter.detachNode(u),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,p.HTML),e.insertionMode=l.IN_FRAMESET)}function Ni(e,t){e.openElements.hasInButtonScope(n.P)&&e._closePElement(),e._insertElement(t,p.HTML)}function Ci(e,t){e.openElements.hasInButtonScope(n.P)&&e._closePElement(),be.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,p.HTML)}function Ii(e,t){e.openElements.hasInButtonScope(n.P)&&e._closePElement(),e._insertElement(t,p.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Si(e,t){let u=e.openElements.tmplCount>0;(!e.formElement||u)&&(e.openElements.hasInButtonScope(n.P)&&e._closePElement(),e._insertElement(t,p.HTML),u||(e.formElement=e.openElements.current))}function Oi(e,t){e.framesetOk=!1;let u=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){let a=e.openElements.tagIDs[r];if(u===n.LI&&a===n.LI||(u===n.DD||u===n.DT)&&(a===n.DD||a===n.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==n.ADDRESS&&a!==n.DIV&&a!==n.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(n.P)&&e._closePElement(),e._insertElement(t,p.HTML)}function Li(e,t){e.openElements.hasInButtonScope(n.P)&&e._closePElement(),e._insertElement(t,p.HTML),e.tokenizer.state=w.PLAINTEXT}function xi(e,t){e.openElements.hasInScope(n.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML),e.framesetOk=!1}function Ri(e,t){let u=e.activeFormattingElements.getElementEntryInScopeWithTagName(h.A);u&&(Ru(e,t),e.openElements.remove(u.element),e.activeFormattingElements.removeEntry(u)),e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Di(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function yi(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(n.NOBR)&&(Ru(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,p.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Pi(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Mi(e,t){e.treeAdapter.getDocumentMode(e.document)!==F.QUIRKS&&e.openElements.hasInButtonScope(n.P)&&e._closePElement(),e._insertElement(t,p.HTML),e.framesetOk=!1,e.insertionMode=l.IN_TABLE}function Mr(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,p.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function kr(e){let t=ke(e,Z.TYPE);return t!=null&&t.toLowerCase()===Js}function ki(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,p.HTML),kr(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Bi(e,t){e._appendElement(t,p.HTML),t.ackSelfClosing=!0}function Ui(e,t){e.openElements.hasInButtonScope(n.P)&&e._closePElement(),e._appendElement(t,p.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Hi(e,t){t.tagName=h.IMG,t.tagID=n.IMG,Mr(e,t)}function Fi(e,t){e._insertElement(t,p.HTML),e.skipNextNewLine=!0,e.tokenizer.state=w.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=l.TEXT}function wi(e,t){e.openElements.hasInButtonScope(n.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,w.RAWTEXT)}function vi(e,t){e.framesetOk=!1,e._switchToTextParsing(t,w.RAWTEXT)}function xr(e,t){e._switchToTextParsing(t,w.RAWTEXT)}function Yi(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===l.IN_TABLE||e.insertionMode===l.IN_CAPTION||e.insertionMode===l.IN_TABLE_BODY||e.insertionMode===l.IN_ROW||e.insertionMode===l.IN_CELL?l.IN_SELECT_IN_TABLE:l.IN_SELECT}function qi(e,t){e.openElements.currentTagId===n.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML)}function Wi(e,t){e.openElements.hasInScope(n.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,p.HTML)}function Qi(e,t){e.openElements.hasInScope(n.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(n.RTC),e._insertElement(t,p.HTML)}function Gi(e,t){e._reconstructActiveFormattingElements(),At(t),Fe(t),t.selfClosing?e._appendElement(t,p.MATHML):e._insertElement(t,p.MATHML),t.ackSelfClosing=!0}function Xi(e,t){e._reconstructActiveFormattingElements(),_t(t),Fe(t),t.selfClosing?e._appendElement(t,p.SVG):e._insertElement(t,p.SVG),t.ackSelfClosing=!0}function Rr(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML)}function v(e,t){switch(t.tagID){case n.I:case n.S:case n.B:case n.U:case n.EM:case n.TT:case n.BIG:case n.CODE:case n.FONT:case n.SMALL:case n.STRIKE:case n.STRONG:{Di(e,t);break}case n.A:{Ri(e,t);break}case n.H1:case n.H2:case n.H3:case n.H4:case n.H5:case n.H6:{Ci(e,t);break}case n.P:case n.DL:case n.OL:case n.UL:case n.DIV:case n.DIR:case n.NAV:case n.MAIN:case n.MENU:case n.ASIDE:case n.CENTER:case n.FIGURE:case n.FOOTER:case n.HEADER:case n.HGROUP:case n.DIALOG:case n.DETAILS:case n.ADDRESS:case n.ARTICLE:case n.SEARCH:case n.SECTION:case n.SUMMARY:case n.FIELDSET:case n.BLOCKQUOTE:case n.FIGCAPTION:{Ni(e,t);break}case n.LI:case n.DD:case n.DT:{Oi(e,t);break}case n.BR:case n.IMG:case n.WBR:case n.AREA:case n.EMBED:case n.KEYGEN:{Mr(e,t);break}case n.HR:{Ui(e,t);break}case n.RB:case n.RTC:{Wi(e,t);break}case n.RT:case n.RP:{Qi(e,t);break}case n.PRE:case n.LISTING:{Ii(e,t);break}case n.XMP:{wi(e,t);break}case n.SVG:{Xi(e,t);break}case n.HTML:{Ai(e,t);break}case n.BASE:case n.LINK:case n.META:case n.STYLE:case n.TITLE:case n.SCRIPT:case n.BGSOUND:case n.BASEFONT:case n.TEMPLATE:{z(e,t);break}case n.BODY:{_i(e,t);break}case n.FORM:{Si(e,t);break}case n.NOBR:{yi(e,t);break}case n.MATH:{Gi(e,t);break}case n.TABLE:{Mi(e,t);break}case n.INPUT:{ki(e,t);break}case n.PARAM:case n.TRACK:case n.SOURCE:{Bi(e,t);break}case n.IMAGE:{Hi(e,t);break}case n.BUTTON:{xi(e,t);break}case n.APPLET:case n.OBJECT:case n.MARQUEE:{Pi(e,t);break}case n.IFRAME:{vi(e,t);break}case n.SELECT:{Yi(e,t);break}case n.OPTION:case n.OPTGROUP:{qi(e,t);break}case n.NOEMBED:case n.NOFRAMES:{xr(e,t);break}case n.FRAMESET:{gi(e,t);break}case n.TEXTAREA:{Fi(e,t);break}case n.NOSCRIPT:{e.options.scriptingEnabled?xr(e,t):Rr(e,t);break}case n.PLAINTEXT:{Li(e,t);break}case n.COL:case n.TH:case n.TD:case n.TR:case n.HEAD:case n.FRAME:case n.TBODY:case n.TFOOT:case n.THEAD:case n.CAPTION:case n.COLGROUP:break;default:Rr(e,t)}}function Vi(e,t){if(e.openElements.hasInScope(n.BODY)&&(e.insertionMode=l.AFTER_BODY,e.options.sourceCodeLocationInfo)){let u=e.openElements.tryPeekProperlyNestedBodyElement();u&&e._setEndLocation(u,t)}}function Ki(e,t){e.openElements.hasInScope(n.BODY)&&(e.insertionMode=l.AFTER_BODY,Qr(e,t))}function zi(e,t){let u=t.tagID;e.openElements.hasInScope(u)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u))}function ji(e){let t=e.openElements.tmplCount>0,{formElement:u}=e;t||(e.formElement=null),(u||t)&&e.openElements.hasInScope(n.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(n.FORM):u&&e.openElements.remove(u))}function Ji(e){e.openElements.hasInButtonScope(n.P)||e._insertFakeElement(h.P,n.P),e._closePElement()}function $i(e){e.openElements.hasInListItemScope(n.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(n.LI),e.openElements.popUntilTagNamePopped(n.LI))}function Zi(e,t){let u=t.tagID;e.openElements.hasInScope(u)&&(e.openElements.generateImpliedEndTagsWithExclusion(u),e.openElements.popUntilTagNamePopped(u))}function eo(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function to(e,t){let u=t.tagID;e.openElements.hasInScope(u)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u),e.activeFormattingElements.clearToLastMarker())}function uo(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(h.BR,n.BR),e.openElements.pop(),e.framesetOk=!1}function Br(e,t){let u=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){let s=e.openElements.items[a],c=e.openElements.tagIDs[a];if(r===c&&(r!==n.UNKNOWN||e.treeAdapter.getTagName(s)===u)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(s,c))break}}function Ot(e,t){switch(t.tagID){case n.A:case n.B:case n.I:case n.S:case n.U:case n.EM:case n.TT:case n.BIG:case n.CODE:case n.FONT:case n.NOBR:case n.SMALL:case n.STRIKE:case n.STRONG:{Ru(e,t);break}case n.P:{Ji(e);break}case n.DL:case n.UL:case n.OL:case n.DIR:case n.DIV:case n.NAV:case n.PRE:case n.MAIN:case n.MENU:case n.ASIDE:case n.BUTTON:case n.CENTER:case n.FIGURE:case n.FOOTER:case n.HEADER:case n.HGROUP:case n.DIALOG:case n.ADDRESS:case n.ARTICLE:case n.DETAILS:case n.SEARCH:case n.SECTION:case n.SUMMARY:case n.LISTING:case n.FIELDSET:case n.BLOCKQUOTE:case n.FIGCAPTION:{zi(e,t);break}case n.LI:{$i(e);break}case n.DD:case n.DT:{Zi(e,t);break}case n.H1:case n.H2:case n.H3:case n.H4:case n.H5:case n.H6:{eo(e);break}case n.BR:{uo(e);break}case n.BODY:{Vi(e,t);break}case n.HTML:{Ki(e,t);break}case n.FORM:{ji(e);break}case n.APPLET:case n.OBJECT:case n.MARQUEE:{to(e,t);break}case n.TEMPLATE:{de(e,t);break}default:Br(e,t)}}function Ur(e,t){e.tmplInsertionModeStack.length>0?Wr(e,t):Du(e,t)}function no(e,t){var u;t.tagID===n.SCRIPT&&((u=e.scriptHandler)===null||u===void 0||u.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function ro(e,t){e._err(t,E.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Ou(e,t){if(Dr.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=l.IN_TABLE_TEXT,t.type){case I.CHARACTER:{Fr(e,t);break}case I.WHITESPACE_CHARACTER:{Hr(e,t);break}}else Ve(e,t)}function ao(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,p.HTML),e.insertionMode=l.IN_CAPTION}function so(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,p.HTML),e.insertionMode=l.IN_COLUMN_GROUP}function io(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(h.COLGROUP,n.COLGROUP),e.insertionMode=l.IN_COLUMN_GROUP,yu(e,t)}function oo(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,p.HTML),e.insertionMode=l.IN_TABLE_BODY}function co(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(h.TBODY,n.TBODY),e.insertionMode=l.IN_TABLE_BODY,Lt(e,t)}function lo(e,t){e.openElements.hasInTableScope(n.TABLE)&&(e.openElements.popUntilTagNamePopped(n.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function fo(e,t){kr(t)?e._appendElement(t,p.HTML):Ve(e,t),t.ackSelfClosing=!0}function ho(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,p.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function _e(e,t){switch(t.tagID){case n.TD:case n.TH:case n.TR:{co(e,t);break}case n.STYLE:case n.SCRIPT:case n.TEMPLATE:{z(e,t);break}case n.COL:{io(e,t);break}case n.FORM:{ho(e,t);break}case n.TABLE:{lo(e,t);break}case n.TBODY:case n.TFOOT:case n.THEAD:{oo(e,t);break}case n.INPUT:{fo(e,t);break}case n.CAPTION:{ao(e,t);break}case n.COLGROUP:{so(e,t);break}default:Ve(e,t)}}function Xe(e,t){switch(t.tagID){case n.TABLE:{e.openElements.hasInTableScope(n.TABLE)&&(e.openElements.popUntilTagNamePopped(n.TABLE),e._resetInsertionMode());break}case n.TEMPLATE:{de(e,t);break}case n.BODY:case n.CAPTION:case n.COL:case n.COLGROUP:case n.HTML:case n.TBODY:case n.TD:case n.TFOOT:case n.TH:case n.THEAD:case n.TR:break;default:Ve(e,t)}}function Ve(e,t){let u=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,St(e,t),e.fosterParentingEnabled=u}function Hr(e,t){e.pendingCharacterTokens.push(t)}function Fr(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function ve(e,t){let u=0;if(e.hasNonWhitespacePendingCharacterToken)for(;u<e.pendingCharacterTokens.length;u++)Ve(e,e.pendingCharacterTokens[u]);else for(;u<e.pendingCharacterTokens.length;u++)e._insertCharacters(e.pendingCharacterTokens[u]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}var wr=new Set([n.CAPTION,n.COL,n.COLGROUP,n.TBODY,n.TD,n.TFOOT,n.TH,n.THEAD,n.TR]);function Eo(e,t){let u=t.tagID;wr.has(u)?e.openElements.hasInTableScope(n.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=l.IN_TABLE,_e(e,t)):v(e,t)}function mo(e,t){let u=t.tagID;switch(u){case n.CAPTION:case n.TABLE:{e.openElements.hasInTableScope(n.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=l.IN_TABLE,u===n.TABLE&&Xe(e,t));break}case n.BODY:case n.COL:case n.COLGROUP:case n.HTML:case n.TBODY:case n.TD:case n.TFOOT:case n.TH:case n.THEAD:case n.TR:break;default:Ot(e,t)}}function yu(e,t){switch(t.tagID){case n.HTML:{v(e,t);break}case n.COL:{e._appendElement(t,p.HTML),t.ackSelfClosing=!0;break}case n.TEMPLATE:{z(e,t);break}default:Ct(e,t)}}function po(e,t){switch(t.tagID){case n.COLGROUP:{e.openElements.currentTagId===n.COLGROUP&&(e.openElements.pop(),e.insertionMode=l.IN_TABLE);break}case n.TEMPLATE:{de(e,t);break}case n.COL:break;default:Ct(e,t)}}function Ct(e,t){e.openElements.currentTagId===n.COLGROUP&&(e.openElements.pop(),e.insertionMode=l.IN_TABLE,e._processToken(t))}function Lt(e,t){switch(t.tagID){case n.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,p.HTML),e.insertionMode=l.IN_ROW;break}case n.TH:case n.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(h.TR,n.TR),e.insertionMode=l.IN_ROW,xt(e,t);break}case n.CAPTION:case n.COL:case n.COLGROUP:case n.TBODY:case n.TFOOT:case n.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=l.IN_TABLE,_e(e,t));break}default:_e(e,t)}}function xu(e,t){let u=t.tagID;switch(t.tagID){case n.TBODY:case n.TFOOT:case n.THEAD:{e.openElements.hasInTableScope(u)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=l.IN_TABLE);break}case n.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=l.IN_TABLE,Xe(e,t));break}case n.BODY:case n.CAPTION:case n.COL:case n.COLGROUP:case n.HTML:case n.TD:case n.TH:case n.TR:break;default:Xe(e,t)}}function xt(e,t){switch(t.tagID){case n.TH:case n.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,p.HTML),e.insertionMode=l.IN_CELL,e.activeFormattingElements.insertMarker();break}case n.CAPTION:case n.COL:case n.COLGROUP:case n.TBODY:case n.TFOOT:case n.THEAD:case n.TR:{e.openElements.hasInTableScope(n.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=l.IN_TABLE_BODY,Lt(e,t));break}default:_e(e,t)}}function vr(e,t){switch(t.tagID){case n.TR:{e.openElements.hasInTableScope(n.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=l.IN_TABLE_BODY);break}case n.TABLE:{e.openElements.hasInTableScope(n.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=l.IN_TABLE_BODY,xu(e,t));break}case n.TBODY:case n.TFOOT:case n.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(n.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=l.IN_TABLE_BODY,xu(e,t));break}case n.BODY:case n.CAPTION:case n.COL:case n.COLGROUP:case n.HTML:case n.TD:case n.TH:break;default:Xe(e,t)}}function To(e,t){let u=t.tagID;wr.has(u)?(e.openElements.hasInTableScope(n.TD)||e.openElements.hasInTableScope(n.TH))&&(e._closeTableCell(),xt(e,t)):v(e,t)}function bo(e,t){let u=t.tagID;switch(u){case n.TD:case n.TH:{e.openElements.hasInTableScope(u)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=l.IN_ROW);break}case n.TABLE:case n.TBODY:case n.TFOOT:case n.THEAD:case n.TR:{e.openElements.hasInTableScope(u)&&(e._closeTableCell(),vr(e,t));break}case n.BODY:case n.CAPTION:case n.COL:case n.COLGROUP:case n.HTML:break;default:Ot(e,t)}}function Yr(e,t){switch(t.tagID){case n.HTML:{v(e,t);break}case n.OPTION:{e.openElements.currentTagId===n.OPTION&&e.openElements.pop(),e._insertElement(t,p.HTML);break}case n.OPTGROUP:{e.openElements.currentTagId===n.OPTION&&e.openElements.pop(),e.openElements.currentTagId===n.OPTGROUP&&e.openElements.pop(),e._insertElement(t,p.HTML);break}case n.HR:{e.openElements.currentTagId===n.OPTION&&e.openElements.pop(),e.openElements.currentTagId===n.OPTGROUP&&e.openElements.pop(),e._appendElement(t,p.HTML),t.ackSelfClosing=!0;break}case n.INPUT:case n.KEYGEN:case n.TEXTAREA:case n.SELECT:{e.openElements.hasInSelectScope(n.SELECT)&&(e.openElements.popUntilTagNamePopped(n.SELECT),e._resetInsertionMode(),t.tagID!==n.SELECT&&e._processStartTag(t));break}case n.SCRIPT:case n.TEMPLATE:{z(e,t);break}default:}}function qr(e,t){switch(t.tagID){case n.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===n.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===n.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===n.OPTGROUP&&e.openElements.pop();break}case n.OPTION:{e.openElements.currentTagId===n.OPTION&&e.openElements.pop();break}case n.SELECT:{e.openElements.hasInSelectScope(n.SELECT)&&(e.openElements.popUntilTagNamePopped(n.SELECT),e._resetInsertionMode());break}case n.TEMPLATE:{de(e,t);break}default:}}function Ao(e,t){let u=t.tagID;u===n.CAPTION||u===n.TABLE||u===n.TBODY||u===n.TFOOT||u===n.THEAD||u===n.TR||u===n.TD||u===n.TH?(e.openElements.popUntilTagNamePopped(n.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Yr(e,t)}function _o(e,t){let u=t.tagID;u===n.CAPTION||u===n.TABLE||u===n.TBODY||u===n.TFOOT||u===n.THEAD||u===n.TR||u===n.TD||u===n.TH?e.openElements.hasInTableScope(u)&&(e.openElements.popUntilTagNamePopped(n.SELECT),e._resetInsertionMode(),e.onEndTag(t)):qr(e,t)}function go(e,t){switch(t.tagID){case n.BASE:case n.BASEFONT:case n.BGSOUND:case n.LINK:case n.META:case n.NOFRAMES:case n.SCRIPT:case n.STYLE:case n.TEMPLATE:case n.TITLE:{z(e,t);break}case n.CAPTION:case n.COLGROUP:case n.TBODY:case n.TFOOT:case n.THEAD:{e.tmplInsertionModeStack[0]=l.IN_TABLE,e.insertionMode=l.IN_TABLE,_e(e,t);break}case n.COL:{e.tmplInsertionModeStack[0]=l.IN_COLUMN_GROUP,e.insertionMode=l.IN_COLUMN_GROUP,yu(e,t);break}case n.TR:{e.tmplInsertionModeStack[0]=l.IN_TABLE_BODY,e.insertionMode=l.IN_TABLE_BODY,Lt(e,t);break}case n.TD:case n.TH:{e.tmplInsertionModeStack[0]=l.IN_ROW,e.insertionMode=l.IN_ROW,xt(e,t);break}default:e.tmplInsertionModeStack[0]=l.IN_BODY,e.insertionMode=l.IN_BODY,v(e,t)}}function No(e,t){t.tagID===n.TEMPLATE&&de(e,t)}function Wr(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(n.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Du(e,t)}function Co(e,t){t.tagID===n.HTML?v(e,t):It(e,t)}function Qr(e,t){var u;if(t.tagID===n.HTML){if(e.fragmentContext||(e.insertionMode=l.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===n.HTML){e._setEndLocation(e.openElements.items[0],t);let r=e.openElements.items[1];r&&!(!((u=e.treeAdapter.getNodeSourceCodeLocation(r))===null||u===void 0)&&u.endTag)&&e._setEndLocation(r,t)}}else It(e,t)}function It(e,t){e.insertionMode=l.IN_BODY,St(e,t)}function Io(e,t){switch(t.tagID){case n.HTML:{v(e,t);break}case n.FRAMESET:{e._insertElement(t,p.HTML);break}case n.FRAME:{e._appendElement(t,p.HTML),t.ackSelfClosing=!0;break}case n.NOFRAMES:{z(e,t);break}default:}}function So(e,t){t.tagID===n.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==n.FRAMESET&&(e.insertionMode=l.AFTER_FRAMESET))}function Oo(e,t){switch(t.tagID){case n.HTML:{v(e,t);break}case n.NOFRAMES:{z(e,t);break}default:}}function Lo(e,t){t.tagID===n.HTML&&(e.insertionMode=l.AFTER_AFTER_FRAMESET)}function xo(e,t){t.tagID===n.HTML?v(e,t):Nt(e,t)}function Nt(e,t){e.insertionMode=l.IN_BODY,St(e,t)}function Ro(e,t){switch(t.tagID){case n.HTML:{v(e,t);break}case n.NOFRAMES:{z(e,t);break}default:}}function Do(e,t){t.chars=x,e._insertCharacters(t)}function yo(e,t){e._insertCharacters(t),e.framesetOk=!1}function Gr(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==p.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Po(e,t){if(Cu(t))Gr(e),e._startTagOutsideForeignContent(t);else{let u=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(u);r===p.MATHML?At(t):r===p.SVG&&(Iu(t),_t(t)),Fe(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Mo(e,t){if(t.tagID===n.P||t.tagID===n.BR){Gr(e),e._endTagOutsideForeignContent(t);return}for(let u=e.openElements.stackTop;u>0;u--){let r=e.openElements.items[u];if(e.treeAdapter.getNamespaceURI(r)===p.HTML){e._endTagOutsideForeignContent(t);break}let a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(u);break}}}var ko=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),Eh=String.prototype.codePointAt!=null?(e,t)=>e.codePointAt(t):(e,t)=>(e.charCodeAt(t)&64512)===55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function Pu(e,t){return function(r){let a,s=0,c="";for(;a=e.exec(r);)s!==a.index&&(c+=r.substring(s,a.index)),c+=t.get(a[0].charCodeAt(0)),s=a.index+1;return c+r.substring(s)}}var mh=Pu(/[&<>'"]/g,ko),Bo=Pu(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),Uo=Pu(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]));var _h=new Set([h.AREA,h.BASE,h.BASEFONT,h.BGSOUND,h.BR,h.COL,h.EMBED,h.FRAME,h.HR,h.IMG,h.INPUT,h.KEYGEN,h.LINK,h.META,h.PARAM,h.SOURCE,h.TRACK,h.WBR]);function Xr(e,t){return Ae.parse(e,t)}function Vr(e,t,u){typeof e=="string"&&(u=t,t=e,e=null);let r=Ae.getFragmentParser(e,u);return r.tokenizer.write(t,!0),r.getFragment()}function ku(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Kr(e.position):"start"in e||"end"in e?Kr(e):"line"in e||"column"in e?Mu(e):""}function Mu(e){return zr(e&&e.line)+":"+zr(e&&e.column)}function Kr(e){return Mu(e&&e.start)+"-"+Mu(e&&e.end)}function zr(e){return e&&typeof e=="number"?e:1}var M=class extends Error{constructor(t,u,r){super(),typeof u=="string"&&(r=u,u=void 0);let a="",s={},c=!1;if(u&&("line"in u&&"column"in u?s={place:u}:"start"in u&&"end"in u?s={place:u}:"type"in u?s={ancestors:[u],place:u.position}:s={...u}),typeof t=="string"?a=t:!s.cause&&t&&(c=!0,a=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){let f=r.indexOf(":");f===-1?s.ruleId=r:(s.source=r.slice(0,f),s.ruleId=r.slice(f+1))}if(!s.place&&s.ancestors&&s.ancestors){let f=s.ancestors[s.ancestors.length-1];f&&(s.place=f.position)}let d=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=d?d.line:void 0,this.name=ku(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=c&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}};M.prototype.file="";M.prototype.name="";M.prototype.reason="";M.prototype.message="";M.prototype.stack="";M.prototype.column=void 0;M.prototype.line=void 0;M.prototype.ancestors=void 0;M.prototype.cause=void 0;M.prototype.fatal=void 0;M.prototype.place=void 0;M.prototype.ruleId=void 0;M.prototype.source=void 0;import{default as j}from"node:path";import{default as jr}from"node:process";import{fileURLToPath as Jr}from"node:url";function Rt(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}var Bu=["history","path","basename","stem","extname","dirname"],ge=class{constructor(t){let u;t?Rt(t)?u={path:t}:typeof t=="string"||Ho(t)?u={value:t}:u=t:u={},this.cwd="cwd"in u?"":jr.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Bu.length;){let s=Bu[r];s in u&&u[s]!==void 0&&u[s]!==null&&(this[s]=s==="history"?[...u[s]]:u[s])}let a;for(a in u)Bu.includes(a)||(this[a]=u[a])}get basename(){return typeof this.path=="string"?j.basename(this.path):void 0}set basename(t){Hu(t,"basename"),Uu(t,"basename"),this.path=j.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?j.dirname(this.path):void 0}set dirname(t){$r(this.basename,"dirname"),this.path=j.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?j.extname(this.path):void 0}set extname(t){if(Uu(t,"extname"),$r(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=j.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Rt(t)&&(t=Jr(t)),Hu(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?j.basename(this.path,this.extname):void 0}set stem(t){Hu(t,"stem"),Uu(t,"stem"),this.path=j.join(this.dirname||"",t+(this.extname||""))}fail(t,u,r){let a=this.message(t,u,r);throw a.fatal=!0,a}info(t,u,r){let a=this.message(t,u,r);return a.fatal=void 0,a}message(t,u,r){let a=new M(t,u,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function Uu(e,t){if(e&&e.includes(j.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+j.sep+"`")}function Hu(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function $r(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Ho(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var Zr={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `-->` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:"Unexpected too big numeric character reference",description:"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},closingOfElementWithOpenChildElements:{reason:"Unexpected closing tag with open child elements",description:"Unexpectedly closing tag. Expected other tags to be closed first",url:!1},controlCharacterInInputStream:{reason:"Unexpected control character",description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:"Unexpected control character reference",description:"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:"Unexpected duplicate attribute",description:"Unexpectedly double attribute. Expected attributes to occur only once"},endTagWithAttributes:{reason:"Unexpected attribute on closing tag",description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:"Unexpected slash at end of closing tag",description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:"Unexpected unopened end tag",description:"Unexpected end tag. Expected no end tag or another end tag",url:!1},eofBeforeTagName:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected tag name instead"},eofInCdata:{reason:"Unexpected end of file in CDATA",description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:"Unexpected end of file in comment",description:"Unexpected end of file. Expected `-->` to close the comment"},eofInDoctype:{reason:"Unexpected end of file in doctype",description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:"Unexpected end of file in element that can only contain text",description:"Unexpected end of file. Expected text or a closing tag",url:!1},eofInScriptHtmlCommentLikeText:{reason:"Unexpected end of file in comment inside script",description:"Unexpected end of file. Expected `-->` to close the comment"},eofInTag:{reason:"Unexpected end of file in tag",description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:"Incorrectly closed comment",description:"Unexpected `%c-1`. Expected `-->` to close the comment"},incorrectlyOpenedComment:{reason:"Incorrectly opened comment",description:"Unexpected `%c`. Expected `<!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:"Invalid sequence after doctype name",description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:"Invalid first character in tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:"Misplaced doctype",description:"Unexpected doctype. Expected doctype before head",url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:"Missing attribute value",description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:"Missing doctype before other content",description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:"Missing doctype name",description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:"Missing public identifier in doctype",description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:"Missing system identifier in doctype",description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:"Missing name in end tag",description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:"Missing quote before public identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:"Missing quote before system identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:"Missing semicolon after character reference",description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:"Missing whitespace after public identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:"Missing whitespace after system identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:"Missing whitespace before doctype name",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:"Missing whitespace between attributes",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:"Missing whitespace between public and system identifiers in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:"Unexpected nested comment",description:"Unexpected `<!--`. Expected `-->`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:"Unexpected non-conforming doctype declaration",description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:"Unexpected trailing slash on start tag of non-void element",description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:"Unexpected noncharacter code point referenced by character reference",description:"Unexpected code point. Do not use noncharacters in HTML"},noncharacterInInputStream:{reason:"Unexpected noncharacter character",description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:"Unexpected NULL character referenced by character reference",description:"Unexpected code point. Do not use NULL characters in HTML"},openElementsLeftAfterEof:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected closing tag instead",url:!1},surrogateCharacterReference:{reason:"Unexpected surrogate character referenced by character reference",description:"Unexpected code point. Do not use lone surrogate characters in HTML"},surrogateInInputStream:{reason:"Unexpected surrogate character",description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:"Invalid character after system identifier in doctype",description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:"Unexpected character in attribute name",description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:"Unexpected character in unquoted attribute value",description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:"Unexpected equals sign before attribute name",description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:"Unexpected NULL character",description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:"Unexpected question mark instead of tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:"Unexpected slash in tag",description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:"Unexpected unknown named character reference",description:"Unexpected character reference. Expected known named character references"}};var Fo="https://html.spec.whatwg.org/multipage/parsing.html#parse-error-",wo=/-[a-z]/g,vo=/%c(?:([-+])(\d+))?/g,Yo=/%x/g,qo={2:!0,1:!1,0:null},Wo={};function Fu(e,t){let u=t||Wo,r=u.onerror,a=e instanceof ge?e:new ge(e),s=u.fragment?Vr:Xr,c=String(a),d=s(c,{sourceCodeLocationInfo:!0,onParseError:u.onerror?f:null,scriptingEnabled:!1});return Eu(d,{file:a,space:u.space,verbose:u.verbose});function f(m){let A=m.code,_=Qo(A),S=u[_],O=S==null?!0:S,y=typeof O=="number"?O:O?1:0;if(y){let Q=Zr[_];let k=new M(R(Q.reason),{place:{start:{line:m.startLine,column:m.startCol,offset:m.startOffset},end:{line:m.endLine,column:m.endCol,offset:m.endOffset}},ruleId:A,source:"hast-util-from-html"});a.path&&(k.file=a.path,k.name=a.path+":"+k.name),k.fatal=qo[y],k.note=R(Q.description),k.url=Q.url===!1?void 0:Fo+A,r(k)}function R(Q){return Q.replace(vo,k).replace(Yo,Dt);function k(Ko,ea,wu){let ta=(wu?Number.parseInt(wu,10):0)*(ea==="-"?-1:1),ua=c.charAt(m.startOffset+ta);return Xo(ua)}function Dt(){return Vo(c.charCodeAt(m.startOffset))}}}}function Qo(e){return e.replace(wo,Go)}function Go(e){return e.charAt(1).toUpperCase()}function Xo(e){return e==="`"?"` ` `":e}function Vo(e){return"0x"+e.toString(16).toUpperCase()}var hE=()=>{let e=[];return{block:async(t,u)=>{var r;if(u.type==="html"){let a=$t(Fu(u.value,{fragment:!0}));Object.assign(u,a),vu.includes((r=a==null?void 0:a.children[0])==null?void 0:r.type)&&(u.type="paragraph")}return[]},inline:async(t,u,r)=>{var a,s,c,d,f,m;if(u.type==="html"){let A=(s=(a=u.value)==null?void 0:a.trim())!=null?s:"";console.log("inline html",u);let _={},S=A.split(" ")[0].slice(1);if(S.startsWith("/")){let O=e.pop();O&&Object.keys(r).forEach(y=>{O[y]===void 0&&delete r[y],Object.assign(r,O)})}else A.endsWith("/>")||e.push({...r});if((c=A.match(/style *= *".*?"/))==null||c[0].split('"')[1].split(";").filter(Boolean).forEach(O=>{let[y,R]=O.split(":");switch(y.trim().toLowerCase()){case"font-weight":R.trim()==="bold"&&(_.bold=!0);break;case"font-style":R.trim()==="italic"&&(_.italics=!0);break;case"text-decoration":R.trim()==="underline"&&(_.underline={});break;case"color":_.color=Yu(R.trim());break;case"font-family":_.font=R.trim();break;case"text-transform":R.trim()==="uppercase"&&(_.allCaps=!0);break;case"border":_.border={style:t.BorderStyle.SINGLE,size:6};break;case"vertical-align":R.trim()==="sub"?_.subScript=!0:R.trim()==="super"&&(_.superScript=!0);break;default:console.warn(`Unsupported style: ${y.trim()}->${R.trim()}`)}}),Object.assign(r,_),S==="img"){let O=(d=u.value.match(/src *= *".*?"/))==null?void 0:d[0].split('"')[1];Object.assign(u,{type:"image",url:O})}else S==="a"?Object.assign(u,{type:"link",url:(m=(f=u.value.match(/href *= *".*?"/))==null?void 0:f[0].split('"')[1])!=null?m:""}):A.endsWith("</a>")||(u.type="")}return[]}}};export{hE as a};
|