@inploi/plugin-kin 2.3.2 → 2.4.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.
@@ -1,55 +1,55 @@
1
- "use strict";var d0=Object.defineProperty;var h0=(e,t,n)=>t in e?d0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var de=(e,t,n)=>(h0(e,typeof t!="symbol"?t+"":t,n),n);const gi=require("@inploi/sdk");var Qr,W,yo,Ao,zt,ms,Co,qi,wo,un={},So=[],f0=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Kr=Array.isArray;function Lt(e,t){for(var n in t)e[n]=t[n];return e}function Io(e){var t=e.parentNode;t&&t.removeChild(e)}function Ot(e,t,n){var r,i,a,s={};for(a in t)a=="key"?r=t[a]:a=="ref"?i=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?Qr.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)s[a]===void 0&&(s[a]=e.defaultProps[a]);return yr(e,s,r,i,null)}function yr(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++yo};return i==null&&W.vnode!=null&&W.vnode(a),a}function $e(e){return e.children}function ft(e,t){this.props=e,this.context=t}function vr(e,t){if(t==null)return e.__?vr(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?vr(e):null}function No(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return No(e)}}function ji(e){(!e.__d&&(e.__d=!0)&&zt.push(e)&&!Lr.__r++||ms!==W.debounceRendering)&&((ms=W.debounceRendering)||Co)(Lr)}function Lr(){var e,t,n,r,i,a,s,u,o;for(zt.sort(qi);e=zt.shift();)e.__d&&(t=zt.length,r=void 0,i=void 0,a=void 0,u=(s=(n=e).__v).__e,(o=n.__P)&&(r=[],i=[],(a=Lt({},s)).__v=s.__v+1,Ea(o,s,a,n.__n,o.ownerSVGElement!==void 0,s.__h!=null?[u]:null,r,u??vr(s),s.__h,i),Oo(r,s,i),s.__e!=u&&No(s)),zt.length>t&&zt.sort(qi));Lr.__r=0}function vo(e,t,n,r,i,a,s,u,o,l,h){var d,p,f,m,T,C,y,I,S,D,R=0,x=r&&r.__k||So,F=x.length,P=F,U=t.length;for(n.__k=[],d=0;d<U;d++)(m=n.__k[d]=(m=t[d])==null||typeof m=="boolean"||typeof m=="function"?null:typeof m=="string"||typeof m=="number"||typeof m=="bigint"?yr(null,m,null,null,m):Kr(m)?yr($e,{children:m},null,null,null):m.__b>0?yr(m.type,m.props,m.key,m.ref?m.ref:null,m.__v):m)!=null&&(m.__=n,m.__b=n.__b+1,(I=p0(m,x,y=d+R,P))===-1?f=un:(f=x[I]||un,x[I]=void 0,P--),Ea(e,m,f,i,a,s,u,o,l,h),T=m.__e,(p=m.ref)&&f.ref!=p&&(f.ref&&Ta(f.ref,null,m),h.push(p,m.__c||T,m)),T!=null&&(C==null&&(C=T),D=!(S=f===un||f.__v===null)&&I===y,S?I==-1&&R--:I!==y&&(I===y+1?(R++,D=!0):I>y?P>U-y?(R+=I-y,D=!0):R--:R=I<y&&I==y-1?I-y:0),y=d+R,D=D||I==d&&!S,typeof m.type!="function"||I===y&&f.__k!==m.__k?typeof m.type=="function"||D?m.__d!==void 0?(o=m.__d,m.__d=void 0):o=T.nextSibling:o=Ro(e,T,o):o=Lo(m,o,e),typeof n.type=="function"&&(n.__d=o)));for(n.__e=C,d=F;d--;)x[d]!=null&&(typeof n.type=="function"&&x[d].__e!=null&&x[d].__e==n.__d&&(n.__d=x[d].__e.nextSibling),Do(x[d],x[d]))}function Lo(e,t,n){for(var r,i=e.__k,a=0;i&&a<i.length;a++)(r=i[a])&&(r.__=e,t=typeof r.type=="function"?Lo(r,t,n):Ro(n,r.__e,t));return t}function Rr(e,t){return t=t||[],e==null||typeof e=="boolean"||(Kr(e)?e.some(function(n){Rr(n,t)}):t.push(e)),t}function Ro(e,t,n){return n==null||n.parentNode!==e?e.insertBefore(t,null):t==n&&t.parentNode!=null||e.insertBefore(t,n),t.nextSibling}function p0(e,t,n,r){var i=e.key,a=e.type,s=n-1,u=n+1,o=t[n];if(o===null||o&&i==o.key&&a===o.type)return n;if(r>(o!=null?1:0))for(;s>=0||u<t.length;){if(s>=0){if((o=t[s])&&i==o.key&&a===o.type)return s;s--}if(u<t.length){if((o=t[u])&&i==o.key&&a===o.type)return u;u++}}return-1}function m0(e,t,n,r,i){var a;for(a in n)a==="children"||a==="key"||a in t||Or(e,a,null,n[a],r);for(a in t)i&&typeof t[a]!="function"||a==="children"||a==="key"||a==="value"||a==="checked"||n[a]===t[a]||Or(e,a,t[a],n[a],r)}function gs(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||f0.test(t)?n:n+"px"}function Or(e,t,n,r,i){var a;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||gs(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||gs(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")a=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?r||e.addEventListener(t,a?Es:bs,a):e.removeEventListener(t,a?Es:bs,a);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function bs(e){return this.l[e.type+!1](W.event?W.event(e):e)}function Es(e){return this.l[e.type+!0](W.event?W.event(e):e)}function Ea(e,t,n,r,i,a,s,u,o,l){var h,d,p,f,m,T,C,y,I,S,D,R,x,F,P,U=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(o=n.__h,u=t.__e=n.__e,t.__h=null,a=[u]),(h=W.__b)&&h(t);try{e:if(typeof U=="function"){if(y=t.props,I=(h=U.contextType)&&r[h.__c],S=h?I?I.props.value:h.__:r,n.__c?C=(d=t.__c=n.__c).__=d.__E:("prototype"in U&&U.prototype.render?t.__c=d=new U(y,S):(t.__c=d=new ft(y,S),d.constructor=U,d.render=b0),I&&I.sub(d),d.props=y,d.state||(d.state={}),d.context=S,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),d.__s==null&&(d.__s=d.state),U.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=Lt({},d.__s)),Lt(d.__s,U.getDerivedStateFromProps(y,d.__s))),f=d.props,m=d.state,d.__v=t,p)U.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(U.getDerivedStateFromProps==null&&y!==f&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(y,S),!d.__e&&(d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(y,d.__s,S)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=y,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(N){N&&(N.__=t)}),D=0;D<d._sb.length;D++)d.__h.push(d._sb[D]);d._sb=[],d.__h.length&&s.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(y,d.__s,S),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(f,m,T)})}if(d.context=S,d.props=y,d.__P=e,d.__e=!1,R=W.__r,x=0,"prototype"in U&&U.prototype.render){for(d.state=d.__s,d.__d=!1,R&&R(t),h=d.render(d.props,d.state,d.context),F=0;F<d._sb.length;F++)d.__h.push(d._sb[F]);d._sb=[]}else do d.__d=!1,R&&R(t),h=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++x<25);d.state=d.__s,d.getChildContext!=null&&(r=Lt(Lt({},r),d.getChildContext())),p||d.getSnapshotBeforeUpdate==null||(T=d.getSnapshotBeforeUpdate(f,m)),vo(e,Kr(P=h!=null&&h.type===$e&&h.key==null?h.props.children:h)?P:[P],t,n,r,i,a,s,u,o,l),d.base=t.__e,t.__h=null,d.__h.length&&s.push(d),C&&(d.__E=d.__=null)}else a==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=g0(n.__e,t,n,r,i,a,s,o,l);(h=W.diffed)&&h(t)}catch(N){t.__v=null,(o||a!=null)&&(t.__e=u,t.__h=!!o,a[a.indexOf(u)]=null),W.__e(N,t,n)}}function Oo(e,t,n){for(var r=0;r<n.length;r++)Ta(n[r],n[++r],n[++r]);W.__c&&W.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(a){a.call(i)})}catch(a){W.__e(a,i.__v)}})}function g0(e,t,n,r,i,a,s,u,o){var l,h,d,p=n.props,f=t.props,m=t.type,T=0;if(m==="svg"&&(i=!0),a!=null){for(;T<a.length;T++)if((l=a[T])&&"setAttribute"in l==!!m&&(m?l.localName===m:l.nodeType===3)){e=l,a[T]=null;break}}if(e==null){if(m===null)return document.createTextNode(f);e=i?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,f.is&&f),a=null,u=!1}if(m===null)p===f||u&&e.data===f||(e.data=f);else{if(a=a&&Qr.call(e.childNodes),h=(p=n.props||un).dangerouslySetInnerHTML,d=f.dangerouslySetInnerHTML,!u){if(a!=null)for(p={},T=0;T<e.attributes.length;T++)p[e.attributes[T].name]=e.attributes[T].value;(d||h)&&(d&&(h&&d.__html==h.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(m0(e,f,p,i,u),d)t.__k=[];else if(vo(e,Kr(T=t.props.children)?T:[T],t,n,r,i&&m!=="foreignObject",a,s,a?a[0]:n.__k&&vr(n,0),u,o),a!=null)for(T=a.length;T--;)a[T]!=null&&Io(a[T]);u||("value"in f&&(T=f.value)!==void 0&&(T!==e.value||m==="progress"&&!T||m==="option"&&T!==p.value)&&Or(e,"value",T,p.value,!1),"checked"in f&&(T=f.checked)!==void 0&&T!==e.checked&&Or(e,"checked",T,p.checked,!1))}return e}function Ta(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){W.__e(r,n)}}function Do(e,t,n){var r,i;if(W.unmount&&W.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Ta(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(a){W.__e(a,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Do(r[i],t,n||typeof e.type!="function");n||e.__e==null||Io(e.__e),e.__=e.__e=e.__d=void 0}function b0(e,t,n){return this.constructor(e,n)}function Ts(e,t,n){var r,i,a,s;W.__&&W.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,a=[],s=[],Ea(t,e=(!r&&n||t).__k=Ot($e,null,[e]),i||un,un,t.ownerSVGElement!==void 0,!r&&n?[n]:i?null:t.firstChild?Qr.call(t.childNodes):null,a,!r&&n?n:i?i.__e:t.firstChild,r,s),Oo(a,e,s)}function ka(e,t){var n={__c:t="__cC"+wo++,__:e,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,a;return this.getChildContext||(i=[],(a={})[t]=this,this.getChildContext=function(){return a},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&i.some(function(u){u.__e=!0,ji(u)})},this.sub=function(s){i.push(s);var u=s.componentWillUnmount;s.componentWillUnmount=function(){i.splice(i.indexOf(s),1),u&&u.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Qr=So.slice,W={__e:function(e,t,n,r){for(var i,a,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(u){e=u}throw e}},yo=0,Ao=function(e){return e!=null&&e.constructor===void 0},ft.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Lt({},this.state),typeof e=="function"&&(e=e(Lt({},n),this.props)),e&&Lt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),ji(this))},ft.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ji(this))},ft.prototype.render=$e,zt=[],Co=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,qi=function(e,t){return e.__v.__b-t.__v.__b},Lr.__r=0,wo=0;var jt,_e,bi,ks,Qn=0,Po=[],Ar=[],_s=W.__b,xs=W.__r,ys=W.diffed,As=W.__c,Cs=W.unmount;function er(e,t){W.__h&&W.__h(_e,e,Qn||t),Qn=0;var n=_e.__H||(_e.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Ar}),n.__[e]}function le(e){return Qn=1,E0(Bo,e)}function E0(e,t,n){var r=er(jt++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Bo(void 0,t),function(u){var o=r.__N?r.__N[0]:r.__[0],l=r.t(o,u);o!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=_e,!_e.u)){var i=function(u,o,l){if(!r.__c.__H)return!0;var h=r.__c.__H.__.filter(function(p){return p.__c});if(h.every(function(p){return!p.__N}))return!a||a.call(this,u,o,l);var d=!1;return h.forEach(function(p){if(p.__N){var f=p.__[0];p.__=p.__N,p.__N=void 0,f!==p.__[0]&&(d=!0)}}),!(!d&&r.__c.props===u)&&(!a||a.call(this,u,o,l))};_e.u=!0;var a=_e.shouldComponentUpdate,s=_e.componentWillUpdate;_e.componentWillUpdate=function(u,o,l){if(this.__e){var h=a;a=void 0,i(u,o,l),a=h}s&&s.call(this,u,o,l)},_e.shouldComponentUpdate=i}return r.__N||r.__}function Ce(e,t){var n=er(jt++,3);!W.__s&&Mo(n.__H,t)&&(n.__=e,n.i=t,_e.__H.__h.push(n))}function Le(e){return Qn=5,ve(function(){return{current:e}},[])}function ve(e,t){var n=er(jt++,7);return Mo(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function De(e,t){return Qn=8,ve(function(){return e},t)}function nt(e){var t=_e.context[e.__c],n=er(jt++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(_e)),t.props.value):e.__}function T0(){var e=er(jt++,11);if(!e.__){for(var t=_e.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function k0(){for(var e;e=Po.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Cr),e.__H.__h.forEach(Vi),e.__H.__h=[]}catch(t){e.__H.__h=[],W.__e(t,e.__v)}}W.__b=function(e){_e=null,_s&&_s(e)},W.__r=function(e){xs&&xs(e),jt=0;var t=(_e=e.__c).__H;t&&(bi===_e?(t.__h=[],_e.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Ar,n.__N=n.i=void 0})):(t.__h.forEach(Cr),t.__h.forEach(Vi),t.__h=[],jt=0)),bi=_e},W.diffed=function(e){ys&&ys(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Po.push(t)!==1&&ks===W.requestAnimationFrame||((ks=W.requestAnimationFrame)||_0)(k0)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Ar&&(n.__=n.__V),n.i=void 0,n.__V=Ar})),bi=_e=null},W.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Cr),n.__h=n.__h.filter(function(r){return!r.__||Vi(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],W.__e(r,n.__v)}}),As&&As(e,t)},W.unmount=function(e){Cs&&Cs(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Cr(r)}catch(i){t=i}}),n.__H=void 0,t&&W.__e(t,n.__v))};var ws=typeof requestAnimationFrame=="function";function _0(e){var t,n=function(){clearTimeout(r),ws&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ws&&(t=requestAnimationFrame(n))}function Cr(e){var t=_e,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),_e=t}function Vi(e){var t=_e;e.__c=e.__(),_e=t}function Mo(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Bo(e,t){return typeof t=="function"?t(e):t}var x0=Symbol.for("preact-signals");function _a(){if(on>1)on--;else{for(var e,t=!1;Bn!==void 0;){var n=Bn;for(Bn=void 0,Wi++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&Ho(n))try{n.c()}catch(i){t||(e=i,t=!0)}n=r}}if(Wi=0,on--,t)throw e}}var ge=void 0,Bn=void 0,on=0,Wi=0,Dr=0;function Fo(e){if(ge!==void 0){var t=e.n;if(t===void 0||t.t!==ge)return t={i:0,S:e,p:ge.s,n:void 0,t:ge,e:void 0,x:void 0,r:t},ge.s!==void 0&&(ge.s.n=t),ge.s=t,e.n=t,32&ge.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=ge.s,t.n=void 0,ge.s.n=t,ge.s=t),t}}function Re(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}Re.prototype.brand=x0;Re.prototype.h=function(){return!0};Re.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};Re.prototype.U=function(e){if(this.t!==void 0){var t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}};Re.prototype.subscribe=function(e){var t=this;return nr(function(){var n=t.value,r=ge;ge=void 0;try{e(n)}finally{ge=r}})};Re.prototype.valueOf=function(){return this.value};Re.prototype.toString=function(){return this.value+""};Re.prototype.toJSON=function(){return this.value};Re.prototype.peek=function(){var e=ge;ge=void 0;try{return this.value}finally{ge=e}};Object.defineProperty(Re.prototype,"value",{get:function(){var e=Fo(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Wi>100)throw new Error("Cycle detected");this.v=e,this.i++,Dr++,on++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{_a()}}}});function mt(e){return new Re(e)}function Ho(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Uo(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function zo(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function mn(e){Re.call(this,void 0),this.x=e,this.s=void 0,this.g=Dr-1,this.f=4}(mn.prototype=new Re).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Dr))return!0;if(this.g=Dr,this.f|=1,this.i>0&&!Ho(this))return this.f&=-2,!0;var e=ge;try{Uo(this),ge=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return ge=e,zo(this),this.f&=-2,!0};mn.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Re.prototype.S.call(this,e)};mn.prototype.U=function(e){if(this.t!==void 0&&(Re.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};mn.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(mn.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Fo(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function $o(e){return new mn(e)}function Yo(e){var t=e.u;if(e.u=void 0,typeof t=="function"){on++;var n=ge;ge=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,xa(e),r}finally{ge=n,_a()}}}function xa(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Yo(e)}function y0(e){if(ge!==this)throw new Error("Out-of-order effect");zo(this),ge=e,this.f&=-2,8&this.f&&xa(this),_a()}function tr(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}tr.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};tr.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Yo(this),Uo(this),on++;var e=ge;return ge=this,y0.bind(this,e)};tr.prototype.N=function(){2&this.f||(this.f|=2,this.o=Bn,Bn=this)};tr.prototype.d=function(){this.f|=8,1&this.f||xa(this)};function nr(e){var t=new tr(e);try{t.c()}catch(n){throw t.d(),n}return t.d.bind(t)}var Xr,Ei;function gn(e,t){W[e]=t.bind(null,W[e]||function(){})}function Pr(e){Ei&&Ei(),Ei=e&&e.S()}function qo(e){var t=this,n=e.data,r=C0(n);r.value=n;var i=ve(function(){for(var a=t.__v;a=a.__;)if(a.__c){a.__c.__$f|=4;break}return t.__$u.c=function(){var s;!Ao(i.peek())&&((s=t.base)==null?void 0:s.nodeType)===3?t.base.data=i.peek():(t.__$f|=1,t.setState({}))},$o(function(){var s=r.value.value;return s===0?0:s===!0?"":s||""})},[]);return i.value}qo.displayName="_st";Object.defineProperties(Re.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:qo},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});gn("__b",function(e,t){if(typeof t.type=="string"){var n,r=t.props;for(var i in r)if(i!=="children"){var a=r[i];a instanceof Re&&(n||(t.__np=n={}),n[i]=a,r[i]=a.peek())}}e(t)});gn("__r",function(e,t){Pr();var n,r=t.__c;r&&(r.__$f&=-2,(n=r.__$u)===void 0&&(r.__$u=n=function(i){var a;return nr(function(){a=this}),a.c=function(){r.__$f|=1,r.setState({})},a}())),Xr=r,Pr(n),e(t)});gn("__e",function(e,t,n,r){Pr(),Xr=void 0,e(t,n,r)});gn("diffed",function(e,t){Pr(),Xr=void 0;var n;if(typeof t.type=="string"&&(n=t.__e)){var r=t.__np,i=t.props;if(r){var a=n.U;if(a)for(var s in a){var u=a[s];u!==void 0&&!(s in r)&&(u.d(),a[s]=void 0)}else n.U=a={};for(var o in r){var l=a[o],h=r[o];l===void 0?(l=A0(n,o,h,i),a[o]=l):l.o(h,i)}}}e(t)});function A0(e,t,n,r){var i=t in e&&e.ownerSVGElement===void 0,a=mt(n);return{o:function(s,u){a.value=s,r=u},d:nr(function(){var s=a.value.value;r[t]!==s&&(r[t]=s,i?e[t]=s:s?e.setAttribute(t,s):e.removeAttribute(t))})}}gn("unmount",function(e,t){if(typeof t.type=="string"){var n=t.__e;if(n){var r=n.U;if(r){n.U=void 0;for(var i in r){var a=r[i];a&&a.d()}}}}else{var s=t.__c;if(s){var u=s.__$u;u&&(s.__$u=void 0,u.d())}}e(t)});gn("__h",function(e,t,n,r){(r<3||r===9)&&(t.__$f|=2),e(t,n,r)});ft.prototype.shouldComponentUpdate=function(e,t){var n=this.__$u;if(!(n&&n.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var r in t)return!0;for(var i in e)if(i!=="__source"&&e[i]!==this.props[i])return!0;for(var a in this.props)if(!(a in e))return!0;return!1};function C0(e){return ve(function(){return mt(e)},[])}function Ti(e){var t=Le(e);return t.current=e,Xr.__$f|=4,ve(function(){return $o(function(){return t.current()})},[])}const w0=mt(!1),S0=mt(!1),I0=mt("idle"),ya=mt(!1),Aa=mt("idle"),Ca=mt(null),wa=mt(null),pt=mt([]),yt=typeof BroadcastChannel<"u"?new BroadcastChannel("kin-sync"):null;yt==null||yt.addEventListener("message",e=>{const{type:t,data:n}=e.data;switch(t){case"messages_updated":pt.value=n.messages.map(r=>({...r,timestamp:new Date(r.timestamp)}));break;case"messages_cleared":pt.value=[];break}});const Sa=()=>{yt==null||yt.postMessage({type:"messages_updated",data:{messages:pt.value}})},N0=e=>{pt.value=[...pt.value,{...e,id:crypto.randomUUID(),timestamp:new Date}],Sa()},v0=e=>{const t=pt.value;if(t.length===0)return;const n=t[t.length-1];!n||n.role!=="assistant"||(pt.value=[...t.slice(0,-1),{...n,content:n.content+e}])},L0=()=>{pt.value=[],yt==null||yt.postMessage({type:"messages_cleared"})},R0=e=>{pt.value=e.map(t=>({...t,id:crypto.randomUUID(),timestamp:new Date})),Sa()},O0=()=>{Sa()},D0=(e,t,n)=>{Aa.value=e,wa.value=t??null,Ca.value=n??null},P0=()=>{Aa.value="idle",wa.value=null,Ca.value=null},M0=e=>{ya.value=e},B0=()=>{ya.value=!1},$={isOpen:w0,isStreaming:S0,connectionState:I0,messages:pt,uploadState:Aa,uploadError:Ca,uploadFileName:wa,hasUnreadMessages:ya,addMessage:N0,appendToLastMessage:v0,clearMessages:L0,setMessages:R0,syncToOtherTabs:O0,setUploadState:D0,resetUploadState:P0,setHasUnreadMessages:M0,clearUnreadMessages:B0},F0={"application/pdf":{maxSize:1e7},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{maxSize:1e7},"application/msword":{maxSize:1e7},"text/plain":{maxSize:1e6},"image/jpeg":{maxSize:1e7},"image/png":{maxSize:1e7},"image/webp":{maxSize:1e7}},H0=".pdf,.docx,.doc,.txt,.jpg,.jpeg,.png,.webp";function U0(e){const t=F0[e.type];return t?e.size>t.maxSize?{valid:!1,error:`File is too large. Maximum size is ${Math.round(t.maxSize/1e6)}MB.`}:e.size===0?{valid:!1,error:"The file appears to be empty."}:{valid:!0}:{valid:!1,error:"Unsupported file format. Please upload a PDF, Word document, text file, or image."}}function z0(e){return new Promise((t,n)=>{const r=new FileReader;r.onload=()=>{typeof r.result=="string"?t(r.result):n(new Error("Failed to read file"))},r.onerror=()=>n(r.error),r.readAsDataURL(e)})}function $0({url:e,onMessage:t,onOpen:n,onClose:r,onError:i}){let a=null,s=[];const u=()=>{if(!(!a||a.readyState!==WebSocket.OPEN)){for(const l of s)a.send(JSON.stringify({type:"user_message",content:l}));s=[]}};return(()=>{a=new WebSocket(e),a.onopen=()=>{n(),u()},a.onmessage=l=>{try{const h=JSON.parse(l.data);t(h)}catch(h){console.error("Failed to parse message:",h)}},a.onclose=()=>{s=[],r(),a=null},a.onerror=l=>{i(l)}})(),{sendMessage:l=>{a&&(a.readyState===WebSocket.OPEN?a.send(JSON.stringify({type:"user_message",content:l})):a.readyState===WebSocket.CONNECTING&&s.push(l))},uploadFile:async(l,h)=>{if(!a||a.readyState!==WebSocket.OPEN)return{success:!1,error:"Not connected"};const d=U0(l);if(!d.valid)return{success:!1,error:d.error};try{const p=await z0(l);return!a||a.readyState!==WebSocket.OPEN?{success:!1,error:"Connection lost while reading file. Please try again."}:(a.send(JSON.stringify({type:"file_upload",fileType:h,fileName:l.name,mimeType:l.type,data:p})),{success:!0})}catch(p){return{success:!1,error:p instanceof Error?p.message:"Failed to read file"}}},clearData:()=>{a&&a.readyState===WebSocket.OPEN&&a.send(JSON.stringify({type:"clear_data"}))},disconnect:()=>{a&&(a.close(),a=null)},isConnected:()=>(a==null?void 0:a.readyState)===WebSocket.OPEN}}var Y0=0;function b(e,t,n,r,i,a){var s,u,o={};for(u in t)u=="ref"?s=t[u]:o[u]=t[u];var l={type:e,props:o,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Y0,__source:i,__self:a};if(typeof e=="function"&&(s=e.defaultProps))for(u in s)o[u]===void 0&&(o[u]=s[u]);return W.vnode&&W.vnode(l),l}function jo({class:e,"aria-hidden":t="true"}){return b("svg",{class:e,viewBox:"0 0 870 400",fill:"currentColor","aria-hidden":t,focusable:"false",children:b("path",{d:"M220.468 331.21c-21.275-9.559-42.081-30.347-79.541-67.777l-56.1-56.087c-9.106-9.106-14.522-14.541-18.414-18.802-2.471-2.705-3.42-3.973-3.645-4.286a20.3 20.3 0 0 1 0-20.058c.224-.314 1.173-1.582 3.644-4.286 3.893-4.261 9.309-9.697 18.414-18.803 43.366-43.365 57.154-56.438 69.786-63.775 39.522-22.958 88.319-22.958 127.842-.001 12.632 7.337 26.42 20.41 69.786 63.774l30.412 30.411 42.51-42.509-30.413-30.412c-40.657-40.656-60.986-60.984-82.1-73.248-58.192-33.802-130.041-33.801-188.233.001-21.114 12.265-41.442 32.593-82.099 73.25-17.449 17.449-26.174 26.173-31.437 35.235a80.417 80.417 0 0 0 0 80.785c5.264 9.061 13.99 17.785 31.438 35.234l69.155 69.152c30.203 30.202 45.305 45.303 62.973 56.034a171.768 171.768 0 0 0 48.416 20.055C242.943 400.001 264.3 400 307.013 400H608.43c42.714 0 64.071-.001 84.153-4.906A171.733 171.733 0 0 0 741 375.039c17.668-10.731 32.77-25.833 62.973-56.037l13.213-13.213c160.161-160.161-80.08-400.402-240.241-240.24L379.079 263.39c-42.114 42.109-63.171 63.164-87.526 70.869a104.629 104.629 0 0 1-59.446 1.086 111.797 111.797 0 0 1-11.639-4.136Z"})})}function q0({class:e,"aria-hidden":t="true"}){return b("svg",{class:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":t,focusable:"false",children:[b("path",{d:"M12 19V5"}),b("path",{d:"M5 12l7-7 7 7"})]})}function j0({class:e,"aria-hidden":t="true"}){return b("svg",{class:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":t,focusable:"false",children:[b("path",{d:"M18 6L6 18"}),b("path",{d:"M6 6l12 12"})]})}function V0({class:e,"aria-hidden":t="true"}){return b("svg",{class:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":t,focusable:"false",children:[b("path",{d:"M3 6h18"}),b("path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"}),b("path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"})]})}function W0({class:e,"aria-hidden":t="true"}){return b("svg",{class:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":t,focusable:"false",children:b("path",{d:"M21.44 11.05l-9.19 9.19a6 6 0 01-8.49-8.49l9.19-9.19a4 4 0 015.66 5.66l-9.2 9.19a2 2 0 01-2.83-2.83l8.49-8.48"})})}function G0({class:e,"aria-hidden":t="true"}){return b("svg",{class:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":t,focusable:"false",children:b("path",{d:"M21 12a9 9 0 11-6.219-8.56"})})}const Ss=2e3;function Q0({isOpen:e,starterPrompts:t,onOpen:n,onClose:r,onSendMessage:i,onConnect:a,onUploadFile:s,inputRef:u}){const[o,l]=le(""),[h,d]=le(!1),p=Le(null),f=u??p,m=Le(null),[T,C]=le($.isStreaming.value),[y,I]=le($.connectionState.value),[S,D]=le($.messages.value.length>0),[R,x]=le($.uploadState.value),[F,P]=le($.uploadError.value),[U,N]=le($.uploadFileName.value),[Y,B]=le($.hasUnreadMessages.value);Ce(()=>nr(()=>{C($.isStreaming.value),I($.connectionState.value),D($.messages.value.length>0),x($.uploadState.value),P($.uploadError.value),N($.uploadFileName.value),B($.hasUnreadMessages.value)}),[]);const Q=y==="connected",ie=y==="connecting",X=y==="disconnected",Z=y==="idle",J=R==="uploading"||R==="processing",V=o.length>Ss,Fe=o.trim().length>0&&!T&&!J&&!V&&(Q||ie),A=Q&&!T&&!J;Ce(()=>{e&&f.current&&requestAnimationFrame(()=>{var ue;(ue=f.current)==null||ue.focus()})},[e]);const Oe=()=>{d(!0),a(),!e&&S&&n()},He=ue=>{const Ke=ue.relatedTarget;Ke!=null&&Ke.closest(".kin-starter-prompts")||d(!1)},_=ue=>{if(ue.preventDefault(),!Fe)return;const Ke=o.trim();$.addMessage({role:"user",content:Ke}),e||n(),i(Ke),l("")},pe=ue=>{ue.key==="Enter"&&!ue.shiftKey&&(ue.preventDefault(),_(ue)),ue.key==="Escape"&&e&&(ue.preventDefault(),ue.stopPropagation(),r())},Ye=ue=>{var An;const Ke=ue.target,Jt=(An=Ke.files)==null?void 0:An[0];Jt&&(e||n(),s(Jt,"cv")),Ke.value=""},xe=()=>{var ue;(ue=m.current)==null||ue.click()},Ee=()=>J?U?`Uploading ${U}...`:"Uploading file...":ie?"Connecting...":X?"Disconnected - Click to retry":T?"Waiting for response...":!e&&S?"Continue conversation...":"Message...",We=()=>J?U?`Uploading ${U}...`:"Uploading file...":T?"Waiting for response":Z?"Click to connect":ie?"Connecting...":!Q&&o.trim().length===0?"Enter a message to send":Q?o.trim().length===0?"Enter a message to send":"Send message":"Cannot send message",Ge=()=>J?"Uploading...":A?"Attach file (CV, document, or image)":"Cannot upload file",Qe=ue=>{a(),$.addMessage({role:"user",content:ue.message}),n(),i(ue.message)},ct=t.length>0&&!S&&!e&&h;return b("div",{class:`kin-launcher ${e?"is-open":""}`,role:"search","aria-label":"Chat with Kin AI",children:[ct&&b("div",{class:"kin-starter-prompts",role:"group","aria-label":"Suggested questions",children:t.map((ue,Ke)=>b("button",{type:"button",class:"kin-starter-btn",onPointerDown:Jt=>Jt.preventDefault(),onClick:()=>Qe(ue),children:ue.label},Ke))}),b("form",{onSubmit:_,class:"kin-launcher-form",children:[b("div",{class:"kin-launcher-input-wrapper",children:[b("div",{class:"kin-launcher-icon-wrapper",children:[b(jo,{class:"kin-launcher-icon"}),Y&&!e&&b("span",{class:"kin-notification-badge","aria-label":"New message"})]}),b("label",{for:"kin-input",class:"kin-sr-only",children:"Ask Kin a question"}),b("input",{id:"kin-input",ref:f,type:"text",class:"kin-launcher-input",placeholder:Ee(),value:o,onInput:ue=>l(ue.target.value),onFocus:Oe,onBlur:He,onKeyDown:pe,"aria-describedby":"kin-input-status",autoComplete:"off",disabled:J}),b("input",{ref:m,type:"file",class:"kin-sr-only",accept:H0,onChange:Ye,"aria-hidden":"true",tabIndex:-1}),b("button",{type:"button",class:`kin-launcher-attach ${J?"is-uploading":""}`,disabled:!A,"aria-label":Ge(),onClick:xe,children:J?b(G0,{}):b(W0,{})}),b("button",{type:"submit",class:"kin-launcher-send",disabled:!Fe,"aria-label":We(),children:b(q0,{})})]}),b("div",{id:"kin-input-status",class:"kin-sr-only",role:"status","aria-live":"polite",children:[ie&&"Connecting to Kin...",X&&"Connection lost. Click input to retry.",T&&"Kin is responding...",J&&(U?`Uploading ${U}...`:"Uploading file...")]}),F&&R==="error"&&b("div",{class:"kin-upload-error",role:"alert",children:F}),V&&b("div",{class:"kin-char-limit-error",role:"alert",children:["Message too long (",o.length.toLocaleString(),"/",Ss.toLocaleString()," characters)"]})]})]})}function K0(e,t){for(var n in t)e[n]=t[n];return e}function Gi(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function Is(e){this.props=e}function fe(e,t){function n(i){var a=this.props.ref,s=a==i.ref;return!s&&a&&(a.call?a(null):a.current=null),t?!t(this.props,i)||!s:Gi(this.props,i)}function r(i){return this.shouldComponentUpdate=n,Ot(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Is.prototype=new ft).isPureReactComponent=!0,Is.prototype.shouldComponentUpdate=function(e,t){return Gi(this.props,e)||Gi(this.state,t)};var Ns=W.__b;W.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ns&&Ns(e)};var X0=W.__e;W.__e=function(e,t,n,r){if(e.then){for(var i,a=t;a=a.__;)if((i=a.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}X0(e,t,n,r)};var vs=W.unmount;function Vo(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=K0({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Vo(r,t,n)})),e}function Wo(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Wo(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function Fn(){this.__u=0,this.t=null,this.__b=null}function Go(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Qo(e){var t,n,r;function i(a){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return Ot(n,a)}return i.displayName="Lazy",i.__f=!0,i}function dr(){this.u=null,this.o=null}W.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),vs&&vs(e)},(Fn.prototype=new ft).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=Go(r.__v),a=!1,s=function(){a||(a=!0,n.__R=null,i?i(u):u())};n.__R=s;var u=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=Wo(l,l.__c.__P,l.__c.__O)}var h;for(r.setState({__a:r.__b=null});h=r.t.pop();)h.forceUpdate()}},o=t.__h===!0;r.__u++||o||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Fn.prototype.componentWillUnmount=function(){this.t=[]},Fn.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Vo(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&Ot($e,null,e.fallback);return i&&(i.__h=null),[Ot($e,null,t.__a?null:e.children),i]};var Ls=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(dr.prototype=new ft).__a=function(e){var t=this,n=Go(t.__v),r=t.o.get(e);return r[0]++,function(i){var a=function(){t.props.revealOrder?(r.push(i),Ls(t,e,r)):i()};n?n(a):a()}},dr.prototype.render=function(e){this.u=null,this.o=new Map;var t=Rr(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},dr.prototype.componentDidUpdate=dr.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Ls(e,n,t)})};var Ko=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Z0=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,J0=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,eh=/[A-Z0-9]/g,th=typeof document<"u",nh=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};ft.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ft.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Rs=W.event;function rh(){}function ih(){return this.cancelBubble}function ah(){return this.defaultPrevented}W.event=function(e){return Rs&&(e=Rs(e)),e.persist=rh,e.isPropagationStopped=ih,e.isDefaultPrevented=ah,e.nativeEvent=e};var sh={enumerable:!1,configurable:!0,get:function(){return this.class}},Os=W.vnode;W.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,i={};for(var a in n){var s=n[a];if(!(a==="value"&&"defaultValue"in n&&s==null||th&&a==="children"&&r==="noscript"||a==="class"||a==="className")){var u=a.toLowerCase();a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&s===!0?s="":u==="ondoubleclick"?a="ondblclick":u!=="onchange"||r!=="input"&&r!=="textarea"||nh(n.type)?u==="onfocus"?a="onfocusin":u==="onblur"?a="onfocusout":J0.test(a)?a=u:r.indexOf("-")===-1&&Z0.test(a)?a=a.replace(eh,"-$&").toLowerCase():s===null&&(s=void 0):u=a="oninput",u==="oninput"&&i[a=u]&&(a="oninputCapture"),i[a]=s}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Rr(n.children).forEach(function(o){o.props.selected=i.value.indexOf(o.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=Rr(n.children).forEach(function(o){o.props.selected=i.multiple?i.defaultValue.indexOf(o.props.value)!=-1:i.defaultValue==o.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",sh)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=Ko,Os&&Os(e)};var Ds=W.__r;W.__r=function(e){Ds&&Ds(e),e.__c};var Ps=W.diffed;W.diffed=function(e){Ps&&Ps(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value)};function an(e){return!!e&&e.$$typeof===Ko}function uh(e){e()}function oh(){return[!1,uh]}const Zr=function(e){if(e==null)return hh;if(typeof e=="function")return Jr(e);if(typeof e=="object")return Array.isArray(e)?lh(e):ch(e);if(typeof e=="string")return dh(e);throw new Error("Expected function, string, or object as test")};function lh(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Zr(e[n]);return Jr(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function ch(e){const t=e;return Jr(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function dh(e){return Jr(t);function t(n){return n&&n.type===e}}function Jr(e){return t;function t(n,r,i){return!!(fh(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function hh(){return!0}function fh(e){return e!==null&&typeof e=="object"&&"type"in e}const Xo=[],Dn=!0,Qi=!1,Ki="skip";function Zo(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=Zr(i),s=r?-1:1;u(e,void 0,[])();function u(o,l,h){const d=o&&typeof o=="object"?o:{};if(typeof d.type=="string"){const f=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(o.type+(f?"<"+f+">":""))+")"})}return p;function p(){let f=Xo,m,T,C;if((!t||a(o,l,h[h.length-1]||void 0))&&(f=ph(n(o,h)),f[0]===Qi))return f;if("children"in o&&o.children){const y=o;if(y.children&&f[0]!==Ki)for(T=(r?y.children.length:-1)+s,C=h.concat(y);T>-1&&T<y.children.length;){const I=y.children[T];if(m=u(I,T,C)(),m[0]===Qi)return m;T=typeof m[1]=="number"?m[1]:T+s}}return f}}}function ph(e){return Array.isArray(e)?e:typeof e=="number"?[Dn,e]:e==null?Xo:[e]}function dn(e,t,n,r){let i,a,s;typeof t=="function"&&typeof n!="function"?(a=void 0,s=t,i=n):(a=t,s=n,i=r),Zo(e,a,u,i);function u(o,l){const h=l[l.length-1],d=h?h.children.indexOf(o):void 0;return s(o,d,h)}}function mh({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:n=[],allowDataImages:r=!1,allowedProtocols:i=[],blockedImageClass:a="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:s="text-gray-500"}){const u=t.length&&!t.every(l=>l==="*"),o=n.length&&!n.every(l=>l==="*");if(!e&&(u||o))throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return l=>{const h=Th(e,t,n,r,i,a,s);dn(l,h)}}function Ms(e,t){if(typeof e!="string")return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{return null}return null}}function gh(e){return typeof e!="string"?!1:e.startsWith("/")||e.startsWith("./")||e.startsWith("../")}const bh=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),Eh=new Set(["javascript:","data:","file:","vbscript:"]);function Bs(e,t,n,r=!1,i=!1,a=[]){if(!e)return null;if(typeof e=="string"&&e.startsWith("#")&&!i)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if(typeof e=="string"&&e.startsWith("data:"))return i&&r&&e.startsWith("data:image/")?e:null;if(typeof e=="string"&&e.startsWith("blob:")){try{if(new URL(e).protocol==="blob:"&&e.length>5){const h=e.substring(5);if(h&&h.length>0&&h!=="invalid")return e}}catch{return null}return null}const s=Ms(e,n);if(!s||Eh.has(s.protocol)||!(bh.has(s.protocol)||a.includes(s.protocol)||a.includes("*")))return null;if(s.protocol==="mailto:"||!s.protocol.match(/^https?:$/))return s.href;const o=gh(e);return s&&t.some(l=>{const h=Ms(l,n);return!h||h.origin!==s.origin?!1:s.href.startsWith(h.href)})?o?s.pathname+s.search+s.hash:s.href:t.includes("*")?s.protocol!=="https:"&&s.protocol!=="http:"?null:o?s.pathname+s.search+s.hash:s.href:null}const ki=Symbol("node-seen"),Th=(e,t,n,r,i,a,s)=>{const u=(o,l,h)=>{if(o.type!=="element"||o[ki])return Dn;if(o.tagName==="a"){const d=Bs(o.properties.href,t,e,!1,!1,i);return d===null?(o[ki]=!0,dn(o,u),h&&typeof l=="number"&&(h.children[l]={type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(o.properties.href),class:s},children:[...o.children,{type:"text",value:" [blocked]"}]}),Ki):(o.properties.href=d,o.properties.target="_blank",o.properties.rel="noopener noreferrer",Dn)}if(o.tagName==="img"){const d=Bs(o.properties.src,n,e,r,!0,i);return d===null?(o[ki]=!0,dn(o,u),h&&typeof l=="number"&&(h.children[l]={type:"element",tagName:"span",properties:{class:a},children:[{type:"text",value:"[Image blocked: "+String(o.properties.alt||"No description")+"]"}]}),Ki):(o.properties.src=d,Dn)}return Dn};return u},Jo=-1,ei=0,Mr=1,Br=2,Ia=3,Na=4,va=5,La=6,el=7,tl=8,Fs=typeof self=="object"?self:globalThis,kh=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case ei:case Jo:return n(s,i);case Mr:{const u=n([],i);for(const o of s)u.push(r(o));return u}case Br:{const u=n({},i);for(const[o,l]of s)u[r(o)]=r(l);return u}case Ia:return n(new Date(s),i);case Na:{const{source:u,flags:o}=s;return n(new RegExp(u,o),i)}case va:{const u=n(new Map,i);for(const[o,l]of s)u.set(r(o),r(l));return u}case La:{const u=n(new Set,i);for(const o of s)u.add(r(o));return u}case el:{const{name:u,message:o}=s;return n(new Fs[u](o),i)}case tl:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i)}return n(new Fs[a](s),i)};return r},Hs=e=>kh(new Map,e)(0),tn="",{toString:_h}={},{keys:xh}=Object,Sn=e=>{const t=typeof e;if(t!=="object"||!e)return[ei,t];const n=_h.call(e).slice(8,-1);switch(n){case"Array":return[Mr,tn];case"Object":return[Br,tn];case"Date":return[Ia,tn];case"RegExp":return[Na,tn];case"Map":return[va,tn];case"Set":return[La,tn]}return n.includes("Array")?[Mr,n]:n.includes("Error")?[el,n]:[Br,n]},hr=([e,t])=>e===ei&&(t==="function"||t==="symbol"),yh=(e,t,n,r)=>{const i=(s,u)=>{const o=r.push(s)-1;return n.set(u,o),o},a=s=>{if(n.has(s))return n.get(s);let[u,o]=Sn(s);switch(u){case ei:{let h=s;switch(o){case"bigint":u=tl,h=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+o);h=null;break;case"undefined":return i([Jo],s)}return i([u,h],s)}case Mr:{if(o)return i([o,[...s]],s);const h=[],d=i([u,h],s);for(const p of s)h.push(a(p));return d}case Br:{if(o)switch(o){case"BigInt":return i([o,s.toString()],s);case"Boolean":case"Number":case"String":return i([o,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const h=[],d=i([u,h],s);for(const p of xh(s))(e||!hr(Sn(s[p])))&&h.push([a(p),a(s[p])]);return d}case Ia:return i([u,s.toISOString()],s);case Na:{const{source:h,flags:d}=s;return i([u,{source:h,flags:d}],s)}case va:{const h=[],d=i([u,h],s);for(const[p,f]of s)(e||!(hr(Sn(p))||hr(Sn(f))))&&h.push([a(p),a(f)]);return d}case La:{const h=[],d=i([u,h],s);for(const p of s)(e||!hr(Sn(p)))&&h.push(a(p));return d}}const{message:l}=s;return i([u,{name:o,message:l}],s)};return a},Us=(e,{json:t,lossy:n}={})=>{const r=[];return yh(!(t||n),!!t,new Map,r)(e),r},Vt=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Hs(Us(e,t)):structuredClone(e):(e,t)=>Hs(Us(e,t));class rr{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}rr.prototype.normal={};rr.prototype.property={};rr.prototype.space=void 0;function nl(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new rr(n,r,t)}function Kn(e){return e.toLowerCase()}class Ve{constructor(t,n){this.attribute=n,this.property=t}}Ve.prototype.attribute="";Ve.prototype.booleanish=!1;Ve.prototype.boolean=!1;Ve.prototype.commaOrSpaceSeparated=!1;Ve.prototype.commaSeparated=!1;Ve.prototype.defined=!1;Ve.prototype.mustUseProperty=!1;Ve.prototype.number=!1;Ve.prototype.overloadedBoolean=!1;Ve.prototype.property="";Ve.prototype.spaceSeparated=!1;Ve.prototype.space=void 0;let Ah=0;const te=Qt(),we=Qt(),Xi=Qt(),H=Qt(),Te=Qt(),ln=Qt(),Ze=Qt();function Qt(){return 2**++Ah}const Zi=Object.freeze(Object.defineProperty({__proto__:null,boolean:te,booleanish:we,commaOrSpaceSeparated:Ze,commaSeparated:ln,number:H,overloadedBoolean:Xi,spaceSeparated:Te},Symbol.toStringTag,{value:"Module"})),_i=Object.keys(Zi);class Ra extends Ve{constructor(t,n,r,i){let a=-1;if(super(t,n),zs(this,"space",i),typeof r=="number")for(;++a<_i.length;){const s=_i[a];zs(this,_i[a],(r&Zi[s])===Zi[s])}}}Ra.prototype.defined=!0;function zs(e,t,n){n&&(e[t]=n)}function bn(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new Ra(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Kn(r)]=r,n[Kn(a.attribute)]=r}return new rr(t,n,e.space)}const rl=bn({properties:{ariaActiveDescendant:null,ariaAtomic:we,ariaAutoComplete:null,ariaBusy:we,ariaChecked:we,ariaColCount:H,ariaColIndex:H,ariaColSpan:H,ariaControls:Te,ariaCurrent:null,ariaDescribedBy:Te,ariaDetails:null,ariaDisabled:we,ariaDropEffect:Te,ariaErrorMessage:null,ariaExpanded:we,ariaFlowTo:Te,ariaGrabbed:we,ariaHasPopup:null,ariaHidden:we,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Te,ariaLevel:H,ariaLive:null,ariaModal:we,ariaMultiLine:we,ariaMultiSelectable:we,ariaOrientation:null,ariaOwns:Te,ariaPlaceholder:null,ariaPosInSet:H,ariaPressed:we,ariaReadOnly:we,ariaRelevant:null,ariaRequired:we,ariaRoleDescription:Te,ariaRowCount:H,ariaRowIndex:H,ariaRowSpan:H,ariaSelected:we,ariaSetSize:H,ariaSort:null,ariaValueMax:H,ariaValueMin:H,ariaValueNow:H,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function il(e,t){return t in e?e[t]:t}function al(e,t){return il(e,t.toLowerCase())}const Ch=bn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ln,acceptCharset:Te,accessKey:Te,action:null,allow:null,allowFullScreen:te,allowPaymentRequest:te,allowUserMedia:te,alt:null,as:null,async:te,autoCapitalize:null,autoComplete:Te,autoFocus:te,autoPlay:te,blocking:Te,capture:null,charSet:null,checked:te,cite:null,className:Te,cols:H,colSpan:null,content:null,contentEditable:we,controls:te,controlsList:Te,coords:H|ln,crossOrigin:null,data:null,dateTime:null,decoding:null,default:te,defer:te,dir:null,dirName:null,disabled:te,download:Xi,draggable:we,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:te,formTarget:null,headers:Te,height:H,hidden:Xi,high:H,href:null,hrefLang:null,htmlFor:Te,httpEquiv:Te,id:null,imageSizes:null,imageSrcSet:null,inert:te,inputMode:null,integrity:null,is:null,isMap:te,itemId:null,itemProp:Te,itemRef:Te,itemScope:te,itemType:Te,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:te,low:H,manifest:null,max:null,maxLength:H,media:null,method:null,min:null,minLength:H,multiple:te,muted:te,name:null,nonce:null,noModule:te,noValidate:te,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:te,optimum:H,pattern:null,ping:Te,placeholder:null,playsInline:te,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:te,referrerPolicy:null,rel:Te,required:te,reversed:te,rows:H,rowSpan:H,sandbox:Te,scope:null,scoped:te,seamless:te,selected:te,shadowRootClonable:te,shadowRootDelegatesFocus:te,shadowRootMode:null,shape:null,size:H,sizes:null,slot:null,span:H,spellCheck:we,src:null,srcDoc:null,srcLang:null,srcSet:null,start:H,step:null,style:null,tabIndex:H,target:null,title:null,translate:null,type:null,typeMustMatch:te,useMap:null,value:we,width:H,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Te,axis:null,background:null,bgColor:null,border:H,borderColor:null,bottomMargin:H,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:te,declare:te,event:null,face:null,frame:null,frameBorder:null,hSpace:H,leftMargin:H,link:null,longDesc:null,lowSrc:null,marginHeight:H,marginWidth:H,noResize:te,noHref:te,noShade:te,noWrap:te,object:null,profile:null,prompt:null,rev:null,rightMargin:H,rules:null,scheme:null,scrolling:we,standby:null,summary:null,text:null,topMargin:H,valueType:null,version:null,vAlign:null,vLink:null,vSpace:H,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:te,disableRemotePlayback:te,prefix:null,property:null,results:H,security:null,unselectable:null},space:"html",transform:al}),wh=bn({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:Ze,accentHeight:H,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:H,amplitude:H,arabicForm:null,ascent:H,attributeName:null,attributeType:null,azimuth:H,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:H,by:null,calcMode:null,capHeight:H,className:Te,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:H,diffuseConstant:H,direction:null,display:null,dur:null,divisor:H,dominantBaseline:null,download:te,dx:null,dy:null,edgeMode:null,editable:null,elevation:H,enableBackground:null,end:null,event:null,exponent:H,externalResourcesRequired:null,fill:null,fillOpacity:H,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:ln,g2:ln,glyphName:ln,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:H,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:H,horizOriginX:H,horizOriginY:H,id:null,ideographic:H,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:H,k:H,k1:H,k2:H,k3:H,k4:H,kernelMatrix:Ze,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:H,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:H,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:H,overlineThickness:H,paintOrder:null,panose1:null,path:null,pathLength:H,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Te,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:H,pointsAtY:H,pointsAtZ:H,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ze,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ze,rev:Ze,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ze,requiredFeatures:Ze,requiredFonts:Ze,requiredFormats:Ze,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:H,specularExponent:H,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:H,strikethroughThickness:H,string:null,stroke:null,strokeDashArray:Ze,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:H,strokeOpacity:H,strokeWidth:null,style:null,surfaceScale:H,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ze,tabIndex:H,tableValues:null,target:null,targetX:H,targetY:H,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ze,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:H,underlineThickness:H,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:H,values:null,vAlphabetic:H,vMathematical:H,vectorEffect:null,vHanging:H,vIdeographic:H,version:null,vertAdvY:H,vertOriginX:H,vertOriginY:H,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:H,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:il}),sl=bn({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()}}),ul=bn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:al}),ol=bn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Sh={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Ih=/[A-Z]/g,$s=/-[a-z]/g,Nh=/^data[-\w.:]+$/i;function ti(e,t){const n=Kn(t);let r=t,i=Ve;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Nh.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace($s,Lh);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!$s.test(a)){let s=a.replace(Ih,vh);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Ra}return new i(r,t)}function vh(e){return"-"+e.toLowerCase()}function Lh(e){return e.charAt(1).toUpperCase()}const ir=nl([rl,Ch,sl,ul,ol],"html"),Pt=nl([rl,wh,sl,ul,ol],"svg");function Ys(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function ll(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const qs=/[#.]/g;function Rh(e,t){const n=e||"",r={};let i=0,a,s;for(;i<n.length;){qs.lastIndex=i;const u=qs.exec(n),o=n.slice(i,u?u.index:n.length);o&&(a?a==="#"?r.id=o:Array.isArray(r.className)?r.className.push(o):r.className=[o]:s=o,i+=o.length),u&&(a=u[0],i++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function js(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function cl(e){return e.join(" ").trim()}function dl(e,t,n){const r=n?Mh(n):void 0;function i(a,s,...u){let o;if(a==null){o={type:"root",children:[]};const l=s;u.unshift(l)}else{o=Rh(a,t);const l=o.tagName.toLowerCase(),h=r?r.get(l):void 0;if(o.tagName=h||l,Oh(s))u.unshift(s);else for(const[d,p]of Object.entries(s))Dh(e,o.properties,d,p)}for(const l of u)Ji(o.children,l);return o.type==="element"&&o.tagName==="template"&&(o.content={type:"root",children:o.children},o.children=[]),o}return i}function Oh(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Dh(e,t,n,r){const i=ti(e,n);let a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?i.spaceSeparated?a=js(r):i.commaSeparated?a=Ys(r):i.commaOrSpaceSeparated?a=js(Ys(r).join(" ")):a=Vs(i,i.property,r):Array.isArray(r)?a=[...r]:a=i.property==="style"?Ph(r):String(r);if(Array.isArray(a)){const s=[];for(const u of a)s.push(Vs(i,i.property,u));a=s}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function Ji(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(const n of t)Ji(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Ji(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Vs(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Kn(n)===Kn(t)))return!0}return n}function Ph(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function Mh(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Bh=["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"],Fh=dl(ir,"div"),Hh=dl(Pt,"g",Bh);function Uh(e){const t=String(e),n=[];return{toOffset:i,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let u=n[s];if(u===void 0){const o=Ws(t,n[s-1]);u=o===-1?t.length+1:o+1,n[s]=u}if(u>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a};s++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length<a.line;){const u=n[n.length-1],o=Ws(t,u),l=o===-1?t.length+1:o+1;if(u===l)break;n.push(l)}const s=(a.line>1?n[a.line-2]:0)+a.column-1;if(s<n[a.line-1])return s}}}function Ws(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
2
- `,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Yt={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/"},hl={}.hasOwnProperty,zh=Object.prototype;function $h(e,t){const n=t||{};return Oa({file:n.file||void 0,location:!1,schema:n.space==="svg"?Pt:ir,verbose:n.verbose||!1},e)}function Oa(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},wr(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:fl(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const a=String(e.file),s=Uh(a),u=s.toPoint(0),o=s.toPoint(a.length);n.position={start:u,end:o}}return n}case"#documentType":{const r=t;return n={type:"doctype"},wr(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},wr(e,r,n),n}default:return n=Yh(e,t),n}}function fl(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=Oa(e,t[n]);r.push(i)}return r}function Yh(e,t){const n=e.schema;e.schema=t.namespaceURI===Yt.svg?Pt:ir;let r=-1;const i={};for(;++r<t.attrs.length;){const u=t.attrs[r],o=(u.prefix?u.prefix+":":"")+u.name;hl.call(zh,o)||(i[o]=u.value)}const s=(e.schema.space==="svg"?Hh:Fh)(t.tagName,i,fl(e,t.childNodes));if(wr(e,t,s),s.tagName==="template"){const u=t,o=u.sourceCodeLocation,l=o&&o.startTag&&sn(o.startTag),h=o&&o.endTag&&sn(o.endTag),d=Oa(e,u.content);l&&h&&e.file&&(d.position={start:l.end,end:h.start}),s.content=d}return e.schema=n,s}function wr(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=qh(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function qh(e,t,n){const r=sn(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const a={};let s;if(n.attrs)for(s in n.attrs)hl.call(n.attrs,s)&&(a[ti(e.schema,s).property]=sn(n.attrs[s]));n.startTag;const u=sn(n.startTag),o=n.endTag?sn(n.endTag):void 0,l={opening:u};o&&(l.closing=o),l.properties=a,t.data={position:l}}}return r}function sn(e){const t=Gs({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Gs({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Gs(e){return e.line&&e.column?e:void 0}const Qs={}.hasOwnProperty;function pl(e,t){const n=t||{};function r(i,...a){let s=r.invalid;const u=r.handlers;if(i&&Qs.call(i,e)){const o=String(i[e]);s=Qs.call(u,o)?u[o]:r.unknown}if(s)return s.call(this,i,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const jh={},Vh={}.hasOwnProperty,ml=pl("type",{handlers:{root:Gh,element:Jh,text:Xh,comment:Zh,doctype:Kh}});function Wh(e,t){const r=(t||jh).space;return ml(e,r==="svg"?Pt:ir)}function Gh(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Da(e.children,n,t),En(e,n),n}function Qh(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Da(e.children,n,t),En(e,n),n}function Kh(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return En(e,t),t}function Xh(e){const t={nodeName:"#text",value:e.value,parentNode:null};return En(e,t),t}function Zh(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return En(e,t),t}function Jh(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Pt);const i=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&Vh.call(e.properties,a)){const o=ef(r,a,e.properties[a]);o&&i.push(o)}}const s=r.space,u={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:Yt[s],childNodes:[],parentNode:null};return u.childNodes=Da(e.children,u,r),En(e,u),e.tagName==="template"&&e.content&&(u.content=Qh(e.content,r)),u}function ef(e,t,n){const r=ti(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?ll(n):cl(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=i.name.indexOf(":");a<0?i.prefix="":(i.name=i.name.slice(a+1),i.prefix=r.attribute.slice(0,a)),i.namespace=Yt[r.space]}return i}function Da(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const a=ml(e[r],n);a.parentNode=t,i.push(a)}return i}function En(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const tf=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],nf=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]),ke="�";var g;(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"})(g||(g={}));const qe={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function gl(e){return e>=55296&&e<=57343}function rf(e){return e>=56320&&e<=57343}function af(e,t){return(e-55296)*1024+9216+t}function bl(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function El(e){return e>=64976&&e<=65007||nf.has(e)}var v;(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"})(v||(v={}));const sf=65536;class uf{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=sf,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,n){const{line:r,col:i,offset:a}=this,s=i+n,u=a+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:u,endOffset:u}}_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){const n=this.html.charCodeAt(this.pos+1);if(rf(n))return this.pos++,this._addGap(),af(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,g.EOF;return this._err(v.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,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)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){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,g.EOF;const r=this.html.charCodeAt(n);return r===g.CARRIAGE_RETURN?g.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,g.EOF;let t=this.html.charCodeAt(this.pos);return t===g.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,g.LINE_FEED):t===g.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,gl(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===g.LINE_FEED||t===g.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){bl(t)?this._err(v.controlCharacterInInputStream):El(t)&&this._err(v.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var re;(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"})(re||(re={}));function Tl(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const of=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),lf=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]]);function cf(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=lf.get(e))!==null&&t!==void 0?t:e}var Ne;(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"})(Ne||(Ne={}));const df=32;var Rt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Rt||(Rt={}));function ea(e){return e>=Ne.ZERO&&e<=Ne.NINE}function hf(e){return e>=Ne.UPPER_A&&e<=Ne.UPPER_F||e>=Ne.LOWER_A&&e<=Ne.LOWER_F}function ff(e){return e>=Ne.UPPER_A&&e<=Ne.UPPER_Z||e>=Ne.LOWER_A&&e<=Ne.LOWER_Z||ea(e)}function pf(e){return e===Ne.EQUALS||ff(e)}var Ie;(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"})(Ie||(Ie={}));var xt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(xt||(xt={}));class mf{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Ie.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=xt.Strict}startEntity(t){this.decodeMode=t,this.state=Ie.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Ie.EntityStart:return t.charCodeAt(n)===Ne.NUM?(this.state=Ie.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Ie.NamedEntity,this.stateNamedEntity(t,n));case Ie.NumericStart:return this.stateNumericStart(t,n);case Ie.NumericDecimal:return this.stateNumericDecimal(t,n);case Ie.NumericHex:return this.stateNumericHex(t,n);case Ie.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|df)===Ne.LOWER_X?(this.state=Ie.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Ie.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const a=r-n;this.result=this.result*Math.pow(i,a)+Number.parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(ea(i)||hf(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(ea(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Ne.SEMI)this.consumed+=1;else if(this.decodeMode===xt.Strict)return 0;return this.emitCodePoint(cf(this.result),this.consumed),this.errors&&(t!==Ne.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],a=(i&Rt.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=gf(r,i,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===xt.Attribute&&(a===0||pf(s))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],a=(i&Rt.VALUE_LENGTH)>>14,a!==0){if(s===Ne.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==xt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&Rt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~Rt.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case Ie.NamedEntity:return this.result!==0&&(this.decodeMode!==xt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ie.NumericDecimal:return this.emitNumericEntity(0,2);case Ie.NumericHex:return this.emitNumericEntity(0,3);case Ie.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ie.EntityStart:return 0}}}function gf(e,t,n,r){const i=(t&Rt.BRANCH_LENGTH)>>7,a=t&Rt.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const o=r-a;return o<0||o>=i?-1:e[n+o]-1}let s=n,u=s+i-1;for(;s<=u;){const o=s+u>>>1,l=e[o];if(l<r)s=o+1;else if(l>r)u=o-1;else return e[o+i]}return-1}var O;(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/"})(O||(O={}));var qt;(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"})(qt||(qt={}));var rt;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(rt||(rt={}));var w;(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"})(w||(w={}));var c;(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"})(c||(c={}));const bf=new Map([[w.A,c.A],[w.ADDRESS,c.ADDRESS],[w.ANNOTATION_XML,c.ANNOTATION_XML],[w.APPLET,c.APPLET],[w.AREA,c.AREA],[w.ARTICLE,c.ARTICLE],[w.ASIDE,c.ASIDE],[w.B,c.B],[w.BASE,c.BASE],[w.BASEFONT,c.BASEFONT],[w.BGSOUND,c.BGSOUND],[w.BIG,c.BIG],[w.BLOCKQUOTE,c.BLOCKQUOTE],[w.BODY,c.BODY],[w.BR,c.BR],[w.BUTTON,c.BUTTON],[w.CAPTION,c.CAPTION],[w.CENTER,c.CENTER],[w.CODE,c.CODE],[w.COL,c.COL],[w.COLGROUP,c.COLGROUP],[w.DD,c.DD],[w.DESC,c.DESC],[w.DETAILS,c.DETAILS],[w.DIALOG,c.DIALOG],[w.DIR,c.DIR],[w.DIV,c.DIV],[w.DL,c.DL],[w.DT,c.DT],[w.EM,c.EM],[w.EMBED,c.EMBED],[w.FIELDSET,c.FIELDSET],[w.FIGCAPTION,c.FIGCAPTION],[w.FIGURE,c.FIGURE],[w.FONT,c.FONT],[w.FOOTER,c.FOOTER],[w.FOREIGN_OBJECT,c.FOREIGN_OBJECT],[w.FORM,c.FORM],[w.FRAME,c.FRAME],[w.FRAMESET,c.FRAMESET],[w.H1,c.H1],[w.H2,c.H2],[w.H3,c.H3],[w.H4,c.H4],[w.H5,c.H5],[w.H6,c.H6],[w.HEAD,c.HEAD],[w.HEADER,c.HEADER],[w.HGROUP,c.HGROUP],[w.HR,c.HR],[w.HTML,c.HTML],[w.I,c.I],[w.IMG,c.IMG],[w.IMAGE,c.IMAGE],[w.INPUT,c.INPUT],[w.IFRAME,c.IFRAME],[w.KEYGEN,c.KEYGEN],[w.LABEL,c.LABEL],[w.LI,c.LI],[w.LINK,c.LINK],[w.LISTING,c.LISTING],[w.MAIN,c.MAIN],[w.MALIGNMARK,c.MALIGNMARK],[w.MARQUEE,c.MARQUEE],[w.MATH,c.MATH],[w.MENU,c.MENU],[w.META,c.META],[w.MGLYPH,c.MGLYPH],[w.MI,c.MI],[w.MO,c.MO],[w.MN,c.MN],[w.MS,c.MS],[w.MTEXT,c.MTEXT],[w.NAV,c.NAV],[w.NOBR,c.NOBR],[w.NOFRAMES,c.NOFRAMES],[w.NOEMBED,c.NOEMBED],[w.NOSCRIPT,c.NOSCRIPT],[w.OBJECT,c.OBJECT],[w.OL,c.OL],[w.OPTGROUP,c.OPTGROUP],[w.OPTION,c.OPTION],[w.P,c.P],[w.PARAM,c.PARAM],[w.PLAINTEXT,c.PLAINTEXT],[w.PRE,c.PRE],[w.RB,c.RB],[w.RP,c.RP],[w.RT,c.RT],[w.RTC,c.RTC],[w.RUBY,c.RUBY],[w.S,c.S],[w.SCRIPT,c.SCRIPT],[w.SEARCH,c.SEARCH],[w.SECTION,c.SECTION],[w.SELECT,c.SELECT],[w.SOURCE,c.SOURCE],[w.SMALL,c.SMALL],[w.SPAN,c.SPAN],[w.STRIKE,c.STRIKE],[w.STRONG,c.STRONG],[w.STYLE,c.STYLE],[w.SUB,c.SUB],[w.SUMMARY,c.SUMMARY],[w.SUP,c.SUP],[w.TABLE,c.TABLE],[w.TBODY,c.TBODY],[w.TEMPLATE,c.TEMPLATE],[w.TEXTAREA,c.TEXTAREA],[w.TFOOT,c.TFOOT],[w.TD,c.TD],[w.TH,c.TH],[w.THEAD,c.THEAD],[w.TITLE,c.TITLE],[w.TR,c.TR],[w.TRACK,c.TRACK],[w.TT,c.TT],[w.U,c.U],[w.UL,c.UL],[w.SVG,c.SVG],[w.VAR,c.VAR],[w.WBR,c.WBR],[w.XMP,c.XMP]]);function Tn(e){var t;return(t=bf.get(e))!==null&&t!==void 0?t:c.UNKNOWN}const M=c,Ef={[O.HTML]:new Set([M.ADDRESS,M.APPLET,M.AREA,M.ARTICLE,M.ASIDE,M.BASE,M.BASEFONT,M.BGSOUND,M.BLOCKQUOTE,M.BODY,M.BR,M.BUTTON,M.CAPTION,M.CENTER,M.COL,M.COLGROUP,M.DD,M.DETAILS,M.DIR,M.DIV,M.DL,M.DT,M.EMBED,M.FIELDSET,M.FIGCAPTION,M.FIGURE,M.FOOTER,M.FORM,M.FRAME,M.FRAMESET,M.H1,M.H2,M.H3,M.H4,M.H5,M.H6,M.HEAD,M.HEADER,M.HGROUP,M.HR,M.HTML,M.IFRAME,M.IMG,M.INPUT,M.LI,M.LINK,M.LISTING,M.MAIN,M.MARQUEE,M.MENU,M.META,M.NAV,M.NOEMBED,M.NOFRAMES,M.NOSCRIPT,M.OBJECT,M.OL,M.P,M.PARAM,M.PLAINTEXT,M.PRE,M.SCRIPT,M.SECTION,M.SELECT,M.SOURCE,M.STYLE,M.SUMMARY,M.TABLE,M.TBODY,M.TD,M.TEMPLATE,M.TEXTAREA,M.TFOOT,M.TH,M.THEAD,M.TITLE,M.TR,M.TRACK,M.UL,M.WBR,M.XMP]),[O.MATHML]:new Set([M.MI,M.MO,M.MN,M.MS,M.MTEXT,M.ANNOTATION_XML]),[O.SVG]:new Set([M.TITLE,M.FOREIGN_OBJECT,M.DESC]),[O.XLINK]:new Set,[O.XML]:new Set,[O.XMLNS]:new Set},ta=new Set([M.H1,M.H2,M.H3,M.H4,M.H5,M.H6]);w.STYLE,w.SCRIPT,w.XMP,w.IFRAME,w.NOEMBED,w.NOFRAMES,w.PLAINTEXT;var E;(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"})(E||(E={}));const Ae={DATA:E.DATA,RCDATA:E.RCDATA,RAWTEXT:E.RAWTEXT,SCRIPT_DATA:E.SCRIPT_DATA,PLAINTEXT:E.PLAINTEXT,CDATA_SECTION:E.CDATA_SECTION};function Tf(e){return e>=g.DIGIT_0&&e<=g.DIGIT_9}function Pn(e){return e>=g.LATIN_CAPITAL_A&&e<=g.LATIN_CAPITAL_Z}function kf(e){return e>=g.LATIN_SMALL_A&&e<=g.LATIN_SMALL_Z}function It(e){return kf(e)||Pn(e)}function Ks(e){return It(e)||Tf(e)}function fr(e){return e+32}function kl(e){return e===g.SPACE||e===g.LINE_FEED||e===g.TABULATION||e===g.FORM_FEED}function Xs(e){return kl(e)||e===g.SOLIDUS||e===g.GREATER_THAN_SIGN}function _f(e){return e===g.NULL?v.nullCharacterReference:e>1114111?v.characterReferenceOutsideUnicodeRange:gl(e)?v.surrogateCharacterReference:El(e)?v.noncharacterCharacterReference:bl(e)||e===g.CARRIAGE_RETURN?v.controlCharacterReference:null}class xf{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=E.DATA,this.returnState=E.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new uf(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new mf(of,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(v.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(v.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=_f(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}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;const 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,n,r){this.active=!0,this.preprocessor.write(t,n),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 n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:re.START_TAG,tagName:"",tagID:c.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:re.END_TAG,tagName:"",tagID:c.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:re.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:re.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(Tl(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const i=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(v.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(){const t=this.currentToken;this.prepareToken(t),t.tagID=Tn(t.tagName),t.type===re.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(v.endTagWithAttributes),t.selfClosing&&this._err(v.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 re.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case re.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case re.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:re.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=kl(t)?re.WHITESPACE_CHARACTER:t===g.NULL?re.NULL_CHARACTER:re.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(re.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=E.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?xt.Attribute:xt.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===E.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===E.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===E.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case E.DATA:{this._stateData(t);break}case E.RCDATA:{this._stateRcdata(t);break}case E.RAWTEXT:{this._stateRawtext(t);break}case E.SCRIPT_DATA:{this._stateScriptData(t);break}case E.PLAINTEXT:{this._statePlaintext(t);break}case E.TAG_OPEN:{this._stateTagOpen(t);break}case E.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case E.TAG_NAME:{this._stateTagName(t);break}case E.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case E.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case E.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case E.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case E.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case E.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case E.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case E.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case E.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case E.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case E.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case E.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case E.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case E.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case E.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case E.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case E.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case E.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case E.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case E.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case E.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case E.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case E.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case E.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case E.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case E.BOGUS_COMMENT:{this._stateBogusComment(t);break}case E.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case E.COMMENT_START:{this._stateCommentStart(t);break}case E.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case E.COMMENT:{this._stateComment(t);break}case E.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case E.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case E.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case E.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case E.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case E.COMMENT_END:{this._stateCommentEnd(t);break}case E.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case E.DOCTYPE:{this._stateDoctype(t);break}case E.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case E.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case E.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case E.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case E.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case E.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case E.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case E.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case E.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case E.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case E.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case E.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case E.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case E.CDATA_SECTION:{this._stateCdataSection(t);break}case E.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case E.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case E.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case E.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case g.LESS_THAN_SIGN:{this.state=E.TAG_OPEN;break}case g.AMPERSAND:{this._startCharacterReference();break}case g.NULL:{this._err(v.unexpectedNullCharacter),this._emitCodePoint(t);break}case g.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case g.AMPERSAND:{this._startCharacterReference();break}case g.LESS_THAN_SIGN:{this.state=E.RCDATA_LESS_THAN_SIGN;break}case g.NULL:{this._err(v.unexpectedNullCharacter),this._emitChars(ke);break}case g.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case g.LESS_THAN_SIGN:{this.state=E.RAWTEXT_LESS_THAN_SIGN;break}case g.NULL:{this._err(v.unexpectedNullCharacter),this._emitChars(ke);break}case g.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case g.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_LESS_THAN_SIGN;break}case g.NULL:{this._err(v.unexpectedNullCharacter),this._emitChars(ke);break}case g.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case g.NULL:{this._err(v.unexpectedNullCharacter),this._emitChars(ke);break}case g.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(It(t))this._createStartTagToken(),this.state=E.TAG_NAME,this._stateTagName(t);else switch(t){case g.EXCLAMATION_MARK:{this.state=E.MARKUP_DECLARATION_OPEN;break}case g.SOLIDUS:{this.state=E.END_TAG_OPEN;break}case g.QUESTION_MARK:{this._err(v.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=E.BOGUS_COMMENT,this._stateBogusComment(t);break}case g.EOF:{this._err(v.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(v.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=E.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(It(t))this._createEndTagToken(),this.state=E.TAG_NAME,this._stateTagName(t);else switch(t){case g.GREATER_THAN_SIGN:{this._err(v.missingEndTagName),this.state=E.DATA;break}case g.EOF:{this._err(v.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(v.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=E.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this.state=E.BEFORE_ATTRIBUTE_NAME;break}case g.SOLIDUS:{this.state=E.SELF_CLOSING_START_TAG;break}case g.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentTagToken();break}case g.NULL:{this._err(v.unexpectedNullCharacter),n.tagName+=ke;break}case g.EOF:{this._err(v.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Pn(t)?fr(t):t)}}_stateRcdataLessThanSign(t){t===g.SOLIDUS?this.state=E.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=E.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){It(t)?(this.state=E.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=E.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=E.BEFORE_ATTRIBUTE_NAME,!1;case g.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=E.SELF_CLOSING_START_TAG,!1;case g.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=E.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=E.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===g.SOLIDUS?this.state=E.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=E.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){It(t)?(this.state=E.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=E.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=E.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case g.SOLIDUS:{this.state=E.SCRIPT_DATA_END_TAG_OPEN;break}case g.EXCLAMATION_MARK:{this.state=E.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=E.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){It(t)?(this.state=E.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=E.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=E.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===g.HYPHEN_MINUS?(this.state=E.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=E.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===g.HYPHEN_MINUS?(this.state=E.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=E.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case g.HYPHEN_MINUS:{this.state=E.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case g.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case g.NULL:{this._err(v.unexpectedNullCharacter),this._emitChars(ke);break}case g.EOF:{this._err(v.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case g.HYPHEN_MINUS:{this.state=E.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case g.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case g.NULL:{this._err(v.unexpectedNullCharacter),this.state=E.SCRIPT_DATA_ESCAPED,this._emitChars(ke);break}case g.EOF:{this._err(v.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=E.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case g.HYPHEN_MINUS:{this._emitChars("-");break}case g.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case g.GREATER_THAN_SIGN:{this.state=E.SCRIPT_DATA,this._emitChars(">");break}case g.NULL:{this._err(v.unexpectedNullCharacter),this.state=E.SCRIPT_DATA_ESCAPED,this._emitChars(ke);break}case g.EOF:{this._err(v.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=E.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===g.SOLIDUS?this.state=E.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:It(t)?(this._emitChars("<"),this.state=E.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=E.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){It(t)?(this.state=E.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=E.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=E.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(qe.SCRIPT,!1)&&Xs(this.preprocessor.peek(qe.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<qe.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=E.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case g.HYPHEN_MINUS:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case g.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case g.NULL:{this._err(v.unexpectedNullCharacter),this._emitChars(ke);break}case g.EOF:{this._err(v.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case g.HYPHEN_MINUS:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case g.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case g.NULL:{this._err(v.unexpectedNullCharacter),this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ke);break}case g.EOF:{this._err(v.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case g.HYPHEN_MINUS:{this._emitChars("-");break}case g.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case g.GREATER_THAN_SIGN:{this.state=E.SCRIPT_DATA,this._emitChars(">");break}case g.NULL:{this._err(v.unexpectedNullCharacter),this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ke);break}case g.EOF:{this._err(v.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===g.SOLIDUS?(this.state=E.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(qe.SCRIPT,!1)&&Xs(this.preprocessor.peek(qe.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<qe.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=E.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.SOLIDUS:case g.GREATER_THAN_SIGN:case g.EOF:{this.state=E.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case g.EQUALS_SIGN:{this._err(v.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=E.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=E.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:case g.SOLIDUS:case g.GREATER_THAN_SIGN:case g.EOF:{this._leaveAttrName(),this.state=E.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case g.EQUALS_SIGN:{this._leaveAttrName(),this.state=E.BEFORE_ATTRIBUTE_VALUE;break}case g.QUOTATION_MARK:case g.APOSTROPHE:case g.LESS_THAN_SIGN:{this._err(v.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case g.NULL:{this._err(v.unexpectedNullCharacter),this.currentAttr.name+=ke;break}default:this.currentAttr.name+=String.fromCodePoint(Pn(t)?fr(t):t)}}_stateAfterAttributeName(t){switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.SOLIDUS:{this.state=E.SELF_CLOSING_START_TAG;break}case g.EQUALS_SIGN:{this.state=E.BEFORE_ATTRIBUTE_VALUE;break}case g.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentTagToken();break}case g.EOF:{this._err(v.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=E.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.QUOTATION_MARK:{this.state=E.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case g.APOSTROPHE:{this.state=E.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case g.GREATER_THAN_SIGN:{this._err(v.missingAttributeValue),this.state=E.DATA,this.emitCurrentTagToken();break}default:this.state=E.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case g.QUOTATION_MARK:{this.state=E.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case g.AMPERSAND:{this._startCharacterReference();break}case g.NULL:{this._err(v.unexpectedNullCharacter),this.currentAttr.value+=ke;break}case g.EOF:{this._err(v.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case g.APOSTROPHE:{this.state=E.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case g.AMPERSAND:{this._startCharacterReference();break}case g.NULL:{this._err(v.unexpectedNullCharacter),this.currentAttr.value+=ke;break}case g.EOF:{this._err(v.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this._leaveAttrValue(),this.state=E.BEFORE_ATTRIBUTE_NAME;break}case g.AMPERSAND:{this._startCharacterReference();break}case g.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=E.DATA,this.emitCurrentTagToken();break}case g.NULL:{this._err(v.unexpectedNullCharacter),this.currentAttr.value+=ke;break}case g.QUOTATION_MARK:case g.APOSTROPHE:case g.LESS_THAN_SIGN:case g.EQUALS_SIGN:case g.GRAVE_ACCENT:{this._err(v.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case g.EOF:{this._err(v.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this._leaveAttrValue(),this.state=E.BEFORE_ATTRIBUTE_NAME;break}case g.SOLIDUS:{this._leaveAttrValue(),this.state=E.SELF_CLOSING_START_TAG;break}case g.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=E.DATA,this.emitCurrentTagToken();break}case g.EOF:{this._err(v.eofInTag),this._emitEOFToken();break}default:this._err(v.missingWhitespaceBetweenAttributes),this.state=E.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case g.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=E.DATA,this.emitCurrentTagToken();break}case g.EOF:{this._err(v.eofInTag),this._emitEOFToken();break}default:this._err(v.unexpectedSolidusInTag),this.state=E.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case g.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentComment(n);break}case g.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case g.NULL:{this._err(v.unexpectedNullCharacter),n.data+=ke;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(qe.DASH_DASH,!0)?(this._createCommentToken(qe.DASH_DASH.length+1),this.state=E.COMMENT_START):this._consumeSequenceIfMatch(qe.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(qe.DOCTYPE.length+1),this.state=E.DOCTYPE):this._consumeSequenceIfMatch(qe.CDATA_START,!0)?this.inForeignNode?this.state=E.CDATA_SECTION:(this._err(v.cdataInHtmlContent),this._createCommentToken(qe.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=E.BOGUS_COMMENT):this._ensureHibernation()||(this._err(v.incorrectlyOpenedComment),this._createCommentToken(2),this.state=E.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case g.HYPHEN_MINUS:{this.state=E.COMMENT_START_DASH;break}case g.GREATER_THAN_SIGN:{this._err(v.abruptClosingOfEmptyComment),this.state=E.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=E.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case g.HYPHEN_MINUS:{this.state=E.COMMENT_END;break}case g.GREATER_THAN_SIGN:{this._err(v.abruptClosingOfEmptyComment),this.state=E.DATA,this.emitCurrentComment(n);break}case g.EOF:{this._err(v.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=E.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case g.HYPHEN_MINUS:{this.state=E.COMMENT_END_DASH;break}case g.LESS_THAN_SIGN:{n.data+="<",this.state=E.COMMENT_LESS_THAN_SIGN;break}case g.NULL:{this._err(v.unexpectedNullCharacter),n.data+=ke;break}case g.EOF:{this._err(v.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case g.EXCLAMATION_MARK:{n.data+="!",this.state=E.COMMENT_LESS_THAN_SIGN_BANG;break}case g.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=E.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===g.HYPHEN_MINUS?this.state=E.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=E.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===g.HYPHEN_MINUS?this.state=E.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=E.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==g.GREATER_THAN_SIGN&&t!==g.EOF&&this._err(v.nestedComment),this.state=E.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case g.HYPHEN_MINUS:{this.state=E.COMMENT_END;break}case g.EOF:{this._err(v.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=E.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case g.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentComment(n);break}case g.EXCLAMATION_MARK:{this.state=E.COMMENT_END_BANG;break}case g.HYPHEN_MINUS:{n.data+="-";break}case g.EOF:{this._err(v.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=E.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case g.HYPHEN_MINUS:{n.data+="--!",this.state=E.COMMENT_END_DASH;break}case g.GREATER_THAN_SIGN:{this._err(v.incorrectlyClosedComment),this.state=E.DATA,this.emitCurrentComment(n);break}case g.EOF:{this._err(v.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=E.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this.state=E.BEFORE_DOCTYPE_NAME;break}case g.GREATER_THAN_SIGN:{this.state=E.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case g.EOF:{this._err(v.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.missingWhitespaceBeforeDoctypeName),this.state=E.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Pn(t))this._createDoctypeToken(String.fromCharCode(fr(t))),this.state=E.DOCTYPE_NAME;else switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.NULL:{this._err(v.unexpectedNullCharacter),this._createDoctypeToken(ke),this.state=E.DOCTYPE_NAME;break}case g.GREATER_THAN_SIGN:{this._err(v.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case g.EOF:{this._err(v.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=E.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this.state=E.AFTER_DOCTYPE_NAME;break}case g.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentDoctype(n);break}case g.NULL:{this._err(v.unexpectedNullCharacter),n.name+=ke;break}case g.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Pn(t)?fr(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentDoctype(n);break}case g.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(qe.PUBLIC,!1)?this.state=E.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(qe.SYSTEM,!1)?this.state=E.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(v.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this.state=E.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case g.QUOTATION_MARK:{this._err(v.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=E.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case g.APOSTROPHE:{this._err(v.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=E.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case g.GREATER_THAN_SIGN:{this._err(v.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=E.DATA,this.emitCurrentDoctype(n);break}case g.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.QUOTATION_MARK:{n.publicId="",this.state=E.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case g.APOSTROPHE:{n.publicId="",this.state=E.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case g.GREATER_THAN_SIGN:{this._err(v.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=E.DATA,this.emitCurrentDoctype(n);break}case g.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case g.QUOTATION_MARK:{this.state=E.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case g.NULL:{this._err(v.unexpectedNullCharacter),n.publicId+=ke;break}case g.GREATER_THAN_SIGN:{this._err(v.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case g.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case g.APOSTROPHE:{this.state=E.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case g.NULL:{this._err(v.unexpectedNullCharacter),n.publicId+=ke;break}case g.GREATER_THAN_SIGN:{this._err(v.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case g.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this.state=E.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case g.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentDoctype(n);break}case g.QUOTATION_MARK:{this._err(v.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case g.APOSTROPHE:{this._err(v.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case g.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=E.DATA;break}case g.QUOTATION_MARK:{n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case g.APOSTROPHE:{n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case g.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this.state=E.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case g.QUOTATION_MARK:{this._err(v.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case g.APOSTROPHE:{this._err(v.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case g.GREATER_THAN_SIGN:{this._err(v.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.DATA,this.emitCurrentDoctype(n);break}case g.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.QUOTATION_MARK:{n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case g.APOSTROPHE:{n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case g.GREATER_THAN_SIGN:{this._err(v.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.DATA,this.emitCurrentDoctype(n);break}case g.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case g.QUOTATION_MARK:{this.state=E.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case g.NULL:{this._err(v.unexpectedNullCharacter),n.systemId+=ke;break}case g.GREATER_THAN_SIGN:{this._err(v.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case g.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case g.APOSTROPHE:{this.state=E.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case g.NULL:{this._err(v.unexpectedNullCharacter),n.systemId+=ke;break}case g.GREATER_THAN_SIGN:{this._err(v.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case g.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=E.DATA;break}case g.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case g.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=E.DATA;break}case g.NULL:{this._err(v.unexpectedNullCharacter);break}case g.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case g.RIGHT_SQUARE_BRACKET:{this.state=E.CDATA_SECTION_BRACKET;break}case g.EOF:{this._err(v.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===g.RIGHT_SQUARE_BRACKET?this.state=E.CDATA_SECTION_END:(this._emitChars("]"),this.state=E.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case g.GREATER_THAN_SIGN:{this.state=E.DATA;break}case g.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=E.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(g.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Ks(this.preprocessor.peek(1))?E.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Ks(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===g.SEMICOLON&&this._err(v.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const _l=new Set([c.DD,c.DT,c.LI,c.OPTGROUP,c.OPTION,c.P,c.RB,c.RP,c.RT,c.RTC]),Zs=new Set([..._l,c.CAPTION,c.COLGROUP,c.TBODY,c.TD,c.TFOOT,c.TH,c.THEAD,c.TR]),Fr=new Set([c.APPLET,c.CAPTION,c.HTML,c.MARQUEE,c.OBJECT,c.TABLE,c.TD,c.TEMPLATE,c.TH]),yf=new Set([...Fr,c.OL,c.UL]),Af=new Set([...Fr,c.BUTTON]),Js=new Set([c.ANNOTATION_XML,c.MI,c.MN,c.MO,c.MS,c.MTEXT]),eu=new Set([c.DESC,c.FOREIGN_OBJECT,c.TITLE]),Cf=new Set([c.TR,c.TEMPLATE,c.HTML]),wf=new Set([c.TBODY,c.TFOOT,c.THEAD,c.TEMPLATE,c.HTML]),Sf=new Set([c.TABLE,c.TEMPLATE,c.HTML]),If=new Set([c.TD,c.TH]);class Nf{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=c.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===c.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===O.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==O.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(ta,O.HTML)}popUntilTableCellPopped(){this.popUntilPopped(If,O.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(Sf,O.HTML)}clearBackToTableBodyContext(){this.clearBackTo(wf,O.HTML)}clearBackToTableRowContext(){this.clearBackTo(Cf,O.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===c.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===c.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case O.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case O.SVG:{if(eu.has(i))return!1;break}case O.MATHML:{if(Js.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Fr)}hasInListItemScope(t){return this.hasInDynamicScope(t,yf)}hasInButtonScope(t){return this.hasInDynamicScope(t,Af)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case O.HTML:{if(ta.has(n))return!0;if(Fr.has(n))return!1;break}case O.SVG:{if(eu.has(n))return!1;break}case O.MATHML:{if(Js.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===O.HTML)switch(this.tagIDs[n]){case t:return!0;case c.TABLE:case c.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===O.HTML)switch(this.tagIDs[t]){case c.TBODY:case c.THEAD:case c.TFOOT:return!0;case c.TABLE:case c.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===O.HTML)switch(this.tagIDs[n]){case t:return!0;case c.OPTION:case c.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&_l.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Zs.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Zs.has(this.currentTagId);)this.pop()}}const xi=3;var ht;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ht||(ht={}));const tu={type:ht.Marker};class vf{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let u=0;u<this.entries.length;u++){const o=this.entries[u];if(o.type===ht.Marker)break;const{element:l}=o;if(this.treeAdapter.getTagName(l)===a&&this.treeAdapter.getNamespaceURI(l)===s){const h=this.treeAdapter.getAttrList(l);h.length===i&&r.push({idx:u,attrs:h})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<xi)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<xi)return;const i=new Map(n.map(s=>[s.name,s.value]));let a=0;for(let s=0;s<r.length;s++){const u=r[s];u.attrs.every(o=>i.get(o.name)===o.value)&&(a+=1,a>=xi&&this.entries.splice(u.idx,1))}}insertMarker(){this.entries.unshift(tu)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:ht.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:ht.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(tu);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===ht.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===ht.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===ht.Element&&n.element===t)}}const Nt={createDocument(){return{nodeName:"#document",mode:rt.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,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,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Nt.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Nt.isTextNode(n)){n.value+=t;return}}Nt.appendChild(e,Nt.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Nt.isTextNode(r)?r.value+=t:Nt.insertBefore(e,Nt.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.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}}},xl="html",Lf="about:legacy-compat",Rf="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",yl=["+//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//"],Of=[...yl,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Df=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Al=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Pf=[...Al,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function nu(e,t){return t.some(n=>e.startsWith(n))}function Mf(e){return e.name===xl&&e.publicId===null&&(e.systemId===null||e.systemId===Lf)}function Bf(e){if(e.name!==xl)return rt.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===Rf)return rt.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),Df.has(n))return rt.QUIRKS;let r=t===null?Of:yl;if(nu(n,r))return rt.QUIRKS;if(r=t===null?Al:Pf,nu(n,r))return rt.LIMITED_QUIRKS}return rt.NO_QUIRKS}const ru={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Ff="definitionurl",Hf="definitionURL",Uf=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])),zf=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:O.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:O.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:O.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:O.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:O.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:O.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:O.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:O.XML}],["xml:space",{prefix:"xml",name:"space",namespace:O.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:O.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:O.XMLNS}]]),$f=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])),Yf=new Set([c.B,c.BIG,c.BLOCKQUOTE,c.BODY,c.BR,c.CENTER,c.CODE,c.DD,c.DIV,c.DL,c.DT,c.EM,c.EMBED,c.H1,c.H2,c.H3,c.H4,c.H5,c.H6,c.HEAD,c.HR,c.I,c.IMG,c.LI,c.LISTING,c.MENU,c.META,c.NOBR,c.OL,c.P,c.PRE,c.RUBY,c.S,c.SMALL,c.SPAN,c.STRONG,c.STRIKE,c.SUB,c.SUP,c.TABLE,c.TT,c.U,c.UL,c.VAR]);function qf(e){const t=e.tagID;return t===c.FONT&&e.attrs.some(({name:r})=>r===qt.COLOR||r===qt.SIZE||r===qt.FACE)||Yf.has(t)}function Cl(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Ff){e.attrs[t].name=Hf;break}}function wl(e){for(let t=0;t<e.attrs.length;t++){const n=Uf.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Pa(e){for(let t=0;t<e.attrs.length;t++){const n=zf.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function jf(e){const t=$f.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Tn(e.tagName))}function Vf(e,t){return t===O.MATHML&&(e===c.MI||e===c.MO||e===c.MN||e===c.MS||e===c.MTEXT)}function Wf(e,t,n){if(t===O.MATHML&&e===c.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===qt.ENCODING){const i=n[r].value.toLowerCase();return i===ru.TEXT_HTML||i===ru.APPLICATION_XML}}return t===O.SVG&&(e===c.FOREIGN_OBJECT||e===c.DESC||e===c.TITLE)}function Gf(e,t,n,r){return(!r||r===O.HTML)&&Wf(e,t,n)||(!r||r===O.MATHML)&&Vf(e,t)}const Qf="hidden",Kf=8,Xf=3;var k;(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"})(k||(k={}));const Zf={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Sl=new Set([c.TABLE,c.TBODY,c.TFOOT,c.THEAD,c.TR]),iu={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Nt,onParseError:null};class au{constructor(t,n,r=null,i=null){this.fragmentContext=r,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=k.INITIAL,this.originalInsertionMode=k.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={...iu,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new xf(this.options,this),this.activeFormattingElements=new vf(this.treeAdapter),this.fragmentContextID=r?Tn(this.treeAdapter.getTagName(r)):c.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new Nf(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...iu,...n};t??(t=r.treeAdapter.createElement(w.TEMPLATE,O.HTML,[]));const i=r.treeAdapter.createElement("documentmock",O.HTML,[]),a=new this(r,i,t);return a.fragmentContextID===c.TEMPLATE&&a.tmplInsertionModeStack.unshift(k.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var i;if(!this.onParseError)return;const a=(i=t.location)!==null&&i!==void 0?i:Zf,s={code:n,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(s)}onItemPush(t,n,r){var i,a;(a=(i=this.treeAdapter).onItemPush)===null||a===void 0||a.call(i,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===O.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,O.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=k.TEXT}switchToPlaintextParsing(){this.insertionMode=k.TEXT,this.originalInsertionMode=k.IN_BODY,this.tokenizer.state=Ae.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)===w.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==O.HTML))switch(this.fragmentContextID){case c.TITLE:case c.TEXTAREA:{this.tokenizer.state=Ae.RCDATA;break}case c.STYLE:case c.XMP:case c.IFRAME:case c.NOEMBED:case c.NOFRAMES:case c.NOSCRIPT:{this.tokenizer.state=Ae.RAWTEXT;break}case c.SCRIPT:{this.tokenizer.state=Ae.SCRIPT_DATA;break}case c.PLAINTEXT:{this.tokenizer.state=Ae.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(u=>this.treeAdapter.isDocumentTypeNode(u));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,O.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,O.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(w.HTML,O.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,c.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),a=r?i.lastIndexOf(r):i.length,s=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:o,endCol:l,endOffset:h}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:o,endCol:l,endOffset:h})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),a=n.type===re.END_TAG&&i===n.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,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===c.SVG&&this.treeAdapter.getTagName(n)===w.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===O.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===c.MGLYPH||t.tagID===c.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,O.HTML)}_processToken(t){switch(t.type){case re.CHARACTER:{this.onCharacter(t);break}case re.NULL_CHARACTER:{this.onNullCharacter(t);break}case re.COMMENT:{this.onComment(t);break}case re.DOCTYPE:{this.onDoctype(t);break}case re.START_TAG:{this._processStartTag(t);break}case re.END_TAG:{this.onEndTag(t);break}case re.EOF:{this.onEof(t);break}case re.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return Gf(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===ht.Marker||this.openElements.contains(i.element)),r=n===-1?t-1:n-1;for(let i=r;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=k.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(c.P),this.openElements.popUntilTagNamePopped(c.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case c.TR:{this.insertionMode=k.IN_ROW;return}case c.TBODY:case c.THEAD:case c.TFOOT:{this.insertionMode=k.IN_TABLE_BODY;return}case c.CAPTION:{this.insertionMode=k.IN_CAPTION;return}case c.COLGROUP:{this.insertionMode=k.IN_COLUMN_GROUP;return}case c.TABLE:{this.insertionMode=k.IN_TABLE;return}case c.BODY:{this.insertionMode=k.IN_BODY;return}case c.FRAMESET:{this.insertionMode=k.IN_FRAMESET;return}case c.SELECT:{this._resetInsertionModeForSelect(t);return}case c.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case c.HTML:{this.insertionMode=this.headElement?k.AFTER_HEAD:k.BEFORE_HEAD;return}case c.TD:case c.TH:{if(t>0){this.insertionMode=k.IN_CELL;return}break}case c.HEAD:{if(t>0){this.insertionMode=k.IN_HEAD;return}break}}this.insertionMode=k.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===c.TEMPLATE)break;if(r===c.TABLE){this.insertionMode=k.IN_SELECT_IN_TABLE;return}}this.insertionMode=k.IN_SELECT}_isElementCausesFosterParenting(t){return Sl.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case c.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===O.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case c.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return Ef[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){I1(this,t);return}switch(this.insertionMode){case k.INITIAL:{In(this,t);break}case k.BEFORE_HTML:{Hn(this,t);break}case k.BEFORE_HEAD:{Un(this,t);break}case k.IN_HEAD:{zn(this,t);break}case k.IN_HEAD_NO_SCRIPT:{$n(this,t);break}case k.AFTER_HEAD:{Yn(this,t);break}case k.IN_BODY:case k.IN_CAPTION:case k.IN_CELL:case k.IN_TEMPLATE:{Nl(this,t);break}case k.TEXT:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:{yi(this,t);break}case k.IN_TABLE_TEXT:{Pl(this,t);break}case k.IN_COLUMN_GROUP:{Hr(this,t);break}case k.AFTER_BODY:{Ur(this,t);break}case k.AFTER_AFTER_BODY:{Sr(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){S1(this,t);return}switch(this.insertionMode){case k.INITIAL:{In(this,t);break}case k.BEFORE_HTML:{Hn(this,t);break}case k.BEFORE_HEAD:{Un(this,t);break}case k.IN_HEAD:{zn(this,t);break}case k.IN_HEAD_NO_SCRIPT:{$n(this,t);break}case k.AFTER_HEAD:{Yn(this,t);break}case k.TEXT:{this._insertCharacters(t);break}case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:{yi(this,t);break}case k.IN_COLUMN_GROUP:{Hr(this,t);break}case k.AFTER_BODY:{Ur(this,t);break}case k.AFTER_AFTER_BODY:{Sr(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){na(this,t);return}switch(this.insertionMode){case k.INITIAL:case k.BEFORE_HTML:case k.BEFORE_HEAD:case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:case k.IN_BODY:case k.IN_TABLE:case k.IN_CAPTION:case k.IN_COLUMN_GROUP:case k.IN_TABLE_BODY:case k.IN_ROW:case k.IN_CELL:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:case k.IN_TEMPLATE:case k.IN_FRAMESET:case k.AFTER_FRAMESET:{na(this,t);break}case k.IN_TABLE_TEXT:{Nn(this,t);break}case k.AFTER_BODY:{ap(this,t);break}case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:{sp(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case k.INITIAL:{up(this,t);break}case k.BEFORE_HEAD:case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:{this._err(t,v.misplacedDoctype);break}case k.IN_TABLE_TEXT:{Nn(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,v.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?N1(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case k.INITIAL:{In(this,t);break}case k.BEFORE_HTML:{op(this,t);break}case k.BEFORE_HEAD:{cp(this,t);break}case k.IN_HEAD:{lt(this,t);break}case k.IN_HEAD_NO_SCRIPT:{fp(this,t);break}case k.AFTER_HEAD:{mp(this,t);break}case k.IN_BODY:{Me(this,t);break}case k.IN_TABLE:{hn(this,t);break}case k.IN_TABLE_TEXT:{Nn(this,t);break}case k.IN_CAPTION:{d1(this,t);break}case k.IN_COLUMN_GROUP:{Fa(this,t);break}case k.IN_TABLE_BODY:{ii(this,t);break}case k.IN_ROW:{ai(this,t);break}case k.IN_CELL:{p1(this,t);break}case k.IN_SELECT:{Fl(this,t);break}case k.IN_SELECT_IN_TABLE:{g1(this,t);break}case k.IN_TEMPLATE:{E1(this,t);break}case k.AFTER_BODY:{k1(this,t);break}case k.IN_FRAMESET:{_1(this,t);break}case k.AFTER_FRAMESET:{y1(this,t);break}case k.AFTER_AFTER_BODY:{C1(this,t);break}case k.AFTER_AFTER_FRAMESET:{w1(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?v1(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case k.INITIAL:{In(this,t);break}case k.BEFORE_HTML:{lp(this,t);break}case k.BEFORE_HEAD:{dp(this,t);break}case k.IN_HEAD:{hp(this,t);break}case k.IN_HEAD_NO_SCRIPT:{pp(this,t);break}case k.AFTER_HEAD:{gp(this,t);break}case k.IN_BODY:{ri(this,t);break}case k.TEXT:{t1(this,t);break}case k.IN_TABLE:{Xn(this,t);break}case k.IN_TABLE_TEXT:{Nn(this,t);break}case k.IN_CAPTION:{h1(this,t);break}case k.IN_COLUMN_GROUP:{f1(this,t);break}case k.IN_TABLE_BODY:{ra(this,t);break}case k.IN_ROW:{Bl(this,t);break}case k.IN_CELL:{m1(this,t);break}case k.IN_SELECT:{Hl(this,t);break}case k.IN_SELECT_IN_TABLE:{b1(this,t);break}case k.IN_TEMPLATE:{T1(this,t);break}case k.AFTER_BODY:{zl(this,t);break}case k.IN_FRAMESET:{x1(this,t);break}case k.AFTER_FRAMESET:{A1(this,t);break}case k.AFTER_AFTER_BODY:{Sr(this,t);break}}}onEof(t){switch(this.insertionMode){case k.INITIAL:{In(this,t);break}case k.BEFORE_HTML:{Hn(this,t);break}case k.BEFORE_HEAD:{Un(this,t);break}case k.IN_HEAD:{zn(this,t);break}case k.IN_HEAD_NO_SCRIPT:{$n(this,t);break}case k.AFTER_HEAD:{Yn(this,t);break}case k.IN_BODY:case k.IN_TABLE:case k.IN_CAPTION:case k.IN_COLUMN_GROUP:case k.IN_TABLE_BODY:case k.IN_ROW:case k.IN_CELL:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:{Ol(this,t);break}case k.TEXT:{n1(this,t);break}case k.IN_TABLE_TEXT:{Nn(this,t);break}case k.IN_TEMPLATE:{Ul(this,t);break}case k.AFTER_BODY:case k.IN_FRAMESET:case k.AFTER_FRAMESET:case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:{Ba(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===g.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 k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:case k.TEXT:case k.IN_COLUMN_GROUP:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:case k.IN_FRAMESET:case k.AFTER_FRAMESET:{this._insertCharacters(t);break}case k.IN_BODY:case k.IN_CAPTION:case k.IN_CELL:case k.IN_TEMPLATE:case k.AFTER_BODY:case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:{Il(this,t);break}case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:{yi(this,t);break}case k.IN_TABLE_TEXT:{Dl(this,t);break}}}}function Jf(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Rl(e,t),n}function ep(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function tp(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);const u=e.activeFormattingElements.getElementEntry(s),o=u&&a>=Xf;!u||o?(o&&e.activeFormattingElements.removeEntry(u),e.openElements.remove(s)):(s=np(e,u),r===t&&(e.activeFormattingElements.bookmark=u),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function np(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function rp(e,t,n){const r=e.treeAdapter.getTagName(t),i=Tn(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===c.TEMPLATE&&a===O.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function ip(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function Ma(e,t){for(let n=0;n<Kf;n++){const r=Jf(e,t);if(!r)break;const i=ep(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;const a=tp(e,i,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),s&&rp(e,s,a),ip(e,i,r)}}function na(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function ap(e,t){e._appendCommentNode(t,e.openElements.items[0])}function sp(e,t){e._appendCommentNode(t,e.document)}function Ba(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function up(e,t){e._setDocumentType(t);const n=t.forceQuirks?rt.QUIRKS:Bf(t);Mf(t)||e._err(t,v.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=k.BEFORE_HTML}function In(e,t){e._err(t,v.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,rt.QUIRKS),e.insertionMode=k.BEFORE_HTML,e._processToken(t)}function op(e,t){t.tagID===c.HTML?(e._insertElement(t,O.HTML),e.insertionMode=k.BEFORE_HEAD):Hn(e,t)}function lp(e,t){const n=t.tagID;(n===c.HTML||n===c.HEAD||n===c.BODY||n===c.BR)&&Hn(e,t)}function Hn(e,t){e._insertFakeRootElement(),e.insertionMode=k.BEFORE_HEAD,e._processToken(t)}function cp(e,t){switch(t.tagID){case c.HTML:{Me(e,t);break}case c.HEAD:{e._insertElement(t,O.HTML),e.headElement=e.openElements.current,e.insertionMode=k.IN_HEAD;break}default:Un(e,t)}}function dp(e,t){const n=t.tagID;n===c.HEAD||n===c.BODY||n===c.HTML||n===c.BR?Un(e,t):e._err(t,v.endTagWithoutMatchingOpenElement)}function Un(e,t){e._insertFakeElement(w.HEAD,c.HEAD),e.headElement=e.openElements.current,e.insertionMode=k.IN_HEAD,e._processToken(t)}function lt(e,t){switch(t.tagID){case c.HTML:{Me(e,t);break}case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:{e._appendElement(t,O.HTML),t.ackSelfClosing=!0;break}case c.TITLE:{e._switchToTextParsing(t,Ae.RCDATA);break}case c.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Ae.RAWTEXT):(e._insertElement(t,O.HTML),e.insertionMode=k.IN_HEAD_NO_SCRIPT);break}case c.NOFRAMES:case c.STYLE:{e._switchToTextParsing(t,Ae.RAWTEXT);break}case c.SCRIPT:{e._switchToTextParsing(t,Ae.SCRIPT_DATA);break}case c.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=k.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(k.IN_TEMPLATE);break}case c.HEAD:{e._err(t,v.misplacedStartTagForHeadElement);break}default:zn(e,t)}}function hp(e,t){switch(t.tagID){case c.HEAD:{e.openElements.pop(),e.insertionMode=k.AFTER_HEAD;break}case c.BODY:case c.BR:case c.HTML:{zn(e,t);break}case c.TEMPLATE:{Kt(e,t);break}default:e._err(t,v.endTagWithoutMatchingOpenElement)}}function Kt(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==c.TEMPLATE&&e._err(t,v.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(c.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,v.endTagWithoutMatchingOpenElement)}function zn(e,t){e.openElements.pop(),e.insertionMode=k.AFTER_HEAD,e._processToken(t)}function fp(e,t){switch(t.tagID){case c.HTML:{Me(e,t);break}case c.BASEFONT:case c.BGSOUND:case c.HEAD:case c.LINK:case c.META:case c.NOFRAMES:case c.STYLE:{lt(e,t);break}case c.NOSCRIPT:{e._err(t,v.nestedNoscriptInHead);break}default:$n(e,t)}}function pp(e,t){switch(t.tagID){case c.NOSCRIPT:{e.openElements.pop(),e.insertionMode=k.IN_HEAD;break}case c.BR:{$n(e,t);break}default:e._err(t,v.endTagWithoutMatchingOpenElement)}}function $n(e,t){const n=t.type===re.EOF?v.openElementsLeftAfterEof:v.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=k.IN_HEAD,e._processToken(t)}function mp(e,t){switch(t.tagID){case c.HTML:{Me(e,t);break}case c.BODY:{e._insertElement(t,O.HTML),e.framesetOk=!1,e.insertionMode=k.IN_BODY;break}case c.FRAMESET:{e._insertElement(t,O.HTML),e.insertionMode=k.IN_FRAMESET;break}case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:case c.NOFRAMES:case c.SCRIPT:case c.STYLE:case c.TEMPLATE:case c.TITLE:{e._err(t,v.abandonedHeadElementChild),e.openElements.push(e.headElement,c.HEAD),lt(e,t),e.openElements.remove(e.headElement);break}case c.HEAD:{e._err(t,v.misplacedStartTagForHeadElement);break}default:Yn(e,t)}}function gp(e,t){switch(t.tagID){case c.BODY:case c.HTML:case c.BR:{Yn(e,t);break}case c.TEMPLATE:{Kt(e,t);break}default:e._err(t,v.endTagWithoutMatchingOpenElement)}}function Yn(e,t){e._insertFakeElement(w.BODY,c.BODY),e.insertionMode=k.IN_BODY,ni(e,t)}function ni(e,t){switch(t.type){case re.CHARACTER:{Nl(e,t);break}case re.WHITESPACE_CHARACTER:{Il(e,t);break}case re.COMMENT:{na(e,t);break}case re.START_TAG:{Me(e,t);break}case re.END_TAG:{ri(e,t);break}case re.EOF:{Ol(e,t);break}}}function Il(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Nl(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function bp(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Ep(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Tp(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,O.HTML),e.insertionMode=k.IN_FRAMESET)}function kp(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,O.HTML)}function _p(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&ta.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,O.HTML)}function xp(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,O.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function yp(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,O.HTML),n||(e.formElement=e.openElements.current))}function Ap(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===c.LI&&i===c.LI||(n===c.DD||n===c.DT)&&(i===c.DD||i===c.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==c.ADDRESS&&i!==c.DIV&&i!==c.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,O.HTML)}function Cp(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,O.HTML),e.tokenizer.state=Ae.PLAINTEXT}function wp(e,t){e.openElements.hasInScope(c.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.framesetOk=!1}function Sp(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(w.A);n&&(Ma(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ip(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Np(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(c.NOBR)&&(Ma(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,O.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function vp(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Lp(e,t){e.treeAdapter.getDocumentMode(e.document)!==rt.QUIRKS&&e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,O.HTML),e.framesetOk=!1,e.insertionMode=k.IN_TABLE}function vl(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,O.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Ll(e){const t=Tl(e,qt.TYPE);return t!=null&&t.toLowerCase()===Qf}function Rp(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,O.HTML),Ll(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Op(e,t){e._appendElement(t,O.HTML),t.ackSelfClosing=!0}function Dp(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._appendElement(t,O.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Pp(e,t){t.tagName=w.IMG,t.tagID=c.IMG,vl(e,t)}function Mp(e,t){e._insertElement(t,O.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Ae.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=k.TEXT}function Bp(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Ae.RAWTEXT)}function Fp(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Ae.RAWTEXT)}function su(e,t){e._switchToTextParsing(t,Ae.RAWTEXT)}function Hp(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===k.IN_TABLE||e.insertionMode===k.IN_CAPTION||e.insertionMode===k.IN_TABLE_BODY||e.insertionMode===k.IN_ROW||e.insertionMode===k.IN_CELL?k.IN_SELECT_IN_TABLE:k.IN_SELECT}function Up(e,t){e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML)}function zp(e,t){e.openElements.hasInScope(c.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,O.HTML)}function $p(e,t){e.openElements.hasInScope(c.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(c.RTC),e._insertElement(t,O.HTML)}function Yp(e,t){e._reconstructActiveFormattingElements(),Cl(t),Pa(t),t.selfClosing?e._appendElement(t,O.MATHML):e._insertElement(t,O.MATHML),t.ackSelfClosing=!0}function qp(e,t){e._reconstructActiveFormattingElements(),wl(t),Pa(t),t.selfClosing?e._appendElement(t,O.SVG):e._insertElement(t,O.SVG),t.ackSelfClosing=!0}function uu(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML)}function Me(e,t){switch(t.tagID){case c.I:case c.S:case c.B:case c.U:case c.EM:case c.TT:case c.BIG:case c.CODE:case c.FONT:case c.SMALL:case c.STRIKE:case c.STRONG:{Ip(e,t);break}case c.A:{Sp(e,t);break}case c.H1:case c.H2:case c.H3:case c.H4:case c.H5:case c.H6:{_p(e,t);break}case c.P:case c.DL:case c.OL:case c.UL:case c.DIV:case c.DIR:case c.NAV:case c.MAIN:case c.MENU:case c.ASIDE:case c.CENTER:case c.FIGURE:case c.FOOTER:case c.HEADER:case c.HGROUP:case c.DIALOG:case c.DETAILS:case c.ADDRESS:case c.ARTICLE:case c.SEARCH:case c.SECTION:case c.SUMMARY:case c.FIELDSET:case c.BLOCKQUOTE:case c.FIGCAPTION:{kp(e,t);break}case c.LI:case c.DD:case c.DT:{Ap(e,t);break}case c.BR:case c.IMG:case c.WBR:case c.AREA:case c.EMBED:case c.KEYGEN:{vl(e,t);break}case c.HR:{Dp(e,t);break}case c.RB:case c.RTC:{zp(e,t);break}case c.RT:case c.RP:{$p(e,t);break}case c.PRE:case c.LISTING:{xp(e,t);break}case c.XMP:{Bp(e,t);break}case c.SVG:{qp(e,t);break}case c.HTML:{bp(e,t);break}case c.BASE:case c.LINK:case c.META:case c.STYLE:case c.TITLE:case c.SCRIPT:case c.BGSOUND:case c.BASEFONT:case c.TEMPLATE:{lt(e,t);break}case c.BODY:{Ep(e,t);break}case c.FORM:{yp(e,t);break}case c.NOBR:{Np(e,t);break}case c.MATH:{Yp(e,t);break}case c.TABLE:{Lp(e,t);break}case c.INPUT:{Rp(e,t);break}case c.PARAM:case c.TRACK:case c.SOURCE:{Op(e,t);break}case c.IMAGE:{Pp(e,t);break}case c.BUTTON:{wp(e,t);break}case c.APPLET:case c.OBJECT:case c.MARQUEE:{vp(e,t);break}case c.IFRAME:{Fp(e,t);break}case c.SELECT:{Hp(e,t);break}case c.OPTION:case c.OPTGROUP:{Up(e,t);break}case c.NOEMBED:case c.NOFRAMES:{su(e,t);break}case c.FRAMESET:{Tp(e,t);break}case c.TEXTAREA:{Mp(e,t);break}case c.NOSCRIPT:{e.options.scriptingEnabled?su(e,t):uu(e,t);break}case c.PLAINTEXT:{Cp(e,t);break}case c.COL:case c.TH:case c.TD:case c.TR:case c.HEAD:case c.FRAME:case c.TBODY:case c.TFOOT:case c.THEAD:case c.CAPTION:case c.COLGROUP:break;default:uu(e,t)}}function jp(e,t){if(e.openElements.hasInScope(c.BODY)&&(e.insertionMode=k.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Vp(e,t){e.openElements.hasInScope(c.BODY)&&(e.insertionMode=k.AFTER_BODY,zl(e,t))}function Wp(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Gp(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(c.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(c.FORM):n&&e.openElements.remove(n))}function Qp(e){e.openElements.hasInButtonScope(c.P)||e._insertFakeElement(w.P,c.P),e._closePElement()}function Kp(e){e.openElements.hasInListItemScope(c.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(c.LI),e.openElements.popUntilTagNamePopped(c.LI))}function Xp(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function Zp(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Jp(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function e1(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(w.BR,c.BR),e.openElements.pop(),e.framesetOk=!1}function Rl(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==c.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function ri(e,t){switch(t.tagID){case c.A:case c.B:case c.I:case c.S:case c.U:case c.EM:case c.TT:case c.BIG:case c.CODE:case c.FONT:case c.NOBR:case c.SMALL:case c.STRIKE:case c.STRONG:{Ma(e,t);break}case c.P:{Qp(e);break}case c.DL:case c.UL:case c.OL:case c.DIR:case c.DIV:case c.NAV:case c.PRE:case c.MAIN:case c.MENU:case c.ASIDE:case c.BUTTON:case c.CENTER:case c.FIGURE:case c.FOOTER:case c.HEADER:case c.HGROUP:case c.DIALOG:case c.ADDRESS:case c.ARTICLE:case c.DETAILS:case c.SEARCH:case c.SECTION:case c.SUMMARY:case c.LISTING:case c.FIELDSET:case c.BLOCKQUOTE:case c.FIGCAPTION:{Wp(e,t);break}case c.LI:{Kp(e);break}case c.DD:case c.DT:{Xp(e,t);break}case c.H1:case c.H2:case c.H3:case c.H4:case c.H5:case c.H6:{Zp(e);break}case c.BR:{e1(e);break}case c.BODY:{jp(e,t);break}case c.HTML:{Vp(e,t);break}case c.FORM:{Gp(e);break}case c.APPLET:case c.OBJECT:case c.MARQUEE:{Jp(e,t);break}case c.TEMPLATE:{Kt(e,t);break}default:Rl(e,t)}}function Ol(e,t){e.tmplInsertionModeStack.length>0?Ul(e,t):Ba(e,t)}function t1(e,t){var n;t.tagID===c.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function n1(e,t){e._err(t,v.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function yi(e,t){if(e.openElements.currentTagId!==void 0&&Sl.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=k.IN_TABLE_TEXT,t.type){case re.CHARACTER:{Pl(e,t);break}case re.WHITESPACE_CHARACTER:{Dl(e,t);break}}else ar(e,t)}function r1(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,O.HTML),e.insertionMode=k.IN_CAPTION}function i1(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,O.HTML),e.insertionMode=k.IN_COLUMN_GROUP}function a1(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(w.COLGROUP,c.COLGROUP),e.insertionMode=k.IN_COLUMN_GROUP,Fa(e,t)}function s1(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,O.HTML),e.insertionMode=k.IN_TABLE_BODY}function u1(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(w.TBODY,c.TBODY),e.insertionMode=k.IN_TABLE_BODY,ii(e,t)}function o1(e,t){e.openElements.hasInTableScope(c.TABLE)&&(e.openElements.popUntilTagNamePopped(c.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function l1(e,t){Ll(t)?e._appendElement(t,O.HTML):ar(e,t),t.ackSelfClosing=!0}function c1(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,O.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function hn(e,t){switch(t.tagID){case c.TD:case c.TH:case c.TR:{u1(e,t);break}case c.STYLE:case c.SCRIPT:case c.TEMPLATE:{lt(e,t);break}case c.COL:{a1(e,t);break}case c.FORM:{c1(e,t);break}case c.TABLE:{o1(e,t);break}case c.TBODY:case c.TFOOT:case c.THEAD:{s1(e,t);break}case c.INPUT:{l1(e,t);break}case c.CAPTION:{r1(e,t);break}case c.COLGROUP:{i1(e,t);break}default:ar(e,t)}}function Xn(e,t){switch(t.tagID){case c.TABLE:{e.openElements.hasInTableScope(c.TABLE)&&(e.openElements.popUntilTagNamePopped(c.TABLE),e._resetInsertionMode());break}case c.TEMPLATE:{Kt(e,t);break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TBODY:case c.TD:case c.TFOOT:case c.TH:case c.THEAD:case c.TR:break;default:ar(e,t)}}function ar(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,ni(e,t),e.fosterParentingEnabled=n}function Dl(e,t){e.pendingCharacterTokens.push(t)}function Pl(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Nn(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)ar(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Ml=new Set([c.CAPTION,c.COL,c.COLGROUP,c.TBODY,c.TD,c.TFOOT,c.TH,c.THEAD,c.TR]);function d1(e,t){const n=t.tagID;Ml.has(n)?e.openElements.hasInTableScope(c.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=k.IN_TABLE,hn(e,t)):Me(e,t)}function h1(e,t){const n=t.tagID;switch(n){case c.CAPTION:case c.TABLE:{e.openElements.hasInTableScope(c.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=k.IN_TABLE,n===c.TABLE&&Xn(e,t));break}case c.BODY:case c.COL:case c.COLGROUP:case c.HTML:case c.TBODY:case c.TD:case c.TFOOT:case c.TH:case c.THEAD:case c.TR:break;default:ri(e,t)}}function Fa(e,t){switch(t.tagID){case c.HTML:{Me(e,t);break}case c.COL:{e._appendElement(t,O.HTML),t.ackSelfClosing=!0;break}case c.TEMPLATE:{lt(e,t);break}default:Hr(e,t)}}function f1(e,t){switch(t.tagID){case c.COLGROUP:{e.openElements.currentTagId===c.COLGROUP&&(e.openElements.pop(),e.insertionMode=k.IN_TABLE);break}case c.TEMPLATE:{Kt(e,t);break}case c.COL:break;default:Hr(e,t)}}function Hr(e,t){e.openElements.currentTagId===c.COLGROUP&&(e.openElements.pop(),e.insertionMode=k.IN_TABLE,e._processToken(t))}function ii(e,t){switch(t.tagID){case c.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,O.HTML),e.insertionMode=k.IN_ROW;break}case c.TH:case c.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(w.TR,c.TR),e.insertionMode=k.IN_ROW,ai(e,t);break}case c.CAPTION:case c.COL:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE,hn(e,t));break}default:hn(e,t)}}function ra(e,t){const n=t.tagID;switch(t.tagID){case c.TBODY:case c.TFOOT:case c.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE);break}case c.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE,Xn(e,t));break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TD:case c.TH:case c.TR:break;default:Xn(e,t)}}function ai(e,t){switch(t.tagID){case c.TH:case c.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,O.HTML),e.insertionMode=k.IN_CELL,e.activeFormattingElements.insertMarker();break}case c.CAPTION:case c.COL:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:case c.TR:{e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE_BODY,ii(e,t));break}default:hn(e,t)}}function Bl(e,t){switch(t.tagID){case c.TR:{e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE_BODY);break}case c.TABLE:{e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE_BODY,ra(e,t));break}case c.TBODY:case c.TFOOT:case c.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(c.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE_BODY,ra(e,t));break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TD:case c.TH:break;default:Xn(e,t)}}function p1(e,t){const n=t.tagID;Ml.has(n)?(e.openElements.hasInTableScope(c.TD)||e.openElements.hasInTableScope(c.TH))&&(e._closeTableCell(),ai(e,t)):Me(e,t)}function m1(e,t){const n=t.tagID;switch(n){case c.TD:case c.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=k.IN_ROW);break}case c.TABLE:case c.TBODY:case c.TFOOT:case c.THEAD:case c.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Bl(e,t));break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:break;default:ri(e,t)}}function Fl(e,t){switch(t.tagID){case c.HTML:{Me(e,t);break}case c.OPTION:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e._insertElement(t,O.HTML);break}case c.OPTGROUP:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop(),e._insertElement(t,O.HTML);break}case c.HR:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop(),e._appendElement(t,O.HTML),t.ackSelfClosing=!0;break}case c.INPUT:case c.KEYGEN:case c.TEXTAREA:case c.SELECT:{e.openElements.hasInSelectScope(c.SELECT)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),t.tagID!==c.SELECT&&e._processStartTag(t));break}case c.SCRIPT:case c.TEMPLATE:{lt(e,t);break}}}function Hl(e,t){switch(t.tagID){case c.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===c.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===c.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop();break}case c.OPTION:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop();break}case c.SELECT:{e.openElements.hasInSelectScope(c.SELECT)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode());break}case c.TEMPLATE:{Kt(e,t);break}}}function g1(e,t){const n=t.tagID;n===c.CAPTION||n===c.TABLE||n===c.TBODY||n===c.TFOOT||n===c.THEAD||n===c.TR||n===c.TD||n===c.TH?(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Fl(e,t)}function b1(e,t){const n=t.tagID;n===c.CAPTION||n===c.TABLE||n===c.TBODY||n===c.TFOOT||n===c.THEAD||n===c.TR||n===c.TD||n===c.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Hl(e,t)}function E1(e,t){switch(t.tagID){case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:case c.NOFRAMES:case c.SCRIPT:case c.STYLE:case c.TEMPLATE:case c.TITLE:{lt(e,t);break}case c.CAPTION:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:{e.tmplInsertionModeStack[0]=k.IN_TABLE,e.insertionMode=k.IN_TABLE,hn(e,t);break}case c.COL:{e.tmplInsertionModeStack[0]=k.IN_COLUMN_GROUP,e.insertionMode=k.IN_COLUMN_GROUP,Fa(e,t);break}case c.TR:{e.tmplInsertionModeStack[0]=k.IN_TABLE_BODY,e.insertionMode=k.IN_TABLE_BODY,ii(e,t);break}case c.TD:case c.TH:{e.tmplInsertionModeStack[0]=k.IN_ROW,e.insertionMode=k.IN_ROW,ai(e,t);break}default:e.tmplInsertionModeStack[0]=k.IN_BODY,e.insertionMode=k.IN_BODY,Me(e,t)}}function T1(e,t){t.tagID===c.TEMPLATE&&Kt(e,t)}function Ul(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(c.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Ba(e,t)}function k1(e,t){t.tagID===c.HTML?Me(e,t):Ur(e,t)}function zl(e,t){var n;if(t.tagID===c.HTML){if(e.fragmentContext||(e.insertionMode=k.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===c.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Ur(e,t)}function Ur(e,t){e.insertionMode=k.IN_BODY,ni(e,t)}function _1(e,t){switch(t.tagID){case c.HTML:{Me(e,t);break}case c.FRAMESET:{e._insertElement(t,O.HTML);break}case c.FRAME:{e._appendElement(t,O.HTML),t.ackSelfClosing=!0;break}case c.NOFRAMES:{lt(e,t);break}}}function x1(e,t){t.tagID===c.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==c.FRAMESET&&(e.insertionMode=k.AFTER_FRAMESET))}function y1(e,t){switch(t.tagID){case c.HTML:{Me(e,t);break}case c.NOFRAMES:{lt(e,t);break}}}function A1(e,t){t.tagID===c.HTML&&(e.insertionMode=k.AFTER_AFTER_FRAMESET)}function C1(e,t){t.tagID===c.HTML?Me(e,t):Sr(e,t)}function Sr(e,t){e.insertionMode=k.IN_BODY,ni(e,t)}function w1(e,t){switch(t.tagID){case c.HTML:{Me(e,t);break}case c.NOFRAMES:{lt(e,t);break}}}function S1(e,t){t.chars=ke,e._insertCharacters(t)}function I1(e,t){e._insertCharacters(t),e.framesetOk=!1}function $l(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==O.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function N1(e,t){if(qf(t))$l(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===O.MATHML?Cl(t):r===O.SVG&&(jf(t),wl(t)),Pa(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function v1(e,t){if(t.tagID===c.P||t.tagID===c.BR){$l(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===O.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}w.AREA,w.BASE,w.BASEFONT,w.BGSOUND,w.BR,w.COL,w.EMBED,w.FRAME,w.HR,w.IMG,w.INPUT,w.KEYGEN,w.LINK,w.META,w.PARAM,w.SOURCE,w.TRACK,w.WBR;const si=Yl("end"),gt=Yl("start");function Yl(e){return t;function t(n){const r=n&&n.position&&n.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 ql(e){const t=gt(e),n=si(e);if(t&&n)return{start:t,end:n}}const L1=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,R1=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),ou={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function jl(e,t){const n=$1(e),r=pl("type",{handlers:{root:O1,element:D1,text:P1,comment:Wl,doctype:M1,raw:F1},unknown:H1}),i={parser:n?new au(ou):au.getFragmentParser(void 0,ou),handle(u){r(u,i)},stitches:!1,options:t||{}};r(e,i),kn(i,gt());const a=n?i.parser.document:i.parser.getFragment(),s=$h(a,{file:i.options.file});return i.stitches&&dn(s,"comment",function(u,o,l){const h=u;if(h.value.stitch&&l&&o!==void 0){const d=l.children;return d[o]=h.value.stitch,o}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function Vl(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function O1(e,t){Vl(e.children,t)}function D1(e,t){U1(e,t),Vl(e.children,t),z1(e,t)}function P1(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:re.CHARACTER,chars:e.value,location:sr(e)};kn(t,gt(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function M1(e,t){const n={type:re.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:sr(e)};kn(t,gt(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function B1(e,t){t.stitches=!0;const n=Y1(e);if("children"in e&&"children"in n){const r=jl({type:"root",children:e.children},t.options);n.children=r.children}Wl({type:"comment",value:{stitch:n}},t)}function Wl(e,t){const n=e.value,r={type:re.COMMENT,data:n,location:sr(e)};kn(t,gt(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function F1(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Gl(t,gt(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(L1,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function H1(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))B1(n,t);else{let r="";throw R1.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function kn(e,t){Gl(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Ae.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Gl(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function U1(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Ae.PLAINTEXT)return;kn(t,gt(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:Yt.html;i===Yt.html&&n==="svg"&&(i=Yt.svg);const a=Wh({...e,children:[]},{space:i===Yt.svg?"svg":"html"}),s={type:re.START_TAG,tagName:n,tagID:Tn(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:sr(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function z1(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&tf.includes(n)||t.parser.tokenizer.state===Ae.PLAINTEXT)return;kn(t,si(e));const r={type:re.END_TAG,tagName:n,tagID:Tn(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:sr(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Ae.RCDATA||t.parser.tokenizer.state===Ae.RAWTEXT||t.parser.tokenizer.state===Ae.SCRIPT_DATA)&&(t.parser.tokenizer.state=Ae.DATA)}function $1(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function sr(e){const t=gt(e)||{line:void 0,column:void 0,offset:void 0},n=si(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function Y1(e){return"children"in e?Vt({...e,children:[]}):Vt(e)}function q1(e){return function(t,n){return jl(t,{...e,file:n})}}const Ft=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],lu={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Ft,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Ft],h2:[["className","sr-only"]],img:[...Ft,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Ft,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Ft],table:[...Ft],ul:[...Ft,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},vt={}.hasOwnProperty;function j1(e,t){let n={type:"root",children:[]};const r={schema:t?{...lu,...t}:lu,stack:[]},i=Ql(r,e);return i&&(Array.isArray(i)?i.length===1?n=i[0]:n.children=i:n=i),n}function Ql(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return V1(e,n);case"doctype":return W1(e,n);case"element":return G1(e,n);case"root":return Q1(e,n);case"text":return K1(e,n)}}}function V1(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",r=n.indexOf("-->"),a={type:"comment",value:r<0?n:n.slice(0,r)};return ur(a,t),a}}function W1(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return ur(n,t),n}}function G1(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=Kl(e,t.children),i=X1(e,t.properties);e.stack.pop();let a=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&vt.call(e.schema.ancestors,n))){const u=e.schema.ancestors[n];let o=-1;for(a=!1;++o<u.length;)e.stack.includes(u[o])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;const s={type:"element",tagName:n,properties:i,children:r};return ur(s,t),s}function Q1(e,t){const r={type:"root",children:Kl(e,t.children)};return ur(r,t),r}function K1(e,t){const r={type:"text",value:typeof t.value=="string"?t.value:""};return ur(r,t),r}function Kl(e,t){const n=[];if(Array.isArray(t)){const r=t;let i=-1;for(;++i<r.length;){const a=Ql(e,r[i]);a&&(Array.isArray(a)?n.push(...a):n.push(a))}}return n}function X1(e,t){const n=e.stack[e.stack.length-1],r=e.schema.attributes,i=e.schema.required,a=r&&vt.call(r,n)?r[n]:void 0,s=r&&vt.call(r,"*")?r["*"]:void 0,u=t&&typeof t=="object"?t:{},o={};let l;for(l in u)if(vt.call(u,l)){const h=u[l];let d=cu(e,du(a,l),l,h);d==null&&(d=cu(e,du(s,l),l,h)),d!=null&&(o[l]=d)}if(i&&vt.call(i,n)){const h=i[n];for(l in h)vt.call(h,l)&&!vt.call(o,l)&&(o[l]=h[l])}return o}function cu(e,t,n,r){return t?Array.isArray(r)?Z1(e,t,n,r):Xl(e,t,n,r):void 0}function Z1(e,t,n,r){let i=-1;const a=[];for(;++i<r.length;){const s=Xl(e,t,n,r[i]);(typeof s=="number"||typeof s=="string")&&a.push(s)}return a}function Xl(e,t,n,r){if(!(typeof r!="boolean"&&typeof r!="number"&&typeof r!="string")&&J1(e,n,r)){if(typeof t=="object"&&t.length>1){let i=!1,a=0;for(;++a<t.length;){const s=t[a];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(r))){i=!0;break}}else if(s===r){i=!0;break}}if(!i)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function J1(e,t,n){const r=e.schema.protocols&&vt.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||r.length===0)return!0;const i=String(n),a=i.indexOf(":"),s=i.indexOf("?"),u=i.indexOf("#"),o=i.indexOf("/");if(a<0||o>-1&&a>o||s>-1&&a>s||u>-1&&a>u)return!0;let l=-1;for(;++l<r.length;){const h=r[l];if(a===h.length&&i.slice(0,h.length)===h)return!0}return!1}function ur(e,t){const n=ql(t);t.data&&(e.data=Vt(t.data)),n&&(e.position=n)}function du(e,t){let n,r=-1;if(e)for(;++r<e.length;){const i=e[r],a=typeof i=="string"?i:i[0];if(a===t)return i;a==="data*"&&(n=i)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return n}function em(e){return function(t){return j1(t,e)}}function hu(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}const Ue=Mt(/[A-Za-z]/),Pe=Mt(/[\dA-Za-z]/),tm=Mt(/[#-'*+\--9=?A-Z^-~]/);function zr(e){return e!==null&&(e<32||e===127)}const ia=Mt(/\d/),nm=Mt(/[\dA-Fa-f]/),rm=Mt(/[!-/:-@[-`{-~]/);function G(e){return e!==null&&e<-2}function be(e){return e!==null&&(e<0||e===32)}function ae(e){return e===-2||e===-1||e===32}const ui=Mt(/\p{P}|\p{S}/u),Wt=Mt(/\s/);function Mt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function im(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function am(e,t,n){const i=Zr((n||{}).ignore||[]),a=sm(t);let s=-1;for(;++s<a.length;)Zo(e,"text",u);function u(l,h){let d=-1,p;for(;++d<h.length;){const f=h[d],m=p?p.children:void 0;if(i(f,m?m.indexOf(f):void 0,p))return;p=f}if(p)return o(l,h)}function o(l,h){const d=h[h.length-1],p=a[s][0],f=a[s][1];let m=0;const C=d.children.indexOf(l);let y=!1,I=[];p.lastIndex=0;let S=p.exec(l.value);for(;S;){const D=S.index,R={index:S.index,input:S.input,stack:[...h,l]};let x=f(...S,R);if(typeof x=="string"&&(x=x.length>0?{type:"text",value:x}:void 0),x===!1?p.lastIndex=D+1:(m!==D&&I.push({type:"text",value:l.value.slice(m,D)}),Array.isArray(x)?I.push(...x):x&&I.push(x),m=D+S[0].length,y=!0),!p.global)break;S=p.exec(l.value)}return y?(m<l.value.length&&I.push({type:"text",value:l.value.slice(m)}),d.children.splice(C,1,...I)):I=[l],C+I.length}}function sm(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([um(i[0]),om(i[1])])}return t}function um(e){return typeof e=="string"?new RegExp(im(e),"g"):e}function om(e){return typeof e=="function"?e:function(){return e}}const Ai="phrasing",Ci=["autolink","link","image","label"];function lm(){return{transforms:[gm],enter:{literalAutolink:dm,literalAutolinkEmail:wi,literalAutolinkHttp:wi,literalAutolinkWww:wi},exit:{literalAutolink:mm,literalAutolinkEmail:pm,literalAutolinkHttp:hm,literalAutolinkWww:fm}}}function cm(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ai,notInConstruct:Ci},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ai,notInConstruct:Ci},{character:":",before:"[ps]",after:"\\/",inConstruct:Ai,notInConstruct:Ci}]}}function dm(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function wi(e){this.config.enter.autolinkProtocol.call(this,e)}function hm(e){this.config.exit.autolinkProtocol.call(this,e)}function fm(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function pm(e){this.config.exit.autolinkEmail.call(this,e)}function mm(e){this.exit(e)}function gm(e){am(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,bm],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Em]],{ignore:["link","linkReference"]})}function bm(e,t,n,r,i){let a="";if(!Zl(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!Tm(n)))return!1;const s=km(n+r);if(!s[0])return!1;const u={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[u,{type:"text",value:s[1]}]:u}function Em(e,t,n,r){return!Zl(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Tm(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function km(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=hu(e,"(");let a=hu(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function Zl(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Wt(n)||ui(n))&&(!t||n!==47)}function ot(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}Jl.peek=Nm;function _m(){this.buffer()}function xm(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ym(){this.buffer()}function Am(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Cm(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ot(this.sliceSerialize(e)).toLowerCase(),n.label=t}function wm(e){this.exit(e)}function Sm(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ot(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Im(e){this.exit(e)}function Nm(){return"["}function Jl(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteReference"),u=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),u(),s(),a+=i.move("]"),a}function vm(){return{enter:{gfmFootnoteCallString:_m,gfmFootnoteCall:xm,gfmFootnoteDefinitionLabelString:ym,gfmFootnoteDefinition:Am},exit:{gfmFootnoteCallString:Cm,gfmFootnoteCall:wm,gfmFootnoteDefinitionLabelString:Sm,gfmFootnoteDefinition:Im}}}function Lm(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Jl},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,s){const u=a.createTracker(s);let o=u.move("[^");const l=a.enter("footnoteDefinition"),h=a.enter("label");return o+=u.move(a.safe(a.associationId(r),{before:o,after:"]"})),h(),o+=u.move("]:"),r.children&&r.children.length>0&&(u.shift(4),o+=u.move((t?`
3
- `:" ")+a.indentLines(a.containerFlow(r,u.current()),t?ec:Rm))),l(),o}}function Rm(e,t,n){return t===0?e:ec(e,t,n)}function ec(e,t,n){return(n?"":" ")+e}const Om=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];tc.peek=Fm;function Dm(){return{canContainEols:["delete"],enter:{strikethrough:Mm},exit:{strikethrough:Bm}}}function Pm(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Om}],handlers:{delete:tc}}}function Mm(e){this.enter({type:"delete",children:[]},e)}function Bm(e){this.exit(e)}function tc(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function Fm(){return"~"}function Hm(e){return e.length}function Um(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Hm,a=[],s=[],u=[],o=[];let l=0,h=-1;for(;++h<e.length;){const T=[],C=[];let y=-1;for(e[h].length>l&&(l=e[h].length);++y<e[h].length;){const I=zm(e[h][y]);if(n.alignDelimiters!==!1){const S=i(I);C[y]=S,(o[y]===void 0||S>o[y])&&(o[y]=S)}T.push(I)}s[h]=T,u[h]=C}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<l;)a[d]=fu(r[d]);else{const T=fu(r);for(;++d<l;)a[d]=T}d=-1;const p=[],f=[];for(;++d<l;){const T=a[d];let C="",y="";T===99?(C=":",y=":"):T===108?C=":":T===114&&(y=":");let I=n.alignDelimiters===!1?1:Math.max(1,o[d]-C.length-y.length);const S=C+"-".repeat(I)+y;n.alignDelimiters!==!1&&(I=C.length+I+y.length,I>o[d]&&(o[d]=I),f[d]=I),p[d]=S}s.splice(1,0,p),u.splice(1,0,f),h=-1;const m=[];for(;++h<s.length;){const T=s[h],C=u[h];d=-1;const y=[];for(;++d<l;){const I=T[d]||"";let S="",D="";if(n.alignDelimiters!==!1){const R=o[d]-(C[d]||0),x=a[d];x===114?S=" ".repeat(R):x===99?R%2?(S=" ".repeat(R/2+.5),D=" ".repeat(R/2-.5)):(S=" ".repeat(R/2),D=S):D=" ".repeat(R)}n.delimiterStart!==!1&&!d&&y.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&I==="")&&(n.delimiterStart!==!1||d)&&y.push(" "),n.alignDelimiters!==!1&&y.push(S),y.push(I),n.alignDelimiters!==!1&&y.push(D),n.padding!==!1&&y.push(" "),(n.delimiterEnd!==!1||d!==l-1)&&y.push("|")}m.push(n.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return m.join(`
4
- `)}function zm(e){return e==null?"":String(e)}function fu(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function $m(e,t,n,r){const i=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),Ym);return i(),s}function Ym(e,t,n){return">"+(n?"":" ")+e}function qm(e,t){return pu(e,t.inConstruct,!0)&&!pu(e,t.notInConstruct,!1)}function pu(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function mu(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
5
- `&&qm(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
6
- `}function jm(e,t){const n=String(e);let r=n.indexOf(t),i=r,a=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++a>s&&(s=a):a=1,i=r+t.length,r=n.indexOf(t,i);return s}function Vm(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Wm(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Gm(e,t,n,r){const i=Wm(n),a=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(Vm(e,n)){const d=n.enter("codeIndented"),p=n.indentLines(a,Qm);return d(),p}const u=n.createTracker(r),o=i.repeat(Math.max(jm(a,i)+1,3)),l=n.enter("codeFenced");let h=u.move(o);if(e.lang){const d=n.enter(`codeFencedLang${s}`);h+=u.move(n.safe(e.lang,{before:h,after:" ",encode:["`"],...u.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${s}`);h+=u.move(" "),h+=u.move(n.safe(e.meta,{before:h,after:`
1
+ "use strict";var d0=Object.defineProperty;var h0=(e,t,n)=>t in e?d0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var de=(e,t,n)=>(h0(e,typeof t!="symbol"?t+"":t,n),n);const ki=require("@inploi/sdk");var Zr,W,Co,wo,Yt,bs,So,Wi,Io,on={},No=[],f0=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Jr=Array.isArray;function Rt(e,t){for(var n in t)e[n]=t[n];return e}function vo(e){var t=e.parentNode;t&&t.removeChild(e)}function Dt(e,t,n){var r,i,a,s={};for(a in t)a=="key"?r=t[a]:a=="ref"?i=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?Zr.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)s[a]===void 0&&(s[a]=e.defaultProps[a]);return wr(e,s,r,i,null)}function wr(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++Co};return i==null&&W.vnode!=null&&W.vnode(a),a}function Ye(e){return e.children}function pt(e,t){this.props=e,this.context=t}function Or(e,t){if(t==null)return e.__?Or(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Or(e):null}function Lo(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Lo(e)}}function Gi(e){(!e.__d&&(e.__d=!0)&&Yt.push(e)&&!Dr.__r++||bs!==W.debounceRendering)&&((bs=W.debounceRendering)||So)(Dr)}function Dr(){var e,t,n,r,i,a,s,u,o;for(Yt.sort(Wi);e=Yt.shift();)e.__d&&(t=Yt.length,r=void 0,i=void 0,a=void 0,u=(s=(n=e).__v).__e,(o=n.__P)&&(r=[],i=[],(a=Rt({},s)).__v=s.__v+1,_a(o,s,a,n.__n,o.ownerSVGElement!==void 0,s.__h!=null?[u]:null,r,u??Or(s),s.__h,i),Po(r,s,i),s.__e!=u&&Lo(s)),Yt.length>t&&Yt.sort(Wi));Dr.__r=0}function Ro(e,t,n,r,i,a,s,u,o,l,h){var d,p,f,m,k,C,y,I,S,D,R=0,x=r&&r.__k||No,H=x.length,B=H,U=t.length;for(n.__k=[],d=0;d<U;d++)(m=n.__k[d]=(m=t[d])==null||typeof m=="boolean"||typeof m=="function"?null:typeof m=="string"||typeof m=="number"||typeof m=="bigint"?wr(null,m,null,null,m):Jr(m)?wr(Ye,{children:m},null,null,null):m.__b>0?wr(m.type,m.props,m.key,m.ref?m.ref:null,m.__v):m)!=null&&(m.__=n,m.__b=n.__b+1,(I=p0(m,x,y=d+R,B))===-1?f=on:(f=x[I]||on,x[I]=void 0,B--),_a(e,m,f,i,a,s,u,o,l,h),k=m.__e,(p=m.ref)&&f.ref!=p&&(f.ref&&xa(f.ref,null,m),h.push(p,m.__c||k,m)),k!=null&&(C==null&&(C=k),D=!(S=f===on||f.__v===null)&&I===y,S?I==-1&&R--:I!==y&&(I===y+1?(R++,D=!0):I>y?B>U-y?(R+=I-y,D=!0):R--:R=I<y&&I==y-1?I-y:0),y=d+R,D=D||I==d&&!S,typeof m.type!="function"||I===y&&f.__k!==m.__k?typeof m.type=="function"||D?m.__d!==void 0?(o=m.__d,m.__d=void 0):o=k.nextSibling:o=Do(e,k,o):o=Oo(m,o,e),typeof n.type=="function"&&(n.__d=o)));for(n.__e=C,d=H;d--;)x[d]!=null&&(typeof n.type=="function"&&x[d].__e!=null&&x[d].__e==n.__d&&(n.__d=x[d].__e.nextSibling),Mo(x[d],x[d]))}function Oo(e,t,n){for(var r,i=e.__k,a=0;i&&a<i.length;a++)(r=i[a])&&(r.__=e,t=typeof r.type=="function"?Oo(r,t,n):Do(n,r.__e,t));return t}function Pr(e,t){return t=t||[],e==null||typeof e=="boolean"||(Jr(e)?e.some(function(n){Pr(n,t)}):t.push(e)),t}function Do(e,t,n){return n==null||n.parentNode!==e?e.insertBefore(t,null):t==n&&t.parentNode!=null||e.insertBefore(t,n),t.nextSibling}function p0(e,t,n,r){var i=e.key,a=e.type,s=n-1,u=n+1,o=t[n];if(o===null||o&&i==o.key&&a===o.type)return n;if(r>(o!=null?1:0))for(;s>=0||u<t.length;){if(s>=0){if((o=t[s])&&i==o.key&&a===o.type)return s;s--}if(u<t.length){if((o=t[u])&&i==o.key&&a===o.type)return u;u++}}return-1}function m0(e,t,n,r,i){var a;for(a in n)a==="children"||a==="key"||a in t||Mr(e,a,null,n[a],r);for(a in t)i&&typeof t[a]!="function"||a==="children"||a==="key"||a==="value"||a==="checked"||n[a]===t[a]||Mr(e,a,t[a],n[a],r)}function Es(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||f0.test(t)?n:n+"px"}function Mr(e,t,n,r,i){var a;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Es(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Es(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")a=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?r||e.addEventListener(t,a?Ts:ks,a):e.removeEventListener(t,a?Ts:ks,a);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function ks(e){return this.l[e.type+!1](W.event?W.event(e):e)}function Ts(e){return this.l[e.type+!0](W.event?W.event(e):e)}function _a(e,t,n,r,i,a,s,u,o,l){var h,d,p,f,m,k,C,y,I,S,D,R,x,H,B,U=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(o=n.__h,u=t.__e=n.__e,t.__h=null,a=[u]),(h=W.__b)&&h(t);try{e:if(typeof U=="function"){if(y=t.props,I=(h=U.contextType)&&r[h.__c],S=h?I?I.props.value:h.__:r,n.__c?C=(d=t.__c=n.__c).__=d.__E:("prototype"in U&&U.prototype.render?t.__c=d=new U(y,S):(t.__c=d=new pt(y,S),d.constructor=U,d.render=b0),I&&I.sub(d),d.props=y,d.state||(d.state={}),d.context=S,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),d.__s==null&&(d.__s=d.state),U.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=Rt({},d.__s)),Rt(d.__s,U.getDerivedStateFromProps(y,d.__s))),f=d.props,m=d.state,d.__v=t,p)U.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(U.getDerivedStateFromProps==null&&y!==f&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(y,S),!d.__e&&(d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(y,d.__s,S)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=y,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(N){N&&(N.__=t)}),D=0;D<d._sb.length;D++)d.__h.push(d._sb[D]);d._sb=[],d.__h.length&&s.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(y,d.__s,S),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(f,m,k)})}if(d.context=S,d.props=y,d.__P=e,d.__e=!1,R=W.__r,x=0,"prototype"in U&&U.prototype.render){for(d.state=d.__s,d.__d=!1,R&&R(t),h=d.render(d.props,d.state,d.context),H=0;H<d._sb.length;H++)d.__h.push(d._sb[H]);d._sb=[]}else do d.__d=!1,R&&R(t),h=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++x<25);d.state=d.__s,d.getChildContext!=null&&(r=Rt(Rt({},r),d.getChildContext())),p||d.getSnapshotBeforeUpdate==null||(k=d.getSnapshotBeforeUpdate(f,m)),Ro(e,Jr(B=h!=null&&h.type===Ye&&h.key==null?h.props.children:h)?B:[B],t,n,r,i,a,s,u,o,l),d.base=t.__e,t.__h=null,d.__h.length&&s.push(d),C&&(d.__E=d.__=null)}else a==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=g0(n.__e,t,n,r,i,a,s,o,l);(h=W.diffed)&&h(t)}catch(N){t.__v=null,(o||a!=null)&&(t.__e=u,t.__h=!!o,a[a.indexOf(u)]=null),W.__e(N,t,n)}}function Po(e,t,n){for(var r=0;r<n.length;r++)xa(n[r],n[++r],n[++r]);W.__c&&W.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(a){a.call(i)})}catch(a){W.__e(a,i.__v)}})}function g0(e,t,n,r,i,a,s,u,o){var l,h,d,p=n.props,f=t.props,m=t.type,k=0;if(m==="svg"&&(i=!0),a!=null){for(;k<a.length;k++)if((l=a[k])&&"setAttribute"in l==!!m&&(m?l.localName===m:l.nodeType===3)){e=l,a[k]=null;break}}if(e==null){if(m===null)return document.createTextNode(f);e=i?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,f.is&&f),a=null,u=!1}if(m===null)p===f||u&&e.data===f||(e.data=f);else{if(a=a&&Zr.call(e.childNodes),h=(p=n.props||on).dangerouslySetInnerHTML,d=f.dangerouslySetInnerHTML,!u){if(a!=null)for(p={},k=0;k<e.attributes.length;k++)p[e.attributes[k].name]=e.attributes[k].value;(d||h)&&(d&&(h&&d.__html==h.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(m0(e,f,p,i,u),d)t.__k=[];else if(Ro(e,Jr(k=t.props.children)?k:[k],t,n,r,i&&m!=="foreignObject",a,s,a?a[0]:n.__k&&Or(n,0),u,o),a!=null)for(k=a.length;k--;)a[k]!=null&&vo(a[k]);u||("value"in f&&(k=f.value)!==void 0&&(k!==e.value||m==="progress"&&!k||m==="option"&&k!==p.value)&&Mr(e,"value",k,p.value,!1),"checked"in f&&(k=f.checked)!==void 0&&k!==e.checked&&Mr(e,"checked",k,p.checked,!1))}return e}function xa(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){W.__e(r,n)}}function Mo(e,t,n){var r,i;if(W.unmount&&W.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||xa(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(a){W.__e(a,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Mo(r[i],t,n||typeof e.type!="function");n||e.__e==null||vo(e.__e),e.__=e.__e=e.__d=void 0}function b0(e,t,n){return this.constructor(e,n)}function _s(e,t,n){var r,i,a,s;W.__&&W.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,a=[],s=[],_a(t,e=(!r&&n||t).__k=Dt(Ye,null,[e]),i||on,on,t.ownerSVGElement!==void 0,!r&&n?[n]:i?null:t.firstChild?Zr.call(t.childNodes):null,a,!r&&n?n:i?i.__e:t.firstChild,r,s),Po(a,e,s)}function ya(e,t){var n={__c:t="__cC"+Io++,__:e,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,a;return this.getChildContext||(i=[],(a={})[t]=this,this.getChildContext=function(){return a},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&i.some(function(u){u.__e=!0,Gi(u)})},this.sub=function(s){i.push(s);var u=s.componentWillUnmount;s.componentWillUnmount=function(){i.splice(i.indexOf(s),1),u&&u.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Zr=No.slice,W={__e:function(e,t,n,r){for(var i,a,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(u){e=u}throw e}},Co=0,wo=function(e){return e!=null&&e.constructor===void 0},pt.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Rt({},this.state),typeof e=="function"&&(e=e(Rt({},n),this.props)),e&&Rt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Gi(this))},pt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Gi(this))},pt.prototype.render=Ye,Yt=[],So=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Wi=function(e,t){return e.__v.__b-t.__v.__b},Dr.__r=0,Io=0;var Wt,_e,Ti,xs,Kn=0,Bo=[],Sr=[],ys=W.__b,As=W.__r,Cs=W.diffed,ws=W.__c,Ss=W.unmount;function tr(e,t){W.__h&&W.__h(_e,e,Kn||t),Kn=0;var n=_e.__H||(_e.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Sr}),n.__[e]}function le(e){return Kn=1,E0(Ho,e)}function E0(e,t,n){var r=tr(Wt++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ho(void 0,t),function(u){var o=r.__N?r.__N[0]:r.__[0],l=r.t(o,u);o!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=_e,!_e.u)){var i=function(u,o,l){if(!r.__c.__H)return!0;var h=r.__c.__H.__.filter(function(p){return p.__c});if(h.every(function(p){return!p.__N}))return!a||a.call(this,u,o,l);var d=!1;return h.forEach(function(p){if(p.__N){var f=p.__[0];p.__=p.__N,p.__N=void 0,f!==p.__[0]&&(d=!0)}}),!(!d&&r.__c.props===u)&&(!a||a.call(this,u,o,l))};_e.u=!0;var a=_e.shouldComponentUpdate,s=_e.componentWillUpdate;_e.componentWillUpdate=function(u,o,l){if(this.__e){var h=a;a=void 0,i(u,o,l),a=h}s&&s.call(this,u,o,l)},_e.shouldComponentUpdate=i}return r.__N||r.__}function Ce(e,t){var n=tr(Wt++,3);!W.__s&&Fo(n.__H,t)&&(n.__=e,n.i=t,_e.__H.__h.push(n))}function Le(e){return Kn=5,ve(function(){return{current:e}},[])}function ve(e,t){var n=tr(Wt++,7);return Fo(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Pe(e,t){return Kn=8,ve(function(){return e},t)}function nt(e){var t=_e.context[e.__c],n=tr(Wt++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(_e)),t.props.value):e.__}function k0(){var e=tr(Wt++,11);if(!e.__){for(var t=_e.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function T0(){for(var e;e=Bo.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ir),e.__H.__h.forEach(Qi),e.__H.__h=[]}catch(t){e.__H.__h=[],W.__e(t,e.__v)}}W.__b=function(e){_e=null,ys&&ys(e)},W.__r=function(e){As&&As(e),Wt=0;var t=(_e=e.__c).__H;t&&(Ti===_e?(t.__h=[],_e.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Sr,n.__N=n.i=void 0})):(t.__h.forEach(Ir),t.__h.forEach(Qi),t.__h=[],Wt=0)),Ti=_e},W.diffed=function(e){Cs&&Cs(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Bo.push(t)!==1&&xs===W.requestAnimationFrame||((xs=W.requestAnimationFrame)||_0)(T0)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Sr&&(n.__=n.__V),n.i=void 0,n.__V=Sr})),Ti=_e=null},W.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Ir),n.__h=n.__h.filter(function(r){return!r.__||Qi(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],W.__e(r,n.__v)}}),ws&&ws(e,t)},W.unmount=function(e){Ss&&Ss(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Ir(r)}catch(i){t=i}}),n.__H=void 0,t&&W.__e(t,n.__v))};var Is=typeof requestAnimationFrame=="function";function _0(e){var t,n=function(){clearTimeout(r),Is&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Is&&(t=requestAnimationFrame(n))}function Ir(e){var t=_e,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),_e=t}function Qi(e){var t=_e;e.__c=e.__(),_e=t}function Fo(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Ho(e,t){return typeof t=="function"?t(e):t}var x0=Symbol.for("preact-signals");function Aa(){if(ln>1)ln--;else{for(var e,t=!1;Fn!==void 0;){var n=Fn;for(Fn=void 0,Ki++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&zo(n))try{n.c()}catch(i){t||(e=i,t=!0)}n=r}}if(Ki=0,ln--,t)throw e}}var ge=void 0,Fn=void 0,ln=0,Ki=0,Br=0;function Uo(e){if(ge!==void 0){var t=e.n;if(t===void 0||t.t!==ge)return t={i:0,S:e,p:ge.s,n:void 0,t:ge,e:void 0,x:void 0,r:t},ge.s!==void 0&&(ge.s.n=t),ge.s=t,e.n=t,32&ge.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=ge.s,t.n=void 0,ge.s.n=t,ge.s=t),t}}function Re(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}Re.prototype.brand=x0;Re.prototype.h=function(){return!0};Re.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};Re.prototype.U=function(e){if(this.t!==void 0){var t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}};Re.prototype.subscribe=function(e){var t=this;return rr(function(){var n=t.value,r=ge;ge=void 0;try{e(n)}finally{ge=r}})};Re.prototype.valueOf=function(){return this.value};Re.prototype.toString=function(){return this.value+""};Re.prototype.toJSON=function(){return this.value};Re.prototype.peek=function(){var e=ge;ge=void 0;try{return this.value}finally{ge=e}};Object.defineProperty(Re.prototype,"value",{get:function(){var e=Uo(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Ki>100)throw new Error("Cycle detected");this.v=e,this.i++,Br++,ln++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Aa()}}}});function lt(e){return new Re(e)}function zo(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function $o(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Yo(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function gn(e){Re.call(this,void 0),this.x=e,this.s=void 0,this.g=Br-1,this.f=4}(gn.prototype=new Re).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Br))return!0;if(this.g=Br,this.f|=1,this.i>0&&!zo(this))return this.f&=-2,!0;var e=ge;try{$o(this),ge=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return ge=e,Yo(this),this.f&=-2,!0};gn.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Re.prototype.S.call(this,e)};gn.prototype.U=function(e){if(this.t!==void 0&&(Re.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};gn.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(gn.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Uo(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function qo(e){return new gn(e)}function jo(e){var t=e.u;if(e.u=void 0,typeof t=="function"){ln++;var n=ge;ge=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,Ca(e),r}finally{ge=n,Aa()}}}function Ca(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,jo(e)}function y0(e){if(ge!==this)throw new Error("Out-of-order effect");Yo(this),ge=e,this.f&=-2,8&this.f&&Ca(this),Aa()}function nr(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}nr.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};nr.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,jo(this),$o(this),ln++;var e=ge;return ge=this,y0.bind(this,e)};nr.prototype.N=function(){2&this.f||(this.f|=2,this.o=Fn,Fn=this)};nr.prototype.d=function(){this.f|=8,1&this.f||Ca(this)};function rr(e){var t=new nr(e);try{t.c()}catch(n){throw t.d(),n}return t.d.bind(t)}var ei,_i;function bn(e,t){W[e]=t.bind(null,W[e]||function(){})}function Fr(e){_i&&_i(),_i=e&&e.S()}function Vo(e){var t=this,n=e.data,r=C0(n);r.value=n;var i=ve(function(){for(var a=t.__v;a=a.__;)if(a.__c){a.__c.__$f|=4;break}return t.__$u.c=function(){var s;!wo(i.peek())&&((s=t.base)==null?void 0:s.nodeType)===3?t.base.data=i.peek():(t.__$f|=1,t.setState({}))},qo(function(){var s=r.value.value;return s===0?0:s===!0?"":s||""})},[]);return i.value}Vo.displayName="_st";Object.defineProperties(Re.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Vo},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});bn("__b",function(e,t){if(typeof t.type=="string"){var n,r=t.props;for(var i in r)if(i!=="children"){var a=r[i];a instanceof Re&&(n||(t.__np=n={}),n[i]=a,r[i]=a.peek())}}e(t)});bn("__r",function(e,t){Fr();var n,r=t.__c;r&&(r.__$f&=-2,(n=r.__$u)===void 0&&(r.__$u=n=function(i){var a;return rr(function(){a=this}),a.c=function(){r.__$f|=1,r.setState({})},a}())),ei=r,Fr(n),e(t)});bn("__e",function(e,t,n,r){Fr(),ei=void 0,e(t,n,r)});bn("diffed",function(e,t){Fr(),ei=void 0;var n;if(typeof t.type=="string"&&(n=t.__e)){var r=t.__np,i=t.props;if(r){var a=n.U;if(a)for(var s in a){var u=a[s];u!==void 0&&!(s in r)&&(u.d(),a[s]=void 0)}else n.U=a={};for(var o in r){var l=a[o],h=r[o];l===void 0?(l=A0(n,o,h,i),a[o]=l):l.o(h,i)}}}e(t)});function A0(e,t,n,r){var i=t in e&&e.ownerSVGElement===void 0,a=lt(n);return{o:function(s,u){a.value=s,r=u},d:rr(function(){var s=a.value.value;r[t]!==s&&(r[t]=s,i?e[t]=s:s?e.setAttribute(t,s):e.removeAttribute(t))})}}bn("unmount",function(e,t){if(typeof t.type=="string"){var n=t.__e;if(n){var r=n.U;if(r){n.U=void 0;for(var i in r){var a=r[i];a&&a.d()}}}}else{var s=t.__c;if(s){var u=s.__$u;u&&(s.__$u=void 0,u.d())}}e(t)});bn("__h",function(e,t,n,r){(r<3||r===9)&&(t.__$f|=2),e(t,n,r)});pt.prototype.shouldComponentUpdate=function(e,t){var n=this.__$u;if(!(n&&n.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var r in t)return!0;for(var i in e)if(i!=="__source"&&e[i]!==this.props[i])return!0;for(var a in this.props)if(!(a in e))return!0;return!1};function C0(e){return ve(function(){return lt(e)},[])}function xi(e){var t=Le(e);return t.current=e,ei.__$f|=4,ve(function(){return qo(function(){return t.current()})},[])}const w0=lt(!1),S0=lt(!1),I0=lt("idle"),wa=lt(!1),Sa=lt("idle"),Ia=lt(null),Na=lt(null),mt=lt([]),va=lt([]),yt=typeof BroadcastChannel<"u"?new BroadcastChannel("kin-sync"):null;yt==null||yt.addEventListener("message",e=>{const{type:t,data:n}=e.data;switch(t){case"messages_updated":mt.value=n.messages.map(r=>({...r,timestamp:new Date(r.timestamp)}));break;case"messages_cleared":mt.value=[];break}});const La=()=>{yt==null||yt.postMessage({type:"messages_updated",data:{messages:mt.value}})},N0=e=>{mt.value=[...mt.value,{...e,id:crypto.randomUUID(),timestamp:new Date}],va.value=[],La()},v0=e=>{va.value=e},L0=e=>{const t=mt.value;if(t.length===0)return;const n=t[t.length-1];!n||n.role!=="assistant"||(mt.value=[...t.slice(0,-1),{...n,content:n.content+e}])},R0=()=>{mt.value=[],yt==null||yt.postMessage({type:"messages_cleared"})},O0=e=>{mt.value=e.map(t=>({...t,id:crypto.randomUUID(),timestamp:new Date})),La()},D0=()=>{La()},P0=(e,t,n)=>{Sa.value=e,Na.value=t??null,Ia.value=n??null},M0=()=>{Sa.value="idle",Na.value=null,Ia.value=null},B0=e=>{wa.value=e},F0=()=>{wa.value=!1},$={isOpen:w0,isStreaming:S0,connectionState:I0,messages:mt,quickReplies:va,uploadState:Sa,uploadError:Ia,uploadFileName:Na,hasUnreadMessages:wa,addMessage:N0,appendToLastMessage:L0,clearMessages:R0,setMessages:O0,syncToOtherTabs:D0,setUploadState:P0,resetUploadState:M0,setHasUnreadMessages:B0,clearUnreadMessages:F0,setQuickReplies:v0},H0={"application/pdf":{maxSize:1e7},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{maxSize:1e7},"application/msword":{maxSize:1e7},"text/plain":{maxSize:1e6},"image/jpeg":{maxSize:1e7},"image/png":{maxSize:1e7},"image/webp":{maxSize:1e7}},U0=".pdf,.docx,.doc,.txt,.jpg,.jpeg,.png,.webp";function z0(e){const t=H0[e.type];return t?e.size>t.maxSize?{valid:!1,error:`File is too large. Maximum size is ${Math.round(t.maxSize/1e6)}MB.`}:e.size===0?{valid:!1,error:"The file appears to be empty."}:{valid:!0}:{valid:!1,error:"Unsupported file format. Please upload a PDF, Word document, text file, or image."}}function $0(e){return new Promise((t,n)=>{const r=new FileReader;r.onload=()=>{typeof r.result=="string"?t(r.result):n(new Error("Failed to read file"))},r.onerror=()=>n(r.error),r.readAsDataURL(e)})}function Y0({url:e,onMessage:t,onOpen:n,onClose:r,onError:i}){let a=null,s=[];const u=()=>{if(!(!a||a.readyState!==WebSocket.OPEN)){for(const l of s)a.send(JSON.stringify({type:"user_message",content:l}));s=[]}};return(()=>{a=new WebSocket(e),a.onopen=()=>{n(),u()},a.onmessage=l=>{try{const h=JSON.parse(l.data);t(h)}catch(h){console.error("Failed to parse message:",h)}},a.onclose=()=>{s=[],r(),a=null},a.onerror=l=>{i(l)}})(),{sendMessage:l=>{a&&(a.readyState===WebSocket.OPEN?a.send(JSON.stringify({type:"user_message",content:l})):a.readyState===WebSocket.CONNECTING&&s.push(l))},uploadFile:async(l,h)=>{if(!a||a.readyState!==WebSocket.OPEN)return{success:!1,error:"Not connected"};const d=z0(l);if(!d.valid)return{success:!1,error:d.error};try{const p=await $0(l);return!a||a.readyState!==WebSocket.OPEN?{success:!1,error:"Connection lost while reading file. Please try again."}:(a.send(JSON.stringify({type:"file_upload",fileType:h,fileName:l.name,mimeType:l.type,data:p})),{success:!0})}catch(p){return{success:!1,error:p instanceof Error?p.message:"Failed to read file"}}},clearData:()=>{a&&a.readyState===WebSocket.OPEN&&a.send(JSON.stringify({type:"clear_data"}))},disconnect:()=>{a&&(a.close(),a=null)},isConnected:()=>(a==null?void 0:a.readyState)===WebSocket.OPEN}}var q0=0;function b(e,t,n,r,i,a){var s,u,o={};for(u in t)u=="ref"?s=t[u]:o[u]=t[u];var l={type:e,props:o,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--q0,__source:i,__self:a};if(typeof e=="function"&&(s=e.defaultProps))for(u in s)o[u]===void 0&&(o[u]=s[u]);return W.vnode&&W.vnode(l),l}function j0({class:e,"aria-hidden":t="true"}){return b("svg",{class:e,viewBox:"0 0 870 400",fill:"currentColor","aria-hidden":t,focusable:"false",children:b("path",{d:"M220.468 331.21c-21.275-9.559-42.081-30.347-79.541-67.777l-56.1-56.087c-9.106-9.106-14.522-14.541-18.414-18.802-2.471-2.705-3.42-3.973-3.645-4.286a20.3 20.3 0 0 1 0-20.058c.224-.314 1.173-1.582 3.644-4.286 3.893-4.261 9.309-9.697 18.414-18.803 43.366-43.365 57.154-56.438 69.786-63.775 39.522-22.958 88.319-22.958 127.842-.001 12.632 7.337 26.42 20.41 69.786 63.774l30.412 30.411 42.51-42.509-30.413-30.412c-40.657-40.656-60.986-60.984-82.1-73.248-58.192-33.802-130.041-33.801-188.233.001-21.114 12.265-41.442 32.593-82.099 73.25-17.449 17.449-26.174 26.173-31.437 35.235a80.417 80.417 0 0 0 0 80.785c5.264 9.061 13.99 17.785 31.438 35.234l69.155 69.152c30.203 30.202 45.305 45.303 62.973 56.034a171.768 171.768 0 0 0 48.416 20.055C242.943 400.001 264.3 400 307.013 400H608.43c42.714 0 64.071-.001 84.153-4.906A171.733 171.733 0 0 0 741 375.039c17.668-10.731 32.77-25.833 62.973-56.037l13.213-13.213c160.161-160.161-80.08-400.402-240.241-240.24L379.079 263.39c-42.114 42.109-63.171 63.164-87.526 70.869a104.629 104.629 0 0 1-59.446 1.086 111.797 111.797 0 0 1-11.639-4.136Z"})})}function V0({class:e,"aria-hidden":t="true"}){return b("svg",{class:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":t,focusable:"false",children:[b("path",{d:"M12 19V5"}),b("path",{d:"M5 12l7-7 7 7"})]})}function W0({class:e,"aria-hidden":t="true"}){return b("svg",{class:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":t,focusable:"false",children:[b("path",{d:"M18 6L6 18"}),b("path",{d:"M6 6l12 12"})]})}function G0({class:e,"aria-hidden":t="true"}){return b("svg",{class:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":t,focusable:"false",children:[b("path",{d:"M3 6h18"}),b("path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"}),b("path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"})]})}function Q0({class:e,"aria-hidden":t="true"}){return b("svg",{class:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":t,focusable:"false",children:b("path",{d:"M21.44 11.05l-9.19 9.19a6 6 0 01-8.49-8.49l9.19-9.19a4 4 0 015.66 5.66l-9.2 9.19a2 2 0 01-2.83-2.83l8.49-8.48"})})}function K0({class:e,"aria-hidden":t="true"}){return b("svg",{class:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":t,focusable:"false",children:b("path",{d:"M21 12a9 9 0 11-6.219-8.56"})})}const Ns=2e3;function X0({isOpen:e,starterPrompts:t,onOpen:n,onClose:r,onSendMessage:i,onConnect:a,onUploadFile:s,inputRef:u}){const[o,l]=le(""),[h,d]=le(!1),p=Le(null),f=u??p,m=Le(null),[k,C]=le($.isStreaming.value),[y,I]=le($.connectionState.value),[S,D]=le($.messages.value.length>0),[R,x]=le($.uploadState.value),[H,B]=le($.uploadError.value),[U,N]=le($.uploadFileName.value),[Y,M]=le($.quickReplies.value);Ce(()=>rr(()=>{C($.isStreaming.value),I($.connectionState.value),D($.messages.value.length>0),x($.uploadState.value),B($.uploadError.value),N($.uploadFileName.value),M($.quickReplies.value)}),[]);const Q=y==="connected",ie=y==="connecting",X=y==="disconnected",Z=y==="idle",J=R==="uploading"||R==="processing",V=o.length>Ns,He=o.trim().length>0&&!k&&!J&&!V&&(Q||ie),A=Q&&!k&&!J;Ce(()=>{e&&f.current&&requestAnimationFrame(()=>{var se;(se=f.current)==null||se.focus()})},[e]);const Oe=()=>{d(!0),a(),!e&&S&&n()},Ue=se=>{const De=se.relatedTarget;De!=null&&De.closest(".kin-launcher-input-wrapper")||d(!1)},_=se=>{if(se.preventDefault(),!He)return;const De=o.trim();$.addMessage({role:"user",content:De}),e||n(),i(De),l("")},pe=se=>{se.key==="Enter"&&!se.shiftKey&&(se.preventDefault(),_(se)),se.key==="Escape"&&e&&(se.preventDefault(),se.stopPropagation(),r())},qe=se=>{var fr;const De=se.target,Ft=(fr=De.files)==null?void 0:fr[0];Ft&&(e||n(),s(Ft,"cv")),De.value=""},xe=()=>{var se;(se=m.current)==null||se.click()},Ee=()=>J?U?`Uploading ${U}...`:"Uploading file...":ie?"Connecting...":X?"Disconnected - Click to retry":k?"Waiting for response...":!e&&S?"Continue conversation...":"Ask me anything...",Ge=()=>J?U?`Uploading ${U}...`:"Uploading file...":k?"Waiting for response":Z?"Click to connect":ie?"Connecting...":!Q&&o.trim().length===0?"Enter a message to send":Q?o.trim().length===0?"Enter a message to send":"Send message":"Cannot send message",Qe=()=>J?"Uploading...":A?"Attach file (CV, document, or image)":"Cannot upload file",Ke=se=>{a(),$.addMessage({role:"user",content:se.message}),n(),i(se.message)},dt=se=>{e||n(),a(),$.addMessage({role:"user",content:se}),i(se)},Ct=Y.length>0&&e,hr=t.length>0&&!S&&h,Cn=Ct||hr;return b("div",{class:`kin-launcher ${e?"is-open":""}`,role:"search","aria-label":"Chat with Kin AI",children:b("form",{onSubmit:_,class:"kin-launcher-form",children:[b("div",{class:`kin-launcher-input-wrapper${Cn?" has-quick-replies":""}`,children:[Cn&&b("div",{class:"kin-quick-replies",children:hr?t.map((se,De)=>b("button",{type:"button",class:"kin-quick-reply-btn",onPointerDown:Ft=>Ft.preventDefault(),onClick:()=>Ke(se),children:se.label},`s-${De}`)):Y.map((se,De)=>b("button",{type:"button",class:"kin-quick-reply-btn",onClick:()=>dt(se),children:se},`q-${De}`))}),b("div",{class:"kin-input-row",children:[b("label",{for:"kin-input",class:"kin-sr-only",children:"Ask Kin a question"}),b("input",{id:"kin-input",ref:f,type:"text",class:"kin-launcher-input",placeholder:Cn?"Or type a message...":Ee(),value:o,onInput:se=>l(se.target.value),onFocus:Oe,onBlur:Ue,onKeyDown:pe,"aria-describedby":"kin-input-status",autoComplete:"off",disabled:J}),b("input",{ref:m,type:"file",class:"kin-sr-only",accept:U0,onChange:qe,"aria-hidden":"true",tabIndex:-1}),b("button",{type:"button",class:`kin-launcher-attach ${J?"is-uploading":""}`,disabled:!A,"aria-label":Qe(),onClick:xe,children:J?b(K0,{}):b(Q0,{})}),b("button",{type:"submit",class:"kin-launcher-send",disabled:!He,"aria-label":Ge(),children:b(V0,{})})]})]}),b("div",{id:"kin-input-status",class:"kin-sr-only",role:"status","aria-live":"polite",children:[ie&&"Connecting to Kin...",X&&"Connection lost. Click input to retry.",k&&"Kin is responding...",J&&(U?`Uploading ${U}...`:"Uploading file...")]}),H&&R==="error"&&b("div",{class:"kin-upload-error",role:"alert",children:H}),V&&b("div",{class:"kin-char-limit-error",role:"alert",children:["Message too long (",o.length.toLocaleString(),"/",Ns.toLocaleString()," characters)"]})]})})}function Z0(e,t){for(var n in t)e[n]=t[n];return e}function Xi(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function vs(e){this.props=e}function fe(e,t){function n(i){var a=this.props.ref,s=a==i.ref;return!s&&a&&(a.call?a(null):a.current=null),t?!t(this.props,i)||!s:Xi(this.props,i)}function r(i){return this.shouldComponentUpdate=n,Dt(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(vs.prototype=new pt).isPureReactComponent=!0,vs.prototype.shouldComponentUpdate=function(e,t){return Xi(this.props,e)||Xi(this.state,t)};var Ls=W.__b;W.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ls&&Ls(e)};var J0=W.__e;W.__e=function(e,t,n,r){if(e.then){for(var i,a=t;a=a.__;)if((i=a.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}J0(e,t,n,r)};var Rs=W.unmount;function Wo(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Z0({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Wo(r,t,n)})),e}function Go(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Go(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function Hn(){this.__u=0,this.t=null,this.__b=null}function Qo(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ko(e){var t,n,r;function i(a){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return Dt(n,a)}return i.displayName="Lazy",i.__f=!0,i}function pr(){this.u=null,this.o=null}W.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Rs&&Rs(e)},(Hn.prototype=new pt).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=Qo(r.__v),a=!1,s=function(){a||(a=!0,n.__R=null,i?i(u):u())};n.__R=s;var u=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=Go(l,l.__c.__P,l.__c.__O)}var h;for(r.setState({__a:r.__b=null});h=r.t.pop();)h.forceUpdate()}},o=t.__h===!0;r.__u++||o||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Hn.prototype.componentWillUnmount=function(){this.t=[]},Hn.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Wo(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&Dt(Ye,null,e.fallback);return i&&(i.__h=null),[Dt(Ye,null,t.__a?null:e.children),i]};var Os=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(pr.prototype=new pt).__a=function(e){var t=this,n=Qo(t.__v),r=t.o.get(e);return r[0]++,function(i){var a=function(){t.props.revealOrder?(r.push(i),Os(t,e,r)):i()};n?n(a):a()}},pr.prototype.render=function(e){this.u=null,this.o=new Map;var t=Pr(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},pr.prototype.componentDidUpdate=pr.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Os(e,n,t)})};var Xo=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,eh=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,th=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,nh=/[A-Z0-9]/g,rh=typeof document<"u",ih=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};pt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(pt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Ds=W.event;function ah(){}function sh(){return this.cancelBubble}function uh(){return this.defaultPrevented}W.event=function(e){return Ds&&(e=Ds(e)),e.persist=ah,e.isPropagationStopped=sh,e.isDefaultPrevented=uh,e.nativeEvent=e};var oh={enumerable:!1,configurable:!0,get:function(){return this.class}},Ps=W.vnode;W.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,i={};for(var a in n){var s=n[a];if(!(a==="value"&&"defaultValue"in n&&s==null||rh&&a==="children"&&r==="noscript"||a==="class"||a==="className")){var u=a.toLowerCase();a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&s===!0?s="":u==="ondoubleclick"?a="ondblclick":u!=="onchange"||r!=="input"&&r!=="textarea"||ih(n.type)?u==="onfocus"?a="onfocusin":u==="onblur"?a="onfocusout":th.test(a)?a=u:r.indexOf("-")===-1&&eh.test(a)?a=a.replace(nh,"-$&").toLowerCase():s===null&&(s=void 0):u=a="oninput",u==="oninput"&&i[a=u]&&(a="oninputCapture"),i[a]=s}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Pr(n.children).forEach(function(o){o.props.selected=i.value.indexOf(o.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=Pr(n.children).forEach(function(o){o.props.selected=i.multiple?i.defaultValue.indexOf(o.props.value)!=-1:i.defaultValue==o.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",oh)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=Xo,Ps&&Ps(e)};var Ms=W.__r;W.__r=function(e){Ms&&Ms(e),e.__c};var Bs=W.diffed;W.diffed=function(e){Bs&&Bs(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value)};function sn(e){return!!e&&e.$$typeof===Xo}function lh(e){e()}function ch(){return[!1,lh]}const ti=function(e){if(e==null)return ph;if(typeof e=="function")return ni(e);if(typeof e=="object")return Array.isArray(e)?dh(e):hh(e);if(typeof e=="string")return fh(e);throw new Error("Expected function, string, or object as test")};function dh(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=ti(e[n]);return ni(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function hh(e){const t=e;return ni(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function fh(e){return ni(t);function t(n){return n&&n.type===e}}function ni(e){return t;function t(n,r,i){return!!(mh(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function ph(){return!0}function mh(e){return e!==null&&typeof e=="object"&&"type"in e}const Zo=[],Pn=!0,Zi=!1,Ji="skip";function Jo(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=ti(i),s=r?-1:1;u(e,void 0,[])();function u(o,l,h){const d=o&&typeof o=="object"?o:{};if(typeof d.type=="string"){const f=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(o.type+(f?"<"+f+">":""))+")"})}return p;function p(){let f=Zo,m,k,C;if((!t||a(o,l,h[h.length-1]||void 0))&&(f=gh(n(o,h)),f[0]===Zi))return f;if("children"in o&&o.children){const y=o;if(y.children&&f[0]!==Ji)for(k=(r?y.children.length:-1)+s,C=h.concat(y);k>-1&&k<y.children.length;){const I=y.children[k];if(m=u(I,k,C)(),m[0]===Zi)return m;k=typeof m[1]=="number"?m[1]:k+s}}return f}}}function gh(e){return Array.isArray(e)?e:typeof e=="number"?[Pn,e]:e==null?Zo:[e]}function hn(e,t,n,r){let i,a,s;typeof t=="function"&&typeof n!="function"?(a=void 0,s=t,i=n):(a=t,s=n,i=r),Jo(e,a,u,i);function u(o,l){const h=l[l.length-1],d=h?h.children.indexOf(o):void 0;return s(o,d,h)}}function bh({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:n=[],allowDataImages:r=!1,allowedProtocols:i=[],blockedImageClass:a="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:s="text-gray-500"}){const u=t.length&&!t.every(l=>l==="*"),o=n.length&&!n.every(l=>l==="*");if(!e&&(u||o))throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return l=>{const h=_h(e,t,n,r,i,a,s);hn(l,h)}}function Fs(e,t){if(typeof e!="string")return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{return null}return null}}function Eh(e){return typeof e!="string"?!1:e.startsWith("/")||e.startsWith("./")||e.startsWith("../")}const kh=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),Th=new Set(["javascript:","data:","file:","vbscript:"]);function Hs(e,t,n,r=!1,i=!1,a=[]){if(!e)return null;if(typeof e=="string"&&e.startsWith("#")&&!i)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if(typeof e=="string"&&e.startsWith("data:"))return i&&r&&e.startsWith("data:image/")?e:null;if(typeof e=="string"&&e.startsWith("blob:")){try{if(new URL(e).protocol==="blob:"&&e.length>5){const h=e.substring(5);if(h&&h.length>0&&h!=="invalid")return e}}catch{return null}return null}const s=Fs(e,n);if(!s||Th.has(s.protocol)||!(kh.has(s.protocol)||a.includes(s.protocol)||a.includes("*")))return null;if(s.protocol==="mailto:"||!s.protocol.match(/^https?:$/))return s.href;const o=Eh(e);return s&&t.some(l=>{const h=Fs(l,n);return!h||h.origin!==s.origin?!1:s.href.startsWith(h.href)})?o?s.pathname+s.search+s.hash:s.href:t.includes("*")?s.protocol!=="https:"&&s.protocol!=="http:"?null:o?s.pathname+s.search+s.hash:s.href:null}const yi=Symbol("node-seen"),_h=(e,t,n,r,i,a,s)=>{const u=(o,l,h)=>{if(o.type!=="element"||o[yi])return Pn;if(o.tagName==="a"){const d=Hs(o.properties.href,t,e,!1,!1,i);return d===null?(o[yi]=!0,hn(o,u),h&&typeof l=="number"&&(h.children[l]={type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(o.properties.href),class:s},children:[...o.children,{type:"text",value:" [blocked]"}]}),Ji):(o.properties.href=d,o.properties.target="_blank",o.properties.rel="noopener noreferrer",Pn)}if(o.tagName==="img"){const d=Hs(o.properties.src,n,e,r,!0,i);return d===null?(o[yi]=!0,hn(o,u),h&&typeof l=="number"&&(h.children[l]={type:"element",tagName:"span",properties:{class:a},children:[{type:"text",value:"[Image blocked: "+String(o.properties.alt||"No description")+"]"}]}),Ji):(o.properties.src=d,Pn)}return Pn};return u},el=-1,ri=0,Hr=1,Ur=2,Ra=3,Oa=4,Da=5,Pa=6,tl=7,nl=8,Us=typeof self=="object"?self:globalThis,xh=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case ri:case el:return n(s,i);case Hr:{const u=n([],i);for(const o of s)u.push(r(o));return u}case Ur:{const u=n({},i);for(const[o,l]of s)u[r(o)]=r(l);return u}case Ra:return n(new Date(s),i);case Oa:{const{source:u,flags:o}=s;return n(new RegExp(u,o),i)}case Da:{const u=n(new Map,i);for(const[o,l]of s)u.set(r(o),r(l));return u}case Pa:{const u=n(new Set,i);for(const o of s)u.add(r(o));return u}case tl:{const{name:u,message:o}=s;return n(new Us[u](o),i)}case nl:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i)}return n(new Us[a](s),i)};return r},zs=e=>xh(new Map,e)(0),nn="",{toString:yh}={},{keys:Ah}=Object,In=e=>{const t=typeof e;if(t!=="object"||!e)return[ri,t];const n=yh.call(e).slice(8,-1);switch(n){case"Array":return[Hr,nn];case"Object":return[Ur,nn];case"Date":return[Ra,nn];case"RegExp":return[Oa,nn];case"Map":return[Da,nn];case"Set":return[Pa,nn]}return n.includes("Array")?[Hr,n]:n.includes("Error")?[tl,n]:[Ur,n]},mr=([e,t])=>e===ri&&(t==="function"||t==="symbol"),Ch=(e,t,n,r)=>{const i=(s,u)=>{const o=r.push(s)-1;return n.set(u,o),o},a=s=>{if(n.has(s))return n.get(s);let[u,o]=In(s);switch(u){case ri:{let h=s;switch(o){case"bigint":u=nl,h=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+o);h=null;break;case"undefined":return i([el],s)}return i([u,h],s)}case Hr:{if(o)return i([o,[...s]],s);const h=[],d=i([u,h],s);for(const p of s)h.push(a(p));return d}case Ur:{if(o)switch(o){case"BigInt":return i([o,s.toString()],s);case"Boolean":case"Number":case"String":return i([o,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const h=[],d=i([u,h],s);for(const p of Ah(s))(e||!mr(In(s[p])))&&h.push([a(p),a(s[p])]);return d}case Ra:return i([u,s.toISOString()],s);case Oa:{const{source:h,flags:d}=s;return i([u,{source:h,flags:d}],s)}case Da:{const h=[],d=i([u,h],s);for(const[p,f]of s)(e||!(mr(In(p))||mr(In(f))))&&h.push([a(p),a(f)]);return d}case Pa:{const h=[],d=i([u,h],s);for(const p of s)(e||!mr(In(p)))&&h.push(a(p));return d}}const{message:l}=s;return i([u,{name:o,message:l}],s)};return a},$s=(e,{json:t,lossy:n}={})=>{const r=[];return Ch(!(t||n),!!t,new Map,r)(e),r},Gt=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?zs($s(e,t)):structuredClone(e):(e,t)=>zs($s(e,t));class ir{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}ir.prototype.normal={};ir.prototype.property={};ir.prototype.space=void 0;function rl(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new ir(n,r,t)}function Xn(e){return e.toLowerCase()}class We{constructor(t,n){this.attribute=n,this.property=t}}We.prototype.attribute="";We.prototype.booleanish=!1;We.prototype.boolean=!1;We.prototype.commaOrSpaceSeparated=!1;We.prototype.commaSeparated=!1;We.prototype.defined=!1;We.prototype.mustUseProperty=!1;We.prototype.number=!1;We.prototype.overloadedBoolean=!1;We.prototype.property="";We.prototype.spaceSeparated=!1;We.prototype.space=void 0;let wh=0;const te=Xt(),we=Xt(),ea=Xt(),F=Xt(),ke=Xt(),cn=Xt(),Ze=Xt();function Xt(){return 2**++wh}const ta=Object.freeze(Object.defineProperty({__proto__:null,boolean:te,booleanish:we,commaOrSpaceSeparated:Ze,commaSeparated:cn,number:F,overloadedBoolean:ea,spaceSeparated:ke},Symbol.toStringTag,{value:"Module"})),Ai=Object.keys(ta);class Ma extends We{constructor(t,n,r,i){let a=-1;if(super(t,n),Ys(this,"space",i),typeof r=="number")for(;++a<Ai.length;){const s=Ai[a];Ys(this,Ai[a],(r&ta[s])===ta[s])}}}Ma.prototype.defined=!0;function Ys(e,t,n){n&&(e[t]=n)}function En(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new Ma(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Xn(r)]=r,n[Xn(a.attribute)]=r}return new ir(t,n,e.space)}const il=En({properties:{ariaActiveDescendant:null,ariaAtomic:we,ariaAutoComplete:null,ariaBusy:we,ariaChecked:we,ariaColCount:F,ariaColIndex:F,ariaColSpan:F,ariaControls:ke,ariaCurrent:null,ariaDescribedBy:ke,ariaDetails:null,ariaDisabled:we,ariaDropEffect:ke,ariaErrorMessage:null,ariaExpanded:we,ariaFlowTo:ke,ariaGrabbed:we,ariaHasPopup:null,ariaHidden:we,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ke,ariaLevel:F,ariaLive:null,ariaModal:we,ariaMultiLine:we,ariaMultiSelectable:we,ariaOrientation:null,ariaOwns:ke,ariaPlaceholder:null,ariaPosInSet:F,ariaPressed:we,ariaReadOnly:we,ariaRelevant:null,ariaRequired:we,ariaRoleDescription:ke,ariaRowCount:F,ariaRowIndex:F,ariaRowSpan:F,ariaSelected:we,ariaSetSize:F,ariaSort:null,ariaValueMax:F,ariaValueMin:F,ariaValueNow:F,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function al(e,t){return t in e?e[t]:t}function sl(e,t){return al(e,t.toLowerCase())}const Sh=En({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:cn,acceptCharset:ke,accessKey:ke,action:null,allow:null,allowFullScreen:te,allowPaymentRequest:te,allowUserMedia:te,alt:null,as:null,async:te,autoCapitalize:null,autoComplete:ke,autoFocus:te,autoPlay:te,blocking:ke,capture:null,charSet:null,checked:te,cite:null,className:ke,cols:F,colSpan:null,content:null,contentEditable:we,controls:te,controlsList:ke,coords:F|cn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:te,defer:te,dir:null,dirName:null,disabled:te,download:ea,draggable:we,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:te,formTarget:null,headers:ke,height:F,hidden:ea,high:F,href:null,hrefLang:null,htmlFor:ke,httpEquiv:ke,id:null,imageSizes:null,imageSrcSet:null,inert:te,inputMode:null,integrity:null,is:null,isMap:te,itemId:null,itemProp:ke,itemRef:ke,itemScope:te,itemType:ke,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:te,low:F,manifest:null,max:null,maxLength:F,media:null,method:null,min:null,minLength:F,multiple:te,muted:te,name:null,nonce:null,noModule:te,noValidate:te,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:te,optimum:F,pattern:null,ping:ke,placeholder:null,playsInline:te,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:te,referrerPolicy:null,rel:ke,required:te,reversed:te,rows:F,rowSpan:F,sandbox:ke,scope:null,scoped:te,seamless:te,selected:te,shadowRootClonable:te,shadowRootDelegatesFocus:te,shadowRootMode:null,shape:null,size:F,sizes:null,slot:null,span:F,spellCheck:we,src:null,srcDoc:null,srcLang:null,srcSet:null,start:F,step:null,style:null,tabIndex:F,target:null,title:null,translate:null,type:null,typeMustMatch:te,useMap:null,value:we,width:F,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ke,axis:null,background:null,bgColor:null,border:F,borderColor:null,bottomMargin:F,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:te,declare:te,event:null,face:null,frame:null,frameBorder:null,hSpace:F,leftMargin:F,link:null,longDesc:null,lowSrc:null,marginHeight:F,marginWidth:F,noResize:te,noHref:te,noShade:te,noWrap:te,object:null,profile:null,prompt:null,rev:null,rightMargin:F,rules:null,scheme:null,scrolling:we,standby:null,summary:null,text:null,topMargin:F,valueType:null,version:null,vAlign:null,vLink:null,vSpace:F,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:te,disableRemotePlayback:te,prefix:null,property:null,results:F,security:null,unselectable:null},space:"html",transform:sl}),Ih=En({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:Ze,accentHeight:F,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:F,amplitude:F,arabicForm:null,ascent:F,attributeName:null,attributeType:null,azimuth:F,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:F,by:null,calcMode:null,capHeight:F,className:ke,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:F,diffuseConstant:F,direction:null,display:null,dur:null,divisor:F,dominantBaseline:null,download:te,dx:null,dy:null,edgeMode:null,editable:null,elevation:F,enableBackground:null,end:null,event:null,exponent:F,externalResourcesRequired:null,fill:null,fillOpacity:F,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:cn,g2:cn,glyphName:cn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:F,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:F,horizOriginX:F,horizOriginY:F,id:null,ideographic:F,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:F,k:F,k1:F,k2:F,k3:F,k4:F,kernelMatrix:Ze,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:F,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:F,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:F,overlineThickness:F,paintOrder:null,panose1:null,path:null,pathLength:F,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ke,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:F,pointsAtY:F,pointsAtZ:F,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ze,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ze,rev:Ze,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ze,requiredFeatures:Ze,requiredFonts:Ze,requiredFormats:Ze,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:F,specularExponent:F,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:F,strikethroughThickness:F,string:null,stroke:null,strokeDashArray:Ze,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:F,strokeOpacity:F,strokeWidth:null,style:null,surfaceScale:F,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ze,tabIndex:F,tableValues:null,target:null,targetX:F,targetY:F,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ze,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:F,underlineThickness:F,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:F,values:null,vAlphabetic:F,vMathematical:F,vectorEffect:null,vHanging:F,vIdeographic:F,version:null,vertAdvY:F,vertOriginX:F,vertOriginY:F,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:F,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:al}),ul=En({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()}}),ol=En({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:sl}),ll=En({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Nh={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},vh=/[A-Z]/g,qs=/-[a-z]/g,Lh=/^data[-\w.:]+$/i;function ii(e,t){const n=Xn(t);let r=t,i=We;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Lh.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(qs,Oh);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!qs.test(a)){let s=a.replace(vh,Rh);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Ma}return new i(r,t)}function Rh(e){return"-"+e.toLowerCase()}function Oh(e){return e.charAt(1).toUpperCase()}const ar=rl([il,Sh,ul,ol,ll],"html"),Mt=rl([il,Ih,ul,ol,ll],"svg");function js(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function cl(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Vs=/[#.]/g;function Dh(e,t){const n=e||"",r={};let i=0,a,s;for(;i<n.length;){Vs.lastIndex=i;const u=Vs.exec(n),o=n.slice(i,u?u.index:n.length);o&&(a?a==="#"?r.id=o:Array.isArray(r.className)?r.className.push(o):r.className=[o]:s=o,i+=o.length),u&&(a=u[0],i++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function Ws(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function dl(e){return e.join(" ").trim()}function hl(e,t,n){const r=n?Fh(n):void 0;function i(a,s,...u){let o;if(a==null){o={type:"root",children:[]};const l=s;u.unshift(l)}else{o=Dh(a,t);const l=o.tagName.toLowerCase(),h=r?r.get(l):void 0;if(o.tagName=h||l,Ph(s))u.unshift(s);else for(const[d,p]of Object.entries(s))Mh(e,o.properties,d,p)}for(const l of u)na(o.children,l);return o.type==="element"&&o.tagName==="template"&&(o.content={type:"root",children:o.children},o.children=[]),o}return i}function Ph(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Mh(e,t,n,r){const i=ii(e,n);let a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?i.spaceSeparated?a=Ws(r):i.commaSeparated?a=js(r):i.commaOrSpaceSeparated?a=Ws(js(r).join(" ")):a=Gs(i,i.property,r):Array.isArray(r)?a=[...r]:a=i.property==="style"?Bh(r):String(r);if(Array.isArray(a)){const s=[];for(const u of a)s.push(Gs(i,i.property,u));a=s}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function na(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(const n of t)na(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?na(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Gs(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Xn(n)===Xn(t)))return!0}return n}function Bh(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function Fh(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Hh=["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"],Uh=hl(ar,"div"),zh=hl(Mt,"g",Hh);function $h(e){const t=String(e),n=[];return{toOffset:i,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let u=n[s];if(u===void 0){const o=Qs(t,n[s-1]);u=o===-1?t.length+1:o+1,n[s]=u}if(u>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a};s++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length<a.line;){const u=n[n.length-1],o=Qs(t,u),l=o===-1?t.length+1:o+1;if(u===l)break;n.push(l)}const s=(a.line>1?n[a.line-2]:0)+a.column-1;if(s<n[a.line-1])return s}}}function Qs(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
2
+ `,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const jt={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/"},fl={}.hasOwnProperty,Yh=Object.prototype;function qh(e,t){const n=t||{};return Ba({file:n.file||void 0,location:!1,schema:n.space==="svg"?Mt:ar,verbose:n.verbose||!1},e)}function Ba(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Nr(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:pl(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const a=String(e.file),s=$h(a),u=s.toPoint(0),o=s.toPoint(a.length);n.position={start:u,end:o}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Nr(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Nr(e,r,n),n}default:return n=jh(e,t),n}}function pl(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=Ba(e,t[n]);r.push(i)}return r}function jh(e,t){const n=e.schema;e.schema=t.namespaceURI===jt.svg?Mt:ar;let r=-1;const i={};for(;++r<t.attrs.length;){const u=t.attrs[r],o=(u.prefix?u.prefix+":":"")+u.name;fl.call(Yh,o)||(i[o]=u.value)}const s=(e.schema.space==="svg"?zh:Uh)(t.tagName,i,pl(e,t.childNodes));if(Nr(e,t,s),s.tagName==="template"){const u=t,o=u.sourceCodeLocation,l=o&&o.startTag&&un(o.startTag),h=o&&o.endTag&&un(o.endTag),d=Ba(e,u.content);l&&h&&e.file&&(d.position={start:l.end,end:h.start}),s.content=d}return e.schema=n,s}function Nr(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=Vh(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Vh(e,t,n){const r=un(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const a={};let s;if(n.attrs)for(s in n.attrs)fl.call(n.attrs,s)&&(a[ii(e.schema,s).property]=un(n.attrs[s]));n.startTag;const u=un(n.startTag),o=n.endTag?un(n.endTag):void 0,l={opening:u};o&&(l.closing=o),l.properties=a,t.data={position:l}}}return r}function un(e){const t=Ks({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Ks({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Ks(e){return e.line&&e.column?e:void 0}const Xs={}.hasOwnProperty;function ml(e,t){const n=t||{};function r(i,...a){let s=r.invalid;const u=r.handlers;if(i&&Xs.call(i,e)){const o=String(i[e]);s=Xs.call(u,o)?u[o]:r.unknown}if(s)return s.call(this,i,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const Wh={},Gh={}.hasOwnProperty,gl=ml("type",{handlers:{root:Kh,element:tf,text:Jh,comment:ef,doctype:Zh}});function Qh(e,t){const r=(t||Wh).space;return gl(e,r==="svg"?Mt:ar)}function Kh(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Fa(e.children,n,t),kn(e,n),n}function Xh(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Fa(e.children,n,t),kn(e,n),n}function Zh(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return kn(e,t),t}function Jh(e){const t={nodeName:"#text",value:e.value,parentNode:null};return kn(e,t),t}function ef(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return kn(e,t),t}function tf(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Mt);const i=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&Gh.call(e.properties,a)){const o=nf(r,a,e.properties[a]);o&&i.push(o)}}const s=r.space,u={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:jt[s],childNodes:[],parentNode:null};return u.childNodes=Fa(e.children,u,r),kn(e,u),e.tagName==="template"&&e.content&&(u.content=Xh(e.content,r)),u}function nf(e,t,n){const r=ii(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?cl(n):dl(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=i.name.indexOf(":");a<0?i.prefix="":(i.name=i.name.slice(a+1),i.prefix=r.attribute.slice(0,a)),i.namespace=jt[r.space]}return i}function Fa(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const a=gl(e[r],n);a.parentNode=t,i.push(a)}return i}function kn(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const rf=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],af=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]),Te="�";var g;(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"})(g||(g={}));const je={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function bl(e){return e>=55296&&e<=57343}function sf(e){return e>=56320&&e<=57343}function uf(e,t){return(e-55296)*1024+9216+t}function El(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function kl(e){return e>=64976&&e<=65007||af.has(e)}var v;(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"})(v||(v={}));const of=65536;class lf{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=of,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,n){const{line:r,col:i,offset:a}=this,s=i+n,u=a+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:u,endOffset:u}}_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){const n=this.html.charCodeAt(this.pos+1);if(sf(n))return this.pos++,this._addGap(),uf(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,g.EOF;return this._err(v.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,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)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){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,g.EOF;const r=this.html.charCodeAt(n);return r===g.CARRIAGE_RETURN?g.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,g.EOF;let t=this.html.charCodeAt(this.pos);return t===g.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,g.LINE_FEED):t===g.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,bl(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===g.LINE_FEED||t===g.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){El(t)?this._err(v.controlCharacterInInputStream):kl(t)&&this._err(v.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var re;(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"})(re||(re={}));function Tl(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const cf=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),df=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]]);function hf(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=df.get(e))!==null&&t!==void 0?t:e}var Ne;(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"})(Ne||(Ne={}));const ff=32;var Ot;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ot||(Ot={}));function ra(e){return e>=Ne.ZERO&&e<=Ne.NINE}function pf(e){return e>=Ne.UPPER_A&&e<=Ne.UPPER_F||e>=Ne.LOWER_A&&e<=Ne.LOWER_F}function mf(e){return e>=Ne.UPPER_A&&e<=Ne.UPPER_Z||e>=Ne.LOWER_A&&e<=Ne.LOWER_Z||ra(e)}function gf(e){return e===Ne.EQUALS||mf(e)}var Ie;(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"})(Ie||(Ie={}));var xt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(xt||(xt={}));class bf{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Ie.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=xt.Strict}startEntity(t){this.decodeMode=t,this.state=Ie.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Ie.EntityStart:return t.charCodeAt(n)===Ne.NUM?(this.state=Ie.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Ie.NamedEntity,this.stateNamedEntity(t,n));case Ie.NumericStart:return this.stateNumericStart(t,n);case Ie.NumericDecimal:return this.stateNumericDecimal(t,n);case Ie.NumericHex:return this.stateNumericHex(t,n);case Ie.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|ff)===Ne.LOWER_X?(this.state=Ie.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Ie.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const a=r-n;this.result=this.result*Math.pow(i,a)+Number.parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(ra(i)||pf(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(ra(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Ne.SEMI)this.consumed+=1;else if(this.decodeMode===xt.Strict)return 0;return this.emitCodePoint(hf(this.result),this.consumed),this.errors&&(t!==Ne.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],a=(i&Ot.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=Ef(r,i,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===xt.Attribute&&(a===0||gf(s))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],a=(i&Ot.VALUE_LENGTH)>>14,a!==0){if(s===Ne.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==xt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&Ot.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~Ot.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case Ie.NamedEntity:return this.result!==0&&(this.decodeMode!==xt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ie.NumericDecimal:return this.emitNumericEntity(0,2);case Ie.NumericHex:return this.emitNumericEntity(0,3);case Ie.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ie.EntityStart:return 0}}}function Ef(e,t,n,r){const i=(t&Ot.BRANCH_LENGTH)>>7,a=t&Ot.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const o=r-a;return o<0||o>=i?-1:e[n+o]-1}let s=n,u=s+i-1;for(;s<=u;){const o=s+u>>>1,l=e[o];if(l<r)s=o+1;else if(l>r)u=o-1;else return e[o+i]}return-1}var O;(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/"})(O||(O={}));var Vt;(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"})(Vt||(Vt={}));var rt;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(rt||(rt={}));var w;(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"})(w||(w={}));var c;(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"})(c||(c={}));const kf=new Map([[w.A,c.A],[w.ADDRESS,c.ADDRESS],[w.ANNOTATION_XML,c.ANNOTATION_XML],[w.APPLET,c.APPLET],[w.AREA,c.AREA],[w.ARTICLE,c.ARTICLE],[w.ASIDE,c.ASIDE],[w.B,c.B],[w.BASE,c.BASE],[w.BASEFONT,c.BASEFONT],[w.BGSOUND,c.BGSOUND],[w.BIG,c.BIG],[w.BLOCKQUOTE,c.BLOCKQUOTE],[w.BODY,c.BODY],[w.BR,c.BR],[w.BUTTON,c.BUTTON],[w.CAPTION,c.CAPTION],[w.CENTER,c.CENTER],[w.CODE,c.CODE],[w.COL,c.COL],[w.COLGROUP,c.COLGROUP],[w.DD,c.DD],[w.DESC,c.DESC],[w.DETAILS,c.DETAILS],[w.DIALOG,c.DIALOG],[w.DIR,c.DIR],[w.DIV,c.DIV],[w.DL,c.DL],[w.DT,c.DT],[w.EM,c.EM],[w.EMBED,c.EMBED],[w.FIELDSET,c.FIELDSET],[w.FIGCAPTION,c.FIGCAPTION],[w.FIGURE,c.FIGURE],[w.FONT,c.FONT],[w.FOOTER,c.FOOTER],[w.FOREIGN_OBJECT,c.FOREIGN_OBJECT],[w.FORM,c.FORM],[w.FRAME,c.FRAME],[w.FRAMESET,c.FRAMESET],[w.H1,c.H1],[w.H2,c.H2],[w.H3,c.H3],[w.H4,c.H4],[w.H5,c.H5],[w.H6,c.H6],[w.HEAD,c.HEAD],[w.HEADER,c.HEADER],[w.HGROUP,c.HGROUP],[w.HR,c.HR],[w.HTML,c.HTML],[w.I,c.I],[w.IMG,c.IMG],[w.IMAGE,c.IMAGE],[w.INPUT,c.INPUT],[w.IFRAME,c.IFRAME],[w.KEYGEN,c.KEYGEN],[w.LABEL,c.LABEL],[w.LI,c.LI],[w.LINK,c.LINK],[w.LISTING,c.LISTING],[w.MAIN,c.MAIN],[w.MALIGNMARK,c.MALIGNMARK],[w.MARQUEE,c.MARQUEE],[w.MATH,c.MATH],[w.MENU,c.MENU],[w.META,c.META],[w.MGLYPH,c.MGLYPH],[w.MI,c.MI],[w.MO,c.MO],[w.MN,c.MN],[w.MS,c.MS],[w.MTEXT,c.MTEXT],[w.NAV,c.NAV],[w.NOBR,c.NOBR],[w.NOFRAMES,c.NOFRAMES],[w.NOEMBED,c.NOEMBED],[w.NOSCRIPT,c.NOSCRIPT],[w.OBJECT,c.OBJECT],[w.OL,c.OL],[w.OPTGROUP,c.OPTGROUP],[w.OPTION,c.OPTION],[w.P,c.P],[w.PARAM,c.PARAM],[w.PLAINTEXT,c.PLAINTEXT],[w.PRE,c.PRE],[w.RB,c.RB],[w.RP,c.RP],[w.RT,c.RT],[w.RTC,c.RTC],[w.RUBY,c.RUBY],[w.S,c.S],[w.SCRIPT,c.SCRIPT],[w.SEARCH,c.SEARCH],[w.SECTION,c.SECTION],[w.SELECT,c.SELECT],[w.SOURCE,c.SOURCE],[w.SMALL,c.SMALL],[w.SPAN,c.SPAN],[w.STRIKE,c.STRIKE],[w.STRONG,c.STRONG],[w.STYLE,c.STYLE],[w.SUB,c.SUB],[w.SUMMARY,c.SUMMARY],[w.SUP,c.SUP],[w.TABLE,c.TABLE],[w.TBODY,c.TBODY],[w.TEMPLATE,c.TEMPLATE],[w.TEXTAREA,c.TEXTAREA],[w.TFOOT,c.TFOOT],[w.TD,c.TD],[w.TH,c.TH],[w.THEAD,c.THEAD],[w.TITLE,c.TITLE],[w.TR,c.TR],[w.TRACK,c.TRACK],[w.TT,c.TT],[w.U,c.U],[w.UL,c.UL],[w.SVG,c.SVG],[w.VAR,c.VAR],[w.WBR,c.WBR],[w.XMP,c.XMP]]);function Tn(e){var t;return(t=kf.get(e))!==null&&t!==void 0?t:c.UNKNOWN}const P=c,Tf={[O.HTML]:new Set([P.ADDRESS,P.APPLET,P.AREA,P.ARTICLE,P.ASIDE,P.BASE,P.BASEFONT,P.BGSOUND,P.BLOCKQUOTE,P.BODY,P.BR,P.BUTTON,P.CAPTION,P.CENTER,P.COL,P.COLGROUP,P.DD,P.DETAILS,P.DIR,P.DIV,P.DL,P.DT,P.EMBED,P.FIELDSET,P.FIGCAPTION,P.FIGURE,P.FOOTER,P.FORM,P.FRAME,P.FRAMESET,P.H1,P.H2,P.H3,P.H4,P.H5,P.H6,P.HEAD,P.HEADER,P.HGROUP,P.HR,P.HTML,P.IFRAME,P.IMG,P.INPUT,P.LI,P.LINK,P.LISTING,P.MAIN,P.MARQUEE,P.MENU,P.META,P.NAV,P.NOEMBED,P.NOFRAMES,P.NOSCRIPT,P.OBJECT,P.OL,P.P,P.PARAM,P.PLAINTEXT,P.PRE,P.SCRIPT,P.SECTION,P.SELECT,P.SOURCE,P.STYLE,P.SUMMARY,P.TABLE,P.TBODY,P.TD,P.TEMPLATE,P.TEXTAREA,P.TFOOT,P.TH,P.THEAD,P.TITLE,P.TR,P.TRACK,P.UL,P.WBR,P.XMP]),[O.MATHML]:new Set([P.MI,P.MO,P.MN,P.MS,P.MTEXT,P.ANNOTATION_XML]),[O.SVG]:new Set([P.TITLE,P.FOREIGN_OBJECT,P.DESC]),[O.XLINK]:new Set,[O.XML]:new Set,[O.XMLNS]:new Set},ia=new Set([P.H1,P.H2,P.H3,P.H4,P.H5,P.H6]);w.STYLE,w.SCRIPT,w.XMP,w.IFRAME,w.NOEMBED,w.NOFRAMES,w.PLAINTEXT;var E;(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"})(E||(E={}));const Ae={DATA:E.DATA,RCDATA:E.RCDATA,RAWTEXT:E.RAWTEXT,SCRIPT_DATA:E.SCRIPT_DATA,PLAINTEXT:E.PLAINTEXT,CDATA_SECTION:E.CDATA_SECTION};function _f(e){return e>=g.DIGIT_0&&e<=g.DIGIT_9}function Mn(e){return e>=g.LATIN_CAPITAL_A&&e<=g.LATIN_CAPITAL_Z}function xf(e){return e>=g.LATIN_SMALL_A&&e<=g.LATIN_SMALL_Z}function Nt(e){return xf(e)||Mn(e)}function Zs(e){return Nt(e)||_f(e)}function gr(e){return e+32}function _l(e){return e===g.SPACE||e===g.LINE_FEED||e===g.TABULATION||e===g.FORM_FEED}function Js(e){return _l(e)||e===g.SOLIDUS||e===g.GREATER_THAN_SIGN}function yf(e){return e===g.NULL?v.nullCharacterReference:e>1114111?v.characterReferenceOutsideUnicodeRange:bl(e)?v.surrogateCharacterReference:kl(e)?v.noncharacterCharacterReference:El(e)||e===g.CARRIAGE_RETURN?v.controlCharacterReference:null}class Af{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=E.DATA,this.returnState=E.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new lf(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new bf(cf,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(v.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(v.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=yf(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}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;const 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,n,r){this.active=!0,this.preprocessor.write(t,n),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 n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:re.START_TAG,tagName:"",tagID:c.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:re.END_TAG,tagName:"",tagID:c.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:re.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:re.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(Tl(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const i=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(v.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(){const t=this.currentToken;this.prepareToken(t),t.tagID=Tn(t.tagName),t.type===re.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(v.endTagWithAttributes),t.selfClosing&&this._err(v.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 re.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case re.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case re.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:re.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=_l(t)?re.WHITESPACE_CHARACTER:t===g.NULL?re.NULL_CHARACTER:re.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(re.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=E.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?xt.Attribute:xt.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===E.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===E.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===E.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case E.DATA:{this._stateData(t);break}case E.RCDATA:{this._stateRcdata(t);break}case E.RAWTEXT:{this._stateRawtext(t);break}case E.SCRIPT_DATA:{this._stateScriptData(t);break}case E.PLAINTEXT:{this._statePlaintext(t);break}case E.TAG_OPEN:{this._stateTagOpen(t);break}case E.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case E.TAG_NAME:{this._stateTagName(t);break}case E.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case E.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case E.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case E.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case E.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case E.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case E.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case E.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case E.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case E.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case E.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case E.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case E.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case E.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case E.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case E.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case E.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case E.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case E.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case E.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case E.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case E.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case E.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case E.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case E.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case E.BOGUS_COMMENT:{this._stateBogusComment(t);break}case E.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case E.COMMENT_START:{this._stateCommentStart(t);break}case E.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case E.COMMENT:{this._stateComment(t);break}case E.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case E.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case E.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case E.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case E.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case E.COMMENT_END:{this._stateCommentEnd(t);break}case E.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case E.DOCTYPE:{this._stateDoctype(t);break}case E.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case E.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case E.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case E.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case E.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case E.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case E.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case E.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case E.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case E.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case E.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case E.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case E.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case E.CDATA_SECTION:{this._stateCdataSection(t);break}case E.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case E.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case E.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case E.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case g.LESS_THAN_SIGN:{this.state=E.TAG_OPEN;break}case g.AMPERSAND:{this._startCharacterReference();break}case g.NULL:{this._err(v.unexpectedNullCharacter),this._emitCodePoint(t);break}case g.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case g.AMPERSAND:{this._startCharacterReference();break}case g.LESS_THAN_SIGN:{this.state=E.RCDATA_LESS_THAN_SIGN;break}case g.NULL:{this._err(v.unexpectedNullCharacter),this._emitChars(Te);break}case g.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case g.LESS_THAN_SIGN:{this.state=E.RAWTEXT_LESS_THAN_SIGN;break}case g.NULL:{this._err(v.unexpectedNullCharacter),this._emitChars(Te);break}case g.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case g.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_LESS_THAN_SIGN;break}case g.NULL:{this._err(v.unexpectedNullCharacter),this._emitChars(Te);break}case g.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case g.NULL:{this._err(v.unexpectedNullCharacter),this._emitChars(Te);break}case g.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Nt(t))this._createStartTagToken(),this.state=E.TAG_NAME,this._stateTagName(t);else switch(t){case g.EXCLAMATION_MARK:{this.state=E.MARKUP_DECLARATION_OPEN;break}case g.SOLIDUS:{this.state=E.END_TAG_OPEN;break}case g.QUESTION_MARK:{this._err(v.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=E.BOGUS_COMMENT,this._stateBogusComment(t);break}case g.EOF:{this._err(v.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(v.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=E.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Nt(t))this._createEndTagToken(),this.state=E.TAG_NAME,this._stateTagName(t);else switch(t){case g.GREATER_THAN_SIGN:{this._err(v.missingEndTagName),this.state=E.DATA;break}case g.EOF:{this._err(v.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(v.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=E.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this.state=E.BEFORE_ATTRIBUTE_NAME;break}case g.SOLIDUS:{this.state=E.SELF_CLOSING_START_TAG;break}case g.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentTagToken();break}case g.NULL:{this._err(v.unexpectedNullCharacter),n.tagName+=Te;break}case g.EOF:{this._err(v.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Mn(t)?gr(t):t)}}_stateRcdataLessThanSign(t){t===g.SOLIDUS?this.state=E.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=E.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Nt(t)?(this.state=E.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=E.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=E.BEFORE_ATTRIBUTE_NAME,!1;case g.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=E.SELF_CLOSING_START_TAG,!1;case g.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=E.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=E.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===g.SOLIDUS?this.state=E.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=E.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Nt(t)?(this.state=E.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=E.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=E.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case g.SOLIDUS:{this.state=E.SCRIPT_DATA_END_TAG_OPEN;break}case g.EXCLAMATION_MARK:{this.state=E.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=E.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Nt(t)?(this.state=E.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=E.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=E.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===g.HYPHEN_MINUS?(this.state=E.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=E.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===g.HYPHEN_MINUS?(this.state=E.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=E.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case g.HYPHEN_MINUS:{this.state=E.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case g.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case g.NULL:{this._err(v.unexpectedNullCharacter),this._emitChars(Te);break}case g.EOF:{this._err(v.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case g.HYPHEN_MINUS:{this.state=E.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case g.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case g.NULL:{this._err(v.unexpectedNullCharacter),this.state=E.SCRIPT_DATA_ESCAPED,this._emitChars(Te);break}case g.EOF:{this._err(v.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=E.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case g.HYPHEN_MINUS:{this._emitChars("-");break}case g.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case g.GREATER_THAN_SIGN:{this.state=E.SCRIPT_DATA,this._emitChars(">");break}case g.NULL:{this._err(v.unexpectedNullCharacter),this.state=E.SCRIPT_DATA_ESCAPED,this._emitChars(Te);break}case g.EOF:{this._err(v.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=E.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===g.SOLIDUS?this.state=E.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Nt(t)?(this._emitChars("<"),this.state=E.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=E.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Nt(t)?(this.state=E.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=E.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=E.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(je.SCRIPT,!1)&&Js(this.preprocessor.peek(je.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<je.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=E.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case g.HYPHEN_MINUS:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case g.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case g.NULL:{this._err(v.unexpectedNullCharacter),this._emitChars(Te);break}case g.EOF:{this._err(v.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case g.HYPHEN_MINUS:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case g.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case g.NULL:{this._err(v.unexpectedNullCharacter),this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Te);break}case g.EOF:{this._err(v.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case g.HYPHEN_MINUS:{this._emitChars("-");break}case g.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case g.GREATER_THAN_SIGN:{this.state=E.SCRIPT_DATA,this._emitChars(">");break}case g.NULL:{this._err(v.unexpectedNullCharacter),this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Te);break}case g.EOF:{this._err(v.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===g.SOLIDUS?(this.state=E.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(je.SCRIPT,!1)&&Js(this.preprocessor.peek(je.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<je.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=E.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.SOLIDUS:case g.GREATER_THAN_SIGN:case g.EOF:{this.state=E.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case g.EQUALS_SIGN:{this._err(v.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=E.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=E.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:case g.SOLIDUS:case g.GREATER_THAN_SIGN:case g.EOF:{this._leaveAttrName(),this.state=E.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case g.EQUALS_SIGN:{this._leaveAttrName(),this.state=E.BEFORE_ATTRIBUTE_VALUE;break}case g.QUOTATION_MARK:case g.APOSTROPHE:case g.LESS_THAN_SIGN:{this._err(v.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case g.NULL:{this._err(v.unexpectedNullCharacter),this.currentAttr.name+=Te;break}default:this.currentAttr.name+=String.fromCodePoint(Mn(t)?gr(t):t)}}_stateAfterAttributeName(t){switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.SOLIDUS:{this.state=E.SELF_CLOSING_START_TAG;break}case g.EQUALS_SIGN:{this.state=E.BEFORE_ATTRIBUTE_VALUE;break}case g.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentTagToken();break}case g.EOF:{this._err(v.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=E.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.QUOTATION_MARK:{this.state=E.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case g.APOSTROPHE:{this.state=E.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case g.GREATER_THAN_SIGN:{this._err(v.missingAttributeValue),this.state=E.DATA,this.emitCurrentTagToken();break}default:this.state=E.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case g.QUOTATION_MARK:{this.state=E.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case g.AMPERSAND:{this._startCharacterReference();break}case g.NULL:{this._err(v.unexpectedNullCharacter),this.currentAttr.value+=Te;break}case g.EOF:{this._err(v.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case g.APOSTROPHE:{this.state=E.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case g.AMPERSAND:{this._startCharacterReference();break}case g.NULL:{this._err(v.unexpectedNullCharacter),this.currentAttr.value+=Te;break}case g.EOF:{this._err(v.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this._leaveAttrValue(),this.state=E.BEFORE_ATTRIBUTE_NAME;break}case g.AMPERSAND:{this._startCharacterReference();break}case g.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=E.DATA,this.emitCurrentTagToken();break}case g.NULL:{this._err(v.unexpectedNullCharacter),this.currentAttr.value+=Te;break}case g.QUOTATION_MARK:case g.APOSTROPHE:case g.LESS_THAN_SIGN:case g.EQUALS_SIGN:case g.GRAVE_ACCENT:{this._err(v.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case g.EOF:{this._err(v.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this._leaveAttrValue(),this.state=E.BEFORE_ATTRIBUTE_NAME;break}case g.SOLIDUS:{this._leaveAttrValue(),this.state=E.SELF_CLOSING_START_TAG;break}case g.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=E.DATA,this.emitCurrentTagToken();break}case g.EOF:{this._err(v.eofInTag),this._emitEOFToken();break}default:this._err(v.missingWhitespaceBetweenAttributes),this.state=E.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case g.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=E.DATA,this.emitCurrentTagToken();break}case g.EOF:{this._err(v.eofInTag),this._emitEOFToken();break}default:this._err(v.unexpectedSolidusInTag),this.state=E.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case g.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentComment(n);break}case g.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case g.NULL:{this._err(v.unexpectedNullCharacter),n.data+=Te;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(je.DASH_DASH,!0)?(this._createCommentToken(je.DASH_DASH.length+1),this.state=E.COMMENT_START):this._consumeSequenceIfMatch(je.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(je.DOCTYPE.length+1),this.state=E.DOCTYPE):this._consumeSequenceIfMatch(je.CDATA_START,!0)?this.inForeignNode?this.state=E.CDATA_SECTION:(this._err(v.cdataInHtmlContent),this._createCommentToken(je.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=E.BOGUS_COMMENT):this._ensureHibernation()||(this._err(v.incorrectlyOpenedComment),this._createCommentToken(2),this.state=E.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case g.HYPHEN_MINUS:{this.state=E.COMMENT_START_DASH;break}case g.GREATER_THAN_SIGN:{this._err(v.abruptClosingOfEmptyComment),this.state=E.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=E.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case g.HYPHEN_MINUS:{this.state=E.COMMENT_END;break}case g.GREATER_THAN_SIGN:{this._err(v.abruptClosingOfEmptyComment),this.state=E.DATA,this.emitCurrentComment(n);break}case g.EOF:{this._err(v.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=E.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case g.HYPHEN_MINUS:{this.state=E.COMMENT_END_DASH;break}case g.LESS_THAN_SIGN:{n.data+="<",this.state=E.COMMENT_LESS_THAN_SIGN;break}case g.NULL:{this._err(v.unexpectedNullCharacter),n.data+=Te;break}case g.EOF:{this._err(v.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case g.EXCLAMATION_MARK:{n.data+="!",this.state=E.COMMENT_LESS_THAN_SIGN_BANG;break}case g.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=E.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===g.HYPHEN_MINUS?this.state=E.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=E.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===g.HYPHEN_MINUS?this.state=E.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=E.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==g.GREATER_THAN_SIGN&&t!==g.EOF&&this._err(v.nestedComment),this.state=E.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case g.HYPHEN_MINUS:{this.state=E.COMMENT_END;break}case g.EOF:{this._err(v.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=E.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case g.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentComment(n);break}case g.EXCLAMATION_MARK:{this.state=E.COMMENT_END_BANG;break}case g.HYPHEN_MINUS:{n.data+="-";break}case g.EOF:{this._err(v.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=E.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case g.HYPHEN_MINUS:{n.data+="--!",this.state=E.COMMENT_END_DASH;break}case g.GREATER_THAN_SIGN:{this._err(v.incorrectlyClosedComment),this.state=E.DATA,this.emitCurrentComment(n);break}case g.EOF:{this._err(v.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=E.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this.state=E.BEFORE_DOCTYPE_NAME;break}case g.GREATER_THAN_SIGN:{this.state=E.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case g.EOF:{this._err(v.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.missingWhitespaceBeforeDoctypeName),this.state=E.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Mn(t))this._createDoctypeToken(String.fromCharCode(gr(t))),this.state=E.DOCTYPE_NAME;else switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.NULL:{this._err(v.unexpectedNullCharacter),this._createDoctypeToken(Te),this.state=E.DOCTYPE_NAME;break}case g.GREATER_THAN_SIGN:{this._err(v.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case g.EOF:{this._err(v.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=E.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this.state=E.AFTER_DOCTYPE_NAME;break}case g.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentDoctype(n);break}case g.NULL:{this._err(v.unexpectedNullCharacter),n.name+=Te;break}case g.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Mn(t)?gr(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentDoctype(n);break}case g.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(je.PUBLIC,!1)?this.state=E.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(je.SYSTEM,!1)?this.state=E.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(v.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this.state=E.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case g.QUOTATION_MARK:{this._err(v.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=E.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case g.APOSTROPHE:{this._err(v.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=E.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case g.GREATER_THAN_SIGN:{this._err(v.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=E.DATA,this.emitCurrentDoctype(n);break}case g.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.QUOTATION_MARK:{n.publicId="",this.state=E.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case g.APOSTROPHE:{n.publicId="",this.state=E.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case g.GREATER_THAN_SIGN:{this._err(v.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=E.DATA,this.emitCurrentDoctype(n);break}case g.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case g.QUOTATION_MARK:{this.state=E.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case g.NULL:{this._err(v.unexpectedNullCharacter),n.publicId+=Te;break}case g.GREATER_THAN_SIGN:{this._err(v.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case g.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case g.APOSTROPHE:{this.state=E.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case g.NULL:{this._err(v.unexpectedNullCharacter),n.publicId+=Te;break}case g.GREATER_THAN_SIGN:{this._err(v.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case g.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this.state=E.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case g.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentDoctype(n);break}case g.QUOTATION_MARK:{this._err(v.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case g.APOSTROPHE:{this._err(v.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case g.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=E.DATA;break}case g.QUOTATION_MARK:{n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case g.APOSTROPHE:{n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case g.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this.state=E.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case g.QUOTATION_MARK:{this._err(v.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case g.APOSTROPHE:{this._err(v.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case g.GREATER_THAN_SIGN:{this._err(v.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.DATA,this.emitCurrentDoctype(n);break}case g.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.QUOTATION_MARK:{n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case g.APOSTROPHE:{n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case g.GREATER_THAN_SIGN:{this._err(v.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.DATA,this.emitCurrentDoctype(n);break}case g.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case g.QUOTATION_MARK:{this.state=E.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case g.NULL:{this._err(v.unexpectedNullCharacter),n.systemId+=Te;break}case g.GREATER_THAN_SIGN:{this._err(v.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case g.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case g.APOSTROPHE:{this.state=E.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case g.NULL:{this._err(v.unexpectedNullCharacter),n.systemId+=Te;break}case g.GREATER_THAN_SIGN:{this._err(v.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case g.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=E.DATA;break}case g.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case g.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=E.DATA;break}case g.NULL:{this._err(v.unexpectedNullCharacter);break}case g.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case g.RIGHT_SQUARE_BRACKET:{this.state=E.CDATA_SECTION_BRACKET;break}case g.EOF:{this._err(v.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===g.RIGHT_SQUARE_BRACKET?this.state=E.CDATA_SECTION_END:(this._emitChars("]"),this.state=E.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case g.GREATER_THAN_SIGN:{this.state=E.DATA;break}case g.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=E.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(g.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Zs(this.preprocessor.peek(1))?E.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Zs(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===g.SEMICOLON&&this._err(v.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const xl=new Set([c.DD,c.DT,c.LI,c.OPTGROUP,c.OPTION,c.P,c.RB,c.RP,c.RT,c.RTC]),eu=new Set([...xl,c.CAPTION,c.COLGROUP,c.TBODY,c.TD,c.TFOOT,c.TH,c.THEAD,c.TR]),zr=new Set([c.APPLET,c.CAPTION,c.HTML,c.MARQUEE,c.OBJECT,c.TABLE,c.TD,c.TEMPLATE,c.TH]),Cf=new Set([...zr,c.OL,c.UL]),wf=new Set([...zr,c.BUTTON]),tu=new Set([c.ANNOTATION_XML,c.MI,c.MN,c.MO,c.MS,c.MTEXT]),nu=new Set([c.DESC,c.FOREIGN_OBJECT,c.TITLE]),Sf=new Set([c.TR,c.TEMPLATE,c.HTML]),If=new Set([c.TBODY,c.TFOOT,c.THEAD,c.TEMPLATE,c.HTML]),Nf=new Set([c.TABLE,c.TEMPLATE,c.HTML]),vf=new Set([c.TD,c.TH]);class Lf{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=c.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===c.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===O.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==O.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(ia,O.HTML)}popUntilTableCellPopped(){this.popUntilPopped(vf,O.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(Nf,O.HTML)}clearBackToTableBodyContext(){this.clearBackTo(If,O.HTML)}clearBackToTableRowContext(){this.clearBackTo(Sf,O.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===c.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===c.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case O.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case O.SVG:{if(nu.has(i))return!1;break}case O.MATHML:{if(tu.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,zr)}hasInListItemScope(t){return this.hasInDynamicScope(t,Cf)}hasInButtonScope(t){return this.hasInDynamicScope(t,wf)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case O.HTML:{if(ia.has(n))return!0;if(zr.has(n))return!1;break}case O.SVG:{if(nu.has(n))return!1;break}case O.MATHML:{if(tu.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===O.HTML)switch(this.tagIDs[n]){case t:return!0;case c.TABLE:case c.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===O.HTML)switch(this.tagIDs[t]){case c.TBODY:case c.THEAD:case c.TFOOT:return!0;case c.TABLE:case c.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===O.HTML)switch(this.tagIDs[n]){case t:return!0;case c.OPTION:case c.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&xl.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&eu.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&eu.has(this.currentTagId);)this.pop()}}const Ci=3;var ft;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ft||(ft={}));const ru={type:ft.Marker};class Rf{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let u=0;u<this.entries.length;u++){const o=this.entries[u];if(o.type===ft.Marker)break;const{element:l}=o;if(this.treeAdapter.getTagName(l)===a&&this.treeAdapter.getNamespaceURI(l)===s){const h=this.treeAdapter.getAttrList(l);h.length===i&&r.push({idx:u,attrs:h})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<Ci)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<Ci)return;const i=new Map(n.map(s=>[s.name,s.value]));let a=0;for(let s=0;s<r.length;s++){const u=r[s];u.attrs.every(o=>i.get(o.name)===o.value)&&(a+=1,a>=Ci&&this.entries.splice(u.idx,1))}}insertMarker(){this.entries.unshift(ru)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:ft.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:ft.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(ru);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===ft.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===ft.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===ft.Element&&n.element===t)}}const vt={createDocument(){return{nodeName:"#document",mode:rt.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,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,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};vt.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(vt.isTextNode(n)){n.value+=t;return}}vt.appendChild(e,vt.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&vt.isTextNode(r)?r.value+=t:vt.insertBefore(e,vt.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.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}}},yl="html",Of="about:legacy-compat",Df="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Al=["+//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//"],Pf=[...Al,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Mf=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Cl=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Bf=[...Cl,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function iu(e,t){return t.some(n=>e.startsWith(n))}function Ff(e){return e.name===yl&&e.publicId===null&&(e.systemId===null||e.systemId===Of)}function Hf(e){if(e.name!==yl)return rt.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===Df)return rt.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),Mf.has(n))return rt.QUIRKS;let r=t===null?Pf:Al;if(iu(n,r))return rt.QUIRKS;if(r=t===null?Cl:Bf,iu(n,r))return rt.LIMITED_QUIRKS}return rt.NO_QUIRKS}const au={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Uf="definitionurl",zf="definitionURL",$f=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])),Yf=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:O.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:O.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:O.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:O.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:O.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:O.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:O.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:O.XML}],["xml:space",{prefix:"xml",name:"space",namespace:O.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:O.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:O.XMLNS}]]),qf=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])),jf=new Set([c.B,c.BIG,c.BLOCKQUOTE,c.BODY,c.BR,c.CENTER,c.CODE,c.DD,c.DIV,c.DL,c.DT,c.EM,c.EMBED,c.H1,c.H2,c.H3,c.H4,c.H5,c.H6,c.HEAD,c.HR,c.I,c.IMG,c.LI,c.LISTING,c.MENU,c.META,c.NOBR,c.OL,c.P,c.PRE,c.RUBY,c.S,c.SMALL,c.SPAN,c.STRONG,c.STRIKE,c.SUB,c.SUP,c.TABLE,c.TT,c.U,c.UL,c.VAR]);function Vf(e){const t=e.tagID;return t===c.FONT&&e.attrs.some(({name:r})=>r===Vt.COLOR||r===Vt.SIZE||r===Vt.FACE)||jf.has(t)}function wl(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Uf){e.attrs[t].name=zf;break}}function Sl(e){for(let t=0;t<e.attrs.length;t++){const n=$f.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Ha(e){for(let t=0;t<e.attrs.length;t++){const n=Yf.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function Wf(e){const t=qf.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Tn(e.tagName))}function Gf(e,t){return t===O.MATHML&&(e===c.MI||e===c.MO||e===c.MN||e===c.MS||e===c.MTEXT)}function Qf(e,t,n){if(t===O.MATHML&&e===c.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Vt.ENCODING){const i=n[r].value.toLowerCase();return i===au.TEXT_HTML||i===au.APPLICATION_XML}}return t===O.SVG&&(e===c.FOREIGN_OBJECT||e===c.DESC||e===c.TITLE)}function Kf(e,t,n,r){return(!r||r===O.HTML)&&Qf(e,t,n)||(!r||r===O.MATHML)&&Gf(e,t)}const Xf="hidden",Zf=8,Jf=3;var T;(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"})(T||(T={}));const ep={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Il=new Set([c.TABLE,c.TBODY,c.TFOOT,c.THEAD,c.TR]),su={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:vt,onParseError:null};class uu{constructor(t,n,r=null,i=null){this.fragmentContext=r,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=T.INITIAL,this.originalInsertionMode=T.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={...su,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new Af(this.options,this),this.activeFormattingElements=new Rf(this.treeAdapter),this.fragmentContextID=r?Tn(this.treeAdapter.getTagName(r)):c.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new Lf(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...su,...n};t??(t=r.treeAdapter.createElement(w.TEMPLATE,O.HTML,[]));const i=r.treeAdapter.createElement("documentmock",O.HTML,[]),a=new this(r,i,t);return a.fragmentContextID===c.TEMPLATE&&a.tmplInsertionModeStack.unshift(T.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var i;if(!this.onParseError)return;const a=(i=t.location)!==null&&i!==void 0?i:ep,s={code:n,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(s)}onItemPush(t,n,r){var i,a;(a=(i=this.treeAdapter).onItemPush)===null||a===void 0||a.call(i,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===O.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,O.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=T.TEXT}switchToPlaintextParsing(){this.insertionMode=T.TEXT,this.originalInsertionMode=T.IN_BODY,this.tokenizer.state=Ae.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)===w.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==O.HTML))switch(this.fragmentContextID){case c.TITLE:case c.TEXTAREA:{this.tokenizer.state=Ae.RCDATA;break}case c.STYLE:case c.XMP:case c.IFRAME:case c.NOEMBED:case c.NOFRAMES:case c.NOSCRIPT:{this.tokenizer.state=Ae.RAWTEXT;break}case c.SCRIPT:{this.tokenizer.state=Ae.SCRIPT_DATA;break}case c.PLAINTEXT:{this.tokenizer.state=Ae.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(u=>this.treeAdapter.isDocumentTypeNode(u));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,O.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,O.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(w.HTML,O.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,c.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),a=r?i.lastIndexOf(r):i.length,s=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:o,endCol:l,endOffset:h}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:o,endCol:l,endOffset:h})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),a=n.type===re.END_TAG&&i===n.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,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===c.SVG&&this.treeAdapter.getTagName(n)===w.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===O.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===c.MGLYPH||t.tagID===c.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,O.HTML)}_processToken(t){switch(t.type){case re.CHARACTER:{this.onCharacter(t);break}case re.NULL_CHARACTER:{this.onNullCharacter(t);break}case re.COMMENT:{this.onComment(t);break}case re.DOCTYPE:{this.onDoctype(t);break}case re.START_TAG:{this._processStartTag(t);break}case re.END_TAG:{this.onEndTag(t);break}case re.EOF:{this.onEof(t);break}case re.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return Kf(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===ft.Marker||this.openElements.contains(i.element)),r=n===-1?t-1:n-1;for(let i=r;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=T.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(c.P),this.openElements.popUntilTagNamePopped(c.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case c.TR:{this.insertionMode=T.IN_ROW;return}case c.TBODY:case c.THEAD:case c.TFOOT:{this.insertionMode=T.IN_TABLE_BODY;return}case c.CAPTION:{this.insertionMode=T.IN_CAPTION;return}case c.COLGROUP:{this.insertionMode=T.IN_COLUMN_GROUP;return}case c.TABLE:{this.insertionMode=T.IN_TABLE;return}case c.BODY:{this.insertionMode=T.IN_BODY;return}case c.FRAMESET:{this.insertionMode=T.IN_FRAMESET;return}case c.SELECT:{this._resetInsertionModeForSelect(t);return}case c.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case c.HTML:{this.insertionMode=this.headElement?T.AFTER_HEAD:T.BEFORE_HEAD;return}case c.TD:case c.TH:{if(t>0){this.insertionMode=T.IN_CELL;return}break}case c.HEAD:{if(t>0){this.insertionMode=T.IN_HEAD;return}break}}this.insertionMode=T.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===c.TEMPLATE)break;if(r===c.TABLE){this.insertionMode=T.IN_SELECT_IN_TABLE;return}}this.insertionMode=T.IN_SELECT}_isElementCausesFosterParenting(t){return Il.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case c.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===O.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case c.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return Tf[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){v1(this,t);return}switch(this.insertionMode){case T.INITIAL:{Nn(this,t);break}case T.BEFORE_HTML:{Un(this,t);break}case T.BEFORE_HEAD:{zn(this,t);break}case T.IN_HEAD:{$n(this,t);break}case T.IN_HEAD_NO_SCRIPT:{Yn(this,t);break}case T.AFTER_HEAD:{qn(this,t);break}case T.IN_BODY:case T.IN_CAPTION:case T.IN_CELL:case T.IN_TEMPLATE:{vl(this,t);break}case T.TEXT:case T.IN_SELECT:case T.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case T.IN_TABLE:case T.IN_TABLE_BODY:case T.IN_ROW:{wi(this,t);break}case T.IN_TABLE_TEXT:{Ml(this,t);break}case T.IN_COLUMN_GROUP:{$r(this,t);break}case T.AFTER_BODY:{Yr(this,t);break}case T.AFTER_AFTER_BODY:{vr(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){N1(this,t);return}switch(this.insertionMode){case T.INITIAL:{Nn(this,t);break}case T.BEFORE_HTML:{Un(this,t);break}case T.BEFORE_HEAD:{zn(this,t);break}case T.IN_HEAD:{$n(this,t);break}case T.IN_HEAD_NO_SCRIPT:{Yn(this,t);break}case T.AFTER_HEAD:{qn(this,t);break}case T.TEXT:{this._insertCharacters(t);break}case T.IN_TABLE:case T.IN_TABLE_BODY:case T.IN_ROW:{wi(this,t);break}case T.IN_COLUMN_GROUP:{$r(this,t);break}case T.AFTER_BODY:{Yr(this,t);break}case T.AFTER_AFTER_BODY:{vr(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){aa(this,t);return}switch(this.insertionMode){case T.INITIAL:case T.BEFORE_HTML:case T.BEFORE_HEAD:case T.IN_HEAD:case T.IN_HEAD_NO_SCRIPT:case T.AFTER_HEAD:case T.IN_BODY:case T.IN_TABLE:case T.IN_CAPTION:case T.IN_COLUMN_GROUP:case T.IN_TABLE_BODY:case T.IN_ROW:case T.IN_CELL:case T.IN_SELECT:case T.IN_SELECT_IN_TABLE:case T.IN_TEMPLATE:case T.IN_FRAMESET:case T.AFTER_FRAMESET:{aa(this,t);break}case T.IN_TABLE_TEXT:{vn(this,t);break}case T.AFTER_BODY:{up(this,t);break}case T.AFTER_AFTER_BODY:case T.AFTER_AFTER_FRAMESET:{op(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case T.INITIAL:{lp(this,t);break}case T.BEFORE_HEAD:case T.IN_HEAD:case T.IN_HEAD_NO_SCRIPT:case T.AFTER_HEAD:{this._err(t,v.misplacedDoctype);break}case T.IN_TABLE_TEXT:{vn(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,v.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?L1(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case T.INITIAL:{Nn(this,t);break}case T.BEFORE_HTML:{cp(this,t);break}case T.BEFORE_HEAD:{hp(this,t);break}case T.IN_HEAD:{ct(this,t);break}case T.IN_HEAD_NO_SCRIPT:{mp(this,t);break}case T.AFTER_HEAD:{bp(this,t);break}case T.IN_BODY:{Be(this,t);break}case T.IN_TABLE:{fn(this,t);break}case T.IN_TABLE_TEXT:{vn(this,t);break}case T.IN_CAPTION:{f1(this,t);break}case T.IN_COLUMN_GROUP:{$a(this,t);break}case T.IN_TABLE_BODY:{ui(this,t);break}case T.IN_ROW:{oi(this,t);break}case T.IN_CELL:{g1(this,t);break}case T.IN_SELECT:{Hl(this,t);break}case T.IN_SELECT_IN_TABLE:{E1(this,t);break}case T.IN_TEMPLATE:{T1(this,t);break}case T.AFTER_BODY:{x1(this,t);break}case T.IN_FRAMESET:{y1(this,t);break}case T.AFTER_FRAMESET:{C1(this,t);break}case T.AFTER_AFTER_BODY:{S1(this,t);break}case T.AFTER_AFTER_FRAMESET:{I1(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?R1(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case T.INITIAL:{Nn(this,t);break}case T.BEFORE_HTML:{dp(this,t);break}case T.BEFORE_HEAD:{fp(this,t);break}case T.IN_HEAD:{pp(this,t);break}case T.IN_HEAD_NO_SCRIPT:{gp(this,t);break}case T.AFTER_HEAD:{Ep(this,t);break}case T.IN_BODY:{si(this,t);break}case T.TEXT:{r1(this,t);break}case T.IN_TABLE:{Zn(this,t);break}case T.IN_TABLE_TEXT:{vn(this,t);break}case T.IN_CAPTION:{p1(this,t);break}case T.IN_COLUMN_GROUP:{m1(this,t);break}case T.IN_TABLE_BODY:{sa(this,t);break}case T.IN_ROW:{Fl(this,t);break}case T.IN_CELL:{b1(this,t);break}case T.IN_SELECT:{Ul(this,t);break}case T.IN_SELECT_IN_TABLE:{k1(this,t);break}case T.IN_TEMPLATE:{_1(this,t);break}case T.AFTER_BODY:{$l(this,t);break}case T.IN_FRAMESET:{A1(this,t);break}case T.AFTER_FRAMESET:{w1(this,t);break}case T.AFTER_AFTER_BODY:{vr(this,t);break}}}onEof(t){switch(this.insertionMode){case T.INITIAL:{Nn(this,t);break}case T.BEFORE_HTML:{Un(this,t);break}case T.BEFORE_HEAD:{zn(this,t);break}case T.IN_HEAD:{$n(this,t);break}case T.IN_HEAD_NO_SCRIPT:{Yn(this,t);break}case T.AFTER_HEAD:{qn(this,t);break}case T.IN_BODY:case T.IN_TABLE:case T.IN_CAPTION:case T.IN_COLUMN_GROUP:case T.IN_TABLE_BODY:case T.IN_ROW:case T.IN_CELL:case T.IN_SELECT:case T.IN_SELECT_IN_TABLE:{Dl(this,t);break}case T.TEXT:{i1(this,t);break}case T.IN_TABLE_TEXT:{vn(this,t);break}case T.IN_TEMPLATE:{zl(this,t);break}case T.AFTER_BODY:case T.IN_FRAMESET:case T.AFTER_FRAMESET:case T.AFTER_AFTER_BODY:case T.AFTER_AFTER_FRAMESET:{za(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===g.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 T.IN_HEAD:case T.IN_HEAD_NO_SCRIPT:case T.AFTER_HEAD:case T.TEXT:case T.IN_COLUMN_GROUP:case T.IN_SELECT:case T.IN_SELECT_IN_TABLE:case T.IN_FRAMESET:case T.AFTER_FRAMESET:{this._insertCharacters(t);break}case T.IN_BODY:case T.IN_CAPTION:case T.IN_CELL:case T.IN_TEMPLATE:case T.AFTER_BODY:case T.AFTER_AFTER_BODY:case T.AFTER_AFTER_FRAMESET:{Nl(this,t);break}case T.IN_TABLE:case T.IN_TABLE_BODY:case T.IN_ROW:{wi(this,t);break}case T.IN_TABLE_TEXT:{Pl(this,t);break}}}}function tp(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Ol(e,t),n}function np(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function rp(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);const u=e.activeFormattingElements.getElementEntry(s),o=u&&a>=Jf;!u||o?(o&&e.activeFormattingElements.removeEntry(u),e.openElements.remove(s)):(s=ip(e,u),r===t&&(e.activeFormattingElements.bookmark=u),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function ip(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function ap(e,t,n){const r=e.treeAdapter.getTagName(t),i=Tn(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===c.TEMPLATE&&a===O.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function sp(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function Ua(e,t){for(let n=0;n<Zf;n++){const r=tp(e,t);if(!r)break;const i=np(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;const a=rp(e,i,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),s&&ap(e,s,a),sp(e,i,r)}}function aa(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function up(e,t){e._appendCommentNode(t,e.openElements.items[0])}function op(e,t){e._appendCommentNode(t,e.document)}function za(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function lp(e,t){e._setDocumentType(t);const n=t.forceQuirks?rt.QUIRKS:Hf(t);Ff(t)||e._err(t,v.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=T.BEFORE_HTML}function Nn(e,t){e._err(t,v.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,rt.QUIRKS),e.insertionMode=T.BEFORE_HTML,e._processToken(t)}function cp(e,t){t.tagID===c.HTML?(e._insertElement(t,O.HTML),e.insertionMode=T.BEFORE_HEAD):Un(e,t)}function dp(e,t){const n=t.tagID;(n===c.HTML||n===c.HEAD||n===c.BODY||n===c.BR)&&Un(e,t)}function Un(e,t){e._insertFakeRootElement(),e.insertionMode=T.BEFORE_HEAD,e._processToken(t)}function hp(e,t){switch(t.tagID){case c.HTML:{Be(e,t);break}case c.HEAD:{e._insertElement(t,O.HTML),e.headElement=e.openElements.current,e.insertionMode=T.IN_HEAD;break}default:zn(e,t)}}function fp(e,t){const n=t.tagID;n===c.HEAD||n===c.BODY||n===c.HTML||n===c.BR?zn(e,t):e._err(t,v.endTagWithoutMatchingOpenElement)}function zn(e,t){e._insertFakeElement(w.HEAD,c.HEAD),e.headElement=e.openElements.current,e.insertionMode=T.IN_HEAD,e._processToken(t)}function ct(e,t){switch(t.tagID){case c.HTML:{Be(e,t);break}case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:{e._appendElement(t,O.HTML),t.ackSelfClosing=!0;break}case c.TITLE:{e._switchToTextParsing(t,Ae.RCDATA);break}case c.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Ae.RAWTEXT):(e._insertElement(t,O.HTML),e.insertionMode=T.IN_HEAD_NO_SCRIPT);break}case c.NOFRAMES:case c.STYLE:{e._switchToTextParsing(t,Ae.RAWTEXT);break}case c.SCRIPT:{e._switchToTextParsing(t,Ae.SCRIPT_DATA);break}case c.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=T.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(T.IN_TEMPLATE);break}case c.HEAD:{e._err(t,v.misplacedStartTagForHeadElement);break}default:$n(e,t)}}function pp(e,t){switch(t.tagID){case c.HEAD:{e.openElements.pop(),e.insertionMode=T.AFTER_HEAD;break}case c.BODY:case c.BR:case c.HTML:{$n(e,t);break}case c.TEMPLATE:{Zt(e,t);break}default:e._err(t,v.endTagWithoutMatchingOpenElement)}}function Zt(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==c.TEMPLATE&&e._err(t,v.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(c.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,v.endTagWithoutMatchingOpenElement)}function $n(e,t){e.openElements.pop(),e.insertionMode=T.AFTER_HEAD,e._processToken(t)}function mp(e,t){switch(t.tagID){case c.HTML:{Be(e,t);break}case c.BASEFONT:case c.BGSOUND:case c.HEAD:case c.LINK:case c.META:case c.NOFRAMES:case c.STYLE:{ct(e,t);break}case c.NOSCRIPT:{e._err(t,v.nestedNoscriptInHead);break}default:Yn(e,t)}}function gp(e,t){switch(t.tagID){case c.NOSCRIPT:{e.openElements.pop(),e.insertionMode=T.IN_HEAD;break}case c.BR:{Yn(e,t);break}default:e._err(t,v.endTagWithoutMatchingOpenElement)}}function Yn(e,t){const n=t.type===re.EOF?v.openElementsLeftAfterEof:v.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=T.IN_HEAD,e._processToken(t)}function bp(e,t){switch(t.tagID){case c.HTML:{Be(e,t);break}case c.BODY:{e._insertElement(t,O.HTML),e.framesetOk=!1,e.insertionMode=T.IN_BODY;break}case c.FRAMESET:{e._insertElement(t,O.HTML),e.insertionMode=T.IN_FRAMESET;break}case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:case c.NOFRAMES:case c.SCRIPT:case c.STYLE:case c.TEMPLATE:case c.TITLE:{e._err(t,v.abandonedHeadElementChild),e.openElements.push(e.headElement,c.HEAD),ct(e,t),e.openElements.remove(e.headElement);break}case c.HEAD:{e._err(t,v.misplacedStartTagForHeadElement);break}default:qn(e,t)}}function Ep(e,t){switch(t.tagID){case c.BODY:case c.HTML:case c.BR:{qn(e,t);break}case c.TEMPLATE:{Zt(e,t);break}default:e._err(t,v.endTagWithoutMatchingOpenElement)}}function qn(e,t){e._insertFakeElement(w.BODY,c.BODY),e.insertionMode=T.IN_BODY,ai(e,t)}function ai(e,t){switch(t.type){case re.CHARACTER:{vl(e,t);break}case re.WHITESPACE_CHARACTER:{Nl(e,t);break}case re.COMMENT:{aa(e,t);break}case re.START_TAG:{Be(e,t);break}case re.END_TAG:{si(e,t);break}case re.EOF:{Dl(e,t);break}}}function Nl(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function vl(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function kp(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Tp(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function _p(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,O.HTML),e.insertionMode=T.IN_FRAMESET)}function xp(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,O.HTML)}function yp(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&ia.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,O.HTML)}function Ap(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,O.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Cp(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,O.HTML),n||(e.formElement=e.openElements.current))}function wp(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===c.LI&&i===c.LI||(n===c.DD||n===c.DT)&&(i===c.DD||i===c.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==c.ADDRESS&&i!==c.DIV&&i!==c.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,O.HTML)}function Sp(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,O.HTML),e.tokenizer.state=Ae.PLAINTEXT}function Ip(e,t){e.openElements.hasInScope(c.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.framesetOk=!1}function Np(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(w.A);n&&(Ua(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function vp(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Lp(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(c.NOBR)&&(Ua(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,O.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Rp(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Op(e,t){e.treeAdapter.getDocumentMode(e.document)!==rt.QUIRKS&&e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,O.HTML),e.framesetOk=!1,e.insertionMode=T.IN_TABLE}function Ll(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,O.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Rl(e){const t=Tl(e,Vt.TYPE);return t!=null&&t.toLowerCase()===Xf}function Dp(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,O.HTML),Rl(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Pp(e,t){e._appendElement(t,O.HTML),t.ackSelfClosing=!0}function Mp(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._appendElement(t,O.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Bp(e,t){t.tagName=w.IMG,t.tagID=c.IMG,Ll(e,t)}function Fp(e,t){e._insertElement(t,O.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Ae.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=T.TEXT}function Hp(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Ae.RAWTEXT)}function Up(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Ae.RAWTEXT)}function ou(e,t){e._switchToTextParsing(t,Ae.RAWTEXT)}function zp(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===T.IN_TABLE||e.insertionMode===T.IN_CAPTION||e.insertionMode===T.IN_TABLE_BODY||e.insertionMode===T.IN_ROW||e.insertionMode===T.IN_CELL?T.IN_SELECT_IN_TABLE:T.IN_SELECT}function $p(e,t){e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML)}function Yp(e,t){e.openElements.hasInScope(c.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,O.HTML)}function qp(e,t){e.openElements.hasInScope(c.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(c.RTC),e._insertElement(t,O.HTML)}function jp(e,t){e._reconstructActiveFormattingElements(),wl(t),Ha(t),t.selfClosing?e._appendElement(t,O.MATHML):e._insertElement(t,O.MATHML),t.ackSelfClosing=!0}function Vp(e,t){e._reconstructActiveFormattingElements(),Sl(t),Ha(t),t.selfClosing?e._appendElement(t,O.SVG):e._insertElement(t,O.SVG),t.ackSelfClosing=!0}function lu(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML)}function Be(e,t){switch(t.tagID){case c.I:case c.S:case c.B:case c.U:case c.EM:case c.TT:case c.BIG:case c.CODE:case c.FONT:case c.SMALL:case c.STRIKE:case c.STRONG:{vp(e,t);break}case c.A:{Np(e,t);break}case c.H1:case c.H2:case c.H3:case c.H4:case c.H5:case c.H6:{yp(e,t);break}case c.P:case c.DL:case c.OL:case c.UL:case c.DIV:case c.DIR:case c.NAV:case c.MAIN:case c.MENU:case c.ASIDE:case c.CENTER:case c.FIGURE:case c.FOOTER:case c.HEADER:case c.HGROUP:case c.DIALOG:case c.DETAILS:case c.ADDRESS:case c.ARTICLE:case c.SEARCH:case c.SECTION:case c.SUMMARY:case c.FIELDSET:case c.BLOCKQUOTE:case c.FIGCAPTION:{xp(e,t);break}case c.LI:case c.DD:case c.DT:{wp(e,t);break}case c.BR:case c.IMG:case c.WBR:case c.AREA:case c.EMBED:case c.KEYGEN:{Ll(e,t);break}case c.HR:{Mp(e,t);break}case c.RB:case c.RTC:{Yp(e,t);break}case c.RT:case c.RP:{qp(e,t);break}case c.PRE:case c.LISTING:{Ap(e,t);break}case c.XMP:{Hp(e,t);break}case c.SVG:{Vp(e,t);break}case c.HTML:{kp(e,t);break}case c.BASE:case c.LINK:case c.META:case c.STYLE:case c.TITLE:case c.SCRIPT:case c.BGSOUND:case c.BASEFONT:case c.TEMPLATE:{ct(e,t);break}case c.BODY:{Tp(e,t);break}case c.FORM:{Cp(e,t);break}case c.NOBR:{Lp(e,t);break}case c.MATH:{jp(e,t);break}case c.TABLE:{Op(e,t);break}case c.INPUT:{Dp(e,t);break}case c.PARAM:case c.TRACK:case c.SOURCE:{Pp(e,t);break}case c.IMAGE:{Bp(e,t);break}case c.BUTTON:{Ip(e,t);break}case c.APPLET:case c.OBJECT:case c.MARQUEE:{Rp(e,t);break}case c.IFRAME:{Up(e,t);break}case c.SELECT:{zp(e,t);break}case c.OPTION:case c.OPTGROUP:{$p(e,t);break}case c.NOEMBED:case c.NOFRAMES:{ou(e,t);break}case c.FRAMESET:{_p(e,t);break}case c.TEXTAREA:{Fp(e,t);break}case c.NOSCRIPT:{e.options.scriptingEnabled?ou(e,t):lu(e,t);break}case c.PLAINTEXT:{Sp(e,t);break}case c.COL:case c.TH:case c.TD:case c.TR:case c.HEAD:case c.FRAME:case c.TBODY:case c.TFOOT:case c.THEAD:case c.CAPTION:case c.COLGROUP:break;default:lu(e,t)}}function Wp(e,t){if(e.openElements.hasInScope(c.BODY)&&(e.insertionMode=T.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Gp(e,t){e.openElements.hasInScope(c.BODY)&&(e.insertionMode=T.AFTER_BODY,$l(e,t))}function Qp(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Kp(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(c.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(c.FORM):n&&e.openElements.remove(n))}function Xp(e){e.openElements.hasInButtonScope(c.P)||e._insertFakeElement(w.P,c.P),e._closePElement()}function Zp(e){e.openElements.hasInListItemScope(c.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(c.LI),e.openElements.popUntilTagNamePopped(c.LI))}function Jp(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function e1(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function t1(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function n1(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(w.BR,c.BR),e.openElements.pop(),e.framesetOk=!1}function Ol(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==c.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function si(e,t){switch(t.tagID){case c.A:case c.B:case c.I:case c.S:case c.U:case c.EM:case c.TT:case c.BIG:case c.CODE:case c.FONT:case c.NOBR:case c.SMALL:case c.STRIKE:case c.STRONG:{Ua(e,t);break}case c.P:{Xp(e);break}case c.DL:case c.UL:case c.OL:case c.DIR:case c.DIV:case c.NAV:case c.PRE:case c.MAIN:case c.MENU:case c.ASIDE:case c.BUTTON:case c.CENTER:case c.FIGURE:case c.FOOTER:case c.HEADER:case c.HGROUP:case c.DIALOG:case c.ADDRESS:case c.ARTICLE:case c.DETAILS:case c.SEARCH:case c.SECTION:case c.SUMMARY:case c.LISTING:case c.FIELDSET:case c.BLOCKQUOTE:case c.FIGCAPTION:{Qp(e,t);break}case c.LI:{Zp(e);break}case c.DD:case c.DT:{Jp(e,t);break}case c.H1:case c.H2:case c.H3:case c.H4:case c.H5:case c.H6:{e1(e);break}case c.BR:{n1(e);break}case c.BODY:{Wp(e,t);break}case c.HTML:{Gp(e,t);break}case c.FORM:{Kp(e);break}case c.APPLET:case c.OBJECT:case c.MARQUEE:{t1(e,t);break}case c.TEMPLATE:{Zt(e,t);break}default:Ol(e,t)}}function Dl(e,t){e.tmplInsertionModeStack.length>0?zl(e,t):za(e,t)}function r1(e,t){var n;t.tagID===c.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function i1(e,t){e._err(t,v.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function wi(e,t){if(e.openElements.currentTagId!==void 0&&Il.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=T.IN_TABLE_TEXT,t.type){case re.CHARACTER:{Ml(e,t);break}case re.WHITESPACE_CHARACTER:{Pl(e,t);break}}else sr(e,t)}function a1(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,O.HTML),e.insertionMode=T.IN_CAPTION}function s1(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,O.HTML),e.insertionMode=T.IN_COLUMN_GROUP}function u1(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(w.COLGROUP,c.COLGROUP),e.insertionMode=T.IN_COLUMN_GROUP,$a(e,t)}function o1(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,O.HTML),e.insertionMode=T.IN_TABLE_BODY}function l1(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(w.TBODY,c.TBODY),e.insertionMode=T.IN_TABLE_BODY,ui(e,t)}function c1(e,t){e.openElements.hasInTableScope(c.TABLE)&&(e.openElements.popUntilTagNamePopped(c.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function d1(e,t){Rl(t)?e._appendElement(t,O.HTML):sr(e,t),t.ackSelfClosing=!0}function h1(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,O.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function fn(e,t){switch(t.tagID){case c.TD:case c.TH:case c.TR:{l1(e,t);break}case c.STYLE:case c.SCRIPT:case c.TEMPLATE:{ct(e,t);break}case c.COL:{u1(e,t);break}case c.FORM:{h1(e,t);break}case c.TABLE:{c1(e,t);break}case c.TBODY:case c.TFOOT:case c.THEAD:{o1(e,t);break}case c.INPUT:{d1(e,t);break}case c.CAPTION:{a1(e,t);break}case c.COLGROUP:{s1(e,t);break}default:sr(e,t)}}function Zn(e,t){switch(t.tagID){case c.TABLE:{e.openElements.hasInTableScope(c.TABLE)&&(e.openElements.popUntilTagNamePopped(c.TABLE),e._resetInsertionMode());break}case c.TEMPLATE:{Zt(e,t);break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TBODY:case c.TD:case c.TFOOT:case c.TH:case c.THEAD:case c.TR:break;default:sr(e,t)}}function sr(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,ai(e,t),e.fosterParentingEnabled=n}function Pl(e,t){e.pendingCharacterTokens.push(t)}function Ml(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function vn(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)sr(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Bl=new Set([c.CAPTION,c.COL,c.COLGROUP,c.TBODY,c.TD,c.TFOOT,c.TH,c.THEAD,c.TR]);function f1(e,t){const n=t.tagID;Bl.has(n)?e.openElements.hasInTableScope(c.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=T.IN_TABLE,fn(e,t)):Be(e,t)}function p1(e,t){const n=t.tagID;switch(n){case c.CAPTION:case c.TABLE:{e.openElements.hasInTableScope(c.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=T.IN_TABLE,n===c.TABLE&&Zn(e,t));break}case c.BODY:case c.COL:case c.COLGROUP:case c.HTML:case c.TBODY:case c.TD:case c.TFOOT:case c.TH:case c.THEAD:case c.TR:break;default:si(e,t)}}function $a(e,t){switch(t.tagID){case c.HTML:{Be(e,t);break}case c.COL:{e._appendElement(t,O.HTML),t.ackSelfClosing=!0;break}case c.TEMPLATE:{ct(e,t);break}default:$r(e,t)}}function m1(e,t){switch(t.tagID){case c.COLGROUP:{e.openElements.currentTagId===c.COLGROUP&&(e.openElements.pop(),e.insertionMode=T.IN_TABLE);break}case c.TEMPLATE:{Zt(e,t);break}case c.COL:break;default:$r(e,t)}}function $r(e,t){e.openElements.currentTagId===c.COLGROUP&&(e.openElements.pop(),e.insertionMode=T.IN_TABLE,e._processToken(t))}function ui(e,t){switch(t.tagID){case c.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,O.HTML),e.insertionMode=T.IN_ROW;break}case c.TH:case c.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(w.TR,c.TR),e.insertionMode=T.IN_ROW,oi(e,t);break}case c.CAPTION:case c.COL:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE,fn(e,t));break}default:fn(e,t)}}function sa(e,t){const n=t.tagID;switch(t.tagID){case c.TBODY:case c.TFOOT:case c.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE);break}case c.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE,Zn(e,t));break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TD:case c.TH:case c.TR:break;default:Zn(e,t)}}function oi(e,t){switch(t.tagID){case c.TH:case c.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,O.HTML),e.insertionMode=T.IN_CELL,e.activeFormattingElements.insertMarker();break}case c.CAPTION:case c.COL:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:case c.TR:{e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE_BODY,ui(e,t));break}default:fn(e,t)}}function Fl(e,t){switch(t.tagID){case c.TR:{e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE_BODY);break}case c.TABLE:{e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE_BODY,sa(e,t));break}case c.TBODY:case c.TFOOT:case c.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(c.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE_BODY,sa(e,t));break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TD:case c.TH:break;default:Zn(e,t)}}function g1(e,t){const n=t.tagID;Bl.has(n)?(e.openElements.hasInTableScope(c.TD)||e.openElements.hasInTableScope(c.TH))&&(e._closeTableCell(),oi(e,t)):Be(e,t)}function b1(e,t){const n=t.tagID;switch(n){case c.TD:case c.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=T.IN_ROW);break}case c.TABLE:case c.TBODY:case c.TFOOT:case c.THEAD:case c.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Fl(e,t));break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:break;default:si(e,t)}}function Hl(e,t){switch(t.tagID){case c.HTML:{Be(e,t);break}case c.OPTION:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e._insertElement(t,O.HTML);break}case c.OPTGROUP:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop(),e._insertElement(t,O.HTML);break}case c.HR:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop(),e._appendElement(t,O.HTML),t.ackSelfClosing=!0;break}case c.INPUT:case c.KEYGEN:case c.TEXTAREA:case c.SELECT:{e.openElements.hasInSelectScope(c.SELECT)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),t.tagID!==c.SELECT&&e._processStartTag(t));break}case c.SCRIPT:case c.TEMPLATE:{ct(e,t);break}}}function Ul(e,t){switch(t.tagID){case c.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===c.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===c.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop();break}case c.OPTION:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop();break}case c.SELECT:{e.openElements.hasInSelectScope(c.SELECT)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode());break}case c.TEMPLATE:{Zt(e,t);break}}}function E1(e,t){const n=t.tagID;n===c.CAPTION||n===c.TABLE||n===c.TBODY||n===c.TFOOT||n===c.THEAD||n===c.TR||n===c.TD||n===c.TH?(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Hl(e,t)}function k1(e,t){const n=t.tagID;n===c.CAPTION||n===c.TABLE||n===c.TBODY||n===c.TFOOT||n===c.THEAD||n===c.TR||n===c.TD||n===c.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Ul(e,t)}function T1(e,t){switch(t.tagID){case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:case c.NOFRAMES:case c.SCRIPT:case c.STYLE:case c.TEMPLATE:case c.TITLE:{ct(e,t);break}case c.CAPTION:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:{e.tmplInsertionModeStack[0]=T.IN_TABLE,e.insertionMode=T.IN_TABLE,fn(e,t);break}case c.COL:{e.tmplInsertionModeStack[0]=T.IN_COLUMN_GROUP,e.insertionMode=T.IN_COLUMN_GROUP,$a(e,t);break}case c.TR:{e.tmplInsertionModeStack[0]=T.IN_TABLE_BODY,e.insertionMode=T.IN_TABLE_BODY,ui(e,t);break}case c.TD:case c.TH:{e.tmplInsertionModeStack[0]=T.IN_ROW,e.insertionMode=T.IN_ROW,oi(e,t);break}default:e.tmplInsertionModeStack[0]=T.IN_BODY,e.insertionMode=T.IN_BODY,Be(e,t)}}function _1(e,t){t.tagID===c.TEMPLATE&&Zt(e,t)}function zl(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(c.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):za(e,t)}function x1(e,t){t.tagID===c.HTML?Be(e,t):Yr(e,t)}function $l(e,t){var n;if(t.tagID===c.HTML){if(e.fragmentContext||(e.insertionMode=T.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===c.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Yr(e,t)}function Yr(e,t){e.insertionMode=T.IN_BODY,ai(e,t)}function y1(e,t){switch(t.tagID){case c.HTML:{Be(e,t);break}case c.FRAMESET:{e._insertElement(t,O.HTML);break}case c.FRAME:{e._appendElement(t,O.HTML),t.ackSelfClosing=!0;break}case c.NOFRAMES:{ct(e,t);break}}}function A1(e,t){t.tagID===c.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==c.FRAMESET&&(e.insertionMode=T.AFTER_FRAMESET))}function C1(e,t){switch(t.tagID){case c.HTML:{Be(e,t);break}case c.NOFRAMES:{ct(e,t);break}}}function w1(e,t){t.tagID===c.HTML&&(e.insertionMode=T.AFTER_AFTER_FRAMESET)}function S1(e,t){t.tagID===c.HTML?Be(e,t):vr(e,t)}function vr(e,t){e.insertionMode=T.IN_BODY,ai(e,t)}function I1(e,t){switch(t.tagID){case c.HTML:{Be(e,t);break}case c.NOFRAMES:{ct(e,t);break}}}function N1(e,t){t.chars=Te,e._insertCharacters(t)}function v1(e,t){e._insertCharacters(t),e.framesetOk=!1}function Yl(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==O.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function L1(e,t){if(Vf(t))Yl(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===O.MATHML?wl(t):r===O.SVG&&(Wf(t),Sl(t)),Ha(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function R1(e,t){if(t.tagID===c.P||t.tagID===c.BR){Yl(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===O.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}w.AREA,w.BASE,w.BASEFONT,w.BGSOUND,w.BR,w.COL,w.EMBED,w.FRAME,w.HR,w.IMG,w.INPUT,w.KEYGEN,w.LINK,w.META,w.PARAM,w.SOURCE,w.TRACK,w.WBR;const li=ql("end"),gt=ql("start");function ql(e){return t;function t(n){const r=n&&n.position&&n.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 jl(e){const t=gt(e),n=li(e);if(t&&n)return{start:t,end:n}}const O1=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,D1=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),cu={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Vl(e,t){const n=q1(e),r=ml("type",{handlers:{root:P1,element:M1,text:B1,comment:Gl,doctype:F1,raw:U1},unknown:z1}),i={parser:n?new uu(cu):uu.getFragmentParser(void 0,cu),handle(u){r(u,i)},stitches:!1,options:t||{}};r(e,i),_n(i,gt());const a=n?i.parser.document:i.parser.getFragment(),s=qh(a,{file:i.options.file});return i.stitches&&hn(s,"comment",function(u,o,l){const h=u;if(h.value.stitch&&l&&o!==void 0){const d=l.children;return d[o]=h.value.stitch,o}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function Wl(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function P1(e,t){Wl(e.children,t)}function M1(e,t){$1(e,t),Wl(e.children,t),Y1(e,t)}function B1(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:re.CHARACTER,chars:e.value,location:ur(e)};_n(t,gt(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function F1(e,t){const n={type:re.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:ur(e)};_n(t,gt(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function H1(e,t){t.stitches=!0;const n=j1(e);if("children"in e&&"children"in n){const r=Vl({type:"root",children:e.children},t.options);n.children=r.children}Gl({type:"comment",value:{stitch:n}},t)}function Gl(e,t){const n=e.value,r={type:re.COMMENT,data:n,location:ur(e)};_n(t,gt(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function U1(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Ql(t,gt(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(O1,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function z1(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))H1(n,t);else{let r="";throw D1.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function _n(e,t){Ql(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Ae.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Ql(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function $1(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Ae.PLAINTEXT)return;_n(t,gt(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:jt.html;i===jt.html&&n==="svg"&&(i=jt.svg);const a=Qh({...e,children:[]},{space:i===jt.svg?"svg":"html"}),s={type:re.START_TAG,tagName:n,tagID:Tn(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:ur(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function Y1(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&rf.includes(n)||t.parser.tokenizer.state===Ae.PLAINTEXT)return;_n(t,li(e));const r={type:re.END_TAG,tagName:n,tagID:Tn(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:ur(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Ae.RCDATA||t.parser.tokenizer.state===Ae.RAWTEXT||t.parser.tokenizer.state===Ae.SCRIPT_DATA)&&(t.parser.tokenizer.state=Ae.DATA)}function q1(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function ur(e){const t=gt(e)||{line:void 0,column:void 0,offset:void 0},n=li(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function j1(e){return"children"in e?Gt({...e,children:[]}):Gt(e)}function V1(e){return function(t,n){return Vl(t,{...e,file:n})}}const Ut=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],du={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Ut,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Ut],h2:[["className","sr-only"]],img:[...Ut,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Ut,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Ut],table:[...Ut],ul:[...Ut,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},Lt={}.hasOwnProperty;function W1(e,t){let n={type:"root",children:[]};const r={schema:t?{...du,...t}:du,stack:[]},i=Kl(r,e);return i&&(Array.isArray(i)?i.length===1?n=i[0]:n.children=i:n=i),n}function Kl(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return G1(e,n);case"doctype":return Q1(e,n);case"element":return K1(e,n);case"root":return X1(e,n);case"text":return Z1(e,n)}}}function G1(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",r=n.indexOf("-->"),a={type:"comment",value:r<0?n:n.slice(0,r)};return or(a,t),a}}function Q1(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return or(n,t),n}}function K1(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=Xl(e,t.children),i=J1(e,t.properties);e.stack.pop();let a=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&Lt.call(e.schema.ancestors,n))){const u=e.schema.ancestors[n];let o=-1;for(a=!1;++o<u.length;)e.stack.includes(u[o])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;const s={type:"element",tagName:n,properties:i,children:r};return or(s,t),s}function X1(e,t){const r={type:"root",children:Xl(e,t.children)};return or(r,t),r}function Z1(e,t){const r={type:"text",value:typeof t.value=="string"?t.value:""};return or(r,t),r}function Xl(e,t){const n=[];if(Array.isArray(t)){const r=t;let i=-1;for(;++i<r.length;){const a=Kl(e,r[i]);a&&(Array.isArray(a)?n.push(...a):n.push(a))}}return n}function J1(e,t){const n=e.stack[e.stack.length-1],r=e.schema.attributes,i=e.schema.required,a=r&&Lt.call(r,n)?r[n]:void 0,s=r&&Lt.call(r,"*")?r["*"]:void 0,u=t&&typeof t=="object"?t:{},o={};let l;for(l in u)if(Lt.call(u,l)){const h=u[l];let d=hu(e,fu(a,l),l,h);d==null&&(d=hu(e,fu(s,l),l,h)),d!=null&&(o[l]=d)}if(i&&Lt.call(i,n)){const h=i[n];for(l in h)Lt.call(h,l)&&!Lt.call(o,l)&&(o[l]=h[l])}return o}function hu(e,t,n,r){return t?Array.isArray(r)?em(e,t,n,r):Zl(e,t,n,r):void 0}function em(e,t,n,r){let i=-1;const a=[];for(;++i<r.length;){const s=Zl(e,t,n,r[i]);(typeof s=="number"||typeof s=="string")&&a.push(s)}return a}function Zl(e,t,n,r){if(!(typeof r!="boolean"&&typeof r!="number"&&typeof r!="string")&&tm(e,n,r)){if(typeof t=="object"&&t.length>1){let i=!1,a=0;for(;++a<t.length;){const s=t[a];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(r))){i=!0;break}}else if(s===r){i=!0;break}}if(!i)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function tm(e,t,n){const r=e.schema.protocols&&Lt.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||r.length===0)return!0;const i=String(n),a=i.indexOf(":"),s=i.indexOf("?"),u=i.indexOf("#"),o=i.indexOf("/");if(a<0||o>-1&&a>o||s>-1&&a>s||u>-1&&a>u)return!0;let l=-1;for(;++l<r.length;){const h=r[l];if(a===h.length&&i.slice(0,h.length)===h)return!0}return!1}function or(e,t){const n=jl(t);t.data&&(e.data=Gt(t.data)),n&&(e.position=n)}function fu(e,t){let n,r=-1;if(e)for(;++r<e.length;){const i=e[r],a=typeof i=="string"?i:i[0];if(a===t)return i;a==="data*"&&(n=i)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return n}function nm(e){return function(t){return W1(t,e)}}function pu(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}const ze=Bt(/[A-Za-z]/),Me=Bt(/[\dA-Za-z]/),rm=Bt(/[#-'*+\--9=?A-Z^-~]/);function qr(e){return e!==null&&(e<32||e===127)}const ua=Bt(/\d/),im=Bt(/[\dA-Fa-f]/),am=Bt(/[!-/:-@[-`{-~]/);function G(e){return e!==null&&e<-2}function be(e){return e!==null&&(e<0||e===32)}function ae(e){return e===-2||e===-1||e===32}const ci=Bt(/\p{P}|\p{S}/u),Qt=Bt(/\s/);function Bt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function sm(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function um(e,t,n){const i=ti((n||{}).ignore||[]),a=om(t);let s=-1;for(;++s<a.length;)Jo(e,"text",u);function u(l,h){let d=-1,p;for(;++d<h.length;){const f=h[d],m=p?p.children:void 0;if(i(f,m?m.indexOf(f):void 0,p))return;p=f}if(p)return o(l,h)}function o(l,h){const d=h[h.length-1],p=a[s][0],f=a[s][1];let m=0;const C=d.children.indexOf(l);let y=!1,I=[];p.lastIndex=0;let S=p.exec(l.value);for(;S;){const D=S.index,R={index:S.index,input:S.input,stack:[...h,l]};let x=f(...S,R);if(typeof x=="string"&&(x=x.length>0?{type:"text",value:x}:void 0),x===!1?p.lastIndex=D+1:(m!==D&&I.push({type:"text",value:l.value.slice(m,D)}),Array.isArray(x)?I.push(...x):x&&I.push(x),m=D+S[0].length,y=!0),!p.global)break;S=p.exec(l.value)}return y?(m<l.value.length&&I.push({type:"text",value:l.value.slice(m)}),d.children.splice(C,1,...I)):I=[l],C+I.length}}function om(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([lm(i[0]),cm(i[1])])}return t}function lm(e){return typeof e=="string"?new RegExp(sm(e),"g"):e}function cm(e){return typeof e=="function"?e:function(){return e}}const Si="phrasing",Ii=["autolink","link","image","label"];function dm(){return{transforms:[Em],enter:{literalAutolink:fm,literalAutolinkEmail:Ni,literalAutolinkHttp:Ni,literalAutolinkWww:Ni},exit:{literalAutolink:bm,literalAutolinkEmail:gm,literalAutolinkHttp:pm,literalAutolinkWww:mm}}}function hm(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Si,notInConstruct:Ii},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Si,notInConstruct:Ii},{character:":",before:"[ps]",after:"\\/",inConstruct:Si,notInConstruct:Ii}]}}function fm(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Ni(e){this.config.enter.autolinkProtocol.call(this,e)}function pm(e){this.config.exit.autolinkProtocol.call(this,e)}function mm(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function gm(e){this.config.exit.autolinkEmail.call(this,e)}function bm(e){this.exit(e)}function Em(e){um(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,km],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Tm]],{ignore:["link","linkReference"]})}function km(e,t,n,r,i){let a="";if(!Jl(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!_m(n)))return!1;const s=xm(n+r);if(!s[0])return!1;const u={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[u,{type:"text",value:s[1]}]:u}function Tm(e,t,n,r){return!Jl(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function _m(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function xm(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=pu(e,"(");let a=pu(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function Jl(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Qt(n)||ci(n))&&(!t||n!==47)}function ot(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}ec.peek=Lm;function ym(){this.buffer()}function Am(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Cm(){this.buffer()}function wm(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Sm(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ot(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Im(e){this.exit(e)}function Nm(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ot(this.sliceSerialize(e)).toLowerCase(),n.label=t}function vm(e){this.exit(e)}function Lm(){return"["}function ec(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteReference"),u=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),u(),s(),a+=i.move("]"),a}function Rm(){return{enter:{gfmFootnoteCallString:ym,gfmFootnoteCall:Am,gfmFootnoteDefinitionLabelString:Cm,gfmFootnoteDefinition:wm},exit:{gfmFootnoteCallString:Sm,gfmFootnoteCall:Im,gfmFootnoteDefinitionLabelString:Nm,gfmFootnoteDefinition:vm}}}function Om(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:ec},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,s){const u=a.createTracker(s);let o=u.move("[^");const l=a.enter("footnoteDefinition"),h=a.enter("label");return o+=u.move(a.safe(a.associationId(r),{before:o,after:"]"})),h(),o+=u.move("]:"),r.children&&r.children.length>0&&(u.shift(4),o+=u.move((t?`
3
+ `:" ")+a.indentLines(a.containerFlow(r,u.current()),t?tc:Dm))),l(),o}}function Dm(e,t,n){return t===0?e:tc(e,t,n)}function tc(e,t,n){return(n?"":" ")+e}const Pm=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];nc.peek=Um;function Mm(){return{canContainEols:["delete"],enter:{strikethrough:Fm},exit:{strikethrough:Hm}}}function Bm(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Pm}],handlers:{delete:nc}}}function Fm(e){this.enter({type:"delete",children:[]},e)}function Hm(e){this.exit(e)}function nc(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function Um(){return"~"}function zm(e){return e.length}function $m(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||zm,a=[],s=[],u=[],o=[];let l=0,h=-1;for(;++h<e.length;){const k=[],C=[];let y=-1;for(e[h].length>l&&(l=e[h].length);++y<e[h].length;){const I=Ym(e[h][y]);if(n.alignDelimiters!==!1){const S=i(I);C[y]=S,(o[y]===void 0||S>o[y])&&(o[y]=S)}k.push(I)}s[h]=k,u[h]=C}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<l;)a[d]=mu(r[d]);else{const k=mu(r);for(;++d<l;)a[d]=k}d=-1;const p=[],f=[];for(;++d<l;){const k=a[d];let C="",y="";k===99?(C=":",y=":"):k===108?C=":":k===114&&(y=":");let I=n.alignDelimiters===!1?1:Math.max(1,o[d]-C.length-y.length);const S=C+"-".repeat(I)+y;n.alignDelimiters!==!1&&(I=C.length+I+y.length,I>o[d]&&(o[d]=I),f[d]=I),p[d]=S}s.splice(1,0,p),u.splice(1,0,f),h=-1;const m=[];for(;++h<s.length;){const k=s[h],C=u[h];d=-1;const y=[];for(;++d<l;){const I=k[d]||"";let S="",D="";if(n.alignDelimiters!==!1){const R=o[d]-(C[d]||0),x=a[d];x===114?S=" ".repeat(R):x===99?R%2?(S=" ".repeat(R/2+.5),D=" ".repeat(R/2-.5)):(S=" ".repeat(R/2),D=S):D=" ".repeat(R)}n.delimiterStart!==!1&&!d&&y.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&I==="")&&(n.delimiterStart!==!1||d)&&y.push(" "),n.alignDelimiters!==!1&&y.push(S),y.push(I),n.alignDelimiters!==!1&&y.push(D),n.padding!==!1&&y.push(" "),(n.delimiterEnd!==!1||d!==l-1)&&y.push("|")}m.push(n.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return m.join(`
4
+ `)}function Ym(e){return e==null?"":String(e)}function mu(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function qm(e,t,n,r){const i=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),jm);return i(),s}function jm(e,t,n){return">"+(n?"":" ")+e}function Vm(e,t){return gu(e,t.inConstruct,!0)&&!gu(e,t.notInConstruct,!1)}function gu(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function bu(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
5
+ `&&Vm(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
6
+ `}function Wm(e,t){const n=String(e);let r=n.indexOf(t),i=r,a=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++a>s&&(s=a):a=1,i=r+t.length,r=n.indexOf(t,i);return s}function Gm(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Qm(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Km(e,t,n,r){const i=Qm(n),a=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(Gm(e,n)){const d=n.enter("codeIndented"),p=n.indentLines(a,Xm);return d(),p}const u=n.createTracker(r),o=i.repeat(Math.max(Wm(a,i)+1,3)),l=n.enter("codeFenced");let h=u.move(o);if(e.lang){const d=n.enter(`codeFencedLang${s}`);h+=u.move(n.safe(e.lang,{before:h,after:" ",encode:["`"],...u.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${s}`);h+=u.move(" "),h+=u.move(n.safe(e.meta,{before:h,after:`
7
7
  `,encode:["`"],...u.current()})),d()}return h+=u.move(`
8
8
  `),a&&(h+=u.move(a+`
9
- `)),h+=u.move(o),l(),h}function Qm(e,t,n){return(n?"":" ")+e}function Ha(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Km(e,t,n,r){const i=Ha(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let u=n.enter("label");const o=n.createTracker(r);let l=o.move("[");return l+=o.move(n.safe(n.associationId(e),{before:l,after:"]",...o.current()})),l+=o.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),l+=o.move("<"),l+=o.move(n.safe(e.url,{before:l,after:">",...o.current()})),l+=o.move(">")):(u=n.enter("destinationRaw"),l+=o.move(n.safe(e.url,{before:l,after:e.title?" ":`
10
- `,...o.current()}))),u(),e.title&&(u=n.enter(`title${a}`),l+=o.move(" "+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),u()),s(),l}function Xm(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Zn(e){return"&#x"+e.toString(16).toUpperCase()+";"}function fn(e){if(e===null||be(e)||Wt(e))return 1;if(ui(e))return 2}function $r(e,t,n){const r=fn(e),i=fn(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}nc.peek=Zm;function nc(e,t,n,r){const i=Xm(n),a=n.enter("emphasis"),s=n.createTracker(r),u=s.move(i);let o=s.move(n.containerPhrasing(e,{after:i,before:u,...s.current()}));const l=o.charCodeAt(0),h=$r(r.before.charCodeAt(r.before.length-1),l,i);h.inside&&(o=Zn(l)+o.slice(1));const d=o.charCodeAt(o.length-1),p=$r(r.after.charCodeAt(0),d,i);p.inside&&(o=o.slice(0,-1)+Zn(d));const f=s.move(i);return a(),n.attentionEncodeSurroundingInfo={after:p.outside,before:h.outside},u+o+f}function Zm(e,t,n){return n.options.emphasis||"*"}const Jm={};function Ua(e,t){const n=t||Jm,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return rc(e,r,i)}function rc(e,t,n){if(eg(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return gu(e.children,t,n)}return Array.isArray(e)?gu(e,t,n):""}function gu(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=rc(e[i],t,n);return r.join("")}function eg(e){return!!(e&&typeof e=="object")}function tg(e,t){let n=!1;return dn(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Qi}),!!((!e.depth||e.depth<3)&&Ua(e)&&(t.options.setext||n))}function ng(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(tg(e,n)){const h=n.enter("headingSetext"),d=n.enter("phrasing"),p=n.containerPhrasing(e,{...a.current(),before:`
9
+ `)),h+=u.move(o),l(),h}function Xm(e,t,n){return(n?"":" ")+e}function Ya(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Zm(e,t,n,r){const i=Ya(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let u=n.enter("label");const o=n.createTracker(r);let l=o.move("[");return l+=o.move(n.safe(n.associationId(e),{before:l,after:"]",...o.current()})),l+=o.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),l+=o.move("<"),l+=o.move(n.safe(e.url,{before:l,after:">",...o.current()})),l+=o.move(">")):(u=n.enter("destinationRaw"),l+=o.move(n.safe(e.url,{before:l,after:e.title?" ":`
10
+ `,...o.current()}))),u(),e.title&&(u=n.enter(`title${a}`),l+=o.move(" "+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),u()),s(),l}function Jm(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Jn(e){return"&#x"+e.toString(16).toUpperCase()+";"}function pn(e){if(e===null||be(e)||Qt(e))return 1;if(ci(e))return 2}function jr(e,t,n){const r=pn(e),i=pn(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}rc.peek=eg;function rc(e,t,n,r){const i=Jm(n),a=n.enter("emphasis"),s=n.createTracker(r),u=s.move(i);let o=s.move(n.containerPhrasing(e,{after:i,before:u,...s.current()}));const l=o.charCodeAt(0),h=jr(r.before.charCodeAt(r.before.length-1),l,i);h.inside&&(o=Jn(l)+o.slice(1));const d=o.charCodeAt(o.length-1),p=jr(r.after.charCodeAt(0),d,i);p.inside&&(o=o.slice(0,-1)+Jn(d));const f=s.move(i);return a(),n.attentionEncodeSurroundingInfo={after:p.outside,before:h.outside},u+o+f}function eg(e,t,n){return n.options.emphasis||"*"}const tg={};function qa(e,t){const n=t||tg,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return ic(e,r,i)}function ic(e,t,n){if(ng(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Eu(e.children,t,n)}return Array.isArray(e)?Eu(e,t,n):""}function Eu(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=ic(e[i],t,n);return r.join("")}function ng(e){return!!(e&&typeof e=="object")}function rg(e,t){let n=!1;return hn(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Zi}),!!((!e.depth||e.depth<3)&&qa(e)&&(t.options.setext||n))}function ig(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(rg(e,n)){const h=n.enter("headingSetext"),d=n.enter("phrasing"),p=n.containerPhrasing(e,{...a.current(),before:`
11
11
  `,after:`
12
12
  `});return d(),h(),p+`
13
13
  `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
14
14
  `))+1))}const s="#".repeat(i),u=n.enter("headingAtx"),o=n.enter("phrasing");a.move(s+" ");let l=n.containerPhrasing(e,{before:"# ",after:`
15
- `,...a.current()});return/^[\t ]/.test(l)&&(l=Zn(l.charCodeAt(0))+l.slice(1)),l=l?s+" "+l:s,n.options.closeAtx&&(l+=" "+s),o(),u(),l}ic.peek=rg;function ic(e){return e.value||""}function rg(){return"<"}ac.peek=ig;function ac(e,t,n,r){const i=Ha(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let u=n.enter("label");const o=n.createTracker(r);let l=o.move("![");return l+=o.move(n.safe(e.alt,{before:l,after:"]",...o.current()})),l+=o.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),l+=o.move("<"),l+=o.move(n.safe(e.url,{before:l,after:">",...o.current()})),l+=o.move(">")):(u=n.enter("destinationRaw"),l+=o.move(n.safe(e.url,{before:l,after:e.title?" ":")",...o.current()}))),u(),e.title&&(u=n.enter(`title${a}`),l+=o.move(" "+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),u()),l+=o.move(")"),s(),l}function ig(){return"!"}sc.peek=ag;function sc(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const u=n.createTracker(r);let o=u.move("![");const l=n.safe(e.alt,{before:o,after:"]",...u.current()});o+=u.move(l+"]["),s();const h=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:o,after:"]",...u.current()});return s(),n.stack=h,a(),i==="full"||!l||l!==d?o+=u.move(d+"]"):i==="shortcut"?o=o.slice(0,-1):o+=u.move("]"),o}function ag(){return"!"}uc.peek=sg;function uc(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const s=n.unsafe[a],u=n.compilePattern(s);let o;if(s.atBreak)for(;o=u.exec(r);){let l=o.index;r.charCodeAt(l)===10&&r.charCodeAt(l-1)===13&&l--,r=r.slice(0,l)+" "+r.slice(o.index+1)}}return i+r+i}function sg(){return"`"}function oc(e,t){const n=Ua(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}lc.peek=ug;function lc(e,t,n,r){const i=Ha(n),a=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let u,o;if(oc(e,n)){const h=n.stack;n.stack=[],u=n.enter("autolink");let d=s.move("<");return d+=s.move(n.containerPhrasing(e,{before:d,after:">",...s.current()})),d+=s.move(">"),u(),n.stack=h,d}u=n.enter("link"),o=n.enter("label");let l=s.move("[");return l+=s.move(n.containerPhrasing(e,{before:l,after:"](",...s.current()})),l+=s.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),l+=s.move("<"),l+=s.move(n.safe(e.url,{before:l,after:">",...s.current()})),l+=s.move(">")):(o=n.enter("destinationRaw"),l+=s.move(n.safe(e.url,{before:l,after:e.title?" ":")",...s.current()}))),o(),e.title&&(o=n.enter(`title${a}`),l+=s.move(" "+i),l+=s.move(n.safe(e.title,{before:l,after:i,...s.current()})),l+=s.move(i),o()),l+=s.move(")"),u(),l}function ug(e,t,n){return oc(e,n)?"<":"["}cc.peek=og;function cc(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const u=n.createTracker(r);let o=u.move("[");const l=n.containerPhrasing(e,{before:o,after:"]",...u.current()});o+=u.move(l+"]["),s();const h=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:o,after:"]",...u.current()});return s(),n.stack=h,a(),i==="full"||!l||l!==d?o+=u.move(d+"]"):i==="shortcut"?o=o.slice(0,-1):o+=u.move("]"),o}function og(){return"["}function za(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function lg(e){const t=za(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function cg(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function dc(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function dg(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?cg(n):za(n);const u=e.ordered?s==="."?")":".":lg(n);let o=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&h&&(!h.children||!h.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(o=!0),dc(n)===s&&h){let d=-1;for(;++d<e.children.length;){const p=e.children[d];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){o=!0;break}}}}o&&(s=u),n.bulletCurrent=s;const l=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=a,i(),l}function hg(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function fg(e,t,n,r){const i=hg(n);let a=n.bulletCurrent||za(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const u=n.createTracker(r);u.move(a+" ".repeat(s-a.length)),u.shift(s);const o=n.enter("listItem"),l=n.indentLines(n.containerFlow(e,u.current()),h);return o(),l;function h(d,p,f){return p?(f?"":" ".repeat(s))+d:(f?a:a+" ".repeat(s-a.length))+d}}function pg(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),i(),s}const mg=Zr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function gg(e,t,n,r){return(e.children.some(function(s){return mg(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function bg(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}hc.peek=Eg;function hc(e,t,n,r){const i=bg(n),a=n.enter("strong"),s=n.createTracker(r),u=s.move(i+i);let o=s.move(n.containerPhrasing(e,{after:i,before:u,...s.current()}));const l=o.charCodeAt(0),h=$r(r.before.charCodeAt(r.before.length-1),l,i);h.inside&&(o=Zn(l)+o.slice(1));const d=o.charCodeAt(o.length-1),p=$r(r.after.charCodeAt(0),d,i);p.inside&&(o=o.slice(0,-1)+Zn(d));const f=s.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:p.outside,before:h.outside},u+o+f}function Eg(e,t,n){return n.options.strong||"*"}function Tg(e,t,n,r){return n.safe(e.value,r)}function kg(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function _g(e,t,n){const r=(dc(n)+(n.options.ruleSpaces?" ":"")).repeat(kg(n));return n.options.ruleSpaces?r.slice(0,-1):r}const fc={blockquote:$m,break:mu,code:Gm,definition:Km,emphasis:nc,hardBreak:mu,heading:ng,html:ic,image:ac,imageReference:sc,inlineCode:uc,link:lc,linkReference:cc,list:dg,listItem:fg,paragraph:pg,root:gg,strong:hc,text:Tg,thematicBreak:_g},bu=document.createElement("i");function $a(e){const t="&"+e+";";bu.innerHTML=t;const n=bu.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function pc(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const xg=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function yg(e){return e.replace(xg,Ag)}function Ag(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return pc(n.slice(a?2:1),a?16:10)}return $a(n)||e}function Cg(){return{enter:{table:wg,tableData:Eu,tableHeader:Eu,tableRow:Ig},exit:{codeText:Ng,table:Sg,tableData:Si,tableHeader:Si,tableRow:Si}}}function wg(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Sg(e){this.exit(e),this.data.inTable=void 0}function Ig(e){this.enter({type:"tableRow",children:[]},e)}function Si(e){this.exit(e)}function Eu(e){this.enter({type:"tableCell",children:[]},e)}function Ng(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,vg));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function vg(e,t){return t==="|"?t:e}function Lg(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
16
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:s,tableCell:o,tableRow:u}};function s(f,m,T,C){return l(h(f,T,C),f.align)}function u(f,m,T,C){const y=d(f,T,C),I=l([y]);return I.slice(0,I.indexOf(`
17
- `))}function o(f,m,T,C){const y=T.enter("tableCell"),I=T.enter("phrasing"),S=T.containerPhrasing(f,{...C,before:a,after:a});return I(),y(),S}function l(f,m){return Um(f,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function h(f,m,T){const C=f.children;let y=-1;const I=[],S=m.enter("table");for(;++y<C.length;)I[y]=d(C[y],m,T);return S(),I}function d(f,m,T){const C=f.children;let y=-1;const I=[],S=m.enter("tableRow");for(;++y<C.length;)I[y]=o(C[y],f,m,T);return S(),I}function p(f,m,T){let C=fc.inlineCode(f,m,T);return T.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function Rg(){return{exit:{taskListCheckValueChecked:Tu,taskListCheckValueUnchecked:Tu,paragraph:Dg}}}function Og(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Pg}}}function Tu(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Dg(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,s;for(;++a<i.length;){const u=i[a];if(u.type==="paragraph"){s=u;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Pg(e,t,n,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",u=n.createTracker(r);a&&u.move(s);let o=fc.listItem(e,t,n,{...r,...u.current()});return a&&(o=o.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),o;function l(h){return h+s}}function Mg(){return[lm(),vm(),Dm(),Cg(),Rg()]}function Bg(e){return{extensions:[cm(),Lm(e),Pm(),Lg(e),Og()]}}function et(e,t,n,r){const i=e.length;let a=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a<r.length;)s=r.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function it(e,t){return e.length>0?(et(e,e.length,0,t),e):t}const ku={}.hasOwnProperty;function mc(e){const t={};let n=-1;for(;++n<e.length;)Fg(t,e[n]);return t}function Fg(e,t){let n;for(n in t){const i=(ku.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let s;if(a)for(s in a){ku.call(i,s)||(i[s]=[]);const u=a[s];Hg(i[s],Array.isArray(u)?u:u?[u]:[])}}}function Hg(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);et(e,0,0,r)}const Ug={tokenize:Vg,partial:!0},gc={tokenize:Wg,partial:!0},bc={tokenize:Gg,partial:!0},Ec={tokenize:Qg,partial:!0},zg={tokenize:Kg,partial:!0},Tc={name:"wwwAutolink",tokenize:qg,previous:_c},kc={name:"protocolAutolink",tokenize:jg,previous:xc},At={name:"emailAutolink",tokenize:Yg,previous:yc},bt={};function $g(){return{text:bt}}let Ht=48;for(;Ht<123;)bt[Ht]=At,Ht++,Ht===58?Ht=65:Ht===91&&(Ht=97);bt[43]=At;bt[45]=At;bt[46]=At;bt[95]=At;bt[72]=[At,kc];bt[104]=[At,kc];bt[87]=[At,Tc];bt[119]=[At,Tc];function Yg(e,t,n){const r=this;let i,a;return s;function s(d){return!aa(d)||!yc.call(r,r.previous)||Ya(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(d))}function u(d){return aa(d)?(e.consume(d),u):d===64?(e.consume(d),o):n(d)}function o(d){return d===46?e.check(zg,h,l)(d):d===45||d===95||Pe(d)?(a=!0,e.consume(d),o):h(d)}function l(d){return e.consume(d),i=!0,o}function h(d){return a&&i&&Ue(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function qg(e,t,n){const r=this;return i;function i(s){return s!==87&&s!==119||!_c.call(r,r.previous)||Ya(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Ug,e.attempt(gc,e.attempt(bc,a),n),n)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function jg(e,t,n){const r=this;let i="",a=!1;return s;function s(d){return(d===72||d===104)&&xc.call(r,r.previous)&&!Ya(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),u):n(d)}function u(d){if(Ue(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),u;if(d===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(d),o}return n(d)}function o(d){return d===47?(e.consume(d),a?l:(a=!0,o)):n(d)}function l(d){return d===null||zr(d)||be(d)||Wt(d)||ui(d)?n(d):e.attempt(gc,e.attempt(bc,h),n)(d)}function h(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function Vg(e,t,n){let r=0;return i;function i(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),i):s===46&&r===3?(e.consume(s),a):n(s)}function a(s){return s===null?n(s):t(s)}}function Wg(e,t,n){let r,i,a;return s;function s(l){return l===46||l===95?e.check(Ec,o,u)(l):l===null||be(l)||Wt(l)||l!==45&&ui(l)?o(l):(a=!0,e.consume(l),s)}function u(l){return l===95?r=!0:(i=r,r=void 0),e.consume(l),s}function o(l){return i||r||!a?n(l):t(l)}}function Gg(e,t){let n=0,r=0;return i;function i(s){return s===40?(n++,e.consume(s),i):s===41&&r<n?a(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(Ec,t,a)(s):s===null||be(s)||Wt(s)?t(s):(e.consume(s),i)}function a(s){return s===41&&r++,e.consume(s),i}}function Qg(e,t,n){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),r):u===38?(e.consume(u),a):u===93?(e.consume(u),i):u===60||u===null||be(u)||Wt(u)?t(u):n(u)}function i(u){return u===null||u===40||u===91||be(u)||Wt(u)?t(u):r(u)}function a(u){return Ue(u)?s(u):n(u)}function s(u){return u===59?(e.consume(u),r):Ue(u)?(e.consume(u),s):n(u)}}function Kg(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return Pe(a)?n(a):t(a)}}function _c(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||be(e)}function xc(e){return!Ue(e)}function yc(e){return!(e===47||aa(e))}function aa(e){return e===43||e===45||e===46||e===95||Pe(e)}function Ya(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function _n(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let s="";if(a===37&&Pe(e.charCodeAt(n+1))&&Pe(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){const u=e.charCodeAt(n+1);a<56320&&u>56319&&u<57344?(s=String.fromCharCode(a,u),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function oi(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const sa={name:"attention",resolveAll:Xg,tokenize:Zg};function Xg(e,t){let n=-1,r,i,a,s,u,o,l,h;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;o=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},p={...e[n][1].start};_u(d,-o),_u(p,o),s={type:o>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},u={type:o>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},a={type:o>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:o>1?"strong":"emphasis",start:{...s.start},end:{...u.end}},e[r][1].end={...s.start},e[n][1].start={...u.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=it(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=it(l,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),l=it(l,oi(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=it(l,[["exit",a,t],["enter",u,t],["exit",u,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(h=2,l=it(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):h=0,et(e,r-1,n-r+3,l),n=r+l.length-h-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Zg(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=fn(r);let a;return s;function s(o){return a=o,e.enter("attentionSequence"),u(o)}function u(o){if(o===a)return e.consume(o),u;const l=e.exit("attentionSequence"),h=fn(o),d=!h||h===2&&i||n.includes(o),p=!i||i===2&&h||n.includes(r);return l._open=!!(a===42?d:d&&(i||!p)),l._close=!!(a===42?p:p&&(h||!d)),t(o)}}function _u(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Jg={name:"autolink",tokenize:eb};function eb(e,t,n){let r=0;return i;function i(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(f){return Ue(f)?(e.consume(f),s):f===64?n(f):l(f)}function s(f){return f===43||f===45||f===46||Pe(f)?(r=1,u(f)):l(f)}function u(f){return f===58?(e.consume(f),r=0,o):(f===43||f===45||f===46||Pe(f))&&r++<32?(e.consume(f),u):(r=0,l(f))}function o(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||zr(f)?n(f):(e.consume(f),o)}function l(f){return f===64?(e.consume(f),h):tm(f)?(e.consume(f),l):n(f)}function h(f){return Pe(f)?d(f):n(f)}function d(f){return f===46?(e.consume(f),r=0,h):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):p(f)}function p(f){if((f===45||Pe(f))&&r++<63){const m=f===45?p:d;return e.consume(f),m}return n(f)}}function oe(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(o){return ae(o)?(e.enter(n),u(o)):t(o)}function u(o){return ae(o)&&a++<i?(e.consume(o),u):(e.exit(n),t(o))}}const or={partial:!0,tokenize:tb};function tb(e,t,n){return r;function r(a){return ae(a)?oe(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||G(a)?t(a):n(a)}}const Ac={continuation:{tokenize:rb},exit:ib,name:"blockQuote",tokenize:nb};function nb(e,t,n){const r=this;return i;function i(s){if(s===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a}return n(s)}function a(s){return ae(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function rb(e,t,n){const r=this;return i;function i(s){return ae(s)?oe(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(Ac,t,n)(s)}}function ib(e){e.exit("blockQuote")}const Cc={name:"characterEscape",tokenize:ab};function ab(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return rm(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const wc={name:"characterReference",tokenize:sb};function sb(e,t,n){const r=this;let i=0,a,s;return u;function u(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),o}function o(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,s=Pe,h(d))}function l(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=nm,h):(e.enter("characterReferenceValue"),a=7,s=ia,h(d))}function h(d){if(d===59&&i){const p=e.exit("characterReferenceValue");return s===Pe&&!$a(r.sliceSerialize(p))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&i++<a?(e.consume(d),h):n(d)}}const xu={partial:!0,tokenize:ob},yu={concrete:!0,name:"codeFenced",tokenize:ub};function ub(e,t,n){const r=this,i={partial:!0,tokenize:R};let a=0,s=0,u;return o;function o(x){return l(x)}function l(x){const F=r.events[r.events.length-1];return a=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[1],!0).length:0,u=x,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(x)}function h(x){return x===u?(s++,e.consume(x),h):s<3?n(x):(e.exit("codeFencedFenceSequence"),ae(x)?oe(e,d,"whitespace")(x):d(x))}function d(x){return x===null||G(x)?(e.exit("codeFencedFence"),r.interrupt?t(x):e.check(xu,T,D)(x)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===null||G(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(x)):ae(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),oe(e,f,"whitespace")(x)):x===96&&x===u?n(x):(e.consume(x),p)}function f(x){return x===null||G(x)?d(x):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(x))}function m(x){return x===null||G(x)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(x)):x===96&&x===u?n(x):(e.consume(x),m)}function T(x){return e.attempt(i,D,C)(x)}function C(x){return e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),y}function y(x){return a>0&&ae(x)?oe(e,I,"linePrefix",a+1)(x):I(x)}function I(x){return x===null||G(x)?e.check(xu,T,D)(x):(e.enter("codeFlowValue"),S(x))}function S(x){return x===null||G(x)?(e.exit("codeFlowValue"),I(x)):(e.consume(x),S)}function D(x){return e.exit("codeFenced"),t(x)}function R(x,F,P){let U=0;return N;function N(X){return x.enter("lineEnding"),x.consume(X),x.exit("lineEnding"),Y}function Y(X){return x.enter("codeFencedFence"),ae(X)?oe(x,B,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(X):B(X)}function B(X){return X===u?(x.enter("codeFencedFenceSequence"),Q(X)):P(X)}function Q(X){return X===u?(U++,x.consume(X),Q):U>=s?(x.exit("codeFencedFenceSequence"),ae(X)?oe(x,ie,"whitespace")(X):ie(X)):P(X)}function ie(X){return X===null||G(X)?(x.exit("codeFencedFence"),F(X)):P(X)}}}function ob(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const Ii={name:"codeIndented",tokenize:cb},lb={partial:!0,tokenize:db};function cb(e,t,n){const r=this;return i;function i(l){return e.enter("codeIndented"),oe(e,a,"linePrefix",4+1)(l)}function a(l){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?s(l):n(l)}function s(l){return l===null?o(l):G(l)?e.attempt(lb,s,o)(l):(e.enter("codeFlowValue"),u(l))}function u(l){return l===null||G(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),u)}function o(l){return e.exit("codeIndented"),t(l)}}function db(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):G(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):oe(e,a,"linePrefix",4+1)(s)}function a(s){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(s):G(s)?i(s):n(s)}}const hb={name:"codeText",previous:pb,resolve:fb,tokenize:mb};function fb(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function pb(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function mb(e,t,n){let r=0,i,a;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),u(d)}function u(d){return d===96?(e.consume(d),r++,u):(e.exit("codeTextSequence"),o(d))}function o(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),o):d===96?(a=e.enter("codeTextSequence"),i=0,h(d)):G(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),o):(e.enter("codeTextData"),l(d))}function l(d){return d===null||d===32||d===96||G(d)?(e.exit("codeTextData"),o(d)):(e.consume(d),l)}function h(d){return d===96?(e.consume(d),i++,h):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(a.type="codeTextData",l(d))}}class gb{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&vn(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),vn(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),vn(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);vn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);vn(this.left,n.reverse())}}}function vn(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Sc(e){const t={};let n=-1,r,i,a,s,u,o,l;const h=new gb(e);for(;++n<h.length;){for(;n in t;)n=t[n];if(r=h.get(n),n&&r[1].type==="chunkFlow"&&h.get(n-1)[1].type==="listItemPrefix"&&(o=r[1]._tokenizer.events,a=0,a<o.length&&o[a][1].type==="lineEndingBlank"&&(a+=2),a<o.length&&o[a][1].type==="content"))for(;++a<o.length&&o[a][1].type!=="content";)o[a][1].type==="chunkText"&&(o[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,bb(h,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(s=h.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(h.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(r[1].end={...h.get(i)[1].start},u=h.slice(i,n),u.unshift(r),h.splice(i,n-i+1,u))}}return et(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!l}function bb(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const a=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const u=s.events,o=[],l={};let h,d,p=-1,f=n,m=0,T=0;const C=[T];for(;f;){for(;e.get(++i)[1]!==f;);a.push(i),f._tokenizer||(h=r.sliceStream(f),f.next||h.push(null),d&&s.defineSkip(f.start),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(h),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++p<u.length;)u[p][0]==="exit"&&u[p-1][0]==="enter"&&u[p][1].type===u[p-1][1].type&&u[p][1].start.line!==u[p][1].end.line&&(T=p+1,C.push(T),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(s.events=[],f?(f._tokenizer=void 0,f.previous=void 0):C.pop(),p=C.length;p--;){const y=u.slice(C[p],C[p+1]),I=a.pop();o.push([I,I+y.length-1]),e.splice(I,2,y)}for(o.reverse(),p=-1;++p<o.length;)l[m+o[p][0]]=m+o[p][1],m+=o[p][1]-o[p][0]-1;return l}const Eb={resolve:kb,tokenize:_b},Tb={partial:!0,tokenize:xb};function kb(e){return Sc(e),e}function _b(e,t){let n;return r;function r(u){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(u)}function i(u){return u===null?a(u):G(u)?e.check(Tb,s,a)(u):(e.consume(u),i)}function a(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function s(u){return e.consume(u),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function xb(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),oe(e,a,"linePrefix")}function a(s){if(s===null||G(s))return n(s);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function Ic(e,t,n,r,i,a,s,u,o){const l=o||Number.POSITIVE_INFINITY;let h=0;return d;function d(y){return y===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(y),e.exit(a),p):y===null||y===32||y===41||zr(y)?n(y):(e.enter(r),e.enter(s),e.enter(u),e.enter("chunkString",{contentType:"string"}),T(y))}function p(y){return y===62?(e.enter(a),e.consume(y),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),f(y))}function f(y){return y===62?(e.exit("chunkString"),e.exit(u),p(y)):y===null||y===60||G(y)?n(y):(e.consume(y),y===92?m:f)}function m(y){return y===60||y===62||y===92?(e.consume(y),f):f(y)}function T(y){return!h&&(y===null||y===41||be(y))?(e.exit("chunkString"),e.exit(u),e.exit(s),e.exit(r),t(y)):h<l&&y===40?(e.consume(y),h++,T):y===41?(e.consume(y),h--,T):y===null||y===32||y===40||zr(y)?n(y):(e.consume(y),y===92?C:T)}function C(y){return y===40||y===41||y===92?(e.consume(y),T):T(y)}}function Nc(e,t,n,r,i,a){const s=this;let u=0,o;return l;function l(f){return e.enter(r),e.enter(i),e.consume(f),e.exit(i),e.enter(a),h}function h(f){return u>999||f===null||f===91||f===93&&!o||f===94&&!u&&"_hiddenFootnoteSupport"in s.parser.constructs?n(f):f===93?(e.exit(a),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):G(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||G(f)||u++>999?(e.exit("chunkString"),h(f)):(e.consume(f),o||(o=!ae(f)),f===92?p:d)}function p(f){return f===91||f===92||f===93?(e.consume(f),u++,d):d(f)}}function vc(e,t,n,r,i,a){let s;return u;function u(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),s=p===40?41:p,o):n(p)}function o(p){return p===s?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(a),l(p))}function l(p){return p===s?(e.exit(a),o(s)):p===null?n(p):G(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),oe(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===s||p===null||G(p)?(e.exit("chunkString"),l(p)):(e.consume(p),p===92?d:h)}function d(p){return p===s||p===92?(e.consume(p),h):h(p)}}function qn(e,t){let n;return r;function r(i){return G(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ae(i)?oe(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const yb={name:"definition",tokenize:Cb},Ab={partial:!0,tokenize:wb};function Cb(e,t,n){const r=this;let i;return a;function a(f){return e.enter("definition"),s(f)}function s(f){return Nc.call(r,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function u(f){return i=ot(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),o):n(f)}function o(f){return be(f)?qn(e,l)(f):l(f)}function l(f){return Ic(e,h,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function h(f){return e.attempt(Ab,d,d)(f)}function d(f){return ae(f)?oe(e,p,"whitespace")(f):p(f)}function p(f){return f===null||G(f)?(e.exit("definition"),r.parser.defined.push(i),t(f)):n(f)}}function wb(e,t,n){return r;function r(u){return be(u)?qn(e,i)(u):n(u)}function i(u){return vc(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function a(u){return ae(u)?oe(e,s,"whitespace")(u):s(u)}function s(u){return u===null||G(u)?t(u):n(u)}}const Sb={name:"hardBreakEscape",tokenize:Ib};function Ib(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return G(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const Nb={name:"headingAtx",resolve:vb,tokenize:Lb};function vb(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},et(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function Lb(e,t,n){let r=0;return i;function i(h){return e.enter("atxHeading"),a(h)}function a(h){return e.enter("atxHeadingSequence"),s(h)}function s(h){return h===35&&r++<6?(e.consume(h),s):h===null||be(h)?(e.exit("atxHeadingSequence"),u(h)):n(h)}function u(h){return h===35?(e.enter("atxHeadingSequence"),o(h)):h===null||G(h)?(e.exit("atxHeading"),t(h)):ae(h)?oe(e,u,"whitespace")(h):(e.enter("atxHeadingText"),l(h))}function o(h){return h===35?(e.consume(h),o):(e.exit("atxHeadingSequence"),u(h))}function l(h){return h===null||h===35||be(h)?(e.exit("atxHeadingText"),u(h)):(e.consume(h),l)}}const Rb=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Au=["pre","script","style","textarea"],Ob={concrete:!0,name:"htmlFlow",resolveTo:Mb,tokenize:Bb},Db={partial:!0,tokenize:Hb},Pb={partial:!0,tokenize:Fb};function Mb(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Bb(e,t,n){const r=this;let i,a,s,u,o;return l;function l(_){return h(_)}function h(_){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(_),d}function d(_){return _===33?(e.consume(_),p):_===47?(e.consume(_),a=!0,T):_===63?(e.consume(_),i=3,r.interrupt?t:A):Ue(_)?(e.consume(_),s=String.fromCharCode(_),C):n(_)}function p(_){return _===45?(e.consume(_),i=2,f):_===91?(e.consume(_),i=5,u=0,m):Ue(_)?(e.consume(_),i=4,r.interrupt?t:A):n(_)}function f(_){return _===45?(e.consume(_),r.interrupt?t:A):n(_)}function m(_){const pe="CDATA[";return _===pe.charCodeAt(u++)?(e.consume(_),u===pe.length?r.interrupt?t:B:m):n(_)}function T(_){return Ue(_)?(e.consume(_),s=String.fromCharCode(_),C):n(_)}function C(_){if(_===null||_===47||_===62||be(_)){const pe=_===47,Ye=s.toLowerCase();return!pe&&!a&&Au.includes(Ye)?(i=1,r.interrupt?t(_):B(_)):Rb.includes(s.toLowerCase())?(i=6,pe?(e.consume(_),y):r.interrupt?t(_):B(_)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(_):a?I(_):S(_))}return _===45||Pe(_)?(e.consume(_),s+=String.fromCharCode(_),C):n(_)}function y(_){return _===62?(e.consume(_),r.interrupt?t:B):n(_)}function I(_){return ae(_)?(e.consume(_),I):N(_)}function S(_){return _===47?(e.consume(_),N):_===58||_===95||Ue(_)?(e.consume(_),D):ae(_)?(e.consume(_),S):N(_)}function D(_){return _===45||_===46||_===58||_===95||Pe(_)?(e.consume(_),D):R(_)}function R(_){return _===61?(e.consume(_),x):ae(_)?(e.consume(_),R):S(_)}function x(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(e.consume(_),o=_,F):ae(_)?(e.consume(_),x):P(_)}function F(_){return _===o?(e.consume(_),o=null,U):_===null||G(_)?n(_):(e.consume(_),F)}function P(_){return _===null||_===34||_===39||_===47||_===60||_===61||_===62||_===96||be(_)?R(_):(e.consume(_),P)}function U(_){return _===47||_===62||ae(_)?S(_):n(_)}function N(_){return _===62?(e.consume(_),Y):n(_)}function Y(_){return _===null||G(_)?B(_):ae(_)?(e.consume(_),Y):n(_)}function B(_){return _===45&&i===2?(e.consume(_),Z):_===60&&i===1?(e.consume(_),J):_===62&&i===4?(e.consume(_),Oe):_===63&&i===3?(e.consume(_),A):_===93&&i===5?(e.consume(_),Fe):G(_)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Db,He,Q)(_)):_===null||G(_)?(e.exit("htmlFlowData"),Q(_)):(e.consume(_),B)}function Q(_){return e.check(Pb,ie,He)(_)}function ie(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),X}function X(_){return _===null||G(_)?Q(_):(e.enter("htmlFlowData"),B(_))}function Z(_){return _===45?(e.consume(_),A):B(_)}function J(_){return _===47?(e.consume(_),s="",V):B(_)}function V(_){if(_===62){const pe=s.toLowerCase();return Au.includes(pe)?(e.consume(_),Oe):B(_)}return Ue(_)&&s.length<8?(e.consume(_),s+=String.fromCharCode(_),V):B(_)}function Fe(_){return _===93?(e.consume(_),A):B(_)}function A(_){return _===62?(e.consume(_),Oe):_===45&&i===2?(e.consume(_),A):B(_)}function Oe(_){return _===null||G(_)?(e.exit("htmlFlowData"),He(_)):(e.consume(_),Oe)}function He(_){return e.exit("htmlFlow"),t(_)}}function Fb(e,t,n){const r=this;return i;function i(s){return G(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function Hb(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(or,t,n)}}const Ub={name:"htmlText",tokenize:zb};function zb(e,t,n){const r=this;let i,a,s;return u;function u(A){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(A),o}function o(A){return A===33?(e.consume(A),l):A===47?(e.consume(A),R):A===63?(e.consume(A),S):Ue(A)?(e.consume(A),P):n(A)}function l(A){return A===45?(e.consume(A),h):A===91?(e.consume(A),a=0,m):Ue(A)?(e.consume(A),I):n(A)}function h(A){return A===45?(e.consume(A),f):n(A)}function d(A){return A===null?n(A):A===45?(e.consume(A),p):G(A)?(s=d,J(A)):(e.consume(A),d)}function p(A){return A===45?(e.consume(A),f):d(A)}function f(A){return A===62?Z(A):A===45?p(A):d(A)}function m(A){const Oe="CDATA[";return A===Oe.charCodeAt(a++)?(e.consume(A),a===Oe.length?T:m):n(A)}function T(A){return A===null?n(A):A===93?(e.consume(A),C):G(A)?(s=T,J(A)):(e.consume(A),T)}function C(A){return A===93?(e.consume(A),y):T(A)}function y(A){return A===62?Z(A):A===93?(e.consume(A),y):T(A)}function I(A){return A===null||A===62?Z(A):G(A)?(s=I,J(A)):(e.consume(A),I)}function S(A){return A===null?n(A):A===63?(e.consume(A),D):G(A)?(s=S,J(A)):(e.consume(A),S)}function D(A){return A===62?Z(A):S(A)}function R(A){return Ue(A)?(e.consume(A),x):n(A)}function x(A){return A===45||Pe(A)?(e.consume(A),x):F(A)}function F(A){return G(A)?(s=F,J(A)):ae(A)?(e.consume(A),F):Z(A)}function P(A){return A===45||Pe(A)?(e.consume(A),P):A===47||A===62||be(A)?U(A):n(A)}function U(A){return A===47?(e.consume(A),Z):A===58||A===95||Ue(A)?(e.consume(A),N):G(A)?(s=U,J(A)):ae(A)?(e.consume(A),U):Z(A)}function N(A){return A===45||A===46||A===58||A===95||Pe(A)?(e.consume(A),N):Y(A)}function Y(A){return A===61?(e.consume(A),B):G(A)?(s=Y,J(A)):ae(A)?(e.consume(A),Y):U(A)}function B(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),i=A,Q):G(A)?(s=B,J(A)):ae(A)?(e.consume(A),B):(e.consume(A),ie)}function Q(A){return A===i?(e.consume(A),i=void 0,X):A===null?n(A):G(A)?(s=Q,J(A)):(e.consume(A),Q)}function ie(A){return A===null||A===34||A===39||A===60||A===61||A===96?n(A):A===47||A===62||be(A)?U(A):(e.consume(A),ie)}function X(A){return A===47||A===62||be(A)?U(A):n(A)}function Z(A){return A===62?(e.consume(A),e.exit("htmlTextData"),e.exit("htmlText"),t):n(A)}function J(A){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),V}function V(A){return ae(A)?oe(e,Fe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):Fe(A)}function Fe(A){return e.enter("htmlTextData"),s(A)}}const qa={name:"labelEnd",resolveAll:jb,resolveTo:Vb,tokenize:Wb},$b={tokenize:Gb},Yb={tokenize:Qb},qb={tokenize:Kb};function jb(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&et(e,0,e.length,n),e}function Vb(e,t){let n=e.length,r=0,i,a,s,u;for(;n--;)if(i=e[n][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const o={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[a][1].start},end:{...e[s][1].end}},h={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[s-2][1].start}};return u=[["enter",o,t],["enter",l,t]],u=it(u,e.slice(a+1,a+r+3)),u=it(u,[["enter",h,t]]),u=it(u,oi(t.parser.constructs.insideSpan.null,e.slice(a+r+4,s-3),t)),u=it(u,[["exit",h,t],e[s-2],e[s-1],["exit",l,t]]),u=it(u,e.slice(s+1)),u=it(u,[["exit",o,t]]),et(e,a,e.length,u),e}function Wb(e,t,n){const r=this;let i=r.events.length,a,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return u;function u(p){return a?a._inactive?d(p):(s=r.parser.defined.includes(ot(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),o):n(p)}function o(p){return p===40?e.attempt($b,h,s?h:d)(p):p===91?e.attempt(Yb,h,s?l:d)(p):s?h(p):d(p)}function l(p){return e.attempt(qb,h,d)(p)}function h(p){return t(p)}function d(p){return a._balanced=!0,n(p)}}function Gb(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return be(d)?qn(e,a)(d):a(d)}function a(d){return d===41?h(d):Ic(e,s,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return be(d)?qn(e,o)(d):h(d)}function u(d){return n(d)}function o(d){return d===34||d===39||d===40?vc(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):h(d)}function l(d){return be(d)?qn(e,h)(d):h(d)}function h(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function Qb(e,t,n){const r=this;return i;function i(u){return Nc.call(r,e,a,s,"reference","referenceMarker","referenceString")(u)}function a(u){return r.parser.defined.includes(ot(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(u):n(u)}function s(u){return n(u)}}function Kb(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const Xb={name:"labelStartImage",resolveAll:qa.resolveAll,tokenize:Zb};function Zb(e,t,n){const r=this;return i;function i(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),a}function a(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),s):n(u)}function s(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const Jb={name:"labelStartLink",resolveAll:qa.resolveAll,tokenize:e2};function e2(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Ni={name:"lineEnding",tokenize:t2};function t2(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),oe(e,t,"linePrefix")}}const Ir={name:"thematicBreak",tokenize:n2};function n2(e,t,n){let r=0,i;return a;function a(l){return e.enter("thematicBreak"),s(l)}function s(l){return i=l,u(l)}function u(l){return l===i?(e.enter("thematicBreakSequence"),o(l)):r>=3&&(l===null||G(l))?(e.exit("thematicBreak"),t(l)):n(l)}function o(l){return l===i?(e.consume(l),r++,o):(e.exit("thematicBreakSequence"),ae(l)?oe(e,u,"whitespace")(l):u(l))}}const je={continuation:{tokenize:s2},exit:o2,name:"list",tokenize:a2},r2={partial:!0,tokenize:l2},i2={partial:!0,tokenize:u2};function a2(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return u;function u(f){const m=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:ia(f)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Ir,n,l)(f):l(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),o(f)}return n(f)}function o(f){return ia(f)&&++s<10?(e.consume(f),o):(!r.interrupt||s<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),l(f)):n(f)}function l(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(or,r.interrupt?n:h,e.attempt(r2,p,d))}function h(f){return r.containerState.initialBlankLine=!0,a++,p(f)}function d(f){return ae(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),p):n(f)}function p(f){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function s2(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(or,i,a);function i(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,oe(e,t,"listItemIndent",r.containerState.size+1)(u)}function a(u){return r.containerState.furtherBlankLines||!ae(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(i2,t,s)(u))}function s(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,oe(e,e.attempt(je,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function u2(e,t,n){const r=this;return oe(e,i,"listItemIndent",r.containerState.size+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function o2(e){e.exit(this.containerState.type)}function l2(e,t,n){const r=this;return oe(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const s=r.events[r.events.length-1];return!ae(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Cu={name:"setextUnderline",resolveTo:c2,tokenize:d2};function c2(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function d2(e,t,n){const r=this;let i;return a;function a(l){let h=r.events.length,d;for(;h--;)if(r.events[h][1].type!=="lineEnding"&&r.events[h][1].type!=="linePrefix"&&r.events[h][1].type!=="content"){d=r.events[h][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=l,s(l)):n(l)}function s(l){return e.enter("setextHeadingLineSequence"),u(l)}function u(l){return l===i?(e.consume(l),u):(e.exit("setextHeadingLineSequence"),ae(l)?oe(e,o,"lineSuffix")(l):o(l))}function o(l){return l===null||G(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const h2={tokenize:k2,partial:!0};function f2(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:b2,continuation:{tokenize:E2},exit:T2}},text:{91:{name:"gfmFootnoteCall",tokenize:g2},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:p2,resolveTo:m2}}}}function p2(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const o=r.events[i][1];if(o.type==="labelImage"){s=o;break}if(o.type==="gfmFootnoteCall"||o.type==="labelLink"||o.type==="label"||o.type==="image"||o.type==="link")break}return u;function u(o){if(!s||!s._balanced)return n(o);const l=ot(r.sliceSerialize({start:s.end,end:r.now()}));return l.codePointAt(0)!==94||!a.includes(l.slice(1))?n(o):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o))}}function m2(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},u=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...u),e}function g2(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return u;function u(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),o}function o(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(d){if(a>999||d===93&&!s||d===null||d===91||be(d))return n(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(ot(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return be(d)||(s=!0),a++,e.consume(d),d===92?h:l}function h(d){return d===91||d===92||d===93?(e.consume(d),a++,l):l(d)}}function b2(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,u;return o;function o(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):n(m)}function h(m){if(s>999||m===93&&!u||m===null||m===91||be(m))return n(m);if(m===93){e.exit("chunkString");const T=e.exit("gfmFootnoteDefinitionLabelString");return a=ot(r.sliceSerialize(T)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return be(m)||(u=!0),s++,e.consume(m),m===92?d:h}function d(m){return m===91||m===92||m===93?(e.consume(m),s++,h):h(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(a)||i.push(a),oe(e,f,"gfmFootnoteDefinitionWhitespace")):n(m)}function f(m){return t(m)}}function E2(e,t,n){return e.check(or,t,e.attempt(h2,t,n))}function T2(e){e.exit("gfmFootnoteDefinition")}function k2(e,t,n){const r=this;return oe(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function _2(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,u){let o=-1;for(;++o<s.length;)if(s[o][0]==="enter"&&s[o][1].type==="strikethroughSequenceTemporary"&&s[o][1]._close){let l=o;for(;l--;)if(s[l][0]==="exit"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._open&&s[o][1].end.offset-s[o][1].start.offset===s[l][1].end.offset-s[l][1].start.offset){s[o][1].type="strikethroughSequence",s[l][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},s[l][1].start),end:Object.assign({},s[o][1].end)},d={type:"strikethroughText",start:Object.assign({},s[l][1].end),end:Object.assign({},s[o][1].start)},p=[["enter",h,u],["enter",s[l][1],u],["exit",s[l][1],u],["enter",d,u]],f=u.parser.constructs.insideSpan.null;f&&et(p,p.length,0,oi(f,s.slice(l+1,o),u)),et(p,p.length,0,[["exit",d,u],["enter",s[o][1],u],["exit",s[o][1],u],["exit",h,u]]),et(s,l-1,o-l+3,p),o=l+p.length-2;break}}for(o=-1;++o<s.length;)s[o][1].type==="strikethroughSequenceTemporary"&&(s[o][1].type="data");return s}function a(s,u,o){const l=this.previous,h=this.events;let d=0;return p;function p(m){return l===126&&h[h.length-1][1].type!=="characterEscape"?o(m):(s.enter("strikethroughSequenceTemporary"),f(m))}function f(m){const T=fn(l);if(m===126)return d>1?o(m):(s.consume(m),d++,f);if(d<2&&!n)return o(m);const C=s.exit("strikethroughSequenceTemporary"),y=fn(m);return C._open=!y||y===2&&!!T,C._close=!T||T===2&&!!y,u(m)}}}class x2{constructor(){this.map=[]}add(t,n,r){y2(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function y2(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function A2(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function C2(){return{flow:{null:{name:"table",tokenize:w2,resolveAll:S2}}}}function w2(e,t,n){const r=this;let i=0,a=0,s;return u;function u(N){let Y=r.events.length-1;for(;Y>-1;){const ie=r.events[Y][1].type;if(ie==="lineEnding"||ie==="linePrefix")Y--;else break}const B=Y>-1?r.events[Y][1].type:null,Q=B==="tableHead"||B==="tableRow"?x:o;return Q===x&&r.parser.lazy[r.now().line]?n(N):Q(N)}function o(N){return e.enter("tableHead"),e.enter("tableRow"),l(N)}function l(N){return N===124||(s=!0,a+=1),h(N)}function h(N){return N===null?n(N):G(N)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),f):n(N):ae(N)?oe(e,h,"whitespace")(N):(a+=1,s&&(s=!1,i+=1),N===124?(e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),s=!0,h):(e.enter("data"),d(N)))}function d(N){return N===null||N===124||be(N)?(e.exit("data"),h(N)):(e.consume(N),N===92?p:d)}function p(N){return N===92||N===124?(e.consume(N),d):d(N)}function f(N){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(N):(e.enter("tableDelimiterRow"),s=!1,ae(N)?oe(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):m(N))}function m(N){return N===45||N===58?C(N):N===124?(s=!0,e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),T):R(N)}function T(N){return ae(N)?oe(e,C,"whitespace")(N):C(N)}function C(N){return N===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(N),e.exit("tableDelimiterMarker"),y):N===45?(a+=1,y(N)):N===null||G(N)?D(N):R(N)}function y(N){return N===45?(e.enter("tableDelimiterFiller"),I(N)):R(N)}function I(N){return N===45?(e.consume(N),I):N===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(N),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(N))}function S(N){return ae(N)?oe(e,D,"whitespace")(N):D(N)}function D(N){return N===124?m(N):N===null||G(N)?!s||i!==a?R(N):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(N)):R(N)}function R(N){return n(N)}function x(N){return e.enter("tableRow"),F(N)}function F(N){return N===124?(e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),F):N===null||G(N)?(e.exit("tableRow"),t(N)):ae(N)?oe(e,F,"whitespace")(N):(e.enter("data"),P(N))}function P(N){return N===null||N===124||be(N)?(e.exit("data"),F(N)):(e.consume(N),N===92?U:P)}function U(N){return N===92||N===124?(e.consume(N),P):P(N)}}function S2(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],u=!1,o=0,l,h,d;const p=new x2;for(;++n<e.length;){const f=e[n],m=f[1];f[0]==="enter"?m.type==="tableHead"?(u=!1,o!==0&&(wu(p,t,o,l,h),h=void 0,o=0),l={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(n,0,[["enter",l,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(r=!0,d=void 0,a=[0,0,0,0],s=[0,n+1,0,0],u&&(u=!1,h={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(n,0,[["enter",h,t]])),i=m.type==="tableDelimiterRow"?2:h?3:1):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],d=pr(p,t,a,i,void 0,d),a=[0,0,0,0]),s[2]=n)):m.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(s[0]=s[1],d=pr(p,t,a,i,void 0,d)),a=s,s=[a[1],n,0,0])):m.type==="tableHead"?(u=!0,o=n):m.type==="tableRow"||m.type==="tableDelimiterRow"?(o=n,a[1]!==0?(s[0]=s[1],d=pr(p,t,a,i,n,d)):s[1]!==0&&(d=pr(p,t,s,i,n,d)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(s[3]=n)}for(o!==0&&wu(p,t,o,l,h),p.consume(t.events),n=-1;++n<t.events.length;){const f=t.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=A2(t.events,n))}return e}function pr(e,t,n,r,i,a){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";n[0]!==0&&(a.end=Object.assign({},rn(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const o=rn(t.events,n[1]);if(a={type:s,start:Object.assign({},o),end:Object.assign({},o)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const l=rn(t.events,n[2]),h=rn(t.events,n[3]),d={type:u,start:Object.assign({},l),end:Object.assign({},h)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const p=t.events[n[2]],f=t.events[n[3]];if(p[1].end=Object.assign({},f[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const m=n[2]+1,T=n[3]-n[2]-1;e.add(m,T,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(a.end=Object.assign({},rn(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function wu(e,t,n,r,i){const a=[],s=rn(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function rn(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const I2={name:"tasklistCheck",tokenize:v2};function N2(){return{text:{91:I2}}}function v2(e,t,n){const r=this;return i;function i(o){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(o):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(o),e.exit("taskListCheckMarker"),a)}function a(o){return be(o)?(e.enter("taskListCheckValueUnchecked"),e.consume(o),e.exit("taskListCheckValueUnchecked"),s):o===88||o===120?(e.enter("taskListCheckValueChecked"),e.consume(o),e.exit("taskListCheckValueChecked"),s):n(o)}function s(o){return o===93?(e.enter("taskListCheckMarker"),e.consume(o),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):n(o)}function u(o){return G(o)?t(o):ae(o)?e.check({tokenize:L2},t,n)(o):n(o)}}function L2(e,t,n){return oe(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function R2(e){return mc([$g(),f2(),_2(e),C2(),N2()])}const O2={};function D2(e){const t=this,n=e||O2,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(R2(n)),a.push(Mg()),s.push(Bg(n))}var P2=Object.defineProperty,M2=Object.defineProperties,B2=Object.getOwnPropertyDescriptors,Su=Object.getOwnPropertySymbols,F2=Object.prototype.hasOwnProperty,H2=Object.prototype.propertyIsEnumerable,Iu=(e,t,n)=>t in e?P2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lc=(e,t)=>{for(var n in t||(t={}))F2.call(t,n)&&Iu(e,n,t[n]);if(Su)for(var n of Su(t))H2.call(t,n)&&Iu(e,n,t[n]);return e},Rc=(e,t)=>M2(e,B2(t)),U2=/(\*\*)([^*]*\*?)$/,z2=/(__)([^_]*?)$/,$2=/(\*\*\*)([^*]*?)$/,Y2=/(\*)([^*]*?)$/,q2=/(_)([^_]*?)$/,j2=/(`)([^`]*?)$/,V2=/(~~)([^~]*?)$/,Xt=/^[\s_~*`]*$/,Oc=/^[\s]*[-*+][\s]+$/,W2=/[\p{L}\p{N}_]/u,G2=/^```[^`\n]*```?$/,Q2=/^\*{4,}$/,K2=/(__)([^_]+)_$/,X2=/(~~)([^~]+)~$/,Z2=/__/g,Nu=/~~/g,Dt=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95?!0:W2.test(e)},pn=(e,t)=>{let n=!1;for(let r=0;r<t;r+=1)e[r]==="`"&&e[r+1]==="`"&&e[r+2]==="`"&&(n=!n,r+=2);return n},J2=(e,t)=>{let n=1;for(let r=t-1;r>=0;r-=1)if(e[r]==="]")n+=1;else if(e[r]==="["&&(n-=1,n===0))return r;return-1},Dc=(e,t)=>{let n=1;for(let r=t+1;r<e.length;r+=1)if(e[r]==="[")n+=1;else if(e[r]==="]"&&(n-=1,n===0))return r;return-1},li=(e,t)=>{let n=!1,r=!1;for(let i=0;i<e.length&&i<t;i+=1){if(e[i]==="\\"&&e[i+1]==="$"){i+=1;continue}e[i]==="$"&&(e[i+1]==="$"?(r=!r,i+=1,n=!1):r||(n=!n))}return n||r},eE=(e,t)=>{for(let n=t;n<e.length;n+=1){if(e[n]===")")return!0;if(e[n]===`
18
- `)return!1}return!1},Pc=(e,t)=>{for(let n=t-1;n>=0;n-=1){if(e[n]===")")return!1;if(e[n]==="(")return n>0&&e[n-1]==="]"?eE(e,t):!1;if(e[n]===`
19
- `)return!1}return!1},ja=(e,t,n)=>{let r=0;for(let o=t-1;o>=0;o-=1)if(e[o]===`
15
+ `,...a.current()});return/^[\t ]/.test(l)&&(l=Jn(l.charCodeAt(0))+l.slice(1)),l=l?s+" "+l:s,n.options.closeAtx&&(l+=" "+s),o(),u(),l}ac.peek=ag;function ac(e){return e.value||""}function ag(){return"<"}sc.peek=sg;function sc(e,t,n,r){const i=Ya(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let u=n.enter("label");const o=n.createTracker(r);let l=o.move("![");return l+=o.move(n.safe(e.alt,{before:l,after:"]",...o.current()})),l+=o.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),l+=o.move("<"),l+=o.move(n.safe(e.url,{before:l,after:">",...o.current()})),l+=o.move(">")):(u=n.enter("destinationRaw"),l+=o.move(n.safe(e.url,{before:l,after:e.title?" ":")",...o.current()}))),u(),e.title&&(u=n.enter(`title${a}`),l+=o.move(" "+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),u()),l+=o.move(")"),s(),l}function sg(){return"!"}uc.peek=ug;function uc(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const u=n.createTracker(r);let o=u.move("![");const l=n.safe(e.alt,{before:o,after:"]",...u.current()});o+=u.move(l+"]["),s();const h=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:o,after:"]",...u.current()});return s(),n.stack=h,a(),i==="full"||!l||l!==d?o+=u.move(d+"]"):i==="shortcut"?o=o.slice(0,-1):o+=u.move("]"),o}function ug(){return"!"}oc.peek=og;function oc(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const s=n.unsafe[a],u=n.compilePattern(s);let o;if(s.atBreak)for(;o=u.exec(r);){let l=o.index;r.charCodeAt(l)===10&&r.charCodeAt(l-1)===13&&l--,r=r.slice(0,l)+" "+r.slice(o.index+1)}}return i+r+i}function og(){return"`"}function lc(e,t){const n=qa(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}cc.peek=lg;function cc(e,t,n,r){const i=Ya(n),a=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let u,o;if(lc(e,n)){const h=n.stack;n.stack=[],u=n.enter("autolink");let d=s.move("<");return d+=s.move(n.containerPhrasing(e,{before:d,after:">",...s.current()})),d+=s.move(">"),u(),n.stack=h,d}u=n.enter("link"),o=n.enter("label");let l=s.move("[");return l+=s.move(n.containerPhrasing(e,{before:l,after:"](",...s.current()})),l+=s.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),l+=s.move("<"),l+=s.move(n.safe(e.url,{before:l,after:">",...s.current()})),l+=s.move(">")):(o=n.enter("destinationRaw"),l+=s.move(n.safe(e.url,{before:l,after:e.title?" ":")",...s.current()}))),o(),e.title&&(o=n.enter(`title${a}`),l+=s.move(" "+i),l+=s.move(n.safe(e.title,{before:l,after:i,...s.current()})),l+=s.move(i),o()),l+=s.move(")"),u(),l}function lg(e,t,n){return lc(e,n)?"<":"["}dc.peek=cg;function dc(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const u=n.createTracker(r);let o=u.move("[");const l=n.containerPhrasing(e,{before:o,after:"]",...u.current()});o+=u.move(l+"]["),s();const h=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:o,after:"]",...u.current()});return s(),n.stack=h,a(),i==="full"||!l||l!==d?o+=u.move(d+"]"):i==="shortcut"?o=o.slice(0,-1):o+=u.move("]"),o}function cg(){return"["}function ja(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function dg(e){const t=ja(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function hg(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function hc(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function fg(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?hg(n):ja(n);const u=e.ordered?s==="."?")":".":dg(n);let o=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&h&&(!h.children||!h.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(o=!0),hc(n)===s&&h){let d=-1;for(;++d<e.children.length;){const p=e.children[d];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){o=!0;break}}}}o&&(s=u),n.bulletCurrent=s;const l=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=a,i(),l}function pg(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function mg(e,t,n,r){const i=pg(n);let a=n.bulletCurrent||ja(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const u=n.createTracker(r);u.move(a+" ".repeat(s-a.length)),u.shift(s);const o=n.enter("listItem"),l=n.indentLines(n.containerFlow(e,u.current()),h);return o(),l;function h(d,p,f){return p?(f?"":" ".repeat(s))+d:(f?a:a+" ".repeat(s-a.length))+d}}function gg(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),i(),s}const bg=ti(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Eg(e,t,n,r){return(e.children.some(function(s){return bg(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function kg(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}fc.peek=Tg;function fc(e,t,n,r){const i=kg(n),a=n.enter("strong"),s=n.createTracker(r),u=s.move(i+i);let o=s.move(n.containerPhrasing(e,{after:i,before:u,...s.current()}));const l=o.charCodeAt(0),h=jr(r.before.charCodeAt(r.before.length-1),l,i);h.inside&&(o=Jn(l)+o.slice(1));const d=o.charCodeAt(o.length-1),p=jr(r.after.charCodeAt(0),d,i);p.inside&&(o=o.slice(0,-1)+Jn(d));const f=s.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:p.outside,before:h.outside},u+o+f}function Tg(e,t,n){return n.options.strong||"*"}function _g(e,t,n,r){return n.safe(e.value,r)}function xg(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function yg(e,t,n){const r=(hc(n)+(n.options.ruleSpaces?" ":"")).repeat(xg(n));return n.options.ruleSpaces?r.slice(0,-1):r}const pc={blockquote:qm,break:bu,code:Km,definition:Zm,emphasis:rc,hardBreak:bu,heading:ig,html:ac,image:sc,imageReference:uc,inlineCode:oc,link:cc,linkReference:dc,list:fg,listItem:mg,paragraph:gg,root:Eg,strong:fc,text:_g,thematicBreak:yg},ku=document.createElement("i");function Va(e){const t="&"+e+";";ku.innerHTML=t;const n=ku.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function mc(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const Ag=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Cg(e){return e.replace(Ag,wg)}function wg(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return mc(n.slice(a?2:1),a?16:10)}return Va(n)||e}function Sg(){return{enter:{table:Ig,tableData:Tu,tableHeader:Tu,tableRow:vg},exit:{codeText:Lg,table:Ng,tableData:vi,tableHeader:vi,tableRow:vi}}}function Ig(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Ng(e){this.exit(e),this.data.inTable=void 0}function vg(e){this.enter({type:"tableRow",children:[]},e)}function vi(e){this.exit(e)}function Tu(e){this.enter({type:"tableCell",children:[]},e)}function Lg(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Rg));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Rg(e,t){return t==="|"?t:e}function Og(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
16
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:s,tableCell:o,tableRow:u}};function s(f,m,k,C){return l(h(f,k,C),f.align)}function u(f,m,k,C){const y=d(f,k,C),I=l([y]);return I.slice(0,I.indexOf(`
17
+ `))}function o(f,m,k,C){const y=k.enter("tableCell"),I=k.enter("phrasing"),S=k.containerPhrasing(f,{...C,before:a,after:a});return I(),y(),S}function l(f,m){return $m(f,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function h(f,m,k){const C=f.children;let y=-1;const I=[],S=m.enter("table");for(;++y<C.length;)I[y]=d(C[y],m,k);return S(),I}function d(f,m,k){const C=f.children;let y=-1;const I=[],S=m.enter("tableRow");for(;++y<C.length;)I[y]=o(C[y],f,m,k);return S(),I}function p(f,m,k){let C=pc.inlineCode(f,m,k);return k.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function Dg(){return{exit:{taskListCheckValueChecked:_u,taskListCheckValueUnchecked:_u,paragraph:Mg}}}function Pg(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Bg}}}function _u(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Mg(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,s;for(;++a<i.length;){const u=i[a];if(u.type==="paragraph"){s=u;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Bg(e,t,n,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",u=n.createTracker(r);a&&u.move(s);let o=pc.listItem(e,t,n,{...r,...u.current()});return a&&(o=o.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),o;function l(h){return h+s}}function Fg(){return[dm(),Rm(),Mm(),Sg(),Dg()]}function Hg(e){return{extensions:[hm(),Om(e),Bm(),Og(e),Pg()]}}function et(e,t,n,r){const i=e.length;let a=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a<r.length;)s=r.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function it(e,t){return e.length>0?(et(e,e.length,0,t),e):t}const xu={}.hasOwnProperty;function gc(e){const t={};let n=-1;for(;++n<e.length;)Ug(t,e[n]);return t}function Ug(e,t){let n;for(n in t){const i=(xu.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let s;if(a)for(s in a){xu.call(i,s)||(i[s]=[]);const u=a[s];zg(i[s],Array.isArray(u)?u:u?[u]:[])}}}function zg(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);et(e,0,0,r)}const $g={tokenize:Gg,partial:!0},bc={tokenize:Qg,partial:!0},Ec={tokenize:Kg,partial:!0},kc={tokenize:Xg,partial:!0},Yg={tokenize:Zg,partial:!0},Tc={name:"wwwAutolink",tokenize:Vg,previous:xc},_c={name:"protocolAutolink",tokenize:Wg,previous:yc},At={name:"emailAutolink",tokenize:jg,previous:Ac},bt={};function qg(){return{text:bt}}let zt=48;for(;zt<123;)bt[zt]=At,zt++,zt===58?zt=65:zt===91&&(zt=97);bt[43]=At;bt[45]=At;bt[46]=At;bt[95]=At;bt[72]=[At,_c];bt[104]=[At,_c];bt[87]=[At,Tc];bt[119]=[At,Tc];function jg(e,t,n){const r=this;let i,a;return s;function s(d){return!oa(d)||!Ac.call(r,r.previous)||Wa(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(d))}function u(d){return oa(d)?(e.consume(d),u):d===64?(e.consume(d),o):n(d)}function o(d){return d===46?e.check(Yg,h,l)(d):d===45||d===95||Me(d)?(a=!0,e.consume(d),o):h(d)}function l(d){return e.consume(d),i=!0,o}function h(d){return a&&i&&ze(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function Vg(e,t,n){const r=this;return i;function i(s){return s!==87&&s!==119||!xc.call(r,r.previous)||Wa(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check($g,e.attempt(bc,e.attempt(Ec,a),n),n)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function Wg(e,t,n){const r=this;let i="",a=!1;return s;function s(d){return(d===72||d===104)&&yc.call(r,r.previous)&&!Wa(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),u):n(d)}function u(d){if(ze(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),u;if(d===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(d),o}return n(d)}function o(d){return d===47?(e.consume(d),a?l:(a=!0,o)):n(d)}function l(d){return d===null||qr(d)||be(d)||Qt(d)||ci(d)?n(d):e.attempt(bc,e.attempt(Ec,h),n)(d)}function h(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function Gg(e,t,n){let r=0;return i;function i(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),i):s===46&&r===3?(e.consume(s),a):n(s)}function a(s){return s===null?n(s):t(s)}}function Qg(e,t,n){let r,i,a;return s;function s(l){return l===46||l===95?e.check(kc,o,u)(l):l===null||be(l)||Qt(l)||l!==45&&ci(l)?o(l):(a=!0,e.consume(l),s)}function u(l){return l===95?r=!0:(i=r,r=void 0),e.consume(l),s}function o(l){return i||r||!a?n(l):t(l)}}function Kg(e,t){let n=0,r=0;return i;function i(s){return s===40?(n++,e.consume(s),i):s===41&&r<n?a(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(kc,t,a)(s):s===null||be(s)||Qt(s)?t(s):(e.consume(s),i)}function a(s){return s===41&&r++,e.consume(s),i}}function Xg(e,t,n){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),r):u===38?(e.consume(u),a):u===93?(e.consume(u),i):u===60||u===null||be(u)||Qt(u)?t(u):n(u)}function i(u){return u===null||u===40||u===91||be(u)||Qt(u)?t(u):r(u)}function a(u){return ze(u)?s(u):n(u)}function s(u){return u===59?(e.consume(u),r):ze(u)?(e.consume(u),s):n(u)}}function Zg(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return Me(a)?n(a):t(a)}}function xc(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||be(e)}function yc(e){return!ze(e)}function Ac(e){return!(e===47||oa(e))}function oa(e){return e===43||e===45||e===46||e===95||Me(e)}function Wa(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function xn(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let s="";if(a===37&&Me(e.charCodeAt(n+1))&&Me(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){const u=e.charCodeAt(n+1);a<56320&&u>56319&&u<57344?(s=String.fromCharCode(a,u),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function di(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const la={name:"attention",resolveAll:Jg,tokenize:eb};function Jg(e,t){let n=-1,r,i,a,s,u,o,l,h;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;o=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},p={...e[n][1].start};yu(d,-o),yu(p,o),s={type:o>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},u={type:o>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},a={type:o>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:o>1?"strong":"emphasis",start:{...s.start},end:{...u.end}},e[r][1].end={...s.start},e[n][1].start={...u.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=it(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=it(l,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),l=it(l,di(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=it(l,[["exit",a,t],["enter",u,t],["exit",u,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(h=2,l=it(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):h=0,et(e,r-1,n-r+3,l),n=r+l.length-h-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function eb(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=pn(r);let a;return s;function s(o){return a=o,e.enter("attentionSequence"),u(o)}function u(o){if(o===a)return e.consume(o),u;const l=e.exit("attentionSequence"),h=pn(o),d=!h||h===2&&i||n.includes(o),p=!i||i===2&&h||n.includes(r);return l._open=!!(a===42?d:d&&(i||!p)),l._close=!!(a===42?p:p&&(h||!d)),t(o)}}function yu(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const tb={name:"autolink",tokenize:nb};function nb(e,t,n){let r=0;return i;function i(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(f){return ze(f)?(e.consume(f),s):f===64?n(f):l(f)}function s(f){return f===43||f===45||f===46||Me(f)?(r=1,u(f)):l(f)}function u(f){return f===58?(e.consume(f),r=0,o):(f===43||f===45||f===46||Me(f))&&r++<32?(e.consume(f),u):(r=0,l(f))}function o(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||qr(f)?n(f):(e.consume(f),o)}function l(f){return f===64?(e.consume(f),h):rm(f)?(e.consume(f),l):n(f)}function h(f){return Me(f)?d(f):n(f)}function d(f){return f===46?(e.consume(f),r=0,h):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):p(f)}function p(f){if((f===45||Me(f))&&r++<63){const m=f===45?p:d;return e.consume(f),m}return n(f)}}function oe(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(o){return ae(o)?(e.enter(n),u(o)):t(o)}function u(o){return ae(o)&&a++<i?(e.consume(o),u):(e.exit(n),t(o))}}const lr={partial:!0,tokenize:rb};function rb(e,t,n){return r;function r(a){return ae(a)?oe(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||G(a)?t(a):n(a)}}const Cc={continuation:{tokenize:ab},exit:sb,name:"blockQuote",tokenize:ib};function ib(e,t,n){const r=this;return i;function i(s){if(s===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a}return n(s)}function a(s){return ae(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function ab(e,t,n){const r=this;return i;function i(s){return ae(s)?oe(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(Cc,t,n)(s)}}function sb(e){e.exit("blockQuote")}const wc={name:"characterEscape",tokenize:ub};function ub(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return am(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const Sc={name:"characterReference",tokenize:ob};function ob(e,t,n){const r=this;let i=0,a,s;return u;function u(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),o}function o(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,s=Me,h(d))}function l(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=im,h):(e.enter("characterReferenceValue"),a=7,s=ua,h(d))}function h(d){if(d===59&&i){const p=e.exit("characterReferenceValue");return s===Me&&!Va(r.sliceSerialize(p))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&i++<a?(e.consume(d),h):n(d)}}const Au={partial:!0,tokenize:cb},Cu={concrete:!0,name:"codeFenced",tokenize:lb};function lb(e,t,n){const r=this,i={partial:!0,tokenize:R};let a=0,s=0,u;return o;function o(x){return l(x)}function l(x){const H=r.events[r.events.length-1];return a=H&&H[1].type==="linePrefix"?H[2].sliceSerialize(H[1],!0).length:0,u=x,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(x)}function h(x){return x===u?(s++,e.consume(x),h):s<3?n(x):(e.exit("codeFencedFenceSequence"),ae(x)?oe(e,d,"whitespace")(x):d(x))}function d(x){return x===null||G(x)?(e.exit("codeFencedFence"),r.interrupt?t(x):e.check(Au,k,D)(x)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===null||G(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(x)):ae(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),oe(e,f,"whitespace")(x)):x===96&&x===u?n(x):(e.consume(x),p)}function f(x){return x===null||G(x)?d(x):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(x))}function m(x){return x===null||G(x)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(x)):x===96&&x===u?n(x):(e.consume(x),m)}function k(x){return e.attempt(i,D,C)(x)}function C(x){return e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),y}function y(x){return a>0&&ae(x)?oe(e,I,"linePrefix",a+1)(x):I(x)}function I(x){return x===null||G(x)?e.check(Au,k,D)(x):(e.enter("codeFlowValue"),S(x))}function S(x){return x===null||G(x)?(e.exit("codeFlowValue"),I(x)):(e.consume(x),S)}function D(x){return e.exit("codeFenced"),t(x)}function R(x,H,B){let U=0;return N;function N(X){return x.enter("lineEnding"),x.consume(X),x.exit("lineEnding"),Y}function Y(X){return x.enter("codeFencedFence"),ae(X)?oe(x,M,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(X):M(X)}function M(X){return X===u?(x.enter("codeFencedFenceSequence"),Q(X)):B(X)}function Q(X){return X===u?(U++,x.consume(X),Q):U>=s?(x.exit("codeFencedFenceSequence"),ae(X)?oe(x,ie,"whitespace")(X):ie(X)):B(X)}function ie(X){return X===null||G(X)?(x.exit("codeFencedFence"),H(X)):B(X)}}}function cb(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const Li={name:"codeIndented",tokenize:hb},db={partial:!0,tokenize:fb};function hb(e,t,n){const r=this;return i;function i(l){return e.enter("codeIndented"),oe(e,a,"linePrefix",4+1)(l)}function a(l){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?s(l):n(l)}function s(l){return l===null?o(l):G(l)?e.attempt(db,s,o)(l):(e.enter("codeFlowValue"),u(l))}function u(l){return l===null||G(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),u)}function o(l){return e.exit("codeIndented"),t(l)}}function fb(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):G(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):oe(e,a,"linePrefix",4+1)(s)}function a(s){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(s):G(s)?i(s):n(s)}}const pb={name:"codeText",previous:gb,resolve:mb,tokenize:bb};function mb(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function gb(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function bb(e,t,n){let r=0,i,a;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),u(d)}function u(d){return d===96?(e.consume(d),r++,u):(e.exit("codeTextSequence"),o(d))}function o(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),o):d===96?(a=e.enter("codeTextSequence"),i=0,h(d)):G(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),o):(e.enter("codeTextData"),l(d))}function l(d){return d===null||d===32||d===96||G(d)?(e.exit("codeTextData"),o(d)):(e.consume(d),l)}function h(d){return d===96?(e.consume(d),i++,h):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(a.type="codeTextData",l(d))}}class Eb{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ln(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ln(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ln(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Ln(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ln(this.left,n.reverse())}}}function Ln(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Ic(e){const t={};let n=-1,r,i,a,s,u,o,l;const h=new Eb(e);for(;++n<h.length;){for(;n in t;)n=t[n];if(r=h.get(n),n&&r[1].type==="chunkFlow"&&h.get(n-1)[1].type==="listItemPrefix"&&(o=r[1]._tokenizer.events,a=0,a<o.length&&o[a][1].type==="lineEndingBlank"&&(a+=2),a<o.length&&o[a][1].type==="content"))for(;++a<o.length&&o[a][1].type!=="content";)o[a][1].type==="chunkText"&&(o[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,kb(h,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(s=h.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(h.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(r[1].end={...h.get(i)[1].start},u=h.slice(i,n),u.unshift(r),h.splice(i,n-i+1,u))}}return et(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!l}function kb(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const a=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const u=s.events,o=[],l={};let h,d,p=-1,f=n,m=0,k=0;const C=[k];for(;f;){for(;e.get(++i)[1]!==f;);a.push(i),f._tokenizer||(h=r.sliceStream(f),f.next||h.push(null),d&&s.defineSkip(f.start),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(h),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++p<u.length;)u[p][0]==="exit"&&u[p-1][0]==="enter"&&u[p][1].type===u[p-1][1].type&&u[p][1].start.line!==u[p][1].end.line&&(k=p+1,C.push(k),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(s.events=[],f?(f._tokenizer=void 0,f.previous=void 0):C.pop(),p=C.length;p--;){const y=u.slice(C[p],C[p+1]),I=a.pop();o.push([I,I+y.length-1]),e.splice(I,2,y)}for(o.reverse(),p=-1;++p<o.length;)l[m+o[p][0]]=m+o[p][1],m+=o[p][1]-o[p][0]-1;return l}const Tb={resolve:xb,tokenize:yb},_b={partial:!0,tokenize:Ab};function xb(e){return Ic(e),e}function yb(e,t){let n;return r;function r(u){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(u)}function i(u){return u===null?a(u):G(u)?e.check(_b,s,a)(u):(e.consume(u),i)}function a(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function s(u){return e.consume(u),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function Ab(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),oe(e,a,"linePrefix")}function a(s){if(s===null||G(s))return n(s);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function Nc(e,t,n,r,i,a,s,u,o){const l=o||Number.POSITIVE_INFINITY;let h=0;return d;function d(y){return y===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(y),e.exit(a),p):y===null||y===32||y===41||qr(y)?n(y):(e.enter(r),e.enter(s),e.enter(u),e.enter("chunkString",{contentType:"string"}),k(y))}function p(y){return y===62?(e.enter(a),e.consume(y),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),f(y))}function f(y){return y===62?(e.exit("chunkString"),e.exit(u),p(y)):y===null||y===60||G(y)?n(y):(e.consume(y),y===92?m:f)}function m(y){return y===60||y===62||y===92?(e.consume(y),f):f(y)}function k(y){return!h&&(y===null||y===41||be(y))?(e.exit("chunkString"),e.exit(u),e.exit(s),e.exit(r),t(y)):h<l&&y===40?(e.consume(y),h++,k):y===41?(e.consume(y),h--,k):y===null||y===32||y===40||qr(y)?n(y):(e.consume(y),y===92?C:k)}function C(y){return y===40||y===41||y===92?(e.consume(y),k):k(y)}}function vc(e,t,n,r,i,a){const s=this;let u=0,o;return l;function l(f){return e.enter(r),e.enter(i),e.consume(f),e.exit(i),e.enter(a),h}function h(f){return u>999||f===null||f===91||f===93&&!o||f===94&&!u&&"_hiddenFootnoteSupport"in s.parser.constructs?n(f):f===93?(e.exit(a),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):G(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||G(f)||u++>999?(e.exit("chunkString"),h(f)):(e.consume(f),o||(o=!ae(f)),f===92?p:d)}function p(f){return f===91||f===92||f===93?(e.consume(f),u++,d):d(f)}}function Lc(e,t,n,r,i,a){let s;return u;function u(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),s=p===40?41:p,o):n(p)}function o(p){return p===s?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(a),l(p))}function l(p){return p===s?(e.exit(a),o(s)):p===null?n(p):G(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),oe(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===s||p===null||G(p)?(e.exit("chunkString"),l(p)):(e.consume(p),p===92?d:h)}function d(p){return p===s||p===92?(e.consume(p),h):h(p)}}function jn(e,t){let n;return r;function r(i){return G(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ae(i)?oe(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Cb={name:"definition",tokenize:Sb},wb={partial:!0,tokenize:Ib};function Sb(e,t,n){const r=this;let i;return a;function a(f){return e.enter("definition"),s(f)}function s(f){return vc.call(r,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function u(f){return i=ot(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),o):n(f)}function o(f){return be(f)?jn(e,l)(f):l(f)}function l(f){return Nc(e,h,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function h(f){return e.attempt(wb,d,d)(f)}function d(f){return ae(f)?oe(e,p,"whitespace")(f):p(f)}function p(f){return f===null||G(f)?(e.exit("definition"),r.parser.defined.push(i),t(f)):n(f)}}function Ib(e,t,n){return r;function r(u){return be(u)?jn(e,i)(u):n(u)}function i(u){return Lc(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function a(u){return ae(u)?oe(e,s,"whitespace")(u):s(u)}function s(u){return u===null||G(u)?t(u):n(u)}}const Nb={name:"hardBreakEscape",tokenize:vb};function vb(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return G(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const Lb={name:"headingAtx",resolve:Rb,tokenize:Ob};function Rb(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},et(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function Ob(e,t,n){let r=0;return i;function i(h){return e.enter("atxHeading"),a(h)}function a(h){return e.enter("atxHeadingSequence"),s(h)}function s(h){return h===35&&r++<6?(e.consume(h),s):h===null||be(h)?(e.exit("atxHeadingSequence"),u(h)):n(h)}function u(h){return h===35?(e.enter("atxHeadingSequence"),o(h)):h===null||G(h)?(e.exit("atxHeading"),t(h)):ae(h)?oe(e,u,"whitespace")(h):(e.enter("atxHeadingText"),l(h))}function o(h){return h===35?(e.consume(h),o):(e.exit("atxHeadingSequence"),u(h))}function l(h){return h===null||h===35||be(h)?(e.exit("atxHeadingText"),u(h)):(e.consume(h),l)}}const Db=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],wu=["pre","script","style","textarea"],Pb={concrete:!0,name:"htmlFlow",resolveTo:Fb,tokenize:Hb},Mb={partial:!0,tokenize:zb},Bb={partial:!0,tokenize:Ub};function Fb(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Hb(e,t,n){const r=this;let i,a,s,u,o;return l;function l(_){return h(_)}function h(_){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(_),d}function d(_){return _===33?(e.consume(_),p):_===47?(e.consume(_),a=!0,k):_===63?(e.consume(_),i=3,r.interrupt?t:A):ze(_)?(e.consume(_),s=String.fromCharCode(_),C):n(_)}function p(_){return _===45?(e.consume(_),i=2,f):_===91?(e.consume(_),i=5,u=0,m):ze(_)?(e.consume(_),i=4,r.interrupt?t:A):n(_)}function f(_){return _===45?(e.consume(_),r.interrupt?t:A):n(_)}function m(_){const pe="CDATA[";return _===pe.charCodeAt(u++)?(e.consume(_),u===pe.length?r.interrupt?t:M:m):n(_)}function k(_){return ze(_)?(e.consume(_),s=String.fromCharCode(_),C):n(_)}function C(_){if(_===null||_===47||_===62||be(_)){const pe=_===47,qe=s.toLowerCase();return!pe&&!a&&wu.includes(qe)?(i=1,r.interrupt?t(_):M(_)):Db.includes(s.toLowerCase())?(i=6,pe?(e.consume(_),y):r.interrupt?t(_):M(_)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(_):a?I(_):S(_))}return _===45||Me(_)?(e.consume(_),s+=String.fromCharCode(_),C):n(_)}function y(_){return _===62?(e.consume(_),r.interrupt?t:M):n(_)}function I(_){return ae(_)?(e.consume(_),I):N(_)}function S(_){return _===47?(e.consume(_),N):_===58||_===95||ze(_)?(e.consume(_),D):ae(_)?(e.consume(_),S):N(_)}function D(_){return _===45||_===46||_===58||_===95||Me(_)?(e.consume(_),D):R(_)}function R(_){return _===61?(e.consume(_),x):ae(_)?(e.consume(_),R):S(_)}function x(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(e.consume(_),o=_,H):ae(_)?(e.consume(_),x):B(_)}function H(_){return _===o?(e.consume(_),o=null,U):_===null||G(_)?n(_):(e.consume(_),H)}function B(_){return _===null||_===34||_===39||_===47||_===60||_===61||_===62||_===96||be(_)?R(_):(e.consume(_),B)}function U(_){return _===47||_===62||ae(_)?S(_):n(_)}function N(_){return _===62?(e.consume(_),Y):n(_)}function Y(_){return _===null||G(_)?M(_):ae(_)?(e.consume(_),Y):n(_)}function M(_){return _===45&&i===2?(e.consume(_),Z):_===60&&i===1?(e.consume(_),J):_===62&&i===4?(e.consume(_),Oe):_===63&&i===3?(e.consume(_),A):_===93&&i===5?(e.consume(_),He):G(_)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Mb,Ue,Q)(_)):_===null||G(_)?(e.exit("htmlFlowData"),Q(_)):(e.consume(_),M)}function Q(_){return e.check(Bb,ie,Ue)(_)}function ie(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),X}function X(_){return _===null||G(_)?Q(_):(e.enter("htmlFlowData"),M(_))}function Z(_){return _===45?(e.consume(_),A):M(_)}function J(_){return _===47?(e.consume(_),s="",V):M(_)}function V(_){if(_===62){const pe=s.toLowerCase();return wu.includes(pe)?(e.consume(_),Oe):M(_)}return ze(_)&&s.length<8?(e.consume(_),s+=String.fromCharCode(_),V):M(_)}function He(_){return _===93?(e.consume(_),A):M(_)}function A(_){return _===62?(e.consume(_),Oe):_===45&&i===2?(e.consume(_),A):M(_)}function Oe(_){return _===null||G(_)?(e.exit("htmlFlowData"),Ue(_)):(e.consume(_),Oe)}function Ue(_){return e.exit("htmlFlow"),t(_)}}function Ub(e,t,n){const r=this;return i;function i(s){return G(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function zb(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(lr,t,n)}}const $b={name:"htmlText",tokenize:Yb};function Yb(e,t,n){const r=this;let i,a,s;return u;function u(A){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(A),o}function o(A){return A===33?(e.consume(A),l):A===47?(e.consume(A),R):A===63?(e.consume(A),S):ze(A)?(e.consume(A),B):n(A)}function l(A){return A===45?(e.consume(A),h):A===91?(e.consume(A),a=0,m):ze(A)?(e.consume(A),I):n(A)}function h(A){return A===45?(e.consume(A),f):n(A)}function d(A){return A===null?n(A):A===45?(e.consume(A),p):G(A)?(s=d,J(A)):(e.consume(A),d)}function p(A){return A===45?(e.consume(A),f):d(A)}function f(A){return A===62?Z(A):A===45?p(A):d(A)}function m(A){const Oe="CDATA[";return A===Oe.charCodeAt(a++)?(e.consume(A),a===Oe.length?k:m):n(A)}function k(A){return A===null?n(A):A===93?(e.consume(A),C):G(A)?(s=k,J(A)):(e.consume(A),k)}function C(A){return A===93?(e.consume(A),y):k(A)}function y(A){return A===62?Z(A):A===93?(e.consume(A),y):k(A)}function I(A){return A===null||A===62?Z(A):G(A)?(s=I,J(A)):(e.consume(A),I)}function S(A){return A===null?n(A):A===63?(e.consume(A),D):G(A)?(s=S,J(A)):(e.consume(A),S)}function D(A){return A===62?Z(A):S(A)}function R(A){return ze(A)?(e.consume(A),x):n(A)}function x(A){return A===45||Me(A)?(e.consume(A),x):H(A)}function H(A){return G(A)?(s=H,J(A)):ae(A)?(e.consume(A),H):Z(A)}function B(A){return A===45||Me(A)?(e.consume(A),B):A===47||A===62||be(A)?U(A):n(A)}function U(A){return A===47?(e.consume(A),Z):A===58||A===95||ze(A)?(e.consume(A),N):G(A)?(s=U,J(A)):ae(A)?(e.consume(A),U):Z(A)}function N(A){return A===45||A===46||A===58||A===95||Me(A)?(e.consume(A),N):Y(A)}function Y(A){return A===61?(e.consume(A),M):G(A)?(s=Y,J(A)):ae(A)?(e.consume(A),Y):U(A)}function M(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),i=A,Q):G(A)?(s=M,J(A)):ae(A)?(e.consume(A),M):(e.consume(A),ie)}function Q(A){return A===i?(e.consume(A),i=void 0,X):A===null?n(A):G(A)?(s=Q,J(A)):(e.consume(A),Q)}function ie(A){return A===null||A===34||A===39||A===60||A===61||A===96?n(A):A===47||A===62||be(A)?U(A):(e.consume(A),ie)}function X(A){return A===47||A===62||be(A)?U(A):n(A)}function Z(A){return A===62?(e.consume(A),e.exit("htmlTextData"),e.exit("htmlText"),t):n(A)}function J(A){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),V}function V(A){return ae(A)?oe(e,He,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):He(A)}function He(A){return e.enter("htmlTextData"),s(A)}}const Ga={name:"labelEnd",resolveAll:Wb,resolveTo:Gb,tokenize:Qb},qb={tokenize:Kb},jb={tokenize:Xb},Vb={tokenize:Zb};function Wb(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&et(e,0,e.length,n),e}function Gb(e,t){let n=e.length,r=0,i,a,s,u;for(;n--;)if(i=e[n][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const o={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[a][1].start},end:{...e[s][1].end}},h={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[s-2][1].start}};return u=[["enter",o,t],["enter",l,t]],u=it(u,e.slice(a+1,a+r+3)),u=it(u,[["enter",h,t]]),u=it(u,di(t.parser.constructs.insideSpan.null,e.slice(a+r+4,s-3),t)),u=it(u,[["exit",h,t],e[s-2],e[s-1],["exit",l,t]]),u=it(u,e.slice(s+1)),u=it(u,[["exit",o,t]]),et(e,a,e.length,u),e}function Qb(e,t,n){const r=this;let i=r.events.length,a,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return u;function u(p){return a?a._inactive?d(p):(s=r.parser.defined.includes(ot(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),o):n(p)}function o(p){return p===40?e.attempt(qb,h,s?h:d)(p):p===91?e.attempt(jb,h,s?l:d)(p):s?h(p):d(p)}function l(p){return e.attempt(Vb,h,d)(p)}function h(p){return t(p)}function d(p){return a._balanced=!0,n(p)}}function Kb(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return be(d)?jn(e,a)(d):a(d)}function a(d){return d===41?h(d):Nc(e,s,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return be(d)?jn(e,o)(d):h(d)}function u(d){return n(d)}function o(d){return d===34||d===39||d===40?Lc(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):h(d)}function l(d){return be(d)?jn(e,h)(d):h(d)}function h(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function Xb(e,t,n){const r=this;return i;function i(u){return vc.call(r,e,a,s,"reference","referenceMarker","referenceString")(u)}function a(u){return r.parser.defined.includes(ot(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(u):n(u)}function s(u){return n(u)}}function Zb(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const Jb={name:"labelStartImage",resolveAll:Ga.resolveAll,tokenize:e2};function e2(e,t,n){const r=this;return i;function i(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),a}function a(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),s):n(u)}function s(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const t2={name:"labelStartLink",resolveAll:Ga.resolveAll,tokenize:n2};function n2(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Ri={name:"lineEnding",tokenize:r2};function r2(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),oe(e,t,"linePrefix")}}const Lr={name:"thematicBreak",tokenize:i2};function i2(e,t,n){let r=0,i;return a;function a(l){return e.enter("thematicBreak"),s(l)}function s(l){return i=l,u(l)}function u(l){return l===i?(e.enter("thematicBreakSequence"),o(l)):r>=3&&(l===null||G(l))?(e.exit("thematicBreak"),t(l)):n(l)}function o(l){return l===i?(e.consume(l),r++,o):(e.exit("thematicBreakSequence"),ae(l)?oe(e,u,"whitespace")(l):u(l))}}const Ve={continuation:{tokenize:o2},exit:c2,name:"list",tokenize:u2},a2={partial:!0,tokenize:d2},s2={partial:!0,tokenize:l2};function u2(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return u;function u(f){const m=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:ua(f)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Lr,n,l)(f):l(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),o(f)}return n(f)}function o(f){return ua(f)&&++s<10?(e.consume(f),o):(!r.interrupt||s<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),l(f)):n(f)}function l(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(lr,r.interrupt?n:h,e.attempt(a2,p,d))}function h(f){return r.containerState.initialBlankLine=!0,a++,p(f)}function d(f){return ae(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),p):n(f)}function p(f){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function o2(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(lr,i,a);function i(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,oe(e,t,"listItemIndent",r.containerState.size+1)(u)}function a(u){return r.containerState.furtherBlankLines||!ae(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(s2,t,s)(u))}function s(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,oe(e,e.attempt(Ve,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function l2(e,t,n){const r=this;return oe(e,i,"listItemIndent",r.containerState.size+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function c2(e){e.exit(this.containerState.type)}function d2(e,t,n){const r=this;return oe(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const s=r.events[r.events.length-1];return!ae(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Su={name:"setextUnderline",resolveTo:h2,tokenize:f2};function h2(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function f2(e,t,n){const r=this;let i;return a;function a(l){let h=r.events.length,d;for(;h--;)if(r.events[h][1].type!=="lineEnding"&&r.events[h][1].type!=="linePrefix"&&r.events[h][1].type!=="content"){d=r.events[h][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=l,s(l)):n(l)}function s(l){return e.enter("setextHeadingLineSequence"),u(l)}function u(l){return l===i?(e.consume(l),u):(e.exit("setextHeadingLineSequence"),ae(l)?oe(e,o,"lineSuffix")(l):o(l))}function o(l){return l===null||G(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const p2={tokenize:x2,partial:!0};function m2(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:k2,continuation:{tokenize:T2},exit:_2}},text:{91:{name:"gfmFootnoteCall",tokenize:E2},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:g2,resolveTo:b2}}}}function g2(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const o=r.events[i][1];if(o.type==="labelImage"){s=o;break}if(o.type==="gfmFootnoteCall"||o.type==="labelLink"||o.type==="label"||o.type==="image"||o.type==="link")break}return u;function u(o){if(!s||!s._balanced)return n(o);const l=ot(r.sliceSerialize({start:s.end,end:r.now()}));return l.codePointAt(0)!==94||!a.includes(l.slice(1))?n(o):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o))}}function b2(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},u=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...u),e}function E2(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return u;function u(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),o}function o(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(d){if(a>999||d===93&&!s||d===null||d===91||be(d))return n(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(ot(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return be(d)||(s=!0),a++,e.consume(d),d===92?h:l}function h(d){return d===91||d===92||d===93?(e.consume(d),a++,l):l(d)}}function k2(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,u;return o;function o(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):n(m)}function h(m){if(s>999||m===93&&!u||m===null||m===91||be(m))return n(m);if(m===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return a=ot(r.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return be(m)||(u=!0),s++,e.consume(m),m===92?d:h}function d(m){return m===91||m===92||m===93?(e.consume(m),s++,h):h(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(a)||i.push(a),oe(e,f,"gfmFootnoteDefinitionWhitespace")):n(m)}function f(m){return t(m)}}function T2(e,t,n){return e.check(lr,t,e.attempt(p2,t,n))}function _2(e){e.exit("gfmFootnoteDefinition")}function x2(e,t,n){const r=this;return oe(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function y2(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,u){let o=-1;for(;++o<s.length;)if(s[o][0]==="enter"&&s[o][1].type==="strikethroughSequenceTemporary"&&s[o][1]._close){let l=o;for(;l--;)if(s[l][0]==="exit"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._open&&s[o][1].end.offset-s[o][1].start.offset===s[l][1].end.offset-s[l][1].start.offset){s[o][1].type="strikethroughSequence",s[l][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},s[l][1].start),end:Object.assign({},s[o][1].end)},d={type:"strikethroughText",start:Object.assign({},s[l][1].end),end:Object.assign({},s[o][1].start)},p=[["enter",h,u],["enter",s[l][1],u],["exit",s[l][1],u],["enter",d,u]],f=u.parser.constructs.insideSpan.null;f&&et(p,p.length,0,di(f,s.slice(l+1,o),u)),et(p,p.length,0,[["exit",d,u],["enter",s[o][1],u],["exit",s[o][1],u],["exit",h,u]]),et(s,l-1,o-l+3,p),o=l+p.length-2;break}}for(o=-1;++o<s.length;)s[o][1].type==="strikethroughSequenceTemporary"&&(s[o][1].type="data");return s}function a(s,u,o){const l=this.previous,h=this.events;let d=0;return p;function p(m){return l===126&&h[h.length-1][1].type!=="characterEscape"?o(m):(s.enter("strikethroughSequenceTemporary"),f(m))}function f(m){const k=pn(l);if(m===126)return d>1?o(m):(s.consume(m),d++,f);if(d<2&&!n)return o(m);const C=s.exit("strikethroughSequenceTemporary"),y=pn(m);return C._open=!y||y===2&&!!k,C._close=!k||k===2&&!!y,u(m)}}}class A2{constructor(){this.map=[]}add(t,n,r){C2(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function C2(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function w2(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function S2(){return{flow:{null:{name:"table",tokenize:I2,resolveAll:N2}}}}function I2(e,t,n){const r=this;let i=0,a=0,s;return u;function u(N){let Y=r.events.length-1;for(;Y>-1;){const ie=r.events[Y][1].type;if(ie==="lineEnding"||ie==="linePrefix")Y--;else break}const M=Y>-1?r.events[Y][1].type:null,Q=M==="tableHead"||M==="tableRow"?x:o;return Q===x&&r.parser.lazy[r.now().line]?n(N):Q(N)}function o(N){return e.enter("tableHead"),e.enter("tableRow"),l(N)}function l(N){return N===124||(s=!0,a+=1),h(N)}function h(N){return N===null?n(N):G(N)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),f):n(N):ae(N)?oe(e,h,"whitespace")(N):(a+=1,s&&(s=!1,i+=1),N===124?(e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),s=!0,h):(e.enter("data"),d(N)))}function d(N){return N===null||N===124||be(N)?(e.exit("data"),h(N)):(e.consume(N),N===92?p:d)}function p(N){return N===92||N===124?(e.consume(N),d):d(N)}function f(N){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(N):(e.enter("tableDelimiterRow"),s=!1,ae(N)?oe(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):m(N))}function m(N){return N===45||N===58?C(N):N===124?(s=!0,e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),k):R(N)}function k(N){return ae(N)?oe(e,C,"whitespace")(N):C(N)}function C(N){return N===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(N),e.exit("tableDelimiterMarker"),y):N===45?(a+=1,y(N)):N===null||G(N)?D(N):R(N)}function y(N){return N===45?(e.enter("tableDelimiterFiller"),I(N)):R(N)}function I(N){return N===45?(e.consume(N),I):N===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(N),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(N))}function S(N){return ae(N)?oe(e,D,"whitespace")(N):D(N)}function D(N){return N===124?m(N):N===null||G(N)?!s||i!==a?R(N):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(N)):R(N)}function R(N){return n(N)}function x(N){return e.enter("tableRow"),H(N)}function H(N){return N===124?(e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),H):N===null||G(N)?(e.exit("tableRow"),t(N)):ae(N)?oe(e,H,"whitespace")(N):(e.enter("data"),B(N))}function B(N){return N===null||N===124||be(N)?(e.exit("data"),H(N)):(e.consume(N),N===92?U:B)}function U(N){return N===92||N===124?(e.consume(N),B):B(N)}}function N2(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],u=!1,o=0,l,h,d;const p=new A2;for(;++n<e.length;){const f=e[n],m=f[1];f[0]==="enter"?m.type==="tableHead"?(u=!1,o!==0&&(Iu(p,t,o,l,h),h=void 0,o=0),l={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(n,0,[["enter",l,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(r=!0,d=void 0,a=[0,0,0,0],s=[0,n+1,0,0],u&&(u=!1,h={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(n,0,[["enter",h,t]])),i=m.type==="tableDelimiterRow"?2:h?3:1):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],d=br(p,t,a,i,void 0,d),a=[0,0,0,0]),s[2]=n)):m.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(s[0]=s[1],d=br(p,t,a,i,void 0,d)),a=s,s=[a[1],n,0,0])):m.type==="tableHead"?(u=!0,o=n):m.type==="tableRow"||m.type==="tableDelimiterRow"?(o=n,a[1]!==0?(s[0]=s[1],d=br(p,t,a,i,n,d)):s[1]!==0&&(d=br(p,t,s,i,n,d)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(s[3]=n)}for(o!==0&&Iu(p,t,o,l,h),p.consume(t.events),n=-1;++n<t.events.length;){const f=t.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=w2(t.events,n))}return e}function br(e,t,n,r,i,a){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";n[0]!==0&&(a.end=Object.assign({},an(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const o=an(t.events,n[1]);if(a={type:s,start:Object.assign({},o),end:Object.assign({},o)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const l=an(t.events,n[2]),h=an(t.events,n[3]),d={type:u,start:Object.assign({},l),end:Object.assign({},h)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const p=t.events[n[2]],f=t.events[n[3]];if(p[1].end=Object.assign({},f[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const m=n[2]+1,k=n[3]-n[2]-1;e.add(m,k,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(a.end=Object.assign({},an(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Iu(e,t,n,r,i){const a=[],s=an(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function an(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const v2={name:"tasklistCheck",tokenize:R2};function L2(){return{text:{91:v2}}}function R2(e,t,n){const r=this;return i;function i(o){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(o):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(o),e.exit("taskListCheckMarker"),a)}function a(o){return be(o)?(e.enter("taskListCheckValueUnchecked"),e.consume(o),e.exit("taskListCheckValueUnchecked"),s):o===88||o===120?(e.enter("taskListCheckValueChecked"),e.consume(o),e.exit("taskListCheckValueChecked"),s):n(o)}function s(o){return o===93?(e.enter("taskListCheckMarker"),e.consume(o),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):n(o)}function u(o){return G(o)?t(o):ae(o)?e.check({tokenize:O2},t,n)(o):n(o)}}function O2(e,t,n){return oe(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function D2(e){return gc([qg(),m2(),y2(e),S2(),L2()])}const P2={};function M2(e){const t=this,n=e||P2,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(D2(n)),a.push(Fg()),s.push(Hg(n))}var B2=Object.defineProperty,F2=Object.defineProperties,H2=Object.getOwnPropertyDescriptors,Nu=Object.getOwnPropertySymbols,U2=Object.prototype.hasOwnProperty,z2=Object.prototype.propertyIsEnumerable,vu=(e,t,n)=>t in e?B2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rc=(e,t)=>{for(var n in t||(t={}))U2.call(t,n)&&vu(e,n,t[n]);if(Nu)for(var n of Nu(t))z2.call(t,n)&&vu(e,n,t[n]);return e},Oc=(e,t)=>F2(e,H2(t)),$2=/(\*\*)([^*]*\*?)$/,Y2=/(__)([^_]*?)$/,q2=/(\*\*\*)([^*]*?)$/,j2=/(\*)([^*]*?)$/,V2=/(_)([^_]*?)$/,W2=/(`)([^`]*?)$/,G2=/(~~)([^~]*?)$/,Jt=/^[\s_~*`]*$/,Dc=/^[\s]*[-*+][\s]+$/,Q2=/[\p{L}\p{N}_]/u,K2=/^```[^`\n]*```?$/,X2=/^\*{4,}$/,Z2=/(__)([^_]+)_$/,J2=/(~~)([^~]+)~$/,eE=/__/g,Lu=/~~/g,Pt=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95?!0:Q2.test(e)},mn=(e,t)=>{let n=!1;for(let r=0;r<t;r+=1)e[r]==="`"&&e[r+1]==="`"&&e[r+2]==="`"&&(n=!n,r+=2);return n},tE=(e,t)=>{let n=1;for(let r=t-1;r>=0;r-=1)if(e[r]==="]")n+=1;else if(e[r]==="["&&(n-=1,n===0))return r;return-1},Pc=(e,t)=>{let n=1;for(let r=t+1;r<e.length;r+=1)if(e[r]==="[")n+=1;else if(e[r]==="]"&&(n-=1,n===0))return r;return-1},hi=(e,t)=>{let n=!1,r=!1;for(let i=0;i<e.length&&i<t;i+=1){if(e[i]==="\\"&&e[i+1]==="$"){i+=1;continue}e[i]==="$"&&(e[i+1]==="$"?(r=!r,i+=1,n=!1):r||(n=!n))}return n||r},nE=(e,t)=>{for(let n=t;n<e.length;n+=1){if(e[n]===")")return!0;if(e[n]===`
18
+ `)return!1}return!1},Mc=(e,t)=>{for(let n=t-1;n>=0;n-=1){if(e[n]===")")return!1;if(e[n]==="(")return n>0&&e[n-1]==="]"?nE(e,t):!1;if(e[n]===`
19
+ `)return!1}return!1},Qa=(e,t,n)=>{let r=0;for(let o=t-1;o>=0;o-=1)if(e[o]===`
20
20
  `){r=o+1;break}let i=e.length;for(let o=t;o<e.length;o+=1)if(e[o]===`
21
- `){i=o;break}let a=e.substring(r,i),s=0,u=!1;for(let o of a)if(o===n)s+=1;else if(o!==" "&&o!==" "){u=!0;break}return s>=3&&!u},tE=(e,t,n)=>{if(n!==" "&&n!==" ")return!1;let r=0;for(let i=t-1;i>=0;i-=1)if(e[i]===`
22
- `){r=i+1;break}for(let i=r;i<t;i+=1)if(e[i]!==" "&&e[i]!==" ")return!1;return!0},nE=(e,t,n,r)=>n==="\\"||e.includes("$")&&li(e,t)?!0:n!=="*"&&r==="*"?(t<e.length-2?e[t+2]:"")!=="*":!!(n==="*"||n&&r&&Dt(n)&&Dt(r)||tE(e,t,r)),Mc=e=>{let t=0,n=e.length;for(let r=0;r<n;r+=1){if(e[r]!=="*")continue;let i=r>0?e[r-1]:"",a=r<n-1?e[r+1]:"";nE(e,r,i,a)||(t+=1)}return t},rE=(e,t,n,r)=>!!(n==="\\"||e.includes("$")&&li(e,t)||Pc(e,t)||n==="_"||r==="_"||n&&r&&Dt(n)&&Dt(r)),iE=e=>{let t=0,n=e.length;for(let r=0;r<n;r+=1){if(e[r]!=="_")continue;let i=r>0?e[r-1]:"",a=r<n-1?e[r+1]:"";rE(e,r,i,a)||(t+=1)}return t},aE=e=>{let t=0,n=0;for(let r=0;r<e.length;r+=1)e[r]==="*"?n+=1:(n>=3&&(t+=Math.floor(n/3)),n=0);return n>=3&&(t+=Math.floor(n/3)),t},sE=(e,t,n)=>{if(!t||Xt.test(t))return!0;let r=e.substring(0,n).lastIndexOf(`
23
- `),i=r===-1?0:r+1,a=e.substring(i,n);return Oc.test(a)&&t.includes(`
24
- `)?!0:ja(e,n,"*")},uE=e=>{let t=e.match(U2);if(!t)return e;let n=t[2],r=e.lastIndexOf(t[1]);return pn(e,r)||sE(e,n,r)?e:(e.match(/\*\*/g)||[]).length%2===1?n.endsWith("*")?`${e}*`:`${e}**`:e},oE=(e,t,n)=>{if(!t||Xt.test(t))return!0;let r=e.substring(0,n).lastIndexOf(`
25
- `),i=r===-1?0:r+1,a=e.substring(i,n);return Oc.test(a)&&t.includes(`
26
- `)?!0:ja(e,n,"_")},lE=e=>{let t=e.match(z2);if(!t){let i=e.match(K2);if(i){let a=e.lastIndexOf(i[1]);if(!pn(e,a)&&(e.match(Z2)||[]).length%2===1)return`${e}_`}return e}let n=t[2],r=e.lastIndexOf(t[1]);return pn(e,r)||oE(e,n,r)?e:(e.match(/__/g)||[]).length%2===1?`${e}__`:e},cE=e=>{for(let t=0;t<e.length;t+=1)if(e[t]==="*"&&e[t-1]!=="*"&&e[t+1]!=="*"&&e[t-1]!=="\\"&&!li(e,t)){let n=t>0?e[t-1]:"",r=t<e.length-1?e[t+1]:"";if(n&&r&&Dt(n)&&Dt(r))continue;return t}return-1},dE=e=>{if(!e.match(Y2))return e;let t=cE(e);if(t===-1||pn(e,t))return e;let n=e.substring(t+1);return!n||Xt.test(n)?e:Mc(e)%2===1?`${e}*`:e},Bc=e=>{for(let t=0;t<e.length;t+=1)if(e[t]==="_"&&e[t-1]!=="_"&&e[t+1]!=="_"&&e[t-1]!=="\\"&&!li(e,t)&&!Pc(e,t)){let n=t>0?e[t-1]:"",r=t<e.length-1?e[t+1]:"";if(n&&r&&Dt(n)&&Dt(r))continue;return t}return-1},hE=e=>{let t=e.length;for(;t>0&&e[t-1]===`
27
- `;)t-=1;if(t<e.length){let n=e.slice(0,t),r=e.slice(t);return`${n}_${r}`}return`${e}_`},fE=e=>{if(!e.endsWith("**"))return null;let t=e.slice(0,-2);if((t.match(/\*\*/g)||[]).length%2!==1)return null;let n=t.indexOf("**"),r=Bc(t);return n!==-1&&r!==-1&&n<r?`${t}_**`:null},pE=e=>{if(!e.match(q2))return e;let t=Bc(e);if(t===-1||pn(e,t))return e;let n=e.substring(t+1);if(!n||Xt.test(n))return e;if(iE(e)%2===1){let r=fE(e);return r!==null?r:hE(e)}return e},mE=e=>{let t=(e.match(/\*\*/g)||[]).length,n=Mc(e);return t%2===0&&n%2===0},gE=(e,t,n)=>!t||Xt.test(t)||pn(e,n)?!0:ja(e,n,"*"),bE=e=>{if(Q2.test(e))return e;let t=e.match($2);if(!t)return e;let n=t[2],r=e.lastIndexOf(t[1]);return gE(e,n,r)?e:aE(e)%2===1?mE(e)?e:`${e}***`:e},Yr=(e,t)=>{let n=!1,r=!1;for(let i=0;i<t;i+=1){if(e.substring(i,i+3)==="```"){r=!r,i+=2;continue}!r&&e[i]==="`"&&(n=!n)}return n||r},EE=(e,t)=>{let n=e.substring(t,t+3)==="```",r=t>0&&e.substring(t-1,t+2)==="```",i=t>1&&e.substring(t-2,t+1)==="```";return n||r||i},TE=e=>{let t=0;for(let n=0;n<e.length;n+=1)e[n]==="`"&&!EE(e,n)&&(t+=1);return t},kE=e=>!e.match(G2)||e.includes(`
28
- `)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,_E=e=>(e.match(/```/g)||[]).length%2===1,xE=e=>{let t=kE(e);if(t!==null)return t;let n=e.match(j2);if(n&&!_E(e)){let r=n[2];if(!r||Xt.test(r))return e;if(TE(e)%2===1)return`${e}\``}return e},yE=(e,t)=>t>=2&&e.substring(t-2,t+1)==="```"||t>=1&&e.substring(t-1,t+2)==="```"||t<=e.length-3&&e.substring(t,t+3)==="```",AE=e=>{let t=0,n=!1;for(let r=0;r<e.length-1;r+=1)e[r]==="`"&&!yE(e,r)&&(n=!n),!n&&e[r]==="$"&&e[r+1]==="$"&&(t+=1,r+=1);return t},CE=e=>{let t=e.indexOf("$$");return t!==-1&&e.indexOf(`
21
+ `){i=o;break}let a=e.substring(r,i),s=0,u=!1;for(let o of a)if(o===n)s+=1;else if(o!==" "&&o!==" "){u=!0;break}return s>=3&&!u},rE=(e,t,n)=>{if(n!==" "&&n!==" ")return!1;let r=0;for(let i=t-1;i>=0;i-=1)if(e[i]===`
22
+ `){r=i+1;break}for(let i=r;i<t;i+=1)if(e[i]!==" "&&e[i]!==" ")return!1;return!0},iE=(e,t,n,r)=>n==="\\"||e.includes("$")&&hi(e,t)?!0:n!=="*"&&r==="*"?(t<e.length-2?e[t+2]:"")!=="*":!!(n==="*"||n&&r&&Pt(n)&&Pt(r)||rE(e,t,r)),Bc=e=>{let t=0,n=e.length;for(let r=0;r<n;r+=1){if(e[r]!=="*")continue;let i=r>0?e[r-1]:"",a=r<n-1?e[r+1]:"";iE(e,r,i,a)||(t+=1)}return t},aE=(e,t,n,r)=>!!(n==="\\"||e.includes("$")&&hi(e,t)||Mc(e,t)||n==="_"||r==="_"||n&&r&&Pt(n)&&Pt(r)),sE=e=>{let t=0,n=e.length;for(let r=0;r<n;r+=1){if(e[r]!=="_")continue;let i=r>0?e[r-1]:"",a=r<n-1?e[r+1]:"";aE(e,r,i,a)||(t+=1)}return t},uE=e=>{let t=0,n=0;for(let r=0;r<e.length;r+=1)e[r]==="*"?n+=1:(n>=3&&(t+=Math.floor(n/3)),n=0);return n>=3&&(t+=Math.floor(n/3)),t},oE=(e,t,n)=>{if(!t||Jt.test(t))return!0;let r=e.substring(0,n).lastIndexOf(`
23
+ `),i=r===-1?0:r+1,a=e.substring(i,n);return Dc.test(a)&&t.includes(`
24
+ `)?!0:Qa(e,n,"*")},lE=e=>{let t=e.match($2);if(!t)return e;let n=t[2],r=e.lastIndexOf(t[1]);return mn(e,r)||oE(e,n,r)?e:(e.match(/\*\*/g)||[]).length%2===1?n.endsWith("*")?`${e}*`:`${e}**`:e},cE=(e,t,n)=>{if(!t||Jt.test(t))return!0;let r=e.substring(0,n).lastIndexOf(`
25
+ `),i=r===-1?0:r+1,a=e.substring(i,n);return Dc.test(a)&&t.includes(`
26
+ `)?!0:Qa(e,n,"_")},dE=e=>{let t=e.match(Y2);if(!t){let i=e.match(Z2);if(i){let a=e.lastIndexOf(i[1]);if(!mn(e,a)&&(e.match(eE)||[]).length%2===1)return`${e}_`}return e}let n=t[2],r=e.lastIndexOf(t[1]);return mn(e,r)||cE(e,n,r)?e:(e.match(/__/g)||[]).length%2===1?`${e}__`:e},hE=e=>{for(let t=0;t<e.length;t+=1)if(e[t]==="*"&&e[t-1]!=="*"&&e[t+1]!=="*"&&e[t-1]!=="\\"&&!hi(e,t)){let n=t>0?e[t-1]:"",r=t<e.length-1?e[t+1]:"";if(n&&r&&Pt(n)&&Pt(r))continue;return t}return-1},fE=e=>{if(!e.match(j2))return e;let t=hE(e);if(t===-1||mn(e,t))return e;let n=e.substring(t+1);return!n||Jt.test(n)?e:Bc(e)%2===1?`${e}*`:e},Fc=e=>{for(let t=0;t<e.length;t+=1)if(e[t]==="_"&&e[t-1]!=="_"&&e[t+1]!=="_"&&e[t-1]!=="\\"&&!hi(e,t)&&!Mc(e,t)){let n=t>0?e[t-1]:"",r=t<e.length-1?e[t+1]:"";if(n&&r&&Pt(n)&&Pt(r))continue;return t}return-1},pE=e=>{let t=e.length;for(;t>0&&e[t-1]===`
27
+ `;)t-=1;if(t<e.length){let n=e.slice(0,t),r=e.slice(t);return`${n}_${r}`}return`${e}_`},mE=e=>{if(!e.endsWith("**"))return null;let t=e.slice(0,-2);if((t.match(/\*\*/g)||[]).length%2!==1)return null;let n=t.indexOf("**"),r=Fc(t);return n!==-1&&r!==-1&&n<r?`${t}_**`:null},gE=e=>{if(!e.match(V2))return e;let t=Fc(e);if(t===-1||mn(e,t))return e;let n=e.substring(t+1);if(!n||Jt.test(n))return e;if(sE(e)%2===1){let r=mE(e);return r!==null?r:pE(e)}return e},bE=e=>{let t=(e.match(/\*\*/g)||[]).length,n=Bc(e);return t%2===0&&n%2===0},EE=(e,t,n)=>!t||Jt.test(t)||mn(e,n)?!0:Qa(e,n,"*"),kE=e=>{if(X2.test(e))return e;let t=e.match(q2);if(!t)return e;let n=t[2],r=e.lastIndexOf(t[1]);return EE(e,n,r)?e:uE(e)%2===1?bE(e)?e:`${e}***`:e},Vr=(e,t)=>{let n=!1,r=!1;for(let i=0;i<t;i+=1){if(e.substring(i,i+3)==="```"){r=!r,i+=2;continue}!r&&e[i]==="`"&&(n=!n)}return n||r},TE=(e,t)=>{let n=e.substring(t,t+3)==="```",r=t>0&&e.substring(t-1,t+2)==="```",i=t>1&&e.substring(t-2,t+1)==="```";return n||r||i},_E=e=>{let t=0;for(let n=0;n<e.length;n+=1)e[n]==="`"&&!TE(e,n)&&(t+=1);return t},xE=e=>!e.match(K2)||e.includes(`
28
+ `)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,yE=e=>(e.match(/```/g)||[]).length%2===1,AE=e=>{let t=xE(e);if(t!==null)return t;let n=e.match(W2);if(n&&!yE(e)){let r=n[2];if(!r||Jt.test(r))return e;if(_E(e)%2===1)return`${e}\``}return e},CE=(e,t)=>t>=2&&e.substring(t-2,t+1)==="```"||t>=1&&e.substring(t-1,t+2)==="```"||t<=e.length-3&&e.substring(t,t+3)==="```",wE=e=>{let t=0,n=!1;for(let r=0;r<e.length-1;r+=1)e[r]==="`"&&!CE(e,r)&&(n=!n),!n&&e[r]==="$"&&e[r+1]==="$"&&(t+=1,r+=1);return t},SE=e=>{let t=e.indexOf("$$");return t!==-1&&e.indexOf(`
29
29
  `,t)!==-1&&!e.endsWith(`
30
30
  `)?`${e}
31
- $$`:`${e}$$`},wE=e=>AE(e)%2===0?e:CE(e),SE=(e,t,n)=>{if(e.substring(t+2).includes(")"))return null;let r=J2(e,t);if(r===-1||Yr(e,r))return null;let i=r>0&&e[r-1]==="!",a=i?r-1:r,s=e.substring(0,a);if(i)return s;let u=e.substring(r+1,t);return n==="text-only"?`${s}${u}`:`${s}[${u}](streamdown:incomplete-link)`},vu=(e,t)=>{for(let n=0;n<=t;n++)if(e[n]==="["&&!Yr(e,n)){if(n>0&&e[n-1]==="!")continue;let r=Dc(e,n);if(r===-1)return n;if(r+1<e.length&&e[r+1]==="("){let i=e.indexOf(")",r+2);i!==-1&&(n=i)}}return-1},IE=(e,t,n)=>{let r=t>0&&e[t-1]==="!",i=r?t-1:t,a=e.substring(t+1);if(!a.includes("]")){let s=e.substring(0,i);if(r)return s;if(n==="text-only"){let u=vu(e,t);return u!==-1?e.substring(0,u)+e.substring(u+1):`${s}${a}`}return`${e}](streamdown:incomplete-link)`}if(Dc(e,t)===-1){let s=e.substring(0,i);if(r)return s;if(n==="text-only"){let u=vu(e,t);if(u!==-1)return e.substring(0,u)+e.substring(u+1);let o=e.substring(t+1);return`${s}${o}`}return`${e}](streamdown:incomplete-link)`}return null},Fc=(e,t="protocol")=>{let n=e.lastIndexOf("](");if(n!==-1&&!Yr(e,n)){let r=SE(e,n,t);if(r!==null)return r}for(let r=e.length-1;r>=0;r-=1)if(e[r]==="["&&!Yr(e,r)){let i=IE(e,r,t);if(i!==null)return i}return e},NE=/^-{1,2}$/,vE=/^[\s]*-{1,2}[\s]+$/,LE=/^={1,2}$/,RE=/^[\s]*={1,2}[\s]+$/,OE=e=>{if(!e||typeof e!="string")return e;let t=e.lastIndexOf(`
32
- `);if(t===-1)return e;let n=e.substring(t+1),r=e.substring(0,t),i=n.trim();if(NE.test(i)&&!n.match(vE)){let a=r.split(`
33
- `).at(-1);if(a&&a.trim().length>0)return`${e}​`}if(LE.test(i)&&!n.match(RE)){let a=r.split(`
34
- `).at(-1);if(a&&a.trim().length>0)return`${e}​`}return e},DE=e=>{let t=e.match(V2);if(t){let n=t[2];if(!n||Xt.test(n))return e;if((e.match(Nu)||[]).length%2===1)return`${e}~~`}else if(e.match(X2)&&(e.match(Nu)||[]).length%2===1)return`${e}~`;return e},vi=e=>e!==!1,Je={SETEXT_HEADINGS:0,LINKS:10,BOLD_ITALIC:20,BOLD:30,ITALIC_DOUBLE_UNDERSCORE:40,ITALIC_SINGLE_ASTERISK:41,ITALIC_SINGLE_UNDERSCORE:42,INLINE_CODE:50,STRIKETHROUGH:60,KATEX:70,DEFAULT:100},PE=[{handler:{name:"setextHeadings",handle:OE,priority:Je.SETEXT_HEADINGS},optionKey:"setextHeadings"},{handler:{name:"links",handle:Fc,priority:Je.LINKS},optionKey:"links",earlyReturn:e=>e.endsWith("](streamdown:incomplete-link)")},{handler:{name:"boldItalic",handle:bE,priority:Je.BOLD_ITALIC},optionKey:"boldItalic"},{handler:{name:"bold",handle:uE,priority:Je.BOLD},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:lE,priority:Je.ITALIC_DOUBLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:dE,priority:Je.ITALIC_SINGLE_ASTERISK},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:pE,priority:Je.ITALIC_SINGLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"inlineCode",handle:xE,priority:Je.INLINE_CODE},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:DE,priority:Je.STRIKETHROUGH},optionKey:"strikethrough"},{handler:{name:"katex",handle:wE,priority:Je.KATEX},optionKey:"katex"}],ME=e=>{var t;let n=(t=e==null?void 0:e.linkMode)!=null?t:"protocol";return PE.filter(({handler:r,optionKey:i})=>r.name==="links"?vi(e==null?void 0:e.links)||vi(e==null?void 0:e.images):vi(e==null?void 0:e[i])).map(({handler:r,earlyReturn:i})=>r.name==="links"?{handler:Rc(Lc({},r),{handle:a=>Fc(a,n)}),earlyReturn:n==="protocol"?i:void 0}:{handler:r,earlyReturn:i})},BE=(e,t)=>{var n;if(!e||typeof e!="string")return e;let r=e.endsWith(" ")&&!e.endsWith(" ")?e.slice(0,-1):e,i=ME(t),a=((n=t==null?void 0:t.handlers)!=null?n:[]).map(u=>{var o;return{handler:Rc(Lc({},u),{priority:(o=u.priority)!=null?o:Je.DEFAULT}),earlyReturn:void 0}}),s=[...i,...a].sort((u,o)=>{var l,h;return((l=u.handler.priority)!=null?l:Je.DEFAULT)-((h=o.handler.priority)!=null?h:Je.DEFAULT)});for(let{handler:u,earlyReturn:o}of s)if(r=u.handle(r),o!=null&&o(r))return r;return r},FE=BE;function Hc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Hc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function HE(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Hc(e))&&(r&&(r+=" "),r+=t);return r}const UE=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},zE=(e,t)=>({classGroupId:e,validator:t}),Uc=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),qr="-",Lu=[],$E="arbitrary..",YE=e=>{const t=jE(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return qE(s);const u=s.split(qr),o=u[0]===""&&u.length>1?1:0;return zc(u,o,t)},getConflictingClassGroupIds:(s,u)=>{if(u){const o=r[s],l=n[s];return o?l?UE(l,o):o:l||Lu}return n[s]||Lu}}},zc=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],a=n.nextPart.get(i);if(a){const l=zc(e,t+1,a);if(l)return l}const s=n.validators;if(s===null)return;const u=t===0?e.join(qr):e.slice(t).join(qr),o=s.length;for(let l=0;l<o;l++){const h=s[l];if(h.validator(u))return h.classGroupId}},qE=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?$E+r:void 0})(),jE=e=>{const{theme:t,classGroups:n}=e;return VE(n,t)},VE=(e,t)=>{const n=Uc();for(const r in e){const i=e[r];Va(i,n,r,t)}return n},Va=(e,t,n,r)=>{const i=e.length;for(let a=0;a<i;a++){const s=e[a];WE(s,t,n,r)}},WE=(e,t,n,r)=>{if(typeof e=="string"){GE(e,t,n);return}if(typeof e=="function"){QE(e,t,n,r);return}KE(e,t,n,r)},GE=(e,t,n)=>{const r=e===""?t:$c(t,e);r.classGroupId=n},QE=(e,t,n,r)=>{if(XE(e)){Va(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(zE(n,e))},KE=(e,t,n,r)=>{const i=Object.entries(e),a=i.length;for(let s=0;s<a;s++){const[u,o]=i[s];Va(o,$c(t,u),n,r)}},$c=(e,t)=>{let n=e;const r=t.split(qr),i=r.length;for(let a=0;a<i;a++){const s=r[a];let u=n.nextPart.get(s);u||(u=Uc(),n.nextPart.set(s,u)),n=u}return n},XE=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,ZE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(a,s)=>{n[a]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let s=n[a];if(s!==void 0)return s;if((s=r[a])!==void 0)return i(a,s),s},set(a,s){a in n?n[a]=s:i(a,s)}}},ua="!",Ru=":",JE=[],Ou=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),e3=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const a=[];let s=0,u=0,o=0,l;const h=i.length;for(let T=0;T<h;T++){const C=i[T];if(s===0&&u===0){if(C===Ru){a.push(i.slice(o,T)),o=T+1;continue}if(C==="/"){l=T;continue}}C==="["?s++:C==="]"?s--:C==="("?u++:C===")"&&u--}const d=a.length===0?i:i.slice(o);let p=d,f=!1;d.endsWith(ua)?(p=d.slice(0,-1),f=!0):d.startsWith(ua)&&(p=d.slice(1),f=!0);const m=l&&l>o?l-o:void 0;return Ou(a,f,p,m)};if(t){const i=t+Ru,a=r;r=s=>s.startsWith(i)?a(s.slice(i.length)):Ou(JE,!1,s,void 0,!0)}if(n){const i=r;r=a=>n({className:a,parseClassName:i})}return r},t3=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let a=0;a<n.length;a++){const s=n[a],u=s[0]==="[",o=t.has(s);u||o?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(s)):i.push(s)}return i.length>0&&(i.sort(),r.push(...i)),r}},n3=e=>({cache:ZE(e.cacheSize),parseClassName:e3(e),sortModifiers:t3(e),...YE(e)}),r3=/\s+/,i3=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,s=[],u=e.trim().split(r3);let o="";for(let l=u.length-1;l>=0;l-=1){const h=u[l],{isExternal:d,modifiers:p,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:T}=n(h);if(d){o=h+(o.length>0?" "+o:o);continue}let C=!!T,y=r(C?m.substring(0,T):m);if(!y){if(!C){o=h+(o.length>0?" "+o:o);continue}if(y=r(m),!y){o=h+(o.length>0?" "+o:o);continue}C=!1}const I=p.length===0?"":p.length===1?p[0]:a(p).join(":"),S=f?I+ua:I,D=S+y;if(s.indexOf(D)>-1)continue;s.push(D);const R=i(y,C);for(let x=0;x<R.length;++x){const F=R[x];s.push(S+F)}o=h+(o.length>0?" "+o:o)}return o},a3=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=Yc(n))&&(i&&(i+=" "),i+=r);return i},Yc=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Yc(e[r]))&&(n&&(n+=" "),n+=t);return n},s3=(e,...t)=>{let n,r,i,a;const s=o=>{const l=t.reduce((h,d)=>d(h),e());return n=n3(l),r=n.cache.get,i=n.cache.set,a=u,u(o)},u=o=>{const l=r(o);if(l)return l;const h=i3(o,n);return i(o,h),h};return a=s,(...o)=>a(a3(...o))},u3=[],Se=e=>{const t=n=>n[e]||u3;return t.isThemeGetter=!0,t},qc=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,jc=/^\((?:(\w[\w-]*):)?(.+)\)$/i,o3=/^\d+\/\d+$/,l3=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,c3=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,d3=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,h3=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,f3=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,nn=e=>o3.test(e),ne=e=>!!e&&!Number.isNaN(Number(e)),Ct=e=>!!e&&Number.isInteger(Number(e)),Li=e=>e.endsWith("%")&&ne(e.slice(0,-1)),kt=e=>l3.test(e),p3=()=>!0,m3=e=>c3.test(e)&&!d3.test(e),Vc=()=>!1,g3=e=>h3.test(e),b3=e=>f3.test(e),E3=e=>!q(e)&&!j(e),T3=e=>xn(e,Qc,Vc),q=e=>qc.test(e),Ut=e=>xn(e,Kc,m3),Ri=e=>xn(e,A3,ne),Du=e=>xn(e,Wc,Vc),k3=e=>xn(e,Gc,b3),mr=e=>xn(e,Xc,g3),j=e=>jc.test(e),Ln=e=>yn(e,Kc),_3=e=>yn(e,C3),Pu=e=>yn(e,Wc),x3=e=>yn(e,Qc),y3=e=>yn(e,Gc),gr=e=>yn(e,Xc,!0),xn=(e,t,n)=>{const r=qc.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},yn=(e,t,n=!1)=>{const r=jc.exec(e);return r?r[1]?t(r[1]):n:!1},Wc=e=>e==="position"||e==="percentage",Gc=e=>e==="image"||e==="url",Qc=e=>e==="length"||e==="size"||e==="bg-size",Kc=e=>e==="length",A3=e=>e==="number",C3=e=>e==="family-name",Xc=e=>e==="shadow",w3=()=>{const e=Se("color"),t=Se("font"),n=Se("text"),r=Se("font-weight"),i=Se("tracking"),a=Se("leading"),s=Se("breakpoint"),u=Se("container"),o=Se("spacing"),l=Se("radius"),h=Se("shadow"),d=Se("inset-shadow"),p=Se("text-shadow"),f=Se("drop-shadow"),m=Se("blur"),T=Se("perspective"),C=Se("aspect"),y=Se("ease"),I=Se("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[...D(),j,q],x=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],P=()=>[j,q,o],U=()=>[nn,"full","auto",...P()],N=()=>[Ct,"none","subgrid",j,q],Y=()=>["auto",{span:["full",Ct,j,q]},Ct,j,q],B=()=>[Ct,"auto",j,q],Q=()=>["auto","min","max","fr",j,q],ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],Z=()=>["auto",...P()],J=()=>[nn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],V=()=>[e,j,q],Fe=()=>[...D(),Pu,Du,{position:[j,q]}],A=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Oe=()=>["auto","cover","contain",x3,T3,{size:[j,q]}],He=()=>[Li,Ln,Ut],_=()=>["","none","full",l,j,q],pe=()=>["",ne,Ln,Ut],Ye=()=>["solid","dashed","dotted","double"],xe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ee=()=>[ne,Li,Pu,Du],We=()=>["","none",m,j,q],Ge=()=>["none",ne,j,q],Qe=()=>["none",ne,j,q],ct=()=>[ne,j,q],ue=()=>[nn,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[kt],breakpoint:[kt],color:[p3],container:[kt],"drop-shadow":[kt],ease:["in","out","in-out"],font:[E3],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[kt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[kt],shadow:[kt],spacing:["px",ne],text:[kt],"text-shadow":[kt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",nn,q,j,C]}],container:["container"],columns:[{columns:[ne,q,j,u]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:R()}],overflow:[{overflow:x()}],"overflow-x":[{"overflow-x":x()}],"overflow-y":[{"overflow-y":x()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:U()}],"inset-x":[{"inset-x":U()}],"inset-y":[{"inset-y":U()}],start:[{start:U()}],end:[{end:U()}],top:[{top:U()}],right:[{right:U()}],bottom:[{bottom:U()}],left:[{left:U()}],visibility:["visible","invisible","collapse"],z:[{z:[Ct,"auto",j,q]}],basis:[{basis:[nn,"full","auto",u,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ne,nn,"auto","initial","none",q]}],grow:[{grow:["",ne,j,q]}],shrink:[{shrink:["",ne,j,q]}],order:[{order:[Ct,"first","last","none",j,q]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:Y()}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:Y()}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Q()}],"auto-rows":[{"auto-rows":Q()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...ie(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...ie()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:Z()}],mx:[{mx:Z()}],my:[{my:Z()}],ms:[{ms:Z()}],me:[{me:Z()}],mt:[{mt:Z()}],mr:[{mr:Z()}],mb:[{mb:Z()}],ml:[{ml:Z()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],w:[{w:[u,"screen",...J()]}],"min-w":[{"min-w":[u,"screen","none",...J()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[s]},...J()]}],h:[{h:["screen","lh",...J()]}],"min-h":[{"min-h":["screen","lh","none",...J()]}],"max-h":[{"max-h":["screen","lh",...J()]}],"font-size":[{text:["base",n,Ln,Ut]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,j,Ri]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Li,q]}],"font-family":[{font:[_3,q,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,j,q]}],"line-clamp":[{"line-clamp":[ne,"none",j,Ri]}],leading:[{leading:[a,...P()]}],"list-image":[{"list-image":["none",j,q]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",j,q]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ye(),"wavy"]}],"text-decoration-thickness":[{decoration:[ne,"from-font","auto",j,Ut]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[ne,"auto",j,q]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",j,q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",j,q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Fe()}],"bg-repeat":[{bg:A()}],"bg-size":[{bg:Oe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ct,j,q],radial:["",j,q],conic:[Ct,j,q]},y3,k3]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:He()}],"gradient-via-pos":[{via:He()}],"gradient-to-pos":[{to:He()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:_()}],"rounded-s":[{"rounded-s":_()}],"rounded-e":[{"rounded-e":_()}],"rounded-t":[{"rounded-t":_()}],"rounded-r":[{"rounded-r":_()}],"rounded-b":[{"rounded-b":_()}],"rounded-l":[{"rounded-l":_()}],"rounded-ss":[{"rounded-ss":_()}],"rounded-se":[{"rounded-se":_()}],"rounded-ee":[{"rounded-ee":_()}],"rounded-es":[{"rounded-es":_()}],"rounded-tl":[{"rounded-tl":_()}],"rounded-tr":[{"rounded-tr":_()}],"rounded-br":[{"rounded-br":_()}],"rounded-bl":[{"rounded-bl":_()}],"border-w":[{border:pe()}],"border-w-x":[{"border-x":pe()}],"border-w-y":[{"border-y":pe()}],"border-w-s":[{"border-s":pe()}],"border-w-e":[{"border-e":pe()}],"border-w-t":[{"border-t":pe()}],"border-w-r":[{"border-r":pe()}],"border-w-b":[{"border-b":pe()}],"border-w-l":[{"border-l":pe()}],"divide-x":[{"divide-x":pe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":pe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ye(),"hidden","none"]}],"divide-style":[{divide:[...Ye(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...Ye(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ne,j,q]}],"outline-w":[{outline:["",ne,Ln,Ut]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",h,gr,mr]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",d,gr,mr]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[ne,Ut]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":pe()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",p,gr,mr]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[ne,j,q]}],"mix-blend":[{"mix-blend":[...xe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":xe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ne]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ee()}],"mask-image-linear-from-color":[{"mask-linear-from":V()}],"mask-image-linear-to-color":[{"mask-linear-to":V()}],"mask-image-t-from-pos":[{"mask-t-from":Ee()}],"mask-image-t-to-pos":[{"mask-t-to":Ee()}],"mask-image-t-from-color":[{"mask-t-from":V()}],"mask-image-t-to-color":[{"mask-t-to":V()}],"mask-image-r-from-pos":[{"mask-r-from":Ee()}],"mask-image-r-to-pos":[{"mask-r-to":Ee()}],"mask-image-r-from-color":[{"mask-r-from":V()}],"mask-image-r-to-color":[{"mask-r-to":V()}],"mask-image-b-from-pos":[{"mask-b-from":Ee()}],"mask-image-b-to-pos":[{"mask-b-to":Ee()}],"mask-image-b-from-color":[{"mask-b-from":V()}],"mask-image-b-to-color":[{"mask-b-to":V()}],"mask-image-l-from-pos":[{"mask-l-from":Ee()}],"mask-image-l-to-pos":[{"mask-l-to":Ee()}],"mask-image-l-from-color":[{"mask-l-from":V()}],"mask-image-l-to-color":[{"mask-l-to":V()}],"mask-image-x-from-pos":[{"mask-x-from":Ee()}],"mask-image-x-to-pos":[{"mask-x-to":Ee()}],"mask-image-x-from-color":[{"mask-x-from":V()}],"mask-image-x-to-color":[{"mask-x-to":V()}],"mask-image-y-from-pos":[{"mask-y-from":Ee()}],"mask-image-y-to-pos":[{"mask-y-to":Ee()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[j,q]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ee()}],"mask-image-radial-from-color":[{"mask-radial-from":V()}],"mask-image-radial-to-color":[{"mask-radial-to":V()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":D()}],"mask-image-conic-pos":[{"mask-conic":[ne]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ee()}],"mask-image-conic-from-color":[{"mask-conic-from":V()}],"mask-image-conic-to-color":[{"mask-conic-to":V()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Fe()}],"mask-repeat":[{mask:A()}],"mask-size":[{mask:Oe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",j,q]}],filter:[{filter:["","none",j,q]}],blur:[{blur:We()}],brightness:[{brightness:[ne,j,q]}],contrast:[{contrast:[ne,j,q]}],"drop-shadow":[{"drop-shadow":["","none",f,gr,mr]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",ne,j,q]}],"hue-rotate":[{"hue-rotate":[ne,j,q]}],invert:[{invert:["",ne,j,q]}],saturate:[{saturate:[ne,j,q]}],sepia:[{sepia:["",ne,j,q]}],"backdrop-filter":[{"backdrop-filter":["","none",j,q]}],"backdrop-blur":[{"backdrop-blur":We()}],"backdrop-brightness":[{"backdrop-brightness":[ne,j,q]}],"backdrop-contrast":[{"backdrop-contrast":[ne,j,q]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ne,j,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ne,j,q]}],"backdrop-invert":[{"backdrop-invert":["",ne,j,q]}],"backdrop-opacity":[{"backdrop-opacity":[ne,j,q]}],"backdrop-saturate":[{"backdrop-saturate":[ne,j,q]}],"backdrop-sepia":[{"backdrop-sepia":["",ne,j,q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",j,q]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ne,"initial",j,q]}],ease:[{ease:["linear","initial",y,j,q]}],delay:[{delay:[ne,j,q]}],animate:[{animate:["none",I,j,q]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[T,j,q]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:Ge()}],"rotate-x":[{"rotate-x":Ge()}],"rotate-y":[{"rotate-y":Ge()}],"rotate-z":[{"rotate-z":Ge()}],scale:[{scale:Qe()}],"scale-x":[{"scale-x":Qe()}],"scale-y":[{"scale-y":Qe()}],"scale-z":[{"scale-z":Qe()}],"scale-3d":["scale-3d"],skew:[{skew:ct()}],"skew-x":[{"skew-x":ct()}],"skew-y":[{"skew-y":ct()}],transform:[{transform:[j,q,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ue()}],"translate-x":[{"translate-x":ue()}],"translate-y":[{"translate-y":ue()}],"translate-z":[{"translate-z":ue()}],"translate-none":["translate-none"],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",j,q]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",j,q]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[ne,Ln,Ut,Ri]}],stroke:[{stroke:["none",...V()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},S3=s3(w3),I3=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,N3=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,v3={};function Mu(e,t){return((t||v3).jsx?N3:I3).test(e)}const L3=/[ \t\n\f\r]/g;function R3(e){return typeof e=="object"?e.type==="text"?Bu(e.value):!1:Bu(e)}function Bu(e){return e.replace(L3,"")===""}var jr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wa={},Fu=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,O3=/\n/g,D3=/^\s*/,P3=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,M3=/^:\s*/,B3=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,F3=/^[;\s]*/,H3=/^\s+|\s+$/g,U3=`
35
- `,Hu="/",Uu="*",$t="",z3="comment",$3="declaration",Y3=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(m){var T=m.match(O3);T&&(n+=T.length);var C=m.lastIndexOf(U3);r=~C?m.length-C:r+m.length}function a(){var m={line:n,column:r};return function(T){return T.position=new s(m),l(),T}}function s(m){this.start=m,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function u(m){var T=new Error(t.source+":"+n+":"+r+": "+m);if(T.reason=m,T.filename=t.source,T.line=n,T.column=r,T.source=e,!t.silent)throw T}function o(m){var T=m.exec(e);if(T){var C=T[0];return i(C),e=e.slice(C.length),T}}function l(){o(D3)}function h(m){var T;for(m=m||[];T=d();)T!==!1&&m.push(T);return m}function d(){var m=a();if(!(Hu!=e.charAt(0)||Uu!=e.charAt(1))){for(var T=2;$t!=e.charAt(T)&&(Uu!=e.charAt(T)||Hu!=e.charAt(T+1));)++T;if(T+=2,$t===e.charAt(T-1))return u("End of comment missing");var C=e.slice(2,T-2);return r+=2,i(C),e=e.slice(T),r+=2,m({type:z3,comment:C})}}function p(){var m=a(),T=o(P3);if(T){if(d(),!o(M3))return u("property missing ':'");var C=o(B3),y=m({type:$3,property:zu(T[0].replace(Fu,$t)),value:C?zu(C[0].replace(Fu,$t)):$t});return o(F3),y}}function f(){var m=[];h(m);for(var T;T=p();)T!==!1&&(m.push(T),h(m));return m}return l(),f()};function zu(e){return e?e.replace(H3,$t):$t}var q3=jr&&jr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Wa,"__esModule",{value:!0});Wa.default=V3;const j3=q3(Y3);function V3(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,j3.default)(e),i=typeof t=="function";return r.forEach(a=>{if(a.type!=="declaration")return;const{property:s,value:u}=a;i?t(s,u,a):u&&(n=n||{},n[s]=u)}),n}var ci={};Object.defineProperty(ci,"__esModule",{value:!0});ci.camelCase=void 0;var W3=/^--[a-zA-Z0-9_-]+$/,G3=/-([a-z])/g,Q3=/^[^-]+$/,K3=/^-(webkit|moz|ms|o|khtml)-/,X3=/^-(ms)-/,Z3=function(e){return!e||Q3.test(e)||W3.test(e)},J3=function(e,t){return t.toUpperCase()},$u=function(e,t){return"".concat(t,"-")},eT=function(e,t){return t===void 0&&(t={}),Z3(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(X3,$u):e=e.replace(K3,$u),e.replace(G3,J3))};ci.camelCase=eT;var tT=jr&&jr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},nT=tT(Wa),rT=ci;function oa(e,t){var n={};return!e||typeof e!="string"||(0,nT.default)(e,function(r,i){r&&i&&(n[(0,rT.camelCase)(r,t)]=i)}),n}oa.default=oa;var iT=oa;const aT=Zc(iT);function jn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Yu(e.position):"start"in e||"end"in e?Yu(e):"line"in e||"column"in e?la(e):""}function la(e){return qu(e&&e.line)+":"+qu(e&&e.column)}function Yu(e){return la(e&&e.start)+"-"+la(e&&e.end)}function qu(e){return e&&typeof e=="number"?e:1}class Be extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const o=r.indexOf(":");o===-1?a.ruleId=r:(a.source=r.slice(0,o),a.ruleId=r.slice(o+1))}if(!a.place&&a.ancestors&&a.ancestors){const o=a.ancestors[a.ancestors.length-1];o&&(a.place=o.position)}const u=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=u?u.line:void 0,this.name=jn(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Be.prototype.file="";Be.prototype.name="";Be.prototype.reason="";Be.prototype.message="";Be.prototype.stack="";Be.prototype.column=void 0;Be.prototype.line=void 0;Be.prototype.ancestors=void 0;Be.prototype.cause=void 0;Be.prototype.fatal=void 0;Be.prototype.place=void 0;Be.prototype.ruleId=void 0;Be.prototype.source=void 0;const Ga={}.hasOwnProperty,sT=new Map,uT=/[A-Z]/g,oT=new Set(["table","tbody","thead","tfoot","tr"]),lT=new Set(["td","th"]),Jc="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function cT(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=ET(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=bT(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Pt:ir,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=ed(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function ed(e,t,n){if(t.type==="element")return dT(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return hT(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return pT(e,t,n);if(t.type==="mdxjsEsm")return fT(e,t);if(t.type==="root")return mT(e,t,n);if(t.type==="text")return gT(e,t)}function dT(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Pt,e.schema=i),e.ancestors.push(t);const a=nd(e,t.tagName,!1),s=TT(e,t);let u=Ka(e,t);return oT.has(t.tagName)&&(u=u.filter(function(o){return typeof o=="string"?!R3(o):!0})),td(e,s,a,t),Qa(s,u),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function hT(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Jn(e,t.position)}function fT(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Jn(e,t.position)}function pT(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Pt,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:nd(e,t.name,!0),s=kT(e,t),u=Ka(e,t);return td(e,s,a,t),Qa(s,u),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function mT(e,t,n){const r={};return Qa(r,Ka(e,t)),e.create(t,e.Fragment,r,n)}function gT(e,t){return t.value}function td(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Qa(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function bT(e,t,n){return r;function r(i,a,s,u){const l=Array.isArray(s.children)?n:t;return u?l(a,s,u):l(a,s)}}function ET(e,t){return n;function n(r,i,a,s){const u=Array.isArray(a.children),o=gt(r);return t(i,a,s,u,{columnNumber:o?o.column-1:void 0,fileName:e,lineNumber:o?o.line:void 0},void 0)}}function TT(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Ga.call(t.properties,i)){const a=_T(e,i,t.properties[i]);if(a){const[s,u]=a;e.tableCellAlignToStyle&&s==="align"&&typeof u=="string"&&lT.has(t.tagName)?r=u:n[s]=u}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function kT(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const u=s.properties[0];u.type,Object.assign(n,e.evaluater.evaluateExpression(u.argument))}else Jn(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,a=e.evaluater.evaluateExpression(u.expression)}else Jn(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function Ka(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:sT;for(;++r<t.children.length;){const a=t.children[r];let s;if(e.passKeys){const o=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(o){const l=i.get(o)||0;s=o+"-"+l,i.set(o,l+1)}}const u=ed(e,a,s);u!==void 0&&n.push(u)}return n}function _T(e,t,n){const r=ti(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?ll(n):cl(n)),r.property==="style"){let i=typeof n=="object"?n:xT(e,String(n));return e.stylePropertyNameCase==="css"&&(i=yT(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Sh[r.property]||r.property:r.attribute,n]}}function xT(e,t){try{return aT(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Be("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Jc+"#cannot-parse-style-attribute",i}}function nd(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,s;for(;++a<i.length;){const u=Mu(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};s=s?{type:"MemberExpression",object:s,property:u,computed:!!(a&&u.type==="Literal"),optional:!1}:u}r=s}else r=Mu(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Ga.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Jn(e)}function Jn(e,t){const n=new Be("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Jc+"#cannot-handle-mdx-estrees-without-createevaluater",n}function yT(e){const t={};let n;for(n in e)Ga.call(e,n)&&(t[AT(n)]=e[n]);return t}function AT(e){let t=e.replace(uT,CT);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function CT(e){return"-"+e.toLowerCase()}const wT={tokenize:ST};function ST(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),oe(e,t,"linePrefix")}function i(u){return e.enter("paragraph"),a(u)}function a(u){const o=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=o),n=o,s(u)}function s(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return G(u)?(e.consume(u),e.exit("chunkText"),a):(e.consume(u),s)}}const IT={tokenize:NT},ju={tokenize:vT};function NT(e){const t=this,n=[];let r=0,i,a,s;return u;function u(S){if(r<n.length){const D=n[r];return t.containerState=D[1],e.attempt(D[0].continuation,o,l)(S)}return l(S)}function o(S){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&I();const D=t.events.length;let R=D,x;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){x=t.events[R][1].end;break}y(r);let F=D;for(;F<t.events.length;)t.events[F][1].end={...x},F++;return et(t.events,R+1,0,t.events.slice(D)),t.events.length=F,l(S)}return u(S)}function l(S){if(r===n.length){if(!i)return p(S);if(i.currentConstruct&&i.currentConstruct.concrete)return m(S);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ju,h,d)(S)}function h(S){return i&&I(),y(r),p(S)}function d(S){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,m(S)}function p(S){return t.containerState={},e.attempt(ju,f,m)(S)}function f(S){return r++,n.push([t.currentConstruct,t.containerState]),p(S)}function m(S){if(S===null){i&&I(),y(0),e.consume(S);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),T(S)}function T(S){if(S===null){C(e.exit("chunkFlow"),!0),y(0),e.consume(S);return}return G(S)?(e.consume(S),C(e.exit("chunkFlow")),r=0,t.interrupt=void 0,u):(e.consume(S),T)}function C(S,D){const R=t.sliceStream(S);if(D&&R.push(null),S.previous=a,a&&(a.next=S),a=S,i.defineSkip(S.start),i.write(R),t.parser.lazy[S.start.line]){let x=i.events.length;for(;x--;)if(i.events[x][1].start.offset<s&&(!i.events[x][1].end||i.events[x][1].end.offset>s))return;const F=t.events.length;let P=F,U,N;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){if(U){N=t.events[P][1].end;break}U=!0}for(y(r),x=F;x<t.events.length;)t.events[x][1].end={...N},x++;et(t.events,P+1,0,t.events.slice(F)),t.events.length=x}}function y(S){let D=n.length;for(;D-- >S;){const R=n[D];t.containerState=R[1],R[0].exit.call(t,e)}n.length=S}function I(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function vT(e,t,n){return oe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const LT={tokenize:RT};function RT(e){const t=this,n=e.attempt(or,r,e.attempt(this.parser.constructs.flowInitial,i,oe(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Eb,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const OT={resolveAll:id()},DT=rd("string"),PT=rd("text");function rd(e){return{resolveAll:id(e==="text"?MT:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,u);return s;function s(h){return l(h)?a(h):u(h)}function u(h){if(h===null){n.consume(h);return}return n.enter("data"),n.consume(h),o}function o(h){return l(h)?(n.exit("data"),a(h)):(n.consume(h),o)}function l(h){if(h===null)return!0;const d=i[h];let p=-1;if(d)for(;++p<d.length;){const f=d[p];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function id(e){return t;function t(n,r){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type==="data"&&(a=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(n,r):n}}function MT(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let a=i.length,s=-1,u=0,o;for(;a--;){const l=i[a];if(typeof l=="string"){for(s=l.length;l.charCodeAt(s-1)===32;)u++,s--;if(s)break;s=-1}else if(l===-2)o=!0,u++;else if(l!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(u=0),u){const l={type:n===e.length||o||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-u,offset:r.end.offset-u},end:{...r.end}};r.end={...l.start},r.start.offset===r.end.offset?Object.assign(r,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}const BT={42:je,43:je,45:je,48:je,49:je,50:je,51:je,52:je,53:je,54:je,55:je,56:je,57:je,62:Ac},FT={91:yb},HT={[-2]:Ii,[-1]:Ii,32:Ii},UT={35:Nb,42:Ir,45:[Cu,Ir],60:Ob,61:Cu,95:Ir,96:yu,126:yu},zT={38:wc,92:Cc},$T={[-5]:Ni,[-4]:Ni,[-3]:Ni,33:Xb,38:wc,42:sa,60:[Jg,Ub],91:Jb,92:[Sb,Cc],93:qa,95:sa,96:hb},YT={null:[sa,OT]},qT={null:[42,95]},jT={null:[]},VT=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:qT,contentInitial:FT,disable:jT,document:BT,flow:UT,flowInitial:HT,insideSpan:YT,string:zT,text:$T},Symbol.toStringTag,{value:"Module"}));function WT(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},a=[];let s=[],u=[];const o={attempt:F(R),check:F(x),consume:I,enter:S,exit:D,interrupt:F(x,{interrupt:!0})},l={code:null,containerState:{},defineSkip:T,events:[],now:m,parser:e,previous:null,sliceSerialize:p,sliceStream:f,write:d};let h=t.tokenize.call(l,o);return t.resolveAll&&a.push(t),l;function d(Y){return s=it(s,Y),C(),s[s.length-1]!==null?[]:(P(t,0),l.events=oi(a,l.events,l),l.events)}function p(Y,B){return QT(f(Y),B)}function f(Y){return GT(s,Y)}function m(){const{_bufferIndex:Y,_index:B,line:Q,column:ie,offset:X}=r;return{_bufferIndex:Y,_index:B,line:Q,column:ie,offset:X}}function T(Y){i[Y.line]=Y.column,N()}function C(){let Y;for(;r._index<s.length;){const B=s[r._index];if(typeof B=="string")for(Y=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===Y&&r._bufferIndex<B.length;)y(B.charCodeAt(r._bufferIndex));else y(B)}}function y(Y){h=h(Y)}function I(Y){G(Y)?(r.line++,r.column=1,r.offset+=Y===-3?2:1,N()):Y!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=Y}function S(Y,B){const Q=B||{};return Q.type=Y,Q.start=m(),l.events.push(["enter",Q,l]),u.push(Q),Q}function D(Y){const B=u.pop();return B.end=m(),l.events.push(["exit",B,l]),B}function R(Y,B){P(Y,B.from)}function x(Y,B){B.restore()}function F(Y,B){return Q;function Q(ie,X,Z){let J,V,Fe,A;return Array.isArray(ie)?He(ie):"tokenize"in ie?He([ie]):Oe(ie);function Oe(xe){return Ee;function Ee(We){const Ge=We!==null&&xe[We],Qe=We!==null&&xe.null,ct=[...Array.isArray(Ge)?Ge:Ge?[Ge]:[],...Array.isArray(Qe)?Qe:Qe?[Qe]:[]];return He(ct)(We)}}function He(xe){return J=xe,V=0,xe.length===0?Z:_(xe[V])}function _(xe){return Ee;function Ee(We){return A=U(),Fe=xe,xe.partial||(l.currentConstruct=xe),xe.name&&l.parser.constructs.disable.null.includes(xe.name)?Ye():xe.tokenize.call(B?Object.assign(Object.create(l),B):l,o,pe,Ye)(We)}}function pe(xe){return Y(Fe,A),X}function Ye(xe){return A.restore(),++V<J.length?_(J[V]):Z}}}function P(Y,B){Y.resolveAll&&!a.includes(Y)&&a.push(Y),Y.resolve&&et(l.events,B,l.events.length-B,Y.resolve(l.events.slice(B),l)),Y.resolveTo&&(l.events=Y.resolveTo(l.events,l))}function U(){const Y=m(),B=l.previous,Q=l.currentConstruct,ie=l.events.length,X=Array.from(u);return{from:ie,restore:Z};function Z(){r=Y,l.previous=B,l.currentConstruct=Q,l.events.length=ie,u=X,N()}}function N(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function GT(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,a)];else{if(s=e.slice(n,i),r>-1){const u=s[0];typeof u=="string"?s[0]=u.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function QT(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
31
+ $$`:`${e}$$`},IE=e=>wE(e)%2===0?e:SE(e),NE=(e,t,n)=>{if(e.substring(t+2).includes(")"))return null;let r=tE(e,t);if(r===-1||Vr(e,r))return null;let i=r>0&&e[r-1]==="!",a=i?r-1:r,s=e.substring(0,a);if(i)return s;let u=e.substring(r+1,t);return n==="text-only"?`${s}${u}`:`${s}[${u}](streamdown:incomplete-link)`},Ru=(e,t)=>{for(let n=0;n<=t;n++)if(e[n]==="["&&!Vr(e,n)){if(n>0&&e[n-1]==="!")continue;let r=Pc(e,n);if(r===-1)return n;if(r+1<e.length&&e[r+1]==="("){let i=e.indexOf(")",r+2);i!==-1&&(n=i)}}return-1},vE=(e,t,n)=>{let r=t>0&&e[t-1]==="!",i=r?t-1:t,a=e.substring(t+1);if(!a.includes("]")){let s=e.substring(0,i);if(r)return s;if(n==="text-only"){let u=Ru(e,t);return u!==-1?e.substring(0,u)+e.substring(u+1):`${s}${a}`}return`${e}](streamdown:incomplete-link)`}if(Pc(e,t)===-1){let s=e.substring(0,i);if(r)return s;if(n==="text-only"){let u=Ru(e,t);if(u!==-1)return e.substring(0,u)+e.substring(u+1);let o=e.substring(t+1);return`${s}${o}`}return`${e}](streamdown:incomplete-link)`}return null},Hc=(e,t="protocol")=>{let n=e.lastIndexOf("](");if(n!==-1&&!Vr(e,n)){let r=NE(e,n,t);if(r!==null)return r}for(let r=e.length-1;r>=0;r-=1)if(e[r]==="["&&!Vr(e,r)){let i=vE(e,r,t);if(i!==null)return i}return e},LE=/^-{1,2}$/,RE=/^[\s]*-{1,2}[\s]+$/,OE=/^={1,2}$/,DE=/^[\s]*={1,2}[\s]+$/,PE=e=>{if(!e||typeof e!="string")return e;let t=e.lastIndexOf(`
32
+ `);if(t===-1)return e;let n=e.substring(t+1),r=e.substring(0,t),i=n.trim();if(LE.test(i)&&!n.match(RE)){let a=r.split(`
33
+ `).at(-1);if(a&&a.trim().length>0)return`${e}​`}if(OE.test(i)&&!n.match(DE)){let a=r.split(`
34
+ `).at(-1);if(a&&a.trim().length>0)return`${e}​`}return e},ME=e=>{let t=e.match(G2);if(t){let n=t[2];if(!n||Jt.test(n))return e;if((e.match(Lu)||[]).length%2===1)return`${e}~~`}else if(e.match(J2)&&(e.match(Lu)||[]).length%2===1)return`${e}~`;return e},Oi=e=>e!==!1,Je={SETEXT_HEADINGS:0,LINKS:10,BOLD_ITALIC:20,BOLD:30,ITALIC_DOUBLE_UNDERSCORE:40,ITALIC_SINGLE_ASTERISK:41,ITALIC_SINGLE_UNDERSCORE:42,INLINE_CODE:50,STRIKETHROUGH:60,KATEX:70,DEFAULT:100},BE=[{handler:{name:"setextHeadings",handle:PE,priority:Je.SETEXT_HEADINGS},optionKey:"setextHeadings"},{handler:{name:"links",handle:Hc,priority:Je.LINKS},optionKey:"links",earlyReturn:e=>e.endsWith("](streamdown:incomplete-link)")},{handler:{name:"boldItalic",handle:kE,priority:Je.BOLD_ITALIC},optionKey:"boldItalic"},{handler:{name:"bold",handle:lE,priority:Je.BOLD},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:dE,priority:Je.ITALIC_DOUBLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:fE,priority:Je.ITALIC_SINGLE_ASTERISK},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:gE,priority:Je.ITALIC_SINGLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"inlineCode",handle:AE,priority:Je.INLINE_CODE},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:ME,priority:Je.STRIKETHROUGH},optionKey:"strikethrough"},{handler:{name:"katex",handle:IE,priority:Je.KATEX},optionKey:"katex"}],FE=e=>{var t;let n=(t=e==null?void 0:e.linkMode)!=null?t:"protocol";return BE.filter(({handler:r,optionKey:i})=>r.name==="links"?Oi(e==null?void 0:e.links)||Oi(e==null?void 0:e.images):Oi(e==null?void 0:e[i])).map(({handler:r,earlyReturn:i})=>r.name==="links"?{handler:Oc(Rc({},r),{handle:a=>Hc(a,n)}),earlyReturn:n==="protocol"?i:void 0}:{handler:r,earlyReturn:i})},HE=(e,t)=>{var n;if(!e||typeof e!="string")return e;let r=e.endsWith(" ")&&!e.endsWith(" ")?e.slice(0,-1):e,i=FE(t),a=((n=t==null?void 0:t.handlers)!=null?n:[]).map(u=>{var o;return{handler:Oc(Rc({},u),{priority:(o=u.priority)!=null?o:Je.DEFAULT}),earlyReturn:void 0}}),s=[...i,...a].sort((u,o)=>{var l,h;return((l=u.handler.priority)!=null?l:Je.DEFAULT)-((h=o.handler.priority)!=null?h:Je.DEFAULT)});for(let{handler:u,earlyReturn:o}of s)if(r=u.handle(r),o!=null&&o(r))return r;return r},UE=HE;function Uc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Uc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function zE(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Uc(e))&&(r&&(r+=" "),r+=t);return r}const $E=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},YE=(e,t)=>({classGroupId:e,validator:t}),zc=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Wr="-",Ou=[],qE="arbitrary..",jE=e=>{const t=WE(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return VE(s);const u=s.split(Wr),o=u[0]===""&&u.length>1?1:0;return $c(u,o,t)},getConflictingClassGroupIds:(s,u)=>{if(u){const o=r[s],l=n[s];return o?l?$E(l,o):o:l||Ou}return n[s]||Ou}}},$c=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],a=n.nextPart.get(i);if(a){const l=$c(e,t+1,a);if(l)return l}const s=n.validators;if(s===null)return;const u=t===0?e.join(Wr):e.slice(t).join(Wr),o=s.length;for(let l=0;l<o;l++){const h=s[l];if(h.validator(u))return h.classGroupId}},VE=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?qE+r:void 0})(),WE=e=>{const{theme:t,classGroups:n}=e;return GE(n,t)},GE=(e,t)=>{const n=zc();for(const r in e){const i=e[r];Ka(i,n,r,t)}return n},Ka=(e,t,n,r)=>{const i=e.length;for(let a=0;a<i;a++){const s=e[a];QE(s,t,n,r)}},QE=(e,t,n,r)=>{if(typeof e=="string"){KE(e,t,n);return}if(typeof e=="function"){XE(e,t,n,r);return}ZE(e,t,n,r)},KE=(e,t,n)=>{const r=e===""?t:Yc(t,e);r.classGroupId=n},XE=(e,t,n,r)=>{if(JE(e)){Ka(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(YE(n,e))},ZE=(e,t,n,r)=>{const i=Object.entries(e),a=i.length;for(let s=0;s<a;s++){const[u,o]=i[s];Ka(o,Yc(t,u),n,r)}},Yc=(e,t)=>{let n=e;const r=t.split(Wr),i=r.length;for(let a=0;a<i;a++){const s=r[a];let u=n.nextPart.get(s);u||(u=zc(),n.nextPart.set(s,u)),n=u}return n},JE=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,e3=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(a,s)=>{n[a]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let s=n[a];if(s!==void 0)return s;if((s=r[a])!==void 0)return i(a,s),s},set(a,s){a in n?n[a]=s:i(a,s)}}},ca="!",Du=":",t3=[],Pu=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),n3=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const a=[];let s=0,u=0,o=0,l;const h=i.length;for(let k=0;k<h;k++){const C=i[k];if(s===0&&u===0){if(C===Du){a.push(i.slice(o,k)),o=k+1;continue}if(C==="/"){l=k;continue}}C==="["?s++:C==="]"?s--:C==="("?u++:C===")"&&u--}const d=a.length===0?i:i.slice(o);let p=d,f=!1;d.endsWith(ca)?(p=d.slice(0,-1),f=!0):d.startsWith(ca)&&(p=d.slice(1),f=!0);const m=l&&l>o?l-o:void 0;return Pu(a,f,p,m)};if(t){const i=t+Du,a=r;r=s=>s.startsWith(i)?a(s.slice(i.length)):Pu(t3,!1,s,void 0,!0)}if(n){const i=r;r=a=>n({className:a,parseClassName:i})}return r},r3=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let a=0;a<n.length;a++){const s=n[a],u=s[0]==="[",o=t.has(s);u||o?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(s)):i.push(s)}return i.length>0&&(i.sort(),r.push(...i)),r}},i3=e=>({cache:e3(e.cacheSize),parseClassName:n3(e),sortModifiers:r3(e),...jE(e)}),a3=/\s+/,s3=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,s=[],u=e.trim().split(a3);let o="";for(let l=u.length-1;l>=0;l-=1){const h=u[l],{isExternal:d,modifiers:p,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:k}=n(h);if(d){o=h+(o.length>0?" "+o:o);continue}let C=!!k,y=r(C?m.substring(0,k):m);if(!y){if(!C){o=h+(o.length>0?" "+o:o);continue}if(y=r(m),!y){o=h+(o.length>0?" "+o:o);continue}C=!1}const I=p.length===0?"":p.length===1?p[0]:a(p).join(":"),S=f?I+ca:I,D=S+y;if(s.indexOf(D)>-1)continue;s.push(D);const R=i(y,C);for(let x=0;x<R.length;++x){const H=R[x];s.push(S+H)}o=h+(o.length>0?" "+o:o)}return o},u3=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=qc(n))&&(i&&(i+=" "),i+=r);return i},qc=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=qc(e[r]))&&(n&&(n+=" "),n+=t);return n},o3=(e,...t)=>{let n,r,i,a;const s=o=>{const l=t.reduce((h,d)=>d(h),e());return n=i3(l),r=n.cache.get,i=n.cache.set,a=u,u(o)},u=o=>{const l=r(o);if(l)return l;const h=s3(o,n);return i(o,h),h};return a=s,(...o)=>a(u3(...o))},l3=[],Se=e=>{const t=n=>n[e]||l3;return t.isThemeGetter=!0,t},jc=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Vc=/^\((?:(\w[\w-]*):)?(.+)\)$/i,c3=/^\d+\/\d+$/,d3=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,h3=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,f3=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,p3=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,m3=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rn=e=>c3.test(e),ne=e=>!!e&&!Number.isNaN(Number(e)),wt=e=>!!e&&Number.isInteger(Number(e)),Di=e=>e.endsWith("%")&&ne(e.slice(0,-1)),Tt=e=>d3.test(e),g3=()=>!0,b3=e=>h3.test(e)&&!f3.test(e),Wc=()=>!1,E3=e=>p3.test(e),k3=e=>m3.test(e),T3=e=>!q(e)&&!j(e),_3=e=>yn(e,Kc,Wc),q=e=>jc.test(e),$t=e=>yn(e,Xc,b3),Pi=e=>yn(e,w3,ne),Mu=e=>yn(e,Gc,Wc),x3=e=>yn(e,Qc,k3),Er=e=>yn(e,Zc,E3),j=e=>Vc.test(e),Rn=e=>An(e,Xc),y3=e=>An(e,S3),Bu=e=>An(e,Gc),A3=e=>An(e,Kc),C3=e=>An(e,Qc),kr=e=>An(e,Zc,!0),yn=(e,t,n)=>{const r=jc.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},An=(e,t,n=!1)=>{const r=Vc.exec(e);return r?r[1]?t(r[1]):n:!1},Gc=e=>e==="position"||e==="percentage",Qc=e=>e==="image"||e==="url",Kc=e=>e==="length"||e==="size"||e==="bg-size",Xc=e=>e==="length",w3=e=>e==="number",S3=e=>e==="family-name",Zc=e=>e==="shadow",I3=()=>{const e=Se("color"),t=Se("font"),n=Se("text"),r=Se("font-weight"),i=Se("tracking"),a=Se("leading"),s=Se("breakpoint"),u=Se("container"),o=Se("spacing"),l=Se("radius"),h=Se("shadow"),d=Se("inset-shadow"),p=Se("text-shadow"),f=Se("drop-shadow"),m=Se("blur"),k=Se("perspective"),C=Se("aspect"),y=Se("ease"),I=Se("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[...D(),j,q],x=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],B=()=>[j,q,o],U=()=>[rn,"full","auto",...B()],N=()=>[wt,"none","subgrid",j,q],Y=()=>["auto",{span:["full",wt,j,q]},wt,j,q],M=()=>[wt,"auto",j,q],Q=()=>["auto","min","max","fr",j,q],ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],Z=()=>["auto",...B()],J=()=>[rn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...B()],V=()=>[e,j,q],He=()=>[...D(),Bu,Mu,{position:[j,q]}],A=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Oe=()=>["auto","cover","contain",A3,_3,{size:[j,q]}],Ue=()=>[Di,Rn,$t],_=()=>["","none","full",l,j,q],pe=()=>["",ne,Rn,$t],qe=()=>["solid","dashed","dotted","double"],xe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ee=()=>[ne,Di,Bu,Mu],Ge=()=>["","none",m,j,q],Qe=()=>["none",ne,j,q],Ke=()=>["none",ne,j,q],dt=()=>[ne,j,q],Ct=()=>[rn,"full",...B()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Tt],breakpoint:[Tt],color:[g3],container:[Tt],"drop-shadow":[Tt],ease:["in","out","in-out"],font:[T3],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Tt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Tt],shadow:[Tt],spacing:["px",ne],text:[Tt],"text-shadow":[Tt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",rn,q,j,C]}],container:["container"],columns:[{columns:[ne,q,j,u]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:R()}],overflow:[{overflow:x()}],"overflow-x":[{"overflow-x":x()}],"overflow-y":[{"overflow-y":x()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:U()}],"inset-x":[{"inset-x":U()}],"inset-y":[{"inset-y":U()}],start:[{start:U()}],end:[{end:U()}],top:[{top:U()}],right:[{right:U()}],bottom:[{bottom:U()}],left:[{left:U()}],visibility:["visible","invisible","collapse"],z:[{z:[wt,"auto",j,q]}],basis:[{basis:[rn,"full","auto",u,...B()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ne,rn,"auto","initial","none",q]}],grow:[{grow:["",ne,j,q]}],shrink:[{shrink:["",ne,j,q]}],order:[{order:[wt,"first","last","none",j,q]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:Y()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:Y()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Q()}],"auto-rows":[{"auto-rows":Q()}],gap:[{gap:B()}],"gap-x":[{"gap-x":B()}],"gap-y":[{"gap-y":B()}],"justify-content":[{justify:[...ie(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...ie()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:B()}],px:[{px:B()}],py:[{py:B()}],ps:[{ps:B()}],pe:[{pe:B()}],pt:[{pt:B()}],pr:[{pr:B()}],pb:[{pb:B()}],pl:[{pl:B()}],m:[{m:Z()}],mx:[{mx:Z()}],my:[{my:Z()}],ms:[{ms:Z()}],me:[{me:Z()}],mt:[{mt:Z()}],mr:[{mr:Z()}],mb:[{mb:Z()}],ml:[{ml:Z()}],"space-x":[{"space-x":B()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":B()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],w:[{w:[u,"screen",...J()]}],"min-w":[{"min-w":[u,"screen","none",...J()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[s]},...J()]}],h:[{h:["screen","lh",...J()]}],"min-h":[{"min-h":["screen","lh","none",...J()]}],"max-h":[{"max-h":["screen","lh",...J()]}],"font-size":[{text:["base",n,Rn,$t]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,j,Pi]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Di,q]}],"font-family":[{font:[y3,q,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,j,q]}],"line-clamp":[{"line-clamp":[ne,"none",j,Pi]}],leading:[{leading:[a,...B()]}],"list-image":[{"list-image":["none",j,q]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",j,q]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...qe(),"wavy"]}],"text-decoration-thickness":[{decoration:[ne,"from-font","auto",j,$t]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[ne,"auto",j,q]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",j,q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",j,q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:He()}],"bg-repeat":[{bg:A()}],"bg-size":[{bg:Oe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},wt,j,q],radial:["",j,q],conic:[wt,j,q]},C3,x3]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:Ue()}],"gradient-via-pos":[{via:Ue()}],"gradient-to-pos":[{to:Ue()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:_()}],"rounded-s":[{"rounded-s":_()}],"rounded-e":[{"rounded-e":_()}],"rounded-t":[{"rounded-t":_()}],"rounded-r":[{"rounded-r":_()}],"rounded-b":[{"rounded-b":_()}],"rounded-l":[{"rounded-l":_()}],"rounded-ss":[{"rounded-ss":_()}],"rounded-se":[{"rounded-se":_()}],"rounded-ee":[{"rounded-ee":_()}],"rounded-es":[{"rounded-es":_()}],"rounded-tl":[{"rounded-tl":_()}],"rounded-tr":[{"rounded-tr":_()}],"rounded-br":[{"rounded-br":_()}],"rounded-bl":[{"rounded-bl":_()}],"border-w":[{border:pe()}],"border-w-x":[{"border-x":pe()}],"border-w-y":[{"border-y":pe()}],"border-w-s":[{"border-s":pe()}],"border-w-e":[{"border-e":pe()}],"border-w-t":[{"border-t":pe()}],"border-w-r":[{"border-r":pe()}],"border-w-b":[{"border-b":pe()}],"border-w-l":[{"border-l":pe()}],"divide-x":[{"divide-x":pe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":pe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...qe(),"hidden","none"]}],"divide-style":[{divide:[...qe(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...qe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ne,j,q]}],"outline-w":[{outline:["",ne,Rn,$t]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",h,kr,Er]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",d,kr,Er]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[ne,$t]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":pe()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",p,kr,Er]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[ne,j,q]}],"mix-blend":[{"mix-blend":[...xe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":xe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ne]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ee()}],"mask-image-linear-from-color":[{"mask-linear-from":V()}],"mask-image-linear-to-color":[{"mask-linear-to":V()}],"mask-image-t-from-pos":[{"mask-t-from":Ee()}],"mask-image-t-to-pos":[{"mask-t-to":Ee()}],"mask-image-t-from-color":[{"mask-t-from":V()}],"mask-image-t-to-color":[{"mask-t-to":V()}],"mask-image-r-from-pos":[{"mask-r-from":Ee()}],"mask-image-r-to-pos":[{"mask-r-to":Ee()}],"mask-image-r-from-color":[{"mask-r-from":V()}],"mask-image-r-to-color":[{"mask-r-to":V()}],"mask-image-b-from-pos":[{"mask-b-from":Ee()}],"mask-image-b-to-pos":[{"mask-b-to":Ee()}],"mask-image-b-from-color":[{"mask-b-from":V()}],"mask-image-b-to-color":[{"mask-b-to":V()}],"mask-image-l-from-pos":[{"mask-l-from":Ee()}],"mask-image-l-to-pos":[{"mask-l-to":Ee()}],"mask-image-l-from-color":[{"mask-l-from":V()}],"mask-image-l-to-color":[{"mask-l-to":V()}],"mask-image-x-from-pos":[{"mask-x-from":Ee()}],"mask-image-x-to-pos":[{"mask-x-to":Ee()}],"mask-image-x-from-color":[{"mask-x-from":V()}],"mask-image-x-to-color":[{"mask-x-to":V()}],"mask-image-y-from-pos":[{"mask-y-from":Ee()}],"mask-image-y-to-pos":[{"mask-y-to":Ee()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[j,q]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ee()}],"mask-image-radial-from-color":[{"mask-radial-from":V()}],"mask-image-radial-to-color":[{"mask-radial-to":V()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":D()}],"mask-image-conic-pos":[{"mask-conic":[ne]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ee()}],"mask-image-conic-from-color":[{"mask-conic-from":V()}],"mask-image-conic-to-color":[{"mask-conic-to":V()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:He()}],"mask-repeat":[{mask:A()}],"mask-size":[{mask:Oe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",j,q]}],filter:[{filter:["","none",j,q]}],blur:[{blur:Ge()}],brightness:[{brightness:[ne,j,q]}],contrast:[{contrast:[ne,j,q]}],"drop-shadow":[{"drop-shadow":["","none",f,kr,Er]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",ne,j,q]}],"hue-rotate":[{"hue-rotate":[ne,j,q]}],invert:[{invert:["",ne,j,q]}],saturate:[{saturate:[ne,j,q]}],sepia:[{sepia:["",ne,j,q]}],"backdrop-filter":[{"backdrop-filter":["","none",j,q]}],"backdrop-blur":[{"backdrop-blur":Ge()}],"backdrop-brightness":[{"backdrop-brightness":[ne,j,q]}],"backdrop-contrast":[{"backdrop-contrast":[ne,j,q]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ne,j,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ne,j,q]}],"backdrop-invert":[{"backdrop-invert":["",ne,j,q]}],"backdrop-opacity":[{"backdrop-opacity":[ne,j,q]}],"backdrop-saturate":[{"backdrop-saturate":[ne,j,q]}],"backdrop-sepia":[{"backdrop-sepia":["",ne,j,q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":B()}],"border-spacing-x":[{"border-spacing-x":B()}],"border-spacing-y":[{"border-spacing-y":B()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",j,q]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ne,"initial",j,q]}],ease:[{ease:["linear","initial",y,j,q]}],delay:[{delay:[ne,j,q]}],animate:[{animate:["none",I,j,q]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,j,q]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:Qe()}],"rotate-x":[{"rotate-x":Qe()}],"rotate-y":[{"rotate-y":Qe()}],"rotate-z":[{"rotate-z":Qe()}],scale:[{scale:Ke()}],"scale-x":[{"scale-x":Ke()}],"scale-y":[{"scale-y":Ke()}],"scale-z":[{"scale-z":Ke()}],"scale-3d":["scale-3d"],skew:[{skew:dt()}],"skew-x":[{"skew-x":dt()}],"skew-y":[{"skew-y":dt()}],transform:[{transform:[j,q,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ct()}],"translate-x":[{"translate-x":Ct()}],"translate-y":[{"translate-y":Ct()}],"translate-z":[{"translate-z":Ct()}],"translate-none":["translate-none"],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",j,q]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",j,q]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[ne,Rn,$t,Pi]}],stroke:[{stroke:["none",...V()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},N3=o3(I3),v3=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,L3=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,R3={};function Fu(e,t){return((t||R3).jsx?L3:v3).test(e)}const O3=/[ \t\n\f\r]/g;function D3(e){return typeof e=="object"?e.type==="text"?Hu(e.value):!1:Hu(e)}function Hu(e){return e.replace(O3,"")===""}var Gr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xa={},Uu=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,P3=/\n/g,M3=/^\s*/,B3=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,F3=/^:\s*/,H3=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,U3=/^[;\s]*/,z3=/^\s+|\s+$/g,$3=`
35
+ `,zu="/",$u="*",qt="",Y3="comment",q3="declaration",j3=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(m){var k=m.match(P3);k&&(n+=k.length);var C=m.lastIndexOf($3);r=~C?m.length-C:r+m.length}function a(){var m={line:n,column:r};return function(k){return k.position=new s(m),l(),k}}function s(m){this.start=m,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function u(m){var k=new Error(t.source+":"+n+":"+r+": "+m);if(k.reason=m,k.filename=t.source,k.line=n,k.column=r,k.source=e,!t.silent)throw k}function o(m){var k=m.exec(e);if(k){var C=k[0];return i(C),e=e.slice(C.length),k}}function l(){o(M3)}function h(m){var k;for(m=m||[];k=d();)k!==!1&&m.push(k);return m}function d(){var m=a();if(!(zu!=e.charAt(0)||$u!=e.charAt(1))){for(var k=2;qt!=e.charAt(k)&&($u!=e.charAt(k)||zu!=e.charAt(k+1));)++k;if(k+=2,qt===e.charAt(k-1))return u("End of comment missing");var C=e.slice(2,k-2);return r+=2,i(C),e=e.slice(k),r+=2,m({type:Y3,comment:C})}}function p(){var m=a(),k=o(B3);if(k){if(d(),!o(F3))return u("property missing ':'");var C=o(H3),y=m({type:q3,property:Yu(k[0].replace(Uu,qt)),value:C?Yu(C[0].replace(Uu,qt)):qt});return o(U3),y}}function f(){var m=[];h(m);for(var k;k=p();)k!==!1&&(m.push(k),h(m));return m}return l(),f()};function Yu(e){return e?e.replace(z3,qt):qt}var V3=Gr&&Gr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xa,"__esModule",{value:!0});Xa.default=G3;const W3=V3(j3);function G3(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,W3.default)(e),i=typeof t=="function";return r.forEach(a=>{if(a.type!=="declaration")return;const{property:s,value:u}=a;i?t(s,u,a):u&&(n=n||{},n[s]=u)}),n}var fi={};Object.defineProperty(fi,"__esModule",{value:!0});fi.camelCase=void 0;var Q3=/^--[a-zA-Z0-9_-]+$/,K3=/-([a-z])/g,X3=/^[^-]+$/,Z3=/^-(webkit|moz|ms|o|khtml)-/,J3=/^-(ms)-/,ek=function(e){return!e||X3.test(e)||Q3.test(e)},tk=function(e,t){return t.toUpperCase()},qu=function(e,t){return"".concat(t,"-")},nk=function(e,t){return t===void 0&&(t={}),ek(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(J3,qu):e=e.replace(Z3,qu),e.replace(K3,tk))};fi.camelCase=nk;var rk=Gr&&Gr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},ik=rk(Xa),ak=fi;function da(e,t){var n={};return!e||typeof e!="string"||(0,ik.default)(e,function(r,i){r&&i&&(n[(0,ak.camelCase)(r,t)]=i)}),n}da.default=da;var sk=da;const uk=Jc(sk);function Vn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ju(e.position):"start"in e||"end"in e?ju(e):"line"in e||"column"in e?ha(e):""}function ha(e){return Vu(e&&e.line)+":"+Vu(e&&e.column)}function ju(e){return ha(e&&e.start)+"-"+ha(e&&e.end)}function Vu(e){return e&&typeof e=="number"?e:1}class Fe extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const o=r.indexOf(":");o===-1?a.ruleId=r:(a.source=r.slice(0,o),a.ruleId=r.slice(o+1))}if(!a.place&&a.ancestors&&a.ancestors){const o=a.ancestors[a.ancestors.length-1];o&&(a.place=o.position)}const u=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=u?u.line:void 0,this.name=Vn(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Fe.prototype.file="";Fe.prototype.name="";Fe.prototype.reason="";Fe.prototype.message="";Fe.prototype.stack="";Fe.prototype.column=void 0;Fe.prototype.line=void 0;Fe.prototype.ancestors=void 0;Fe.prototype.cause=void 0;Fe.prototype.fatal=void 0;Fe.prototype.place=void 0;Fe.prototype.ruleId=void 0;Fe.prototype.source=void 0;const Za={}.hasOwnProperty,ok=new Map,lk=/[A-Z]/g,ck=new Set(["table","tbody","thead","tfoot","tr"]),dk=new Set(["td","th"]),ed="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function hk(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Tk(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=kk(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Mt:ar,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=td(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function td(e,t,n){if(t.type==="element")return fk(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return pk(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return gk(e,t,n);if(t.type==="mdxjsEsm")return mk(e,t);if(t.type==="root")return bk(e,t,n);if(t.type==="text")return Ek(e,t)}function fk(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Mt,e.schema=i),e.ancestors.push(t);const a=rd(e,t.tagName,!1),s=_k(e,t);let u=es(e,t);return ck.has(t.tagName)&&(u=u.filter(function(o){return typeof o=="string"?!D3(o):!0})),nd(e,s,a,t),Ja(s,u),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function pk(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}er(e,t.position)}function mk(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);er(e,t.position)}function gk(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Mt,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:rd(e,t.name,!0),s=xk(e,t),u=es(e,t);return nd(e,s,a,t),Ja(s,u),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function bk(e,t,n){const r={};return Ja(r,es(e,t)),e.create(t,e.Fragment,r,n)}function Ek(e,t){return t.value}function nd(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Ja(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function kk(e,t,n){return r;function r(i,a,s,u){const l=Array.isArray(s.children)?n:t;return u?l(a,s,u):l(a,s)}}function Tk(e,t){return n;function n(r,i,a,s){const u=Array.isArray(a.children),o=gt(r);return t(i,a,s,u,{columnNumber:o?o.column-1:void 0,fileName:e,lineNumber:o?o.line:void 0},void 0)}}function _k(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Za.call(t.properties,i)){const a=yk(e,i,t.properties[i]);if(a){const[s,u]=a;e.tableCellAlignToStyle&&s==="align"&&typeof u=="string"&&dk.has(t.tagName)?r=u:n[s]=u}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function xk(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const u=s.properties[0];u.type,Object.assign(n,e.evaluater.evaluateExpression(u.argument))}else er(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,a=e.evaluater.evaluateExpression(u.expression)}else er(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function es(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:ok;for(;++r<t.children.length;){const a=t.children[r];let s;if(e.passKeys){const o=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(o){const l=i.get(o)||0;s=o+"-"+l,i.set(o,l+1)}}const u=td(e,a,s);u!==void 0&&n.push(u)}return n}function yk(e,t,n){const r=ii(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?cl(n):dl(n)),r.property==="style"){let i=typeof n=="object"?n:Ak(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Ck(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Nh[r.property]||r.property:r.attribute,n]}}function Ak(e,t){try{return uk(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Fe("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=ed+"#cannot-parse-style-attribute",i}}function rd(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,s;for(;++a<i.length;){const u=Fu(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};s=s?{type:"MemberExpression",object:s,property:u,computed:!!(a&&u.type==="Literal"),optional:!1}:u}r=s}else r=Fu(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Za.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);er(e)}function er(e,t){const n=new Fe("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ed+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Ck(e){const t={};let n;for(n in e)Za.call(e,n)&&(t[wk(n)]=e[n]);return t}function wk(e){let t=e.replace(lk,Sk);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Sk(e){return"-"+e.toLowerCase()}const Ik={tokenize:Nk};function Nk(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),oe(e,t,"linePrefix")}function i(u){return e.enter("paragraph"),a(u)}function a(u){const o=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=o),n=o,s(u)}function s(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return G(u)?(e.consume(u),e.exit("chunkText"),a):(e.consume(u),s)}}const vk={tokenize:Lk},Wu={tokenize:Rk};function Lk(e){const t=this,n=[];let r=0,i,a,s;return u;function u(S){if(r<n.length){const D=n[r];return t.containerState=D[1],e.attempt(D[0].continuation,o,l)(S)}return l(S)}function o(S){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&I();const D=t.events.length;let R=D,x;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){x=t.events[R][1].end;break}y(r);let H=D;for(;H<t.events.length;)t.events[H][1].end={...x},H++;return et(t.events,R+1,0,t.events.slice(D)),t.events.length=H,l(S)}return u(S)}function l(S){if(r===n.length){if(!i)return p(S);if(i.currentConstruct&&i.currentConstruct.concrete)return m(S);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Wu,h,d)(S)}function h(S){return i&&I(),y(r),p(S)}function d(S){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,m(S)}function p(S){return t.containerState={},e.attempt(Wu,f,m)(S)}function f(S){return r++,n.push([t.currentConstruct,t.containerState]),p(S)}function m(S){if(S===null){i&&I(),y(0),e.consume(S);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),k(S)}function k(S){if(S===null){C(e.exit("chunkFlow"),!0),y(0),e.consume(S);return}return G(S)?(e.consume(S),C(e.exit("chunkFlow")),r=0,t.interrupt=void 0,u):(e.consume(S),k)}function C(S,D){const R=t.sliceStream(S);if(D&&R.push(null),S.previous=a,a&&(a.next=S),a=S,i.defineSkip(S.start),i.write(R),t.parser.lazy[S.start.line]){let x=i.events.length;for(;x--;)if(i.events[x][1].start.offset<s&&(!i.events[x][1].end||i.events[x][1].end.offset>s))return;const H=t.events.length;let B=H,U,N;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){if(U){N=t.events[B][1].end;break}U=!0}for(y(r),x=H;x<t.events.length;)t.events[x][1].end={...N},x++;et(t.events,B+1,0,t.events.slice(H)),t.events.length=x}}function y(S){let D=n.length;for(;D-- >S;){const R=n[D];t.containerState=R[1],R[0].exit.call(t,e)}n.length=S}function I(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Rk(e,t,n){return oe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const Ok={tokenize:Dk};function Dk(e){const t=this,n=e.attempt(lr,r,e.attempt(this.parser.constructs.flowInitial,i,oe(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Tb,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Pk={resolveAll:ad()},Mk=id("string"),Bk=id("text");function id(e){return{resolveAll:ad(e==="text"?Fk:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,u);return s;function s(h){return l(h)?a(h):u(h)}function u(h){if(h===null){n.consume(h);return}return n.enter("data"),n.consume(h),o}function o(h){return l(h)?(n.exit("data"),a(h)):(n.consume(h),o)}function l(h){if(h===null)return!0;const d=i[h];let p=-1;if(d)for(;++p<d.length;){const f=d[p];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function ad(e){return t;function t(n,r){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type==="data"&&(a=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(n,r):n}}function Fk(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let a=i.length,s=-1,u=0,o;for(;a--;){const l=i[a];if(typeof l=="string"){for(s=l.length;l.charCodeAt(s-1)===32;)u++,s--;if(s)break;s=-1}else if(l===-2)o=!0,u++;else if(l!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(u=0),u){const l={type:n===e.length||o||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-u,offset:r.end.offset-u},end:{...r.end}};r.end={...l.start},r.start.offset===r.end.offset?Object.assign(r,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}const Hk={42:Ve,43:Ve,45:Ve,48:Ve,49:Ve,50:Ve,51:Ve,52:Ve,53:Ve,54:Ve,55:Ve,56:Ve,57:Ve,62:Cc},Uk={91:Cb},zk={[-2]:Li,[-1]:Li,32:Li},$k={35:Lb,42:Lr,45:[Su,Lr],60:Pb,61:Su,95:Lr,96:Cu,126:Cu},Yk={38:Sc,92:wc},qk={[-5]:Ri,[-4]:Ri,[-3]:Ri,33:Jb,38:Sc,42:la,60:[tb,$b],91:t2,92:[Nb,wc],93:Ga,95:la,96:pb},jk={null:[la,Pk]},Vk={null:[42,95]},Wk={null:[]},Gk=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Vk,contentInitial:Uk,disable:Wk,document:Hk,flow:$k,flowInitial:zk,insideSpan:jk,string:Yk,text:qk},Symbol.toStringTag,{value:"Module"}));function Qk(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},a=[];let s=[],u=[];const o={attempt:H(R),check:H(x),consume:I,enter:S,exit:D,interrupt:H(x,{interrupt:!0})},l={code:null,containerState:{},defineSkip:k,events:[],now:m,parser:e,previous:null,sliceSerialize:p,sliceStream:f,write:d};let h=t.tokenize.call(l,o);return t.resolveAll&&a.push(t),l;function d(Y){return s=it(s,Y),C(),s[s.length-1]!==null?[]:(B(t,0),l.events=di(a,l.events,l),l.events)}function p(Y,M){return Xk(f(Y),M)}function f(Y){return Kk(s,Y)}function m(){const{_bufferIndex:Y,_index:M,line:Q,column:ie,offset:X}=r;return{_bufferIndex:Y,_index:M,line:Q,column:ie,offset:X}}function k(Y){i[Y.line]=Y.column,N()}function C(){let Y;for(;r._index<s.length;){const M=s[r._index];if(typeof M=="string")for(Y=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===Y&&r._bufferIndex<M.length;)y(M.charCodeAt(r._bufferIndex));else y(M)}}function y(Y){h=h(Y)}function I(Y){G(Y)?(r.line++,r.column=1,r.offset+=Y===-3?2:1,N()):Y!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=Y}function S(Y,M){const Q=M||{};return Q.type=Y,Q.start=m(),l.events.push(["enter",Q,l]),u.push(Q),Q}function D(Y){const M=u.pop();return M.end=m(),l.events.push(["exit",M,l]),M}function R(Y,M){B(Y,M.from)}function x(Y,M){M.restore()}function H(Y,M){return Q;function Q(ie,X,Z){let J,V,He,A;return Array.isArray(ie)?Ue(ie):"tokenize"in ie?Ue([ie]):Oe(ie);function Oe(xe){return Ee;function Ee(Ge){const Qe=Ge!==null&&xe[Ge],Ke=Ge!==null&&xe.null,dt=[...Array.isArray(Qe)?Qe:Qe?[Qe]:[],...Array.isArray(Ke)?Ke:Ke?[Ke]:[]];return Ue(dt)(Ge)}}function Ue(xe){return J=xe,V=0,xe.length===0?Z:_(xe[V])}function _(xe){return Ee;function Ee(Ge){return A=U(),He=xe,xe.partial||(l.currentConstruct=xe),xe.name&&l.parser.constructs.disable.null.includes(xe.name)?qe():xe.tokenize.call(M?Object.assign(Object.create(l),M):l,o,pe,qe)(Ge)}}function pe(xe){return Y(He,A),X}function qe(xe){return A.restore(),++V<J.length?_(J[V]):Z}}}function B(Y,M){Y.resolveAll&&!a.includes(Y)&&a.push(Y),Y.resolve&&et(l.events,M,l.events.length-M,Y.resolve(l.events.slice(M),l)),Y.resolveTo&&(l.events=Y.resolveTo(l.events,l))}function U(){const Y=m(),M=l.previous,Q=l.currentConstruct,ie=l.events.length,X=Array.from(u);return{from:ie,restore:Z};function Z(){r=Y,l.previous=M,l.currentConstruct=Q,l.events.length=ie,u=X,N()}}function N(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Kk(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,a)];else{if(s=e.slice(n,i),r>-1){const u=s[0];typeof u=="string"?s[0]=u.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function Xk(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
36
36
  `;break}case-3:{s=`\r
37
- `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(a)}i=a===-2,r.push(s)}return r.join("")}function KT(e){const r={constructs:mc([VT,...(e||{}).extensions||[]]),content:i(wT),defined:[],document:i(IT),flow:i(LT),lazy:{},string:i(DT),text:i(PT)};return r;function i(a){return s;function s(u){return WT(r,a,u)}}}function XT(e){for(;!Sc(e););return e}const Vu=/[\0\t\n\r]/g;function ZT(){let e=1,t="",n=!0,r;return i;function i(a,s,u){const o=[];let l,h,d,p,f;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),d=0,t="",n&&(a.charCodeAt(0)===65279&&d++,n=void 0);d<a.length;){if(Vu.lastIndex=d,l=Vu.exec(a),p=l&&l.index!==void 0?l.index:a.length,f=a.charCodeAt(p),!l){t=a.slice(d);break}if(f===10&&d===p&&r)o.push(-3),r=void 0;else switch(r&&(o.push(-5),r=void 0),d<p&&(o.push(a.slice(d,p)),e+=p-d),f){case 0:{o.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,o.push(-2);e++<h;)o.push(-1);break}case 10:{o.push(-4),e=1;break}default:r=!0,e=1}d=p+1}return u&&(r&&o.push(-5),t&&o.push(t),o.push(null)),o}}const ad={}.hasOwnProperty;function JT(e,t,n){return typeof t!="string"&&(n=t,t=void 0),ek(n)(XT(KT(n).document().write(ZT()(e,t,!0))))}function ek(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(fs),autolinkProtocol:U,autolinkEmail:U,atxHeading:a(An),blockQuote:a(Qe),characterEscape:U,characterReference:U,codeFenced:a(ct),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(ct,s),codeText:a(ue,s),codeTextData:U,data:U,codeFlowValue:U,definition:a(Ke),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(Jt),hardBreakEscape:a(ds),hardBreakTrailing:a(ds),htmlFlow:a(hs,s),htmlFlowData:U,htmlText:a(hs,s),htmlTextData:U,image:a(a0),label:s,link:a(fs),listItem:a(s0),listItemValue:p,listOrdered:a(ps,d),listUnordered:a(ps),paragraph:a(u0),reference:_,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(An),strong:a(o0),thematicBreak:a(c0)},exit:{atxHeading:o(),atxHeadingSequence:R,autolink:o(),autolinkEmail:Ge,autolinkProtocol:We,blockQuote:o(),characterEscapeValue:N,characterReferenceMarkerHexadecimal:Ye,characterReferenceMarkerNumeric:Ye,characterReferenceValue:xe,characterReference:Ee,codeFenced:o(C),codeFencedFence:T,codeFencedFenceInfo:f,codeFencedFenceMeta:m,codeFlowValue:N,codeIndented:o(y),codeText:o(X),codeTextData:N,data:N,definition:o(),definitionDestinationString:D,definitionLabelString:I,definitionTitleString:S,emphasis:o(),hardBreakEscape:o(B),hardBreakTrailing:o(B),htmlFlow:o(Q),htmlFlowData:N,htmlText:o(ie),htmlTextData:N,image:o(J),label:Fe,labelText:V,lineEnding:Y,link:o(Z),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:pe,resourceDestinationString:A,resourceTitleString:Oe,resource:He,setextHeading:o(P),setextHeadingLineSequence:F,setextHeadingText:x,strong:o(),thematicBreak:o()}};sd(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(L){let z={type:"root",children:[]};const ee={stack:[z],tokenStack:[],config:t,enter:u,exit:l,buffer:s,resume:h,data:n},se=[];let me=-1;for(;++me<L.length;)if(L[me][1].type==="listOrdered"||L[me][1].type==="listUnordered")if(L[me][0]==="enter")se.push(me);else{const st=se.pop();me=i(L,st,me)}for(me=-1;++me<L.length;){const st=t[L[me][0]];ad.call(st,L[me][1].type)&&st[L[me][1].type].call(Object.assign({sliceSerialize:L[me][2].sliceSerialize},ee),L[me][1])}if(ee.tokenStack.length>0){const st=ee.tokenStack[ee.tokenStack.length-1];(st[1]||Wu).call(ee,void 0,st[0])}for(z.position={start:wt(L.length>0?L[0][1].start:{line:1,column:1,offset:0}),end:wt(L.length>0?L[L.length-2][1].end:{line:1,column:1,offset:0})},me=-1;++me<t.transforms.length;)z=t.transforms[me](z)||z;return z}function i(L,z,ee){let se=z-1,me=-1,st=!1,Bt,Et,Cn,wn;for(;++se<=ee;){const Xe=L[se];switch(Xe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Xe[0]==="enter"?me++:me--,wn=void 0;break}case"lineEndingBlank":{Xe[0]==="enter"&&(Bt&&!wn&&!me&&!Cn&&(Cn=se),wn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:wn=void 0}if(!me&&Xe[0]==="enter"&&Xe[1].type==="listItemPrefix"||me===-1&&Xe[0]==="exit"&&(Xe[1].type==="listUnordered"||Xe[1].type==="listOrdered")){if(Bt){let en=se;for(Et=void 0;en--;){const Tt=L[en];if(Tt[1].type==="lineEnding"||Tt[1].type==="lineEndingBlank"){if(Tt[0]==="exit")continue;Et&&(L[Et][1].type="lineEndingBlank",st=!0),Tt[1].type="lineEnding",Et=en}else if(!(Tt[1].type==="linePrefix"||Tt[1].type==="blockQuotePrefix"||Tt[1].type==="blockQuotePrefixWhitespace"||Tt[1].type==="blockQuoteMarker"||Tt[1].type==="listItemIndent"))break}Cn&&(!Et||Cn<Et)&&(Bt._spread=!0),Bt.end=Object.assign({},Et?L[Et][1].start:Xe[1].end),L.splice(Et||se,0,["exit",Bt,Xe[2]]),se++,ee++}if(Xe[1].type==="listItemPrefix"){const en={type:"listItem",_spread:!1,start:Object.assign({},Xe[1].start),end:void 0};Bt=en,L.splice(se,0,["enter",en,Xe[2]]),se++,ee++,Cn=void 0,wn=!0}}}return L[z][1]._spread=st,ee}function a(L,z){return ee;function ee(se){u.call(this,L(se),se),z&&z.call(this,se)}}function s(){this.stack.push({type:"fragment",children:[]})}function u(L,z,ee){this.stack[this.stack.length-1].children.push(L),this.stack.push(L),this.tokenStack.push([z,ee||void 0]),L.position={start:wt(z.start),end:void 0}}function o(L){return z;function z(ee){L&&L.call(this,ee),l.call(this,ee)}}function l(L,z){const ee=this.stack.pop(),se=this.tokenStack.pop();if(se)se[0].type!==L.type&&(z?z.call(this,L,se[0]):(se[1]||Wu).call(this,L,se[0]));else throw new Error("Cannot close `"+L.type+"` ("+jn({start:L.start,end:L.end})+"): it’s not open");ee.position.end=wt(L.end)}function h(){return Ua(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(L){if(this.data.expectingFirstListItemValue){const z=this.stack[this.stack.length-2];z.start=Number.parseInt(this.sliceSerialize(L),10),this.data.expectingFirstListItemValue=void 0}}function f(){const L=this.resume(),z=this.stack[this.stack.length-1];z.lang=L}function m(){const L=this.resume(),z=this.stack[this.stack.length-1];z.meta=L}function T(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const L=this.resume(),z=this.stack[this.stack.length-1];z.value=L.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const L=this.resume(),z=this.stack[this.stack.length-1];z.value=L.replace(/(\r?\n|\r)$/g,"")}function I(L){const z=this.resume(),ee=this.stack[this.stack.length-1];ee.label=z,ee.identifier=ot(this.sliceSerialize(L)).toLowerCase()}function S(){const L=this.resume(),z=this.stack[this.stack.length-1];z.title=L}function D(){const L=this.resume(),z=this.stack[this.stack.length-1];z.url=L}function R(L){const z=this.stack[this.stack.length-1];if(!z.depth){const ee=this.sliceSerialize(L).length;z.depth=ee}}function x(){this.data.setextHeadingSlurpLineEnding=!0}function F(L){const z=this.stack[this.stack.length-1];z.depth=this.sliceSerialize(L).codePointAt(0)===61?1:2}function P(){this.data.setextHeadingSlurpLineEnding=void 0}function U(L){const ee=this.stack[this.stack.length-1].children;let se=ee[ee.length-1];(!se||se.type!=="text")&&(se=l0(),se.position={start:wt(L.start),end:void 0},ee.push(se)),this.stack.push(se)}function N(L){const z=this.stack.pop();z.value+=this.sliceSerialize(L),z.position.end=wt(L.end)}function Y(L){const z=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ee=z.children[z.children.length-1];ee.position.end=wt(L.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(z.type)&&(U.call(this,L),N.call(this,L))}function B(){this.data.atHardBreak=!0}function Q(){const L=this.resume(),z=this.stack[this.stack.length-1];z.value=L}function ie(){const L=this.resume(),z=this.stack[this.stack.length-1];z.value=L}function X(){const L=this.resume(),z=this.stack[this.stack.length-1];z.value=L}function Z(){const L=this.stack[this.stack.length-1];if(this.data.inReference){const z=this.data.referenceType||"shortcut";L.type+="Reference",L.referenceType=z,delete L.url,delete L.title}else delete L.identifier,delete L.label;this.data.referenceType=void 0}function J(){const L=this.stack[this.stack.length-1];if(this.data.inReference){const z=this.data.referenceType||"shortcut";L.type+="Reference",L.referenceType=z,delete L.url,delete L.title}else delete L.identifier,delete L.label;this.data.referenceType=void 0}function V(L){const z=this.sliceSerialize(L),ee=this.stack[this.stack.length-2];ee.label=yg(z),ee.identifier=ot(z).toLowerCase()}function Fe(){const L=this.stack[this.stack.length-1],z=this.resume(),ee=this.stack[this.stack.length-1];if(this.data.inReference=!0,ee.type==="link"){const se=L.children;ee.children=se}else ee.alt=z}function A(){const L=this.resume(),z=this.stack[this.stack.length-1];z.url=L}function Oe(){const L=this.resume(),z=this.stack[this.stack.length-1];z.title=L}function He(){this.data.inReference=void 0}function _(){this.data.referenceType="collapsed"}function pe(L){const z=this.resume(),ee=this.stack[this.stack.length-1];ee.label=z,ee.identifier=ot(this.sliceSerialize(L)).toLowerCase(),this.data.referenceType="full"}function Ye(L){this.data.characterReferenceType=L.type}function xe(L){const z=this.sliceSerialize(L),ee=this.data.characterReferenceType;let se;ee?(se=pc(z,ee==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):se=$a(z);const me=this.stack[this.stack.length-1];me.value+=se}function Ee(L){const z=this.stack.pop();z.position.end=wt(L.end)}function We(L){N.call(this,L);const z=this.stack[this.stack.length-1];z.url=this.sliceSerialize(L)}function Ge(L){N.call(this,L);const z=this.stack[this.stack.length-1];z.url="mailto:"+this.sliceSerialize(L)}function Qe(){return{type:"blockquote",children:[]}}function ct(){return{type:"code",lang:null,meta:null,value:""}}function ue(){return{type:"inlineCode",value:""}}function Ke(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Jt(){return{type:"emphasis",children:[]}}function An(){return{type:"heading",depth:0,children:[]}}function ds(){return{type:"break"}}function hs(){return{type:"html",value:""}}function a0(){return{type:"image",title:null,url:"",alt:null}}function fs(){return{type:"link",title:null,url:"",children:[]}}function ps(L){return{type:"list",ordered:L.type==="listOrdered",start:null,spread:L._spread,children:[]}}function s0(L){return{type:"listItem",spread:L._spread,checked:null,children:[]}}function u0(){return{type:"paragraph",children:[]}}function o0(){return{type:"strong",children:[]}}function l0(){return{type:"text",value:""}}function c0(){return{type:"thematicBreak"}}}function wt(e){return{line:e.line,column:e.column,offset:e.offset}}function sd(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?sd(e,r):tk(e,r)}}function tk(e,t){let n;for(n in t)if(ad.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Wu(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+jn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+jn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+jn({start:t.start,end:t.end})+") is still open")}function nk(e){const t=this;t.parser=n;function n(r){return JT(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function rk(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function ik(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
38
- `}]}function ak(e,t){const n=t.value?t.value+`
39
- `:"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function sk(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function uk(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ok(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=_n(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let s,u=e.footnoteCounts.get(r);u===void 0?(u=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=a+1,u+=1,e.footnoteCounts.set(r,u);const o={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,o);const l={type:"element",tagName:"sup",properties:{},children:[o]};return e.patch(t,l),e.applyData(t,l)}function lk(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ck(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function ud(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function dk(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ud(e,t);const i={src:_n(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function hk(e,t){const n={src:_n(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function fk(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function pk(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ud(e,t);const i={href:_n(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function mk(e,t){const n={href:_n(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function gk(e,t,n){const r=e.all(t),i=n?bk(n):od(t),a={},s=[];if(typeof t.checked=="boolean"){const h=r[0];let d;h&&h.type==="element"&&h.tagName==="p"?d=h:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let u=-1;for(;++u<r.length;){const h=r[u];(i||u!==0||h.type!=="element"||h.tagName!=="p")&&s.push({type:"text",value:`
37
+ `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(a)}i=a===-2,r.push(s)}return r.join("")}function Zk(e){const r={constructs:gc([Gk,...(e||{}).extensions||[]]),content:i(Ik),defined:[],document:i(vk),flow:i(Ok),lazy:{},string:i(Mk),text:i(Bk)};return r;function i(a){return s;function s(u){return Qk(r,a,u)}}}function Jk(e){for(;!Ic(e););return e}const Gu=/[\0\t\n\r]/g;function eT(){let e=1,t="",n=!0,r;return i;function i(a,s,u){const o=[];let l,h,d,p,f;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),d=0,t="",n&&(a.charCodeAt(0)===65279&&d++,n=void 0);d<a.length;){if(Gu.lastIndex=d,l=Gu.exec(a),p=l&&l.index!==void 0?l.index:a.length,f=a.charCodeAt(p),!l){t=a.slice(d);break}if(f===10&&d===p&&r)o.push(-3),r=void 0;else switch(r&&(o.push(-5),r=void 0),d<p&&(o.push(a.slice(d,p)),e+=p-d),f){case 0:{o.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,o.push(-2);e++<h;)o.push(-1);break}case 10:{o.push(-4),e=1;break}default:r=!0,e=1}d=p+1}return u&&(r&&o.push(-5),t&&o.push(t),o.push(null)),o}}const sd={}.hasOwnProperty;function tT(e,t,n){return typeof t!="string"&&(n=t,t=void 0),nT(n)(Jk(Zk(n).document().write(eT()(e,t,!0))))}function nT(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(ms),autolinkProtocol:U,autolinkEmail:U,atxHeading:a(se),blockQuote:a(Ke),characterEscape:U,characterReference:U,codeFenced:a(dt),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(dt,s),codeText:a(Ct,s),codeTextData:U,data:U,codeFlowValue:U,definition:a(hr),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(Cn),hardBreakEscape:a(De),hardBreakTrailing:a(De),htmlFlow:a(Ft,s),htmlFlowData:U,htmlText:a(Ft,s),htmlTextData:U,image:a(fr),label:s,link:a(ms),listItem:a(s0),listItemValue:p,listOrdered:a(gs,d),listUnordered:a(gs),paragraph:a(u0),reference:_,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(se),strong:a(o0),thematicBreak:a(c0)},exit:{atxHeading:o(),atxHeadingSequence:R,autolink:o(),autolinkEmail:Qe,autolinkProtocol:Ge,blockQuote:o(),characterEscapeValue:N,characterReferenceMarkerHexadecimal:qe,characterReferenceMarkerNumeric:qe,characterReferenceValue:xe,characterReference:Ee,codeFenced:o(C),codeFencedFence:k,codeFencedFenceInfo:f,codeFencedFenceMeta:m,codeFlowValue:N,codeIndented:o(y),codeText:o(X),codeTextData:N,data:N,definition:o(),definitionDestinationString:D,definitionLabelString:I,definitionTitleString:S,emphasis:o(),hardBreakEscape:o(M),hardBreakTrailing:o(M),htmlFlow:o(Q),htmlFlowData:N,htmlText:o(ie),htmlTextData:N,image:o(J),label:He,labelText:V,lineEnding:Y,link:o(Z),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:pe,resourceDestinationString:A,resourceTitleString:Oe,resource:Ue,setextHeading:o(B),setextHeadingLineSequence:H,setextHeadingText:x,strong:o(),thematicBreak:o()}};ud(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(L){let z={type:"root",children:[]};const ee={stack:[z],tokenStack:[],config:t,enter:u,exit:l,buffer:s,resume:h,data:n},ue=[];let me=-1;for(;++me<L.length;)if(L[me][1].type==="listOrdered"||L[me][1].type==="listUnordered")if(L[me][0]==="enter")ue.push(me);else{const st=ue.pop();me=i(L,st,me)}for(me=-1;++me<L.length;){const st=t[L[me][0]];sd.call(st,L[me][1].type)&&st[L[me][1].type].call(Object.assign({sliceSerialize:L[me][2].sliceSerialize},ee),L[me][1])}if(ee.tokenStack.length>0){const st=ee.tokenStack[ee.tokenStack.length-1];(st[1]||Qu).call(ee,void 0,st[0])}for(z.position={start:St(L.length>0?L[0][1].start:{line:1,column:1,offset:0}),end:St(L.length>0?L[L.length-2][1].end:{line:1,column:1,offset:0})},me=-1;++me<t.transforms.length;)z=t.transforms[me](z)||z;return z}function i(L,z,ee){let ue=z-1,me=-1,st=!1,Ht,Et,wn,Sn;for(;++ue<=ee;){const Xe=L[ue];switch(Xe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Xe[0]==="enter"?me++:me--,Sn=void 0;break}case"lineEndingBlank":{Xe[0]==="enter"&&(Ht&&!Sn&&!me&&!wn&&(wn=ue),Sn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Sn=void 0}if(!me&&Xe[0]==="enter"&&Xe[1].type==="listItemPrefix"||me===-1&&Xe[0]==="exit"&&(Xe[1].type==="listUnordered"||Xe[1].type==="listOrdered")){if(Ht){let tn=ue;for(Et=void 0;tn--;){const kt=L[tn];if(kt[1].type==="lineEnding"||kt[1].type==="lineEndingBlank"){if(kt[0]==="exit")continue;Et&&(L[Et][1].type="lineEndingBlank",st=!0),kt[1].type="lineEnding",Et=tn}else if(!(kt[1].type==="linePrefix"||kt[1].type==="blockQuotePrefix"||kt[1].type==="blockQuotePrefixWhitespace"||kt[1].type==="blockQuoteMarker"||kt[1].type==="listItemIndent"))break}wn&&(!Et||wn<Et)&&(Ht._spread=!0),Ht.end=Object.assign({},Et?L[Et][1].start:Xe[1].end),L.splice(Et||ue,0,["exit",Ht,Xe[2]]),ue++,ee++}if(Xe[1].type==="listItemPrefix"){const tn={type:"listItem",_spread:!1,start:Object.assign({},Xe[1].start),end:void 0};Ht=tn,L.splice(ue,0,["enter",tn,Xe[2]]),ue++,ee++,wn=void 0,Sn=!0}}}return L[z][1]._spread=st,ee}function a(L,z){return ee;function ee(ue){u.call(this,L(ue),ue),z&&z.call(this,ue)}}function s(){this.stack.push({type:"fragment",children:[]})}function u(L,z,ee){this.stack[this.stack.length-1].children.push(L),this.stack.push(L),this.tokenStack.push([z,ee||void 0]),L.position={start:St(z.start),end:void 0}}function o(L){return z;function z(ee){L&&L.call(this,ee),l.call(this,ee)}}function l(L,z){const ee=this.stack.pop(),ue=this.tokenStack.pop();if(ue)ue[0].type!==L.type&&(z?z.call(this,L,ue[0]):(ue[1]||Qu).call(this,L,ue[0]));else throw new Error("Cannot close `"+L.type+"` ("+Vn({start:L.start,end:L.end})+"): it’s not open");ee.position.end=St(L.end)}function h(){return qa(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(L){if(this.data.expectingFirstListItemValue){const z=this.stack[this.stack.length-2];z.start=Number.parseInt(this.sliceSerialize(L),10),this.data.expectingFirstListItemValue=void 0}}function f(){const L=this.resume(),z=this.stack[this.stack.length-1];z.lang=L}function m(){const L=this.resume(),z=this.stack[this.stack.length-1];z.meta=L}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const L=this.resume(),z=this.stack[this.stack.length-1];z.value=L.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const L=this.resume(),z=this.stack[this.stack.length-1];z.value=L.replace(/(\r?\n|\r)$/g,"")}function I(L){const z=this.resume(),ee=this.stack[this.stack.length-1];ee.label=z,ee.identifier=ot(this.sliceSerialize(L)).toLowerCase()}function S(){const L=this.resume(),z=this.stack[this.stack.length-1];z.title=L}function D(){const L=this.resume(),z=this.stack[this.stack.length-1];z.url=L}function R(L){const z=this.stack[this.stack.length-1];if(!z.depth){const ee=this.sliceSerialize(L).length;z.depth=ee}}function x(){this.data.setextHeadingSlurpLineEnding=!0}function H(L){const z=this.stack[this.stack.length-1];z.depth=this.sliceSerialize(L).codePointAt(0)===61?1:2}function B(){this.data.setextHeadingSlurpLineEnding=void 0}function U(L){const ee=this.stack[this.stack.length-1].children;let ue=ee[ee.length-1];(!ue||ue.type!=="text")&&(ue=l0(),ue.position={start:St(L.start),end:void 0},ee.push(ue)),this.stack.push(ue)}function N(L){const z=this.stack.pop();z.value+=this.sliceSerialize(L),z.position.end=St(L.end)}function Y(L){const z=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ee=z.children[z.children.length-1];ee.position.end=St(L.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(z.type)&&(U.call(this,L),N.call(this,L))}function M(){this.data.atHardBreak=!0}function Q(){const L=this.resume(),z=this.stack[this.stack.length-1];z.value=L}function ie(){const L=this.resume(),z=this.stack[this.stack.length-1];z.value=L}function X(){const L=this.resume(),z=this.stack[this.stack.length-1];z.value=L}function Z(){const L=this.stack[this.stack.length-1];if(this.data.inReference){const z=this.data.referenceType||"shortcut";L.type+="Reference",L.referenceType=z,delete L.url,delete L.title}else delete L.identifier,delete L.label;this.data.referenceType=void 0}function J(){const L=this.stack[this.stack.length-1];if(this.data.inReference){const z=this.data.referenceType||"shortcut";L.type+="Reference",L.referenceType=z,delete L.url,delete L.title}else delete L.identifier,delete L.label;this.data.referenceType=void 0}function V(L){const z=this.sliceSerialize(L),ee=this.stack[this.stack.length-2];ee.label=Cg(z),ee.identifier=ot(z).toLowerCase()}function He(){const L=this.stack[this.stack.length-1],z=this.resume(),ee=this.stack[this.stack.length-1];if(this.data.inReference=!0,ee.type==="link"){const ue=L.children;ee.children=ue}else ee.alt=z}function A(){const L=this.resume(),z=this.stack[this.stack.length-1];z.url=L}function Oe(){const L=this.resume(),z=this.stack[this.stack.length-1];z.title=L}function Ue(){this.data.inReference=void 0}function _(){this.data.referenceType="collapsed"}function pe(L){const z=this.resume(),ee=this.stack[this.stack.length-1];ee.label=z,ee.identifier=ot(this.sliceSerialize(L)).toLowerCase(),this.data.referenceType="full"}function qe(L){this.data.characterReferenceType=L.type}function xe(L){const z=this.sliceSerialize(L),ee=this.data.characterReferenceType;let ue;ee?(ue=mc(z,ee==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ue=Va(z);const me=this.stack[this.stack.length-1];me.value+=ue}function Ee(L){const z=this.stack.pop();z.position.end=St(L.end)}function Ge(L){N.call(this,L);const z=this.stack[this.stack.length-1];z.url=this.sliceSerialize(L)}function Qe(L){N.call(this,L);const z=this.stack[this.stack.length-1];z.url="mailto:"+this.sliceSerialize(L)}function Ke(){return{type:"blockquote",children:[]}}function dt(){return{type:"code",lang:null,meta:null,value:""}}function Ct(){return{type:"inlineCode",value:""}}function hr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Cn(){return{type:"emphasis",children:[]}}function se(){return{type:"heading",depth:0,children:[]}}function De(){return{type:"break"}}function Ft(){return{type:"html",value:""}}function fr(){return{type:"image",title:null,url:"",alt:null}}function ms(){return{type:"link",title:null,url:"",children:[]}}function gs(L){return{type:"list",ordered:L.type==="listOrdered",start:null,spread:L._spread,children:[]}}function s0(L){return{type:"listItem",spread:L._spread,checked:null,children:[]}}function u0(){return{type:"paragraph",children:[]}}function o0(){return{type:"strong",children:[]}}function l0(){return{type:"text",value:""}}function c0(){return{type:"thematicBreak"}}}function St(e){return{line:e.line,column:e.column,offset:e.offset}}function ud(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?ud(e,r):rT(e,r)}}function rT(e,t){let n;for(n in t)if(sd.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Qu(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Vn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Vn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Vn({start:t.start,end:t.end})+") is still open")}function iT(e){const t=this;t.parser=n;function n(r){return tT(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function aT(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function sT(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
38
+ `}]}function uT(e,t){const n=t.value?t.value+`
39
+ `:"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function oT(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function lT(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function cT(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=xn(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let s,u=e.footnoteCounts.get(r);u===void 0?(u=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=a+1,u+=1,e.footnoteCounts.set(r,u);const o={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,o);const l={type:"element",tagName:"sup",properties:{},children:[o]};return e.patch(t,l),e.applyData(t,l)}function dT(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function hT(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function od(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function fT(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return od(e,t);const i={src:xn(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function pT(e,t){const n={src:xn(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function mT(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function gT(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return od(e,t);const i={href:xn(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function bT(e,t){const n={href:xn(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ET(e,t,n){const r=e.all(t),i=n?kT(n):ld(t),a={},s=[];if(typeof t.checked=="boolean"){const h=r[0];let d;h&&h.type==="element"&&h.tagName==="p"?d=h:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let u=-1;for(;++u<r.length;){const h=r[u];(i||u!==0||h.type!=="element"||h.tagName!=="p")&&s.push({type:"text",value:`
40
40
  `}),h.type==="element"&&h.tagName==="p"&&!i?s.push(...h.children):s.push(h)}const o=r[r.length-1];o&&(i||o.type!=="element"||o.tagName!=="p")&&s.push({type:"text",value:`
41
- `});const l={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,l),e.applyData(t,l)}function bk(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=od(n[r])}return t}function od(e){const t=e.spread;return t??e.children.length>1}function Ek(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const s=r[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function Tk(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function kk(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function _k(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function xk(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),i.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},u=gt(t.children[1]),o=si(t.children[t.children.length-1]);u&&o&&(s.position={start:u,end:o}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function yk(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,u=s?s.length:t.children.length;let o=-1;const l=[];for(;++o<u;){const d=t.children[o],p={},f=s?s[o]:void 0;f&&(p.align=f);let m={type:"element",tagName:a,properties:p,children:[]};d&&(m.children=e.all(d),e.patch(d,m),m=e.applyData(d,m)),l.push(m)}const h={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,h),e.applyData(t,h)}function Ak(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Gu=9,Qu=32;function Ck(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(Ku(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Ku(t.slice(i),i>0,!1)),a.join("")}function Ku(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===Gu||a===Qu;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===Gu||a===Qu;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function wk(e,t){const n={type:"text",value:Ck(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Sk(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Ik={blockquote:rk,break:ik,code:ak,delete:sk,emphasis:uk,footnoteReference:ok,heading:lk,html:ck,imageReference:dk,image:hk,inlineCode:fk,linkReference:pk,link:mk,listItem:gk,list:Ek,paragraph:Tk,root:kk,strong:_k,table:xk,tableCell:Ak,tableRow:yk,text:wk,thematicBreak:Sk,toml:br,yaml:br,definition:br,footnoteDefinition:br};function br(){}function Nk(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function vk(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Lk(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Nk,r=e.options.footnoteBackLabel||vk,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let o=-1;for(;++o<e.footnoteOrder.length;){const l=e.footnoteById.get(e.footnoteOrder[o]);if(!l)continue;const h=e.all(l),d=String(l.identifier).toUpperCase(),p=_n(d.toLowerCase());let f=0;const m=[],T=e.footnoteCounts.get(d);for(;T!==void 0&&++f<=T;){m.length>0&&m.push({type:"text",value:" "});let I=typeof n=="string"?n:n(o,f);typeof I=="string"&&(I={type:"text",value:I}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(o,f),className:["data-footnote-backref"]},children:Array.isArray(I)?I:[I]})}const C=h[h.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const I=C.children[C.children.length-1];I&&I.type==="text"?I.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...m)}else h.push(...m);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(h,!0)};e.patch(l,y),u.push(y)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Vt(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
41
+ `});const l={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,l),e.applyData(t,l)}function kT(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=ld(n[r])}return t}function ld(e){const t=e.spread;return t??e.children.length>1}function TT(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const s=r[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function _T(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function xT(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function yT(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function AT(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),i.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},u=gt(t.children[1]),o=li(t.children[t.children.length-1]);u&&o&&(s.position={start:u,end:o}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function CT(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,u=s?s.length:t.children.length;let o=-1;const l=[];for(;++o<u;){const d=t.children[o],p={},f=s?s[o]:void 0;f&&(p.align=f);let m={type:"element",tagName:a,properties:p,children:[]};d&&(m.children=e.all(d),e.patch(d,m),m=e.applyData(d,m)),l.push(m)}const h={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,h),e.applyData(t,h)}function wT(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Ku=9,Xu=32;function ST(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(Zu(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Zu(t.slice(i),i>0,!1)),a.join("")}function Zu(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===Ku||a===Xu;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===Ku||a===Xu;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function IT(e,t){const n={type:"text",value:ST(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function NT(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const vT={blockquote:aT,break:sT,code:uT,delete:oT,emphasis:lT,footnoteReference:cT,heading:dT,html:hT,imageReference:fT,image:pT,inlineCode:mT,linkReference:gT,link:bT,listItem:ET,list:TT,paragraph:_T,root:xT,strong:yT,table:AT,tableCell:wT,tableRow:CT,text:IT,thematicBreak:NT,toml:Tr,yaml:Tr,definition:Tr,footnoteDefinition:Tr};function Tr(){}function LT(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function RT(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function OT(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||LT,r=e.options.footnoteBackLabel||RT,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let o=-1;for(;++o<e.footnoteOrder.length;){const l=e.footnoteById.get(e.footnoteOrder[o]);if(!l)continue;const h=e.all(l),d=String(l.identifier).toUpperCase(),p=xn(d.toLowerCase());let f=0;const m=[],k=e.footnoteCounts.get(d);for(;k!==void 0&&++f<=k;){m.length>0&&m.push({type:"text",value:" "});let I=typeof n=="string"?n:n(o,f);typeof I=="string"&&(I={type:"text",value:I}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(o,f),className:["data-footnote-backref"]},children:Array.isArray(I)?I:[I]})}const C=h[h.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const I=C.children[C.children.length-1];I&&I.type==="text"?I.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...m)}else h.push(...m);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(h,!0)};e.patch(l,y),u.push(y)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Gt(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
42
42
  `},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
43
- `}]}}const ca={}.hasOwnProperty,Rk={};function Ok(e,t){const n=t||Rk,r=new Map,i=new Map,a=new Map,s={...Ik,...n.handlers},u={all:l,applyData:Pk,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:s,one:o,options:n,patch:Dk,wrap:Bk};return dn(e,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const d=h.type==="definition"?r:i,p=String(h.identifier).toUpperCase();d.has(p)||d.set(p,h)}}),u;function o(h,d){const p=h.type,f=u.handlers[p];if(ca.call(u.handlers,p)&&f)return f(u,h,d);if(u.options.passThrough&&u.options.passThrough.includes(p)){if("children"in h){const{children:T,...C}=h,y=Vt(C);return y.children=u.all(h),y}return Vt(h)}return(u.options.unknownHandler||Mk)(u,h,d)}function l(h){const d=[];if("children"in h){const p=h.children;let f=-1;for(;++f<p.length;){const m=u.one(p[f],h);if(m){if(f&&p[f-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=Xu(m.value)),!Array.isArray(m)&&m.type==="element")){const T=m.children[0];T&&T.type==="text"&&(T.value=Xu(T.value))}Array.isArray(m)?d.push(...m):d.push(m)}}}return d}}function Dk(e,t){e.position&&(t.position=ql(e))}function Pk(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&a&&Object.assign(n.properties,Vt(a)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Mk(e,t){const n=t.data||{},r="value"in t&&!(ca.call(n,"hProperties")||ca.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Bk(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
43
+ `}]}}const fa={}.hasOwnProperty,DT={};function PT(e,t){const n=t||DT,r=new Map,i=new Map,a=new Map,s={...vT,...n.handlers},u={all:l,applyData:BT,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:s,one:o,options:n,patch:MT,wrap:HT};return hn(e,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const d=h.type==="definition"?r:i,p=String(h.identifier).toUpperCase();d.has(p)||d.set(p,h)}}),u;function o(h,d){const p=h.type,f=u.handlers[p];if(fa.call(u.handlers,p)&&f)return f(u,h,d);if(u.options.passThrough&&u.options.passThrough.includes(p)){if("children"in h){const{children:k,...C}=h,y=Gt(C);return y.children=u.all(h),y}return Gt(h)}return(u.options.unknownHandler||FT)(u,h,d)}function l(h){const d=[];if("children"in h){const p=h.children;let f=-1;for(;++f<p.length;){const m=u.one(p[f],h);if(m){if(f&&p[f-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=Ju(m.value)),!Array.isArray(m)&&m.type==="element")){const k=m.children[0];k&&k.type==="text"&&(k.value=Ju(k.value))}Array.isArray(m)?d.push(...m):d.push(m)}}}return d}}function MT(e,t){e.position&&(t.position=jl(e))}function BT(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&a&&Object.assign(n.properties,Gt(a)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function FT(e,t){const n=t.data||{},r="value"in t&&!(fa.call(n,"hProperties")||fa.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function HT(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
44
44
  `});++r<e.length;)r&&n.push({type:"text",value:`
45
45
  `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
46
- `}),n}function Xu(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Zu(e,t){const n=Ok(e,t),r=n.one(e,void 0),i=Lk(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
47
- `},i),a}function Fk(e,t){return e&&"run"in e?async function(n,r){const i=Zu(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Zu(n,{file:r,...e||t})}}function Ju(e){if(e)throw e}var Nr=Object.prototype.hasOwnProperty,ld=Object.prototype.toString,eo=Object.defineProperty,to=Object.getOwnPropertyDescriptor,no=function(t){return typeof Array.isArray=="function"?Array.isArray(t):ld.call(t)==="[object Array]"},ro=function(t){if(!t||ld.call(t)!=="[object Object]")return!1;var n=Nr.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Nr.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Nr.call(t,i)},io=function(t,n){eo&&n.name==="__proto__"?eo(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},ao=function(t,n){if(n==="__proto__")if(Nr.call(t,n)){if(to)return to(t,n).value}else return;return t[n]},Hk=function e(){var t,n,r,i,a,s,u=arguments[0],o=1,l=arguments.length,h=!1;for(typeof u=="boolean"&&(h=u,u=arguments[1]||{},o=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});o<l;++o)if(t=arguments[o],t!=null)for(n in t)r=ao(u,n),i=ao(t,n),u!==i&&(h&&i&&(ro(i)||(a=no(i)))?(a?(a=!1,s=r&&no(r)?r:[]):s=r&&ro(r)?r:{},io(u,{name:n,newValue:e(h,s,i)})):typeof i<"u"&&io(u,{name:n,newValue:i}));return u};const Oi=Zc(Hk);function da(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Uk(){const e=[],t={run:n,use:r};return t;function n(...i){let a=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);u(null,...i);function u(o,...l){const h=e[++a];let d=-1;if(o){s(o);return}for(;++d<i.length;)(l[d]===null||l[d]===void 0)&&(l[d]=i[d]);i=l,h?zk(h,u)(...l):s(null,...l)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function zk(e,t){let n;return r;function r(...s){const u=e.length>s.length;let o;u&&s.push(i);try{o=e.apply(this,s)}catch(l){const h=l;if(u&&n)throw h;return i(h)}u||(o&&o.then&&typeof o.then=="function"?o.then(a,i):o instanceof Error?i(o):a(o))}function i(s,...u){n||(n=!0,t(s,...u))}function a(s){i(null,s)}}const dt={basename:$k,dirname:Yk,extname:qk,join:jk,sep:"/"};function $k(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');lr(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,u=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else s<0&&(a=!0,s=i+1),u>-1&&(e.codePointAt(i)===t.codePointAt(u--)?u<0&&(r=i):(u=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function Yk(e){if(lr(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function qk(e){lr(e);let t=e.length,n=-1,r=0,i=-1,a=0,s;for(;t--;){const u=e.codePointAt(t);if(u===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),u===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function jk(...e){let t=-1,n;for(;++t<e.length;)lr(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Vk(n)}function Vk(e){lr(e);const t=e.codePointAt(0)===47;let n=Wk(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Wk(e,t){let n="",r=0,i=-1,a=0,s=-1,u,o;for(;++s<=e.length;){if(s<e.length)u=e.codePointAt(s);else{if(u===47)break;u=47}if(u===47){if(!(i===s-1||a===1))if(i!==s-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(o=n.lastIndexOf("/"),o!==n.length-1){o<0?(n="",r=0):(n=n.slice(0,o),r=n.length-1-n.lastIndexOf("/")),i=s,a=0;continue}}else if(n.length>0){n="",r=0,i=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else u===46&&a>-1?a++:a=-1}return n}function lr(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Gk={cwd:Qk};function Qk(){return"/"}function ha(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Kk(e){if(typeof e=="string")e=new URL(e);else if(!ha(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Xk(e)}function Xk(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Di=["history","path","basename","stem","extname","dirname"];class Zk{constructor(t){let n;t?ha(t)?n={path:t}:typeof t=="string"||Jk(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Gk.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Di.length;){const a=Di[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let i;for(i in n)Di.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?dt.basename(this.path):void 0}set basename(t){Mi(t,"basename"),Pi(t,"basename"),this.path=dt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?dt.dirname(this.path):void 0}set dirname(t){so(this.basename,"dirname"),this.path=dt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?dt.extname(this.path):void 0}set extname(t){if(Pi(t,"extname"),so(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=dt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ha(t)&&(t=Kk(t)),Mi(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?dt.basename(this.path,this.extname):void 0}set stem(t){Mi(t,"stem"),Pi(t,"stem"),this.path=dt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Be(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Pi(e,t){if(e&&e.includes(dt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+dt.sep+"`")}function Mi(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function so(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Jk(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const e_=function(e){const r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a},t_={}.hasOwnProperty;class Xa extends e_{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Uk()}copy(){const t=new Xa;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Oi(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Hi("data",this.frozen),this.namespace[t]=n,this):t_.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Hi("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Er(t),r=this.parser||this.Parser;return Bi("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Bi("process",this.parser||this.Parser),Fi("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,s){const u=Er(t),o=r.parse(u);r.run(o,u,function(h,d,p){if(h||!d||!p)return l(h);const f=d,m=r.stringify(f,p);i_(m)?p.value=m:p.result=m,l(h,p)});function l(h,d){h||!d?s(h):a?a(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),Bi("processSync",this.parser||this.Parser),Fi("processSync",this.compiler||this.Compiler),this.process(t,i),oo("processSync","process",n),r;function i(a,s){n=!0,Ju(a),r=s}}run(t,n,r){uo(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(s,u){const o=Er(n);i.run(t,o,l);function l(h,d,p){const f=d||t;h?u(h):s?s(f):r(void 0,f,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,a),oo("runSync","run",r),i;function a(s,u){Ju(s),i=u,r=!0}}stringify(t,n){this.freeze();const r=Er(n),i=this.compiler||this.Compiler;return Fi("stringify",i),uo(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Hi("use",this.frozen),t!=null)if(typeof t=="function")o(t,n);else if(typeof t=="object")Array.isArray(t)?u(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(l){if(typeof l=="function")o(l,[]);else if(typeof l=="object")if(Array.isArray(l)){const[h,...d]=l;o(h,d)}else s(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function s(l){if(!("plugins"in l)&&!("settings"in l))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");u(l.plugins),l.settings&&(i.settings=Oi(!0,i.settings,l.settings))}function u(l){let h=-1;if(l!=null)if(Array.isArray(l))for(;++h<l.length;){const d=l[h];a(d)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function o(l,h){let d=-1,p=-1;for(;++d<r.length;)if(r[d][0]===l){p=d;break}if(p===-1)r.push([l,...h]);else if(h.length>0){let[f,...m]=h;const T=r[p][1];da(T)&&da(f)&&(f=Oi(!0,T,f)),r[p]=[l,f,...m]}}}}const n_=new Xa().freeze();function Bi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Fi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Hi(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function uo(e){if(!da(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function oo(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Er(e){return r_(e)?e:new Zk(e)}function r_(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function i_(e){return typeof e=="string"||a_(e)}function a_(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function Za(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Zt=Za();function cd(e){Zt=e}var Vn={exec:()=>null};function ce(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(i,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace(ze.caret,"$1"),n=n.replace(i,s),r},getRegex:()=>new RegExp(n,t)};return r}var s_=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),ze={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},u_=/^(?:[ \t]*(?:\n|$))+/,o_=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,l_=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,cr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,c_=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ja=/(?:[*+-]|\d{1,9}[.)])/,dd=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,hd=ce(dd).replace(/bull/g,Ja).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),d_=ce(dd).replace(/bull/g,Ja).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),es=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,h_=/^[^\n]+/,ts=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,f_=ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ts).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),p_=ce(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ja).getRegex(),di="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ns=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,m_=ce("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ns).replace("tag",di).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),fd=ce(es).replace("hr",cr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",di).getRegex(),g_=ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",fd).getRegex(),rs={blockquote:g_,code:o_,def:f_,fences:l_,heading:c_,hr:cr,html:m_,lheading:hd,list:p_,newline:u_,paragraph:fd,table:Vn,text:h_},lo=ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",cr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",di).getRegex(),b_={...rs,lheading:d_,table:lo,paragraph:ce(es).replace("hr",cr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",lo).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",di).getRegex()},E_={...rs,html:ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ns).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Vn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ce(es).replace("hr",cr).replace("heading",` *#{1,6} *[^
48
- ]`).replace("lheading",hd).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},T_=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,k_=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,pd=/^( {2,}|\\)\n(?!\s*$)/,__=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,hi=/[\p{P}\p{S}]/u,is=/[\s\p{P}\p{S}]/u,md=/[^\s\p{P}\p{S}]/u,x_=ce(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,is).getRegex(),gd=/(?!~)[\p{P}\p{S}]/u,y_=/(?!~)[\s\p{P}\p{S}]/u,A_=/(?:[^\s\p{P}\p{S}]|~)/u,C_=ce(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",s_?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),bd=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,w_=ce(bd,"u").replace(/punct/g,hi).getRegex(),S_=ce(bd,"u").replace(/punct/g,gd).getRegex(),Ed="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",I_=ce(Ed,"gu").replace(/notPunctSpace/g,md).replace(/punctSpace/g,is).replace(/punct/g,hi).getRegex(),N_=ce(Ed,"gu").replace(/notPunctSpace/g,A_).replace(/punctSpace/g,y_).replace(/punct/g,gd).getRegex(),v_=ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,md).replace(/punctSpace/g,is).replace(/punct/g,hi).getRegex(),L_=ce(/\\(punct)/,"gu").replace(/punct/g,hi).getRegex(),R_=ce(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),O_=ce(ns).replace("(?:-->|$)","-->").getRegex(),D_=ce("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",O_).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Vr=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,P_=ce(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Vr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Td=ce(/^!?\[(label)\]\[(ref)\]/).replace("label",Vr).replace("ref",ts).getRegex(),kd=ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",ts).getRegex(),M_=ce("reflink|nolink(?!\\()","g").replace("reflink",Td).replace("nolink",kd).getRegex(),co=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,as={_backpedal:Vn,anyPunctuation:L_,autolink:R_,blockSkip:C_,br:pd,code:k_,del:Vn,emStrongLDelim:w_,emStrongRDelimAst:I_,emStrongRDelimUnd:v_,escape:T_,link:P_,nolink:kd,punctuation:x_,reflink:Td,reflinkSearch:M_,tag:D_,text:__,url:Vn},B_={...as,link:ce(/^!?\[(label)\]\((.*?)\)/).replace("label",Vr).getRegex(),reflink:ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Vr).getRegex()},fa={...as,emStrongRDelimAst:N_,emStrongLDelim:S_,url:ce(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",co).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ce(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",co).getRegex()},F_={...fa,br:ce(pd).replace("{2,}","*").getRegex(),text:ce(fa.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Tr={normal:rs,gfm:b_,pedantic:E_},Rn={normal:as,gfm:fa,breaks:F_,pedantic:B_},H_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ho=e=>H_[e];function _t(e,t){if(t){if(ze.escapeTest.test(e))return e.replace(ze.escapeReplace,ho)}else if(ze.escapeTestNoEncode.test(e))return e.replace(ze.escapeReplaceNoEncode,ho);return e}function fo(e){try{e=encodeURI(e).replace(ze.percentDecode,"%")}catch{return null}return e}function po(e,t){var a;let n=e.replace(ze.findPipe,(s,u,o)=>{let l=!1,h=u;for(;--h>=0&&o[h]==="\\";)l=!l;return l?"|":" |"}),r=n.split(ze.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!((a=r.at(-1))!=null&&a.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(ze.slashPipe,"|");return r}function On(e,t,n){let r=e.length;if(r===0)return"";let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function U_(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function mo(e,t,n,r,i){let a=t.href,s=t.title||null,u=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let o={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:a,title:s,text:u,tokens:r.inlineTokens(u)};return r.state.inLink=!1,o}function z_(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
46
+ `}),n}function Ju(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function eo(e,t){const n=PT(e,t),r=n.one(e,void 0),i=OT(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
47
+ `},i),a}function UT(e,t){return e&&"run"in e?async function(n,r){const i=eo(n,{file:r,...t});await e.run(i,r)}:function(n,r){return eo(n,{file:r,...e||t})}}function to(e){if(e)throw e}var Rr=Object.prototype.hasOwnProperty,cd=Object.prototype.toString,no=Object.defineProperty,ro=Object.getOwnPropertyDescriptor,io=function(t){return typeof Array.isArray=="function"?Array.isArray(t):cd.call(t)==="[object Array]"},ao=function(t){if(!t||cd.call(t)!=="[object Object]")return!1;var n=Rr.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Rr.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Rr.call(t,i)},so=function(t,n){no&&n.name==="__proto__"?no(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},uo=function(t,n){if(n==="__proto__")if(Rr.call(t,n)){if(ro)return ro(t,n).value}else return;return t[n]},zT=function e(){var t,n,r,i,a,s,u=arguments[0],o=1,l=arguments.length,h=!1;for(typeof u=="boolean"&&(h=u,u=arguments[1]||{},o=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});o<l;++o)if(t=arguments[o],t!=null)for(n in t)r=uo(u,n),i=uo(t,n),u!==i&&(h&&i&&(ao(i)||(a=io(i)))?(a?(a=!1,s=r&&io(r)?r:[]):s=r&&ao(r)?r:{},so(u,{name:n,newValue:e(h,s,i)})):typeof i<"u"&&so(u,{name:n,newValue:i}));return u};const Mi=Jc(zT);function pa(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function $T(){const e=[],t={run:n,use:r};return t;function n(...i){let a=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);u(null,...i);function u(o,...l){const h=e[++a];let d=-1;if(o){s(o);return}for(;++d<i.length;)(l[d]===null||l[d]===void 0)&&(l[d]=i[d]);i=l,h?YT(h,u)(...l):s(null,...l)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function YT(e,t){let n;return r;function r(...s){const u=e.length>s.length;let o;u&&s.push(i);try{o=e.apply(this,s)}catch(l){const h=l;if(u&&n)throw h;return i(h)}u||(o&&o.then&&typeof o.then=="function"?o.then(a,i):o instanceof Error?i(o):a(o))}function i(s,...u){n||(n=!0,t(s,...u))}function a(s){i(null,s)}}const ht={basename:qT,dirname:jT,extname:VT,join:WT,sep:"/"};function qT(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');cr(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,u=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else s<0&&(a=!0,s=i+1),u>-1&&(e.codePointAt(i)===t.codePointAt(u--)?u<0&&(r=i):(u=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function jT(e){if(cr(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function VT(e){cr(e);let t=e.length,n=-1,r=0,i=-1,a=0,s;for(;t--;){const u=e.codePointAt(t);if(u===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),u===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function WT(...e){let t=-1,n;for(;++t<e.length;)cr(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":GT(n)}function GT(e){cr(e);const t=e.codePointAt(0)===47;let n=QT(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function QT(e,t){let n="",r=0,i=-1,a=0,s=-1,u,o;for(;++s<=e.length;){if(s<e.length)u=e.codePointAt(s);else{if(u===47)break;u=47}if(u===47){if(!(i===s-1||a===1))if(i!==s-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(o=n.lastIndexOf("/"),o!==n.length-1){o<0?(n="",r=0):(n=n.slice(0,o),r=n.length-1-n.lastIndexOf("/")),i=s,a=0;continue}}else if(n.length>0){n="",r=0,i=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else u===46&&a>-1?a++:a=-1}return n}function cr(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const KT={cwd:XT};function XT(){return"/"}function ma(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function ZT(e){if(typeof e=="string")e=new URL(e);else if(!ma(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return JT(e)}function JT(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Bi=["history","path","basename","stem","extname","dirname"];class e_{constructor(t){let n;t?ma(t)?n={path:t}:typeof t=="string"||t_(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":KT.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Bi.length;){const a=Bi[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let i;for(i in n)Bi.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?ht.basename(this.path):void 0}set basename(t){Hi(t,"basename"),Fi(t,"basename"),this.path=ht.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ht.dirname(this.path):void 0}set dirname(t){oo(this.basename,"dirname"),this.path=ht.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ht.extname(this.path):void 0}set extname(t){if(Fi(t,"extname"),oo(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=ht.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ma(t)&&(t=ZT(t)),Hi(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ht.basename(this.path,this.extname):void 0}set stem(t){Hi(t,"stem"),Fi(t,"stem"),this.path=ht.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Fe(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Fi(e,t){if(e&&e.includes(ht.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ht.sep+"`")}function Hi(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function oo(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function t_(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const n_=function(e){const r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a},r_={}.hasOwnProperty;class ts extends n_{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=$T()}copy(){const t=new ts;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Mi(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?($i("data",this.frozen),this.namespace[t]=n,this):r_.call(this.namespace,t)&&this.namespace[t]||void 0:t?($i("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=_r(t),r=this.parser||this.Parser;return Ui("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Ui("process",this.parser||this.Parser),zi("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,s){const u=_r(t),o=r.parse(u);r.run(o,u,function(h,d,p){if(h||!d||!p)return l(h);const f=d,m=r.stringify(f,p);s_(m)?p.value=m:p.result=m,l(h,p)});function l(h,d){h||!d?s(h):a?a(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),Ui("processSync",this.parser||this.Parser),zi("processSync",this.compiler||this.Compiler),this.process(t,i),co("processSync","process",n),r;function i(a,s){n=!0,to(a),r=s}}run(t,n,r){lo(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(s,u){const o=_r(n);i.run(t,o,l);function l(h,d,p){const f=d||t;h?u(h):s?s(f):r(void 0,f,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,a),co("runSync","run",r),i;function a(s,u){to(s),i=u,r=!0}}stringify(t,n){this.freeze();const r=_r(n),i=this.compiler||this.Compiler;return zi("stringify",i),lo(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if($i("use",this.frozen),t!=null)if(typeof t=="function")o(t,n);else if(typeof t=="object")Array.isArray(t)?u(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(l){if(typeof l=="function")o(l,[]);else if(typeof l=="object")if(Array.isArray(l)){const[h,...d]=l;o(h,d)}else s(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function s(l){if(!("plugins"in l)&&!("settings"in l))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");u(l.plugins),l.settings&&(i.settings=Mi(!0,i.settings,l.settings))}function u(l){let h=-1;if(l!=null)if(Array.isArray(l))for(;++h<l.length;){const d=l[h];a(d)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function o(l,h){let d=-1,p=-1;for(;++d<r.length;)if(r[d][0]===l){p=d;break}if(p===-1)r.push([l,...h]);else if(h.length>0){let[f,...m]=h;const k=r[p][1];pa(k)&&pa(f)&&(f=Mi(!0,k,f)),r[p]=[l,f,...m]}}}}const i_=new ts().freeze();function Ui(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function zi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function $i(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function lo(e){if(!pa(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function co(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function _r(e){return a_(e)?e:new e_(e)}function a_(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function s_(e){return typeof e=="string"||u_(e)}function u_(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function ns(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var en=ns();function dd(e){en=e}var Wn={exec:()=>null};function ce(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(i,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace($e.caret,"$1"),n=n.replace(i,s),r},getRegex:()=>new RegExp(n,t)};return r}var o_=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),$e={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},l_=/^(?:[ \t]*(?:\n|$))+/,c_=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,d_=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,dr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,h_=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,rs=/(?:[*+-]|\d{1,9}[.)])/,hd=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,fd=ce(hd).replace(/bull/g,rs).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),f_=ce(hd).replace(/bull/g,rs).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),is=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,p_=/^[^\n]+/,as=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,m_=ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",as).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),g_=ce(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,rs).getRegex(),pi="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ss=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,b_=ce("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ss).replace("tag",pi).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),pd=ce(is).replace("hr",dr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",pi).getRegex(),E_=ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",pd).getRegex(),us={blockquote:E_,code:c_,def:m_,fences:d_,heading:h_,hr:dr,html:b_,lheading:fd,list:g_,newline:l_,paragraph:pd,table:Wn,text:p_},ho=ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",dr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",pi).getRegex(),k_={...us,lheading:f_,table:ho,paragraph:ce(is).replace("hr",dr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ho).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",pi).getRegex()},T_={...us,html:ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ss).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Wn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ce(is).replace("hr",dr).replace("heading",` *#{1,6} *[^
48
+ ]`).replace("lheading",fd).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},__=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,x_=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,md=/^( {2,}|\\)\n(?!\s*$)/,y_=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,mi=/[\p{P}\p{S}]/u,os=/[\s\p{P}\p{S}]/u,gd=/[^\s\p{P}\p{S}]/u,A_=ce(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,os).getRegex(),bd=/(?!~)[\p{P}\p{S}]/u,C_=/(?!~)[\s\p{P}\p{S}]/u,w_=/(?:[^\s\p{P}\p{S}]|~)/u,S_=ce(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",o_?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Ed=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,I_=ce(Ed,"u").replace(/punct/g,mi).getRegex(),N_=ce(Ed,"u").replace(/punct/g,bd).getRegex(),kd="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",v_=ce(kd,"gu").replace(/notPunctSpace/g,gd).replace(/punctSpace/g,os).replace(/punct/g,mi).getRegex(),L_=ce(kd,"gu").replace(/notPunctSpace/g,w_).replace(/punctSpace/g,C_).replace(/punct/g,bd).getRegex(),R_=ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,gd).replace(/punctSpace/g,os).replace(/punct/g,mi).getRegex(),O_=ce(/\\(punct)/,"gu").replace(/punct/g,mi).getRegex(),D_=ce(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),P_=ce(ss).replace("(?:-->|$)","-->").getRegex(),M_=ce("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",P_).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Qr=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,B_=ce(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Qr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Td=ce(/^!?\[(label)\]\[(ref)\]/).replace("label",Qr).replace("ref",as).getRegex(),_d=ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",as).getRegex(),F_=ce("reflink|nolink(?!\\()","g").replace("reflink",Td).replace("nolink",_d).getRegex(),fo=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ls={_backpedal:Wn,anyPunctuation:O_,autolink:D_,blockSkip:S_,br:md,code:x_,del:Wn,emStrongLDelim:I_,emStrongRDelimAst:v_,emStrongRDelimUnd:R_,escape:__,link:B_,nolink:_d,punctuation:A_,reflink:Td,reflinkSearch:F_,tag:M_,text:y_,url:Wn},H_={...ls,link:ce(/^!?\[(label)\]\((.*?)\)/).replace("label",Qr).getRegex(),reflink:ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Qr).getRegex()},ga={...ls,emStrongRDelimAst:L_,emStrongLDelim:N_,url:ce(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",fo).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ce(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",fo).getRegex()},U_={...ga,br:ce(md).replace("{2,}","*").getRegex(),text:ce(ga.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},xr={normal:us,gfm:k_,pedantic:T_},On={normal:ls,gfm:ga,breaks:U_,pedantic:H_},z_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},po=e=>z_[e];function _t(e,t){if(t){if($e.escapeTest.test(e))return e.replace($e.escapeReplace,po)}else if($e.escapeTestNoEncode.test(e))return e.replace($e.escapeReplaceNoEncode,po);return e}function mo(e){try{e=encodeURI(e).replace($e.percentDecode,"%")}catch{return null}return e}function go(e,t){var a;let n=e.replace($e.findPipe,(s,u,o)=>{let l=!1,h=u;for(;--h>=0&&o[h]==="\\";)l=!l;return l?"|":" |"}),r=n.split($e.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!((a=r.at(-1))!=null&&a.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace($e.slashPipe,"|");return r}function Dn(e,t,n){let r=e.length;if(r===0)return"";let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function $_(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function bo(e,t,n,r,i){let a=t.href,s=t.title||null,u=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let o={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:a,title:s,text:u,tokens:r.inlineTokens(u)};return r.state.inLink=!1,o}function Y_(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
49
49
  `).map(a=>{let s=a.match(n.other.beginningSpace);if(s===null)return a;let[u]=s;return u.length>=i.length?a.slice(i.length):a}).join(`
50
- `)}var Wr=class{constructor(e){de(this,"options");de(this,"rules");de(this,"lexer");this.options=e||Zt}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:On(n,`
51
- `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=z_(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=On(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:On(t[0],`
52
- `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=On(t[0],`
50
+ `)}var Kr=class{constructor(e){de(this,"options");de(this,"rules");de(this,"lexer");this.options=e||en}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Dn(n,`
51
+ `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=Y_(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=Dn(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Dn(t[0],`
52
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=Dn(t[0],`
53
53
  `).split(`
54
54
  `),r="",i="",a=[];for(;n.length>0;){let s=!1,u=[],o;for(o=0;o<n.length;o++)if(this.rules.other.blockquoteStart.test(n[o]))u.push(n[o]),s=!0;else if(!s)u.push(n[o]);else break;n=n.slice(o);let l=u.join(`
55
55
  `),h=l.replace(this.rules.other.blockquoteSetextReplace,`
@@ -57,20 +57,20 @@ $$`:`${e}$$`},wE=e=>AE(e)%2===0?e:CE(e),SE=(e,t,n)=>{if(e.substring(t+2).include
57
57
  ${l}`:l,i=i?`${i}
58
58
  ${h}`:h;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,a,!0),this.lexer.state.top=d,n.length===0)break;let p=a.at(-1);if((p==null?void 0:p.type)==="code")break;if((p==null?void 0:p.type)==="blockquote"){let f=p,m=f.raw+`
59
59
  `+n.join(`
60
- `),T=this.blockquote(m);a[a.length-1]=T,r=r.substring(0,r.length-f.raw.length)+T.raw,i=i.substring(0,i.length-f.text.length)+T.text;break}else if((p==null?void 0:p.type)==="list"){let f=p,m=f.raw+`
60
+ `),k=this.blockquote(m);a[a.length-1]=k,r=r.substring(0,r.length-f.raw.length)+k.raw,i=i.substring(0,i.length-f.text.length)+k.text;break}else if((p==null?void 0:p.type)==="list"){let f=p,m=f.raw+`
61
61
  `+n.join(`
62
- `),T=this.list(m);a[a.length-1]=T,r=r.substring(0,r.length-p.raw.length)+T.raw,i=i.substring(0,i.length-f.raw.length)+T.raw,n=m.substring(a.at(-1).raw.length).split(`
62
+ `),k=this.list(m);a[a.length-1]=k,r=r.substring(0,r.length-p.raw.length)+k.raw,i=i.substring(0,i.length-f.raw.length)+k.raw,n=m.substring(a.at(-1).raw.length).split(`
63
63
  `);continue}}return{type:"blockquote",raw:r,tokens:a,text:i}}}list(e){var n,r;let t=this.rules.block.list.exec(e);if(t){let i=t[1].trim(),a=i.length>1,s={type:"list",raw:"",ordered:a,start:a?+i.slice(0,-1):"",loose:!1,items:[]};i=a?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=a?i:"[*+-]");let u=this.rules.other.listItemRegex(i),o=!1;for(;e;){let h=!1,d="",p="";if(!(t=u.exec(e))||this.rules.block.hr.test(e))break;d=t[0],e=e.substring(d.length);let f=t[2].split(`
64
64
  `,1)[0].replace(this.rules.other.listReplaceTabs,y=>" ".repeat(3*y.length)),m=e.split(`
65
- `,1)[0],T=!f.trim(),C=0;if(this.options.pedantic?(C=2,p=f.trimStart()):T?C=t[1].length+1:(C=t[2].search(this.rules.other.nonSpaceChar),C=C>4?1:C,p=f.slice(C),C+=t[1].length),T&&this.rules.other.blankLine.test(m)&&(d+=m+`
65
+ `,1)[0],k=!f.trim(),C=0;if(this.options.pedantic?(C=2,p=f.trimStart()):k?C=t[1].length+1:(C=t[2].search(this.rules.other.nonSpaceChar),C=C>4?1:C,p=f.slice(C),C+=t[1].length),k&&this.rules.other.blankLine.test(m)&&(d+=m+`
66
66
  `,e=e.substring(m.length+1),h=!0),!h){let y=this.rules.other.nextBulletRegex(C),I=this.rules.other.hrRegex(C),S=this.rules.other.fencesBeginRegex(C),D=this.rules.other.headingBeginRegex(C),R=this.rules.other.htmlBeginRegex(C);for(;e;){let x=e.split(`
67
- `,1)[0],F;if(m=x,this.options.pedantic?(m=m.replace(this.rules.other.listReplaceNesting," "),F=m):F=m.replace(this.rules.other.tabCharGlobal," "),S.test(m)||D.test(m)||R.test(m)||y.test(m)||I.test(m))break;if(F.search(this.rules.other.nonSpaceChar)>=C||!m.trim())p+=`
68
- `+F.slice(C);else{if(T||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||S.test(f)||D.test(f)||I.test(f))break;p+=`
69
- `+m}!T&&!m.trim()&&(T=!0),d+=x+`
70
- `,e=e.substring(x.length+1),f=F.slice(C)}}s.loose||(o?s.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(o=!0)),s.items.push({type:"list_item",raw:d,task:!!this.options.gfm&&this.rules.other.listIsTask.test(p),loose:!1,text:p,tokens:[]}),s.raw+=d}let l=s.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let h of s.items){if(this.lexer.state.top=!1,h.tokens=this.lexer.blockTokens(h.text,[]),h.task){if(h.text=h.text.replace(this.rules.other.listReplaceTask,""),((n=h.tokens[0])==null?void 0:n.type)==="text"||((r=h.tokens[0])==null?void 0:r.type)==="paragraph"){h.tokens[0].raw=h.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),h.tokens[0].text=h.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let p=this.lexer.inlineQueue.length-1;p>=0;p--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[p].src)){this.lexer.inlineQueue[p].src=this.lexer.inlineQueue[p].src.replace(this.rules.other.listReplaceTask,"");break}}let d=this.rules.other.listTaskCheckbox.exec(h.raw);if(d){let p={type:"checkbox",raw:d[0]+" ",checked:d[0]!=="[ ]"};h.checked=p.checked,s.loose?h.tokens[0]&&["paragraph","text"].includes(h.tokens[0].type)&&"tokens"in h.tokens[0]&&h.tokens[0].tokens?(h.tokens[0].raw=p.raw+h.tokens[0].raw,h.tokens[0].text=p.raw+h.tokens[0].text,h.tokens[0].tokens.unshift(p)):h.tokens.unshift({type:"paragraph",raw:p.raw,text:p.raw,tokens:[p]}):h.tokens.unshift(p)}}if(!s.loose){let d=h.tokens.filter(f=>f.type==="space"),p=d.length>0&&d.some(f=>this.rules.other.anyLine.test(f.raw));s.loose=p}}if(s.loose)for(let h of s.items){h.loose=!0;for(let d of h.tokens)d.type==="text"&&(d.type="paragraph")}return s}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:i}}}table(e){var s;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=po(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(s=t[3])!=null&&s.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
71
- `):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let u of r)this.rules.other.tableAlignRight.test(u)?a.align.push("right"):this.rules.other.tableAlignCenter.test(u)?a.align.push("center"):this.rules.other.tableAlignLeft.test(u)?a.align.push("left"):a.align.push(null);for(let u=0;u<n.length;u++)a.header.push({text:n[u],tokens:this.lexer.inline(n[u]),header:!0,align:a.align[u]});for(let u of i)a.rows.push(po(u,a.header.length).map((o,l)=>({text:o,tokens:this.lexer.inline(o),header:!1,align:a.align[l]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
72
- `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let a=On(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{let a=U_(t[2],"()");if(a===-2)return;if(a>-1){let s=(t[0].indexOf("!")===0?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,s).trim(),t[3]=""}}let r=t[2],i="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(r);a&&(r=a[1],i=a[3])}else i=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),mo(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=t[r.toLowerCase()];if(!i){let a=n[0].charAt(0);return{type:"text",raw:a,text:a}}return mo(n,i,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,a,s,u=i,o=0,l=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+i);(r=l.exec(t))!=null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(s=[...a].length,r[3]||r[4]){u+=s;continue}else if((r[5]||r[6])&&i%3&&!((i+s)%3)){o+=s;continue}if(u-=s,u>0)continue;s=Math.min(s,s+u+o);let h=[...r[0]][0].length,d=e.slice(0,i+r.index+h+s);if(Math.min(i,s)%2){let f=d.slice(1,-1);return{type:"em",raw:d,text:f,tokens:this.lexer.inlineTokens(f)}}let p=d.slice(2,-2);return{type:"strong",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n;let t;if(t=this.rules.inline.url.exec(e)){let r,i;if(t[2]==="@")r=t[0],i="mailto:"+r;else{let a;do a=t[0],t[0]=((n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])??"";while(a!==t[0]);r=t[0],t[1]==="www."?i="http://"+t[0]:i=t[0]}return{type:"link",raw:t[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},at=class pa{constructor(t){de(this,"tokens");de(this,"options");de(this,"state");de(this,"inlineQueue");de(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Zt,this.options.tokenizer=this.options.tokenizer||new Wr,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:ze,block:Tr.normal,inline:Rn.normal};this.options.pedantic?(n.block=Tr.pedantic,n.inline=Rn.pedantic):this.options.gfm&&(n.block=Tr.gfm,this.options.breaks?n.inline=Rn.breaks:n.inline=Rn.gfm),this.tokenizer.rules=n}static get rules(){return{block:Tr,inline:Rn}}static lex(t,n){return new pa(n).lex(t)}static lexInline(t,n){return new pa(n).inlineTokens(t)}lex(t){t=t.replace(ze.carriageReturn,`
73
- `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){var i,a,s;for(this.options.pedantic&&(t=t.replace(ze.tabCharGlobal," ").replace(ze.spaceLine,""));t;){let u;if((a=(i=this.options.extensions)==null?void 0:i.block)!=null&&a.some(l=>(u=l.call({lexer:this},t,n))?(t=t.substring(u.raw.length),n.push(u),!0):!1))continue;if(u=this.tokenizer.space(t)){t=t.substring(u.raw.length);let l=n.at(-1);u.raw.length===1&&l!==void 0?l.raw+=`
67
+ `,1)[0],H;if(m=x,this.options.pedantic?(m=m.replace(this.rules.other.listReplaceNesting," "),H=m):H=m.replace(this.rules.other.tabCharGlobal," "),S.test(m)||D.test(m)||R.test(m)||y.test(m)||I.test(m))break;if(H.search(this.rules.other.nonSpaceChar)>=C||!m.trim())p+=`
68
+ `+H.slice(C);else{if(k||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||S.test(f)||D.test(f)||I.test(f))break;p+=`
69
+ `+m}!k&&!m.trim()&&(k=!0),d+=x+`
70
+ `,e=e.substring(x.length+1),f=H.slice(C)}}s.loose||(o?s.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(o=!0)),s.items.push({type:"list_item",raw:d,task:!!this.options.gfm&&this.rules.other.listIsTask.test(p),loose:!1,text:p,tokens:[]}),s.raw+=d}let l=s.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let h of s.items){if(this.lexer.state.top=!1,h.tokens=this.lexer.blockTokens(h.text,[]),h.task){if(h.text=h.text.replace(this.rules.other.listReplaceTask,""),((n=h.tokens[0])==null?void 0:n.type)==="text"||((r=h.tokens[0])==null?void 0:r.type)==="paragraph"){h.tokens[0].raw=h.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),h.tokens[0].text=h.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let p=this.lexer.inlineQueue.length-1;p>=0;p--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[p].src)){this.lexer.inlineQueue[p].src=this.lexer.inlineQueue[p].src.replace(this.rules.other.listReplaceTask,"");break}}let d=this.rules.other.listTaskCheckbox.exec(h.raw);if(d){let p={type:"checkbox",raw:d[0]+" ",checked:d[0]!=="[ ]"};h.checked=p.checked,s.loose?h.tokens[0]&&["paragraph","text"].includes(h.tokens[0].type)&&"tokens"in h.tokens[0]&&h.tokens[0].tokens?(h.tokens[0].raw=p.raw+h.tokens[0].raw,h.tokens[0].text=p.raw+h.tokens[0].text,h.tokens[0].tokens.unshift(p)):h.tokens.unshift({type:"paragraph",raw:p.raw,text:p.raw,tokens:[p]}):h.tokens.unshift(p)}}if(!s.loose){let d=h.tokens.filter(f=>f.type==="space"),p=d.length>0&&d.some(f=>this.rules.other.anyLine.test(f.raw));s.loose=p}}if(s.loose)for(let h of s.items){h.loose=!0;for(let d of h.tokens)d.type==="text"&&(d.type="paragraph")}return s}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:i}}}table(e){var s;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=go(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(s=t[3])!=null&&s.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
71
+ `):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let u of r)this.rules.other.tableAlignRight.test(u)?a.align.push("right"):this.rules.other.tableAlignCenter.test(u)?a.align.push("center"):this.rules.other.tableAlignLeft.test(u)?a.align.push("left"):a.align.push(null);for(let u=0;u<n.length;u++)a.header.push({text:n[u],tokens:this.lexer.inline(n[u]),header:!0,align:a.align[u]});for(let u of i)a.rows.push(go(u,a.header.length).map((o,l)=>({text:o,tokens:this.lexer.inline(o),header:!1,align:a.align[l]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
72
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let a=Dn(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{let a=$_(t[2],"()");if(a===-2)return;if(a>-1){let s=(t[0].indexOf("!")===0?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,s).trim(),t[3]=""}}let r=t[2],i="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(r);a&&(r=a[1],i=a[3])}else i=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),bo(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=t[r.toLowerCase()];if(!i){let a=n[0].charAt(0);return{type:"text",raw:a,text:a}}return bo(n,i,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,a,s,u=i,o=0,l=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+i);(r=l.exec(t))!=null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(s=[...a].length,r[3]||r[4]){u+=s;continue}else if((r[5]||r[6])&&i%3&&!((i+s)%3)){o+=s;continue}if(u-=s,u>0)continue;s=Math.min(s,s+u+o);let h=[...r[0]][0].length,d=e.slice(0,i+r.index+h+s);if(Math.min(i,s)%2){let f=d.slice(1,-1);return{type:"em",raw:d,text:f,tokens:this.lexer.inlineTokens(f)}}let p=d.slice(2,-2);return{type:"strong",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n;let t;if(t=this.rules.inline.url.exec(e)){let r,i;if(t[2]==="@")r=t[0],i="mailto:"+r;else{let a;do a=t[0],t[0]=((n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])??"";while(a!==t[0]);r=t[0],t[1]==="www."?i="http://"+t[0]:i=t[0]}return{type:"link",raw:t[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},at=class ba{constructor(t){de(this,"tokens");de(this,"options");de(this,"state");de(this,"inlineQueue");de(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||en,this.options.tokenizer=this.options.tokenizer||new Kr,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:$e,block:xr.normal,inline:On.normal};this.options.pedantic?(n.block=xr.pedantic,n.inline=On.pedantic):this.options.gfm&&(n.block=xr.gfm,this.options.breaks?n.inline=On.breaks:n.inline=On.gfm),this.tokenizer.rules=n}static get rules(){return{block:xr,inline:On}}static lex(t,n){return new ba(n).lex(t)}static lexInline(t,n){return new ba(n).inlineTokens(t)}lex(t){t=t.replace($e.carriageReturn,`
73
+ `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){var i,a,s;for(this.options.pedantic&&(t=t.replace($e.tabCharGlobal," ").replace($e.spaceLine,""));t;){let u;if((a=(i=this.options.extensions)==null?void 0:i.block)!=null&&a.some(l=>(u=l.call({lexer:this},t,n))?(t=t.substring(u.raw.length),n.push(u),!0):!1))continue;if(u=this.tokenizer.space(t)){t=t.substring(u.raw.length);let l=n.at(-1);u.raw.length===1&&l!==void 0?l.raw+=`
74
74
  `:n.push(u);continue}if(u=this.tokenizer.code(t)){t=t.substring(u.raw.length);let l=n.at(-1);(l==null?void 0:l.type)==="paragraph"||(l==null?void 0:l.type)==="text"?(l.raw+=(l.raw.endsWith(`
75
75
  `)?"":`
76
76
  `)+u.raw,l.text+=`
@@ -83,7 +83,7 @@ ${h}`:h;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
83
83
  `+u.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):n.push(u),r=o.length!==t.length,t=t.substring(u.raw.length);continue}if(u=this.tokenizer.text(t)){t=t.substring(u.raw.length);let l=n.at(-1);(l==null?void 0:l.type)==="text"?(l.raw+=(l.raw.endsWith(`
84
84
  `)?"":`
85
85
  `)+u.raw,l.text+=`
86
- `+u.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):n.push(u);continue}if(t){let l="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var o,l,h,d,p;let r=t,i=null;if(this.tokens.links){let f=Object.keys(this.tokens.links);if(f.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)f.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)a=i[2]?i[2].length:0,r=r.slice(0,i.index+a)+"["+"a".repeat(i[0].length-a-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=((l=(o=this.options.hooks)==null?void 0:o.emStrongMask)==null?void 0:l.call({lexer:this},r))??r;let s=!1,u="";for(;t;){s||(u=""),s=!1;let f;if((d=(h=this.options.extensions)==null?void 0:h.inline)!=null&&d.some(T=>(f=T.call({lexer:this},t,n))?(t=t.substring(f.raw.length),n.push(f),!0):!1))continue;if(f=this.tokenizer.escape(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.tag(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.link(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(f.raw.length);let T=n.at(-1);f.type==="text"&&(T==null?void 0:T.type)==="text"?(T.raw+=f.raw,T.text+=f.text):n.push(f);continue}if(f=this.tokenizer.emStrong(t,r,u)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.codespan(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.br(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.del(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.autolink(t)){t=t.substring(f.raw.length),n.push(f);continue}if(!this.state.inLink&&(f=this.tokenizer.url(t))){t=t.substring(f.raw.length),n.push(f);continue}let m=t;if((p=this.options.extensions)!=null&&p.startInline){let T=1/0,C=t.slice(1),y;this.options.extensions.startInline.forEach(I=>{y=I.call({lexer:this},C),typeof y=="number"&&y>=0&&(T=Math.min(T,y))}),T<1/0&&T>=0&&(m=t.substring(0,T+1))}if(f=this.tokenizer.inlineText(m)){t=t.substring(f.raw.length),f.raw.slice(-1)!=="_"&&(u=f.raw.slice(-1)),s=!0;let T=n.at(-1);(T==null?void 0:T.type)==="text"?(T.raw+=f.raw,T.text+=f.text):n.push(f);continue}if(t){let T="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(T);break}else throw new Error(T)}}return n}},Gr=class{constructor(e){de(this,"options");de(this,"parser");this.options=e||Zt}space(e){return""}code({text:e,lang:t,escaped:n}){var a;let r=(a=(t||"").match(ze.notSpaceStart))==null?void 0:a[0],i=e.replace(ze.endingNewline,"")+`
86
+ `+u.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):n.push(u);continue}if(t){let l="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var o,l,h,d,p;let r=t,i=null;if(this.tokens.links){let f=Object.keys(this.tokens.links);if(f.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)f.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)a=i[2]?i[2].length:0,r=r.slice(0,i.index+a)+"["+"a".repeat(i[0].length-a-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=((l=(o=this.options.hooks)==null?void 0:o.emStrongMask)==null?void 0:l.call({lexer:this},r))??r;let s=!1,u="";for(;t;){s||(u=""),s=!1;let f;if((d=(h=this.options.extensions)==null?void 0:h.inline)!=null&&d.some(k=>(f=k.call({lexer:this},t,n))?(t=t.substring(f.raw.length),n.push(f),!0):!1))continue;if(f=this.tokenizer.escape(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.tag(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.link(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(f.raw.length);let k=n.at(-1);f.type==="text"&&(k==null?void 0:k.type)==="text"?(k.raw+=f.raw,k.text+=f.text):n.push(f);continue}if(f=this.tokenizer.emStrong(t,r,u)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.codespan(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.br(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.del(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.autolink(t)){t=t.substring(f.raw.length),n.push(f);continue}if(!this.state.inLink&&(f=this.tokenizer.url(t))){t=t.substring(f.raw.length),n.push(f);continue}let m=t;if((p=this.options.extensions)!=null&&p.startInline){let k=1/0,C=t.slice(1),y;this.options.extensions.startInline.forEach(I=>{y=I.call({lexer:this},C),typeof y=="number"&&y>=0&&(k=Math.min(k,y))}),k<1/0&&k>=0&&(m=t.substring(0,k+1))}if(f=this.tokenizer.inlineText(m)){t=t.substring(f.raw.length),f.raw.slice(-1)!=="_"&&(u=f.raw.slice(-1)),s=!0;let k=n.at(-1);(k==null?void 0:k.type)==="text"?(k.raw+=f.raw,k.text+=f.text):n.push(f);continue}if(t){let k="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(k);break}else throw new Error(k)}}return n}},Xr=class{constructor(e){de(this,"options");de(this,"parser");this.options=e||en}space(e){return""}code({text:e,lang:t,escaped:n}){var a;let r=(a=(t||"").match($e.notSpaceStart))==null?void 0:a[0],i=e.replace($e.endingNewline,"")+`
87
87
  `;return r?'<pre><code class="language-'+_t(r)+'">'+(n?i:_t(i,!0))+`</code></pre>
88
88
  `:"<pre><code>"+(n?i:_t(i,!0))+`</code></pre>
89
89
  `}blockquote({tokens:e}){return`<blockquote>
@@ -101,23 +101,23 @@ ${this.parser.parse(e)}</blockquote>
101
101
  `}tablerow({text:e}){return`<tr>
102
102
  ${e}</tr>
103
103
  `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
104
- `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${_t(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=fo(e);if(i===null)return r;e=i;let a='<a href="'+e+'"';return t&&(a+=' title="'+_t(t)+'"'),a+=">"+r+"</a>",a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=fo(e);if(i===null)return _t(n);e=i;let a=`<img src="${e}" alt="${n}"`;return t&&(a+=` title="${_t(t)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:_t(e.text)}},ss=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},ut=class ma{constructor(t){de(this,"options");de(this,"renderer");de(this,"textRenderer");this.options=t||Zt,this.options.renderer=this.options.renderer||new Gr,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ss}static parse(t,n){return new ma(n).parse(t)}static parseInline(t,n){return new ma(n).parseInline(t)}parse(t){var r,i;let n="";for(let a=0;a<t.length;a++){let s=t[a];if((i=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&i[s.type]){let o=s,l=this.options.extensions.renderers[o.type].call({parser:this},o);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(o.type)){n+=l||"";continue}}let u=s;switch(u.type){case"space":{n+=this.renderer.space(u);break}case"hr":{n+=this.renderer.hr(u);break}case"heading":{n+=this.renderer.heading(u);break}case"code":{n+=this.renderer.code(u);break}case"table":{n+=this.renderer.table(u);break}case"blockquote":{n+=this.renderer.blockquote(u);break}case"list":{n+=this.renderer.list(u);break}case"checkbox":{n+=this.renderer.checkbox(u);break}case"html":{n+=this.renderer.html(u);break}case"def":{n+=this.renderer.def(u);break}case"paragraph":{n+=this.renderer.paragraph(u);break}case"text":{n+=this.renderer.text(u);break}default:{let o='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return n}parseInline(t,n=this.renderer){var i,a;let r="";for(let s=0;s<t.length;s++){let u=t[s];if((a=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&a[u.type]){let l=this.options.extensions.renderers[u.type].call({parser:this},u);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(u.type)){r+=l||"";continue}}let o=u;switch(o.type){case"escape":{r+=n.text(o);break}case"html":{r+=n.html(o);break}case"link":{r+=n.link(o);break}case"image":{r+=n.image(o);break}case"checkbox":{r+=n.checkbox(o);break}case"strong":{r+=n.strong(o);break}case"em":{r+=n.em(o);break}case"codespan":{r+=n.codespan(o);break}case"br":{r+=n.br(o);break}case"del":{r+=n.del(o);break}case"text":{r+=n.text(o);break}default:{let l='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return r}},xr,Mn=(xr=class{constructor(e){de(this,"options");de(this,"block");this.options=e||Zt}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?at.lex:at.lexInline}provideParser(){return this.block?ut.parse:ut.parseInline}},de(xr,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),de(xr,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),xr),$_=class{constructor(...t){de(this,"defaults",Za());de(this,"options",this.setOptions);de(this,"parse",this.parseMarkdown(!0));de(this,"parseInline",this.parseMarkdown(!1));de(this,"Parser",ut);de(this,"Renderer",Gr);de(this,"TextRenderer",ss);de(this,"Lexer",at);de(this,"Tokenizer",Wr);de(this,"Hooks",Mn);this.use(...t)}walkTokens(t,n){var i,a;let r=[];for(let s of t)switch(r=r.concat(n.call(this,s)),s.type){case"table":{let u=s;for(let o of u.header)r=r.concat(this.walkTokens(o.tokens,n));for(let o of u.rows)for(let l of o)r=r.concat(this.walkTokens(l.tokens,n));break}case"list":{let u=s;r=r.concat(this.walkTokens(u.items,n));break}default:{let u=s;(a=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&a[u.type]?this.defaults.extensions.childTokens[u.type].forEach(o=>{let l=u[o].flat(1/0);r=r.concat(this.walkTokens(l,n))}):u.tokens&&(r=r.concat(this.walkTokens(u.tokens,n)))}}return r}use(...t){let n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{let i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let s=n.renderers[a.name];s?n.renderers[a.name]=function(...u){let o=a.renderer.apply(this,u);return o===!1&&(o=s.apply(this,u)),o}:n.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=n[a.level];s?s.unshift(a.tokenizer):n[a.level]=[a.tokenizer],a.start&&(a.level==="block"?n.startBlock?n.startBlock.push(a.start):n.startBlock=[a.start]:a.level==="inline"&&(n.startInline?n.startInline.push(a.start):n.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(n.childTokens[a.name]=a.childTokens)}),i.extensions=n),r.renderer){let a=this.defaults.renderer||new Gr(this.defaults);for(let s in r.renderer){if(!(s in a))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let u=s,o=r.renderer[u],l=a[u];a[u]=(...h)=>{let d=o.apply(a,h);return d===!1&&(d=l.apply(a,h)),d||""}}i.renderer=a}if(r.tokenizer){let a=this.defaults.tokenizer||new Wr(this.defaults);for(let s in r.tokenizer){if(!(s in a))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let u=s,o=r.tokenizer[u],l=a[u];a[u]=(...h)=>{let d=o.apply(a,h);return d===!1&&(d=l.apply(a,h)),d}}i.tokenizer=a}if(r.hooks){let a=this.defaults.hooks||new Mn;for(let s in r.hooks){if(!(s in a))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let u=s,o=r.hooks[u],l=a[u];Mn.passThroughHooks.has(s)?a[u]=h=>{if(this.defaults.async&&Mn.passThroughHooksRespectAsync.has(s))return(async()=>{let p=await o.call(a,h);return l.call(a,p)})();let d=o.call(a,h);return l.call(a,d)}:a[u]=(...h)=>{if(this.defaults.async)return(async()=>{let p=await o.apply(a,h);return p===!1&&(p=await l.apply(a,h)),p})();let d=o.apply(a,h);return d===!1&&(d=l.apply(a,h)),d}}i.hooks=a}if(r.walkTokens){let a=this.defaults.walkTokens,s=r.walkTokens;i.walkTokens=function(u){let o=[];return o.push(s.call(this,u)),a&&(o=o.concat(a.call(this,u))),o}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return at.lex(t,n??this.defaults)}parser(t,n){return ut.parse(t,n??this.defaults)}parseMarkdown(t){return(n,r)=>{let i={...r},a={...this.defaults,...i},s=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&i.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=t),a.async)return(async()=>{let u=a.hooks?await a.hooks.preprocess(n):n,o=await(a.hooks?await a.hooks.provideLexer():t?at.lex:at.lexInline)(u,a),l=a.hooks?await a.hooks.processAllTokens(o):o;a.walkTokens&&await Promise.all(this.walkTokens(l,a.walkTokens));let h=await(a.hooks?await a.hooks.provideParser():t?ut.parse:ut.parseInline)(l,a);return a.hooks?await a.hooks.postprocess(h):h})().catch(s);try{a.hooks&&(n=a.hooks.preprocess(n));let u=(a.hooks?a.hooks.provideLexer():t?at.lex:at.lexInline)(n,a);a.hooks&&(u=a.hooks.processAllTokens(u)),a.walkTokens&&this.walkTokens(u,a.walkTokens);let o=(a.hooks?a.hooks.provideParser():t?ut.parse:ut.parseInline)(u,a);return a.hooks&&(o=a.hooks.postprocess(o)),o}catch(u){return s(u)}}}onError(t,n){return r=>{if(r.message+=`
105
- Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error occurred:</p><pre>"+_t(r.message+"",!0)+"</pre>";return n?Promise.resolve(i):i}if(n)return Promise.reject(r);throw r}}},Gt=new $_;function he(e,t){return Gt.parse(e,t)}he.options=he.setOptions=function(e){return Gt.setOptions(e),he.defaults=Gt.defaults,cd(he.defaults),he};he.getDefaults=Za;he.defaults=Zt;he.use=function(...e){return Gt.use(...e),he.defaults=Gt.defaults,cd(he.defaults),he};he.walkTokens=function(e,t){return Gt.walkTokens(e,t)};he.parseInline=Gt.parseInline;he.Parser=ut;he.parser=ut.parse;he.Renderer=Gr;he.TextRenderer=ss;he.Lexer=at;he.lexer=at.lex;he.Tokenizer=Wr;he.Hooks=Mn;he.parse=he;he.options;he.setOptions;he.use;he.walkTokens;he.parseInline;ut.parse;at.lex;var Y_=300,q_="300px",j_=500;function V_(e={}){let{immediate:t=!1,debounceDelay:n=Y_,rootMargin:r=q_,idleTimeout:i=j_}=e,[a,s]=le(!1),u=Le(null),o=Le(null),l=Le(null),h=ve(()=>f=>{let m=Date.now();return window.setTimeout(()=>{f({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-m))})},1)},[]),d=ve(()=>typeof window<"u"&&window.requestIdleCallback?(f,m)=>window.requestIdleCallback(f,m):h,[h]),p=ve(()=>typeof window<"u"&&window.cancelIdleCallback?f=>window.cancelIdleCallback(f):f=>{clearTimeout(f)},[]);return Ce(()=>{if(t){s(!0);return}let f=u.current;if(!f)return;o.current&&(clearTimeout(o.current),o.current=null),l.current&&(p(l.current),l.current=null);let m=()=>{o.current&&(clearTimeout(o.current),o.current=null),l.current&&(p(l.current),l.current=null)},T=S=>{l.current=d(D=>{D.timeRemaining()>0||D.didTimeout?(s(!0),S.disconnect()):l.current=d(()=>{s(!0),S.disconnect()},{timeout:i/2})},{timeout:i})},C=S=>{m(),o.current=window.setTimeout(()=>{var D,R;let x=S.takeRecords();(x.length===0||(R=(D=x.at(-1))==null?void 0:D.isIntersecting)!=null&&R)&&T(S)},n)},y=(S,D)=>{S.isIntersecting?C(D):m()},I=new IntersectionObserver(S=>{for(let D of S)y(D,I)},{rootMargin:r,threshold:0});return I.observe(f),()=>{o.current&&clearTimeout(o.current),l.current&&p(l.current),I.disconnect()}},[t,n,r,i,p,d]),{shouldRender:a,containerRef:u}}var us=e=>b("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:b("path",{clipRule:"evenodd",d:"M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",fill:"currentColor",fillRule:"evenodd"})}),os=e=>b("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:b("path",{clipRule:"evenodd",d:"M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z",fill:"currentColor",fillRule:"evenodd"})}),fi=e=>b("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:b("path",{clipRule:"evenodd",d:"M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z",fill:"currentColor",fillRule:"evenodd"})}),W_=e=>b("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:[b("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),b("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),b("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),b("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),b("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),b("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),b("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),b("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),b("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),b("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),G_=e=>b("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:b("path",{clipRule:"evenodd",d:"M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z",fill:"currentColor",fillRule:"evenodd"})}),Q_=e=>b("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:b("path",{clipRule:"evenodd",d:"M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z",fill:"currentColor",fillRule:"evenodd"})}),_d=e=>b("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:b("path",{clipRule:"evenodd",d:"M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z",fill:"currentColor",fillRule:"evenodd"})}),go=e=>b("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:b("path",{clipRule:"evenodd",d:"M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z",fill:"currentColor",fillRule:"evenodd"})}),K_=e=>b("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:b("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),X_=e=>b("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:b("path",{clipRule:"evenodd",d:"M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",fill:"currentColor",fillRule:"evenodd"})}),K=(...e)=>S3(HE(e)),cn=(e,t,n)=>{let r=typeof t=="string"?new Blob([t],{type:n}):t,i=URL.createObjectURL(r),a=document.createElement("a");a.href=i,a.download=e,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(i)},xd=ka({code:""}),yd=()=>nt(xd),bo=({onCopy:e,onError:t,timeout:n=2e3,children:r,className:i,code:a,...s})=>{let[u,o]=le(!1),l=Le(0),{code:h}=yd(),{isAnimating:d}=nt(tt),p=a??h,f=async()=>{var T;if(typeof window>"u"||!((T=navigator==null?void 0:navigator.clipboard)!=null&&T.writeText)){t==null||t(new Error("Clipboard API not available"));return}try{u||(await navigator.clipboard.writeText(p),o(!0),e==null||e(),l.current=window.setTimeout(()=>o(!1),n))}catch(C){t==null||t(C)}};Ce(()=>()=>{window.clearTimeout(l.current)},[]);let m=u?us:os;return b("button",{className:K("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-copy-button",disabled:d,onClick:f,title:"Copy Code",type:"button",...s,children:r??b(m,{size:14})})},Eo={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},Z_=({onDownload:e,onError:t,language:n,children:r,className:i,code:a,...s})=>{let{code:u}=yd(),{isAnimating:o}=nt(tt),l=a??u,h=`file.${n&&n in Eo?Eo[n]:"txt"}`,d="text/plain",p=()=>{try{cn(h,l,d),e==null||e()}catch(f){t==null||t(f)}};return b("button",{className:K("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-download-button",disabled:o,onClick:p,title:"Download file",type:"button",...s,children:r??b(fi,{size:14})})},To=()=>b("div",{className:"w-full divide-y divide-border overflow-hidden rounded-xl border border-border",children:[b("div",{className:"h-[46px] w-full bg-muted/80"}),b("div",{className:"flex w-full items-center justify-center p-4",children:b(W_,{className:"size-4 animate-spin"})})]}),J_=/\.[^/.]+$/,e6=({node:e,className:t,src:n,alt:r,...i})=>{let a=async()=>{if(n)try{let s=await(await fetch(n)).blob(),u=new URL(n,window.location.origin).pathname.split("/").pop()||"",o=u.split(".").pop(),l=u.includes(".")&&o!==void 0&&o.length<=4,h="";if(l)h=u;else{let d=s.type,p="png";d.includes("jpeg")||d.includes("jpg")?p="jpg":d.includes("png")?p="png":d.includes("svg")?p="svg":d.includes("gif")?p="gif":d.includes("webp")&&(p="webp"),h=`${(r||u||"image").replace(J_,"")}.${p}`}cn(h,s,s.type)}catch{window.open(n,"_blank")}};return n?b("div",{className:"group relative my-4 inline-block","data-streamdown":"image-wrapper",children:[b("img",{alt:r,className:K("max-w-full rounded-lg",t),"data-streamdown":"image",src:n,...i}),b("div",{className:"pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"}),b("button",{className:K("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:a,title:"Download image",type:"button",children:b(fi,{size:14})})]}):null},Wn=0,t6=()=>{Wn+=1,Wn===1&&(document.body.style.overflow="hidden")},n6=()=>{Wn=Math.max(0,Wn-1),Wn===0&&(document.body.style.overflow="")},r6=({url:e,isOpen:t,onClose:n,onConfirm:r})=>{let[i,a]=le(!1),s=De(async()=>{try{await navigator.clipboard.writeText(e),a(!0),setTimeout(()=>a(!1),2e3)}catch{}},[e]),u=De(()=>{r(),n()},[r,n]);return Ce(()=>{if(t){t6();let o=l=>{l.key==="Escape"&&n()};return document.addEventListener("keydown",o),()=>{document.removeEventListener("keydown",o),n6()}}},[t,n]),t?b("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm","data-streamdown":"link-safety-modal",onClick:n,onKeyDown:o=>{o.key==="Escape"&&n()},role:"button",tabIndex:0,children:b("div",{className:"relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg",onClick:o=>o.stopPropagation(),onKeyDown:o=>o.stopPropagation(),role:"presentation",children:[b("button",{className:"absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground",onClick:n,title:"Close",type:"button",children:b(_d,{size:16})}),b("div",{className:"flex flex-col gap-2",children:[b("div",{className:"flex items-center gap-2 font-semibold text-lg",children:[b(go,{size:20}),b("span",{children:"Open external link?"})]}),b("p",{className:"text-muted-foreground text-sm",children:"You're about to visit an external website."})]}),b("div",{className:K("break-all rounded-md bg-muted p-3 font-mono text-sm",e.length>100&&"max-h-32 overflow-y-auto"),children:e}),b("div",{className:"flex gap-2",children:[b("button",{className:"flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted",onClick:s,type:"button",children:i?b($e,{children:[b(us,{size:14}),b("span",{children:"Copied"})]}):b($e,{children:[b(os,{size:14}),b("span",{children:"Copy link"})]})}),b("button",{className:"flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90",onClick:u,type:"button",children:[b(go,{size:14}),b("span",{children:"Open link"})]})]})]})}):null},ga=ka(null),Ad=()=>nt(ga),i6=()=>{var e;let t=Ad();return(e=t==null?void 0:t.code)!=null?e:null},ls=()=>{var e;let t=Ad();return(e=t==null?void 0:t.mermaid)!=null?e:null},a6=(e,t)=>{var n;let r=(n=void 0)!=null?n:5;return new Promise((i,a)=>{let s="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e))),u=new Image;u.crossOrigin="anonymous",u.onload=()=>{let o=document.createElement("canvas"),l=u.width*r,h=u.height*r;o.width=l,o.height=h;let d=o.getContext("2d");if(!d){a(new Error("Failed to create 2D canvas context for PNG export"));return}d.drawImage(u,0,0,l,h),o.toBlob(p=>{if(!p){a(new Error("Failed to create PNG blob"));return}i(p)},"image/png")},u.onerror=()=>a(new Error("Failed to load SVG image")),u.src=s})},s6=({chart:e,children:t,className:n,onDownload:r,config:i,onError:a})=>{let[s,u]=le(!1),o=Le(null),{isAnimating:l}=nt(tt),h=ls(),d=async p=>{try{if(p==="mmd"){cn("diagram.mmd",e,"text/plain"),u(!1),r==null||r(p);return}if(!h){a==null||a(new Error("Mermaid plugin not available"));return}let f=h.getMermaid(i),m=e.split("").reduce((y,I)=>(y<<5)-y+I.charCodeAt(0)|0,0),T=`mermaid-${Math.abs(m)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:C}=await f.render(T,e);if(!C){a==null||a(new Error("SVG not found. Please wait for the diagram to render."));return}if(p==="svg"){cn("diagram.svg",C,"image/svg+xml"),u(!1),r==null||r(p);return}if(p==="png"){let y=await a6(C);cn("diagram.png",y,"image/png"),r==null||r(p),u(!1);return}}catch(f){a==null||a(f)}};return Ce(()=>{let p=f=>{let m=f.composedPath();o.current&&!m.includes(o.current)&&u(!1)};return document.addEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p)}},[]),b("div",{className:"relative",ref:o,children:[b("button",{className:K("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",n),disabled:l,onClick:()=>u(!s),title:"Download diagram",type:"button",children:t??b(fi,{size:14})}),s?b("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[b("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>d("svg"),title:"Download diagram as SVG",type:"button",children:"SVG"}),b("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>d("png"),title:"Download diagram as PNG",type:"button",children:"PNG"}),b("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>d("mmd"),title:"Download diagram as MMD",type:"button",children:"MMD"})]}):null]})},Gn=0,u6=()=>{Gn+=1,Gn===1&&(document.body.style.overflow="hidden")},o6=()=>{Gn=Math.max(0,Gn-1),Gn===0&&(document.body.style.overflow="")},l6=({chart:e,config:t,onFullscreen:n,onExit:r,className:i,...a})=>{let[s,u]=le(!1),{isAnimating:o,controls:l}=nt(tt),h=(()=>{if(typeof l=="boolean")return l;let p=l.mermaid;return p===!1?!1:p===!0||p===void 0?!0:p.panZoom!==!1})(),d=()=>{u(!s)};return Ce(()=>{if(s){u6();let p=f=>{f.key==="Escape"&&u(!1)};return document.addEventListener("keydown",p),()=>{document.removeEventListener("keydown",p),o6()}}},[s]),Ce(()=>{s?n==null||n():r&&r()},[s,n,r]),b($e,{children:[b("button",{className:K("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),disabled:o,onClick:d,title:"View fullscreen",type:"button",...a,children:b(G_,{size:14})}),s?b("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm",onClick:d,onKeyDown:p=>{p.key==="Escape"&&d()},role:"button",tabIndex:0,children:[b("button",{className:"absolute top-4 right-4 z-10 rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground",onClick:d,title:"Exit fullscreen",type:"button",children:b(_d,{size:20})}),b("div",{className:"flex size-full items-center justify-center p-4",onClick:p=>p.stopPropagation(),onKeyDown:p=>p.stopPropagation(),role:"presentation",children:b(e0,{chart:e,className:"size-full [&_svg]:h-auto [&_svg]:w-auto",config:t,fullscreen:!0,showControls:h})})]}):null]})},Cd=e=>{var t,n;let r=[],i=[],a=e.querySelectorAll("thead th");for(let u of a)r.push(((t=u.textContent)==null?void 0:t.trim())||"");let s=e.querySelectorAll("tbody tr");for(let u of s){let o=[],l=u.querySelectorAll("td");for(let h of l)o.push(((n=h.textContent)==null?void 0:n.trim())||"");i.push(o)}return{headers:r,rows:i}},wd=e=>{let{headers:t,rows:n}=e,r=u=>{let o=!1,l=!1;for(let h of u){if(h==='"'){o=!0,l=!0;break}(h===","||h===`
104
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${_t(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=mo(e);if(i===null)return r;e=i;let a='<a href="'+e+'"';return t&&(a+=' title="'+_t(t)+'"'),a+=">"+r+"</a>",a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=mo(e);if(i===null)return _t(n);e=i;let a=`<img src="${e}" alt="${n}"`;return t&&(a+=` title="${_t(t)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:_t(e.text)}},cs=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},ut=class Ea{constructor(t){de(this,"options");de(this,"renderer");de(this,"textRenderer");this.options=t||en,this.options.renderer=this.options.renderer||new Xr,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new cs}static parse(t,n){return new Ea(n).parse(t)}static parseInline(t,n){return new Ea(n).parseInline(t)}parse(t){var r,i;let n="";for(let a=0;a<t.length;a++){let s=t[a];if((i=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&i[s.type]){let o=s,l=this.options.extensions.renderers[o.type].call({parser:this},o);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(o.type)){n+=l||"";continue}}let u=s;switch(u.type){case"space":{n+=this.renderer.space(u);break}case"hr":{n+=this.renderer.hr(u);break}case"heading":{n+=this.renderer.heading(u);break}case"code":{n+=this.renderer.code(u);break}case"table":{n+=this.renderer.table(u);break}case"blockquote":{n+=this.renderer.blockquote(u);break}case"list":{n+=this.renderer.list(u);break}case"checkbox":{n+=this.renderer.checkbox(u);break}case"html":{n+=this.renderer.html(u);break}case"def":{n+=this.renderer.def(u);break}case"paragraph":{n+=this.renderer.paragraph(u);break}case"text":{n+=this.renderer.text(u);break}default:{let o='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return n}parseInline(t,n=this.renderer){var i,a;let r="";for(let s=0;s<t.length;s++){let u=t[s];if((a=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&a[u.type]){let l=this.options.extensions.renderers[u.type].call({parser:this},u);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(u.type)){r+=l||"";continue}}let o=u;switch(o.type){case"escape":{r+=n.text(o);break}case"html":{r+=n.html(o);break}case"link":{r+=n.link(o);break}case"image":{r+=n.image(o);break}case"checkbox":{r+=n.checkbox(o);break}case"strong":{r+=n.strong(o);break}case"em":{r+=n.em(o);break}case"codespan":{r+=n.codespan(o);break}case"br":{r+=n.br(o);break}case"del":{r+=n.del(o);break}case"text":{r+=n.text(o);break}default:{let l='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return r}},Cr,Bn=(Cr=class{constructor(e){de(this,"options");de(this,"block");this.options=e||en}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?at.lex:at.lexInline}provideParser(){return this.block?ut.parse:ut.parseInline}},de(Cr,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),de(Cr,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Cr),q_=class{constructor(...t){de(this,"defaults",ns());de(this,"options",this.setOptions);de(this,"parse",this.parseMarkdown(!0));de(this,"parseInline",this.parseMarkdown(!1));de(this,"Parser",ut);de(this,"Renderer",Xr);de(this,"TextRenderer",cs);de(this,"Lexer",at);de(this,"Tokenizer",Kr);de(this,"Hooks",Bn);this.use(...t)}walkTokens(t,n){var i,a;let r=[];for(let s of t)switch(r=r.concat(n.call(this,s)),s.type){case"table":{let u=s;for(let o of u.header)r=r.concat(this.walkTokens(o.tokens,n));for(let o of u.rows)for(let l of o)r=r.concat(this.walkTokens(l.tokens,n));break}case"list":{let u=s;r=r.concat(this.walkTokens(u.items,n));break}default:{let u=s;(a=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&a[u.type]?this.defaults.extensions.childTokens[u.type].forEach(o=>{let l=u[o].flat(1/0);r=r.concat(this.walkTokens(l,n))}):u.tokens&&(r=r.concat(this.walkTokens(u.tokens,n)))}}return r}use(...t){let n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{let i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let s=n.renderers[a.name];s?n.renderers[a.name]=function(...u){let o=a.renderer.apply(this,u);return o===!1&&(o=s.apply(this,u)),o}:n.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=n[a.level];s?s.unshift(a.tokenizer):n[a.level]=[a.tokenizer],a.start&&(a.level==="block"?n.startBlock?n.startBlock.push(a.start):n.startBlock=[a.start]:a.level==="inline"&&(n.startInline?n.startInline.push(a.start):n.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(n.childTokens[a.name]=a.childTokens)}),i.extensions=n),r.renderer){let a=this.defaults.renderer||new Xr(this.defaults);for(let s in r.renderer){if(!(s in a))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let u=s,o=r.renderer[u],l=a[u];a[u]=(...h)=>{let d=o.apply(a,h);return d===!1&&(d=l.apply(a,h)),d||""}}i.renderer=a}if(r.tokenizer){let a=this.defaults.tokenizer||new Kr(this.defaults);for(let s in r.tokenizer){if(!(s in a))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let u=s,o=r.tokenizer[u],l=a[u];a[u]=(...h)=>{let d=o.apply(a,h);return d===!1&&(d=l.apply(a,h)),d}}i.tokenizer=a}if(r.hooks){let a=this.defaults.hooks||new Bn;for(let s in r.hooks){if(!(s in a))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let u=s,o=r.hooks[u],l=a[u];Bn.passThroughHooks.has(s)?a[u]=h=>{if(this.defaults.async&&Bn.passThroughHooksRespectAsync.has(s))return(async()=>{let p=await o.call(a,h);return l.call(a,p)})();let d=o.call(a,h);return l.call(a,d)}:a[u]=(...h)=>{if(this.defaults.async)return(async()=>{let p=await o.apply(a,h);return p===!1&&(p=await l.apply(a,h)),p})();let d=o.apply(a,h);return d===!1&&(d=l.apply(a,h)),d}}i.hooks=a}if(r.walkTokens){let a=this.defaults.walkTokens,s=r.walkTokens;i.walkTokens=function(u){let o=[];return o.push(s.call(this,u)),a&&(o=o.concat(a.call(this,u))),o}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return at.lex(t,n??this.defaults)}parser(t,n){return ut.parse(t,n??this.defaults)}parseMarkdown(t){return(n,r)=>{let i={...r},a={...this.defaults,...i},s=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&i.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=t),a.async)return(async()=>{let u=a.hooks?await a.hooks.preprocess(n):n,o=await(a.hooks?await a.hooks.provideLexer():t?at.lex:at.lexInline)(u,a),l=a.hooks?await a.hooks.processAllTokens(o):o;a.walkTokens&&await Promise.all(this.walkTokens(l,a.walkTokens));let h=await(a.hooks?await a.hooks.provideParser():t?ut.parse:ut.parseInline)(l,a);return a.hooks?await a.hooks.postprocess(h):h})().catch(s);try{a.hooks&&(n=a.hooks.preprocess(n));let u=(a.hooks?a.hooks.provideLexer():t?at.lex:at.lexInline)(n,a);a.hooks&&(u=a.hooks.processAllTokens(u)),a.walkTokens&&this.walkTokens(u,a.walkTokens);let o=(a.hooks?a.hooks.provideParser():t?ut.parse:ut.parseInline)(u,a);return a.hooks&&(o=a.hooks.postprocess(o)),o}catch(u){return s(u)}}}onError(t,n){return r=>{if(r.message+=`
105
+ Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error occurred:</p><pre>"+_t(r.message+"",!0)+"</pre>";return n?Promise.resolve(i):i}if(n)return Promise.reject(r);throw r}}},Kt=new q_;function he(e,t){return Kt.parse(e,t)}he.options=he.setOptions=function(e){return Kt.setOptions(e),he.defaults=Kt.defaults,dd(he.defaults),he};he.getDefaults=ns;he.defaults=en;he.use=function(...e){return Kt.use(...e),he.defaults=Kt.defaults,dd(he.defaults),he};he.walkTokens=function(e,t){return Kt.walkTokens(e,t)};he.parseInline=Kt.parseInline;he.Parser=ut;he.parser=ut.parse;he.Renderer=Xr;he.TextRenderer=cs;he.Lexer=at;he.lexer=at.lex;he.Tokenizer=Kr;he.Hooks=Bn;he.parse=he;he.options;he.setOptions;he.use;he.walkTokens;he.parseInline;ut.parse;at.lex;var j_=300,V_="300px",W_=500;function G_(e={}){let{immediate:t=!1,debounceDelay:n=j_,rootMargin:r=V_,idleTimeout:i=W_}=e,[a,s]=le(!1),u=Le(null),o=Le(null),l=Le(null),h=ve(()=>f=>{let m=Date.now();return window.setTimeout(()=>{f({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-m))})},1)},[]),d=ve(()=>typeof window<"u"&&window.requestIdleCallback?(f,m)=>window.requestIdleCallback(f,m):h,[h]),p=ve(()=>typeof window<"u"&&window.cancelIdleCallback?f=>window.cancelIdleCallback(f):f=>{clearTimeout(f)},[]);return Ce(()=>{if(t){s(!0);return}let f=u.current;if(!f)return;o.current&&(clearTimeout(o.current),o.current=null),l.current&&(p(l.current),l.current=null);let m=()=>{o.current&&(clearTimeout(o.current),o.current=null),l.current&&(p(l.current),l.current=null)},k=S=>{l.current=d(D=>{D.timeRemaining()>0||D.didTimeout?(s(!0),S.disconnect()):l.current=d(()=>{s(!0),S.disconnect()},{timeout:i/2})},{timeout:i})},C=S=>{m(),o.current=window.setTimeout(()=>{var D,R;let x=S.takeRecords();(x.length===0||(R=(D=x.at(-1))==null?void 0:D.isIntersecting)!=null&&R)&&k(S)},n)},y=(S,D)=>{S.isIntersecting?C(D):m()},I=new IntersectionObserver(S=>{for(let D of S)y(D,I)},{rootMargin:r,threshold:0});return I.observe(f),()=>{o.current&&clearTimeout(o.current),l.current&&p(l.current),I.disconnect()}},[t,n,r,i,p,d]),{shouldRender:a,containerRef:u}}var ds=e=>b("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:b("path",{clipRule:"evenodd",d:"M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",fill:"currentColor",fillRule:"evenodd"})}),hs=e=>b("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:b("path",{clipRule:"evenodd",d:"M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z",fill:"currentColor",fillRule:"evenodd"})}),gi=e=>b("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:b("path",{clipRule:"evenodd",d:"M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z",fill:"currentColor",fillRule:"evenodd"})}),Q_=e=>b("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:[b("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),b("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),b("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),b("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),b("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),b("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),b("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),b("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),b("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),b("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),K_=e=>b("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:b("path",{clipRule:"evenodd",d:"M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z",fill:"currentColor",fillRule:"evenodd"})}),X_=e=>b("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:b("path",{clipRule:"evenodd",d:"M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z",fill:"currentColor",fillRule:"evenodd"})}),xd=e=>b("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:b("path",{clipRule:"evenodd",d:"M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z",fill:"currentColor",fillRule:"evenodd"})}),Eo=e=>b("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:b("path",{clipRule:"evenodd",d:"M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z",fill:"currentColor",fillRule:"evenodd"})}),Z_=e=>b("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:b("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),J_=e=>b("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:b("path",{clipRule:"evenodd",d:"M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",fill:"currentColor",fillRule:"evenodd"})}),K=(...e)=>N3(zE(e)),dn=(e,t,n)=>{let r=typeof t=="string"?new Blob([t],{type:n}):t,i=URL.createObjectURL(r),a=document.createElement("a");a.href=i,a.download=e,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(i)},yd=ya({code:""}),Ad=()=>nt(yd),ko=({onCopy:e,onError:t,timeout:n=2e3,children:r,className:i,code:a,...s})=>{let[u,o]=le(!1),l=Le(0),{code:h}=Ad(),{isAnimating:d}=nt(tt),p=a??h,f=async()=>{var k;if(typeof window>"u"||!((k=navigator==null?void 0:navigator.clipboard)!=null&&k.writeText)){t==null||t(new Error("Clipboard API not available"));return}try{u||(await navigator.clipboard.writeText(p),o(!0),e==null||e(),l.current=window.setTimeout(()=>o(!1),n))}catch(C){t==null||t(C)}};Ce(()=>()=>{window.clearTimeout(l.current)},[]);let m=u?ds:hs;return b("button",{className:K("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-copy-button",disabled:d,onClick:f,title:"Copy Code",type:"button",...s,children:r??b(m,{size:14})})},To={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},e6=({onDownload:e,onError:t,language:n,children:r,className:i,code:a,...s})=>{let{code:u}=Ad(),{isAnimating:o}=nt(tt),l=a??u,h=`file.${n&&n in To?To[n]:"txt"}`,d="text/plain",p=()=>{try{dn(h,l,d),e==null||e()}catch(f){t==null||t(f)}};return b("button",{className:K("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-download-button",disabled:o,onClick:p,title:"Download file",type:"button",...s,children:r??b(gi,{size:14})})},_o=()=>b("div",{className:"w-full divide-y divide-border overflow-hidden rounded-xl border border-border",children:[b("div",{className:"h-[46px] w-full bg-muted/80"}),b("div",{className:"flex w-full items-center justify-center p-4",children:b(Q_,{className:"size-4 animate-spin"})})]}),t6=/\.[^/.]+$/,n6=({node:e,className:t,src:n,alt:r,...i})=>{let a=async()=>{if(n)try{let s=await(await fetch(n)).blob(),u=new URL(n,window.location.origin).pathname.split("/").pop()||"",o=u.split(".").pop(),l=u.includes(".")&&o!==void 0&&o.length<=4,h="";if(l)h=u;else{let d=s.type,p="png";d.includes("jpeg")||d.includes("jpg")?p="jpg":d.includes("png")?p="png":d.includes("svg")?p="svg":d.includes("gif")?p="gif":d.includes("webp")&&(p="webp"),h=`${(r||u||"image").replace(t6,"")}.${p}`}dn(h,s,s.type)}catch{window.open(n,"_blank")}};return n?b("div",{className:"group relative my-4 inline-block","data-streamdown":"image-wrapper",children:[b("img",{alt:r,className:K("max-w-full rounded-lg",t),"data-streamdown":"image",src:n,...i}),b("div",{className:"pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"}),b("button",{className:K("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:a,title:"Download image",type:"button",children:b(gi,{size:14})})]}):null},Gn=0,r6=()=>{Gn+=1,Gn===1&&(document.body.style.overflow="hidden")},i6=()=>{Gn=Math.max(0,Gn-1),Gn===0&&(document.body.style.overflow="")},a6=({url:e,isOpen:t,onClose:n,onConfirm:r})=>{let[i,a]=le(!1),s=Pe(async()=>{try{await navigator.clipboard.writeText(e),a(!0),setTimeout(()=>a(!1),2e3)}catch{}},[e]),u=Pe(()=>{r(),n()},[r,n]);return Ce(()=>{if(t){r6();let o=l=>{l.key==="Escape"&&n()};return document.addEventListener("keydown",o),()=>{document.removeEventListener("keydown",o),i6()}}},[t,n]),t?b("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm","data-streamdown":"link-safety-modal",onClick:n,onKeyDown:o=>{o.key==="Escape"&&n()},role:"button",tabIndex:0,children:b("div",{className:"relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg",onClick:o=>o.stopPropagation(),onKeyDown:o=>o.stopPropagation(),role:"presentation",children:[b("button",{className:"absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground",onClick:n,title:"Close",type:"button",children:b(xd,{size:16})}),b("div",{className:"flex flex-col gap-2",children:[b("div",{className:"flex items-center gap-2 font-semibold text-lg",children:[b(Eo,{size:20}),b("span",{children:"Open external link?"})]}),b("p",{className:"text-muted-foreground text-sm",children:"You're about to visit an external website."})]}),b("div",{className:K("break-all rounded-md bg-muted p-3 font-mono text-sm",e.length>100&&"max-h-32 overflow-y-auto"),children:e}),b("div",{className:"flex gap-2",children:[b("button",{className:"flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted",onClick:s,type:"button",children:i?b(Ye,{children:[b(ds,{size:14}),b("span",{children:"Copied"})]}):b(Ye,{children:[b(hs,{size:14}),b("span",{children:"Copy link"})]})}),b("button",{className:"flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90",onClick:u,type:"button",children:[b(Eo,{size:14}),b("span",{children:"Open link"})]})]})]})}):null},ka=ya(null),Cd=()=>nt(ka),s6=()=>{var e;let t=Cd();return(e=t==null?void 0:t.code)!=null?e:null},fs=()=>{var e;let t=Cd();return(e=t==null?void 0:t.mermaid)!=null?e:null},u6=(e,t)=>{var n;let r=(n=void 0)!=null?n:5;return new Promise((i,a)=>{let s="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e))),u=new Image;u.crossOrigin="anonymous",u.onload=()=>{let o=document.createElement("canvas"),l=u.width*r,h=u.height*r;o.width=l,o.height=h;let d=o.getContext("2d");if(!d){a(new Error("Failed to create 2D canvas context for PNG export"));return}d.drawImage(u,0,0,l,h),o.toBlob(p=>{if(!p){a(new Error("Failed to create PNG blob"));return}i(p)},"image/png")},u.onerror=()=>a(new Error("Failed to load SVG image")),u.src=s})},o6=({chart:e,children:t,className:n,onDownload:r,config:i,onError:a})=>{let[s,u]=le(!1),o=Le(null),{isAnimating:l}=nt(tt),h=fs(),d=async p=>{try{if(p==="mmd"){dn("diagram.mmd",e,"text/plain"),u(!1),r==null||r(p);return}if(!h){a==null||a(new Error("Mermaid plugin not available"));return}let f=h.getMermaid(i),m=e.split("").reduce((y,I)=>(y<<5)-y+I.charCodeAt(0)|0,0),k=`mermaid-${Math.abs(m)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:C}=await f.render(k,e);if(!C){a==null||a(new Error("SVG not found. Please wait for the diagram to render."));return}if(p==="svg"){dn("diagram.svg",C,"image/svg+xml"),u(!1),r==null||r(p);return}if(p==="png"){let y=await u6(C);dn("diagram.png",y,"image/png"),r==null||r(p),u(!1);return}}catch(f){a==null||a(f)}};return Ce(()=>{let p=f=>{let m=f.composedPath();o.current&&!m.includes(o.current)&&u(!1)};return document.addEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p)}},[]),b("div",{className:"relative",ref:o,children:[b("button",{className:K("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",n),disabled:l,onClick:()=>u(!s),title:"Download diagram",type:"button",children:t??b(gi,{size:14})}),s?b("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[b("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>d("svg"),title:"Download diagram as SVG",type:"button",children:"SVG"}),b("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>d("png"),title:"Download diagram as PNG",type:"button",children:"PNG"}),b("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>d("mmd"),title:"Download diagram as MMD",type:"button",children:"MMD"})]}):null]})},Qn=0,l6=()=>{Qn+=1,Qn===1&&(document.body.style.overflow="hidden")},c6=()=>{Qn=Math.max(0,Qn-1),Qn===0&&(document.body.style.overflow="")},d6=({chart:e,config:t,onFullscreen:n,onExit:r,className:i,...a})=>{let[s,u]=le(!1),{isAnimating:o,controls:l}=nt(tt),h=(()=>{if(typeof l=="boolean")return l;let p=l.mermaid;return p===!1?!1:p===!0||p===void 0?!0:p.panZoom!==!1})(),d=()=>{u(!s)};return Ce(()=>{if(s){l6();let p=f=>{f.key==="Escape"&&u(!1)};return document.addEventListener("keydown",p),()=>{document.removeEventListener("keydown",p),c6()}}},[s]),Ce(()=>{s?n==null||n():r&&r()},[s,n,r]),b(Ye,{children:[b("button",{className:K("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),disabled:o,onClick:d,title:"View fullscreen",type:"button",...a,children:b(K_,{size:14})}),s?b("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm",onClick:d,onKeyDown:p=>{p.key==="Escape"&&d()},role:"button",tabIndex:0,children:[b("button",{className:"absolute top-4 right-4 z-10 rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground",onClick:d,title:"Exit fullscreen",type:"button",children:b(xd,{size:20})}),b("div",{className:"flex size-full items-center justify-center p-4",onClick:p=>p.stopPropagation(),onKeyDown:p=>p.stopPropagation(),role:"presentation",children:b(t0,{chart:e,className:"size-full [&_svg]:h-auto [&_svg]:w-auto",config:t,fullscreen:!0,showControls:h})})]}):null]})},wd=e=>{var t,n;let r=[],i=[],a=e.querySelectorAll("thead th");for(let u of a)r.push(((t=u.textContent)==null?void 0:t.trim())||"");let s=e.querySelectorAll("tbody tr");for(let u of s){let o=[],l=u.querySelectorAll("td");for(let h of l)o.push(((n=h.textContent)==null?void 0:n.trim())||"");i.push(o)}return{headers:r,rows:i}},Sd=e=>{let{headers:t,rows:n}=e,r=u=>{let o=!1,l=!1;for(let h of u){if(h==='"'){o=!0,l=!0;break}(h===","||h===`
106
106
  `)&&(o=!0)}return o?l?`"${u.replace(/"/g,'""')}"`:`"${u}"`:u},i=t.length>0?n.length+1:n.length,a=new Array(i),s=0;t.length>0&&(a[s]=t.map(r).join(","),s+=1);for(let u of n)a[s]=u.map(r).join(","),s+=1;return a.join(`
107
- `)},c6=e=>{let{headers:t,rows:n}=e,r=u=>{let o=!1;for(let h of u)if(h===" "||h===`
107
+ `)},h6=e=>{let{headers:t,rows:n}=e,r=u=>{let o=!1;for(let h of u)if(h===" "||h===`
108
108
  `||h==="\r"){o=!0;break}if(!o)return u;let l=[];for(let h of u)h===" "?l.push("\\t"):h===`
109
109
  `?l.push("\\n"):h==="\r"?l.push("\\r"):l.push(h);return l.join("")},i=t.length>0?n.length+1:n.length,a=new Array(i),s=0;t.length>0&&(a[s]=t.map(r).join(" "),s+=1);for(let u of n)a[s]=u.map(r).join(" "),s+=1;return a.join(`
110
- `)},Ui=e=>{let t=!1;for(let r of e)if(r==="\\"||r==="|"){t=!0;break}if(!t)return e;let n=[];for(let r of e)r==="\\"?n.push("\\\\"):r==="|"?n.push("\\|"):n.push(r);return n.join("")},d6=e=>{let{headers:t,rows:n}=e;if(t.length===0)return"";let r=new Array(n.length+2),i=0,a=t.map(u=>Ui(u));r[i]=`| ${a.join(" | ")} |`,i+=1;let s=new Array(t.length);for(let u=0;u<t.length;u+=1)s[u]="---";r[i]=`| ${s.join(" | ")} |`,i+=1;for(let u of n)if(u.length<t.length){let o=new Array(t.length);for(let l=0;l<t.length;l+=1)o[l]=l<u.length?Ui(u[l]):"";r[i]=`| ${o.join(" | ")} |`,i+=1}else{let o=u.map(l=>Ui(l));r[i]=`| ${o.join(" | ")} |`,i+=1}return r.join(`
111
- `)},h6=({children:e,className:t,onCopy:n,onError:r,timeout:i=2e3})=>{let[a,s]=le(!1),[u,o]=le(!1),l=Le(null),h=Le(0),{isAnimating:d}=nt(tt),p=async m=>{var T,C;if(typeof window>"u"||!((T=navigator==null?void 0:navigator.clipboard)!=null&&T.write)){r==null||r(new Error("Clipboard API not available"));return}try{let y=(C=l.current)==null?void 0:C.closest('[data-streamdown="table-wrapper"]'),I=y==null?void 0:y.querySelector("table");if(!I){r==null||r(new Error("Table not found"));return}let S=Cd(I),D=m==="csv"?wd(S):c6(S),R=new ClipboardItem({"text/plain":new Blob([D],{type:"text/plain"}),"text/html":new Blob([I.outerHTML],{type:"text/html"})});await navigator.clipboard.write([R]),o(!0),s(!1),n==null||n(m),h.current=window.setTimeout(()=>o(!1),i)}catch(y){r==null||r(y)}};Ce(()=>{let m=T=>{let C=T.composedPath();l.current&&!C.includes(l.current)&&s(!1)};return document.addEventListener("mousedown",m),()=>{document.removeEventListener("mousedown",m),window.clearTimeout(h.current)}},[]);let f=u?us:os;return b("div",{className:"relative",ref:l,children:[b("button",{className:K("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:d,onClick:()=>s(!a),title:"Copy table",type:"button",children:e??b(f,{size:14})}),a?b("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[b("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>p("csv"),title:"Copy table as CSV",type:"button",children:"CSV"}),b("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>p("tsv"),title:"Copy table as TSV",type:"button",children:"TSV"})]}):null]})},f6=({children:e,className:t,onDownload:n,onError:r})=>{let[i,a]=le(!1),s=Le(null),{isAnimating:u}=nt(tt),o=l=>{var h;try{let d=(h=s.current)==null?void 0:h.closest('[data-streamdown="table-wrapper"]'),p=d==null?void 0:d.querySelector("table");if(!p){r==null||r(new Error("Table not found"));return}let f=Cd(p),m=l==="csv"?wd(f):d6(f);cn(`table.${l==="csv"?"csv":"md"}`,m,l==="csv"?"text/csv":"text/markdown"),a(!1),n==null||n(l)}catch(d){r==null||r(d)}};return Ce(()=>{let l=h=>{let d=h.composedPath();s.current&&!d.includes(s.current)&&a(!1)};return document.addEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l)}},[]),b("div",{className:"relative",ref:s,children:[b("button",{className:K("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:u,onClick:()=>a(!i),title:"Download table",type:"button",children:e??b(fi,{size:14})}),i?b("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[b("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>o("csv"),title:"Download table as CSV",type:"button",children:"CSV"}),b("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>o("markdown"),title:"Download table as Markdown",type:"button",children:"Markdown"})]}):null]})},p6=({children:e,className:t,showControls:n,...r})=>b("div",{className:"my-4 flex flex-col space-y-2","data-streamdown":"table-wrapper",children:[n?b("div",{className:"flex items-center justify-end gap-1",children:[b(h6,{}),b(f6,{})]}):null,b("div",{className:"overflow-x-auto",children:b("table",{className:K("w-full border-collapse border border-border",t),"data-streamdown":"table",...r,children:e})})]}),m6=Qo(()=>Promise.resolve().then(()=>require("./code-block-37QAKDTI-8dd1b23f.cjs")).then(e=>({default:e.CodeBlock}))),g6=Qo(()=>Promise.resolve().then(()=>require("./mermaid-4DMBBIKO-b071d9e0.cjs")).then(e=>({default:e.Mermaid}))),b6=/language-([^\s]+)/;function pi(e,t){if(!(e!=null&&e.position||t!=null&&t.position))return!0;if(!(e!=null&&e.position&&t!=null&&t.position))return!1;let n=e.position.start,r=t.position.start,i=e.position.end,a=t.position.end;return(n==null?void 0:n.line)===(r==null?void 0:r.line)&&(n==null?void 0:n.column)===(r==null?void 0:r.column)&&(i==null?void 0:i.line)===(a==null?void 0:a.line)&&(i==null?void 0:i.column)===(a==null?void 0:a.column)}function ye(e,t){return e.className===t.className&&pi(e.node,t.node)}var ba=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,kr=(e,t)=>{if(typeof e=="boolean")return e;let n=e.mermaid;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},cs=fe(({children:e,className:t,node:n,...r})=>b("ol",{className:K("list-inside list-decimal whitespace-normal [li_&]:pl-6",t),"data-streamdown":"ordered-list",...r,children:e}),(e,t)=>ye(e,t));cs.displayName="MarkdownOl";var Sd=fe(({children:e,className:t,node:n,...r})=>b("li",{className:K("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...r,children:e}),(e,t)=>e.className===t.className&&pi(e.node,t.node));Sd.displayName="MarkdownLi";var Id=fe(({children:e,className:t,node:n,...r})=>b("ul",{className:K("list-inside list-disc whitespace-normal [li_&]:pl-6",t),"data-streamdown":"unordered-list",...r,children:e}),(e,t)=>ye(e,t));Id.displayName="MarkdownUl";var Nd=fe(({className:e,node:t,...n})=>b("hr",{className:K("my-6 border-border",e),"data-streamdown":"horizontal-rule",...n}),(e,t)=>ye(e,t));Nd.displayName="MarkdownHr";var vd=fe(({children:e,className:t,node:n,...r})=>b("span",{className:K("font-semibold",t),"data-streamdown":"strong",...r,children:e}),(e,t)=>ye(e,t));vd.displayName="MarkdownStrong";var E6=({children:e,className:t,href:n,node:r,...i})=>{let{linkSafety:a}=nt(tt),[s,u]=le(!1),o=n==="streamdown:incomplete-link",l=De(async f=>{if(!(!(a!=null&&a.enabled&&n)||o)){if(f.preventDefault(),a.onLinkCheck&&await a.onLinkCheck(n)){window.open(n,"_blank","noreferrer");return}u(!0)}},[a,n,o]),h=De(()=>{n&&window.open(n,"_blank","noreferrer")},[n]),d=De(()=>{u(!1)},[]),p={url:n??"",isOpen:s,onClose:d,onConfirm:h};return a!=null&&a.enabled&&n?b($e,{children:[b("button",{className:K("wrap-anywhere appearance-none text-left font-medium text-primary underline",t),"data-incomplete":o,"data-streamdown":"link",onClick:l,type:"button",children:e}),a.renderModal?a.renderModal(p):b(r6,{...p})]}):b("a",{className:K("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":o,"data-streamdown":"link",href:n,rel:"noreferrer",target:"_blank",...i,children:e})},Ld=fe(E6,(e,t)=>ye(e,t)&&e.href===t.href);Ld.displayName="MarkdownA";var Rd=fe(({children:e,className:t,node:n,...r})=>b("h1",{className:K("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...r,children:e}),(e,t)=>ye(e,t));Rd.displayName="MarkdownH1";var Od=fe(({children:e,className:t,node:n,...r})=>b("h2",{className:K("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...r,children:e}),(e,t)=>ye(e,t));Od.displayName="MarkdownH2";var Dd=fe(({children:e,className:t,node:n,...r})=>b("h3",{className:K("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...r,children:e}),(e,t)=>ye(e,t));Dd.displayName="MarkdownH3";var Pd=fe(({children:e,className:t,node:n,...r})=>b("h4",{className:K("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...r,children:e}),(e,t)=>ye(e,t));Pd.displayName="MarkdownH4";var Md=fe(({children:e,className:t,node:n,...r})=>b("h5",{className:K("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...r,children:e}),(e,t)=>ye(e,t));Md.displayName="MarkdownH5";var Bd=fe(({children:e,className:t,node:n,...r})=>b("h6",{className:K("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...r,children:e}),(e,t)=>ye(e,t));Bd.displayName="MarkdownH6";var Fd=fe(({children:e,className:t,node:n,...r})=>{let{controls:i}=nt(tt),a=ba(i,"table");return b(p6,{className:t,showControls:a,...r,children:e})},(e,t)=>ye(e,t));Fd.displayName="MarkdownTable";var Hd=fe(({children:e,className:t,node:n,...r})=>b("thead",{className:K("bg-muted/80",t),"data-streamdown":"table-header",...r,children:e}),(e,t)=>ye(e,t));Hd.displayName="MarkdownThead";var Ud=fe(({children:e,className:t,node:n,...r})=>b("tbody",{className:K("divide-y divide-border bg-muted/40",t),"data-streamdown":"table-body",...r,children:e}),(e,t)=>ye(e,t));Ud.displayName="MarkdownTbody";var zd=fe(({children:e,className:t,node:n,...r})=>b("tr",{className:K("border-border border-b",t),"data-streamdown":"table-row",...r,children:e}),(e,t)=>ye(e,t));zd.displayName="MarkdownTr";var $d=fe(({children:e,className:t,node:n,...r})=>b("th",{className:K("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...r,children:e}),(e,t)=>ye(e,t));$d.displayName="MarkdownTh";var Yd=fe(({children:e,className:t,node:n,...r})=>b("td",{className:K("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...r,children:e}),(e,t)=>ye(e,t));Yd.displayName="MarkdownTd";var qd=fe(({children:e,className:t,node:n,...r})=>b("blockquote",{className:K("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...r,children:e}),(e,t)=>ye(e,t));qd.displayName="MarkdownBlockquote";var jd=fe(({children:e,className:t,node:n,...r})=>b("sup",{className:K("text-sm",t),"data-streamdown":"superscript",...r,children:e}),(e,t)=>ye(e,t));jd.displayName="MarkdownSup";var Vd=fe(({children:e,className:t,node:n,...r})=>b("sub",{className:K("text-sm",t),"data-streamdown":"subscript",...r,children:e}),(e,t)=>ye(e,t));Vd.displayName="MarkdownSub";var Wd=fe(({children:e,className:t,node:n,...r})=>{if("data-footnotes"in r){let i=s=>{var u,o;if(!an(s))return!1;let l=Array.isArray(s.props.children)?s.props.children:[s.props.children],h=!1,d=!1;for(let p of l)if(p){if(typeof p=="string")p.trim()!==""&&(h=!0);else if(an(p))if(((u=p.props)==null?void 0:u["data-footnote-backref"])!==void 0)d=!0;else{let f=Array.isArray(p.props.children)?p.props.children:[p.props.children];for(let m of f){if(typeof m=="string"&&m.trim()!==""){h=!0;break}if(an(m)&&((o=m.props)==null?void 0:o["data-footnote-backref"])===void 0){h=!0;break}}}}return d&&!h},a=Array.isArray(e)?e.map(s=>{if(!an(s))return s;if(s.type===cs){let u=(Array.isArray(s.props.children)?s.props.children:[s.props.children]).filter(o=>!i(o));return u.length===0?null:{...s,props:{...s.props,children:u}}}return s}):e;return(Array.isArray(a)?a.some(s=>s!==null):a!==null)?b("section",{className:t,...r,children:a}):null}return b("section",{className:t,...r,children:e})},(e,t)=>ye(e,t));Wd.displayName="MarkdownSection";var T6=({node:e,className:t,children:n,...r})=>{var i,a,s;let u=((i=e==null?void 0:e.position)==null?void 0:i.start.line)===((a=e==null?void 0:e.position)==null?void 0:a.end.line),{mermaid:o,controls:l}=nt(tt),h=ls();if(u)return b("code",{className:K("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...r,children:n});let d=t==null?void 0:t.match(b6),p=(s=d==null?void 0:d.at(1))!=null?s:"",f="";if(an(n)&&n.props&&typeof n.props=="object"&&"children"in n.props&&typeof n.props.children=="string"?f=n.props.children:typeof n=="string"&&(f=n),p==="mermaid"&&h){let T=ba(l,"mermaid"),C=kr(l,"download"),y=kr(l,"copy"),I=kr(l,"fullscreen"),S=kr(l,"panZoom"),D=T&&(C||y||I);return b(Fn,{fallback:b(To,{}),children:b("div",{className:K("group relative my-4 h-auto rounded-xl border p-4",t),"data-streamdown":"mermaid-block",children:[D?b("div",{className:"flex items-center justify-end gap-2",children:[C?b(s6,{chart:f,config:o==null?void 0:o.config}):null,y?b(bo,{code:f}):null,I?b(l6,{chart:f,config:o==null?void 0:o.config}):null]}):null,b(g6,{chart:f,config:o==null?void 0:o.config,showControls:S})]})})}let m=ba(l,"code");return b(Fn,{fallback:b(To,{}),children:b(m6,{className:K("overflow-x-auto border-border border-t",t),code:f,language:p,children:m?b($e,{children:[b(Z_,{code:f,language:p}),b(bo,{})]}):null})})},Gd=fe(T6,(e,t)=>e.className===t.className&&pi(e.node,t.node));Gd.displayName="MarkdownCode";var Qd=fe(e6,(e,t)=>e.className===t.className&&pi(e.node,t.node));Qd.displayName="MarkdownImg";var Kd=fe(({children:e,className:t,node:n,...r})=>{var i,a;let s=(Array.isArray(e)?e:[e]).filter(u=>u!=null&&u!=="");if(s.length===1&&an(s[0])){let u=s[0].props.node,o=u==null?void 0:u.tagName;if(o==="img")return b($e,{children:e});if(o==="code"&&((i=u==null?void 0:u.position)==null?void 0:i.start.line)!==((a=u==null?void 0:u.position)==null?void 0:a.end.line))return b($e,{children:e})}return b("p",{className:t,...r,children:e})},(e,t)=>ye(e,t));Kd.displayName="MarkdownParagraph";var k6={ol:cs,li:Sd,ul:Id,hr:Nd,strong:vd,a:Ld,h1:Rd,h2:Od,h3:Dd,h4:Pd,h5:Md,h6:Bd,table:Fd,thead:Hd,tbody:Ud,tr:zd,th:$d,td:Yd,blockquote:qd,code:Gd,img:Qd,pre:({children:e})=>e,sup:jd,sub:Vd,p:Kd,section:Wd},ko=[],_o={allowDangerousHtml:!0},_r=new WeakMap,_6=class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let n=e.rehypePlugins,r=e.remarkPlugins,i=e.remarkRehypeOptions;if(!(n||r||i)){let h="default";return this.keyCache.set(e,h),h}let a=h=>{if(!h||h.length===0)return"";let d="";for(let p=0;p<h.length;p+=1){let f=h[p];if(p>0&&(d+=","),Array.isArray(f)){let[m,T]=f;if(typeof m=="function"){let C=_r.get(m);C||(C=m.name,_r.set(m,C)),d+=C}else d+=String(m);d+=":",d+=JSON.stringify(T)}else if(typeof f=="function"){let m=_r.get(f);m||(m=f.name,_r.set(f,m)),d+=m}else d+=String(f)}return d},s=a(n),u=a(r),o=i?JSON.stringify(i):"",l=`${u}::${s}::${o}`;return this.keyCache.set(e,l),l}get(e){let t=this.generateCacheKey(e),n=this.cache.get(t);return n&&(this.cache.delete(t),this.cache.set(t,n)),n}set(e,t){let n=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let r=this.cache.keys().next().value;r&&this.cache.delete(r)}this.cache.set(n,t)}clear(){this.cache.clear()}},xo=new _6,Xd=e=>{let t=x6(e),n=e.children||"";return A6(t.runSync(t.parse(n),n),e)},x6=e=>{let t=xo.get(e);if(t)return t;let n=y6(e);return xo.set(e,n),n},y6=e=>{let t=e.rehypePlugins||ko,n=e.remarkPlugins||ko,r=e.remarkRehypeOptions?{..._o,...e.remarkRehypeOptions}:_o;return n_().use(nk).use(n).use(Fk,r).use(t)},A6=(e,t)=>cT(e,{Fragment:$e,components:t.components,ignoreInvalidStyle:!0,jsx:b,jsxs:b,passKeys:!0,passNode:!0}),C6=/\[\^[^\]\s]{1,200}\](?!:)/,w6=/\[\^[^\]\s]{1,200}\]:/,S6=/<\/(\w+)>/,I6=/<(\w+)[\s>]/,zi=e=>{let t=0;for(;t<e.length&&(e[t]===" "||e[t]===" "||e[t]===`
112
- `||e[t]==="\r");)t+=1;return t+1<e.length&&e[t]==="$"&&e[t+1]==="$"},N6=e=>{let t=e.length-1;for(;t>=0&&(e[t]===" "||e[t]===" "||e[t]===`
113
- `||e[t]==="\r");)t-=1;return t>=1&&e[t]==="$"&&e[t-1]==="$"},$i=e=>{let t=0;for(let n=0;n<e.length-1;n+=1)e[n]==="$"&&e[n+1]==="$"&&(t+=1,n+=1);return t},v6=e=>{let t=C6.test(e),n=w6.test(e);if(t||n)return[e];let r=at.lex(e,{gfm:!0}),i=[],a=[];for(let s of r){let u=s.raw,o=i.length;if(a.length>0){if(i[o-1]+=u,s.type==="html"){let l=u.match(S6);if(l){let h=l[1];a.at(-1)===h&&a.pop()}}continue}if(s.type==="html"&&s.block){let l=u.match(I6);if(l){let h=l[1];u.includes(`</${h}>`)||a.push(h)}}if(u.trim()==="$$"&&o>0){let l=i[o-1],h=zi(l),d=$i(l);if(h&&d%2===1){i[o-1]=l+u;continue}}if(o>0&&N6(u)){let l=i[o-1],h=zi(l),d=$i(l),p=$i(u);if(h&&d%2===1&&!zi(u)&&p===1){i[o-1]=l+u;continue}}i.push(u)}return i},L6={raw:q1,sanitize:[em,{}],harden:[mh,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},R6={gfm:[D2,{}]},O6=Object.values(L6),D6=Object.values(R6),P6={block:" ▋",circle:" ●"},M6={shikiTheme:["github-light","github-dark"],controls:!0,isAnimating:!1,mode:"streaming",mermaid:void 0,linkSafety:{enabled:!0}},tt=ka(M6),Zd=fe(({content:e,shouldParseIncompleteMarkdown:t,index:n,...r})=>b(Xd,{...r,children:e}),(e,t)=>{if(e.content!==t.content||e.index!==t.index)return!1;if(e.components!==t.components){let n=Object.keys(e.components||{}),r=Object.keys(t.components||{});if(n.length!==r.length||n.some(i=>{var a,s;return((a=e.components)==null?void 0:a[i])!==((s=t.components)==null?void 0:s[i])}))return!1}return!(e.rehypePlugins!==t.rehypePlugins||e.remarkPlugins!==t.remarkPlugins)});Zd.displayName="Block";var B6=["github-light","github-dark"],Jd=fe(({children:e,mode:t="streaming",parseIncompleteMarkdown:n=!0,components:r,rehypePlugins:i=O6,remarkPlugins:a=D6,className:s,shikiTheme:u=B6,mermaid:o,controls:l=!0,isAnimating:h=!1,BlockComponent:d=Zd,parseMarkdownIntoBlocksFn:p=v6,caret:f,plugins:m,remend:T,linkSafety:C={enabled:!0},...y})=>{let I=T0(),[S,D]=oh(),R=ve(()=>typeof e!="string"?"":t==="streaming"&&n?FE(e,T):e,[e,t,n,T]),x=ve(()=>p(R),[R,p]),[F,P]=le(x);Ce(()=>{t==="streaming"?D(()=>{P(x)}):P(x)},[x,t]);let U=t==="streaming"?F:x,N=ve(()=>U.map((Z,J)=>`${I}-${J}`),[U.length,I]),Y=ve(()=>{var Z,J;return{shikiTheme:(J=(Z=m==null?void 0:m.code)==null?void 0:Z.getThemes())!=null?J:u,controls:l,isAnimating:h,mode:t,mermaid:o,linkSafety:C}},[u,l,h,t,o,C,m==null?void 0:m.code]),B=ve(()=>({...k6,...r}),[r]),Q=ve(()=>{let Z=[];return m!=null&&m.cjk&&(Z=[...Z,...m.cjk.remarkPluginsBefore]),Z=[...Z,...a],m!=null&&m.cjk&&(Z=[...Z,...m.cjk.remarkPluginsAfter]),m!=null&&m.math&&(Z=[...Z,m.math.remarkPlugin]),Z},[a,m==null?void 0:m.math,m==null?void 0:m.cjk]),ie=ve(()=>m!=null&&m.math?[...i,m.math.rehypePlugin]:i,[i,m==null?void 0:m.math]),X=ve(()=>f&&h?{"--streamdown-caret":`"${P6[f]}"`}:void 0,[f,h]);return t==="static"?b(ga.Provider,{value:m??null,children:b(tt.Provider,{value:Y,children:b("div",{className:K("space-y-4 whitespace-normal *:first:mt-0 *:last:mb-0",s),children:b(Xd,{components:B,rehypePlugins:ie,remarkPlugins:Q,...y,children:e})})})}):b(ga.Provider,{value:m??null,children:b(tt.Provider,{value:Y,children:b("div",{className:K("space-y-4 whitespace-normal *:first:mt-0 *:last:mb-0",f?"*:last:after:inline *:last:after:align-baseline *:last:after:content-(--streamdown-caret)":null,s),style:X,children:[U.length===0&&f&&h&&b("span",{}),U.map((Z,J)=>b(d,{components:B,content:Z,index:J,rehypePlugins:ie,remarkPlugins:Q,shouldParseIncompleteMarkdown:n,...y},N[J]))]})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.mode===t.mode&&e.plugins===t.plugins&&e.className===t.className&&e.linkSafety===t.linkSafety);Jd.displayName="Streamdown";var F6=({children:e,className:t,minZoom:n=.5,maxZoom:r=3,zoomStep:i=.1,showControls:a=!0,initialZoom:s=1,fullscreen:u=!1})=>{let o=Le(null),l=Le(null),[h,d]=le(s),[p,f]=le({x:0,y:0}),[m,T]=le(!1),[C,y]=le({x:0,y:0}),[I,S]=le({x:0,y:0}),D=De(B=>{d(Q=>Math.max(n,Math.min(r,Q+B)))},[n,r]),R=De(()=>{D(i)},[D,i]),x=De(()=>{D(-i)},[D,i]),F=De(()=>{d(s),f({x:0,y:0})},[s]),P=De(B=>{B.preventDefault();let Q=B.deltaY>0?-i:i;D(Q)},[D,i]),U=De(B=>{if(B.button!==0||B.isPrimary===!1)return;T(!0),y({x:B.clientX,y:B.clientY}),S(p);let Q=B.currentTarget;Q instanceof HTMLElement&&Q.setPointerCapture(B.pointerId)},[p]),N=De(B=>{if(!m)return;B.preventDefault();let Q=B.clientX-C.x,ie=B.clientY-C.y;f({x:I.x+Q,y:I.y+ie})},[m,C,I]),Y=De(B=>{T(!1);let Q=B.currentTarget;Q instanceof HTMLElement&&Q.releasePointerCapture(B.pointerId)},[]);return Ce(()=>{let B=o.current;if(B)return B.addEventListener("wheel",P,{passive:!1}),()=>{B.removeEventListener("wheel",P)}},[P]),Ce(()=>{let B=l.current;if(B&&m)return document.body.style.userSelect="none",B.addEventListener("pointermove",N,{passive:!1}),B.addEventListener("pointerup",Y),B.addEventListener("pointercancel",Y),()=>{document.body.style.userSelect="",B.removeEventListener("pointermove",N),B.removeEventListener("pointerup",Y),B.removeEventListener("pointercancel",Y)}},[m,N,Y]),b("div",{className:K("relative flex flex-col",u?"h-full w-full":"min-h-28 w-full",t),ref:o,style:{cursor:m?"grabbing":"grab"},children:[a?b("div",{className:K("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/90 p-1 shadow-sm backdrop-blur-sm",u?"bottom-4 left-4":"bottom-2 left-2"),children:[b("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:h>=r,onClick:R,title:"Zoom in",type:"button",children:b(K_,{size:16})}),b("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:h<=n,onClick:x,title:"Zoom out",type:"button",children:b(X_,{size:16})}),b("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",onClick:F,title:"Reset zoom and pan",type:"button",children:b(Q_,{size:16})})]}):null,b("div",{className:K("flex-1 origin-center transition-transform duration-150 ease-out",u?"flex h-full w-full items-center justify-center":"flex w-full items-center justify-center"),onPointerDown:U,ref:l,role:"application",style:{transform:`translate(${p.x}px, ${p.y}px) scale(${h})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},e0=({chart:e,className:t,config:n,fullscreen:r=!1,showControls:i=!0})=>{let[a,s]=le(null),[u,o]=le(!1),[l,h]=le(""),[d,p]=le(""),[f,m]=le(0),{mermaid:T}=nt(tt),C=ls(),y=T==null?void 0:T.errorComponent,{shouldRender:I,containerRef:S}=V_({immediate:r});if(Ce(()=>{if(I){if(!C){s("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");return}(async()=>{try{s(null),o(!0);let R=C.getMermaid(n),x=e.split("").reduce((U,N)=>(U<<5)-U+N.charCodeAt(0)|0,0),F=`mermaid-${Math.abs(x)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:P}=await R.render(F,e);h(P),p(P)}catch(R){if(!(d||l)){let x=R instanceof Error?R.message:"Failed to render Mermaid chart";s(x)}}finally{o(!1)}})()}},[e,n,f,I,C]),!(I||l||d))return b("div",{className:K("my-4 min-h-[200px]",t),ref:S});if(u&&!l&&!d)return b("div",{className:K("my-4 flex justify-center p-4",t),ref:S,children:b("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[b("div",{className:"h-4 w-4 animate-spin rounded-full border-current border-b-2"}),b("span",{className:"text-sm",children:"Loading diagram..."})]})});if(a&&!l&&!d)return y?b("div",{ref:S,children:b(y,{chart:e,error:a,retry:()=>m(x=>x+1)})}):b("div",{className:K("rounded-lg border border-red-200 bg-red-50 p-4",t),ref:S,children:[b("p",{className:"font-mono text-red-700 text-sm",children:["Mermaid Error: ",a]}),b("details",{className:"mt-2",children:[b("summary",{className:"cursor-pointer text-red-600 text-xs",children:"Show Code"}),b("pre",{className:"mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs",children:e})]})]});let D=l||d;return b("div",{className:K("size-full",t),"data-streamdown":"mermaid",ref:S,children:b(F6,{className:K(r?"size-full overflow-hidden":"my-4 overflow-hidden",t),fullscreen:r,maxZoom:3,minZoom:.5,showControls:i,zoomStep:.1,children:b("div",{"aria-label":"Mermaid chart",className:K("flex justify-center",r?"size-full items-center":null),dangerouslySetInnerHTML:{__html:D},role:"img"})})})};function H6({href:e,children:t}){return b("a",{href:e,target:"_blank",rel:"noopener noreferrer",class:"kin-link",children:t})}const U6={a:H6};function z6({content:e,isStreaming:t=!1}){return e?b("div",{class:"kin-markdown",children:b(Jd,{isAnimating:t,mode:t?"streaming":"static",components:U6,children:e})}):null}function $6(){const e=Ti(()=>$.messages.value),t=Ti(()=>$.isStreaming.value),n=Ti(()=>$.connectionState.value),r=Le(null),i=()=>{r.current&&(r.current.scrollTop=r.current.scrollHeight)};if(Ce(()=>{requestAnimationFrame(i)},[]),Ce(()=>{i()},[e.value,t.value]),n.value==="connecting"&&e.value.length===0)return b("div",{class:"kin-messages kin-messages-empty",role:"log","aria-label":"Chat messages","aria-live":"polite",children:b("div",{class:"kin-empty-state",children:b("div",{class:"kin-loading-dots","aria-label":"Loading conversation",children:[b("span",{}),b("span",{}),b("span",{})]})})});if(e.value.length===0&&!t.value)return b("div",{class:"kin-messages kin-messages-empty",role:"log","aria-label":"Chat messages","aria-live":"polite",children:b("div",{class:"kin-empty-state",children:[b("div",{class:"kin-empty-icon","aria-hidden":"true",children:b(jo,{})}),b("p",{class:"kin-empty-text",children:"Hi there, you're speaking with Kin AI Agent."}),b("p",{class:"kin-empty-subtext",children:"How can I help you today?"})]})});const s=e.value[e.value.length-1],u=t.value&&(s==null?void 0:s.role)==="assistant"&&!s.content.trim();return b("div",{class:"kin-messages",ref:r,role:"log","aria-label":"Chat messages","aria-live":"polite","aria-relevant":"additions",children:[b("div",{class:"kin-divider",role:"separator","aria-hidden":"true",children:b("span",{children:"New"})}),e.value.map((o,l)=>{if(o.role==="assistant"&&!o.content.trim())return null;const h=l===e.value.length-1,d=t.value&&h&&o.role==="assistant";return b(q6,{message:o,isStreaming:d},o.id)}),u&&b(Y6,{})]})}function Y6(){return b("div",{class:"kin-typing-container",role:"status","aria-label":"Kin is typing",children:[b("div",{class:"kin-typing","aria-hidden":"true",children:[b("span",{}),b("span",{}),b("span",{})]}),b("div",{class:"kin-message-footer","aria-hidden":"true",children:[b("span",{children:"Kin"}),b("span",{children:"•"}),b("span",{children:"AI Agent"}),b("span",{children:"•"}),b("span",{children:"typing..."})]}),b("span",{class:"kin-sr-only",children:"Kin AI Agent is typing a response"})]})}function q6({message:e,isStreaming:t=!1}){const n=e.role==="user",r=e.role==="system",i=n?"You":r?"System":"Kin AI Agent";return r?b("div",{class:"kin-system-message",role:"status","aria-label":"System notification",children:b("span",{children:e.content})}):b("article",{class:`kin-message ${n?"kin-message-user":"kin-message-assistant"}`,"aria-label":`Message from ${i}`,children:[b("div",{class:"kin-bubble",children:n?b("p",{children:e.content}):b(z6,{content:e.content,isStreaming:t})}),!n&&b("div",{class:"kin-message-footer","aria-hidden":"true",children:[b("span",{children:"Kin"}),b("span",{children:"•"}),b("span",{children:"AI Agent"}),b("span",{children:"•"}),b("span",{children:t?"typing...":j6(e.timestamp)})]})]})}function j6(e){const n=new Date().getTime()-e.getTime();return n<6e4?"Just now":n<36e5?`${Math.floor(n/6e4)}m ago`:e.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function V6({onClose:e,onClearData:t,onSkipToInput:n}){const[r,i]=le(!1),a=u=>{u.key==="Escape"&&(u.preventDefault(),r?i(!1):e())},s=()=>{r?(t(),i(!1)):i(!0)};return b("div",{class:"kin-panel",role:"dialog","aria-modal":"true","aria-labelledby":"kin-panel-title",onKeyDown:a,children:[b("button",{type:"button",class:"kin-skip-link",onClick:n,children:"Skip to chat input"}),b("header",{class:"kin-header",children:[b("h2",{id:"kin-panel-title",class:"kin-header-title",children:"Kin Assistant"}),b("div",{class:"kin-header-actions",children:[b("button",{class:`kin-icon-btn kin-clear-btn ${r?"kin-clear-confirm":""}`,"aria-label":r?"Confirm clear data":"Clear my data",title:r?"Click again to confirm":"Clear my data",type:"button",onClick:s,onBlur:()=>i(!1),children:r?"✓":b(V0,{})}),b("button",{class:"kin-icon-btn","aria-label":"Close chat",type:"button",onClick:e,children:b(j0,{})})]})]}),b($6,{})]})}function W6({starterPrompts:e,onSendMessage:t,onOpen:n,onClose:r,onConnect:i,onClearData:a,onUploadFile:s,embedded:u=!1}){const[o,l]=le(u||$.isOpen.value),h=Le(null),d=Le(null),p=Le(null);Ce(()=>nr(()=>{l(u||$.isOpen.value)}),[u]),Ce(()=>{u&&!$.isOpen.value&&n()},[u,n]),Ce(()=>{if(!o||u)return;const C=window.matchMedia("(max-width: 640px)");let y=0,I="",S=!1;const D=()=>{S||(y=window.scrollY,I=document.body.style.overflow,document.body.style.overflow="hidden",S=!0)},R=()=>{S&&(document.body.style.overflow=I,window.scrollTo(0,y),S=!1)},x=()=>{C.matches?D():R()};return x(),C.addEventListener("change",x),()=>{C.removeEventListener("change",x),R()}},[o,u]);const f=De(()=>{d.current=document.activeElement,n()},[n]),m=De(()=>{var C;r(),(C=d.current)==null||C.focus()},[r]),T=De(()=>{var C;(C=p.current)==null||C.focus()},[]);return Ce(()=>{if(!o)return;const C=()=>{var S;let I=document.activeElement;for(;(S=I==null?void 0:I.shadowRoot)!=null&&S.activeElement;)I=I.shadowRoot.activeElement;return I},y=I=>{if(I.key!=="Tab")return;const S=h.current;if(!S)return;const D=S.querySelectorAll('button:not([disabled]), input:not([disabled]), [tabindex]:not([tabindex="-1"])');if(D.length===0)return;const R=D[0],x=D[D.length-1];if(!R||!x)return;const F=C();I.shiftKey&&F===R?(I.preventDefault(),x.focus()):!I.shiftKey&&F===x&&(I.preventDefault(),R.focus())};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[o]),b("div",{ref:h,class:"kin-widget",role:"region","aria-label":"Kin AI Chat",children:[b("div",{class:"kin-sr-only",role:"status","aria-live":"polite","aria-atomic":"true",children:o?"Chat panel opened":""}),o&&b(V6,{onClose:m,onClearData:a,onSkipToInput:T}),b(Q0,{isOpen:o,starterPrompts:e,onOpen:f,onClose:m,onSendMessage:t,onConnect:i,onUploadFile:s,inputRef:p})]})}const t0=["gray","mauve","slate","sage","olive","sand","tomato","red","ruby","crimson","pink","plum","purple","violet","iris","indigo","blue","cyan","teal","jade","green","grass","brown","orange","sky","mint","lime","yellow","amber","bronze","gold"],n0={gray:[[.178,0,null],[.213,0,null],[.254,0,null],[.283,0,null],[.313,0,null],[.349,0,null],[.402,0,null],[.488,0,null],[.538,0,null],[.584,0,null],[.77,0,null],[.949,0,null]],mauve:[[.18,.004,307.8],[.215,.004,307.8],[.255,.006,306.5],[.284,.008,307.8],[.314,.009,306.9],[.35,.01,304],[.402,.012,304.4],[.492,.016,300.7],[.54,.017,294],[.586,.017,295.4],[.77,.014,296.6],[.949,.003,286.3]],slate:[[.179,.004,286],[.213,.004,264.4],[.253,.006,261.2],[.283,.007,259.5],[.311,.008,259.7],[.346,.01,256.5],[.398,.012,253.8],[.49,.016,247.6],[.537,.015,261.1],[.583,.014,263.3],[.768,.01,261.3],[.949,.003,264.6]],sage:[[.179,.004,167.4],[.211,.004,160.2],[.251,.004,164.2],[.281,.005,164.9],[.311,.005,167.4],[.347,.006,167.4],[.399,.008,167.4],[.488,.009,169.8],[.533,.018,170.8],[.579,.016,170.5],[.766,.01,167.5],[.947,.002,167.7]],olive:[[.18,.004,128.3],[.212,.004,128.3],[.252,.005,129],[.281,.006,131.4],[.31,.007,131.4],[.346,.008,134.4],[.399,.01,136],[.488,.012,140.8],[.535,.018,139.6],[.581,.016,140.1],[.766,.013,139.5],[.947,.003,144.8]],sand:[[.178,.002,106.6],[.213,.002,106.6],[.253,.003,106.6],[.283,.004,99],[.312,.004,100.7],[.349,.006,102.2],[.401,.007,96.1],[.49,.01,91.7],[.535,.011,94.1],[.581,.011,94],[.767,.009,97.4],[.948,.003,106.4]],tomato:[[.187,.012,19.6],[.208,.017,32],[.254,.054,26.9],[.291,.087,28.2],[.331,.097,28.7],[.38,.099,30],[.447,.107,31.5],[.538,.13,32.9],[.627,.194,33.3],[.665,.179,34.1],[.784,.164,36],[.899,.047,31.1]],red:[[.188,.013,19.4],[.205,.022,14.7],[.25,.064,13.1],[.289,.096,14.3],[.332,.107,15.5],[.383,.111,16.9],[.451,.121,18.9],[.544,.147,21.4],[.625,.193,23],[.665,.177,23.1],[.784,.162,22.3],[.902,.053,6.14]],ruby:[[.189,.014,2.9],[.208,.016,5.29],[.254,.06,6.54],[.292,.089,5.5],[.333,.1,6.4],[.382,.105,7.59],[.448,.117,9.02],[.544,.145,11.1],[.628,.195,13.2],[.664,.179,13.7],[.786,.161,17],[.905,.053,355.8]],crimson:[[.189,.014,354.2],[.207,.022,352.9],[.256,.059,353.9],[.293,.094,354.1],[.333,.104,354.7],[.382,.109,355.5],[.45,.12,356.7],[.542,.148,358.3],[.634,.213,1.3],[.664,.197,1.95],[.787,.167,6.72],[.909,.054,346.7]],pink:[[.191,.017,334.9],[.207,.031,338.2],[.261,.061,337.5],[.299,.098,340.1],[.338,.104,340.6],[.389,.107,341.6],[.459,.119,342.6],[.545,.145,344.1],[.617,.208,346.1],[.65,.197,346.2],[.789,.19,350.7],[.905,.059,343.2]],plum:[[.19,.017,327],[.21,.031,327.7],[.266,.062,326.7],[.307,.088,325.3],[.343,.095,324.6],[.389,.097,324.2],[.456,.106,323.4],[.545,.128,322.2],[.579,.188,322.1],[.616,.182,322.1],[.786,.154,322.1],[.906,.055,325.8]],purple:[[.192,.022,316],[.213,.031,314.3],[.266,.062,312],[.308,.083,310.7],[.344,.091,310.1],[.388,.097,309.7],[.45,.108,308.7],[.541,.133,307.1],[.555,.183,305.9],[.596,.177,306.3],[.785,.156,307.9],[.911,.049,310.9]],violet:[[.191,.026,290.5],[.211,.032,299.5],[.271,.066,293.9],[.312,.093,291.7],[.348,.099,291.4],[.39,.102,291.8],[.445,.111,291.6],[.516,.131,290.2],[.542,.179,288.1],[.588,.17,289.7],[.778,.137,293.6],[.912,.045,292.6]],iris:[[.193,.022,284.2],[.209,.029,286.5],[.273,.069,278.6],[.319,.102,276.1],[.358,.109,277.4],[.399,.112,279.6],[.448,.12,280.8],[.507,.138,281.1],[.54,.184,278.3],[.587,.172,281.2],[.776,.131,286.6],[.914,.042,287]],indigo:[[.191,.025,276.7],[.209,.03,276],[.272,.069,267.8],[.319,.093,267],[.362,.105,267.5],[.404,.111,268.3],[.45,.12,268.8],[.503,.137,268.4],[.544,.191,267.1],[.59,.176,269.2],[.777,.123,273.3],[.911,.043,270]],blue:[[.193,.026,256.8],[.213,.03,258.8],[.274,.067,254],[.317,.1,248.3],[.365,.108,249.7],[.416,.112,251.7],[.475,.121,252.8],[.541,.14,253.2],[.649,.193,251.8],[.689,.17,251.5],[.768,.135,248.8],[.907,.051,238.3]],cyan:[[.191,.017,219.9],[.214,.018,225.4],[.272,.044,222.5],[.315,.063,222.1],[.362,.07,221.5],[.414,.075,221.7],[.478,.083,221.4],[.558,.098,220.7],[.661,.122,221.5],[.698,.12,219.1],[.786,.115,213.4],[.909,.057,211.7]],teal:[[.189,.012,184.5],[.217,.017,189.3],[.274,.038,186.3],[.317,.055,187],[.363,.06,186.5],[.414,.065,185.4],[.473,.074,184.5],[.539,.087,183.5],[.649,.113,182],[.687,.123,180.3],[.789,.147,175.7],[.905,.072,175.3]],jade:[[.188,.014,166.3],[.216,.018,166.1],[.272,.042,166.8],[.316,.057,168],[.362,.064,168.5],[.411,.068,169.7],[.468,.075,170.6],[.537,.088,171.8],[.642,.115,170.8],[.678,.125,169.9],[.785,.156,167.1],[.903,.078,167]],green:[[.189,.013,163.3],[.213,.016,162.2],[.271,.039,162.7],[.318,.057,161.5],[.365,.066,161.1],[.413,.073,160.7],[.467,.083,159.9],[.527,.096,159.2],[.64,.133,157.8],[.676,.141,157.6],[.78,.166,157.2],[.905,.083,158.3]],grass:[[.188,.014,155.8],[.211,.014,151.5],[.267,.03,150.7],[.319,.052,150.4],[.367,.062,149.9],[.416,.072,149.3],[.468,.084,148.9],[.524,.097,148.2],[.652,.147,147.4],[.69,.145,147.6],[.78,.142,148.5],[.911,.078,144.9]],brown:[[.178,.005,81.5],[.213,.007,51.6],[.254,.013,53.5],[.288,.018,55.4],[.325,.024,55.9],[.37,.032,57.7],[.429,.041,59.8],[.509,.053,62.2],[.633,.078,60.8],[.674,.075,61.5],[.798,.063,62.5],[.918,.036,75.7]],bronze:[[.181,.005,41.6],[.215,.005,41.5],[.255,.008,42.7],[.291,.01,45.5],[.329,.013,43.3],[.374,.016,44.3],[.43,.02,44.8],[.499,.024,45.2],[.627,.046,44.3],[.669,.045,44.3],[.792,.043,44.5],[.915,.017,50.3]],gold:[[.182,.002,106.6],[.216,.006,92.5],[.255,.008,88.3],[.291,.01,86.8],[.329,.011,83.7],[.374,.014,82.4],[.429,.016,80.9],[.498,.02,79.5],[.621,.049,78.1],[.662,.047,77.2],[.794,.041,77.2],[.915,.014,77.4]],sky:[[.19,.024,257.1],[.216,.029,258.5],[.271,.054,251.9],[.322,.07,247.8],[.372,.079,245.8],[.427,.087,243.6],[.488,.098,240.7],[.557,.114,237.2],[.861,.103,217.8],[.908,.073,214.9],[.793,.099,231.7],[.934,.053,214.4]],mint:[[.188,.012,192.3],[.21,.017,196.6],[.269,.039,192.5],[.313,.058,191.6],[.359,.063,188.9],[.41,.067,186.3],[.471,.073,183.4],[.54,.085,179.6],[.87,.1,178],[.916,.08,179.4],[.795,.118,176.4],[.93,.057,168.5]],lime:[[.18,.014,120.3],[.208,.019,129],[.266,.034,132.2],[.317,.047,131.8],[.363,.058,131.6],[.412,.069,131.4],[.464,.08,131.2],[.524,.095,130.9],[.888,.175,126.1],[.942,.175,123.7],[.868,.156,124.8],[.946,.082,122.6]],yellow:[[.181,.013,86],[.209,.017,92.1],[.259,.047,90.3],[.293,.069,94.2],[.333,.079,94.6],[.384,.077,93.3],[.452,.081,91.5],[.535,.095,89.9],[.927,.209,102.1],[.971,.182,109.4],[.9,.166,101.6],[.941,.075,101]],amber:[[.184,.013,77.3],[.212,.018,78.7],[.258,.044,74.6],[.296,.071,76.2],[.337,.081,76.4],[.387,.078,75.1],[.453,.082,74.5],[.536,.096,73.6],[.856,.178,81.4],[.902,.206,97],[.871,.175,85.1],[.935,.072,86]],orange:[[.186,.012,53.7],[.209,.019,67.4],[.257,.045,59.5],[.293,.08,58.6],[.335,.087,58.1],[.386,.087,55.2],[.453,.095,53.1],[.541,.116,49.7],[.689,.191,44.8],[.741,.199,46.3],[.799,.163,50.8],[.925,.052,66.2]]},r0={gray:[[.991,0,null],[.981,0,null],[.953,0,null],[.93,0,null],[.908,0,null],[.884,0,null],[.851,0,null],[.791,0,null],[.643,0,null],[.609,0,null],[.503,0,null],[.243,0,null]],mauve:[[.992,.002,321.1],[.983,.003,311.2],[.956,.006,314.2],[.932,.008,310],[.909,.01,306.6],[.886,.012,304],[.854,.014,300.6],[.794,.019,293.5],[.646,.019,292.6],[.611,.018,293.1],[.505,.016,296.1],[.245,.013,298]],slate:[[.991,.001,286.4],[.982,.003,286.3],[.956,.004,281.9],[.931,.006,283],[.91,.008,283.6],[.888,.009,281.8],[.853,.012,280.8],[.794,.016,278.1],[.646,.016,277.8],[.61,.016,273.2],[.503,.014,263.4],[.241,.01,249.5]],sage:[[.992,.003,160.4],[.981,.003,171.2],[.955,.003,170.4],[.931,.003,170.4],[.909,.004,167.7],[.885,.004,167.7],[.851,.004,169.9],[.792,.005,169.5],[.639,.01,172.4],[.605,.01,172.8],[.501,.008,175.9],[.24,.012,166.8]],olive:[[.993,.002,149.1],[.983,.003,144.8],[.956,.004,141.1],[.932,.004,142.1],[.909,.005,139.3],[.886,.006,141.1],[.852,.006,141.1],[.792,.007,140.6],[.64,.011,136.5],[.605,.012,136.5],[.5,.011,139.9],[.242,.011,138.2]],sand:[[.994,.001,106.4],[.982,.001,106.4],[.956,.002,97.6],[.932,.003,100.6],[.91,.004,95.9],[.886,.005,98.3],[.853,.006,96.6],[.792,.008,96.5],[.641,.01,106.7],[.606,.01,106.7],[.498,.008,106.7],[.243,.008,96.3]],tomato:[[.994,.003,22.8],[.984,.007,31],[.954,.022,30.9],[.926,.047,31.8],[.892,.063,31.5],[.852,.077,32],[.803,.094,32.2],[.741,.118,32.1],[.627,.194,33.3],[.604,.195,33.3],[.567,.198,32.8],[.346,.08,30.5]],red:[[.994,.003,22.8],[.983,.008,16],[.956,.021,16.2],[.928,.047,16.7],[.896,.062,17.3],[.857,.075,17.9],[.807,.089,18.4],[.745,.113,19.1],[.625,.193,23],[.6,.195,23.9],[.557,.198,25.1],[.339,.109,16.7]],ruby:[[.994,.003,356.3],[.983,.008,8.41],[.954,.022,8.56],[.928,.042,8.46],[.896,.055,8.16],[.858,.066,7.84],[.81,.08,7.49],[.749,.101,6.86],[.628,.195,13.2],[.601,.196,13.4],[.549,.199,13.9],[.341,.11,10]],crimson:[[.994,.003,356.3],[.982,.008,357.2],[.954,.026,356.3],[.925,.041,356.3],[.893,.054,355.8],[.855,.065,355.6],[.808,.078,354.8],[.75,.099,354.1],[.634,.213,1.3],[.608,.211,2.36],[.552,.207,4.49],[.341,.113,356.8]],pink:[[.994,.004,336.3],[.983,.009,340],[.954,.027,340.6],[.925,.042,340.7],[.893,.054,340.9],[.855,.067,340.9],[.809,.083,341.2],[.752,.107,341.6],[.617,.208,346.1],[.596,.207,346.5],[.557,.206,347.3],[.35,.129,345.5]],plum:[[.993,.005,316.9],[.983,.009,326],[.957,.027,325.5],[.929,.044,324.9],[.898,.057,324.4],[.86,.072,323.9],[.809,.091,323.1],[.742,.12,321.9],[.579,.188,322.1],[.553,.181,322.1],[.521,.173,322],[.338,.125,321.4]],purple:[[.993,.004,325.4],[.982,.009,313.1],[.959,.024,313.3],[.933,.039,312.1],[.901,.054,311.6],[.86,.071,311],[.804,.093,309.9],[.733,.123,308],[.555,.183,305.9],[.524,.176,305.7],[.516,.174,305.7],[.322,.11,303.8]],violet:[[.992,.003,308],[.983,.009,295],[.963,.019,296.6],[.934,.039,295.4],[.904,.057,294.1],[.864,.072,293.9],[.806,.09,293.5],[.729,.119,292.4],[.542,.179,288.1],[.511,.177,287.6],[.508,.159,288.6],[.313,.098,286.8]],iris:[[.994,.003,286.4],[.981,.009,284.1],[.961,.018,283.8],[.935,.035,283.4],[.904,.053,283.8],[.865,.07,283.1],[.808,.088,282.9],[.729,.118,281.5],[.54,.184,278.3],[.509,.186,277.5],[.51,.173,279.7],[.315,.099,277.4]],indigo:[[.994,.001,286.4],[.983,.008,271.4],[.961,.017,268.5],[.935,.034,268.5],[.903,.051,270],[.863,.071,271.5],[.807,.087,271.4],[.73,.113,270.5],[.544,.191,267.1],[.511,.195,266.5],[.51,.173,267.1],[.313,.086,268.6]],blue:[[.993,.003,247.6],[.982,.01,243.3],[.96,.02,236.7],[.937,.037,239],[.906,.053,242.8],[.864,.069,243.2],[.809,.088,243.3],[.735,.121,243],[.649,.193,251.8],[.621,.184,251.9],[.558,.189,253],[.324,.097,259]],cyan:[[.992,.004,219.2],[.98,.009,202.9],[.958,.026,203.6],[.932,.041,204.7],[.9,.054,206.5],[.859,.066,207.7],[.805,.082,209.6],[.727,.11,211.7],[.661,.122,221.5],[.627,.114,221.3],[.54,.127,223.7],[.332,.053,218.6]],teal:[[.994,.005,177.5],[.981,.009,179],[.961,.027,180.3],[.935,.042,180.2],[.9,.054,180.5],[.856,.064,181.4],[.797,.076,182.2],[.721,.097,183.5],[.649,.113,182],[.619,.11,181.2],[.53,.124,179],[.327,.05,185]],jade:[[.995,.004,172.6],[.982,.009,160.3],[.96,.022,161.9],[.934,.034,163.5],[.902,.046,164.8],[.859,.059,166.9],[.8,.077,169.5],[.721,.103,173.4],[.642,.115,170.8],[.613,.11,170.6],[.529,.127,167.2],[.326,.041,169.8]],green:[[.994,.004,159.1],[.982,.009,155.3],[.959,.023,156.4],[.933,.036,156.6],[.9,.05,157.2],[.857,.065,157.9],[.798,.084,159],[.714,.112,160.6],[.64,.133,157.8],[.611,.126,158.3],[.529,.133,158.3],[.322,.047,164.6]],grass:[[.994,.005,146.4],[.982,.009,145.9],[.961,.023,145.3],[.934,.037,146.2],[.901,.053,146.4],[.858,.071,146.8],[.798,.095,147.5],[.716,.13,148.3],[.652,.147,147.4],[.614,.142,147.3],[.527,.13,147.2],[.327,.053,148.6]],brown:[[.994,.002,63.2],[.983,.006,65.7],[.954,.013,67.8],[.926,.02,66.9],[.897,.029,65.8],[.862,.039,65.5],[.815,.053,64.2],[.747,.072,62.4],[.633,.078,60.8],[.597,.072,59.3],[.512,.058,55.5],[.332,.018,47]],bronze:[[.992,.001,15.9],[.981,.007,43],[.953,.01,44.3],[.925,.014,43.6],[.895,.018,42.6],[.86,.023,43.4],[.811,.03,41.9],[.742,.039,41.2],[.627,.046,44.3],[.588,.045,42.4],[.51,.044,38.4],[.329,.029,35.2]],gold:[[.994,.001,106.4],[.981,.009,97.3],[.953,.012,94.7],[.926,.015,93.2],[.896,.019,90.7],[.86,.025,88.4],[.81,.032,83.4],[.739,.042,78.2],[.621,.049,78.1],[.588,.047,77.4],[.504,.039,78.1],[.332,.019,81.7]],sky:[[.993,.005,211.9],[.98,.01,217.7],[.961,.024,219.6],[.936,.036,220.4],[.903,.047,221.4],[.861,.058,222.9],[.806,.072,225.7],[.729,.096,228],[.861,.103,217.8],[.838,.104,219.6],[.526,.108,232.5],[.351,.057,241.6]],mint:[[.993,.005,183.7],[.982,.01,178.7],[.96,.03,179.6],[.933,.047,179],[.899,.061,178.7],[.856,.072,178.7],[.798,.085,178.2],[.722,.107,177.7],[.87,.1,178],[.841,.1,177.8],[.512,.095,176],[.35,.051,181.4]],lime:[[.992,.004,120.7],[.982,.01,116.7],[.959,.043,119.1],[.932,.069,120.4],[.897,.087,121.8],[.853,.099,123.4],[.795,.111,125.3],[.724,.135,128.1],[.888,.175,126.1],[.859,.188,126.7],[.544,.111,128.6],[.354,.057,121.2]],yellow:[[.993,.005,106.5],[.988,.025,102.9],[.974,.084,104.4],[.953,.117,101.7],[.925,.141,98.2],[.881,.134,95.4],[.836,.12,92.8],[.766,.137,89.8],[.927,.209,102.1],[.897,.185,97.5],[.574,.136,81.7],[.358,.046,86.6]],amber:[[.994,.003,84.6],[.986,.024,100.3],[.969,.069,100.4],[.945,.104,98.2],[.918,.133,98.4],[.881,.124,93.2],[.827,.122,86.2],[.758,.14,76.7],[.856,.178,81.4],[.831,.168,80.9],[.569,.144,67.3],[.352,.049,53.7]],orange:[[.992,.003,40.7],[.979,.015,70.8],[.958,.037,78.1],[.92,.081,74.2],[.89,.107,70.8],[.857,.11,64.4],[.805,.113,59.9],[.745,.132,54.8],[.689,.191,44.8],[.662,.194,43.5],[.592,.186,47],[.35,.069,40.8]]},Yi=e=>(e/=255,e<=.04045?e/12.92:((e+.055)/1.055)**2.4),G6=(e,t,n)=>{const r=.4122214708*e+.5363325363*t+.0514459929*n,i=.2119034982*e+.6806995451*t+.1073969566*n,a=.0883024619*e+.2817188376*t+.6299787005*n,s=Math.cbrt(r),u=Math.cbrt(i),o=Math.cbrt(a),l=.2104542553*s+.793617785*u-.0040720468*o,h=1.9779984951*s-2.428592205*u+.4505937099*o,d=.0259040371*s+.7827717662*u-.808675766*o;return[l,h,d]},Q6=([e,t,n])=>{const r=Math.sqrt(t*t+n*n),i=Math.atan2(n,t)*180/Math.PI;return[e,r,(i+360)%360]},K6=e=>{const t=e.replace("#",""),n=parseInt(t.length===3?t.replace(/./g,s=>s+s):t,16),r=Yi(n>>16&255),i=Yi(n>>8&255),a=Yi(n&255);return Q6(G6(r,i,a))},i0=["gray","mauve","slate","sage","olive","sand"];function mi(e,t){return Object.fromEntries(t.map(n=>[n,e[n]]))}mi(r0,t0);mi(n0,t0);mi(r0,i0);mi(n0,i0);const X6={light:{1:[98.8,.015],2:[97.8,.018],3:[95.8,.025],4:[92,.04],5:[89,.05],6:[85,.07],7:[80.5,.08],8:[74,.11],9:[60,.22],10:[56,.23],11:[50,.19],12:[25,.18]},dark:{1:[19,.015],2:[21,.018],3:[25.5,.055],4:[29.3,.084],5:[33.5,.098],6:[39.05,.107],7:[45,.11],8:[55,.13],9:[60,.22],10:[67,.18],11:[79.3,.12],12:[95,.04]}},Z6={light:{1:[99,.005],2:[97.5,.005],3:[95,.006],4:[92,.006],5:[88,.005],6:[83,.004],7:[76,.003],8:[65,.003],9:[55,.004],10:[45,.005],11:[35,.006],12:[20,.008]},dark:{1:[14,.008],2:[17,.008],3:[21,.01],4:[25,.01],5:[30,.008],6:[36,.006],7:[44,.005],8:[54,.004],9:[66,.003],10:[76,.004],11:[87,.005],12:[96,.006]}};function J6(e){const[t,n,r]=K6(e);return{l:t*100,c:n,h:r??0}}const St=(e,t,n)=>`oklch(${e}% ${t} ${n})`;function ex(e){var m,T,C,y,I,S,D,R;const{accentColor:t,mode:n}=e,r=J6(t),i=X6[n],a=Z6[n],s=30,u=r.c/.22,o=x=>{const F=i[x];if(!F)return St(60,.22,r.h);const[P,U]=F;return x==="9"?St(r.l,r.c,r.h):St(P,U*u,r.h)},l=x=>{const F=a[x];if(!F)return St(50,.005,s);const[P,U]=F;return St(P,U,s)},h=St(r.l,r.c,r.h),d=St(r.l*.9,r.c*.9,(r.h+20)%360),p=St(r.l*.8,r.c*.8,(r.h+40)%360),f=n==="light"?{"--kin-bg-base":l("1"),"--kin-bg-elevated":l("2"),"--kin-bg-surface":l("3"),"--kin-bg-muted":l("4"),"--kin-border":`oklch(${((m=a[6])==null?void 0:m[0])??83}% ${((T=a[6])==null?void 0:T[1])??.004} ${s} / 0.4)`,"--kin-border-subtle":`oklch(${((C=a[5])==null?void 0:C[0])??88}% ${((y=a[5])==null?void 0:y[1])??.005} ${s} / 0.25)`,"--kin-text":l("12"),"--kin-text-secondary":l("10"),"--kin-text-muted":l("8"),"--kin-accent":o("9"),"--kin-bubble-user":o("9"),"--kin-bubble-user-text":"oklch(100% 0 0)","--kin-bubble-assistant":l("2"),"--kin-bubble-assistant-text":l("12"),"--kin-glow-1":h,"--kin-glow-2":d,"--kin-glow-3":p}:{"--kin-bg-base":l("1"),"--kin-bg-elevated":l("2"),"--kin-bg-surface":l("3"),"--kin-bg-muted":l("4"),"--kin-border":`oklch(${((I=a[6])==null?void 0:I[0])??83}% ${((S=a[6])==null?void 0:S[1])??.004} ${s} / 0.4)`,"--kin-border-subtle":`oklch(${((D=a[5])==null?void 0:D[0])??88}% ${((R=a[5])==null?void 0:R[1])??.005} ${s} / 0.25)`,"--kin-text":l("12"),"--kin-text-secondary":l("11"),"--kin-text-muted":l("9"),"--kin-accent":o("9"),"--kin-bubble-user":l("12"),"--kin-bubble-user-text":l("1"),"--kin-bubble-assistant":l("3"),"--kin-bubble-assistant-text":l("12"),"--kin-glow-1":h,"--kin-glow-2":d,"--kin-glow-3":p};return Object.entries(f).map(([x,F])=>`${x}: ${F};`).join(`
114
- `)}const tx={accentColor:"#FF4D00",mode:"light"},nx={inploi:{accentColor:"#FF4D00",mode:"light"},boots:{accentColor:"#05054b",mode:"light"},wagamama:{accentColor:"#df3228",mode:"dark"},gails:{accentColor:"#cf2030",mode:"light"}},rx=`:host{--kin-bg-base: #0a0a0a;--kin-bg-elevated: #141414;--kin-bg-surface: #1a1a1a;--kin-bg-muted: #262626;--kin-border: rgba(255, 255, 255, .08);--kin-border-subtle: rgba(255, 255, 255, .05);--kin-text: #ffffff;--kin-text-secondary: #a1a1a1;--kin-text-muted: #8a8a8a;--kin-accent: #635bff;--kin-bubble-user: #f5f5f5;--kin-bubble-user-text: #171717;--kin-bubble-assistant: #1a1a1a;--kin-bubble-assistant-text: #ffffff;--kin-glow-1: #ff6b6b;--kin-glow-2: #c850c0;--kin-glow-3: #635bff;--kin-focus-ring: var(--kin-accent);--kin-focus-ring-offset: 2px;--kin-radius: 16px;--kin-radius-sm: 8px;--kin-panel-width: 450px;--kin-panel-height: min(640px, calc(100svh - 16px));--kin-launcher-width: 380px;--kin-launcher-width-expanded: 450px;--kin-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--kin-font-size: 14px;--kin-line-height: 1.5;--kin-transition: .2s ease;--kin-open-duration: .35s;--kin-open-easing: cubic-bezier(.32, .72, 0, 1)}.kin-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.kin-skip-link{position:absolute;top:-100%;left:50%;transform:translate(-50%);z-index:1000000;padding:8px 16px;background:var(--kin-bg-elevated);color:var(--kin-text);border-radius:var(--kin-radius-sm);text-decoration:none;font-weight:500}.kin-skip-link:focus{top:8px;outline:2px solid var(--kin-focus-ring);outline-offset:2px}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.kin-widget{position:fixed;bottom:24px;left:50%;transform:translate(-50%);z-index:999999;font-family:var(--kin-font);font-size:var(--kin-font-size);line-height:var(--kin-line-height);display:flex;flex-direction:column;align-items:center;gap:16px}.kin-launcher{width:var(--kin-launcher-width);max-width:calc(100vw - 48px);transition:width var(--kin-open-duration) var(--kin-open-easing)}.kin-launcher:has(:focus-within){width:var(--kin-launcher-width-expanded)}.kin-launcher.is-open{width:var(--kin-panel-width)}.kin-launcher-form{position:relative}.kin-launcher-input-wrapper{position:relative;display:flex;align-items:center;background:var(--kin-bg-elevated);border-radius:24px;padding:4px 6px 4px 16px;gap:12px;box-shadow:0 0 0 1px var(--kin-border),0 4px 16px #0000004d}.kin-launcher-input-wrapper:focus-within{box-shadow:0 0 0 1px var(--kin-border),0 4px 16px #0000004d}.kin-launcher-input-wrapper:before{content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;border-radius:25px;padding:2px;background:linear-gradient(90deg,var(--kin-glow-1),var(--kin-glow-2),var(--kin-glow-3),var(--kin-glow-2),var(--kin-glow-1));background-size:300% 100%;animation:kin-gradient 4s ease infinite;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.85;transition:opacity var(--kin-transition);pointer-events:none}.kin-launcher-input-wrapper:after{content:"";position:absolute;top:-2px;right:-2px;bottom:-2px;left:-2px;border-radius:26px;background:linear-gradient(90deg,var(--kin-glow-1),var(--kin-glow-2),var(--kin-glow-3),var(--kin-glow-2),var(--kin-glow-1));background-size:300% 100%;animation:kin-gradient 4s ease infinite;filter:blur(6px);opacity:.35;transition:opacity var(--kin-transition);pointer-events:none;z-index:-1}.kin-launcher-input-wrapper:focus-within:before{opacity:1}.kin-launcher-input-wrapper:focus-within:after{opacity:.5}@keyframes kin-gradient{0%,to{background-position:0% 50%}50%{background-position:100% 50%}}.kin-launcher-icon{width:20px;height:20px;color:var(--kin-text-muted);flex-shrink:0}.kin-launcher-icon-wrapper{position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0}.kin-notification-badge{position:absolute;top:-4px;right:-4px;width:10px;height:10px;background:var(--kin-accent);border-radius:50%;border:2px solid var(--kin-bg-surface);animation:kin-pulse 2s ease-in-out infinite}@keyframes kin-pulse{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.8}}@media (prefers-reduced-motion: reduce){.kin-notification-badge{animation:none}}.kin-launcher-input{flex:1;background:transparent;border:none;outline:none;color:var(--kin-text);font-size:var(--kin-font-size);font-family:var(--kin-font);padding:12px 0;min-width:0}.kin-launcher-input::placeholder{color:var(--kin-text-muted)}.kin-launcher-send{width:36px;height:36px;border-radius:50%;border:none;background:var(--kin-bg-muted);color:var(--kin-text-muted);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--kin-transition);flex-shrink:0}.kin-launcher-send:focus-visible{outline:2px solid var(--kin-focus-ring);outline-offset:var(--kin-focus-ring-offset)}.kin-launcher-send:not(:disabled){background:var(--kin-text);color:var(--kin-bg-base)}.kin-launcher-send:not(:disabled):hover{transform:scale(1.05)}.kin-launcher-send:disabled{cursor:not-allowed;opacity:.5}.kin-launcher-send svg{width:18px;height:18px}.kin-launcher-attach{width:36px;height:36px;border-radius:50%;border:none;background:transparent;color:var(--kin-text-muted);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--kin-transition);flex-shrink:0;margin-right:-8px}.kin-launcher-attach:focus-visible{outline:2px solid var(--kin-focus-ring);outline-offset:var(--kin-focus-ring-offset)}.kin-launcher-attach:not(:disabled):hover{background:var(--kin-bg-muted);color:var(--kin-text)}.kin-launcher-attach:disabled{cursor:not-allowed;opacity:.5}.kin-launcher-attach svg{width:18px;height:18px}.kin-launcher-attach.is-uploading svg{animation:kin-spin 1s linear infinite}@keyframes kin-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.kin-upload-error{position:absolute;bottom:100%;left:50%;transform:translate(-50%);margin-bottom:8px;padding:8px 12px;background:#dc2626;color:#fff;font-size:12px;border-radius:var(--kin-radius-sm);white-space:nowrap;max-width:calc(100% - 32px);overflow:hidden;text-overflow:ellipsis;animation:kin-error-in .2s ease}@keyframes kin-error-in{0%{opacity:0;transform:translate(-50%) translateY(4px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.kin-char-limit-error{position:absolute;bottom:100%;left:50%;transform:translate(-50%);margin-bottom:8px;padding:8px 12px;background:#dc2626;color:#fff;font-size:12px;border-radius:var(--kin-radius-sm);white-space:nowrap;animation:kin-error-in .2s ease}.kin-panel{width:var(--kin-panel-width);max-width:calc(100vw - 32px);height:var(--kin-panel-height);max-height:calc(100svh - 120px);background:var(--kin-bg-base);border-radius:var(--kin-radius);border:1px solid var(--kin-border);box-shadow:0 8px 32px #00000080,0 0 0 1px var(--kin-border);display:flex;flex-direction:column;overflow:hidden;animation:kin-panel-in var(--kin-open-duration) var(--kin-open-easing);transform-origin:bottom center}@keyframes kin-panel-in{0%{opacity:0;transform:translateY(16px) scale(.96)}40%{opacity:1}to{opacity:1;transform:translateY(0) scale(1)}}.kin-header{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid var(--kin-border);background:var(--kin-bg-elevated)}.kin-header-title{font-size:14px;font-weight:500;color:var(--kin-text);margin:0}.kin-header-actions{display:flex;align-items:center;gap:4px}.kin-icon-btn{width:32px;height:32px;border-radius:var(--kin-radius-sm);border:none;background:transparent;color:var(--kin-text-muted);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--kin-transition)}.kin-icon-btn:hover{background:var(--kin-bg-muted);color:var(--kin-text)}.kin-icon-btn:focus-visible{outline:2px solid var(--kin-focus-ring);outline-offset:var(--kin-focus-ring-offset);background:var(--kin-bg-muted);color:var(--kin-text)}.kin-icon-btn svg{width:18px;height:18px}.kin-clear-btn{font-size:14px;transition:all var(--kin-transition);color:var(--kin-accent)}.kin-clear-btn:hover{background:var(--kin-bg-muted);color:var(--kin-accent)}.kin-clear-confirm{background:var(--kin-accent);color:#fff}.kin-clear-confirm:hover{background:var(--kin-accent);opacity:.9;color:#fff}.kin-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:16px}.kin-messages-empty{justify-content:center;align-items:center}.kin-empty-state{text-align:center;padding:24px}.kin-empty-icon{width:48px;height:48px;margin:0 auto 16px;color:var(--kin-text-muted);opacity:.5}.kin-empty-icon svg{width:100%;height:100%}.kin-empty-text{color:var(--kin-text);font-size:15px;margin:0 0 8px}.kin-empty-subtext{color:var(--kin-text-muted);font-size:13px;margin:0}.kin-starter-prompts{display:flex;flex-direction:column-reverse;align-items:flex-start;gap:8px;padding:0 0 12px;margin-left:0}.kin-starter-btn{display:inline-block;padding:10px 16px;background:var(--kin-bg-elevated);border:1px solid var(--kin-border);border-radius:20px;color:var(--kin-text);font-size:13px;font-family:inherit;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,transform .1s ease;text-align:left;white-space:nowrap;opacity:0;animation:kin-starter-fade-in .3s ease-out forwards}.kin-starter-btn:nth-child(1){animation-delay:.05s}.kin-starter-btn:nth-child(2){animation-delay:.1s}.kin-starter-btn:nth-child(3){animation-delay:.15s}.kin-starter-btn:nth-child(4){animation-delay:.2s}.kin-starter-btn:nth-child(5){animation-delay:.25s}@keyframes kin-starter-fade-in{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.kin-starter-btn:hover{background:var(--kin-bg-surface);border-color:var(--kin-text-muted)}.kin-starter-btn:focus{outline:none;box-shadow:0 0 0 2px var(--kin-focus-ring)}.kin-starter-btn:active{transform:scale(.98)}@media (prefers-reduced-motion: reduce){.kin-starter-prompts,.kin-starter-btn{animation:none;opacity:1;transform:none}}.kin-divider{display:flex;align-items:center;gap:12px;color:var(--kin-glow-1);font-size:11px;text-transform:uppercase;letter-spacing:.5px;font-weight:500}.kin-divider:before,.kin-divider:after{content:"";flex:1;height:1px;background:linear-gradient(90deg,transparent,var(--kin-glow-1),transparent);opacity:.3}.kin-system-message{display:flex;justify-content:center;padding:8px 16px}.kin-system-message span{font-size:12px;color:var(--kin-text-muted);background:var(--kin-bg-surface);padding:6px 12px;border-radius:12px;border:1px solid var(--kin-border)}.kin-message{display:flex;flex-direction:column;max-width:85%}.kin-message-user{align-self:flex-end}.kin-message-assistant{align-self:flex-start}.kin-bubble{padding:12px 16px;border-radius:var(--kin-radius)}.kin-message-user .kin-bubble{background:var(--kin-bubble-user);color:var(--kin-bubble-user-text);border-bottom-right-radius:4px}.kin-message-assistant .kin-bubble{background:var(--kin-bubble-assistant);color:var(--kin-bubble-assistant-text);border:1px solid var(--kin-border);border-bottom-left-radius:4px}.kin-bubble p{margin:0}.kin-message-footer{display:flex;align-items:center;gap:6px;margin-top:6px;padding-left:4px;font-size:11px;color:var(--kin-text-muted)}.kin-loading-dots{display:flex;gap:6px;padding:8px}.kin-loading-dots span{width:8px;height:8px;background:var(--kin-text-muted);border-radius:50%;animation:kin-typing 1.4s ease-in-out infinite}.kin-loading-dots span:nth-child(2){animation-delay:.15s}.kin-loading-dots span:nth-child(3){animation-delay:.3s}.kin-typing-container{display:flex;flex-direction:column;align-items:flex-start;align-self:flex-start;width:fit-content}.kin-typing{display:inline-flex;align-items:center;gap:5px;padding:12px 16px;min-height:44px;box-sizing:border-box;background:var(--kin-bubble-assistant);border:1px solid var(--kin-border);border-radius:var(--kin-radius);border-bottom-left-radius:4px}.kin-typing span{width:8px;height:8px;background:var(--kin-text-muted);border-radius:50%;animation:kin-typing 1.4s ease-in-out infinite}.kin-typing span:nth-child(2){animation-delay:.15s}.kin-typing span:nth-child(3){animation-delay:.3s}@keyframes kin-typing{0%,to{opacity:.3;transform:scale(.85)}50%{opacity:1;transform:scale(1)}}.kin-markdown{line-height:1.65;font-size:14px;color:var(--kin-bubble-assistant-text)}.kin-markdown p{margin:0 0 1em}.kin-markdown p:last-child{margin-bottom:0}.kin-markdown strong,.kin-markdown b{font-weight:600}.kin-markdown em,.kin-markdown i{font-style:italic}.kin-markdown a{color:var(--kin-accent);text-decoration:underline;text-underline-offset:2px;transition:color var(--kin-transition)}.kin-markdown a:hover{text-decoration-thickness:2px}.kin-markdown a:focus-visible{outline:2px solid var(--kin-focus-ring);outline-offset:2px;border-radius:2px}.kin-markdown code{background:rgba(255,255,255,.1);padding:.15em .4em;border-radius:4px;font-family:SF Mono,Monaco,Consolas,monospace;font-size:.875em}.kin-markdown pre{background:rgba(0,0,0,.4);padding:14px 16px;border-radius:var(--kin-radius-sm);overflow-x:auto;margin:1em 0;border:1px solid var(--kin-border)}.kin-markdown pre code{background:none;padding:0;font-size:.85em;line-height:1.5}.kin-markdown ul{margin:.75em 0;padding-left:1.5em;list-style-type:disc}.kin-markdown ol{margin:.75em 0;padding-left:1.5em;list-style-type:decimal}.kin-markdown li{margin:.35em 0}.kin-markdown li::marker{color:var(--kin-text-muted)}.kin-markdown ul ul,.kin-markdown ol ol,.kin-markdown ul ol,.kin-markdown ol ul{margin:.25em 0}.kin-markdown blockquote{border-left:3px solid var(--kin-accent);margin:1em 0;padding:.5em 0 .5em 1em;color:var(--kin-text-secondary);font-style:italic}.kin-markdown h1,.kin-markdown h2,.kin-markdown h3,.kin-markdown h4{font-weight:600;margin:1.25em 0 .5em;line-height:1.3}.kin-markdown h1:first-child,.kin-markdown h2:first-child,.kin-markdown h3:first-child{margin-top:0}.kin-markdown h1{font-size:1.4em}.kin-markdown h2{font-size:1.25em}.kin-markdown h3{font-size:1.1em}.kin-markdown h4{font-size:1em}.kin-markdown table{width:100%;border-collapse:collapse;margin:1em 0;font-size:.9em}.kin-markdown th,.kin-markdown td{padding:.5em .75em;border:1px solid var(--kin-border);text-align:left}.kin-markdown th{background:var(--kin-bg-muted);font-weight:600}.kin-markdown hr{border:none;border-top:1px solid var(--kin-border);margin:1.5em 0}.kin-markdown input[type=checkbox]{margin-right:.5em;accent-color:var(--kin-accent)}.kin-markdown .streamdown-caret{display:inline-block;width:2px;height:1em;background:var(--kin-accent);margin-left:2px;animation:kin-caret 1s ease-in-out infinite;vertical-align:text-bottom}@keyframes kin-caret{0%,to{opacity:1}50%{opacity:0}}.kin-messages::-webkit-scrollbar{width:6px}.kin-messages::-webkit-scrollbar-track{background:transparent}.kin-messages::-webkit-scrollbar-thumb{background:var(--kin-bg-muted);border-radius:3px}.kin-messages::-webkit-scrollbar-thumb:hover{background:var(--kin-text-muted)}@media (max-width: 640px){.kin-widget,.kin-widget *,.kin-widget *:before,.kin-widget *:after{box-sizing:border-box}.kin-widget{left:0;right:0;bottom:0;transform:none;width:100%;max-width:100vw;gap:0;align-items:stretch;overflow:hidden}.kin-launcher,.kin-launcher:has(:focus-within),.kin-launcher.is-open{width:100%!important;max-width:100%!important;transition:none}.kin-launcher{padding:8px 12px;padding-bottom:max(8px,calc(env(safe-area-inset-bottom,0px) + 8px))}.kin-launcher-input-wrapper{border-radius:24px;box-shadow:0 0 0 1px var(--kin-border);background:var(--kin-bg-elevated);padding:6px 6px 6px 16px;gap:8px}.kin-launcher-input-wrapper:before,.kin-launcher-input-wrapper:after{display:none}.kin-launcher-input-wrapper:focus-within{box-shadow:0 0 0 2px var(--kin-accent)}.kin-launcher-input{padding:10px 0}.kin-launcher-send:not(:disabled){background:var(--kin-accent);color:#fff}.kin-starter-prompts{padding:0 0 4px}.kin-starter-btn{white-space:normal}.kin-launcher-input{font-size:16px}.kin-icon-btn{width:44px;height:44px}.kin-launcher-send,.kin-launcher-attach{width:40px;height:40px}.kin-widget.has-fab{bottom:56px}.kin-widget.has-fab:has(.kin-panel){bottom:0}.kin-widget:has(.kin-panel){top:0;height:100vh;height:100dvh;background:var(--kin-bg-base);touch-action:manipulation}.kin-widget:has(.kin-panel) .kin-panel{width:100%;max-width:none;max-height:none;flex:1;min-height:0;border-radius:0;border:none;box-shadow:none;animation:none}.kin-widget:has(.kin-panel) .kin-header{padding-top:max(16px,env(safe-area-inset-top,16px));padding-left:max(16px,env(safe-area-inset-left,16px));padding-right:max(16px,env(safe-area-inset-right,16px))}.kin-widget:has(.kin-panel) .kin-header-title{font-size:16px;font-weight:600}.kin-widget:has(.kin-panel) .kin-messages{padding-left:max(16px,env(safe-area-inset-left,16px));padding-right:max(16px,env(safe-area-inset-right,16px));overscroll-behavior:contain}.kin-widget:has(.kin-panel) .kin-launcher{padding:0;border-top:1px solid var(--kin-border)}.kin-widget:has(.kin-panel) .kin-launcher-input-wrapper{border-radius:0;box-shadow:none;background:var(--kin-bg-base);padding:8px 12px;padding-bottom:max(8px,calc(env(safe-area-inset-bottom,0px) + 8px))}.kin-widget:has(.kin-panel) .kin-launcher-input-wrapper:focus-within{box-shadow:none}}@media (forced-colors: active){.kin-launcher-input-wrapper,.kin-panel,.kin-bubble{border:2px solid CanvasText}.kin-launcher-send,.kin-icon-btn{border:1px solid ButtonText}.kin-launcher-input-wrapper:before{display:none}}@media (min-resolution: 1dppx){.kin-widget{font-size:max(14px,1rem)}.kin-panel{min-height:auto}.kin-messages{word-wrap:break-word;overflow-wrap:break-word}}
115
- `,ix="wss://agents.inploi.com",ax=({serviceUrl:e=ix,theme:t=tx,starterPrompts:n=[],mode:r="floating",container:i})=>gi.createPlugin(({logger:a,publishableKey:s})=>{if(!s)throw new Error("Kin plugin requires a publishableKey. Pass it to initialiseSdk().");let u=!1,o=null,l=t,h=null,d=!1,p=null,f=null,m=!1;const T=r==="embedded",C=()=>{if(i)if(typeof i=="string"){const F=document.querySelector(i);if(F instanceof HTMLElement)return f=F,m=!1,F}else return f=i,m=!1,i;const R=document.getElementById("inploi-kin-root");if(R)return f=R,m=!1,R;const x=document.createElement("div");return x.id="inploi-kin-root",T&&(x.className="kin-embedded"),document.body.appendChild(x),f=x,m=!0,x},y=R=>{const x=ex(R);let F=`${rx}
110
+ `)},Yi=e=>{let t=!1;for(let r of e)if(r==="\\"||r==="|"){t=!0;break}if(!t)return e;let n=[];for(let r of e)r==="\\"?n.push("\\\\"):r==="|"?n.push("\\|"):n.push(r);return n.join("")},f6=e=>{let{headers:t,rows:n}=e;if(t.length===0)return"";let r=new Array(n.length+2),i=0,a=t.map(u=>Yi(u));r[i]=`| ${a.join(" | ")} |`,i+=1;let s=new Array(t.length);for(let u=0;u<t.length;u+=1)s[u]="---";r[i]=`| ${s.join(" | ")} |`,i+=1;for(let u of n)if(u.length<t.length){let o=new Array(t.length);for(let l=0;l<t.length;l+=1)o[l]=l<u.length?Yi(u[l]):"";r[i]=`| ${o.join(" | ")} |`,i+=1}else{let o=u.map(l=>Yi(l));r[i]=`| ${o.join(" | ")} |`,i+=1}return r.join(`
111
+ `)},p6=({children:e,className:t,onCopy:n,onError:r,timeout:i=2e3})=>{let[a,s]=le(!1),[u,o]=le(!1),l=Le(null),h=Le(0),{isAnimating:d}=nt(tt),p=async m=>{var k,C;if(typeof window>"u"||!((k=navigator==null?void 0:navigator.clipboard)!=null&&k.write)){r==null||r(new Error("Clipboard API not available"));return}try{let y=(C=l.current)==null?void 0:C.closest('[data-streamdown="table-wrapper"]'),I=y==null?void 0:y.querySelector("table");if(!I){r==null||r(new Error("Table not found"));return}let S=wd(I),D=m==="csv"?Sd(S):h6(S),R=new ClipboardItem({"text/plain":new Blob([D],{type:"text/plain"}),"text/html":new Blob([I.outerHTML],{type:"text/html"})});await navigator.clipboard.write([R]),o(!0),s(!1),n==null||n(m),h.current=window.setTimeout(()=>o(!1),i)}catch(y){r==null||r(y)}};Ce(()=>{let m=k=>{let C=k.composedPath();l.current&&!C.includes(l.current)&&s(!1)};return document.addEventListener("mousedown",m),()=>{document.removeEventListener("mousedown",m),window.clearTimeout(h.current)}},[]);let f=u?ds:hs;return b("div",{className:"relative",ref:l,children:[b("button",{className:K("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:d,onClick:()=>s(!a),title:"Copy table",type:"button",children:e??b(f,{size:14})}),a?b("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[b("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>p("csv"),title:"Copy table as CSV",type:"button",children:"CSV"}),b("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>p("tsv"),title:"Copy table as TSV",type:"button",children:"TSV"})]}):null]})},m6=({children:e,className:t,onDownload:n,onError:r})=>{let[i,a]=le(!1),s=Le(null),{isAnimating:u}=nt(tt),o=l=>{var h;try{let d=(h=s.current)==null?void 0:h.closest('[data-streamdown="table-wrapper"]'),p=d==null?void 0:d.querySelector("table");if(!p){r==null||r(new Error("Table not found"));return}let f=wd(p),m=l==="csv"?Sd(f):f6(f);dn(`table.${l==="csv"?"csv":"md"}`,m,l==="csv"?"text/csv":"text/markdown"),a(!1),n==null||n(l)}catch(d){r==null||r(d)}};return Ce(()=>{let l=h=>{let d=h.composedPath();s.current&&!d.includes(s.current)&&a(!1)};return document.addEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l)}},[]),b("div",{className:"relative",ref:s,children:[b("button",{className:K("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:u,onClick:()=>a(!i),title:"Download table",type:"button",children:e??b(gi,{size:14})}),i?b("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[b("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>o("csv"),title:"Download table as CSV",type:"button",children:"CSV"}),b("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>o("markdown"),title:"Download table as Markdown",type:"button",children:"Markdown"})]}):null]})},g6=({children:e,className:t,showControls:n,...r})=>b("div",{className:"my-4 flex flex-col space-y-2","data-streamdown":"table-wrapper",children:[n?b("div",{className:"flex items-center justify-end gap-1",children:[b(p6,{}),b(m6,{})]}):null,b("div",{className:"overflow-x-auto",children:b("table",{className:K("w-full border-collapse border border-border",t),"data-streamdown":"table",...r,children:e})})]}),b6=Ko(()=>Promise.resolve().then(()=>require("./code-block-37QAKDTI-028371a3.cjs")).then(e=>({default:e.CodeBlock}))),E6=Ko(()=>Promise.resolve().then(()=>require("./mermaid-4DMBBIKO-4b88003e.cjs")).then(e=>({default:e.Mermaid}))),k6=/language-([^\s]+)/;function bi(e,t){if(!(e!=null&&e.position||t!=null&&t.position))return!0;if(!(e!=null&&e.position&&t!=null&&t.position))return!1;let n=e.position.start,r=t.position.start,i=e.position.end,a=t.position.end;return(n==null?void 0:n.line)===(r==null?void 0:r.line)&&(n==null?void 0:n.column)===(r==null?void 0:r.column)&&(i==null?void 0:i.line)===(a==null?void 0:a.line)&&(i==null?void 0:i.column)===(a==null?void 0:a.column)}function ye(e,t){return e.className===t.className&&bi(e.node,t.node)}var Ta=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,yr=(e,t)=>{if(typeof e=="boolean")return e;let n=e.mermaid;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},ps=fe(({children:e,className:t,node:n,...r})=>b("ol",{className:K("list-inside list-decimal whitespace-normal [li_&]:pl-6",t),"data-streamdown":"ordered-list",...r,children:e}),(e,t)=>ye(e,t));ps.displayName="MarkdownOl";var Id=fe(({children:e,className:t,node:n,...r})=>b("li",{className:K("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...r,children:e}),(e,t)=>e.className===t.className&&bi(e.node,t.node));Id.displayName="MarkdownLi";var Nd=fe(({children:e,className:t,node:n,...r})=>b("ul",{className:K("list-inside list-disc whitespace-normal [li_&]:pl-6",t),"data-streamdown":"unordered-list",...r,children:e}),(e,t)=>ye(e,t));Nd.displayName="MarkdownUl";var vd=fe(({className:e,node:t,...n})=>b("hr",{className:K("my-6 border-border",e),"data-streamdown":"horizontal-rule",...n}),(e,t)=>ye(e,t));vd.displayName="MarkdownHr";var Ld=fe(({children:e,className:t,node:n,...r})=>b("span",{className:K("font-semibold",t),"data-streamdown":"strong",...r,children:e}),(e,t)=>ye(e,t));Ld.displayName="MarkdownStrong";var T6=({children:e,className:t,href:n,node:r,...i})=>{let{linkSafety:a}=nt(tt),[s,u]=le(!1),o=n==="streamdown:incomplete-link",l=Pe(async f=>{if(!(!(a!=null&&a.enabled&&n)||o)){if(f.preventDefault(),a.onLinkCheck&&await a.onLinkCheck(n)){window.open(n,"_blank","noreferrer");return}u(!0)}},[a,n,o]),h=Pe(()=>{n&&window.open(n,"_blank","noreferrer")},[n]),d=Pe(()=>{u(!1)},[]),p={url:n??"",isOpen:s,onClose:d,onConfirm:h};return a!=null&&a.enabled&&n?b(Ye,{children:[b("button",{className:K("wrap-anywhere appearance-none text-left font-medium text-primary underline",t),"data-incomplete":o,"data-streamdown":"link",onClick:l,type:"button",children:e}),a.renderModal?a.renderModal(p):b(a6,{...p})]}):b("a",{className:K("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":o,"data-streamdown":"link",href:n,rel:"noreferrer",target:"_blank",...i,children:e})},Rd=fe(T6,(e,t)=>ye(e,t)&&e.href===t.href);Rd.displayName="MarkdownA";var Od=fe(({children:e,className:t,node:n,...r})=>b("h1",{className:K("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...r,children:e}),(e,t)=>ye(e,t));Od.displayName="MarkdownH1";var Dd=fe(({children:e,className:t,node:n,...r})=>b("h2",{className:K("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...r,children:e}),(e,t)=>ye(e,t));Dd.displayName="MarkdownH2";var Pd=fe(({children:e,className:t,node:n,...r})=>b("h3",{className:K("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...r,children:e}),(e,t)=>ye(e,t));Pd.displayName="MarkdownH3";var Md=fe(({children:e,className:t,node:n,...r})=>b("h4",{className:K("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...r,children:e}),(e,t)=>ye(e,t));Md.displayName="MarkdownH4";var Bd=fe(({children:e,className:t,node:n,...r})=>b("h5",{className:K("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...r,children:e}),(e,t)=>ye(e,t));Bd.displayName="MarkdownH5";var Fd=fe(({children:e,className:t,node:n,...r})=>b("h6",{className:K("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...r,children:e}),(e,t)=>ye(e,t));Fd.displayName="MarkdownH6";var Hd=fe(({children:e,className:t,node:n,...r})=>{let{controls:i}=nt(tt),a=Ta(i,"table");return b(g6,{className:t,showControls:a,...r,children:e})},(e,t)=>ye(e,t));Hd.displayName="MarkdownTable";var Ud=fe(({children:e,className:t,node:n,...r})=>b("thead",{className:K("bg-muted/80",t),"data-streamdown":"table-header",...r,children:e}),(e,t)=>ye(e,t));Ud.displayName="MarkdownThead";var zd=fe(({children:e,className:t,node:n,...r})=>b("tbody",{className:K("divide-y divide-border bg-muted/40",t),"data-streamdown":"table-body",...r,children:e}),(e,t)=>ye(e,t));zd.displayName="MarkdownTbody";var $d=fe(({children:e,className:t,node:n,...r})=>b("tr",{className:K("border-border border-b",t),"data-streamdown":"table-row",...r,children:e}),(e,t)=>ye(e,t));$d.displayName="MarkdownTr";var Yd=fe(({children:e,className:t,node:n,...r})=>b("th",{className:K("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...r,children:e}),(e,t)=>ye(e,t));Yd.displayName="MarkdownTh";var qd=fe(({children:e,className:t,node:n,...r})=>b("td",{className:K("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...r,children:e}),(e,t)=>ye(e,t));qd.displayName="MarkdownTd";var jd=fe(({children:e,className:t,node:n,...r})=>b("blockquote",{className:K("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...r,children:e}),(e,t)=>ye(e,t));jd.displayName="MarkdownBlockquote";var Vd=fe(({children:e,className:t,node:n,...r})=>b("sup",{className:K("text-sm",t),"data-streamdown":"superscript",...r,children:e}),(e,t)=>ye(e,t));Vd.displayName="MarkdownSup";var Wd=fe(({children:e,className:t,node:n,...r})=>b("sub",{className:K("text-sm",t),"data-streamdown":"subscript",...r,children:e}),(e,t)=>ye(e,t));Wd.displayName="MarkdownSub";var Gd=fe(({children:e,className:t,node:n,...r})=>{if("data-footnotes"in r){let i=s=>{var u,o;if(!sn(s))return!1;let l=Array.isArray(s.props.children)?s.props.children:[s.props.children],h=!1,d=!1;for(let p of l)if(p){if(typeof p=="string")p.trim()!==""&&(h=!0);else if(sn(p))if(((u=p.props)==null?void 0:u["data-footnote-backref"])!==void 0)d=!0;else{let f=Array.isArray(p.props.children)?p.props.children:[p.props.children];for(let m of f){if(typeof m=="string"&&m.trim()!==""){h=!0;break}if(sn(m)&&((o=m.props)==null?void 0:o["data-footnote-backref"])===void 0){h=!0;break}}}}return d&&!h},a=Array.isArray(e)?e.map(s=>{if(!sn(s))return s;if(s.type===ps){let u=(Array.isArray(s.props.children)?s.props.children:[s.props.children]).filter(o=>!i(o));return u.length===0?null:{...s,props:{...s.props,children:u}}}return s}):e;return(Array.isArray(a)?a.some(s=>s!==null):a!==null)?b("section",{className:t,...r,children:a}):null}return b("section",{className:t,...r,children:e})},(e,t)=>ye(e,t));Gd.displayName="MarkdownSection";var _6=({node:e,className:t,children:n,...r})=>{var i,a,s;let u=((i=e==null?void 0:e.position)==null?void 0:i.start.line)===((a=e==null?void 0:e.position)==null?void 0:a.end.line),{mermaid:o,controls:l}=nt(tt),h=fs();if(u)return b("code",{className:K("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...r,children:n});let d=t==null?void 0:t.match(k6),p=(s=d==null?void 0:d.at(1))!=null?s:"",f="";if(sn(n)&&n.props&&typeof n.props=="object"&&"children"in n.props&&typeof n.props.children=="string"?f=n.props.children:typeof n=="string"&&(f=n),p==="mermaid"&&h){let k=Ta(l,"mermaid"),C=yr(l,"download"),y=yr(l,"copy"),I=yr(l,"fullscreen"),S=yr(l,"panZoom"),D=k&&(C||y||I);return b(Hn,{fallback:b(_o,{}),children:b("div",{className:K("group relative my-4 h-auto rounded-xl border p-4",t),"data-streamdown":"mermaid-block",children:[D?b("div",{className:"flex items-center justify-end gap-2",children:[C?b(o6,{chart:f,config:o==null?void 0:o.config}):null,y?b(ko,{code:f}):null,I?b(d6,{chart:f,config:o==null?void 0:o.config}):null]}):null,b(E6,{chart:f,config:o==null?void 0:o.config,showControls:S})]})})}let m=Ta(l,"code");return b(Hn,{fallback:b(_o,{}),children:b(b6,{className:K("overflow-x-auto border-border border-t",t),code:f,language:p,children:m?b(Ye,{children:[b(e6,{code:f,language:p}),b(ko,{})]}):null})})},Qd=fe(_6,(e,t)=>e.className===t.className&&bi(e.node,t.node));Qd.displayName="MarkdownCode";var Kd=fe(n6,(e,t)=>e.className===t.className&&bi(e.node,t.node));Kd.displayName="MarkdownImg";var Xd=fe(({children:e,className:t,node:n,...r})=>{var i,a;let s=(Array.isArray(e)?e:[e]).filter(u=>u!=null&&u!=="");if(s.length===1&&sn(s[0])){let u=s[0].props.node,o=u==null?void 0:u.tagName;if(o==="img")return b(Ye,{children:e});if(o==="code"&&((i=u==null?void 0:u.position)==null?void 0:i.start.line)!==((a=u==null?void 0:u.position)==null?void 0:a.end.line))return b(Ye,{children:e})}return b("p",{className:t,...r,children:e})},(e,t)=>ye(e,t));Xd.displayName="MarkdownParagraph";var x6={ol:ps,li:Id,ul:Nd,hr:vd,strong:Ld,a:Rd,h1:Od,h2:Dd,h3:Pd,h4:Md,h5:Bd,h6:Fd,table:Hd,thead:Ud,tbody:zd,tr:$d,th:Yd,td:qd,blockquote:jd,code:Qd,img:Kd,pre:({children:e})=>e,sup:Vd,sub:Wd,p:Xd,section:Gd},xo=[],yo={allowDangerousHtml:!0},Ar=new WeakMap,y6=class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let n=e.rehypePlugins,r=e.remarkPlugins,i=e.remarkRehypeOptions;if(!(n||r||i)){let h="default";return this.keyCache.set(e,h),h}let a=h=>{if(!h||h.length===0)return"";let d="";for(let p=0;p<h.length;p+=1){let f=h[p];if(p>0&&(d+=","),Array.isArray(f)){let[m,k]=f;if(typeof m=="function"){let C=Ar.get(m);C||(C=m.name,Ar.set(m,C)),d+=C}else d+=String(m);d+=":",d+=JSON.stringify(k)}else if(typeof f=="function"){let m=Ar.get(f);m||(m=f.name,Ar.set(f,m)),d+=m}else d+=String(f)}return d},s=a(n),u=a(r),o=i?JSON.stringify(i):"",l=`${u}::${s}::${o}`;return this.keyCache.set(e,l),l}get(e){let t=this.generateCacheKey(e),n=this.cache.get(t);return n&&(this.cache.delete(t),this.cache.set(t,n)),n}set(e,t){let n=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let r=this.cache.keys().next().value;r&&this.cache.delete(r)}this.cache.set(n,t)}clear(){this.cache.clear()}},Ao=new y6,Zd=e=>{let t=A6(e),n=e.children||"";return w6(t.runSync(t.parse(n),n),e)},A6=e=>{let t=Ao.get(e);if(t)return t;let n=C6(e);return Ao.set(e,n),n},C6=e=>{let t=e.rehypePlugins||xo,n=e.remarkPlugins||xo,r=e.remarkRehypeOptions?{...yo,...e.remarkRehypeOptions}:yo;return i_().use(iT).use(n).use(UT,r).use(t)},w6=(e,t)=>hk(e,{Fragment:Ye,components:t.components,ignoreInvalidStyle:!0,jsx:b,jsxs:b,passKeys:!0,passNode:!0}),S6=/\[\^[^\]\s]{1,200}\](?!:)/,I6=/\[\^[^\]\s]{1,200}\]:/,N6=/<\/(\w+)>/,v6=/<(\w+)[\s>]/,qi=e=>{let t=0;for(;t<e.length&&(e[t]===" "||e[t]===" "||e[t]===`
112
+ `||e[t]==="\r");)t+=1;return t+1<e.length&&e[t]==="$"&&e[t+1]==="$"},L6=e=>{let t=e.length-1;for(;t>=0&&(e[t]===" "||e[t]===" "||e[t]===`
113
+ `||e[t]==="\r");)t-=1;return t>=1&&e[t]==="$"&&e[t-1]==="$"},ji=e=>{let t=0;for(let n=0;n<e.length-1;n+=1)e[n]==="$"&&e[n+1]==="$"&&(t+=1,n+=1);return t},R6=e=>{let t=S6.test(e),n=I6.test(e);if(t||n)return[e];let r=at.lex(e,{gfm:!0}),i=[],a=[];for(let s of r){let u=s.raw,o=i.length;if(a.length>0){if(i[o-1]+=u,s.type==="html"){let l=u.match(N6);if(l){let h=l[1];a.at(-1)===h&&a.pop()}}continue}if(s.type==="html"&&s.block){let l=u.match(v6);if(l){let h=l[1];u.includes(`</${h}>`)||a.push(h)}}if(u.trim()==="$$"&&o>0){let l=i[o-1],h=qi(l),d=ji(l);if(h&&d%2===1){i[o-1]=l+u;continue}}if(o>0&&L6(u)){let l=i[o-1],h=qi(l),d=ji(l),p=ji(u);if(h&&d%2===1&&!qi(u)&&p===1){i[o-1]=l+u;continue}}i.push(u)}return i},O6={raw:V1,sanitize:[nm,{}],harden:[bh,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},D6={gfm:[M2,{}]},P6=Object.values(O6),M6=Object.values(D6),B6={block:" ▋",circle:" ●"},F6={shikiTheme:["github-light","github-dark"],controls:!0,isAnimating:!1,mode:"streaming",mermaid:void 0,linkSafety:{enabled:!0}},tt=ya(F6),Jd=fe(({content:e,shouldParseIncompleteMarkdown:t,index:n,...r})=>b(Zd,{...r,children:e}),(e,t)=>{if(e.content!==t.content||e.index!==t.index)return!1;if(e.components!==t.components){let n=Object.keys(e.components||{}),r=Object.keys(t.components||{});if(n.length!==r.length||n.some(i=>{var a,s;return((a=e.components)==null?void 0:a[i])!==((s=t.components)==null?void 0:s[i])}))return!1}return!(e.rehypePlugins!==t.rehypePlugins||e.remarkPlugins!==t.remarkPlugins)});Jd.displayName="Block";var H6=["github-light","github-dark"],e0=fe(({children:e,mode:t="streaming",parseIncompleteMarkdown:n=!0,components:r,rehypePlugins:i=P6,remarkPlugins:a=M6,className:s,shikiTheme:u=H6,mermaid:o,controls:l=!0,isAnimating:h=!1,BlockComponent:d=Jd,parseMarkdownIntoBlocksFn:p=R6,caret:f,plugins:m,remend:k,linkSafety:C={enabled:!0},...y})=>{let I=k0(),[S,D]=ch(),R=ve(()=>typeof e!="string"?"":t==="streaming"&&n?UE(e,k):e,[e,t,n,k]),x=ve(()=>p(R),[R,p]),[H,B]=le(x);Ce(()=>{t==="streaming"?D(()=>{B(x)}):B(x)},[x,t]);let U=t==="streaming"?H:x,N=ve(()=>U.map((Z,J)=>`${I}-${J}`),[U.length,I]),Y=ve(()=>{var Z,J;return{shikiTheme:(J=(Z=m==null?void 0:m.code)==null?void 0:Z.getThemes())!=null?J:u,controls:l,isAnimating:h,mode:t,mermaid:o,linkSafety:C}},[u,l,h,t,o,C,m==null?void 0:m.code]),M=ve(()=>({...x6,...r}),[r]),Q=ve(()=>{let Z=[];return m!=null&&m.cjk&&(Z=[...Z,...m.cjk.remarkPluginsBefore]),Z=[...Z,...a],m!=null&&m.cjk&&(Z=[...Z,...m.cjk.remarkPluginsAfter]),m!=null&&m.math&&(Z=[...Z,m.math.remarkPlugin]),Z},[a,m==null?void 0:m.math,m==null?void 0:m.cjk]),ie=ve(()=>m!=null&&m.math?[...i,m.math.rehypePlugin]:i,[i,m==null?void 0:m.math]),X=ve(()=>f&&h?{"--streamdown-caret":`"${B6[f]}"`}:void 0,[f,h]);return t==="static"?b(ka.Provider,{value:m??null,children:b(tt.Provider,{value:Y,children:b("div",{className:K("space-y-4 whitespace-normal *:first:mt-0 *:last:mb-0",s),children:b(Zd,{components:M,rehypePlugins:ie,remarkPlugins:Q,...y,children:e})})})}):b(ka.Provider,{value:m??null,children:b(tt.Provider,{value:Y,children:b("div",{className:K("space-y-4 whitespace-normal *:first:mt-0 *:last:mb-0",f?"*:last:after:inline *:last:after:align-baseline *:last:after:content-(--streamdown-caret)":null,s),style:X,children:[U.length===0&&f&&h&&b("span",{}),U.map((Z,J)=>b(d,{components:M,content:Z,index:J,rehypePlugins:ie,remarkPlugins:Q,shouldParseIncompleteMarkdown:n,...y},N[J]))]})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.mode===t.mode&&e.plugins===t.plugins&&e.className===t.className&&e.linkSafety===t.linkSafety);e0.displayName="Streamdown";var U6=({children:e,className:t,minZoom:n=.5,maxZoom:r=3,zoomStep:i=.1,showControls:a=!0,initialZoom:s=1,fullscreen:u=!1})=>{let o=Le(null),l=Le(null),[h,d]=le(s),[p,f]=le({x:0,y:0}),[m,k]=le(!1),[C,y]=le({x:0,y:0}),[I,S]=le({x:0,y:0}),D=Pe(M=>{d(Q=>Math.max(n,Math.min(r,Q+M)))},[n,r]),R=Pe(()=>{D(i)},[D,i]),x=Pe(()=>{D(-i)},[D,i]),H=Pe(()=>{d(s),f({x:0,y:0})},[s]),B=Pe(M=>{M.preventDefault();let Q=M.deltaY>0?-i:i;D(Q)},[D,i]),U=Pe(M=>{if(M.button!==0||M.isPrimary===!1)return;k(!0),y({x:M.clientX,y:M.clientY}),S(p);let Q=M.currentTarget;Q instanceof HTMLElement&&Q.setPointerCapture(M.pointerId)},[p]),N=Pe(M=>{if(!m)return;M.preventDefault();let Q=M.clientX-C.x,ie=M.clientY-C.y;f({x:I.x+Q,y:I.y+ie})},[m,C,I]),Y=Pe(M=>{k(!1);let Q=M.currentTarget;Q instanceof HTMLElement&&Q.releasePointerCapture(M.pointerId)},[]);return Ce(()=>{let M=o.current;if(M)return M.addEventListener("wheel",B,{passive:!1}),()=>{M.removeEventListener("wheel",B)}},[B]),Ce(()=>{let M=l.current;if(M&&m)return document.body.style.userSelect="none",M.addEventListener("pointermove",N,{passive:!1}),M.addEventListener("pointerup",Y),M.addEventListener("pointercancel",Y),()=>{document.body.style.userSelect="",M.removeEventListener("pointermove",N),M.removeEventListener("pointerup",Y),M.removeEventListener("pointercancel",Y)}},[m,N,Y]),b("div",{className:K("relative flex flex-col",u?"h-full w-full":"min-h-28 w-full",t),ref:o,style:{cursor:m?"grabbing":"grab"},children:[a?b("div",{className:K("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/90 p-1 shadow-sm backdrop-blur-sm",u?"bottom-4 left-4":"bottom-2 left-2"),children:[b("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:h>=r,onClick:R,title:"Zoom in",type:"button",children:b(Z_,{size:16})}),b("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:h<=n,onClick:x,title:"Zoom out",type:"button",children:b(J_,{size:16})}),b("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",onClick:H,title:"Reset zoom and pan",type:"button",children:b(X_,{size:16})})]}):null,b("div",{className:K("flex-1 origin-center transition-transform duration-150 ease-out",u?"flex h-full w-full items-center justify-center":"flex w-full items-center justify-center"),onPointerDown:U,ref:l,role:"application",style:{transform:`translate(${p.x}px, ${p.y}px) scale(${h})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},t0=({chart:e,className:t,config:n,fullscreen:r=!1,showControls:i=!0})=>{let[a,s]=le(null),[u,o]=le(!1),[l,h]=le(""),[d,p]=le(""),[f,m]=le(0),{mermaid:k}=nt(tt),C=fs(),y=k==null?void 0:k.errorComponent,{shouldRender:I,containerRef:S}=G_({immediate:r});if(Ce(()=>{if(I){if(!C){s("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");return}(async()=>{try{s(null),o(!0);let R=C.getMermaid(n),x=e.split("").reduce((U,N)=>(U<<5)-U+N.charCodeAt(0)|0,0),H=`mermaid-${Math.abs(x)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:B}=await R.render(H,e);h(B),p(B)}catch(R){if(!(d||l)){let x=R instanceof Error?R.message:"Failed to render Mermaid chart";s(x)}}finally{o(!1)}})()}},[e,n,f,I,C]),!(I||l||d))return b("div",{className:K("my-4 min-h-[200px]",t),ref:S});if(u&&!l&&!d)return b("div",{className:K("my-4 flex justify-center p-4",t),ref:S,children:b("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[b("div",{className:"h-4 w-4 animate-spin rounded-full border-current border-b-2"}),b("span",{className:"text-sm",children:"Loading diagram..."})]})});if(a&&!l&&!d)return y?b("div",{ref:S,children:b(y,{chart:e,error:a,retry:()=>m(x=>x+1)})}):b("div",{className:K("rounded-lg border border-red-200 bg-red-50 p-4",t),ref:S,children:[b("p",{className:"font-mono text-red-700 text-sm",children:["Mermaid Error: ",a]}),b("details",{className:"mt-2",children:[b("summary",{className:"cursor-pointer text-red-600 text-xs",children:"Show Code"}),b("pre",{className:"mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs",children:e})]})]});let D=l||d;return b("div",{className:K("size-full",t),"data-streamdown":"mermaid",ref:S,children:b(U6,{className:K(r?"size-full overflow-hidden":"my-4 overflow-hidden",t),fullscreen:r,maxZoom:3,minZoom:.5,showControls:i,zoomStep:.1,children:b("div",{"aria-label":"Mermaid chart",className:K("flex justify-center",r?"size-full items-center":null),dangerouslySetInnerHTML:{__html:D},role:"img"})})})};function z6({href:e,children:t}){return b("a",{href:e,target:"_blank",rel:"noopener noreferrer",class:"kin-link",children:t})}const $6={a:z6};function Y6({content:e,isStreaming:t=!1}){return e?b("div",{class:"kin-markdown",children:b(e0,{isAnimating:t,mode:t?"streaming":"static",components:$6,children:e})}):null}function q6(){const e=xi(()=>$.messages.value),t=xi(()=>$.isStreaming.value),n=xi(()=>$.connectionState.value),r=Le(null),i=()=>{r.current&&(r.current.scrollTop=r.current.scrollHeight)};if(Ce(()=>{const o=setTimeout(i,380);return()=>clearTimeout(o)},[]),Ce(()=>{i()},[e.value,t.value]),n.value==="connecting"&&e.value.length===0)return b("div",{class:"kin-messages kin-messages-empty",role:"log","aria-label":"Chat messages","aria-live":"polite",children:b("div",{class:"kin-empty-state",children:b("div",{class:"kin-loading-dots","aria-label":"Loading conversation",children:[b("span",{}),b("span",{}),b("span",{})]})})});if(e.value.length===0&&!t.value)return b("div",{class:"kin-messages kin-messages-empty",role:"log","aria-label":"Chat messages","aria-live":"polite",children:b("div",{class:"kin-empty-state",children:[b("div",{class:"kin-empty-icon","aria-hidden":"true",children:b(j0,{})}),b("p",{class:"kin-empty-text",children:"Hi there, you're speaking with Kin AI Agent."}),b("p",{class:"kin-empty-subtext",children:"How can I help you today?"})]})});const s=e.value[e.value.length-1],u=t.value&&(s==null?void 0:s.role)==="assistant"&&!s.content.trim();return b("div",{class:"kin-messages",ref:r,role:"log","aria-label":"Chat messages","aria-live":"polite","aria-relevant":"additions",children:[b("div",{class:"kin-divider",role:"separator","aria-hidden":"true",children:b("span",{children:"New"})}),e.value.map((o,l)=>{if(o.role==="assistant"&&!o.content.trim())return null;const h=l===e.value.length-1,d=t.value&&h&&o.role==="assistant";return b(V6,{message:o,isStreaming:d},o.id)}),u&&b(j6,{})]})}function j6(){return b("div",{class:"kin-typing-container",role:"status","aria-label":"Kin is typing",children:[b("div",{class:"kin-typing","aria-hidden":"true",children:[b("span",{}),b("span",{}),b("span",{})]}),b("div",{class:"kin-message-footer","aria-hidden":"true",children:[b("span",{children:"Kin"}),b("span",{children:"•"}),b("span",{children:"AI Agent"}),b("span",{children:"•"}),b("span",{children:"typing..."})]}),b("span",{class:"kin-sr-only",children:"Kin AI Agent is typing a response"})]})}function V6({message:e,isStreaming:t=!1}){const n=e.role==="user",r=e.role==="system",i=n?"You":r?"System":"Kin AI Agent";return r?b("div",{class:"kin-system-message",role:"status","aria-label":"System notification",children:b("span",{children:e.content})}):b("article",{class:`kin-message ${n?"kin-message-user":"kin-message-assistant"}`,"aria-label":`Message from ${i}`,children:[b("div",{class:"kin-bubble",children:n?b("p",{children:e.content}):b(Y6,{content:e.content,isStreaming:t})}),!n&&b("div",{class:"kin-message-footer","aria-hidden":"true",children:[b("span",{children:"Kin"}),b("span",{children:"•"}),b("span",{children:"AI Agent"}),b("span",{children:"•"}),b("span",{children:t?"typing...":W6(e.timestamp)})]})]})}function W6(e){const n=new Date().getTime()-e.getTime();return n<6e4?"Just now":n<36e5?`${Math.floor(n/6e4)}m ago`:e.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function G6({onClose:e,onClearData:t,onSkipToInput:n}){const[r,i]=le(!1),a=u=>{u.key==="Escape"&&(u.preventDefault(),r?i(!1):e())},s=()=>{r?(t(),i(!1)):i(!0)};return b("div",{class:"kin-panel",role:"dialog","aria-modal":"true","aria-labelledby":"kin-panel-title",onKeyDown:a,children:[b("button",{type:"button",class:"kin-skip-link",onClick:n,children:"Skip to chat input"}),b("header",{class:"kin-header",children:[b("h2",{id:"kin-panel-title",class:"kin-header-title",children:"Kin Assistant"}),b("div",{class:"kin-header-actions",children:[b("button",{class:`kin-icon-btn kin-clear-btn ${r?"kin-clear-confirm":""}`,"aria-label":r?"Confirm clear data":"Clear my data",title:r?"Click again to confirm":"Clear my data",type:"button",onClick:s,onBlur:()=>i(!1),children:r?"✓":b(G0,{})}),b("button",{class:"kin-icon-btn","aria-label":"Close chat",type:"button",onClick:e,children:b(W0,{})})]})]}),b(q6,{})]})}function Q6({starterPrompts:e,onSendMessage:t,onOpen:n,onClose:r,onConnect:i,onClearData:a,onUploadFile:s,embedded:u=!1}){const[o,l]=le(u||$.isOpen.value),h=Le(null),d=Le(null),p=Le(null);Ce(()=>rr(()=>{l(u||$.isOpen.value)}),[u]),Ce(()=>{u&&!$.isOpen.value&&n()},[u,n]),Ce(()=>{if(!o||u)return;const C=window.matchMedia("(max-width: 640px)");let y=0,I="",S=!1;const D=()=>{S||(y=window.scrollY,I=document.body.style.overflow,document.body.style.overflow="hidden",S=!0)},R=()=>{S&&(document.body.style.overflow=I,window.scrollTo(0,y),S=!1)},x=()=>{C.matches?D():R()};return x(),C.addEventListener("change",x),()=>{C.removeEventListener("change",x),R()}},[o,u]);const f=Pe(()=>{d.current=document.activeElement,n()},[n]),m=Pe(()=>{var C;r(),(C=d.current)==null||C.focus()},[r]),k=Pe(()=>{var C;(C=p.current)==null||C.focus()},[]);return Ce(()=>{if(!o)return;const C=()=>{var S;let I=document.activeElement;for(;(S=I==null?void 0:I.shadowRoot)!=null&&S.activeElement;)I=I.shadowRoot.activeElement;return I},y=I=>{if(I.key!=="Tab")return;const S=h.current;if(!S)return;const D=S.querySelectorAll('button:not([disabled]), input:not([disabled]), [tabindex]:not([tabindex="-1"])');if(D.length===0)return;const R=D[0],x=D[D.length-1];if(!R||!x)return;const H=C();I.shiftKey&&H===R?(I.preventDefault(),x.focus()):!I.shiftKey&&H===x&&(I.preventDefault(),R.focus())};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[o]),b("div",{ref:h,class:"kin-widget",role:"region","aria-label":"Kin AI Chat",children:[b("div",{class:"kin-sr-only",role:"status","aria-live":"polite","aria-atomic":"true",children:o?"Chat panel opened":""}),o&&b(G6,{onClose:m,onClearData:a,onSkipToInput:k}),b(X0,{isOpen:o,starterPrompts:e,onOpen:f,onClose:m,onSendMessage:t,onConnect:i,onUploadFile:s,inputRef:p})]})}const n0=["gray","mauve","slate","sage","olive","sand","tomato","red","ruby","crimson","pink","plum","purple","violet","iris","indigo","blue","cyan","teal","jade","green","grass","brown","orange","sky","mint","lime","yellow","amber","bronze","gold"],r0={gray:[[.178,0,null],[.213,0,null],[.254,0,null],[.283,0,null],[.313,0,null],[.349,0,null],[.402,0,null],[.488,0,null],[.538,0,null],[.584,0,null],[.77,0,null],[.949,0,null]],mauve:[[.18,.004,307.8],[.215,.004,307.8],[.255,.006,306.5],[.284,.008,307.8],[.314,.009,306.9],[.35,.01,304],[.402,.012,304.4],[.492,.016,300.7],[.54,.017,294],[.586,.017,295.4],[.77,.014,296.6],[.949,.003,286.3]],slate:[[.179,.004,286],[.213,.004,264.4],[.253,.006,261.2],[.283,.007,259.5],[.311,.008,259.7],[.346,.01,256.5],[.398,.012,253.8],[.49,.016,247.6],[.537,.015,261.1],[.583,.014,263.3],[.768,.01,261.3],[.949,.003,264.6]],sage:[[.179,.004,167.4],[.211,.004,160.2],[.251,.004,164.2],[.281,.005,164.9],[.311,.005,167.4],[.347,.006,167.4],[.399,.008,167.4],[.488,.009,169.8],[.533,.018,170.8],[.579,.016,170.5],[.766,.01,167.5],[.947,.002,167.7]],olive:[[.18,.004,128.3],[.212,.004,128.3],[.252,.005,129],[.281,.006,131.4],[.31,.007,131.4],[.346,.008,134.4],[.399,.01,136],[.488,.012,140.8],[.535,.018,139.6],[.581,.016,140.1],[.766,.013,139.5],[.947,.003,144.8]],sand:[[.178,.002,106.6],[.213,.002,106.6],[.253,.003,106.6],[.283,.004,99],[.312,.004,100.7],[.349,.006,102.2],[.401,.007,96.1],[.49,.01,91.7],[.535,.011,94.1],[.581,.011,94],[.767,.009,97.4],[.948,.003,106.4]],tomato:[[.187,.012,19.6],[.208,.017,32],[.254,.054,26.9],[.291,.087,28.2],[.331,.097,28.7],[.38,.099,30],[.447,.107,31.5],[.538,.13,32.9],[.627,.194,33.3],[.665,.179,34.1],[.784,.164,36],[.899,.047,31.1]],red:[[.188,.013,19.4],[.205,.022,14.7],[.25,.064,13.1],[.289,.096,14.3],[.332,.107,15.5],[.383,.111,16.9],[.451,.121,18.9],[.544,.147,21.4],[.625,.193,23],[.665,.177,23.1],[.784,.162,22.3],[.902,.053,6.14]],ruby:[[.189,.014,2.9],[.208,.016,5.29],[.254,.06,6.54],[.292,.089,5.5],[.333,.1,6.4],[.382,.105,7.59],[.448,.117,9.02],[.544,.145,11.1],[.628,.195,13.2],[.664,.179,13.7],[.786,.161,17],[.905,.053,355.8]],crimson:[[.189,.014,354.2],[.207,.022,352.9],[.256,.059,353.9],[.293,.094,354.1],[.333,.104,354.7],[.382,.109,355.5],[.45,.12,356.7],[.542,.148,358.3],[.634,.213,1.3],[.664,.197,1.95],[.787,.167,6.72],[.909,.054,346.7]],pink:[[.191,.017,334.9],[.207,.031,338.2],[.261,.061,337.5],[.299,.098,340.1],[.338,.104,340.6],[.389,.107,341.6],[.459,.119,342.6],[.545,.145,344.1],[.617,.208,346.1],[.65,.197,346.2],[.789,.19,350.7],[.905,.059,343.2]],plum:[[.19,.017,327],[.21,.031,327.7],[.266,.062,326.7],[.307,.088,325.3],[.343,.095,324.6],[.389,.097,324.2],[.456,.106,323.4],[.545,.128,322.2],[.579,.188,322.1],[.616,.182,322.1],[.786,.154,322.1],[.906,.055,325.8]],purple:[[.192,.022,316],[.213,.031,314.3],[.266,.062,312],[.308,.083,310.7],[.344,.091,310.1],[.388,.097,309.7],[.45,.108,308.7],[.541,.133,307.1],[.555,.183,305.9],[.596,.177,306.3],[.785,.156,307.9],[.911,.049,310.9]],violet:[[.191,.026,290.5],[.211,.032,299.5],[.271,.066,293.9],[.312,.093,291.7],[.348,.099,291.4],[.39,.102,291.8],[.445,.111,291.6],[.516,.131,290.2],[.542,.179,288.1],[.588,.17,289.7],[.778,.137,293.6],[.912,.045,292.6]],iris:[[.193,.022,284.2],[.209,.029,286.5],[.273,.069,278.6],[.319,.102,276.1],[.358,.109,277.4],[.399,.112,279.6],[.448,.12,280.8],[.507,.138,281.1],[.54,.184,278.3],[.587,.172,281.2],[.776,.131,286.6],[.914,.042,287]],indigo:[[.191,.025,276.7],[.209,.03,276],[.272,.069,267.8],[.319,.093,267],[.362,.105,267.5],[.404,.111,268.3],[.45,.12,268.8],[.503,.137,268.4],[.544,.191,267.1],[.59,.176,269.2],[.777,.123,273.3],[.911,.043,270]],blue:[[.193,.026,256.8],[.213,.03,258.8],[.274,.067,254],[.317,.1,248.3],[.365,.108,249.7],[.416,.112,251.7],[.475,.121,252.8],[.541,.14,253.2],[.649,.193,251.8],[.689,.17,251.5],[.768,.135,248.8],[.907,.051,238.3]],cyan:[[.191,.017,219.9],[.214,.018,225.4],[.272,.044,222.5],[.315,.063,222.1],[.362,.07,221.5],[.414,.075,221.7],[.478,.083,221.4],[.558,.098,220.7],[.661,.122,221.5],[.698,.12,219.1],[.786,.115,213.4],[.909,.057,211.7]],teal:[[.189,.012,184.5],[.217,.017,189.3],[.274,.038,186.3],[.317,.055,187],[.363,.06,186.5],[.414,.065,185.4],[.473,.074,184.5],[.539,.087,183.5],[.649,.113,182],[.687,.123,180.3],[.789,.147,175.7],[.905,.072,175.3]],jade:[[.188,.014,166.3],[.216,.018,166.1],[.272,.042,166.8],[.316,.057,168],[.362,.064,168.5],[.411,.068,169.7],[.468,.075,170.6],[.537,.088,171.8],[.642,.115,170.8],[.678,.125,169.9],[.785,.156,167.1],[.903,.078,167]],green:[[.189,.013,163.3],[.213,.016,162.2],[.271,.039,162.7],[.318,.057,161.5],[.365,.066,161.1],[.413,.073,160.7],[.467,.083,159.9],[.527,.096,159.2],[.64,.133,157.8],[.676,.141,157.6],[.78,.166,157.2],[.905,.083,158.3]],grass:[[.188,.014,155.8],[.211,.014,151.5],[.267,.03,150.7],[.319,.052,150.4],[.367,.062,149.9],[.416,.072,149.3],[.468,.084,148.9],[.524,.097,148.2],[.652,.147,147.4],[.69,.145,147.6],[.78,.142,148.5],[.911,.078,144.9]],brown:[[.178,.005,81.5],[.213,.007,51.6],[.254,.013,53.5],[.288,.018,55.4],[.325,.024,55.9],[.37,.032,57.7],[.429,.041,59.8],[.509,.053,62.2],[.633,.078,60.8],[.674,.075,61.5],[.798,.063,62.5],[.918,.036,75.7]],bronze:[[.181,.005,41.6],[.215,.005,41.5],[.255,.008,42.7],[.291,.01,45.5],[.329,.013,43.3],[.374,.016,44.3],[.43,.02,44.8],[.499,.024,45.2],[.627,.046,44.3],[.669,.045,44.3],[.792,.043,44.5],[.915,.017,50.3]],gold:[[.182,.002,106.6],[.216,.006,92.5],[.255,.008,88.3],[.291,.01,86.8],[.329,.011,83.7],[.374,.014,82.4],[.429,.016,80.9],[.498,.02,79.5],[.621,.049,78.1],[.662,.047,77.2],[.794,.041,77.2],[.915,.014,77.4]],sky:[[.19,.024,257.1],[.216,.029,258.5],[.271,.054,251.9],[.322,.07,247.8],[.372,.079,245.8],[.427,.087,243.6],[.488,.098,240.7],[.557,.114,237.2],[.861,.103,217.8],[.908,.073,214.9],[.793,.099,231.7],[.934,.053,214.4]],mint:[[.188,.012,192.3],[.21,.017,196.6],[.269,.039,192.5],[.313,.058,191.6],[.359,.063,188.9],[.41,.067,186.3],[.471,.073,183.4],[.54,.085,179.6],[.87,.1,178],[.916,.08,179.4],[.795,.118,176.4],[.93,.057,168.5]],lime:[[.18,.014,120.3],[.208,.019,129],[.266,.034,132.2],[.317,.047,131.8],[.363,.058,131.6],[.412,.069,131.4],[.464,.08,131.2],[.524,.095,130.9],[.888,.175,126.1],[.942,.175,123.7],[.868,.156,124.8],[.946,.082,122.6]],yellow:[[.181,.013,86],[.209,.017,92.1],[.259,.047,90.3],[.293,.069,94.2],[.333,.079,94.6],[.384,.077,93.3],[.452,.081,91.5],[.535,.095,89.9],[.927,.209,102.1],[.971,.182,109.4],[.9,.166,101.6],[.941,.075,101]],amber:[[.184,.013,77.3],[.212,.018,78.7],[.258,.044,74.6],[.296,.071,76.2],[.337,.081,76.4],[.387,.078,75.1],[.453,.082,74.5],[.536,.096,73.6],[.856,.178,81.4],[.902,.206,97],[.871,.175,85.1],[.935,.072,86]],orange:[[.186,.012,53.7],[.209,.019,67.4],[.257,.045,59.5],[.293,.08,58.6],[.335,.087,58.1],[.386,.087,55.2],[.453,.095,53.1],[.541,.116,49.7],[.689,.191,44.8],[.741,.199,46.3],[.799,.163,50.8],[.925,.052,66.2]]},i0={gray:[[.991,0,null],[.981,0,null],[.953,0,null],[.93,0,null],[.908,0,null],[.884,0,null],[.851,0,null],[.791,0,null],[.643,0,null],[.609,0,null],[.503,0,null],[.243,0,null]],mauve:[[.992,.002,321.1],[.983,.003,311.2],[.956,.006,314.2],[.932,.008,310],[.909,.01,306.6],[.886,.012,304],[.854,.014,300.6],[.794,.019,293.5],[.646,.019,292.6],[.611,.018,293.1],[.505,.016,296.1],[.245,.013,298]],slate:[[.991,.001,286.4],[.982,.003,286.3],[.956,.004,281.9],[.931,.006,283],[.91,.008,283.6],[.888,.009,281.8],[.853,.012,280.8],[.794,.016,278.1],[.646,.016,277.8],[.61,.016,273.2],[.503,.014,263.4],[.241,.01,249.5]],sage:[[.992,.003,160.4],[.981,.003,171.2],[.955,.003,170.4],[.931,.003,170.4],[.909,.004,167.7],[.885,.004,167.7],[.851,.004,169.9],[.792,.005,169.5],[.639,.01,172.4],[.605,.01,172.8],[.501,.008,175.9],[.24,.012,166.8]],olive:[[.993,.002,149.1],[.983,.003,144.8],[.956,.004,141.1],[.932,.004,142.1],[.909,.005,139.3],[.886,.006,141.1],[.852,.006,141.1],[.792,.007,140.6],[.64,.011,136.5],[.605,.012,136.5],[.5,.011,139.9],[.242,.011,138.2]],sand:[[.994,.001,106.4],[.982,.001,106.4],[.956,.002,97.6],[.932,.003,100.6],[.91,.004,95.9],[.886,.005,98.3],[.853,.006,96.6],[.792,.008,96.5],[.641,.01,106.7],[.606,.01,106.7],[.498,.008,106.7],[.243,.008,96.3]],tomato:[[.994,.003,22.8],[.984,.007,31],[.954,.022,30.9],[.926,.047,31.8],[.892,.063,31.5],[.852,.077,32],[.803,.094,32.2],[.741,.118,32.1],[.627,.194,33.3],[.604,.195,33.3],[.567,.198,32.8],[.346,.08,30.5]],red:[[.994,.003,22.8],[.983,.008,16],[.956,.021,16.2],[.928,.047,16.7],[.896,.062,17.3],[.857,.075,17.9],[.807,.089,18.4],[.745,.113,19.1],[.625,.193,23],[.6,.195,23.9],[.557,.198,25.1],[.339,.109,16.7]],ruby:[[.994,.003,356.3],[.983,.008,8.41],[.954,.022,8.56],[.928,.042,8.46],[.896,.055,8.16],[.858,.066,7.84],[.81,.08,7.49],[.749,.101,6.86],[.628,.195,13.2],[.601,.196,13.4],[.549,.199,13.9],[.341,.11,10]],crimson:[[.994,.003,356.3],[.982,.008,357.2],[.954,.026,356.3],[.925,.041,356.3],[.893,.054,355.8],[.855,.065,355.6],[.808,.078,354.8],[.75,.099,354.1],[.634,.213,1.3],[.608,.211,2.36],[.552,.207,4.49],[.341,.113,356.8]],pink:[[.994,.004,336.3],[.983,.009,340],[.954,.027,340.6],[.925,.042,340.7],[.893,.054,340.9],[.855,.067,340.9],[.809,.083,341.2],[.752,.107,341.6],[.617,.208,346.1],[.596,.207,346.5],[.557,.206,347.3],[.35,.129,345.5]],plum:[[.993,.005,316.9],[.983,.009,326],[.957,.027,325.5],[.929,.044,324.9],[.898,.057,324.4],[.86,.072,323.9],[.809,.091,323.1],[.742,.12,321.9],[.579,.188,322.1],[.553,.181,322.1],[.521,.173,322],[.338,.125,321.4]],purple:[[.993,.004,325.4],[.982,.009,313.1],[.959,.024,313.3],[.933,.039,312.1],[.901,.054,311.6],[.86,.071,311],[.804,.093,309.9],[.733,.123,308],[.555,.183,305.9],[.524,.176,305.7],[.516,.174,305.7],[.322,.11,303.8]],violet:[[.992,.003,308],[.983,.009,295],[.963,.019,296.6],[.934,.039,295.4],[.904,.057,294.1],[.864,.072,293.9],[.806,.09,293.5],[.729,.119,292.4],[.542,.179,288.1],[.511,.177,287.6],[.508,.159,288.6],[.313,.098,286.8]],iris:[[.994,.003,286.4],[.981,.009,284.1],[.961,.018,283.8],[.935,.035,283.4],[.904,.053,283.8],[.865,.07,283.1],[.808,.088,282.9],[.729,.118,281.5],[.54,.184,278.3],[.509,.186,277.5],[.51,.173,279.7],[.315,.099,277.4]],indigo:[[.994,.001,286.4],[.983,.008,271.4],[.961,.017,268.5],[.935,.034,268.5],[.903,.051,270],[.863,.071,271.5],[.807,.087,271.4],[.73,.113,270.5],[.544,.191,267.1],[.511,.195,266.5],[.51,.173,267.1],[.313,.086,268.6]],blue:[[.993,.003,247.6],[.982,.01,243.3],[.96,.02,236.7],[.937,.037,239],[.906,.053,242.8],[.864,.069,243.2],[.809,.088,243.3],[.735,.121,243],[.649,.193,251.8],[.621,.184,251.9],[.558,.189,253],[.324,.097,259]],cyan:[[.992,.004,219.2],[.98,.009,202.9],[.958,.026,203.6],[.932,.041,204.7],[.9,.054,206.5],[.859,.066,207.7],[.805,.082,209.6],[.727,.11,211.7],[.661,.122,221.5],[.627,.114,221.3],[.54,.127,223.7],[.332,.053,218.6]],teal:[[.994,.005,177.5],[.981,.009,179],[.961,.027,180.3],[.935,.042,180.2],[.9,.054,180.5],[.856,.064,181.4],[.797,.076,182.2],[.721,.097,183.5],[.649,.113,182],[.619,.11,181.2],[.53,.124,179],[.327,.05,185]],jade:[[.995,.004,172.6],[.982,.009,160.3],[.96,.022,161.9],[.934,.034,163.5],[.902,.046,164.8],[.859,.059,166.9],[.8,.077,169.5],[.721,.103,173.4],[.642,.115,170.8],[.613,.11,170.6],[.529,.127,167.2],[.326,.041,169.8]],green:[[.994,.004,159.1],[.982,.009,155.3],[.959,.023,156.4],[.933,.036,156.6],[.9,.05,157.2],[.857,.065,157.9],[.798,.084,159],[.714,.112,160.6],[.64,.133,157.8],[.611,.126,158.3],[.529,.133,158.3],[.322,.047,164.6]],grass:[[.994,.005,146.4],[.982,.009,145.9],[.961,.023,145.3],[.934,.037,146.2],[.901,.053,146.4],[.858,.071,146.8],[.798,.095,147.5],[.716,.13,148.3],[.652,.147,147.4],[.614,.142,147.3],[.527,.13,147.2],[.327,.053,148.6]],brown:[[.994,.002,63.2],[.983,.006,65.7],[.954,.013,67.8],[.926,.02,66.9],[.897,.029,65.8],[.862,.039,65.5],[.815,.053,64.2],[.747,.072,62.4],[.633,.078,60.8],[.597,.072,59.3],[.512,.058,55.5],[.332,.018,47]],bronze:[[.992,.001,15.9],[.981,.007,43],[.953,.01,44.3],[.925,.014,43.6],[.895,.018,42.6],[.86,.023,43.4],[.811,.03,41.9],[.742,.039,41.2],[.627,.046,44.3],[.588,.045,42.4],[.51,.044,38.4],[.329,.029,35.2]],gold:[[.994,.001,106.4],[.981,.009,97.3],[.953,.012,94.7],[.926,.015,93.2],[.896,.019,90.7],[.86,.025,88.4],[.81,.032,83.4],[.739,.042,78.2],[.621,.049,78.1],[.588,.047,77.4],[.504,.039,78.1],[.332,.019,81.7]],sky:[[.993,.005,211.9],[.98,.01,217.7],[.961,.024,219.6],[.936,.036,220.4],[.903,.047,221.4],[.861,.058,222.9],[.806,.072,225.7],[.729,.096,228],[.861,.103,217.8],[.838,.104,219.6],[.526,.108,232.5],[.351,.057,241.6]],mint:[[.993,.005,183.7],[.982,.01,178.7],[.96,.03,179.6],[.933,.047,179],[.899,.061,178.7],[.856,.072,178.7],[.798,.085,178.2],[.722,.107,177.7],[.87,.1,178],[.841,.1,177.8],[.512,.095,176],[.35,.051,181.4]],lime:[[.992,.004,120.7],[.982,.01,116.7],[.959,.043,119.1],[.932,.069,120.4],[.897,.087,121.8],[.853,.099,123.4],[.795,.111,125.3],[.724,.135,128.1],[.888,.175,126.1],[.859,.188,126.7],[.544,.111,128.6],[.354,.057,121.2]],yellow:[[.993,.005,106.5],[.988,.025,102.9],[.974,.084,104.4],[.953,.117,101.7],[.925,.141,98.2],[.881,.134,95.4],[.836,.12,92.8],[.766,.137,89.8],[.927,.209,102.1],[.897,.185,97.5],[.574,.136,81.7],[.358,.046,86.6]],amber:[[.994,.003,84.6],[.986,.024,100.3],[.969,.069,100.4],[.945,.104,98.2],[.918,.133,98.4],[.881,.124,93.2],[.827,.122,86.2],[.758,.14,76.7],[.856,.178,81.4],[.831,.168,80.9],[.569,.144,67.3],[.352,.049,53.7]],orange:[[.992,.003,40.7],[.979,.015,70.8],[.958,.037,78.1],[.92,.081,74.2],[.89,.107,70.8],[.857,.11,64.4],[.805,.113,59.9],[.745,.132,54.8],[.689,.191,44.8],[.662,.194,43.5],[.592,.186,47],[.35,.069,40.8]]},Vi=e=>(e/=255,e<=.04045?e/12.92:((e+.055)/1.055)**2.4),K6=(e,t,n)=>{const r=.4122214708*e+.5363325363*t+.0514459929*n,i=.2119034982*e+.6806995451*t+.1073969566*n,a=.0883024619*e+.2817188376*t+.6299787005*n,s=Math.cbrt(r),u=Math.cbrt(i),o=Math.cbrt(a),l=.2104542553*s+.793617785*u-.0040720468*o,h=1.9779984951*s-2.428592205*u+.4505937099*o,d=.0259040371*s+.7827717662*u-.808675766*o;return[l,h,d]},X6=([e,t,n])=>{const r=Math.sqrt(t*t+n*n),i=Math.atan2(n,t)*180/Math.PI;return[e,r,(i+360)%360]},Z6=e=>{const t=e.replace("#",""),n=parseInt(t.length===3?t.replace(/./g,s=>s+s):t,16),r=Vi(n>>16&255),i=Vi(n>>8&255),a=Vi(n&255);return X6(K6(r,i,a))},a0=["gray","mauve","slate","sage","olive","sand"];function Ei(e,t){return Object.fromEntries(t.map(n=>[n,e[n]]))}Ei(i0,n0);Ei(r0,n0);Ei(i0,a0);Ei(r0,a0);const J6={light:{1:[98.8,.015],2:[97.8,.018],3:[95.8,.025],4:[92,.04],5:[89,.05],6:[85,.07],7:[80.5,.08],8:[74,.11],9:[60,.22],10:[56,.23],11:[50,.19],12:[25,.18]},dark:{1:[19,.015],2:[21,.018],3:[25.5,.055],4:[29.3,.084],5:[33.5,.098],6:[39.05,.107],7:[45,.11],8:[55,.13],9:[60,.22],10:[67,.18],11:[79.3,.12],12:[95,.04]}},ex={light:{1:[99,.005],2:[97.5,.005],3:[95,.006],4:[92,.006],5:[88,.005],6:[83,.004],7:[76,.003],8:[65,.003],9:[55,.004],10:[45,.005],11:[35,.006],12:[20,.008]},dark:{1:[14,.008],2:[17,.008],3:[21,.01],4:[25,.01],5:[30,.008],6:[36,.006],7:[44,.005],8:[54,.004],9:[66,.003],10:[76,.004],11:[87,.005],12:[96,.006]}};function tx(e){const[t,n,r]=Z6(e);return{l:t*100,c:n,h:r??0}}const It=(e,t,n)=>`oklch(${e}% ${t} ${n})`;function nx(e){var m,k,C,y,I,S,D,R;const{accentColor:t,mode:n}=e,r=tx(t),i=J6[n],a=ex[n],s=30,u=r.c/.22,o=x=>{const H=i[x];if(!H)return It(60,.22,r.h);const[B,U]=H;return x==="9"?It(r.l,r.c,r.h):It(B,U*u,r.h)},l=x=>{const H=a[x];if(!H)return It(50,.005,s);const[B,U]=H;return It(B,U,s)},h=It(r.l,r.c,r.h),d=It(r.l*.9,r.c*.9,(r.h+20)%360),p=It(r.l*.8,r.c*.8,(r.h+40)%360),f=n==="light"?{"--kin-bg-base":l("1"),"--kin-bg-elevated":l("2"),"--kin-bg-surface":l("3"),"--kin-bg-muted":l("4"),"--kin-border":`oklch(${((m=a[6])==null?void 0:m[0])??83}% ${((k=a[6])==null?void 0:k[1])??.004} ${s} / 0.4)`,"--kin-border-subtle":`oklch(${((C=a[5])==null?void 0:C[0])??88}% ${((y=a[5])==null?void 0:y[1])??.005} ${s} / 0.25)`,"--kin-text":l("12"),"--kin-text-secondary":l("10"),"--kin-text-muted":l("8"),"--kin-accent":o("9"),"--kin-bubble-user":o("9"),"--kin-bubble-user-text":"oklch(100% 0 0)","--kin-bubble-assistant":l("2"),"--kin-bubble-assistant-text":l("12"),"--kin-glow-1":h,"--kin-glow-2":d,"--kin-glow-3":p}:{"--kin-bg-base":l("1"),"--kin-bg-elevated":l("2"),"--kin-bg-surface":l("3"),"--kin-bg-muted":l("4"),"--kin-border":`oklch(${((I=a[6])==null?void 0:I[0])??83}% ${((S=a[6])==null?void 0:S[1])??.004} ${s} / 0.4)`,"--kin-border-subtle":`oklch(${((D=a[5])==null?void 0:D[0])??88}% ${((R=a[5])==null?void 0:R[1])??.005} ${s} / 0.25)`,"--kin-text":l("12"),"--kin-text-secondary":l("11"),"--kin-text-muted":l("9"),"--kin-accent":o("9"),"--kin-bubble-user":l("12"),"--kin-bubble-user-text":l("1"),"--kin-bubble-assistant":l("3"),"--kin-bubble-assistant-text":l("12"),"--kin-glow-1":h,"--kin-glow-2":d,"--kin-glow-3":p};return Object.entries(f).map(([x,H])=>`${x}: ${H};`).join(`
114
+ `)}const rx={accentColor:"#FF4D00",mode:"light"},ix={inploi:{accentColor:"#FF4D00",mode:"light"},boots:{accentColor:"#05054b",mode:"light"},wagamama:{accentColor:"#df3228",mode:"dark"},gails:{accentColor:"#cf2030",mode:"light"}},ax=`:host{--kin-bg-base: #0a0a0a;--kin-bg-elevated: #141414;--kin-bg-surface: #1a1a1a;--kin-bg-muted: #262626;--kin-border: rgba(255, 255, 255, .08);--kin-border-subtle: rgba(255, 255, 255, .05);--kin-text: #ffffff;--kin-text-secondary: #a1a1a1;--kin-text-muted: #8a8a8a;--kin-accent: #635bff;--kin-bubble-user: #f5f5f5;--kin-bubble-user-text: #171717;--kin-bubble-assistant: #1a1a1a;--kin-bubble-assistant-text: #ffffff;--kin-glow-1: #ff6b6b;--kin-glow-2: #c850c0;--kin-glow-3: #635bff;--kin-focus-ring: var(--kin-accent);--kin-focus-ring-offset: 2px;--kin-radius: 16px;--kin-radius-sm: 8px;--kin-panel-width: 450px;--kin-panel-height: min(640px, calc(100svh - 16px));--kin-launcher-width: 380px;--kin-launcher-width-expanded: 450px;--kin-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--kin-font-size: 14px;--kin-line-height: 1.5;--kin-transition: .2s ease;--kin-open-duration: .35s;--kin-open-easing: cubic-bezier(.32, .72, 0, 1)}.kin-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.kin-skip-link{position:absolute;top:-100%;left:50%;transform:translate(-50%);z-index:1000000;padding:8px 16px;background:var(--kin-bg-elevated);color:var(--kin-text);border-radius:var(--kin-radius-sm);text-decoration:none;font-weight:500}.kin-skip-link:focus{top:8px;outline:2px solid var(--kin-focus-ring);outline-offset:2px}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.kin-widget{position:fixed;bottom:24px;left:50%;transform:translate(-50%);z-index:999999;font-family:var(--kin-font);font-size:var(--kin-font-size);line-height:var(--kin-line-height);display:flex;flex-direction:column;align-items:center;gap:16px}.kin-launcher{width:var(--kin-launcher-width);max-width:calc(100vw - 48px);transition:width var(--kin-open-duration) var(--kin-open-easing)}.kin-launcher:has(:focus-within){width:var(--kin-launcher-width-expanded)}.kin-launcher.is-open{width:var(--kin-panel-width);transition:none}.kin-launcher-form{position:relative}.kin-launcher-input-wrapper{position:relative;display:flex;align-items:center;background:var(--kin-bg-elevated);border-radius:24px;padding:4px 6px 4px 16px;gap:12px;box-shadow:0 0 0 1px var(--kin-border)}.kin-launcher-input-wrapper:focus-within{box-shadow:0 0 0 1px var(--kin-border)}.kin-launcher-input-wrapper:before{content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;border-radius:25px;padding:2px;background:linear-gradient(90deg,var(--kin-glow-1),var(--kin-glow-2),var(--kin-glow-3),var(--kin-glow-2),var(--kin-glow-1));background-size:300% 100%;animation:kin-gradient 4s ease infinite;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.85;transition:opacity var(--kin-transition);pointer-events:none}.kin-launcher-input-wrapper:after{content:"";position:absolute;top:-2px;right:-2px;bottom:-2px;left:-2px;border-radius:26px;background:linear-gradient(90deg,var(--kin-glow-1),var(--kin-glow-2),var(--kin-glow-3),var(--kin-glow-2),var(--kin-glow-1));background-size:300% 100%;animation:kin-gradient 4s ease infinite;filter:blur(6px);opacity:.35;transition:opacity var(--kin-transition);pointer-events:none;z-index:-1}.kin-launcher-input-wrapper:focus-within:before{opacity:1}.kin-launcher-input-wrapper:focus-within:after{opacity:.5}@keyframes kin-gradient{0%,to{background-position:0% 50%}50%{background-position:100% 50%}}.kin-launcher-input{flex:1;background:transparent;border:none;outline:none;color:var(--kin-text);font-size:var(--kin-font-size);font-family:var(--kin-font);padding:12px 0;min-width:0}.kin-launcher-input::placeholder{color:var(--kin-text-muted)}.kin-launcher-send{width:36px;height:36px;border-radius:50%;border:none;background:var(--kin-bg-muted);color:var(--kin-text-muted);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--kin-transition);flex-shrink:0}.kin-launcher-send:focus-visible{outline:2px solid var(--kin-focus-ring);outline-offset:var(--kin-focus-ring-offset)}.kin-launcher-send:not(:disabled){background:var(--kin-text);color:var(--kin-bg-base)}.kin-launcher-send:not(:disabled):hover{transform:scale(1.05)}.kin-launcher-send:disabled{cursor:not-allowed;opacity:.5}.kin-launcher-send svg{width:18px;height:18px}.kin-launcher-attach{width:36px;height:36px;border-radius:50%;border:none;background:transparent;color:var(--kin-text-muted);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--kin-transition);flex-shrink:0;margin-right:-8px}.kin-launcher-attach:focus-visible{outline:2px solid var(--kin-focus-ring);outline-offset:var(--kin-focus-ring-offset)}.kin-launcher-attach:not(:disabled):hover{background:var(--kin-bg-muted);color:var(--kin-text)}.kin-launcher-attach:disabled{cursor:not-allowed;opacity:.5}.kin-launcher-attach svg{width:18px;height:18px}.kin-launcher-attach.is-uploading svg{animation:kin-spin 1s linear infinite}@keyframes kin-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.kin-upload-error{position:absolute;bottom:100%;left:50%;transform:translate(-50%);margin-bottom:8px;padding:8px 12px;background:#dc2626;color:#fff;font-size:12px;border-radius:var(--kin-radius-sm);white-space:nowrap;max-width:calc(100% - 32px);overflow:hidden;text-overflow:ellipsis;animation:kin-error-in .2s ease}@keyframes kin-error-in{0%{opacity:0;transform:translate(-50%) translateY(4px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.kin-char-limit-error{position:absolute;bottom:100%;left:50%;transform:translate(-50%);margin-bottom:8px;padding:8px 12px;background:#dc2626;color:#fff;font-size:12px;border-radius:var(--kin-radius-sm);white-space:nowrap;animation:kin-error-in .2s ease}.kin-panel{width:var(--kin-panel-width);max-width:calc(100vw - 32px);height:var(--kin-panel-height);max-height:calc(100svh - 120px);background:var(--kin-bg-base);border-radius:var(--kin-radius);border:1px solid var(--kin-border);box-shadow:0 4px 24px #0000001f,0 0 0 1px var(--kin-border);display:flex;flex-direction:column;overflow:hidden;animation:kin-panel-in var(--kin-open-duration) var(--kin-open-easing) both;will-change:transform,opacity}@keyframes kin-panel-in{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.kin-header{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid var(--kin-border);background:var(--kin-bg-elevated)}.kin-header-title{font-size:14px;font-weight:500;color:var(--kin-text);margin:0}.kin-header-actions{display:flex;align-items:center;gap:4px}.kin-icon-btn{width:32px;height:32px;border-radius:var(--kin-radius-sm);border:none;background:transparent;color:var(--kin-text-muted);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--kin-transition)}.kin-icon-btn:hover{background:var(--kin-bg-muted);color:var(--kin-text)}.kin-icon-btn:focus-visible{outline:2px solid var(--kin-focus-ring);outline-offset:var(--kin-focus-ring-offset);background:var(--kin-bg-muted);color:var(--kin-text)}.kin-icon-btn svg{width:18px;height:18px}.kin-clear-btn{font-size:14px;transition:all var(--kin-transition);color:var(--kin-accent)}.kin-clear-btn:hover{background:var(--kin-bg-muted);color:var(--kin-accent)}.kin-clear-confirm{background:var(--kin-accent);color:#fff}.kin-clear-confirm:hover{background:var(--kin-accent);opacity:.9;color:#fff}.kin-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:16px}.kin-messages-empty{justify-content:center;align-items:center}.kin-empty-state{text-align:center;padding:24px;animation:kin-fade-in .4s ease both;animation-delay:.15s}@keyframes kin-fade-in{0%{opacity:0}to{opacity:1}}.kin-empty-icon{width:48px;height:48px;margin:0 auto 16px;color:var(--kin-text-muted);opacity:.5}.kin-empty-icon svg{width:100%;height:100%}.kin-empty-text{color:var(--kin-text);font-size:15px;margin:0 0 8px}.kin-empty-subtext{color:var(--kin-text-muted);font-size:13px;margin:0}@keyframes kin-starter-fade-in{0%{opacity:0}to{opacity:1}}.kin-input-row{display:flex;align-items:center;gap:12px;flex:1}.kin-quick-replies{display:flex;flex-wrap:wrap;gap:6px}.kin-quick-reply-btn{display:inline-flex;align-items:center;padding:6px 14px;background:color-mix(in srgb,var(--kin-accent) 12%,transparent);border:1px solid color-mix(in srgb,var(--kin-accent) 30%,transparent);border-radius:20px;color:var(--kin-accent);font-size:13px;font-family:inherit;font-weight:500;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease,transform .1s ease;white-space:nowrap;opacity:0;animation:kin-starter-fade-in .22s ease-out forwards}.kin-quick-reply-btn:nth-child(1){animation-delay:.03s}.kin-quick-reply-btn:nth-child(2){animation-delay:.07s}.kin-quick-reply-btn:nth-child(3){animation-delay:.11s}.kin-quick-reply-btn:nth-child(4){animation-delay:.15s}.kin-quick-reply-btn:nth-child(5){animation-delay:.19s}.kin-quick-reply-btn:hover{background:var(--kin-accent);border-color:var(--kin-accent);color:#fff}.kin-quick-reply-btn:focus{outline:none;box-shadow:0 0 0 2px var(--kin-focus-ring)}.kin-quick-reply-btn:active{transform:scale(.96)}.kin-launcher-input-wrapper.has-quick-replies{flex-direction:column;align-items:stretch;gap:8px;padding:10px 6px 4px 14px;border-radius:24px}@media (prefers-reduced-motion: reduce){.kin-quick-reply-btn,.kin-message,.kin-typing-container{animation:none;opacity:1;transform:none}}.kin-divider{display:flex;align-items:center;gap:12px;color:var(--kin-glow-1);font-size:11px;text-transform:uppercase;letter-spacing:.5px;font-weight:500}.kin-divider:before,.kin-divider:after{content:"";flex:1;height:1px;background:linear-gradient(90deg,transparent,var(--kin-glow-1),transparent);opacity:.3}.kin-system-message{display:flex;justify-content:center;padding:8px 16px}.kin-system-message span{font-size:12px;color:var(--kin-text-muted);background:var(--kin-bg-surface);padding:6px 12px;border-radius:12px;border:1px solid var(--kin-border)}.kin-message{display:flex;flex-direction:column;max-width:85%;animation:kin-msg-in .3s var(--kin-open-easing) both}.kin-message-user{align-self:flex-end}.kin-message-assistant{align-self:flex-start}@keyframes kin-msg-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.kin-message:nth-child(1){animation-delay:.05s}.kin-message:nth-child(2){animation-delay:.1s}.kin-message:nth-child(3){animation-delay:.15s}.kin-message:nth-child(4){animation-delay:.2s}.kin-message:nth-child(5){animation-delay:.25s}.kin-message:nth-child(6){animation-delay:.3s}.kin-message:nth-child(n+7){animation-delay:.35s}.kin-bubble{padding:12px 16px;border-radius:var(--kin-radius)}.kin-message-user .kin-bubble{background:var(--kin-bubble-user);color:var(--kin-bubble-user-text);border-bottom-right-radius:4px}.kin-message-assistant .kin-bubble{background:var(--kin-bubble-assistant);color:var(--kin-bubble-assistant-text);border:1px solid var(--kin-border);border-bottom-left-radius:4px}.kin-bubble p{margin:0}.kin-message-footer{display:flex;align-items:center;gap:6px;margin-top:6px;padding-left:4px;font-size:11px;color:var(--kin-text-muted)}.kin-loading-dots{display:flex;gap:6px;padding:8px}.kin-loading-dots span{width:8px;height:8px;background:var(--kin-text-muted);border-radius:50%;animation:kin-typing 1.4s ease-in-out infinite}.kin-loading-dots span:nth-child(2){animation-delay:.15s}.kin-loading-dots span:nth-child(3){animation-delay:.3s}.kin-typing-container{display:flex;flex-direction:column;align-items:flex-start;align-self:flex-start;width:fit-content;animation:kin-msg-in .3s var(--kin-open-easing) both}.kin-typing{display:inline-flex;align-items:center;gap:5px;padding:12px 16px;min-height:44px;box-sizing:border-box;background:var(--kin-bubble-assistant);border:1px solid var(--kin-border);border-radius:var(--kin-radius);border-bottom-left-radius:4px}.kin-typing span{width:8px;height:8px;background:var(--kin-text-muted);border-radius:50%;animation:kin-typing 1.4s ease-in-out infinite}.kin-typing span:nth-child(2){animation-delay:.15s}.kin-typing span:nth-child(3){animation-delay:.3s}@keyframes kin-typing{0%,to{opacity:.3;transform:scale(.85)}50%{opacity:1;transform:scale(1)}}.kin-markdown{line-height:1.65;font-size:14px;color:var(--kin-bubble-assistant-text)}.kin-markdown p{margin:0 0 1em}.kin-markdown p:last-child{margin-bottom:0}.kin-markdown strong,.kin-markdown b{font-weight:600}.kin-markdown em,.kin-markdown i{font-style:italic}.kin-markdown a{color:var(--kin-accent);text-decoration:underline;text-underline-offset:2px;transition:color var(--kin-transition)}.kin-markdown a:hover{text-decoration-thickness:2px}.kin-markdown a:focus-visible{outline:2px solid var(--kin-focus-ring);outline-offset:2px;border-radius:2px}.kin-markdown code{background:rgba(255,255,255,.1);padding:.15em .4em;border-radius:4px;font-family:SF Mono,Monaco,Consolas,monospace;font-size:.875em}.kin-markdown pre{background:rgba(0,0,0,.4);padding:14px 16px;border-radius:var(--kin-radius-sm);overflow-x:auto;margin:1em 0;border:1px solid var(--kin-border)}.kin-markdown pre code{background:none;padding:0;font-size:.85em;line-height:1.5}.kin-markdown ul{margin:.75em 0;padding-left:1.5em;list-style-type:disc}.kin-markdown ol{margin:.75em 0;padding-left:1.5em;list-style-type:decimal}.kin-markdown li{margin:.35em 0}.kin-markdown li::marker{color:var(--kin-text-muted)}.kin-markdown ul ul,.kin-markdown ol ol,.kin-markdown ul ol,.kin-markdown ol ul{margin:.25em 0}.kin-markdown blockquote{border-left:3px solid var(--kin-accent);margin:1em 0;padding:.5em 0 .5em 1em;color:var(--kin-text-secondary);font-style:italic}.kin-markdown h1,.kin-markdown h2,.kin-markdown h3,.kin-markdown h4{font-weight:600;margin:1.25em 0 .5em;line-height:1.3}.kin-markdown h1:first-child,.kin-markdown h2:first-child,.kin-markdown h3:first-child{margin-top:0}.kin-markdown h1{font-size:1.4em}.kin-markdown h2{font-size:1.25em}.kin-markdown h3{font-size:1.1em}.kin-markdown h4{font-size:1em}.kin-markdown table{width:100%;border-collapse:collapse;margin:1em 0;font-size:.9em}.kin-markdown th,.kin-markdown td{padding:.5em .75em;border:1px solid var(--kin-border);text-align:left}.kin-markdown th{background:var(--kin-bg-muted);font-weight:600}.kin-markdown hr{border:none;border-top:1px solid var(--kin-border);margin:1.5em 0}.kin-markdown hr~p,.kin-markdown hr+p{display:flex;flex-wrap:wrap;align-items:center;gap:5px;font-size:.75em;color:var(--kin-text-muted);margin:-1em 0 0;line-height:1.6}.kin-markdown hr~p a,.kin-markdown hr+p a{display:inline-flex;align-items:center;padding:1px 8px 2px;background:color-mix(in srgb,var(--kin-accent) 10%,transparent);border:1px solid color-mix(in srgb,var(--kin-accent) 22%,transparent);border-radius:10px;color:var(--kin-accent);text-decoration:none;font-size:1em;font-weight:500;white-space:nowrap;opacity:1;transition:background var(--kin-transition),border-color var(--kin-transition)}.kin-markdown hr~p a:hover,.kin-markdown hr+p a:hover{background:color-mix(in srgb,var(--kin-accent) 20%,transparent);border-color:var(--kin-accent)}.kin-markdown hr~p a:focus-visible,.kin-markdown hr+p a:focus-visible{outline:2px solid var(--kin-focus-ring);outline-offset:2px}.kin-markdown input[type=checkbox]{margin-right:.5em;accent-color:var(--kin-accent)}.kin-markdown .streamdown-caret{display:inline-block;width:2px;height:1em;background:var(--kin-accent);margin-left:2px;animation:kin-caret 1s ease-in-out infinite;vertical-align:text-bottom}@keyframes kin-caret{0%,to{opacity:1}50%{opacity:0}}.kin-messages::-webkit-scrollbar{width:6px}.kin-messages::-webkit-scrollbar-track{background:transparent}.kin-messages::-webkit-scrollbar-thumb{background:var(--kin-bg-muted);border-radius:3px}.kin-messages::-webkit-scrollbar-thumb:hover{background:var(--kin-text-muted)}@media (max-width: 640px){.kin-widget,.kin-widget *,.kin-widget *:before,.kin-widget *:after{box-sizing:border-box}.kin-widget{left:0;right:0;bottom:0;transform:none;width:100%;max-width:100vw;gap:0;align-items:stretch;overflow:hidden}.kin-launcher,.kin-launcher:has(:focus-within),.kin-launcher.is-open{width:100%!important;max-width:100%!important;transition:none}.kin-launcher{padding:8px 12px;padding-bottom:max(8px,calc(env(safe-area-inset-bottom,0px) + 8px))}.kin-launcher-input-wrapper{border-radius:24px;box-shadow:0 0 0 1px var(--kin-border);background:var(--kin-bg-elevated);padding:6px 6px 6px 16px;gap:8px}.kin-launcher-input-wrapper:before,.kin-launcher-input-wrapper:after{display:none}.kin-launcher-input-wrapper:focus-within{box-shadow:0 0 0 2px var(--kin-accent)}.kin-launcher-input{padding:10px 0}.kin-launcher-send:not(:disabled){background:var(--kin-accent);color:#fff}.kin-launcher-input{font-size:16px}.kin-icon-btn{width:44px;height:44px}.kin-launcher-send,.kin-launcher-attach{width:40px;height:40px}.kin-widget:has(.kin-panel){top:0;height:100vh;height:100dvh;background:var(--kin-bg-base);touch-action:manipulation}.kin-widget:has(.kin-panel) .kin-panel{width:100%;max-width:none;max-height:none;flex:1;min-height:0;border-radius:0;border:none;box-shadow:none;animation:none}.kin-widget:has(.kin-panel) .kin-header{padding-top:max(16px,env(safe-area-inset-top,16px));padding-left:max(16px,env(safe-area-inset-left,16px));padding-right:max(16px,env(safe-area-inset-right,16px))}.kin-widget:has(.kin-panel) .kin-header-title{font-size:16px;font-weight:600}.kin-widget:has(.kin-panel) .kin-messages{padding-left:max(16px,env(safe-area-inset-left,16px));padding-right:max(16px,env(safe-area-inset-right,16px));overscroll-behavior:contain}.kin-widget:has(.kin-panel) .kin-launcher{padding:0;border-top:1px solid var(--kin-border)}.kin-widget:has(.kin-panel) .kin-launcher-input-wrapper{border-radius:0;box-shadow:none;background:var(--kin-bg-base);padding:8px 12px;padding-bottom:max(8px,calc(env(safe-area-inset-bottom,0px) + 8px))}.kin-widget:has(.kin-panel) .kin-launcher-input-wrapper:focus-within{box-shadow:none}}@media (forced-colors: active){.kin-launcher-input-wrapper,.kin-panel,.kin-bubble{border:2px solid CanvasText}.kin-launcher-send,.kin-icon-btn{border:1px solid ButtonText}.kin-launcher-input-wrapper:before{display:none}}@media (min-resolution: 1dppx){.kin-widget{font-size:max(14px,1rem)}.kin-panel{min-height:auto}.kin-messages{word-wrap:break-word;overflow-wrap:break-word}}
115
+ `,sx="wss://agents.inploi.com",ux=({serviceUrl:e=sx,theme:t=rx,starterPrompts:n=[],mode:r="floating",container:i})=>ki.createPlugin(({logger:a,publishableKey:s})=>{if(!s)throw new Error("Kin plugin requires a publishableKey. Pass it to initialiseSdk().");let u=!1,o=null,l=t,h=null,d=!1,p=null,f=null,m=!1;const k=r==="embedded",C=()=>{if(i)if(typeof i=="string"){const H=document.querySelector(i);if(H instanceof HTMLElement)return f=H,m=!1,H}else return f=i,m=!1,i;const R=document.getElementById("inploi-kin-root");if(R)return f=R,m=!1,R;const x=document.createElement("div");return x.id="inploi-kin-root",k&&(x.className="kin-embedded"),document.body.appendChild(x),f=x,m=!0,x},y=R=>{const x=nx(R);let H=`${ax}
116
116
 
117
117
  /* Theme overrides */
118
118
  :host {
119
119
  ${x}
120
- }`;return T&&(F+=`
120
+ }`;return k&&(H+=`
121
121
  /* Embedded mode overrides */
122
122
  .kin-widget {
123
123
  position: relative !important;
@@ -143,4 +143,4 @@ ${x}
143
143
  transform: none !important;
144
144
  animation: none !important;
145
145
  }
146
- `),F},I=()=>{if(typeof window>"u")return;const R=C(),x=R.shadowRoot||R.attachShadow({mode:"open"});Ts(Ot($e,{},[Ot("style",{id:"kin-styles"},y(l)),Ot(W6,{starterPrompts:n,embedded:T,onSendMessage:F=>{o&&o.sendMessage(F)},onOpen:()=>{S(),$.isOpen.value=!0,$.clearUnreadMessages()},onClose:()=>{T||($.isOpen.value=!1)},onConnect:()=>{S()},onClearData:()=>{o&&o.clearData()},onUploadFile:async(F,P)=>{if(!o){$.setUploadState("error",F.name,"Not connected");return}$.setUploadState("uploading",F.name);const U=await o.uploadFile(F,P);U.success||$.setUploadState("error",F.name,U.error)}})]),x)},S=()=>{if(o)return;$.connectionState.value="connecting",h||(h=gi.getOrCreateAnonymousId());const R=`${e}/agent/candidate/${h}?key=${s}`;o=$0({url:R,onMessage:x=>{switch(x.type){case"authenticated":a.info(`Authenticated with ${x.company}`),$.connectionState.value="connected";break;case"history":x.messages&&x.messages.length>0&&(a.info(`Loaded ${x.messages.length} messages from server`),$.setMessages(x.messages));break;case"response_start":$.isStreaming.value=!0,$.addMessage({role:"assistant",content:""});break;case"response_chunk":$.appendToLastMessage(x.content||"");break;case"response_end":$.isStreaming.value=!1,$.syncToOtherTabs(),$.isOpen.value||$.setHasUnreadMessages(!0);break;case"data_cleared":a.info("User data cleared"),$.clearMessages(),$.addMessage({role:"system",content:"Your conversation data has been cleared."});break;case"guardrail_block":$.isStreaming.value=!1,a.warn("Content blocked by safety policy"),$.addMessage({role:"system",content:x.content||"I'm not able to help with that request."}),$.syncToOtherTabs();break;case"upload_received":a.info(`File upload received: ${x.fileName}`),$.setUploadState("processing",x.fileName);break;case"file_processing":a.info(`Processing file: ${x.fileName}`),$.setUploadState("processing",x.fileName);break;case"file_processed":x.status==="success"?(a.info(`File processed successfully: ${x.fileName}`),$.setUploadState("success",x.fileName),setTimeout(()=>$.resetUploadState(),2e3)):(a.error(`File processing failed: ${x.error}`),$.setUploadState("error",x.fileName,x.error));break;case"error":$.isStreaming.value=!1,$.uploadState.value!=="idle"&&$.setUploadState("error",void 0,x.content),a.error("Kin error:",x.content),$.addMessage({role:"assistant",content:x.content||"An error occurred"});break}},onOpen:()=>{a.info("WebSocket opened, awaiting authentication...")},onClose:()=>{a.info("Disconnected from Kin service"),$.connectionState.value="disconnected",$.isStreaming.value=!1;const x=d;o=null,d=!1,!x&&$.isOpen.value&&(a.info("Attempting to reconnect..."),p=setTimeout(()=>{p=null,S()},1e3))},onError:x=>{a.error("Kin connection error:",x),$.connectionState.value="error",$.isStreaming.value=!1}})},D=()=>{p&&(clearTimeout(p),p=null),o&&(d=!0,o.disconnect(),o=null)};return{prepare:()=>{typeof window>"u"||u||(h=gi.getOrCreateAnonymousId(),I(),u=!0,!T&&window.matchMedia("(max-width: 640px)").matches&&requestAnimationFrame(()=>{var x,F;const R=["[data-acsb]",".acsb-trigger",'[class*="accessibility-widget"]'];for(const P of R){const U=document.querySelector(P);if(U instanceof HTMLElement){const N=U.getBoundingClientRect();N.bottom>window.innerHeight-100&&N.right>window.innerWidth-100&&((F=(x=f==null?void 0:f.shadowRoot)==null?void 0:x.querySelector(".kin-widget"))==null||F.classList.add("has-fab"));break}}}),S(),a.info("Kin plugin prepared"))},open:()=>{typeof window>"u"||(u||(I(),u=!0),S(),$.isOpen.value=!0,$.clearUnreadMessages(),a.info("Kin opened"))},close:()=>{typeof window>"u"||($.isOpen.value=!1,a.info("Kin closed"))},toggle:()=>{typeof window>"u"||($.isOpen.value?$.isOpen.value=!1:(u||(I(),u=!0),S(),$.isOpen.value=!0,$.clearUnreadMessages()))},setTheme:R=>{var x;if(l=R,u&&f){const F=(x=f.shadowRoot)==null?void 0:x.getElementById("kin-styles");F&&(F.textContent=y(l))}a.info("Kin theme updated:",R)},destroy:()=>{typeof window>"u"||(D(),f&&(f.shadowRoot&&Ts(null,f.shadowRoot),m&&f.remove()),$.isOpen.value=!1,$.isStreaming.value=!1,$.connectionState.value="idle",$.clearMessages(),$.resetUploadState(),$.clearUnreadMessages(),u=!1,f=null,m=!1,a.info("Kin plugin destroyed"))}}});exports.BRAND_THEMES=nx;exports.F=ve;exports.N=tt;exports.ao=xd;exports.b=K;exports.cr=i6;exports.h=le;exports.kinPlugin=ax;exports.o=b;exports.p=Ce;exports.q=nt;exports.tt=e0;exports.x=fe;
146
+ `),H},I=()=>{if(typeof window>"u")return;const R=C(),x=R.shadowRoot||R.attachShadow({mode:"open"});_s(Dt(Ye,{},[Dt("style",{id:"kin-styles"},y(l)),Dt(Q6,{starterPrompts:n,embedded:k,onSendMessage:H=>{o&&o.sendMessage(H)},onOpen:()=>{S(),$.isOpen.value=!0,$.clearUnreadMessages()},onClose:()=>{k||($.isOpen.value=!1)},onConnect:()=>{S()},onClearData:()=>{o&&o.clearData()},onUploadFile:async(H,B)=>{if(!o){$.setUploadState("error",H.name,"Not connected");return}$.setUploadState("uploading",H.name);const U=await o.uploadFile(H,B);U.success||$.setUploadState("error",H.name,U.error)}})]),x)},S=()=>{if(o)return;$.connectionState.value="connecting",h||(h=ki.getOrCreateAnonymousId());const R=`${e}/agent/candidate/${h}?key=${s}`;o=Y0({url:R,onMessage:x=>{switch(x.type){case"authenticated":a.info(`Authenticated with ${x.company}`),$.connectionState.value="connected";break;case"history":x.messages&&x.messages.length>0&&(a.info(`Loaded ${x.messages.length} messages from server`),$.setMessages(x.messages));break;case"response_start":$.isStreaming.value=!0,$.addMessage({role:"assistant",content:""});break;case"response_chunk":$.appendToLastMessage(x.content||"");break;case"response_end":$.isStreaming.value=!1,$.syncToOtherTabs(),$.isOpen.value||$.setHasUnreadMessages(!0);break;case"quick_replies":x.options&&x.options.length>=2&&$.setQuickReplies(x.options);break;case"data_cleared":a.info("User data cleared"),$.clearMessages(),$.addMessage({role:"system",content:"Your conversation data has been cleared."});break;case"guardrail_block":$.isStreaming.value=!1,a.warn("Content blocked by safety policy"),$.addMessage({role:"system",content:x.content||"I'm not able to help with that request."}),$.syncToOtherTabs();break;case"upload_received":a.info(`File upload received: ${x.fileName}`),$.setUploadState("processing",x.fileName);break;case"file_processing":a.info(`Processing file: ${x.fileName}`),$.setUploadState("processing",x.fileName);break;case"file_processed":x.status==="success"?(a.info(`File processed successfully: ${x.fileName}`),$.setUploadState("success",x.fileName),setTimeout(()=>$.resetUploadState(),2e3)):(a.error(`File processing failed: ${x.error}`),$.setUploadState("error",x.fileName,x.error));break;case"error":$.isStreaming.value=!1,$.uploadState.value!=="idle"&&$.setUploadState("error",void 0,x.content),a.error("Kin error:",x.content),$.addMessage({role:"assistant",content:x.content||"An error occurred"});break}},onOpen:()=>{a.info("WebSocket opened, awaiting authentication...")},onClose:()=>{a.info("Disconnected from Kin service"),$.connectionState.value="disconnected",$.isStreaming.value=!1;const x=d;o=null,d=!1,!x&&$.isOpen.value&&(a.info("Attempting to reconnect..."),p=setTimeout(()=>{p=null,S()},1e3))},onError:x=>{a.error("Kin connection error:",x),$.connectionState.value="error",$.isStreaming.value=!1}})},D=()=>{p&&(clearTimeout(p),p=null),o&&(d=!0,o.disconnect(),o=null)};return{prepare:()=>{typeof window>"u"||u||(h=ki.getOrCreateAnonymousId(),I(),u=!0,S(),a.info("Kin plugin prepared"))},open:()=>{typeof window>"u"||(u||(I(),u=!0),S(),$.isOpen.value=!0,$.clearUnreadMessages(),a.info("Kin opened"))},close:()=>{typeof window>"u"||($.isOpen.value=!1,a.info("Kin closed"))},toggle:()=>{typeof window>"u"||($.isOpen.value?$.isOpen.value=!1:(u||(I(),u=!0),S(),$.isOpen.value=!0,$.clearUnreadMessages()))},setTheme:R=>{var x;if(l=R,u&&f){const H=(x=f.shadowRoot)==null?void 0:x.getElementById("kin-styles");H&&(H.textContent=y(l))}a.info("Kin theme updated:",R)},destroy:()=>{typeof window>"u"||(D(),f&&(f.shadowRoot&&_s(null,f.shadowRoot),m&&f.remove()),$.isOpen.value=!1,$.isStreaming.value=!1,$.connectionState.value="idle",$.clearMessages(),$.resetUploadState(),$.clearUnreadMessages(),u=!1,f=null,m=!1,a.info("Kin plugin destroyed"))}}});exports.BRAND_THEMES=ix;exports.F=ve;exports.N=tt;exports.ao=yd;exports.b=K;exports.cr=s6;exports.h=le;exports.kinPlugin=ux;exports.o=b;exports.p=Ce;exports.q=nt;exports.tt=t0;exports.x=fe;