substack-feed-api 1.1.4 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +233 -55
- package/dist/substackFeedApi.js +10052 -3374
- package/dist/substackFeedApi.umd.cjs +8 -11
- package/index.d.ts +55 -95
- package/package.json +5 -2
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(nt)),nt}var it={},K={},z={},le;function H(){return le||(le=1,(function(){var n,a,g,f,p,t,e,o=[].slice,l={}.hasOwnProperty;n=function(){var b,m,y,d,w,O;if(O=arguments[0],w=2<=arguments.length?o.call(arguments,1):[],p(Object.assign))Object.assign.apply(null,arguments);else for(b=0,y=w.length;b<y;b++)if(d=w[b],d!=null)for(m in d)l.call(d,m)&&(O[m]=d[m]);return O},p=function(b){return!!b&&Object.prototype.toString.call(b)==="[object Function]"},t=function(b){var m;return!!b&&((m=typeof b)=="function"||m==="object")},g=function(b){return p(Array.isArray)?Array.isArray(b):Object.prototype.toString.call(b)==="[object Array]"},f=function(b){var m;if(g(b))return!b.length;for(m in b)if(l.call(b,m))return!1;return!0},e=function(b){var m,y;return t(b)&&(y=Object.getPrototypeOf(b))&&(m=y.constructor)&&typeof m=="function"&&m instanceof m&&Function.prototype.toString.call(m)===Function.prototype.toString.call(Object)},a=function(b){return p(b.valueOf)?b.valueOf():b},z.assign=n,z.isFunction=p,z.isObject=t,z.isArray=g,z.isEmpty=f,z.isPlainObject=e,z.getValue=a}).call(z)),z}var ot={exports:{}},lr=ot.exports,fe;function he(){return fe||(fe=1,(function(){ot.exports=function(){function n(){}return n.prototype.hasFeature=function(a,g){return!0},n.prototype.createDocumentType=function(a,g,f){throw new Error("This DOM method is not implemented.")},n.prototype.createDocument=function(a,g,f){throw new Error("This DOM method is not implemented.")},n.prototype.createHTMLDocument=function(a){throw new Error("This DOM method is not implemented.")},n.prototype.getFeature=function(a,g){throw new Error("This DOM method is not implemented.")},n}()}).call(lr)),ot.exports}var st={exports:{}},ut={exports:{}},at={exports:{}},fr=at.exports,pe;function hr(){return pe||(pe=1,(function(){at.exports=function(){function n(){}return n.prototype.handleError=function(a){throw new Error(a)},n}()}).call(fr)),at.exports}var ct={exports:{}},pr=ct.exports,de;function dr(){return de||(de=1,(function(){ct.exports=function(){function n(a){this.arr=a||[]}return Object.defineProperty(n.prototype,"length",{get:function(){return this.arr.length}}),n.prototype.item=function(a){return this.arr[a]||null},n.prototype.contains=function(a){return this.arr.indexOf(a)!==-1},n}()}).call(pr)),ct.exports}var yr=ut.exports,ye;function mr(){return ye||(ye=1,(function(){var n,a;n=hr(),a=dr(),ut.exports=function(){function g(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new n,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(g.prototype,"parameterNames",{get:function(){return new a(Object.keys(this.defaultParams))}}),g.prototype.getParameter=function(f){return this.params.hasOwnProperty(f)?this.params[f]:null},g.prototype.canSetParameter=function(f,p){return!0},g.prototype.setParameter=function(f,p){return p!=null?this.params[f]=p:delete this.params[f]},g}()}).call(yr)),ut.exports}var lt={exports:{}},ft={exports:{}},ht={exports:{}},gr=ht.exports,me;function B(){return me||(me=1,(function(){ht.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(gr)),ht.exports}var pt={exports:{}},wr=pt.exports,ge;function we(){return ge||(ge=1,(function(){var n;n=B(),G(),pt.exports=function(){function a(g,f,p){if(this.parent=g,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),f==null)throw new Error("Missing attribute name. "+this.debugInfo(f));this.name=this.stringify.name(f),this.value=this.stringify.attValue(p),this.type=n.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(a.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(a.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(a.prototype,"textContent",{get:function(){return this.value},set:function(g){return this.value=g||""}}),Object.defineProperty(a.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(a.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(a.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"specified",{get:function(){return!0}}),a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(g){return this.options.writer.attribute(this,this.options.writer.filterOptions(g))},a.prototype.debugInfo=function(g){return g=g||this.name,g==null?"parent: <"+this.parent.name+">":"attribute: {"+g+"}, parent: <"+this.parent.name+">"},a.prototype.isEqualNode=function(g){return!(g.namespaceURI!==this.namespaceURI||g.prefix!==this.prefix||g.localName!==this.localName||g.value!==this.value)},a}()}).call(wr)),pt.exports}var dt={exports:{}},Tr=dt.exports,Te;function kt(){return Te||(Te=1,(function(){dt.exports=function(){function n(a){this.nodes=a}return Object.defineProperty(n.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),n.prototype.clone=function(){return this.nodes=null},n.prototype.getNamedItem=function(a){return this.nodes[a]},n.prototype.setNamedItem=function(a){var g;return g=this.nodes[a.nodeName],this.nodes[a.nodeName]=a,g||null},n.prototype.removeNamedItem=function(a){var g;return g=this.nodes[a],delete this.nodes[a],g||null},n.prototype.item=function(a){return this.nodes[Object.keys(this.nodes)[a]]||null},n.prototype.getNamedItemNS=function(a,g){throw new Error("This DOM method is not implemented.")},n.prototype.setNamedItemNS=function(a){throw new Error("This DOM method is not implemented.")},n.prototype.removeNamedItemNS=function(a,g){throw new Error("This DOM method is not implemented.")},n}()}).call(Tr)),dt.exports}var Dr=ft.exports,De;function $t(){return De||(De=1,(function(){var n,a,g,f,p,t,e,o,l=function(m,y){for(var d in y)b.call(y,d)&&(m[d]=y[d]);function w(){this.constructor=m}return w.prototype=y.prototype,m.prototype=new w,m.__super__=y.prototype,m},b={}.hasOwnProperty;o=H(),e=o.isObject,t=o.isFunction,p=o.getValue,f=G(),n=B(),a=we(),g=kt(),ft.exports=function(m){l(y,m);function y(d,w,O){var I,P,_,E;if(y.__super__.constructor.call(this,d),w==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(w),this.type=n.Element,this.attribs={},this.schemaTypeInfo=null,O!=null&&this.attribute(O),d.type===n.Document&&(this.isRoot=!0,this.documentObject=d,d.rootObject=this,d.children)){for(E=d.children,P=0,_=E.length;P<_;P++)if(I=E[P],I.type===n.DocType){I.name=this.name;break}}}return Object.defineProperty(y.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(y.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(y.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(y.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(y.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(y.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(y.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(y.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new g(this.attribs)),this.attributeMap}}),y.prototype.clone=function(){var d,w,O,I;O=Object.create(this),O.isRoot&&(O.documentObject=null),O.attribs={},I=this.attribs;for(w in I)b.call(I,w)&&(d=I[w],O.attribs[w]=d.clone());return O.children=[],this.children.forEach(function(P){var _;return _=P.clone(),_.parent=O,O.children.push(_)}),O},y.prototype.attribute=function(d,w){var O,I;if(d!=null&&(d=p(d)),e(d))for(O in d)b.call(d,O)&&(I=d[O],this.attribute(O,I));else t(w)&&(w=w.apply()),this.options.keepNullAttributes&&w==null?this.attribs[d]=new a(this,d,""):w!=null&&(this.attribs[d]=new a(this,d,w));return this},y.prototype.removeAttribute=function(d){var w,O,I;if(d==null)throw new Error("Missing attribute name. "+this.debugInfo());if(d=p(d),Array.isArray(d))for(O=0,I=d.length;O<I;O++)w=d[O],delete this.attribs[w];else delete this.attribs[d];return this},y.prototype.toString=function(d){return this.options.writer.element(this,this.options.writer.filterOptions(d))},y.prototype.att=function(d,w){return this.attribute(d,w)},y.prototype.a=function(d,w){return this.attribute(d,w)},y.prototype.getAttribute=function(d){return this.attribs.hasOwnProperty(d)?this.attribs[d].value:null},y.prototype.setAttribute=function(d,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},y.prototype.getAttributeNode=function(d){return this.attribs.hasOwnProperty(d)?this.attribs[d]:null},y.prototype.setAttributeNode=function(d){throw new Error("This DOM method is not implemented."+this.debugInfo())},y.prototype.removeAttributeNode=function(d){throw new Error("This DOM method is not implemented."+this.debugInfo())},y.prototype.getElementsByTagName=function(d){throw new Error("This DOM method is not implemented."+this.debugInfo())},y.prototype.getAttributeNS=function(d,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},y.prototype.setAttributeNS=function(d,w,O){throw new Error("This DOM method is not implemented."+this.debugInfo())},y.prototype.removeAttributeNS=function(d,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},y.prototype.getAttributeNodeNS=function(d,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},y.prototype.setAttributeNodeNS=function(d){throw new Error("This DOM method is not implemented."+this.debugInfo())},y.prototype.getElementsByTagNameNS=function(d,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},y.prototype.hasAttribute=function(d){return this.attribs.hasOwnProperty(d)},y.prototype.hasAttributeNS=function(d,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},y.prototype.setIdAttribute=function(d,w){return this.attribs.hasOwnProperty(d)?this.attribs[d].isId:w},y.prototype.setIdAttributeNS=function(d,w,O){throw new Error("This DOM method is not implemented."+this.debugInfo())},y.prototype.setIdAttributeNode=function(d,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},y.prototype.getElementsByTagName=function(d){throw new Error("This DOM method is not implemented."+this.debugInfo())},y.prototype.getElementsByTagNameNS=function(d,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},y.prototype.getElementsByClassName=function(d){throw new Error("This DOM method is not implemented."+this.debugInfo())},y.prototype.isEqualNode=function(d){var w,O,I;if(!y.__super__.isEqualNode.apply(this,arguments).isEqualNode(d)||d.namespaceURI!==this.namespaceURI||d.prefix!==this.prefix||d.localName!==this.localName||d.attribs.length!==this.attribs.length)return!1;for(w=O=0,I=this.attribs.length-1;0<=I?O<=I:O>=I;w=0<=I?++O:--O)if(!this.attribs[w].isEqualNode(d.attribs[w]))return!1;return!0},y}(f)}).call(Dr)),ft.exports}var yt={exports:{}},mt={exports:{}},Er=mt.exports,Ee;function gt(){return Ee||(Ee=1,(function(){var n,a=function(f,p){for(var t in p)g.call(p,t)&&(f[t]=p[t]);function e(){this.constructor=f}return e.prototype=p.prototype,f.prototype=new e,f.__super__=p.prototype,f},g={}.hasOwnProperty;n=G(),mt.exports=function(f){a(p,f);function p(t){p.__super__.constructor.call(this,t),this.value=""}return Object.defineProperty(p.prototype,"data",{get:function(){return this.value},set:function(t){return this.value=t||""}}),Object.defineProperty(p.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(p.prototype,"textContent",{get:function(){return this.value},set:function(t){return this.value=t||""}}),p.prototype.clone=function(){return Object.create(this)},p.prototype.substringData=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.appendData=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.insertData=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.deleteData=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.replaceData=function(t,e,o){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.isEqualNode=function(t){return!(!p.__super__.isEqualNode.apply(this,arguments).isEqualNode(t)||t.data!==this.data)},p}(n)}).call(Er)),mt.exports}var br=yt.exports,be;function Gt(){return be||(be=1,(function(){var n,a,g=function(p,t){for(var e in t)f.call(t,e)&&(p[e]=t[e]);function o(){this.constructor=p}return o.prototype=t.prototype,p.prototype=new o,p.__super__=t.prototype,p},f={}.hasOwnProperty;n=B(),a=gt(),yt.exports=function(p){g(t,p);function t(e,o){if(t.__super__.constructor.call(this,e),o==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=n.CData,this.value=this.stringify.cdata(o)}return t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.cdata(this,this.options.writer.filterOptions(e))},t}(a)}).call(br)),yt.exports}var wt={exports:{}},Or=wt.exports,Oe;function Wt(){return Oe||(Oe=1,(function(){var n,a,g=function(p,t){for(var e in t)f.call(t,e)&&(p[e]=t[e]);function o(){this.constructor=p}return o.prototype=t.prototype,p.prototype=new o,p.__super__=t.prototype,p},f={}.hasOwnProperty;n=B(),a=gt(),wt.exports=function(p){g(t,p);function t(e,o){if(t.__super__.constructor.call(this,e),o==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=n.Comment,this.value=this.stringify.comment(o)}return t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.comment(this,this.options.writer.filterOptions(e))},t}(a)}).call(Or)),wt.exports}var Tt={exports:{}},Nr=Tt.exports,Ne;function Yt(){return Ne||(Ne=1,(function(){var n,a,g,f=function(t,e){for(var o in e)p.call(e,o)&&(t[o]=e[o]);function l(){this.constructor=t}return l.prototype=e.prototype,t.prototype=new l,t.__super__=e.prototype,t},p={}.hasOwnProperty;g=H().isObject,a=G(),n=B(),Tt.exports=function(t){f(e,t);function e(o,l,b,m){var y;e.__super__.constructor.call(this,o),g(l)&&(y=l,l=y.version,b=y.encoding,m=y.standalone),l||(l="1.0"),this.type=n.Declaration,this.version=this.stringify.xmlVersion(l),b!=null&&(this.encoding=this.stringify.xmlEncoding(b)),m!=null&&(this.standalone=this.stringify.xmlStandalone(m))}return e.prototype.toString=function(o){return this.options.writer.declaration(this,this.options.writer.filterOptions(o))},e}(a)}).call(Nr)),Tt.exports}var Dt={exports:{}},Et={exports:{}},vr=Et.exports,ve;function Kt(){return ve||(ve=1,(function(){var n,a,g=function(p,t){for(var e in t)f.call(t,e)&&(p[e]=t[e]);function o(){this.constructor=p}return o.prototype=t.prototype,p.prototype=new o,p.__super__=t.prototype,p},f={}.hasOwnProperty;a=G(),n=B(),Et.exports=function(p){g(t,p);function t(e,o,l,b,m,y){if(t.__super__.constructor.call(this,e),o==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(l==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(o));if(!b)throw new Error("Missing DTD attribute type. "+this.debugInfo(o));if(!m)throw new Error("Missing DTD attribute default. "+this.debugInfo(o));if(m.indexOf("#")!==0&&(m="#"+m),!m.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(o));if(y&&!m.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(o));this.elementName=this.stringify.name(o),this.type=n.AttributeDeclaration,this.attributeName=this.stringify.name(l),this.attributeType=this.stringify.dtdAttType(b),y&&(this.defaultValue=this.stringify.dtdAttDefault(y)),this.defaultValueType=m}return t.prototype.toString=function(e){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(e))},t}(a)}).call(vr)),Et.exports}var bt={exports:{}},Lr=bt.exports,Le;function zt(){return Le||(Le=1,(function(){var n,a,g,f=function(t,e){for(var o in e)p.call(e,o)&&(t[o]=e[o]);function l(){this.constructor=t}return l.prototype=e.prototype,t.prototype=new l,t.__super__=e.prototype,t},p={}.hasOwnProperty;g=H().isObject,a=G(),n=B(),bt.exports=function(t){f(e,t);function e(o,l,b,m){if(e.__super__.constructor.call(this,o),b==null)throw new Error("Missing DTD entity name. "+this.debugInfo(b));if(m==null)throw new Error("Missing DTD entity value. "+this.debugInfo(b));if(this.pe=!!l,this.name=this.stringify.name(b),this.type=n.EntityDeclaration,!g(m))this.value=this.stringify.dtdEntityValue(m),this.internal=!0;else{if(!m.pubID&&!m.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(b));if(m.pubID&&!m.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(b));if(this.internal=!1,m.pubID!=null&&(this.pubID=this.stringify.dtdPubID(m.pubID)),m.sysID!=null&&(this.sysID=this.stringify.dtdSysID(m.sysID)),m.nData!=null&&(this.nData=this.stringify.dtdNData(m.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(b))}}return Object.defineProperty(e.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(e.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(e.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(e.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(e.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(e.prototype,"xmlVersion",{get:function(){return null}}),e.prototype.toString=function(o){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(o))},e}(a)}).call(Lr)),bt.exports}var Ot={exports:{}},Ir=Ot.exports,Ie;function Ht(){return Ie||(Ie=1,(function(){var n,a,g=function(p,t){for(var e in t)f.call(t,e)&&(p[e]=t[e]);function o(){this.constructor=p}return o.prototype=t.prototype,p.prototype=new o,p.__super__=t.prototype,p},f={}.hasOwnProperty;a=G(),n=B(),Ot.exports=function(p){g(t,p);function t(e,o,l){if(t.__super__.constructor.call(this,e),o==null)throw new Error("Missing DTD element name. "+this.debugInfo());l||(l="(#PCDATA)"),Array.isArray(l)&&(l="("+l.join(",")+")"),this.name=this.stringify.name(o),this.type=n.ElementDeclaration,this.value=this.stringify.dtdElementValue(l)}return t.prototype.toString=function(e){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(e))},t}(a)}).call(Ir)),Ot.exports}var Nt={exports:{}},Pr=Nt.exports,Pe;function Qt(){return Pe||(Pe=1,(function(){var n,a,g=function(p,t){for(var e in t)f.call(t,e)&&(p[e]=t[e]);function o(){this.constructor=p}return o.prototype=t.prototype,p.prototype=new o,p.__super__=t.prototype,p},f={}.hasOwnProperty;a=G(),n=B(),Nt.exports=function(p){g(t,p);function t(e,o,l){if(t.__super__.constructor.call(this,e),o==null)throw new Error("Missing DTD notation name. "+this.debugInfo(o));if(!l.pubID&&!l.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(o));this.name=this.stringify.name(o),this.type=n.NotationDeclaration,l.pubID!=null&&(this.pubID=this.stringify.dtdPubID(l.pubID)),l.sysID!=null&&(this.sysID=this.stringify.dtdSysID(l.sysID))}return Object.defineProperty(t.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(t.prototype,"systemId",{get:function(){return this.sysID}}),t.prototype.toString=function(e){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(e))},t}(a)}).call(Pr)),Nt.exports}var xr=Dt.exports,xe;function Zt(){return xe||(xe=1,(function(){var n,a,g,f,p,t,e,o,l=function(m,y){for(var d in y)b.call(y,d)&&(m[d]=y[d]);function w(){this.constructor=m}return w.prototype=y.prototype,m.prototype=new w,m.__super__=y.prototype,m},b={}.hasOwnProperty;o=H().isObject,e=G(),n=B(),a=Kt(),f=zt(),g=Ht(),p=Qt(),t=kt(),Dt.exports=function(m){l(y,m);function y(d,w,O){var I,P,_,E,s,c;if(y.__super__.constructor.call(this,d),this.type=n.DocType,d.children){for(E=d.children,P=0,_=E.length;P<_;P++)if(I=E[P],I.type===n.Element){this.name=I.name;break}}this.documentObject=d,o(w)&&(s=w,w=s.pubID,O=s.sysID),O==null&&(c=[w,O],O=c[0],w=c[1]),w!=null&&(this.pubID=this.stringify.dtdPubID(w)),O!=null&&(this.sysID=this.stringify.dtdSysID(O))}return Object.defineProperty(y.prototype,"entities",{get:function(){var d,w,O,I,P;for(I={},P=this.children,w=0,O=P.length;w<O;w++)d=P[w],d.type===n.EntityDeclaration&&!d.pe&&(I[d.name]=d);return new t(I)}}),Object.defineProperty(y.prototype,"notations",{get:function(){var d,w,O,I,P;for(I={},P=this.children,w=0,O=P.length;w<O;w++)d=P[w],d.type===n.NotationDeclaration&&(I[d.name]=d);return new t(I)}}),Object.defineProperty(y.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(y.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(y.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),y.prototype.element=function(d,w){var O;return O=new g(this,d,w),this.children.push(O),this},y.prototype.attList=function(d,w,O,I,P){var _;return _=new a(this,d,w,O,I,P),this.children.push(_),this},y.prototype.entity=function(d,w){var O;return O=new f(this,!1,d,w),this.children.push(O),this},y.prototype.pEntity=function(d,w){var O;return O=new f(this,!0,d,w),this.children.push(O),this},y.prototype.notation=function(d,w){var O;return O=new p(this,d,w),this.children.push(O),this},y.prototype.toString=function(d){return this.options.writer.docType(this,this.options.writer.filterOptions(d))},y.prototype.ele=function(d,w){return this.element(d,w)},y.prototype.att=function(d,w,O,I,P){return this.attList(d,w,O,I,P)},y.prototype.ent=function(d,w){return this.entity(d,w)},y.prototype.pent=function(d,w){return this.pEntity(d,w)},y.prototype.not=function(d,w){return this.notation(d,w)},y.prototype.up=function(){return this.root()||this.documentObject},y.prototype.isEqualNode=function(d){return!(!y.__super__.isEqualNode.apply(this,arguments).isEqualNode(d)||d.name!==this.name||d.publicId!==this.publicId||d.systemId!==this.systemId)},y}(e)}).call(xr)),Dt.exports}var vt={exports:{}},Ar=vt.exports,Ae;function Jt(){return Ae||(Ae=1,(function(){var n,a,g=function(p,t){for(var e in t)f.call(t,e)&&(p[e]=t[e]);function o(){this.constructor=p}return o.prototype=t.prototype,p.prototype=new o,p.__super__=t.prototype,p},f={}.hasOwnProperty;n=B(),a=G(),vt.exports=function(p){g(t,p);function t(e,o){if(t.__super__.constructor.call(this,e),o==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=n.Raw,this.value=this.stringify.raw(o)}return t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.raw(this,this.options.writer.filterOptions(e))},t}(a)}).call(Ar)),vt.exports}var Lt={exports:{}},_r=Lt.exports,_e;function te(){return _e||(_e=1,(function(){var n,a,g=function(p,t){for(var e in t)f.call(t,e)&&(p[e]=t[e]);function o(){this.constructor=p}return o.prototype=t.prototype,p.prototype=new o,p.__super__=t.prototype,p},f={}.hasOwnProperty;n=B(),a=gt(),Lt.exports=function(p){g(t,p);function t(e,o){if(t.__super__.constructor.call(this,e),o==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=n.Text,this.value=this.stringify.text(o)}return Object.defineProperty(t.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(t.prototype,"wholeText",{get:function(){var e,o,l;for(l="",o=this.previousSibling;o;)l=o.data+l,o=o.previousSibling;for(l+=this.data,e=this.nextSibling;e;)l=l+e.data,e=e.nextSibling;return l}}),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.text(this,this.options.writer.filterOptions(e))},t.prototype.splitText=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.replaceWholeText=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t}(a)}).call(_r)),Lt.exports}var It={exports:{}},Mr=It.exports,Me;function ee(){return Me||(Me=1,(function(){var n,a,g=function(p,t){for(var e in t)f.call(t,e)&&(p[e]=t[e]);function o(){this.constructor=p}return o.prototype=t.prototype,p.prototype=new o,p.__super__=t.prototype,p},f={}.hasOwnProperty;n=B(),a=gt(),It.exports=function(p){g(t,p);function t(e,o,l){if(t.__super__.constructor.call(this,e),o==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=n.ProcessingInstruction,this.target=this.stringify.insTarget(o),this.name=this.target,l&&(this.value=this.stringify.insValue(l))}return t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(e))},t.prototype.isEqualNode=function(e){return!(!t.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)||e.target!==this.target)},t}(a)}).call(Mr)),It.exports}var Pt={exports:{}},Cr=Pt.exports,Ce;function Se(){return Ce||(Ce=1,(function(){var n,a,g=function(p,t){for(var e in t)f.call(t,e)&&(p[e]=t[e]);function o(){this.constructor=p}return o.prototype=t.prototype,p.prototype=new o,p.__super__=t.prototype,p},f={}.hasOwnProperty;a=G(),n=B(),Pt.exports=function(p){g(t,p);function t(e){t.__super__.constructor.call(this,e),this.type=n.Dummy}return t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return""},t}(a)}).call(Cr)),Pt.exports}var xt={exports:{}},Sr=xt.exports,Fe;function Fr(){return Fe||(Fe=1,(function(){xt.exports=function(){function n(a){this.nodes=a}return Object.defineProperty(n.prototype,"length",{get:function(){return this.nodes.length||0}}),n.prototype.clone=function(){return this.nodes=null},n.prototype.item=function(a){return this.nodes[a]||null},n}()}).call(Sr)),xt.exports}var At={exports:{}},Xr=At.exports,Xe;function Rr(){return Xe||(Xe=1,(function(){At.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(Xr)),At.exports}var jr=lt.exports,Re;function G(){return Re||(Re=1,(function(){var n,a,g,f,p,t,e,o,l,b,m,y,d,w,O,I,P,_={}.hasOwnProperty;P=H(),I=P.isObject,O=P.isFunction,w=P.isEmpty,d=P.getValue,o=null,g=null,f=null,p=null,t=null,m=null,y=null,b=null,e=null,a=null,l=null,n=null,lt.exports=function(){function E(s){this.parent=s,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,o||(o=$t(),g=Gt(),f=Wt(),p=Yt(),t=Zt(),m=Jt(),y=te(),b=ee(),e=Se(),a=B(),l=Fr(),kt(),n=Rr())}return Object.defineProperty(E.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(E.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(E.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(E.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(E.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new l(this.children)),this.childNodeList}}),Object.defineProperty(E.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(E.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(E.prototype,"previousSibling",{get:function(){var s;return s=this.parent.children.indexOf(this),this.parent.children[s-1]||null}}),Object.defineProperty(E.prototype,"nextSibling",{get:function(){var s;return s=this.parent.children.indexOf(this),this.parent.children[s+1]||null}}),Object.defineProperty(E.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(E.prototype,"textContent",{get:function(){var s,c,h,D,L;if(this.nodeType===a.Element||this.nodeType===a.DocumentFragment){for(L="",D=this.children,c=0,h=D.length;c<h;c++)s=D[c],s.textContent&&(L+=s.textContent);return L}else return null},set:function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),E.prototype.setParent=function(s){var c,h,D,L,v;for(this.parent=s,s&&(this.options=s.options,this.stringify=s.stringify),L=this.children,v=[],h=0,D=L.length;h<D;h++)c=L[h],v.push(c.setParent(this));return v},E.prototype.element=function(s,c,h){var D,L,v,r,N,x,M,C,F,j,X;if(x=null,c===null&&h==null&&(F=[{},null],c=F[0],h=F[1]),c==null&&(c={}),c=d(c),I(c)||(j=[c,h],h=j[0],c=j[1]),s!=null&&(s=d(s)),Array.isArray(s))for(v=0,M=s.length;v<M;v++)L=s[v],x=this.element(L);else if(O(s))x=this.element(s.apply());else if(I(s)){for(N in s)if(_.call(s,N))if(X=s[N],O(X)&&(X=X.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&N.indexOf(this.stringify.convertAttKey)===0)x=this.attribute(N.substr(this.stringify.convertAttKey.length),X);else if(!this.options.separateArrayItems&&Array.isArray(X)&&w(X))x=this.dummy();else if(I(X)&&w(X))x=this.element(N);else if(!this.options.keepNullNodes&&X==null)x=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(X))for(r=0,C=X.length;r<C;r++)L=X[r],D={},D[N]=L,x=this.element(D);else I(X)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&N.indexOf(this.stringify.convertTextKey)===0?x=this.element(X):(x=this.element(N),x.element(X)):x=this.element(N,X)}else!this.options.keepNullNodes&&h===null?x=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&s.indexOf(this.stringify.convertTextKey)===0?x=this.text(h):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&s.indexOf(this.stringify.convertCDataKey)===0?x=this.cdata(h):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&s.indexOf(this.stringify.convertCommentKey)===0?x=this.comment(h):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&s.indexOf(this.stringify.convertRawKey)===0?x=this.raw(h):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&s.indexOf(this.stringify.convertPIKey)===0?x=this.instruction(s.substr(this.stringify.convertPIKey.length),h):x=this.node(s,c,h);if(x==null)throw new Error("Could not create any elements with: "+s+". "+this.debugInfo());return x},E.prototype.insertBefore=function(s,c,h){var D,L,v,r,N;if(s!=null&&s.type)return v=s,r=c,v.setParent(this),r?(L=children.indexOf(r),N=children.splice(L),children.push(v),Array.prototype.push.apply(children,N)):children.push(v),v;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(s));return L=this.parent.children.indexOf(this),N=this.parent.children.splice(L),D=this.parent.element(s,c,h),Array.prototype.push.apply(this.parent.children,N),D},E.prototype.insertAfter=function(s,c,h){var D,L,v;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(s));return L=this.parent.children.indexOf(this),v=this.parent.children.splice(L+1),D=this.parent.element(s,c,h),Array.prototype.push.apply(this.parent.children,v),D},E.prototype.remove=function(){var s;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return s=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[s,s-s+1].concat([])),this.parent},E.prototype.node=function(s,c,h){var D,L;return s!=null&&(s=d(s)),c||(c={}),c=d(c),I(c)||(L=[c,h],h=L[0],c=L[1]),D=new o(this,s,c),h!=null&&D.text(h),this.children.push(D),D},E.prototype.text=function(s){var c;return I(s)&&this.element(s),c=new y(this,s),this.children.push(c),this},E.prototype.cdata=function(s){var c;return c=new g(this,s),this.children.push(c),this},E.prototype.comment=function(s){var c;return c=new f(this,s),this.children.push(c),this},E.prototype.commentBefore=function(s){var c,h;return c=this.parent.children.indexOf(this),h=this.parent.children.splice(c),this.parent.comment(s),Array.prototype.push.apply(this.parent.children,h),this},E.prototype.commentAfter=function(s){var c,h;return c=this.parent.children.indexOf(this),h=this.parent.children.splice(c+1),this.parent.comment(s),Array.prototype.push.apply(this.parent.children,h),this},E.prototype.raw=function(s){var c;return c=new m(this,s),this.children.push(c),this},E.prototype.dummy=function(){var s;return s=new e(this),s},E.prototype.instruction=function(s,c){var h,D,L,v,r;if(s!=null&&(s=d(s)),c!=null&&(c=d(c)),Array.isArray(s))for(v=0,r=s.length;v<r;v++)h=s[v],this.instruction(h);else if(I(s))for(h in s)_.call(s,h)&&(D=s[h],this.instruction(h,D));else O(c)&&(c=c.apply()),L=new b(this,s,c),this.children.push(L);return this},E.prototype.instructionBefore=function(s,c){var h,D;return h=this.parent.children.indexOf(this),D=this.parent.children.splice(h),this.parent.instruction(s,c),Array.prototype.push.apply(this.parent.children,D),this},E.prototype.instructionAfter=function(s,c){var h,D;return h=this.parent.children.indexOf(this),D=this.parent.children.splice(h+1),this.parent.instruction(s,c),Array.prototype.push.apply(this.parent.children,D),this},E.prototype.declaration=function(s,c,h){var D,L;return D=this.document(),L=new p(D,s,c,h),D.children.length===0?D.children.unshift(L):D.children[0].type===a.Declaration?D.children[0]=L:D.children.unshift(L),D.root()||D},E.prototype.dtd=function(s,c){var h,D,L,v,r,N,x,M,C,F;for(D=this.document(),L=new t(D,s,c),C=D.children,v=r=0,x=C.length;r<x;v=++r)if(h=C[v],h.type===a.DocType)return D.children[v]=L,L;for(F=D.children,v=N=0,M=F.length;N<M;v=++N)if(h=F[v],h.isRoot)return D.children.splice(v,0,L),L;return D.children.push(L),L},E.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},E.prototype.root=function(){var s;for(s=this;s;){if(s.type===a.Document)return s.rootObject;if(s.isRoot)return s;s=s.parent}},E.prototype.document=function(){var s;for(s=this;s;){if(s.type===a.Document)return s;s=s.parent}},E.prototype.end=function(s){return this.document().end(s)},E.prototype.prev=function(){var s;if(s=this.parent.children.indexOf(this),s<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[s-1]},E.prototype.next=function(){var s;if(s=this.parent.children.indexOf(this),s===-1||s===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[s+1]},E.prototype.importDocument=function(s){var c;return c=s.root().clone(),c.parent=this,c.isRoot=!1,this.children.push(c),this},E.prototype.debugInfo=function(s){var c,h;return s=s||this.name,s==null&&!((c=this.parent)!=null&&c.name)?"":s==null?"parent: <"+this.parent.name+">":(h=this.parent)!=null&&h.name?"node: <"+s+">, parent: <"+this.parent.name+">":"node: <"+s+">"},E.prototype.ele=function(s,c,h){return this.element(s,c,h)},E.prototype.nod=function(s,c,h){return this.node(s,c,h)},E.prototype.txt=function(s){return this.text(s)},E.prototype.dat=function(s){return this.cdata(s)},E.prototype.com=function(s){return this.comment(s)},E.prototype.ins=function(s,c){return this.instruction(s,c)},E.prototype.doc=function(){return this.document()},E.prototype.dec=function(s,c,h){return this.declaration(s,c,h)},E.prototype.e=function(s,c,h){return this.element(s,c,h)},E.prototype.n=function(s,c,h){return this.node(s,c,h)},E.prototype.t=function(s){return this.text(s)},E.prototype.d=function(s){return this.cdata(s)},E.prototype.c=function(s){return this.comment(s)},E.prototype.r=function(s){return this.raw(s)},E.prototype.i=function(s,c){return this.instruction(s,c)},E.prototype.u=function(){return this.up()},E.prototype.importXMLBuilder=function(s){return this.importDocument(s)},E.prototype.replaceChild=function(s,c){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.removeChild=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.appendChild=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.hasChildNodes=function(){return this.children.length!==0},E.prototype.cloneNode=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.isSupported=function(s,c){return!0},E.prototype.hasAttributes=function(){return this.attribs.length!==0},E.prototype.compareDocumentPosition=function(s){var c,h;return c=this,c===s?0:this.document()!==s.document()?(h=n.Disconnected|n.ImplementationSpecific,Math.random()<.5?h|=n.Preceding:h|=n.Following,h):c.isAncestor(s)?n.Contains|n.Preceding:c.isDescendant(s)?n.Contains|n.Following:c.isPreceding(s)?n.Preceding:n.Following},E.prototype.isSameNode=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.lookupPrefix=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.isDefaultNamespace=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.lookupNamespaceURI=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.isEqualNode=function(s){var c,h,D;if(s.nodeType!==this.nodeType||s.children.length!==this.children.length)return!1;for(c=h=0,D=this.children.length-1;0<=D?h<=D:h>=D;c=0<=D?++h:--h)if(!this.children[c].isEqualNode(s.children[c]))return!1;return!0},E.prototype.getFeature=function(s,c){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.setUserData=function(s,c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.getUserData=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.contains=function(s){return s?s===this||this.isDescendant(s):!1},E.prototype.isDescendant=function(s){var c,h,D,L,v;for(v=this.children,D=0,L=v.length;D<L;D++)if(c=v[D],s===c||(h=c.isDescendant(s),h))return!0;return!1},E.prototype.isAncestor=function(s){return s.isDescendant(this)},E.prototype.isPreceding=function(s){var c,h;return c=this.treePosition(s),h=this.treePosition(this),c===-1||h===-1?!1:c<h},E.prototype.isFollowing=function(s){var c,h;return c=this.treePosition(s),h=this.treePosition(this),c===-1||h===-1?!1:c>h},E.prototype.treePosition=function(s){var c,h;return h=0,c=!1,this.foreachTreeNode(this.document(),function(D){if(h++,!c&&D===s)return c=!0}),c?h:-1},E.prototype.foreachTreeNode=function(s,c){var h,D,L,v,r;for(s||(s=this.document()),v=s.children,D=0,L=v.length;D<L;D++){if(h=v[D],r=c(h))return r;if(r=this.foreachTreeNode(h,c),r)return r}},E}()}).call(jr)),lt.exports}var _t={exports:{}},Br=_t.exports,je;function Be(){return je||(je=1,(function(){var n=function(g,f){return function(){return g.apply(f,arguments)}},a={}.hasOwnProperty;_t.exports=function(){function g(f){this.assertLegalName=n(this.assertLegalName,this),this.assertLegalChar=n(this.assertLegalChar,this);var p,t,e;f||(f={}),this.options=f,this.options.version||(this.options.version="1.0"),t=f.stringify||{};for(p in t)a.call(t,p)&&(e=t[p],this[p]=e)}return g.prototype.name=function(f){return this.options.noValidation?f:this.assertLegalName(""+f||"")},g.prototype.text=function(f){return this.options.noValidation?f:this.assertLegalChar(this.textEscape(""+f||""))},g.prototype.cdata=function(f){return this.options.noValidation?f:(f=""+f||"",f=f.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(f))},g.prototype.comment=function(f){if(this.options.noValidation)return f;if(f=""+f||"",f.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+f);return this.assertLegalChar(f)},g.prototype.raw=function(f){return this.options.noValidation?f:""+f||""},g.prototype.attValue=function(f){return this.options.noValidation?f:this.assertLegalChar(this.attEscape(f=""+f||""))},g.prototype.insTarget=function(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")},g.prototype.insValue=function(f){if(this.options.noValidation)return f;if(f=""+f||"",f.match(/\?>/))throw new Error("Invalid processing instruction value: "+f);return this.assertLegalChar(f)},g.prototype.xmlVersion=function(f){if(this.options.noValidation)return f;if(f=""+f||"",!f.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+f);return f},g.prototype.xmlEncoding=function(f){if(this.options.noValidation)return f;if(f=""+f||"",!f.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+f);return this.assertLegalChar(f)},g.prototype.xmlStandalone=function(f){return this.options.noValidation?f:f?"yes":"no"},g.prototype.dtdPubID=function(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")},g.prototype.dtdSysID=function(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")},g.prototype.dtdElementValue=function(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")},g.prototype.dtdAttType=function(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")},g.prototype.dtdAttDefault=function(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")},g.prototype.dtdEntityValue=function(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")},g.prototype.dtdNData=function(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")},g.prototype.convertAttKey="@",g.prototype.convertPIKey="?",g.prototype.convertTextKey="#text",g.prototype.convertCDataKey="#cdata",g.prototype.convertCommentKey="#comment",g.prototype.convertRawKey="#raw",g.prototype.assertLegalChar=function(f){var p,t;if(this.options.noValidation)return f;if(p="",this.options.version==="1.0"){if(p=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,t=f.match(p))throw new Error("Invalid character in string: "+f+" at index "+t.index)}else if(this.options.version==="1.1"&&(p=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,t=f.match(p)))throw new Error("Invalid character in string: "+f+" at index "+t.index);return f},g.prototype.assertLegalName=function(f){var p;if(this.options.noValidation)return f;if(this.assertLegalChar(f),p=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!f.match(p))throw new Error("Invalid character in name");return f},g.prototype.textEscape=function(f){var p;return this.options.noValidation?f:(p=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,f.replace(p,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},g.prototype.attEscape=function(f){var p;return this.options.noValidation?f:(p=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,f.replace(p,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},g}()}).call(Br)),_t.exports}var Mt={exports:{}},Ct={exports:{}},St={exports:{}},qr=St.exports,qe;function Ft(){return qe||(qe=1,(function(){St.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(qr)),St.exports}var Ur=Ct.exports,Ue;function Ve(){return Ue||(Ue=1,(function(){var n,a,g,f={}.hasOwnProperty;g=H().assign,n=B(),Yt(),Zt(),Gt(),Wt(),$t(),Jt(),te(),ee(),Se(),Kt(),Ht(),zt(),Qt(),a=Ft(),Ct.exports=function(){function p(t){var e,o,l;t||(t={}),this.options=t,o=t.writer||{};for(e in o)f.call(o,e)&&(l=o[e],this["_"+e]=this[e],this[e]=l)}return p.prototype.filterOptions=function(t){var e,o,l,b,m,y,d,w;return t||(t={}),t=g({},this.options,t),e={writer:this},e.pretty=t.pretty||!1,e.allowEmpty=t.allowEmpty||!1,e.indent=(o=t.indent)!=null?o:" ",e.newline=(l=t.newline)!=null?l:`
|
|
3
|
-
`,e.offset=(b=t.offset)!=null?b:0,e.dontPrettyTextNodes=(m=(y=t.dontPrettyTextNodes)!=null?y:t.dontprettytextnodes)!=null?m:0,e.spaceBeforeSlash=(d=(w=t.spaceBeforeSlash)!=null?w:t.spacebeforeslash)!=null?d:"",e.spaceBeforeSlash===!0&&(e.spaceBeforeSlash=" "),e.suppressPrettyCount=0,e.user={},e.state=a.None,e},p.prototype.indent=function(t,e,o){var l;return!e.pretty||e.suppressPrettyCount?"":e.pretty&&(l=(o||0)+e.offset+1,l>0)?new Array(l).join(e.indent):""},p.prototype.endline=function(t,e,o){return!e.pretty||e.suppressPrettyCount?"":e.newline},p.prototype.attribute=function(t,e,o){var l;return this.openAttribute(t,e,o),l=" "+t.name+'="'+t.value+'"',this.closeAttribute(t,e,o),l},p.prototype.cdata=function(t,e,o){var l;return this.openNode(t,e,o),e.state=a.OpenTag,l=this.indent(t,e,o)+"<![CDATA[",e.state=a.InsideTag,l+=t.value,e.state=a.CloseTag,l+="]]>"+this.endline(t,e,o),e.state=a.None,this.closeNode(t,e,o),l},p.prototype.comment=function(t,e,o){var l;return this.openNode(t,e,o),e.state=a.OpenTag,l=this.indent(t,e,o)+"<!-- ",e.state=a.InsideTag,l+=t.value,e.state=a.CloseTag,l+=" -->"+this.endline(t,e,o),e.state=a.None,this.closeNode(t,e,o),l},p.prototype.declaration=function(t,e,o){var l;return this.openNode(t,e,o),e.state=a.OpenTag,l=this.indent(t,e,o)+"<?xml",e.state=a.InsideTag,l+=' version="'+t.version+'"',t.encoding!=null&&(l+=' encoding="'+t.encoding+'"'),t.standalone!=null&&(l+=' standalone="'+t.standalone+'"'),e.state=a.CloseTag,l+=e.spaceBeforeSlash+"?>",l+=this.endline(t,e,o),e.state=a.None,this.closeNode(t,e,o),l},p.prototype.docType=function(t,e,o){var l,b,m,y,d;if(o||(o=0),this.openNode(t,e,o),e.state=a.OpenTag,y=this.indent(t,e,o),y+="<!DOCTYPE "+t.root().name,t.pubID&&t.sysID?y+=' PUBLIC "'+t.pubID+'" "'+t.sysID+'"':t.sysID&&(y+=' SYSTEM "'+t.sysID+'"'),t.children.length>0){for(y+=" [",y+=this.endline(t,e,o),e.state=a.InsideTag,d=t.children,b=0,m=d.length;b<m;b++)l=d[b],y+=this.writeChildNode(l,e,o+1);e.state=a.CloseTag,y+="]"}return e.state=a.CloseTag,y+=e.spaceBeforeSlash+">",y+=this.endline(t,e,o),e.state=a.None,this.closeNode(t,e,o),y},p.prototype.element=function(t,e,o){var l,b,m,y,d,w,O,I,P,_,E,s,c,h;o||(o=0),_=!1,E="",this.openNode(t,e,o),e.state=a.OpenTag,E+=this.indent(t,e,o)+"<"+t.name,s=t.attribs;for(P in s)f.call(s,P)&&(l=s[P],E+=this.attribute(l,e,o));if(m=t.children.length,y=m===0?null:t.children[0],m===0||t.children.every(function(D){return(D.type===n.Text||D.type===n.Raw)&&D.value===""}))e.allowEmpty?(E+=">",e.state=a.CloseTag,E+="</"+t.name+">"+this.endline(t,e,o)):(e.state=a.CloseTag,E+=e.spaceBeforeSlash+"/>"+this.endline(t,e,o));else if(e.pretty&&m===1&&(y.type===n.Text||y.type===n.Raw)&&y.value!=null)E+=">",e.state=a.InsideTag,e.suppressPrettyCount++,_=!0,E+=this.writeChildNode(y,e,o+1),e.suppressPrettyCount--,_=!1,e.state=a.CloseTag,E+="</"+t.name+">"+this.endline(t,e,o);else{if(e.dontPrettyTextNodes){for(c=t.children,d=0,O=c.length;d<O;d++)if(b=c[d],(b.type===n.Text||b.type===n.Raw)&&b.value!=null){e.suppressPrettyCount++,_=!0;break}}for(E+=">"+this.endline(t,e,o),e.state=a.InsideTag,h=t.children,w=0,I=h.length;w<I;w++)b=h[w],E+=this.writeChildNode(b,e,o+1);e.state=a.CloseTag,E+=this.indent(t,e,o)+"</"+t.name+">",_&&e.suppressPrettyCount--,E+=this.endline(t,e,o),e.state=a.None}return this.closeNode(t,e,o),E},p.prototype.writeChildNode=function(t,e,o){switch(t.type){case n.CData:return this.cdata(t,e,o);case n.Comment:return this.comment(t,e,o);case n.Element:return this.element(t,e,o);case n.Raw:return this.raw(t,e,o);case n.Text:return this.text(t,e,o);case n.ProcessingInstruction:return this.processingInstruction(t,e,o);case n.Dummy:return"";case n.Declaration:return this.declaration(t,e,o);case n.DocType:return this.docType(t,e,o);case n.AttributeDeclaration:return this.dtdAttList(t,e,o);case n.ElementDeclaration:return this.dtdElement(t,e,o);case n.EntityDeclaration:return this.dtdEntity(t,e,o);case n.NotationDeclaration:return this.dtdNotation(t,e,o);default:throw new Error("Unknown XML node type: "+t.constructor.name)}},p.prototype.processingInstruction=function(t,e,o){var l;return this.openNode(t,e,o),e.state=a.OpenTag,l=this.indent(t,e,o)+"<?",e.state=a.InsideTag,l+=t.target,t.value&&(l+=" "+t.value),e.state=a.CloseTag,l+=e.spaceBeforeSlash+"?>",l+=this.endline(t,e,o),e.state=a.None,this.closeNode(t,e,o),l},p.prototype.raw=function(t,e,o){var l;return this.openNode(t,e,o),e.state=a.OpenTag,l=this.indent(t,e,o),e.state=a.InsideTag,l+=t.value,e.state=a.CloseTag,l+=this.endline(t,e,o),e.state=a.None,this.closeNode(t,e,o),l},p.prototype.text=function(t,e,o){var l;return this.openNode(t,e,o),e.state=a.OpenTag,l=this.indent(t,e,o),e.state=a.InsideTag,l+=t.value,e.state=a.CloseTag,l+=this.endline(t,e,o),e.state=a.None,this.closeNode(t,e,o),l},p.prototype.dtdAttList=function(t,e,o){var l;return this.openNode(t,e,o),e.state=a.OpenTag,l=this.indent(t,e,o)+"<!ATTLIST",e.state=a.InsideTag,l+=" "+t.elementName+" "+t.attributeName+" "+t.attributeType,t.defaultValueType!=="#DEFAULT"&&(l+=" "+t.defaultValueType),t.defaultValue&&(l+=' "'+t.defaultValue+'"'),e.state=a.CloseTag,l+=e.spaceBeforeSlash+">"+this.endline(t,e,o),e.state=a.None,this.closeNode(t,e,o),l},p.prototype.dtdElement=function(t,e,o){var l;return this.openNode(t,e,o),e.state=a.OpenTag,l=this.indent(t,e,o)+"<!ELEMENT",e.state=a.InsideTag,l+=" "+t.name+" "+t.value,e.state=a.CloseTag,l+=e.spaceBeforeSlash+">"+this.endline(t,e,o),e.state=a.None,this.closeNode(t,e,o),l},p.prototype.dtdEntity=function(t,e,o){var l;return this.openNode(t,e,o),e.state=a.OpenTag,l=this.indent(t,e,o)+"<!ENTITY",e.state=a.InsideTag,t.pe&&(l+=" %"),l+=" "+t.name,t.value?l+=' "'+t.value+'"':(t.pubID&&t.sysID?l+=' PUBLIC "'+t.pubID+'" "'+t.sysID+'"':t.sysID&&(l+=' SYSTEM "'+t.sysID+'"'),t.nData&&(l+=" NDATA "+t.nData)),e.state=a.CloseTag,l+=e.spaceBeforeSlash+">"+this.endline(t,e,o),e.state=a.None,this.closeNode(t,e,o),l},p.prototype.dtdNotation=function(t,e,o){var l;return this.openNode(t,e,o),e.state=a.OpenTag,l=this.indent(t,e,o)+"<!NOTATION",e.state=a.InsideTag,l+=" "+t.name,t.pubID&&t.sysID?l+=' PUBLIC "'+t.pubID+'" "'+t.sysID+'"':t.pubID?l+=' PUBLIC "'+t.pubID+'"':t.sysID&&(l+=' SYSTEM "'+t.sysID+'"'),e.state=a.CloseTag,l+=e.spaceBeforeSlash+">"+this.endline(t,e,o),e.state=a.None,this.closeNode(t,e,o),l},p.prototype.openNode=function(t,e,o){},p.prototype.closeNode=function(t,e,o){},p.prototype.openAttribute=function(t,e,o){},p.prototype.closeAttribute=function(t,e,o){},p}()}).call(Ur)),Ct.exports}var Vr=Mt.exports,ke;function re(){return ke||(ke=1,(function(){var n,a=function(f,p){for(var t in p)g.call(p,t)&&(f[t]=p[t]);function e(){this.constructor=f}return e.prototype=p.prototype,f.prototype=new e,f.__super__=p.prototype,f},g={}.hasOwnProperty;n=Ve(),Mt.exports=function(f){a(p,f);function p(t){p.__super__.constructor.call(this,t)}return p.prototype.document=function(t,e){var o,l,b,m,y;for(e=this.filterOptions(e),m="",y=t.children,l=0,b=y.length;l<b;l++)o=y[l],m+=this.writeChildNode(o,e,0);return e.pretty&&m.slice(-e.newline.length)===e.newline&&(m=m.slice(0,-e.newline.length)),m},p}(n)}).call(Vr)),Mt.exports}var kr=st.exports,$e;function Ge(){return $e||($e=1,(function(){var n,a,g,f,p,t,e,o=function(b,m){for(var y in m)l.call(m,y)&&(b[y]=m[y]);function d(){this.constructor=b}return d.prototype=m.prototype,b.prototype=new d,b.__super__=m.prototype,b},l={}.hasOwnProperty;e=H().isPlainObject,g=he(),a=mr(),f=G(),n=B(),t=Be(),p=re(),st.exports=function(b){o(m,b);function m(y){m.__super__.constructor.call(this,null),this.name="#document",this.type=n.Document,this.documentURI=null,this.domConfig=new a,y||(y={}),y.writer||(y.writer=new p),this.options=y,this.stringify=new t(y)}return Object.defineProperty(m.prototype,"implementation",{value:new g}),Object.defineProperty(m.prototype,"doctype",{get:function(){var y,d,w,O;for(O=this.children,d=0,w=O.length;d<w;d++)if(y=O[d],y.type===n.DocType)return y;return null}}),Object.defineProperty(m.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(m.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(m.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(m.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===n.Declaration?this.children[0].encoding:null}}),Object.defineProperty(m.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===n.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(m.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===n.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(m.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(m.prototype,"origin",{get:function(){return null}}),Object.defineProperty(m.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(m.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(m.prototype,"contentType",{get:function(){return null}}),m.prototype.end=function(y){var d;return d={},y?e(y)&&(d=y,y=this.options.writer):y=this.options.writer,y.document(this,y.filterOptions(d))},m.prototype.toString=function(y){return this.options.writer.document(this,this.options.writer.filterOptions(y))},m.prototype.createElement=function(y){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createTextNode=function(y){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createComment=function(y){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createCDATASection=function(y){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createProcessingInstruction=function(y,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createAttribute=function(y){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createEntityReference=function(y){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.getElementsByTagName=function(y){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.importNode=function(y,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createElementNS=function(y,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createAttributeNS=function(y,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.getElementsByTagNameNS=function(y,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.getElementById=function(y){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.adoptNode=function(y){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.renameNode=function(y,d,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.getElementsByClassName=function(y){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createEvent=function(y){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createNodeIterator=function(y,d,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createTreeWalker=function(y,d,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},m}(f)}).call(kr)),st.exports}var Xt={exports:{}},$r=Xt.exports,We;function Gr(){return We||(We=1,(function(){var n,a,g,f,p,t,e,o,l,b,m,y,d,w,O,I,P,_,E,s,c,h,D,L={}.hasOwnProperty;D=H(),c=D.isObject,s=D.isFunction,h=D.isPlainObject,E=D.getValue,n=B(),y=Ge(),d=$t(),f=Gt(),p=Wt(),O=Jt(),_=te(),w=ee(),b=Yt(),m=Zt(),t=Kt(),o=zt(),e=Ht(),l=Qt(),g=we(),P=Be(),I=re(),a=Ft(),Xt.exports=function(){function v(r,N,x){var M;this.name="?xml",this.type=n.Document,r||(r={}),M={},r.writer?h(r.writer)&&(M=r.writer,r.writer=new I):r.writer=new I,this.options=r,this.writer=r.writer,this.writerOptions=this.writer.filterOptions(M),this.stringify=new P(r),this.onDataCallback=N||function(){},this.onEndCallback=x||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return v.prototype.createChildNode=function(r){var N,x,M,C,F,j,X,S;switch(r.type){case n.CData:this.cdata(r.value);break;case n.Comment:this.comment(r.value);break;case n.Element:M={},X=r.attribs;for(x in X)L.call(X,x)&&(N=X[x],M[x]=N.value);this.node(r.name,M);break;case n.Dummy:this.dummy();break;case n.Raw:this.raw(r.value);break;case n.Text:this.text(r.value);break;case n.ProcessingInstruction:this.instruction(r.target,r.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+r.constructor.name)}for(S=r.children,F=0,j=S.length;F<j;F++)C=S[F],this.createChildNode(C),C.type===n.Element&&this.up();return this},v.prototype.dummy=function(){return this},v.prototype.node=function(r,N,x){var M;if(r==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(r));return this.openCurrent(),r=E(r),N==null&&(N={}),N=E(N),c(N)||(M=[N,x],x=M[0],N=M[1]),this.currentNode=new d(this,r,N),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,x!=null&&this.text(x),this},v.prototype.element=function(r,N,x){var M,C,F,j,X,S;if(this.currentNode&&this.currentNode.type===n.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(r)||c(r)||s(r))for(j=this.options.noValidation,this.options.noValidation=!0,S=new y(this.options).element("TEMP_ROOT"),S.element(r),this.options.noValidation=j,X=S.children,C=0,F=X.length;C<F;C++)M=X[C],this.createChildNode(M),M.type===n.Element&&this.up();else this.node(r,N,x);return this},v.prototype.attribute=function(r,N){var x,M;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(r));if(r!=null&&(r=E(r)),c(r))for(x in r)L.call(r,x)&&(M=r[x],this.attribute(x,M));else s(N)&&(N=N.apply()),this.options.keepNullAttributes&&N==null?this.currentNode.attribs[r]=new g(this,r,""):N!=null&&(this.currentNode.attribs[r]=new g(this,r,N));return this},v.prototype.text=function(r){var N;return this.openCurrent(),N=new _(this,r),this.onData(this.writer.text(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},v.prototype.cdata=function(r){var N;return this.openCurrent(),N=new f(this,r),this.onData(this.writer.cdata(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},v.prototype.comment=function(r){var N;return this.openCurrent(),N=new p(this,r),this.onData(this.writer.comment(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},v.prototype.raw=function(r){var N;return this.openCurrent(),N=new O(this,r),this.onData(this.writer.raw(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},v.prototype.instruction=function(r,N){var x,M,C,F,j;if(this.openCurrent(),r!=null&&(r=E(r)),N!=null&&(N=E(N)),Array.isArray(r))for(x=0,F=r.length;x<F;x++)M=r[x],this.instruction(M);else if(c(r))for(M in r)L.call(r,M)&&(C=r[M],this.instruction(M,C));else s(N)&&(N=N.apply()),j=new w(this,r,N),this.onData(this.writer.processingInstruction(j,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},v.prototype.declaration=function(r,N,x){var M;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return M=new b(this,r,N,x),this.onData(this.writer.declaration(M,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},v.prototype.doctype=function(r,N,x){if(this.openCurrent(),r==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new m(this,N,x),this.currentNode.rootNodeName=r,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},v.prototype.dtdElement=function(r,N){var x;return this.openCurrent(),x=new e(this,r,N),this.onData(this.writer.dtdElement(x,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},v.prototype.attList=function(r,N,x,M,C){var F;return this.openCurrent(),F=new t(this,r,N,x,M,C),this.onData(this.writer.dtdAttList(F,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},v.prototype.entity=function(r,N){var x;return this.openCurrent(),x=new o(this,!1,r,N),this.onData(this.writer.dtdEntity(x,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},v.prototype.pEntity=function(r,N){var x;return this.openCurrent(),x=new o(this,!0,r,N),this.onData(this.writer.dtdEntity(x,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},v.prototype.notation=function(r,N){var x;return this.openCurrent(),x=new l(this,r,N),this.onData(this.writer.dtdNotation(x,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},v.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},v.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},v.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},v.prototype.openNode=function(r){var N,x,M,C;if(!r.isOpen){if(!this.root&&this.currentLevel===0&&r.type===n.Element&&(this.root=r),x="",r.type===n.Element){this.writerOptions.state=a.OpenTag,x=this.writer.indent(r,this.writerOptions,this.currentLevel)+"<"+r.name,C=r.attribs;for(M in C)L.call(C,M)&&(N=C[M],x+=this.writer.attribute(N,this.writerOptions,this.currentLevel));x+=(r.children?">":"/>")+this.writer.endline(r,this.writerOptions,this.currentLevel),this.writerOptions.state=a.InsideTag}else this.writerOptions.state=a.OpenTag,x=this.writer.indent(r,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+r.rootNodeName,r.pubID&&r.sysID?x+=' PUBLIC "'+r.pubID+'" "'+r.sysID+'"':r.sysID&&(x+=' SYSTEM "'+r.sysID+'"'),r.children?(x+=" [",this.writerOptions.state=a.InsideTag):(this.writerOptions.state=a.CloseTag,x+=">"),x+=this.writer.endline(r,this.writerOptions,this.currentLevel);return this.onData(x,this.currentLevel),r.isOpen=!0}},v.prototype.closeNode=function(r){var N;if(!r.isClosed)return N="",this.writerOptions.state=a.CloseTag,r.type===n.Element?N=this.writer.indent(r,this.writerOptions,this.currentLevel)+"</"+r.name+">"+this.writer.endline(r,this.writerOptions,this.currentLevel):N=this.writer.indent(r,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(r,this.writerOptions,this.currentLevel),this.writerOptions.state=a.None,this.onData(N,this.currentLevel),r.isClosed=!0},v.prototype.onData=function(r,N){return this.documentStarted=!0,this.onDataCallback(r,N+1)},v.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},v.prototype.debugInfo=function(r){return r==null?"":"node: <"+r+">"},v.prototype.ele=function(){return this.element.apply(this,arguments)},v.prototype.nod=function(r,N,x){return this.node(r,N,x)},v.prototype.txt=function(r){return this.text(r)},v.prototype.dat=function(r){return this.cdata(r)},v.prototype.com=function(r){return this.comment(r)},v.prototype.ins=function(r,N){return this.instruction(r,N)},v.prototype.dec=function(r,N,x){return this.declaration(r,N,x)},v.prototype.dtd=function(r,N,x){return this.doctype(r,N,x)},v.prototype.e=function(r,N,x){return this.element(r,N,x)},v.prototype.n=function(r,N,x){return this.node(r,N,x)},v.prototype.t=function(r){return this.text(r)},v.prototype.d=function(r){return this.cdata(r)},v.prototype.c=function(r){return this.comment(r)},v.prototype.r=function(r){return this.raw(r)},v.prototype.i=function(r,N){return this.instruction(r,N)},v.prototype.att=function(){return this.currentNode&&this.currentNode.type===n.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},v.prototype.a=function(){return this.currentNode&&this.currentNode.type===n.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},v.prototype.ent=function(r,N){return this.entity(r,N)},v.prototype.pent=function(r,N){return this.pEntity(r,N)},v.prototype.not=function(r,N){return this.notation(r,N)},v}()}).call($r)),Xt.exports}var Rt={exports:{}},Wr=Rt.exports,Ye;function Yr(){return Ye||(Ye=1,(function(){var n,a,g,f=function(t,e){for(var o in e)p.call(e,o)&&(t[o]=e[o]);function l(){this.constructor=t}return l.prototype=e.prototype,t.prototype=new l,t.__super__=e.prototype,t},p={}.hasOwnProperty;n=B(),g=Ve(),a=Ft(),Rt.exports=function(t){f(e,t);function e(o,l){this.stream=o,e.__super__.constructor.call(this,l)}return e.prototype.endline=function(o,l,b){return o.isLastRootNode&&l.state===a.CloseTag?"":e.__super__.endline.call(this,o,l,b)},e.prototype.document=function(o,l){var b,m,y,d,w,O,I,P,_;for(I=o.children,m=y=0,w=I.length;y<w;m=++y)b=I[m],b.isLastRootNode=m===o.children.length-1;for(l=this.filterOptions(l),P=o.children,_=[],d=0,O=P.length;d<O;d++)b=P[d],_.push(this.writeChildNode(b,l,0));return _},e.prototype.attribute=function(o,l,b){return this.stream.write(e.__super__.attribute.call(this,o,l,b))},e.prototype.cdata=function(o,l,b){return this.stream.write(e.__super__.cdata.call(this,o,l,b))},e.prototype.comment=function(o,l,b){return this.stream.write(e.__super__.comment.call(this,o,l,b))},e.prototype.declaration=function(o,l,b){return this.stream.write(e.__super__.declaration.call(this,o,l,b))},e.prototype.docType=function(o,l,b){var m,y,d,w;if(b||(b=0),this.openNode(o,l,b),l.state=a.OpenTag,this.stream.write(this.indent(o,l,b)),this.stream.write("<!DOCTYPE "+o.root().name),o.pubID&&o.sysID?this.stream.write(' PUBLIC "'+o.pubID+'" "'+o.sysID+'"'):o.sysID&&this.stream.write(' SYSTEM "'+o.sysID+'"'),o.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(o,l,b)),l.state=a.InsideTag,w=o.children,y=0,d=w.length;y<d;y++)m=w[y],this.writeChildNode(m,l,b+1);l.state=a.CloseTag,this.stream.write("]")}return l.state=a.CloseTag,this.stream.write(l.spaceBeforeSlash+">"),this.stream.write(this.endline(o,l,b)),l.state=a.None,this.closeNode(o,l,b)},e.prototype.element=function(o,l,b){var m,y,d,w,O,I,P,_,E;b||(b=0),this.openNode(o,l,b),l.state=a.OpenTag,this.stream.write(this.indent(o,l,b)+"<"+o.name),_=o.attribs;for(P in _)p.call(_,P)&&(m=_[P],this.attribute(m,l,b));if(d=o.children.length,w=d===0?null:o.children[0],d===0||o.children.every(function(s){return(s.type===n.Text||s.type===n.Raw)&&s.value===""}))l.allowEmpty?(this.stream.write(">"),l.state=a.CloseTag,this.stream.write("</"+o.name+">")):(l.state=a.CloseTag,this.stream.write(l.spaceBeforeSlash+"/>"));else if(l.pretty&&d===1&&(w.type===n.Text||w.type===n.Raw)&&w.value!=null)this.stream.write(">"),l.state=a.InsideTag,l.suppressPrettyCount++,this.writeChildNode(w,l,b+1),l.suppressPrettyCount--,l.state=a.CloseTag,this.stream.write("</"+o.name+">");else{for(this.stream.write(">"+this.endline(o,l,b)),l.state=a.InsideTag,E=o.children,O=0,I=E.length;O<I;O++)y=E[O],this.writeChildNode(y,l,b+1);l.state=a.CloseTag,this.stream.write(this.indent(o,l,b)+"</"+o.name+">")}return this.stream.write(this.endline(o,l,b)),l.state=a.None,this.closeNode(o,l,b)},e.prototype.processingInstruction=function(o,l,b){return this.stream.write(e.__super__.processingInstruction.call(this,o,l,b))},e.prototype.raw=function(o,l,b){return this.stream.write(e.__super__.raw.call(this,o,l,b))},e.prototype.text=function(o,l,b){return this.stream.write(e.__super__.text.call(this,o,l,b))},e.prototype.dtdAttList=function(o,l,b){return this.stream.write(e.__super__.dtdAttList.call(this,o,l,b))},e.prototype.dtdElement=function(o,l,b){return this.stream.write(e.__super__.dtdElement.call(this,o,l,b))},e.prototype.dtdEntity=function(o,l,b){return this.stream.write(e.__super__.dtdEntity.call(this,o,l,b))},e.prototype.dtdNotation=function(o,l,b){return this.stream.write(e.__super__.dtdNotation.call(this,o,l,b))},e}(g)}).call(Wr)),Rt.exports}var Ke;function Kr(){return Ke||(Ke=1,(function(){var n,a,g,f,p,t,e,o,l,b;b=H(),o=b.assign,l=b.isFunction,g=he(),f=Ge(),p=Gr(),e=re(),t=Yr(),n=B(),a=Ft(),K.create=function(m,y,d,w){var O,I;if(m==null)throw new Error("Root element needs a name.");return w=o({},y,d,w),O=new f(w),I=O.element(m),w.headless||(O.declaration(w),(w.pubID!=null||w.sysID!=null)&&O.dtd(w)),I},K.begin=function(m,y,d){var w;return l(m)&&(w=[m,y],y=w[0],d=w[1],m={}),y?new p(m,y,d):new f(m)},K.stringWriter=function(m){return new e(m)},K.streamWriter=function(m,y){return new t(m,y)},K.implementation=new g,K.nodeType=n,K.writerState=a}).call(K)),K}var ze;function zr(){return ze||(ze=1,(function(){var n,a,g,f,p,t={}.hasOwnProperty;n=Kr(),a=Vt().defaults,f=function(e){return typeof e=="string"&&(e.indexOf("&")>=0||e.indexOf(">")>=0||e.indexOf("<")>=0)},p=function(e){return"<![CDATA["+g(e)+"]]>"},g=function(e){return e.replace("]]>","]]]]><![CDATA[>")},it.Builder=function(){function e(o){var l,b,m;this.options={},b=a["0.2"];for(l in b)t.call(b,l)&&(m=b[l],this.options[l]=m);for(l in o)t.call(o,l)&&(m=o[l],this.options[l]=m)}return e.prototype.buildObject=function(o){var l,b,m,y,d;return l=this.options.attrkey,b=this.options.charkey,Object.keys(o).length===1&&this.options.rootName===a["0.2"].rootName?(d=Object.keys(o)[0],o=o[d]):d=this.options.rootName,m=function(w){return function(O,I){var P,_,E,s,c,h;if(typeof I!="object")w.options.cdata&&f(I)?O.raw(p(I)):O.txt(I);else if(Array.isArray(I)){for(s in I)if(t.call(I,s)){_=I[s];for(c in _)E=_[c],O=m(O.ele(c),E).up()}}else for(c in I)if(t.call(I,c))if(_=I[c],c===l){if(typeof _=="object")for(P in _)h=_[P],O=O.att(P,h)}else if(c===b)w.options.cdata&&f(_)?O=O.raw(p(_)):O=O.txt(_);else if(Array.isArray(_))for(s in _)t.call(_,s)&&(E=_[s],typeof E=="string"?w.options.cdata&&f(E)?O=O.ele(c).raw(p(E)).up():O=O.ele(c,E).up():O=m(O.ele(c),E).up());else typeof _=="object"?O=m(O.ele(c),_).up():typeof _=="string"&&w.options.cdata&&f(_)?O=O.ele(c).raw(p(_)).up():(_==null&&(_=""),O=O.ele(c,_.toString()).up());return O}}(this),y=n.create(d,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),m(y,o).end(this.options.renderOpts)},e}()}).call(it)),it}var jt={},ne={};const ie=rt(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var He;function Hr(){return He||(He=1,function(n){(function(a){a.parser=function(u,i){return new f(u,i)},a.SAXParser=f,a.SAXStream=m,a.createStream=b,a.MAX_BUFFER_LENGTH=64*1024;var g=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];a.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function f(u,i){if(!(this instanceof f))return new f(u,i);var A=this;t(A),A.q=A.c="",A.bufferCheckPosition=a.MAX_BUFFER_LENGTH,A.opt=i||{},A.opt.lowercase=A.opt.lowercase||A.opt.lowercasetags,A.looseCase=A.opt.lowercase?"toLowerCase":"toUpperCase",A.tags=[],A.closed=A.closedRoot=A.sawRoot=!1,A.tag=A.error=null,A.strict=!!u,A.noscript=!!(u||A.opt.noscript),A.state=r.BEGIN,A.strictEntities=A.opt.strictEntities,A.ENTITIES=A.strictEntities?Object.create(a.XML_ENTITIES):Object.create(a.ENTITIES),A.attribList=[],A.opt.xmlns&&(A.ns=Object.create(I)),A.opt.unquotedAttributeValues===void 0&&(A.opt.unquotedAttributeValues=!u),A.trackPosition=A.opt.position!==!1,A.trackPosition&&(A.position=A.line=A.column=0),x(A,"onready")}Object.create||(Object.create=function(u){function i(){}i.prototype=u;var A=new i;return A}),Object.keys||(Object.keys=function(u){var i=[];for(var A in u)u.hasOwnProperty(A)&&i.push(A);return i});function p(u){for(var i=Math.max(a.MAX_BUFFER_LENGTH,10),A=0,T=0,R=g.length;T<R;T++){var q=u[g[T]].length;if(q>i)switch(g[T]){case"textNode":C(u);break;case"cdata":M(u,"oncdata",u.cdata),u.cdata="";break;case"script":M(u,"onscript",u.script),u.script="";break;default:j(u,"Max buffer length exceeded: "+g[T])}A=Math.max(A,q)}var U=a.MAX_BUFFER_LENGTH-A;u.bufferCheckPosition=U+u.position}function t(u){for(var i=0,A=g.length;i<A;i++)u[g[i]]=""}function e(u){C(u),u.cdata!==""&&(M(u,"oncdata",u.cdata),u.cdata=""),u.script!==""&&(M(u,"onscript",u.script),u.script="")}f.prototype={end:function(){X(this)},write:Ln,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){e(this)}};var o;try{o=ie.Stream}catch{o=function(){}}o||(o=function(){});var l=a.EVENTS.filter(function(u){return u!=="error"&&u!=="end"});function b(u,i){return new m(u,i)}function m(u,i){if(!(this instanceof m))return new m(u,i);o.apply(this),this._parser=new f(u,i),this.writable=!0,this.readable=!0;var A=this;this._parser.onend=function(){A.emit("end")},this._parser.onerror=function(T){A.emit("error",T),A._parser.error=null},this._decoder=null,l.forEach(function(T){Object.defineProperty(A,"on"+T,{get:function(){return A._parser["on"+T]},set:function(R){if(!R)return A.removeAllListeners(T),A._parser["on"+T]=R,R;A.on(T,R)},enumerable:!0,configurable:!1})})}m.prototype=Object.create(o.prototype,{constructor:{value:m}}),m.prototype.write=function(u){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(u)){if(!this._decoder){var i=ie.StringDecoder;this._decoder=new i("utf8")}u=this._decoder.write(u)}return this._parser.write(u.toString()),this.emit("data",u),!0},m.prototype.end=function(u){return u&&u.length&&this.write(u),this._parser.end(),!0},m.prototype.on=function(u,i){var A=this;return!A._parser["on"+u]&&l.indexOf(u)!==-1&&(A._parser["on"+u]=function(){var T=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);T.splice(0,0,u),A.emit.apply(A,T)}),o.prototype.on.call(A,u,i)};var y="[CDATA[",d="DOCTYPE",w="http://www.w3.org/XML/1998/namespace",O="http://www.w3.org/2000/xmlns/",I={xml:w,xmlns:O},P=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,_=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,E=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,s=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function c(u){return u===" "||u===`
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
Column: `+u.column+`
|
|
7
|
-
|
|
8
|
-
Actual: `+u.attribValue);else if(T==="xmlns"&&u.attribValue!==O)S(u,"xmlns: prefix must be bound to "+O+`
|
|
9
|
-
Actual: `+u.attribValue);else{var R=u.tag,q=u.tags[u.tags.length-1]||u;R.ns===q.ns&&(R.ns=Object.create(q.ns)),R.ns[T]=u.attribValue}u.attribList.push([u.attribName,u.attribValue])}else u.tag.attributes[u.attribName]=u.attribValue,M(u,"onattribute",{name:u.attribName,value:u.attribValue});u.attribName=u.attribValue=""}function J(u,i){if(u.opt.xmlns){var A=u.tag,T=oe(u.tagName);A.prefix=T.prefix,A.local=T.local,A.uri=A.ns[T.prefix]||"",A.prefix&&!A.uri&&(S(u,"Unbound namespace prefix: "+JSON.stringify(u.tagName)),A.uri=T.prefix);var R=u.tags[u.tags.length-1]||u;A.ns&&R.ns!==A.ns&&Object.keys(A.ns).forEach(function(cr){M(u,"onopennamespace",{prefix:cr,uri:A.ns[cr]})});for(var q=0,U=u.attribList.length;q<U;q++){var k=u.attribList[q],$=k[0],et=k[1],V=oe($,!0),Q=V.prefix,In=V.local,ar=Q===""?"":A.ns[Q]||"",ae={name:$,value:et,prefix:Q,local:In,uri:ar};Q&&Q!=="xmlns"&&!ar&&(S(u,"Unbound namespace prefix: "+JSON.stringify(Q)),ae.uri=Q),u.tag.attributes[$]=ae,M(u,"onattribute",ae)}u.attribList.length=0}u.tag.isSelfClosing=!!i,u.sawRoot=!0,u.tags.push(u.tag),M(u,"onopentag",u.tag),i||(!u.noscript&&u.tagName.toLowerCase()==="script"?u.state=r.SCRIPT:u.state=r.TEXT,u.tag=null,u.tagName=""),u.attribName=u.attribValue="",u.attribList.length=0}function ue(u){if(!u.tagName){S(u,"Weird empty close tag."),u.textNode+="</>",u.state=r.TEXT;return}if(u.script){if(u.tagName!=="script"){u.script+="</"+u.tagName+">",u.tagName="",u.state=r.SCRIPT;return}M(u,"onscript",u.script),u.script=""}var i=u.tags.length,A=u.tagName;u.strict||(A=A[u.looseCase]());for(var T=A;i--;){var R=u.tags[i];if(R.name!==T)S(u,"Unexpected close tag");else break}if(i<0){S(u,"Unmatched closing tag: "+u.tagName),u.textNode+="</"+u.tagName+">",u.state=r.TEXT;return}u.tagName=A;for(var q=u.tags.length;q-- >i;){var U=u.tag=u.tags.pop();u.tagName=u.tag.name,M(u,"onclosetag",u.tagName);var k={};for(var $ in U.ns)k[$]=U.ns[$];var et=u.tags[u.tags.length-1]||u;u.opt.xmlns&&U.ns!==et.ns&&Object.keys(U.ns).forEach(function(V){var Q=U.ns[V];M(u,"onclosenamespace",{prefix:V,uri:Q})})}i===0&&(u.closedRoot=!0),u.tagName=u.attribValue=u.attribName="",u.attribList.length=0,u.state=r.TEXT}function vn(u){var i=u.entity,A=i.toLowerCase(),T,R="";return u.ENTITIES[i]?u.ENTITIES[i]:u.ENTITIES[A]?u.ENTITIES[A]:(i=A,i.charAt(0)==="#"&&(i.charAt(1)==="x"?(i=i.slice(2),T=parseInt(i,16),R=T.toString(16)):(i=i.slice(1),T=parseInt(i,10),R=T.toString(10))),i=i.replace(/^0+/,""),isNaN(T)||R.toLowerCase()!==i?(S(u,"Invalid character entity"),"&"+u.entity+";"):String.fromCodePoint(T))}function sr(u,i){i==="<"?(u.state=r.OPEN_WAKA,u.startTagPosition=u.position):c(i)||(S(u,"Non-whitespace before first tag."),u.textNode=i,u.state=r.TEXT)}function ur(u,i){var A="";return i<u.length&&(A=u.charAt(i)),A}function Ln(u){var i=this;if(this.error)throw this.error;if(i.closed)return j(i,"Cannot write after close. Assign an onready handler.");if(u===null)return X(i);typeof u=="object"&&(u=u.toString());for(var A=0,T="";T=ur(u,A++),i.c=T,!!T;)switch(i.trackPosition&&(i.position++,T===`
|
|
10
|
-
`?(i.line++,i.column=0):i.column++),i.state){case r.BEGIN:if(i.state=r.BEGIN_WHITESPACE,T==="\uFEFF")continue;sr(i,T);continue;case r.BEGIN_WHITESPACE:sr(i,T);continue;case r.TEXT:if(i.sawRoot&&!i.closedRoot){for(var R=A-1;T&&T!=="<"&&T!=="&";)T=ur(u,A++),T&&i.trackPosition&&(i.position++,T===`
|
|
11
|
-
`?(i.line++,i.column=0):i.column++);i.textNode+=u.substring(R,A-1)}T==="<"&&!(i.sawRoot&&i.closedRoot&&!i.strict)?(i.state=r.OPEN_WAKA,i.startTagPosition=i.position):(!c(T)&&(!i.sawRoot||i.closedRoot)&&S(i,"Text data outside of root node."),T==="&"?i.state=r.TEXT_ENTITY:i.textNode+=T);continue;case r.SCRIPT:T==="<"?i.state=r.SCRIPT_ENDING:i.script+=T;continue;case r.SCRIPT_ENDING:T==="/"?i.state=r.CLOSE_TAG:(i.script+="<"+T,i.state=r.SCRIPT);continue;case r.OPEN_WAKA:if(T==="!")i.state=r.SGML_DECL,i.sgmlDecl="";else if(!c(T))if(L(P,T))i.state=r.OPEN_TAG,i.tagName=T;else if(T==="/")i.state=r.CLOSE_TAG,i.tagName="";else if(T==="?")i.state=r.PROC_INST,i.procInstName=i.procInstBody="";else{if(S(i,"Unencoded <"),i.startTagPosition+1<i.position){var q=i.position-i.startTagPosition;T=new Array(q).join(" ")+T}i.textNode+="<"+T,i.state=r.TEXT}continue;case r.SGML_DECL:if(i.sgmlDecl+T==="--"){i.state=r.COMMENT,i.comment="",i.sgmlDecl="";continue}i.doctype&&i.doctype!==!0&&i.sgmlDecl?(i.state=r.DOCTYPE_DTD,i.doctype+="<!"+i.sgmlDecl+T,i.sgmlDecl=""):(i.sgmlDecl+T).toUpperCase()===y?(M(i,"onopencdata"),i.state=r.CDATA,i.sgmlDecl="",i.cdata=""):(i.sgmlDecl+T).toUpperCase()===d?(i.state=r.DOCTYPE,(i.doctype||i.sawRoot)&&S(i,"Inappropriately located doctype declaration"),i.doctype="",i.sgmlDecl=""):T===">"?(M(i,"onsgmldeclaration",i.sgmlDecl),i.sgmlDecl="",i.state=r.TEXT):(h(T)&&(i.state=r.SGML_DECL_QUOTED),i.sgmlDecl+=T);continue;case r.SGML_DECL_QUOTED:T===i.q&&(i.state=r.SGML_DECL,i.q=""),i.sgmlDecl+=T;continue;case r.DOCTYPE:T===">"?(i.state=r.TEXT,M(i,"ondoctype",i.doctype),i.doctype=!0):(i.doctype+=T,T==="["?i.state=r.DOCTYPE_DTD:h(T)&&(i.state=r.DOCTYPE_QUOTED,i.q=T));continue;case r.DOCTYPE_QUOTED:i.doctype+=T,T===i.q&&(i.q="",i.state=r.DOCTYPE);continue;case r.DOCTYPE_DTD:T==="]"?(i.doctype+=T,i.state=r.DOCTYPE):T==="<"?(i.state=r.OPEN_WAKA,i.startTagPosition=i.position):h(T)?(i.doctype+=T,i.state=r.DOCTYPE_DTD_QUOTED,i.q=T):i.doctype+=T;continue;case r.DOCTYPE_DTD_QUOTED:i.doctype+=T,T===i.q&&(i.state=r.DOCTYPE_DTD,i.q="");continue;case r.COMMENT:T==="-"?i.state=r.COMMENT_ENDING:i.comment+=T;continue;case r.COMMENT_ENDING:T==="-"?(i.state=r.COMMENT_ENDED,i.comment=F(i.opt,i.comment),i.comment&&M(i,"oncomment",i.comment),i.comment=""):(i.comment+="-"+T,i.state=r.COMMENT);continue;case r.COMMENT_ENDED:T!==">"?(S(i,"Malformed comment"),i.comment+="--"+T,i.state=r.COMMENT):i.doctype&&i.doctype!==!0?i.state=r.DOCTYPE_DTD:i.state=r.TEXT;continue;case r.CDATA:T==="]"?i.state=r.CDATA_ENDING:i.cdata+=T;continue;case r.CDATA_ENDING:T==="]"?i.state=r.CDATA_ENDING_2:(i.cdata+="]"+T,i.state=r.CDATA);continue;case r.CDATA_ENDING_2:T===">"?(i.cdata&&M(i,"oncdata",i.cdata),M(i,"onclosecdata"),i.cdata="",i.state=r.TEXT):T==="]"?i.cdata+="]":(i.cdata+="]]"+T,i.state=r.CDATA);continue;case r.PROC_INST:T==="?"?i.state=r.PROC_INST_ENDING:c(T)?i.state=r.PROC_INST_BODY:i.procInstName+=T;continue;case r.PROC_INST_BODY:if(!i.procInstBody&&c(T))continue;T==="?"?i.state=r.PROC_INST_ENDING:i.procInstBody+=T;continue;case r.PROC_INST_ENDING:T===">"?(M(i,"onprocessinginstruction",{name:i.procInstName,body:i.procInstBody}),i.procInstName=i.procInstBody="",i.state=r.TEXT):(i.procInstBody+="?"+T,i.state=r.PROC_INST_BODY);continue;case r.OPEN_TAG:L(_,T)?i.tagName+=T:(Nn(i),T===">"?J(i):T==="/"?i.state=r.OPEN_TAG_SLASH:(c(T)||S(i,"Invalid character in tag name"),i.state=r.ATTRIB));continue;case r.OPEN_TAG_SLASH:T===">"?(J(i,!0),ue(i)):(S(i,"Forward-slash in opening tag not followed by >"),i.state=r.ATTRIB);continue;case r.ATTRIB:if(c(T))continue;T===">"?J(i):T==="/"?i.state=r.OPEN_TAG_SLASH:L(P,T)?(i.attribName=T,i.attribValue="",i.state=r.ATTRIB_NAME):S(i,"Invalid attribute name");continue;case r.ATTRIB_NAME:T==="="?i.state=r.ATTRIB_VALUE:T===">"?(S(i,"Attribute without value"),i.attribValue=i.attribName,se(i),J(i)):c(T)?i.state=r.ATTRIB_NAME_SAW_WHITE:L(_,T)?i.attribName+=T:S(i,"Invalid attribute name");continue;case r.ATTRIB_NAME_SAW_WHITE:if(T==="=")i.state=r.ATTRIB_VALUE;else{if(c(T))continue;S(i,"Attribute without value"),i.tag.attributes[i.attribName]="",i.attribValue="",M(i,"onattribute",{name:i.attribName,value:""}),i.attribName="",T===">"?J(i):L(P,T)?(i.attribName=T,i.state=r.ATTRIB_NAME):(S(i,"Invalid attribute name"),i.state=r.ATTRIB)}continue;case r.ATTRIB_VALUE:if(c(T))continue;h(T)?(i.q=T,i.state=r.ATTRIB_VALUE_QUOTED):(i.opt.unquotedAttributeValues||j(i,"Unquoted attribute value"),i.state=r.ATTRIB_VALUE_UNQUOTED,i.attribValue=T);continue;case r.ATTRIB_VALUE_QUOTED:if(T!==i.q){T==="&"?i.state=r.ATTRIB_VALUE_ENTITY_Q:i.attribValue+=T;continue}se(i),i.q="",i.state=r.ATTRIB_VALUE_CLOSED;continue;case r.ATTRIB_VALUE_CLOSED:c(T)?i.state=r.ATTRIB:T===">"?J(i):T==="/"?i.state=r.OPEN_TAG_SLASH:L(P,T)?(S(i,"No whitespace between attributes"),i.attribName=T,i.attribValue="",i.state=r.ATTRIB_NAME):S(i,"Invalid attribute name");continue;case r.ATTRIB_VALUE_UNQUOTED:if(!D(T)){T==="&"?i.state=r.ATTRIB_VALUE_ENTITY_U:i.attribValue+=T;continue}se(i),T===">"?J(i):i.state=r.ATTRIB;continue;case r.CLOSE_TAG:if(i.tagName)T===">"?ue(i):L(_,T)?i.tagName+=T:i.script?(i.script+="</"+i.tagName,i.tagName="",i.state=r.SCRIPT):(c(T)||S(i,"Invalid tagname in closing tag"),i.state=r.CLOSE_TAG_SAW_WHITE);else{if(c(T))continue;v(P,T)?i.script?(i.script+="</"+T,i.state=r.SCRIPT):S(i,"Invalid tagname in closing tag."):i.tagName=T}continue;case r.CLOSE_TAG_SAW_WHITE:if(c(T))continue;T===">"?ue(i):S(i,"Invalid characters in closing tag");continue;case r.TEXT_ENTITY:case r.ATTRIB_VALUE_ENTITY_Q:case r.ATTRIB_VALUE_ENTITY_U:var U,k;switch(i.state){case r.TEXT_ENTITY:U=r.TEXT,k="textNode";break;case r.ATTRIB_VALUE_ENTITY_Q:U=r.ATTRIB_VALUE_QUOTED,k="attribValue";break;case r.ATTRIB_VALUE_ENTITY_U:U=r.ATTRIB_VALUE_UNQUOTED,k="attribValue";break}if(T===";"){var $=vn(i);i.opt.unparsedEntities&&!Object.values(a.XML_ENTITIES).includes($)?(i.entity="",i.state=U,i.write($)):(i[k]+=$,i.entity="",i.state=U)}else L(i.entity.length?s:E,T)?i.entity+=T:(S(i,"Invalid character in entity name"),i[k]+="&"+i.entity+T,i.entity="",i.state=U);continue;default:throw new Error(i,"Unknown state: "+i.state)}return i.position>=i.bufferCheckPosition&&p(i),i}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var u=String.fromCharCode,i=Math.floor,A=function(){var T=16384,R=[],q,U,k=-1,$=arguments.length;if(!$)return"";for(var et="";++k<$;){var V=Number(arguments[k]);if(!isFinite(V)||V<0||V>1114111||i(V)!==V)throw RangeError("Invalid code point: "+V);V<=65535?R.push(V):(V-=65536,q=(V>>10)+55296,U=V%1024+56320,R.push(q,U)),(k+1===$||R.length>T)&&(et+=u.apply(null,R),R.length=0)}return et};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:A,configurable:!0,writable:!0}):String.fromCodePoint=A}()})(n)}(ne)),ne}var Bt={exports:{}},Qe;function Qr(){if(Qe)return Bt.exports;Qe=1;var n=typeof Reflect=="object"?Reflect:null,a=n&&typeof n.apply=="function"?n.apply:function(h,D,L){return Function.prototype.apply.call(h,D,L)},g;n&&typeof n.ownKeys=="function"?g=n.ownKeys:Object.getOwnPropertySymbols?g=function(h){return Object.getOwnPropertyNames(h).concat(Object.getOwnPropertySymbols(h))}:g=function(h){return Object.getOwnPropertyNames(h)};function f(c){console&&console.warn&&console.warn(c)}var p=Number.isNaN||function(h){return h!==h};function t(){t.init.call(this)}Bt.exports=t,Bt.exports.once=_,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._eventsCount=0,t.prototype._maxListeners=void 0;var e=10;function o(c){if(typeof c!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof c)}Object.defineProperty(t,"defaultMaxListeners",{enumerable:!0,get:function(){return e},set:function(c){if(typeof c!="number"||c<0||p(c))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+c+".");e=c}}),t.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(h){if(typeof h!="number"||h<0||p(h))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+h+".");return this._maxListeners=h,this};function l(c){return c._maxListeners===void 0?t.defaultMaxListeners:c._maxListeners}t.prototype.getMaxListeners=function(){return l(this)},t.prototype.emit=function(h){for(var D=[],L=1;L<arguments.length;L++)D.push(arguments[L]);var v=h==="error",r=this._events;if(r!==void 0)v=v&&r.error===void 0;else if(!v)return!1;if(v){var N;if(D.length>0&&(N=D[0]),N instanceof Error)throw N;var x=new Error("Unhandled error."+(N?" ("+N.message+")":""));throw x.context=N,x}var M=r[h];if(M===void 0)return!1;if(typeof M=="function")a(M,this,D);else for(var C=M.length,F=O(M,C),L=0;L<C;++L)a(F[L],this,D);return!0};function b(c,h,D,L){var v,r,N;if(o(D),r=c._events,r===void 0?(r=c._events=Object.create(null),c._eventsCount=0):(r.newListener!==void 0&&(c.emit("newListener",h,D.listener?D.listener:D),r=c._events),N=r[h]),N===void 0)N=r[h]=D,++c._eventsCount;else if(typeof N=="function"?N=r[h]=L?[D,N]:[N,D]:L?N.unshift(D):N.push(D),v=l(c),v>0&&N.length>v&&!N.warned){N.warned=!0;var x=new Error("Possible EventEmitter memory leak detected. "+N.length+" "+String(h)+" listeners added. Use emitter.setMaxListeners() to increase limit");x.name="MaxListenersExceededWarning",x.emitter=c,x.type=h,x.count=N.length,f(x)}return c}t.prototype.addListener=function(h,D){return b(this,h,D,!1)},t.prototype.on=t.prototype.addListener,t.prototype.prependListener=function(h,D){return b(this,h,D,!0)};function m(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function y(c,h,D){var L={fired:!1,wrapFn:void 0,target:c,type:h,listener:D},v=m.bind(L);return v.listener=D,L.wrapFn=v,v}t.prototype.once=function(h,D){return o(D),this.on(h,y(this,h,D)),this},t.prototype.prependOnceListener=function(h,D){return o(D),this.prependListener(h,y(this,h,D)),this},t.prototype.removeListener=function(h,D){var L,v,r,N,x;if(o(D),v=this._events,v===void 0)return this;if(L=v[h],L===void 0)return this;if(L===D||L.listener===D)--this._eventsCount===0?this._events=Object.create(null):(delete v[h],v.removeListener&&this.emit("removeListener",h,L.listener||D));else if(typeof L!="function"){for(r=-1,N=L.length-1;N>=0;N--)if(L[N]===D||L[N].listener===D){x=L[N].listener,r=N;break}if(r<0)return this;r===0?L.shift():I(L,r),L.length===1&&(v[h]=L[0]),v.removeListener!==void 0&&this.emit("removeListener",h,x||D)}return this},t.prototype.off=t.prototype.removeListener,t.prototype.removeAllListeners=function(h){var D,L,v;if(L=this._events,L===void 0)return this;if(L.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):L[h]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete L[h]),this;if(arguments.length===0){var r=Object.keys(L),N;for(v=0;v<r.length;++v)N=r[v],N!=="removeListener"&&this.removeAllListeners(N);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(D=L[h],typeof D=="function")this.removeListener(h,D);else if(D!==void 0)for(v=D.length-1;v>=0;v--)this.removeListener(h,D[v]);return this};function d(c,h,D){var L=c._events;if(L===void 0)return[];var v=L[h];return v===void 0?[]:typeof v=="function"?D?[v.listener||v]:[v]:D?P(v):O(v,v.length)}t.prototype.listeners=function(h){return d(this,h,!0)},t.prototype.rawListeners=function(h){return d(this,h,!1)},t.listenerCount=function(c,h){return typeof c.listenerCount=="function"?c.listenerCount(h):w.call(c,h)},t.prototype.listenerCount=w;function w(c){var h=this._events;if(h!==void 0){var D=h[c];if(typeof D=="function")return 1;if(D!==void 0)return D.length}return 0}t.prototype.eventNames=function(){return this._eventsCount>0?g(this._events):[]};function O(c,h){for(var D=new Array(h),L=0;L<h;++L)D[L]=c[L];return D}function I(c,h){for(;h+1<c.length;h++)c[h]=c[h+1];c.pop()}function P(c){for(var h=new Array(c.length),D=0;D<h.length;++D)h[D]=c[D].listener||c[D];return h}function _(c,h){return new Promise(function(D,L){function v(N){c.removeListener(h,r),L(N)}function r(){typeof c.removeListener=="function"&&c.removeListener("error",v),D([].slice.call(arguments))}s(c,h,r,{once:!0}),h!=="error"&&E(c,v,{once:!0})})}function E(c,h,D){typeof c.on=="function"&&s(c,"error",h,D)}function s(c,h,D,L){if(typeof c.on=="function")L.once?c.once(h,D):c.on(h,D);else if(typeof c.addEventListener=="function")c.addEventListener(h,function v(r){L.once&&c.removeEventListener(h,v),D(r)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof c)}return Bt.exports}var qt={},Ze;function Zr(){return Ze||(Ze=1,(function(){qt.stripBOM=function(n){return n[0]==="\uFEFF"?n.substring(1):n}}).call(qt)),qt}var Z={},Je;function tr(){return Je||(Je=1,(function(){var n;n=new RegExp(/(?!xmlns)^.*:/),Z.normalize=function(a){return a.toLowerCase()},Z.firstCharLowerCase=function(a){return a.charAt(0).toLowerCase()+a.slice(1)},Z.stripPrefix=function(a){return a.replace(n,"")},Z.parseNumbers=function(a){return isNaN(a)||(a=a%1===0?parseInt(a,10):parseFloat(a)),a},Z.parseBooleans=function(a){return/^(?:true|false)$/i.test(a)&&(a=a.toLowerCase()==="true"),a}}).call(Z)),Z}var er;function Jr(){return er||(er=1,function(n){(function(){var a,g,f,p,t,e,o,l,b,m=function(w,O){return function(){return w.apply(O,arguments)}},y=function(w,O){for(var I in O)d.call(O,I)&&(w[I]=O[I]);function P(){this.constructor=w}return P.prototype=O.prototype,w.prototype=new P,w.__super__=O.prototype,w},d={}.hasOwnProperty;l=Hr(),p=Qr(),a=Zr(),o=tr(),b=ie.setImmediate,g=Vt().defaults,t=function(w){return typeof w=="object"&&w!=null&&Object.keys(w).length===0},e=function(w,O,I){var P,_,E;for(P=0,_=w.length;P<_;P++)E=w[P],O=E(O,I);return O},f=function(w,O,I){var P;return P=Object.create(null),P.value=I,P.writable=!0,P.enumerable=!0,P.configurable=!0,Object.defineProperty(w,O,P)},n.Parser=function(w){y(O,w);function O(I){this.parseStringPromise=m(this.parseStringPromise,this),this.parseString=m(this.parseString,this),this.reset=m(this.reset,this),this.assignOrPush=m(this.assignOrPush,this),this.processAsync=m(this.processAsync,this);var P,_,E;if(!(this instanceof n.Parser))return new n.Parser(I);this.options={},_=g["0.2"];for(P in _)d.call(_,P)&&(E=_[P],this.options[P]=E);for(P in I)d.call(I,P)&&(E=I[P],this.options[P]=E);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(o.normalize)),this.reset()}return O.prototype.processAsync=function(){var I,P;try{return this.remaining.length<=this.options.chunkSize?(I=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(I),this.saxParser.close()):(I=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(I),b(this.processAsync))}catch(_){if(P=_,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(P)}},O.prototype.assignOrPush=function(I,P,_){return P in I?(I[P]instanceof Array||f(I,P,[I[P]]),I[P].push(_)):this.options.explicitArray?f(I,P,[_]):f(I,P,_)},O.prototype.reset=function(){var I,P,_,E;return this.removeAllListeners(),this.saxParser=l.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(s){return function(c){if(s.saxParser.resume(),!s.saxParser.errThrown)return s.saxParser.errThrown=!0,s.emit("error",c)}}(this),this.saxParser.onend=function(s){return function(){if(!s.saxParser.ended)return s.saxParser.ended=!0,s.emit("end",s.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,E=[],I=this.options.attrkey,P=this.options.charkey,this.saxParser.onopentag=function(s){return function(c){var h,D,L,v,r;if(L={},L[P]="",!s.options.ignoreAttrs){r=c.attributes;for(h in r)d.call(r,h)&&(!(I in L)&&!s.options.mergeAttrs&&(L[I]={}),D=s.options.attrValueProcessors?e(s.options.attrValueProcessors,c.attributes[h],h):c.attributes[h],v=s.options.attrNameProcessors?e(s.options.attrNameProcessors,h):h,s.options.mergeAttrs?s.assignOrPush(L,v,D):f(L[I],v,D))}return L["#name"]=s.options.tagNameProcessors?e(s.options.tagNameProcessors,c.name):c.name,s.options.xmlns&&(L[s.options.xmlnskey]={uri:c.uri,local:c.local}),E.push(L)}}(this),this.saxParser.onclosetag=function(s){return function(){var c,h,D,L,v,r,N,x,M,C;if(r=E.pop(),v=r["#name"],(!s.options.explicitChildren||!s.options.preserveChildrenOrder)&&delete r["#name"],r.cdata===!0&&(c=r.cdata,delete r.cdata),M=E[E.length-1],r[P].match(/^\s*$/)&&!c?(h=r[P],delete r[P]):(s.options.trim&&(r[P]=r[P].trim()),s.options.normalize&&(r[P]=r[P].replace(/\s{2,}/g," ").trim()),r[P]=s.options.valueProcessors?e(s.options.valueProcessors,r[P],v):r[P],Object.keys(r).length===1&&P in r&&!s.EXPLICIT_CHARKEY&&(r=r[P])),t(r)&&(typeof s.options.emptyTag=="function"?r=s.options.emptyTag():r=s.options.emptyTag!==""?s.options.emptyTag:h),s.options.validator!=null&&(C="/"+function(){var F,j,X;for(X=[],F=0,j=E.length;F<j;F++)L=E[F],X.push(L["#name"]);return X}().concat(v).join("/"),function(){var F;try{return r=s.options.validator(C,M&&M[v],r)}catch(j){return F=j,s.emit("error",F)}}()),s.options.explicitChildren&&!s.options.mergeAttrs&&typeof r=="object"){if(!s.options.preserveChildrenOrder)L={},s.options.attrkey in r&&(L[s.options.attrkey]=r[s.options.attrkey],delete r[s.options.attrkey]),!s.options.charsAsChildren&&s.options.charkey in r&&(L[s.options.charkey]=r[s.options.charkey],delete r[s.options.charkey]),Object.getOwnPropertyNames(r).length>0&&(L[s.options.childkey]=r),r=L;else if(M){M[s.options.childkey]=M[s.options.childkey]||[],N={};for(D in r)d.call(r,D)&&f(N,D,r[D]);M[s.options.childkey].push(N),delete r["#name"],Object.keys(r).length===1&&P in r&&!s.EXPLICIT_CHARKEY&&(r=r[P])}}return E.length>0?s.assignOrPush(M,v,r):(s.options.explicitRoot&&(x=r,r={},f(r,v,x)),s.resultObject=r,s.saxParser.ended=!0,s.emit("end",s.resultObject))}}(this),_=function(s){return function(c){var h,D;if(D=E[E.length-1],D)return D[P]+=c,s.options.explicitChildren&&s.options.preserveChildrenOrder&&s.options.charsAsChildren&&(s.options.includeWhiteChars||c.replace(/\\n/g,"").trim()!=="")&&(D[s.options.childkey]=D[s.options.childkey]||[],h={"#name":"__text__"},h[P]=c,s.options.normalize&&(h[P]=h[P].replace(/\s{2,}/g," ").trim()),D[s.options.childkey].push(h)),D}}(this),this.saxParser.ontext=_,this.saxParser.oncdata=function(s){return function(c){var h;if(h=_(c),h)return h.cdata=!0}}()},O.prototype.parseString=function(I,P){var _;P!=null&&typeof P=="function"&&(this.on("end",function(E){return this.reset(),P(null,E)}),this.on("error",function(E){return this.reset(),P(E)}));try{return I=I.toString(),I.trim()===""?(this.emit("end",null),!0):(I=a.stripBOM(I),this.options.async?(this.remaining=I,b(this.processAsync),this.saxParser):this.saxParser.write(I).close())}catch(E){if(_=E,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw _}else return this.emit("error",_),this.saxParser.errThrown=!0}},O.prototype.parseStringPromise=function(I){return new Promise(function(P){return function(_,E){return P.parseString(I,function(s,c){return s?E(s):_(c)})}}(this))},O}(p),n.parseString=function(w,O,I){var P,_,E;return I!=null?(typeof I=="function"&&(P=I),typeof O=="object"&&(_=O)):(typeof O=="function"&&(P=O),_={}),E=new n.Parser(_),E.parseString(w,P)},n.parseStringPromise=function(w,O){var I,P;return typeof O=="object"&&(I=O),P=new n.Parser(I),P.parseStringPromise(w)}}).call(jt)}(jt)),jt}var rr;function tn(){return rr||(rr=1,(function(){var n,a,g,f,p=function(e,o){for(var l in o)t.call(o,l)&&(e[l]=o[l]);function b(){this.constructor=e}return b.prototype=o.prototype,e.prototype=new b,e.__super__=o.prototype,e},t={}.hasOwnProperty;a=Vt(),n=zr(),g=Jr(),f=tr(),Y.defaults=a.defaults,Y.processors=f,Y.ValidationError=function(e){p(o,e);function o(l){this.message=l}return o}(Error),Y.Builder=n.Builder,Y.Parser=g.Parser,Y.parseString=g.parseString,Y.parseStringPromise=g.parseStringPromise}).call(Y)),Y}var nr=tn();const en=n=>n!==null&&typeof n=="object"&&n.hasOwnProperty("rss")&&typeof n.rss=="object"&&n.rss!==null&&n.rss.hasOwnProperty("channel")&&Array.isArray(n.rss.channel),rn=n=>typeof n=="object"&&n!==null&&n.hasOwnProperty("title")&&Array.isArray(n.title)&&n.hasOwnProperty("description")&&Array.isArray(n.description)&&n.hasOwnProperty("link")&&Array.isArray(n.link)&&n.hasOwnProperty("image")&&Array.isArray(n.image)&&n.image.every(nn)&&n.hasOwnProperty("generator")&&Array.isArray(n.generator)&&n.hasOwnProperty("lastBuildDate")&&Array.isArray(n.lastBuildDate)&&n.hasOwnProperty("atom:link")&&Array.isArray(n["atom:link"])&&n["atom:link"].every(on)&&n.hasOwnProperty("copyright")&&Array.isArray(n.copyright)&&n.hasOwnProperty("language")&&Array.isArray(n.language)&&n.hasOwnProperty("webMaster")&&Array.isArray(n.webMaster)&&n.hasOwnProperty("itunes:owner")&&Array.isArray(n["itunes:owner"])&&n["itunes:owner"].every(sn)&&n.hasOwnProperty("itunes:author")&&Array.isArray(n["itunes:author"])&&n.hasOwnProperty("googleplay:owner")&&Array.isArray(n["googleplay:owner"])&&n.hasOwnProperty("googleplay:email")&&Array.isArray(n["googleplay:email"])&&n.hasOwnProperty("googleplay:author")&&Array.isArray(n["googleplay:author"])&&n.hasOwnProperty("item")&&Array.isArray(n.item)&&n.item.every(un),nn=n=>typeof n=="object"&&n!==null&&n.hasOwnProperty("url")&&Array.isArray(n.url)&&n.hasOwnProperty("title")&&Array.isArray(n.title)&&n.hasOwnProperty("link")&&Array.isArray(n.link),on=n=>typeof n=="object"&&n!==null&&n.hasOwnProperty("$")&&typeof n.$=="object"&&n.$!==null&&n.$.hasOwnProperty("href")&&typeof n.$.href=="string"&&n.$.hasOwnProperty("rel")&&typeof n.$.rel=="string"&&n.$.hasOwnProperty("type")&&typeof n.$.type=="string",sn=n=>typeof n=="object"&&n!==null&&n.hasOwnProperty("itunes:email")&&Array.isArray(n["itunes:email"])&&n.hasOwnProperty("itunes:name")&&Array.isArray(n["itunes:name"]),un=n=>typeof n=="object"&&n!==null&&n.hasOwnProperty("title")&&Array.isArray(n.title)&&n.hasOwnProperty("description")&&Array.isArray(n.description)&&n.hasOwnProperty("link")&&Array.isArray(n.link)&&n.hasOwnProperty("guid")&&Array.isArray(n.guid)&&n.guid.every(an)&&n.hasOwnProperty("dc:creator")&&Array.isArray(n["dc:creator"])&&n.hasOwnProperty("pubDate")&&Array.isArray(n.pubDate)&&n.hasOwnProperty("enclosure")&&Array.isArray(n.enclosure)&&n.enclosure.every(cn)&&n.hasOwnProperty("content:encoded")&&Array.isArray(n["content:encoded"]),an=n=>typeof n=="object"&&n!==null&&n.hasOwnProperty("_")&&typeof n._=="string"&&n.hasOwnProperty("$")&&typeof n.$=="object"&&n.$!==null&&n.$.hasOwnProperty("isPermaLink")&&typeof n.$.isPermaLink=="string",cn=n=>typeof n=="object"&&n!==null&&n.hasOwnProperty("$")&&typeof n.$=="object"&&n.$!==null&&n.$.hasOwnProperty("url")&&typeof n.$.url=="string"&&n.$.hasOwnProperty("length")&&typeof n.$.length=="string"&&n.$.hasOwnProperty("type")&&typeof n.$.type=="string",ln=n=>n&&n.contents&&n.status.http_code==200,fn=n=>n!==null&&typeof n=="object"&&n.hasOwnProperty("rss"),hn=n=>typeof n=="object"&&n!==null&&n.hasOwnProperty("channel"),pn=n=>typeof n=="object"&&n!==null&&n.hasOwnProperty("title")&&n.hasOwnProperty("item"),ir=n=>typeof n=="object"&&n!==null&&n.hasOwnProperty("title")&&n.hasOwnProperty("link")&&n.hasOwnProperty("book_image_url")&&n.hasOwnProperty("book_large_image_url")&&n.hasOwnProperty("author_name")&&n.hasOwnProperty("book_description"),dn=n=>typeof n=="object"&&n!==null&&n.hasOwnProperty("contents")&&n.hasOwnProperty("status"),or="https://lol-origin-84f24d4beb26.herokuapp.com/get?url=",tt=typeof document<"u",yn=async n=>{try{const a=tt?`${or}${encodeURIComponent(n)}`:n,g=await fetch(a);if(g.ok)return tt?g.json():g.text()}catch(a){throw console.error(a),new Error("Error occurred fetching Feed from Substack")}},Ut=async(n="",a)=>{if(!a)return nr.parseStringPromise(n);nr.parseString(n,a)},mn=n=>({title:n.title[0],description:n.description[0],link:n.link[0],pubDate:n.pubDate[0],content:n["content:encoded"][0]}),gn=async(n,a)=>{const g=await yn(n);if(!tt)return Ut(g,a);if(!ln(g))throw new Error("Error occurred fetching Feed from Substack");await Ut(g.contents,a)},wn=(n,a)=>{if(!en(n))throw new Error("Feed is not in the correct format");try{return n.rss.channel.filter(rn).filter(g=>g.link[0]===a)}catch(g){const f=new Error(`Error occurred fetching Feed by Link: ${a}`);throw f.cause=g,f}},Tn=n=>n[0].item.map(mn),Dn=n=>{if(!ir(n))throw new Error("Goodreads item is not in the correct format");return{title:n.title[0],link:n.link[0],book_image_url:n.book_large_image_url[0],author_name:n.author_name[0],book_description:n.book_description[0]}},En=async(n,a)=>{try{const g=tt?`${a??or}${encodeURIComponent(n)}`:n,f=await fetch(g);if(f.ok)return tt?f.json():f.text()}catch(g){throw console.error(g),new Error("Error occurred fetching Feed from Goodreads")}},bn=async(n,a,g)=>{const f=await En(n,g);if(!tt)return Ut(f,a);if(!dn(f))throw new Error("Error occurred fetching Feed from Goodreads");await Ut(f.contents,a)},On=n=>{if(!fn(n))throw new Error("Goodreads feed is not in the correct format");if(!hn(n.rss))throw new Error("Goodreads RSS feed is not in the correct format");const a=n.rss.channel.filter(pn);if(a.length===0)throw new Error("Goodreads feed does not contain any channels");const g=a[0];return Array.isArray(g.item)?g.item.filter(ir).map(Dn):[]};W.getFeedByLink=wn,W.getGoodreadsFeed=bn,W.getGoodreadsFeedItems=On,W.getPosts=Tn,W.getSubstackFeed=gn,Object.defineProperty(W,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(be,O){typeof exports=="object"&&typeof module<"u"?O(exports):typeof define=="function"&&define.amd?define(["exports"],O):(be=typeof globalThis<"u"?globalThis:be||self,O(be.SubstackFeedAPI={}))})(this,(function(be){"use strict";var O;(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})(O||(O={}));function ga(e){return e.type===O.Tag||e.type===O.Script||e.type===O.Style}const Dt=O.Root,Cu=O.Text,ba=O.Directive,pu=O.Comment,ma=O.Script,Ia=O.Style,Bt=O.Tag,Ca=O.CDATA,pa=O.Doctype;class _u{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(t){this.parent=t}get previousSibling(){return this.prev}set previousSibling(t){this.prev=t}get nextSibling(){return this.next}set nextSibling(t){this.next=t}cloneNode(t=!1){return Re(this,t)}}class Ot extends _u{constructor(t){super(),this.data=t}get nodeValue(){return this.data}set nodeValue(t){this.data=t}}class Oe extends Ot{constructor(){super(...arguments),this.type=O.Text}get nodeType(){return 3}}class Rt extends Ot{constructor(){super(...arguments),this.type=O.Comment}get nodeType(){return 8}}class Lt extends Ot{constructor(t,u){super(u),this.name=t,this.type=O.Directive}get nodeType(){return 1}}class yt extends _u{constructor(t){super(),this.children=t}get firstChild(){var t;return(t=this.children[0])!==null&&t!==void 0?t:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(t){this.children=t}}class Nu extends yt{constructor(){super(...arguments),this.type=O.CDATA}get nodeType(){return 4}}class oe extends yt{constructor(){super(...arguments),this.type=O.Root}get nodeType(){return 9}}class xt extends yt{constructor(t,u,s=[],n=t==="script"?O.Script:t==="style"?O.Style:O.Tag){super(s),this.name=t,this.attribs=u,this.type=n}get nodeType(){return 1}get tagName(){return this.name}set tagName(t){this.name=t}get attributes(){return Object.keys(this.attribs).map(t=>{var u,s;return{name:t,value:this.attribs[t],namespace:(u=this["x-attribsNamespace"])===null||u===void 0?void 0:u[t],prefix:(s=this["x-attribsPrefix"])===null||s===void 0?void 0:s[t]}})}}function D(e){return ga(e)}function je(e){return e.type===O.CDATA}function q(e){return e.type===O.Text}function ze(e){return e.type===O.Comment}function Ft(e){return e.type===O.Directive}function ae(e){return e.type===O.Root}function M(e){return Object.prototype.hasOwnProperty.call(e,"children")}function Re(e,t=!1){let u;if(q(e))u=new Oe(e.data);else if(ze(e))u=new Rt(e.data);else if(D(e)){const s=t?Mt(e.children):[],n=new xt(e.name,{...e.attribs},s);s.forEach(i=>i.parent=n),e.namespace!=null&&(n.namespace=e.namespace),e["x-attribsNamespace"]&&(n["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(n["x-attribsPrefix"]={...e["x-attribsPrefix"]}),u=n}else if(je(e)){const s=t?Mt(e.children):[],n=new Nu(s);s.forEach(i=>i.parent=n),u=n}else if(ae(e)){const s=t?Mt(e.children):[],n=new oe(s);s.forEach(i=>i.parent=n),e["x-mode"]&&(n["x-mode"]=e["x-mode"]),u=n}else if(Ft(e)){const s=new Lt(e.name,e.data);e["x-name"]!=null&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),u=s}else throw new Error(`Not implemented yet: ${e.type}`);return u.startIndex=e.startIndex,u.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(u.sourceCodeLocation=e.sourceCodeLocation),u}function Mt(e){const t=e.map(u=>Re(u,!0));for(let u=1;u<t.length;u++)t[u].prev=t[u-1],t[u-1].next=t[u];return t}const Su={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class _a{constructor(t,u,s){this.dom=[],this.root=new oe(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(s=u,u=Su),typeof t=="object"&&(u=t,t=void 0),this.callback=t??null,this.options=u??Su,this.elementCB=s??null}onparserinit(t){this.parser=t}onreset(){this.dom=[],this.root=new oe(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(t){this.handleCallback(t)}onclosetag(){this.lastNode=null;const t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)}onopentag(t,u){const s=this.options.xmlMode?O.Tag:void 0,n=new xt(t,u,void 0,s);this.addNode(n),this.tagStack.push(n)}ontext(t){const{lastNode:u}=this;if(u&&u.type===O.Text)u.data+=t,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{const s=new Oe(t);this.addNode(s),this.lastNode=s}}oncomment(t){if(this.lastNode&&this.lastNode.type===O.Comment){this.lastNode.data+=t;return}const u=new Rt(t);this.addNode(u),this.lastNode=u}oncommentend(){this.lastNode=null}oncdatastart(){const t=new Oe(""),u=new Nu([t]);this.addNode(u),t.parent=u,this.lastNode=t}oncdataend(){this.lastNode=null}onprocessinginstruction(t,u){const s=new Lt(t,u);this.addNode(s)}handleCallback(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t}addNode(t){const u=this.tagStack[this.tagStack.length-1],s=u.children[u.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),u.children.push(t),s&&(t.prev=s,s.next=t),t.parent=u,this.lastNode=null}}const Du=/["&'<>$\x80-\uFFFF]/g,Na=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),Sa=String.prototype.codePointAt!=null?(e,t)=>e.codePointAt(t):(e,t)=>(e.charCodeAt(t)&64512)===55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function Bu(e){let t="",u=0,s;for(;(s=Du.exec(e))!==null;){const n=s.index,i=e.charCodeAt(n),r=Na.get(i);r!==void 0?(t+=e.substring(u,n)+r,u=n+1):(t+=`${e.substring(u,n)}&#x${Sa(e,n).toString(16)};`,u=Du.lastIndex+=+((i&64512)===55296))}return t+e.substr(u)}function Ou(e,t){return function(s){let n,i=0,r="";for(;n=e.exec(s);)i!==n.index&&(r+=s.substring(i,n.index)),r+=t.get(n[0].charCodeAt(0)),i=n.index+1;return r+s.substring(i)}}const Da=Ou(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),Ba=Ou(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),Oa=new Map(["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","textPath"].map(e=>[e.toLowerCase(),e])),Ra=new Map(["definitionURL","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])),La=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function ya(e){return e.replace(/"/g,""")}function xa(e,t){var u;if(!e)return;const s=((u=t.encodeEntities)!==null&&u!==void 0?u:t.decodeEntities)===!1?ya:t.xmlMode||t.encodeEntities!=="utf8"?Bu:Da;return Object.keys(e).map(n=>{var i,r;const h=(i=e[n])!==null&&i!==void 0?i:"";return t.xmlMode==="foreign"&&(n=(r=Ra.get(n))!==null&&r!==void 0?r:n),!t.emptyAttrs&&!t.xmlMode&&h===""?n:`${n}="${s(h)}"`}).join(" ")}const Ru=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function $e(e,t={}){const u="length"in e?e:[e];let s="";for(let n=0;n<u.length;n++)s+=Fa(u[n],t);return s}function Fa(e,t){switch(e.type){case Dt:return $e(e.children,t);case pa:case ba:return ka(e);case pu:return Qa(e);case Ca:return Ua(e);case ma:case Ia:case Bt:return Pa(e,t);case Cu:return Ha(e,t)}}const Ma=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),wa=new Set(["svg","math"]);function Pa(e,t){var u;t.xmlMode==="foreign"&&(e.name=(u=Oa.get(e.name))!==null&&u!==void 0?u:e.name,e.parent&&Ma.has(e.parent.name)&&(t={...t,xmlMode:!1})),!t.xmlMode&&wa.has(e.name)&&(t={...t,xmlMode:"foreign"});let s=`<${e.name}`;const n=xa(e.attribs,t);return n&&(s+=` ${n}`),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&Ru.has(e.name))?(t.xmlMode||(s+=" "),s+="/>"):(s+=">",e.children.length>0&&(s+=$e(e.children,t)),(t.xmlMode||!Ru.has(e.name))&&(s+=`</${e.name}>`)),s}function ka(e){return`<${e.data}>`}function Ha(e,t){var u;let s=e.data||"";return((u=t.encodeEntities)!==null&&u!==void 0?u:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&La.has(e.parent.name))&&(s=t.xmlMode||t.encodeEntities!=="utf8"?Bu(s):Ba(s)),s}function Ua(e){return`<![CDATA[${e.children[0].data}]]>`}function Qa(e){return`<!--${e.data}-->`}function Lu(e,t){return $e(e,t)}function Ya(e,t){return M(e)?e.children.map(u=>Lu(u,t)).join(""):""}function et(e){return Array.isArray(e)?e.map(et).join(""):D(e)?e.name==="br"?`
|
|
2
|
+
`:et(e.children):je(e)?et(e.children):q(e)?e.data:""}function me(e){return Array.isArray(e)?e.map(me).join(""):M(e)&&!ze(e)?me(e.children):q(e)?e.data:""}function tt(e){return Array.isArray(e)?e.map(tt).join(""):M(e)&&(e.type===O.Tag||je(e))?tt(e.children):q(e)?e.data:""}function ut(e){return M(e)?e.children:[]}function yu(e){return e.parent||null}function xu(e){const t=yu(e);if(t!=null)return ut(t);const u=[e];let{prev:s,next:n}=e;for(;s!=null;)u.unshift(s),{prev:s}=s;for(;n!=null;)u.push(n),{next:n}=n;return u}function va(e,t){var u;return(u=e.attribs)===null||u===void 0?void 0:u[t]}function Ka(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function Ga(e){return e.name}function wt(e){let{next:t}=e;for(;t!==null&&!D(t);)({next:t}=t);return t}function Pt(e){let{prev:t}=e;for(;t!==null&&!D(t);)({prev:t}=t);return t}function he(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){const t=e.parent.children,u=t.lastIndexOf(e);u>=0&&t.splice(u,1)}e.next=null,e.prev=null,e.parent=null}function Wa(e,t){const u=t.prev=e.prev;u&&(u.next=t);const s=t.next=e.next;s&&(s.prev=t);const n=t.parent=e.parent;if(n){const i=n.children;i[i.lastIndexOf(e)]=t,e.parent=null}}function Ja(e,t){if(he(t),t.next=null,t.parent=e,e.children.push(t)>1){const u=e.children[e.children.length-2];u.next=t,t.prev=u}else t.prev=null}function Za(e,t){he(t);const{parent:u}=e,s=e.next;if(t.next=s,t.prev=e,e.next=t,t.parent=u,s){if(s.prev=t,u){const n=u.children;n.splice(n.lastIndexOf(s),0,t)}}else u&&u.children.push(t)}function Xa(e,t){if(he(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){const u=e.children[1];u.prev=t,t.next=u}else t.next=null}function Va(e,t){he(t);const{parent:u}=e;if(u){const s=u.children;s.splice(s.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=u,t.prev=e.prev,t.next=e,e.prev=t}function Le(e,t,u=!0,s=1/0){return kt(e,Array.isArray(t)?t:[t],u,s)}function kt(e,t,u,s){const n=[],i=[Array.isArray(t)?t:[t]],r=[0];for(;;){if(r[0]>=i[0].length){if(r.length===1)return n;i.shift(),r.shift();continue}const h=i[0][r[0]++];if(e(h)&&(n.push(h),--s<=0))return n;u&&M(h)&&h.children.length>0&&(r.unshift(0),i.unshift(h.children))}}function qa(e,t){return t.find(e)}function Ht(e,t,u=!0){const s=Array.isArray(t)?t:[t];for(let n=0;n<s.length;n++){const i=s[n];if(D(i)&&e(i))return i;if(u&&M(i)&&i.children.length>0){const r=Ht(e,i.children,!0);if(r)return r}}return null}function Fu(e,t){return(Array.isArray(t)?t:[t]).some(u=>D(u)&&e(u)||M(u)&&Fu(e,u.children))}function ja(e,t){const u=[],s=[Array.isArray(t)?t:[t]],n=[0];for(;;){if(n[0]>=s[0].length){if(s.length===1)return u;s.shift(),n.shift();continue}const i=s[0][n[0]++];D(i)&&e(i)&&u.push(i),M(i)&&i.children.length>0&&(n.unshift(0),s.unshift(i.children))}}const st={tag_name(e){return typeof e=="function"?t=>D(t)&&e(t.name):e==="*"?D:t=>D(t)&&t.name===e},tag_type(e){return typeof e=="function"?t=>e(t.type):t=>t.type===e},tag_contains(e){return typeof e=="function"?t=>q(t)&&e(t.data):t=>q(t)&&t.data===e}};function Ut(e,t){return typeof t=="function"?u=>D(u)&&t(u.attribs[e]):u=>D(u)&&u.attribs[e]===t}function za(e,t){return u=>e(u)||t(u)}function Mu(e){const t=Object.keys(e).map(u=>{const s=e[u];return Object.prototype.hasOwnProperty.call(st,u)?st[u](s):Ut(u,s)});return t.length===0?null:t.reduce(za)}function $a(e,t){const u=Mu(e);return u?u(t):!0}function en(e,t,u,s=1/0){const n=Mu(e);return n?Le(n,t,u,s):[]}function tn(e,t,u=!0){return Array.isArray(t)||(t=[t]),Ht(Ut("id",e),t,u)}function Ie(e,t,u=!0,s=1/0){return Le(st.tag_name(e),t,u,s)}function un(e,t,u=!0,s=1/0){return Le(Ut("class",e),t,u,s)}function sn(e,t,u=!0,s=1/0){return Le(st.tag_type(e),t,u,s)}function an(e){let t=e.length;for(;--t>=0;){const u=e[t];if(t>0&&e.lastIndexOf(u,t-1)>=0){e.splice(t,1);continue}for(let s=u.parent;s;s=s.parent)if(e.includes(s)){e.splice(t,1);break}}return e}var Z;(function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"})(Z||(Z={}));function wu(e,t){const u=[],s=[];if(e===t)return 0;let n=M(e)?e:e.parent;for(;n;)u.unshift(n),n=n.parent;for(n=M(t)?t:t.parent;n;)s.unshift(n),n=n.parent;const i=Math.min(u.length,s.length);let r=0;for(;r<i&&u[r]===s[r];)r++;if(r===0)return Z.DISCONNECTED;const h=u[r-1],d=h.children,f=u[r],g=s[r];return d.indexOf(f)>d.indexOf(g)?h===t?Z.FOLLOWING|Z.CONTAINED_BY:Z.FOLLOWING:h===e?Z.PRECEDING|Z.CONTAINS:Z.PRECEDING}function Ce(e){return e=e.filter((t,u,s)=>!s.includes(t,u+1)),e.sort((t,u)=>{const s=wu(t,u);return s&Z.PRECEDING?-1:s&Z.FOLLOWING?1:0}),e}function nn(e){const t=at(hn,e);return t?t.name==="feed"?rn(t):An(t):null}function rn(e){var t;const u=e.children,s={type:"atom",items:Ie("entry",u).map(r=>{var h;const{children:d}=r,f={media:Pu(d)};K(f,"id","id",d),K(f,"title","title",d);const g=(h=at("link",d))===null||h===void 0?void 0:h.attribs.href;g&&(f.link=g);const I=ne("summary",d)||ne("content",d);I&&(f.description=I);const C=ne("updated",d);return C&&(f.pubDate=new Date(C)),f})};K(s,"id","id",u),K(s,"title","title",u);const n=(t=at("link",u))===null||t===void 0?void 0:t.attribs.href;n&&(s.link=n),K(s,"description","subtitle",u);const i=ne("updated",u);return i&&(s.updated=new Date(i)),K(s,"author","email",u,!0),s}function An(e){var t,u;const s=(u=(t=at("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&u!==void 0?u:[],n={type:e.name.substr(0,3),id:"",items:Ie("item",e.children).map(r=>{const{children:h}=r,d={media:Pu(h)};K(d,"id","guid",h),K(d,"title","title",h),K(d,"link","link",h),K(d,"description","description",h);const f=ne("pubDate",h)||ne("dc:date",h);return f&&(d.pubDate=new Date(f)),d})};K(n,"title","title",s),K(n,"link","link",s),K(n,"description","description",s);const i=ne("lastBuildDate",s);return i&&(n.updated=new Date(i)),K(n,"author","managingEditor",s,!0),n}const cn=["url","type","lang"],on=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function Pu(e){return Ie("media:content",e).map(t=>{const{attribs:u}=t,s={medium:u.medium,isDefault:!!u.isDefault};for(const n of cn)u[n]&&(s[n]=u[n]);for(const n of on)u[n]&&(s[n]=parseInt(u[n],10));return u.expression&&(s.expression=u.expression),s})}function at(e,t){return Ie(e,t,!0,1)[0]}function ne(e,t,u=!1){return me(Ie(e,t,u,1)).trim()}function K(e,t,u,s,n=!1){const i=ne(u,s,n);i&&(e[t]=i)}function hn(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}const nt=Object.freeze(Object.defineProperty({__proto__:null,get DocumentPosition(){return Z},append:Za,appendChild:Ja,compareDocumentPosition:wu,existsOne:Fu,filter:Le,find:kt,findAll:ja,findOne:Ht,findOneChild:qa,getAttributeValue:va,getChildren:ut,getElementById:tn,getElements:en,getElementsByClassName:un,getElementsByTagName:Ie,getElementsByTagType:sn,getFeed:nn,getInnerHTML:Ya,getName:Ga,getOuterHTML:Lu,getParent:yu,getSiblings:xu,getText:et,hasAttrib:Ka,hasChildren:M,innerText:tt,isCDATA:je,isComment:ze,isDocument:ae,isTag:D,isText:q,nextElementSibling:wt,prepend:Va,prependChild:Xa,prevElementSibling:Pt,removeElement:he,removeSubsets:an,replaceElement:Wa,testElement:$a,textContent:me,uniqueSort:Ce},Symbol.toStringTag,{value:"Module"})),dn={_useHtmlParser2:!1};function Qt(e,t){if(!e)return t??dn;const u={_useHtmlParser2:!!e.xmlMode,...t,...e};return e.xml?(u._useHtmlParser2=!0,u.xmlMode=!0,e.xml!==!0&&Object.assign(u,e.xml)):e.xmlMode&&(u._useHtmlParser2=!0),u}function ku(e,t,u){return e?e(t??e._root.children,null,void 0,u).toString():""}function ln(e,t){return typeof e=="object"&&e!=null&&!("length"in e)&&!("type"in e)}function fn(e,t){const u=ln(e)?(t=e,void 0):e,s={...this===null||this===void 0?void 0:this._options,...Qt(t)};return ku(this,u,s)}function En(e){const t={...this._options,xmlMode:!0};return ku(this,e,t)}function ye(e){const t=e??(this?this.root():[]);let u="";for(let s=0;s<t.length;s++)u+=me(t[s]);return u}function Tn(e,t,u=typeof t=="boolean"?t:!1){if(!e||typeof e!="string")return null;typeof t=="boolean"&&(u=t);const s=this.load(e,this._options,!1);return u||s("script").remove(),[...s.root()[0].children]}function gn(){return this(this._root)}function Hu(e,t){if(t===e)return!1;let u=t;for(;u&&u!==u.parent;)if(u=u.parent,u===e)return!0;return!1}function bn(e){return this.root().extract(e)}function mn(e,t){if(!Uu(e)||!Uu(t))return;let u=e.length;const s=+t.length;for(let n=0;n<s;n++)e[u++]=t[n];return e.length=u,e}function Uu(e){if(Array.isArray(e))return!0;if(typeof e!="object"||e===null||!("length"in e)||typeof e.length!="number"||e.length<0)return!1;for(let t=0;t<e.length;t++)if(!(t in e))return!1;return!0}const In=Object.freeze(Object.defineProperty({__proto__:null,contains:Hu,extract:bn,html:fn,merge:mn,parseHTML:Tn,root:gn,text:ye,xml:En},Symbol.toStringTag,{value:"Module"}));function ee(e){return e.cheerio!=null}function Cn(e){return e.replace(/[._-](\w|$)/g,(t,u)=>u.toUpperCase())}function pn(e){return e.replace(/[A-Z]/g,"-$&").toLowerCase()}function x(e,t){const u=e.length;for(let s=0;s<u;s++)t(e[s],s);return e}var de;(function(e){e[e.LowerA=97]="LowerA",e[e.LowerZ=122]="LowerZ",e[e.UpperA=65]="UpperA",e[e.UpperZ=90]="UpperZ",e[e.Exclamation=33]="Exclamation"})(de||(de={}));function Yt(e){if(typeof e!="string")return!1;const t=e.indexOf("<");if(t===-1||t>e.length-3)return!1;const u=e.charCodeAt(t+1);return(u>=de.LowerA&&u<=de.LowerZ||u>=de.UpperA&&u<=de.UpperZ||u===de.Exclamation)&&e.includes(">",t+2)}var vt;const _n=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]]),Qu=(vt=String.fromCodePoint)!==null&&vt!==void 0?vt:(e=>{let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t});function Nn(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=_n.get(e))!==null&&t!==void 0?t:e}function Yu(e){const t=typeof atob=="function"?atob(e):typeof Buffer.from=="function"?Buffer.from(e,"base64").toString("binary"):new Buffer(e,"base64").toString("binary"),u=t.length&-2,s=new Uint16Array(u/2);for(let n=0,i=0;n<u;n+=2){const r=t.charCodeAt(n),h=t.charCodeAt(n+1);s[i++]=r|h<<8}return s}const Sn=Yu("QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA+6D/IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xtbm9wcnN0dVQAWgBeAGUAaQBzAHcAfgCBAIQAhwCSAJoAoACsALMAbABpAGcAO4DGAMZAUAA7gCYAJkBjAHUAdABlADuAwQDBQHIiZXZlAAJhAAFpeW0AcgByAGMAO4DCAMJAEGRyAADgNdgE3XIAYQB2AGUAO4DAAMBA8CFoYZFj4SFjcgBhZAAAoFMqAAFncIsAjgBvAG4ABGFmAADgNdg43fAlbHlGdW5jdGlvbgCgYSBpAG4AZwA7gMUAxUAAAWNzpACoAHIAAOA12Jzc6SFnbgCgVCJpAGwAZABlADuAwwDDQG0AbAA7gMQAxEAABGFjZWZvcnN1xQDYANoA7QDxAPYA+QD8AAABY3LJAM8AayNzbGFzaAAAoBYidgHTANUAAKDnKmUAZAAAoAYjeQARZIABY3J0AOAA5QDrAGEidXNlAACgNSLuI291bGxpcwCgLCFhAJJjcgAA4DXYBd1wAGYAAOA12Dnd5SF2ZdhiYwDyAOoAbSJwZXEAAKBOIgAHSE9hY2RlZmhpbG9yc3UXARoBHwE6AVIBVQFiAWQBZgGCAakB6QHtAfIBYwB5ACdkUABZADuAqQCpQIABY3B5ACUBKAE1AfUhdGUGYWmg0iJ0KGFsRGlmZmVyZW50aWFsRAAAoEUhbCJleXMAAKAtIQACYWVpb0EBRAFKAU0B8iFvbgxhZABpAGwAO4DHAMdAcgBjAAhhbiJpbnQAAKAwIm8AdAAKYQABZG5ZAV0BaSJsb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]="FLAG13",e[e.BRANCH_LENGTH=8064]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(v||(v={}));var F;(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"})(F||(F={}));const vu=32;function Kt(e){return e>=F.ZERO&&e<=F.NINE}function Bn(e){return e>=F.UPPER_A&&e<=F.UPPER_F||e>=F.LOWER_A&&e<=F.LOWER_F}function On(e){return e>=F.UPPER_A&&e<=F.UPPER_Z||e>=F.LOWER_A&&e<=F.LOWER_Z||Kt(e)}function Rn(e){return e===F.EQUALS||On(e)}var H;(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"})(H||(H={}));var j;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(j||(j={}));let Ln=class{constructor(t,u,s){this.decodeTree=t,this.emitCodePoint=u,this.errors=s,this.state=H.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=j.Strict,this.runConsumed=0}startEntity(t){this.decodeMode=t,this.state=H.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(t,u){switch(this.state){case H.EntityStart:return t.charCodeAt(u)===F.NUM?(this.state=H.NumericStart,this.consumed+=1,this.stateNumericStart(t,u+1)):(this.state=H.NamedEntity,this.stateNamedEntity(t,u));case H.NumericStart:return this.stateNumericStart(t,u);case H.NumericDecimal:return this.stateNumericDecimal(t,u);case H.NumericHex:return this.stateNumericHex(t,u);case H.NamedEntity:return this.stateNamedEntity(t,u)}}stateNumericStart(t,u){return u>=t.length?-1:(t.charCodeAt(u)|vu)===F.LOWER_X?(this.state=H.NumericHex,this.consumed+=1,this.stateNumericHex(t,u+1)):(this.state=H.NumericDecimal,this.stateNumericDecimal(t,u))}stateNumericHex(t,u){for(;u<t.length;){const s=t.charCodeAt(u);if(Kt(s)||Bn(s)){const n=s<=F.NINE?s-F.ZERO:(s|vu)-F.LOWER_A+10;this.result=this.result*16+n,this.consumed++,u++}else return this.emitNumericEntity(s,3)}return-1}stateNumericDecimal(t,u){for(;u<t.length;){const s=t.charCodeAt(u);if(Kt(s))this.result=this.result*10+(s-F.ZERO),this.consumed++,u++;else return this.emitNumericEntity(s,2)}return-1}emitNumericEntity(t,u){var s;if(this.consumed<=u)return(s=this.errors)===null||s===void 0||s.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===F.SEMI)this.consumed+=1;else if(this.decodeMode===j.Strict)return 0;return this.emitCodePoint(Nn(this.result),this.consumed),this.errors&&(t!==F.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,u){const{decodeTree:s}=this;let n=s[this.treeIndex],i=(n&v.VALUE_LENGTH)>>14;for(;u<t.length;){if(i===0&&(n&v.FLAG13)!==0){const h=(n&v.BRANCH_LENGTH)>>7;if(this.runConsumed===0){const d=n&v.JUMP_TABLE;if(t.charCodeAt(u)!==d)return this.result===0?0:this.emitNotTerminatedNamedEntity();u++,this.excess++,this.runConsumed++}for(;this.runConsumed<h;){if(u>=t.length)return-1;const d=this.runConsumed-1,f=s[this.treeIndex+1+(d>>1)],g=d%2===0?f&255:f>>8&255;if(t.charCodeAt(u)!==g)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();u++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(h>>1),n=s[this.treeIndex],i=(n&v.VALUE_LENGTH)>>14}if(u>=t.length)break;const r=t.charCodeAt(u);if(r===F.SEMI&&i!==0&&(n&v.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);if(this.treeIndex=yn(s,n,this.treeIndex+Math.max(1,i),r),this.treeIndex<0)return this.result===0||this.decodeMode===j.Attribute&&(i===0||Rn(r))?0:this.emitNotTerminatedNamedEntity();if(n=s[this.treeIndex],i=(n&v.VALUE_LENGTH)>>14,i!==0){if(r===F.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==j.Strict&&(n&v.FLAG13)===0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}u++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var t;const{result:u,decodeTree:s}=this,n=(s[u]&v.VALUE_LENGTH)>>14;return this.emitNamedEntityData(u,n,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,u,s){const{decodeTree:n}=this;return this.emitCodePoint(u===1?n[t]&~(v.VALUE_LENGTH|v.FLAG13):n[t+1],s),u===3&&this.emitCodePoint(n[t+2],s),s}end(){var t;switch(this.state){case H.NamedEntity:return this.result!==0&&(this.decodeMode!==j.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case H.NumericDecimal:return this.emitNumericEntity(0,2);case H.NumericHex:return this.emitNumericEntity(0,3);case H.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case H.EntityStart:return 0}}};function yn(e,t,u,s){const n=(t&v.BRANCH_LENGTH)>>7,i=t&v.JUMP_TABLE;if(n===0)return i!==0&&s===i?u:-1;if(i){const f=s-i;return f<0||f>=n?-1:e[u+f]-1}const r=n+1>>1;let h=0,d=n-1;for(;h<=d;){const f=h+d>>>1,g=f>>1,C=e[u+g]>>(f&1)*8&255;if(C<s)h=f+1;else if(C>s)d=f-1;else return e[u+r+f]}return-1}var _;(function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"})(_||(_={}));var b;(function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.BeforeSpecialT=23]="BeforeSpecialT",e[e.SpecialStartSequence=24]="SpecialStartSequence",e[e.InSpecialTag=25]="InSpecialTag",e[e.InEntity=26]="InEntity"})(b||(b={}));function te(e){return e===_.Space||e===_.NewLine||e===_.Tab||e===_.FormFeed||e===_.CarriageReturn}function it(e){return e===_.Slash||e===_.Gt||te(e)}function xn(e){return e>=_.LowerA&&e<=_.LowerZ||e>=_.UpperA&&e<=_.UpperZ}var z;(function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"})(z||(z={}));const w={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97]),XmpEnd:new Uint8Array([60,47,120,109,112])};let Fn=class{constructor({xmlMode:t=!1,decodeEntities:u=!0},s){this.cbs=s,this.state=b.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=b.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=t,this.decodeEntities=u,this.entityDecoder=new Ln(t?Dn:Sn,(n,i)=>this.emitCodePoint(n,i))}reset(){this.state=b.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=b.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(t){this.offset+=this.buffer.length,this.buffer=t,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}stateText(t){t===_.Lt||!this.decodeEntities&&this.fastForwardTo(_.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=b.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===_.Amp&&this.startEntity()}stateSpecialStartSequence(t){const u=this.sequenceIndex===this.currentSequence.length;if(!(u?it(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!u){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=b.InTagName,this.stateInTagName(t)}stateInSpecialTag(t){if(this.sequenceIndex===this.currentSequence.length){if(t===_.Gt||te(t)){const u=this.index-this.currentSequence.length;if(this.sectionStart<u){const s=this.index;this.index=u,this.cbs.ontext(this.sectionStart,u),this.index=s}this.isSpecial=!1,this.sectionStart=u+2,this.stateInClosingTagName(t);return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===w.TitleEnd?this.decodeEntities&&t===_.Amp&&this.startEntity():this.fastForwardTo(_.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===_.Lt)}stateCDATASequence(t){t===w.Cdata[this.sequenceIndex]?++this.sequenceIndex===w.Cdata.length&&(this.state=b.InCommentLike,this.currentSequence=w.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=b.InDeclaration,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===t)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===w.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=b.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(t){return this.xmlMode?!it(t):xn(t)}startSpecial(t,u){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=u,this.state=b.SpecialStartSequence}stateBeforeTagName(t){if(t===_.ExclamationMark)this.state=b.BeforeDeclaration,this.sectionStart=this.index+1;else if(t===_.Questionmark)this.state=b.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(t)){const u=t|32;this.sectionStart=this.index,this.xmlMode?this.state=b.InTagName:u===w.ScriptEnd[2]?this.state=b.BeforeSpecialS:u===w.TitleEnd[2]||u===w.XmpEnd[2]?this.state=b.BeforeSpecialT:this.state=b.InTagName}else t===_.Slash?this.state=b.BeforeClosingTagName:(this.state=b.Text,this.stateText(t))}stateInTagName(t){it(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=b.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateBeforeClosingTagName(t){te(t)||(t===_.Gt?this.state=b.Text:(this.state=this.isTagStartChar(t)?b.InClosingTagName:b.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(t){(t===_.Gt||te(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=b.AfterClosingTagName,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){(t===_.Gt||this.fastForwardTo(_.Gt))&&(this.state=b.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(t){t===_.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=b.InSpecialTag,this.sequenceIndex=0):this.state=b.Text,this.sectionStart=this.index+1):t===_.Slash?this.state=b.InSelfClosingTag:te(t)||(this.state=b.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===_.Gt?(this.cbs.onselfclosingtag(this.index),this.state=b.Text,this.sectionStart=this.index+1,this.isSpecial=!1):te(t)||(this.state=b.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateInAttributeName(t){(t===_.Eq||it(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=b.AfterAttributeName,this.stateAfterAttributeName(t))}stateAfterAttributeName(t){t===_.Eq?this.state=b.BeforeAttributeValue:t===_.Slash||t===_.Gt?(this.cbs.onattribend(z.NoValue,this.sectionStart),this.sectionStart=-1,this.state=b.BeforeAttributeName,this.stateBeforeAttributeName(t)):te(t)||(this.cbs.onattribend(z.NoValue,this.sectionStart),this.state=b.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(t){t===_.DoubleQuote?(this.state=b.InAttributeValueDq,this.sectionStart=this.index+1):t===_.SingleQuote?(this.state=b.InAttributeValueSq,this.sectionStart=this.index+1):te(t)||(this.sectionStart=this.index,this.state=b.InAttributeValueNq,this.stateInAttributeValueNoQuotes(t))}handleInAttributeValue(t,u){t===u||!this.decodeEntities&&this.fastForwardTo(u)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(u===_.DoubleQuote?z.Double:z.Single,this.index+1),this.state=b.BeforeAttributeName):this.decodeEntities&&t===_.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(t){this.handleInAttributeValue(t,_.DoubleQuote)}stateInAttributeValueSingleQuotes(t){this.handleInAttributeValue(t,_.SingleQuote)}stateInAttributeValueNoQuotes(t){te(t)||t===_.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(z.Unquoted,this.index),this.state=b.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===_.Amp&&this.startEntity()}stateBeforeDeclaration(t){t===_.OpeningSquareBracket?(this.state=b.CDATASequence,this.sequenceIndex=0):this.state=t===_.Dash?b.BeforeComment:b.InDeclaration}stateInDeclaration(t){(t===_.Gt||this.fastForwardTo(_.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=b.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===_.Gt||this.fastForwardTo(_.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=b.Text,this.sectionStart=this.index+1)}stateBeforeComment(t){t===_.Dash?(this.state=b.InCommentLike,this.currentSequence=w.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=b.InDeclaration}stateInSpecialComment(t){(t===_.Gt||this.fastForwardTo(_.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=b.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){const u=t|32;u===w.ScriptEnd[3]?this.startSpecial(w.ScriptEnd,4):u===w.StyleEnd[3]?this.startSpecial(w.StyleEnd,4):(this.state=b.InTagName,this.stateInTagName(t))}stateBeforeSpecialT(t){switch(t|32){case w.TitleEnd[3]:{this.startSpecial(w.TitleEnd,4);break}case w.TextareaEnd[3]:{this.startSpecial(w.TextareaEnd,4);break}case w.XmpEnd[3]:{this.startSpecial(w.XmpEnd,4);break}default:this.state=b.InTagName,this.stateInTagName(t)}}startEntity(){this.baseState=this.state,this.state=b.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?j.Strict:this.baseState===b.Text||this.baseState===b.InSpecialTag?j.Legacy:j.Attribute)}stateInEntity(){const t=this.index-this.offset,u=this.entityDecoder.write(this.buffer,t);if(u>=0)this.state=this.baseState,u===0&&(this.index-=1);else{if(t<this.buffer.length&&this.buffer.charCodeAt(t)===_.Amp){this.state=this.baseState,this.index-=1;return}this.index=this.offset+this.buffer.length-1}}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===b.Text||this.state===b.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===b.InAttributeValueDq||this.state===b.InAttributeValueSq||this.state===b.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){const t=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case b.Text:{this.stateText(t);break}case b.SpecialStartSequence:{this.stateSpecialStartSequence(t);break}case b.InSpecialTag:{this.stateInSpecialTag(t);break}case b.CDATASequence:{this.stateCDATASequence(t);break}case b.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(t);break}case b.InAttributeName:{this.stateInAttributeName(t);break}case b.InCommentLike:{this.stateInCommentLike(t);break}case b.InSpecialComment:{this.stateInSpecialComment(t);break}case b.BeforeAttributeName:{this.stateBeforeAttributeName(t);break}case b.InTagName:{this.stateInTagName(t);break}case b.InClosingTagName:{this.stateInClosingTagName(t);break}case b.BeforeTagName:{this.stateBeforeTagName(t);break}case b.AfterAttributeName:{this.stateAfterAttributeName(t);break}case b.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(t);break}case b.BeforeAttributeValue:{this.stateBeforeAttributeValue(t);break}case b.BeforeClosingTagName:{this.stateBeforeClosingTagName(t);break}case b.AfterClosingTagName:{this.stateAfterClosingTagName(t);break}case b.BeforeSpecialS:{this.stateBeforeSpecialS(t);break}case b.BeforeSpecialT:{this.stateBeforeSpecialT(t);break}case b.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(t);break}case b.InSelfClosingTag:{this.stateInSelfClosingTag(t);break}case b.InDeclaration:{this.stateInDeclaration(t);break}case b.BeforeDeclaration:{this.stateBeforeDeclaration(t);break}case b.BeforeComment:{this.stateBeforeComment(t);break}case b.InProcessingInstruction:{this.stateInProcessingInstruction(t);break}case b.InEntity:{this.stateInEntity();break}}this.index++}this.cleanup()}finish(){this.state===b.InEntity&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length+this.offset;this.sectionStart>=t||(this.state===b.InCommentLike?this.currentSequence===w.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===b.InTagName||this.state===b.BeforeAttributeName||this.state===b.BeforeAttributeValue||this.state===b.AfterAttributeName||this.state===b.InAttributeName||this.state===b.InAttributeValueSq||this.state===b.InAttributeValueDq||this.state===b.InAttributeValueNq||this.state===b.InClosingTagName||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,u){this.baseState!==b.Text&&this.baseState!==b.InSpecialTag?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+u,this.index=this.sectionStart-1,this.cbs.onattribentity(t)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+u,this.index=this.sectionStart-1,this.cbs.ontextentity(t,this.sectionStart))}};const pe=new Set(["input","option","optgroup","select","button","datalist","textarea"]),L=new Set(["p"]),Ku=new Set(["thead","tbody"]),Gu=new Set(["dd","dt"]),Wu=new Set(["rt","rp"]),Mn=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",L],["h1",L],["h2",L],["h3",L],["h4",L],["h5",L],["h6",L],["select",pe],["input",pe],["output",pe],["button",pe],["datalist",pe],["textarea",pe],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",Gu],["dt",Gu],["address",L],["article",L],["aside",L],["blockquote",L],["details",L],["div",L],["dl",L],["fieldset",L],["figcaption",L],["figure",L],["footer",L],["form",L],["header",L],["hr",L],["main",L],["nav",L],["ol",L],["pre",L],["section",L],["table",L],["ul",L],["rt",Wu],["rp",Wu],["tbody",Ku],["tfoot",Ku]]),wn=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),Ju=new Set(["math","svg"]),Zu=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),Pn=/\s|\//;let kn=class{constructor(t,u={}){var s,n,i,r,h,d;this.options=u,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=t??{},this.htmlMode=!this.options.xmlMode,this.lowerCaseTagNames=(s=u.lowerCaseTags)!==null&&s!==void 0?s:this.htmlMode,this.lowerCaseAttributeNames=(n=u.lowerCaseAttributeNames)!==null&&n!==void 0?n:this.htmlMode,this.recognizeSelfClosing=(i=u.recognizeSelfClosing)!==null&&i!==void 0?i:!this.htmlMode,this.tokenizer=new((r=u.Tokenizer)!==null&&r!==void 0?r:Fn)(this.options,this),this.foreignContext=[!this.htmlMode],(d=(h=this.cbs).onparserinit)===null||d===void 0||d.call(h,this)}ontext(t,u){var s,n;const i=this.getSlice(t,u);this.endIndex=u-1,(n=(s=this.cbs).ontext)===null||n===void 0||n.call(s,i),this.startIndex=u}ontextentity(t,u){var s,n;this.endIndex=u-1,(n=(s=this.cbs).ontext)===null||n===void 0||n.call(s,Qu(t)),this.startIndex=u}isVoidElement(t){return this.htmlMode&&wn.has(t)}onopentagname(t,u){this.endIndex=u;let s=this.getSlice(t,u);this.lowerCaseTagNames&&(s=s.toLowerCase()),this.emitOpenTag(s)}emitOpenTag(t){var u,s,n,i;this.openTagStart=this.startIndex,this.tagname=t;const r=this.htmlMode&&Mn.get(t);if(r)for(;this.stack.length>0&&r.has(this.stack[0]);){const h=this.stack.shift();(s=(u=this.cbs).onclosetag)===null||s===void 0||s.call(u,h,!0)}this.isVoidElement(t)||(this.stack.unshift(t),this.htmlMode&&(Ju.has(t)?this.foreignContext.unshift(!0):Zu.has(t)&&this.foreignContext.unshift(!1))),(i=(n=this.cbs).onopentagname)===null||i===void 0||i.call(n,t),this.cbs.onopentag&&(this.attribs={})}endOpenTag(t){var u,s;this.startIndex=this.openTagStart,this.attribs&&((s=(u=this.cbs).onopentag)===null||s===void 0||s.call(u,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1}onclosetag(t,u){var s,n,i,r,h,d,f,g;this.endIndex=u;let I=this.getSlice(t,u);if(this.lowerCaseTagNames&&(I=I.toLowerCase()),this.htmlMode&&(Ju.has(I)||Zu.has(I))&&this.foreignContext.shift(),this.isVoidElement(I))this.htmlMode&&I==="br"&&((r=(i=this.cbs).onopentagname)===null||r===void 0||r.call(i,"br"),(d=(h=this.cbs).onopentag)===null||d===void 0||d.call(h,"br",{},!0),(g=(f=this.cbs).onclosetag)===null||g===void 0||g.call(f,"br",!1));else{const C=this.stack.indexOf(I);if(C!==-1)for(let p=0;p<=C;p++){const S=this.stack.shift();(n=(s=this.cbs).onclosetag)===null||n===void 0||n.call(s,S,p!==C)}else this.htmlMode&&I==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=u+1}onselfclosingtag(t){this.endIndex=t,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)}closeCurrentTag(t){var u,s;const n=this.tagname;this.endOpenTag(t),this.stack[0]===n&&((s=(u=this.cbs).onclosetag)===null||s===void 0||s.call(u,n,!t),this.stack.shift())}onattribname(t,u){this.startIndex=t;const s=this.getSlice(t,u);this.attribname=this.lowerCaseAttributeNames?s.toLowerCase():s}onattribdata(t,u){this.attribvalue+=this.getSlice(t,u)}onattribentity(t){this.attribvalue+=Qu(t)}onattribend(t,u){var s,n;this.endIndex=u,(n=(s=this.cbs).onattribute)===null||n===void 0||n.call(s,this.attribname,this.attribvalue,t===z.Double?'"':t===z.Single?"'":t===z.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(t){const u=t.search(Pn);let s=u<0?t:t.substr(0,u);return this.lowerCaseTagNames&&(s=s.toLowerCase()),s}ondeclaration(t,u){this.endIndex=u;const s=this.getSlice(t,u);if(this.cbs.onprocessinginstruction){const n=this.getInstructionName(s);this.cbs.onprocessinginstruction(`!${n}`,`!${s}`)}this.startIndex=u+1}onprocessinginstruction(t,u){this.endIndex=u;const s=this.getSlice(t,u);if(this.cbs.onprocessinginstruction){const n=this.getInstructionName(s);this.cbs.onprocessinginstruction(`?${n}`,`?${s}`)}this.startIndex=u+1}oncomment(t,u,s){var n,i,r,h;this.endIndex=u,(i=(n=this.cbs).oncomment)===null||i===void 0||i.call(n,this.getSlice(t,u-s)),(h=(r=this.cbs).oncommentend)===null||h===void 0||h.call(r),this.startIndex=u+1}oncdata(t,u,s){var n,i,r,h,d,f,g,I,C,p;this.endIndex=u;const S=this.getSlice(t,u-s);!this.htmlMode||this.options.recognizeCDATA?((i=(n=this.cbs).oncdatastart)===null||i===void 0||i.call(n),(h=(r=this.cbs).ontext)===null||h===void 0||h.call(r,S),(f=(d=this.cbs).oncdataend)===null||f===void 0||f.call(d)):((I=(g=this.cbs).oncomment)===null||I===void 0||I.call(g,`[CDATA[${S}]]`),(p=(C=this.cbs).oncommentend)===null||p===void 0||p.call(C)),this.startIndex=u+1}onend(){var t,u;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let s=0;s<this.stack.length;s++)this.cbs.onclosetag(this.stack[s],!0)}(u=(t=this.cbs).onend)===null||u===void 0||u.call(t)}reset(){var t,u,s,n;(u=(t=this.cbs).onreset)===null||u===void 0||u.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(n=(s=this.cbs).onparserinit)===null||n===void 0||n.call(s,this),this.buffers.length=0,this.foreignContext.length=0,this.foreignContext.unshift(!this.htmlMode),this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(t){this.reset(),this.end(t)}getSlice(t,u){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let s=this.buffers[0].slice(t-this.bufferOffset,u-this.bufferOffset);for(;u-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),s+=this.buffers[0].slice(0,u-this.bufferOffset);return s}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(t){var u,s;if(this.ended){(s=(u=this.cbs).onerror)===null||s===void 0||s.call(u,new Error(".write() after done!"));return}this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++)}end(t){var u,s;if(this.ended){(s=(u=this.cbs).onerror)===null||s===void 0||s.call(u,new Error(".end() after done!"));return}t&&this.write(t),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(t){this.write(t)}done(t){this.end(t)}};function Hn(e,t){const u=new _a(void 0,t);return new kn(u,t).end(e),u.root}var Gt;const xe=(Gt=Object.hasOwn)!==null&&Gt!==void 0?Gt:((e,t)=>Object.prototype.hasOwnProperty.call(e,t)),Fe=/\s+/,Wt="data-",Jt=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,Un=/^{[^]*}$|^\[[^]*]$/;function rt(e,t,u){var s;if(!(!e||!D(e))){if((s=e.attribs)!==null&&s!==void 0||(e.attribs={}),!t)return e.attribs;if(xe(e.attribs,t))return!u&&Jt.test(t)?t:e.attribs[t];if(e.name==="option"&&t==="value")return ye(e.children);if(e.name==="input"&&(e.attribs.type==="radio"||e.attribs.type==="checkbox")&&t==="value")return"on"}}function _e(e,t,u){u===null?ju(e,t):e.attribs[t]=`${u}`}function Qn(e,t){if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e!="string")throw new Error("Bad combination of arguments.");return x(this,(u,s)=>{D(u)&&_e(u,e,t.call(u,s,u.attribs[e]))})}return x(this,u=>{if(D(u))if(typeof e=="object")for(const s of Object.keys(e)){const n=e[s];_e(u,s,n)}else _e(u,e,t)})}return arguments.length>1?this:rt(this[0],e,this.options.xmlMode)}function Xu(e,t,u){return t in e?e[t]:!u&&Jt.test(t)?rt(e,t,!1)!==void 0:rt(e,t,u)}function Zt(e,t,u,s){t in e?e[t]=u:_e(e,t,!s&&Jt.test(t)?u?"":null:`${u}`)}function Yn(e,t){var u;if(typeof e=="string"&&t===void 0){const s=this[0];if(!s)return;switch(e){case"style":{const n=this.css(),i=Object.keys(n);for(let r=0;r<i.length;r++)n[r]=i[r];return n.length=i.length,n}case"tagName":case"nodeName":return D(s)?s.name.toUpperCase():void 0;case"href":case"src":{if(!D(s))return;const n=(u=s.attribs)===null||u===void 0?void 0:u[e];return typeof URL<"u"&&(e==="href"&&(s.tagName==="a"||s.tagName==="link")||e==="src"&&(s.tagName==="img"||s.tagName==="iframe"||s.tagName==="audio"||s.tagName==="video"||s.tagName==="source"))&&n!==void 0&&this.options.baseURI?new URL(n,this.options.baseURI).href:n}case"innerText":return tt(s);case"textContent":return me(s);case"outerHTML":return s.type===Dt?this.html():this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return D(s)?Xu(s,e,this.options.xmlMode):void 0}}if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e=="object")throw new TypeError("Bad combination of arguments.");return x(this,(s,n)=>{D(s)&&Zt(s,e,t.call(s,n,Xu(s,e,this.options.xmlMode)),this.options.xmlMode)})}return x(this,s=>{if(D(s))if(typeof e=="object")for(const n of Object.keys(e)){const i=e[n];Zt(s,n,i,this.options.xmlMode)}else Zt(s,e,t,this.options.xmlMode)})}}function Vu(e,t,u){var s;(s=e.data)!==null&&s!==void 0||(e.data={}),typeof t=="object"?Object.assign(e.data,t):typeof t=="string"&&u!==void 0&&(e.data[t]=u)}function vn(e){for(const t of Object.keys(e.attribs)){if(!t.startsWith(Wt))continue;const u=Cn(t.slice(Wt.length));xe(e.data,u)||(e.data[u]=qu(e.attribs[t]))}return e.data}function Kn(e,t){const u=Wt+pn(t),s=e.data;if(xe(s,t))return s[t];if(xe(e.attribs,u))return s[t]=qu(e.attribs[u])}function qu(e){if(e==="null")return null;if(e==="true")return!0;if(e==="false")return!1;const t=Number(e);if(e===String(t))return t;if(Un.test(e))try{return JSON.parse(e)}catch{}return e}function Gn(e,t){var u;const s=this[0];if(!s||!D(s))return;const n=s;return(u=n.data)!==null&&u!==void 0||(n.data={}),e==null?vn(n):typeof e=="object"||t!==void 0?(x(this,i=>{D(i)&&(typeof e=="object"?Vu(i,e):Vu(i,e,t))}),this):Kn(n,e)}function Wn(e){const t=arguments.length===0,u=this[0];if(!u||!D(u))return t?void 0:this;switch(u.name){case"textarea":return this.text(e);case"select":{const s=this.find("option:selected");if(!t){if(this.attr("multiple")==null&&typeof e=="object")return this;this.find("option").removeAttr("selected");const n=typeof e=="object"?e:[e];for(const i of n)this.find(`option[value="${i}"]`).attr("selected","");return this}return this.attr("multiple")?s.toArray().map(n=>ye(n.children)):s.attr("value")}case"button":case"input":case"option":return t?this.attr("value"):this.attr("value",e)}}function ju(e,t){!e.attribs||!xe(e.attribs,t)||delete e.attribs[t]}function At(e){return e?e.trim().split(Fe):[]}function Jn(e){const t=At(e);for(const u of t)x(this,s=>{D(s)&&ju(s,u)});return this}function Zn(e){return this.toArray().some(t=>{const u=D(t)&&t.attribs.class;let s=-1;if(u&&e.length>0)for(;(s=u.indexOf(e,s+1))>-1;){const n=s+e.length;if((s===0||Fe.test(u[s-1]))&&(n===u.length||Fe.test(u[n])))return!0}return!1})}function zu(e){if(typeof e=="function")return x(this,(s,n)=>{if(D(s)){const i=s.attribs.class||"";zu.call([s],e.call(s,n,i))}});if(!e||typeof e!="string")return this;const t=e.split(Fe),u=this.length;for(let s=0;s<u;s++){const n=this[s];if(!D(n))continue;const i=rt(n,"class",!1);if(i){let r=` ${i} `;for(const h of t){const d=`${h} `;r.includes(` ${d}`)||(r+=d)}_e(n,"class",r.trim())}else _e(n,"class",t.join(" ").trim())}return this}function $u(e){if(typeof e=="function")return x(this,(n,i)=>{D(n)&&$u.call([n],e.call(n,i,n.attribs.class||""))});const t=At(e),u=t.length,s=arguments.length===0;return x(this,n=>{if(D(n))if(s)n.attribs.class="";else{const i=At(n.attribs.class);let r=!1;for(let h=0;h<u;h++){const d=i.indexOf(t[h]);d!==-1&&(i.splice(d,1),r=!0,h--)}r&&(n.attribs.class=i.join(" "))}})}function es(e,t){if(typeof e=="function")return x(this,(r,h)=>{D(r)&&es.call([r],e.call(r,h,r.attribs.class||"",t),t)});if(!e||typeof e!="string")return this;const u=e.split(Fe),s=u.length,n=typeof t=="boolean"?t?1:-1:0,i=this.length;for(let r=0;r<i;r++){const h=this[r];if(!D(h))continue;const d=At(h.attribs.class);for(let f=0;f<s;f++){const g=d.indexOf(u[f]);n>=0&&g===-1?d.push(u[f]):n<=0&&g!==-1&&d.splice(g,1)}h.attribs.class=d.join(" ")}return this}const Xn=Object.freeze(Object.defineProperty({__proto__:null,addClass:zu,attr:Qn,data:Gn,hasClass:Zn,prop:Yn,removeAttr:Jn,removeClass:$u,toggleClass:es,val:Wn},Symbol.toStringTag,{value:"Module"}));var N;(function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"})(N||(N={}));var P;(function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"})(P||(P={}));const ts=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,Vn=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,qn=new Map([[126,P.Element],[94,P.Start],[36,P.End],[42,P.Any],[33,P.Not],[124,P.Hyphen]]),jn=new Set(["has","not","matches","is","where","host","host-context"]);function Me(e){switch(e.type){case N.Adjacent:case N.Child:case N.Descendant:case N.Parent:case N.Sibling:case N.ColumnCombinator:return!0;default:return!1}}const zn=new Set(["contains","icontains"]);function $n(e,t,u){const s=parseInt(t,16)-65536;return s!==s||u?t:s<0?String.fromCharCode(s+65536):String.fromCharCode(s>>10|55296,s&1023|56320)}function we(e){return e.replace(Vn,$n)}function Xt(e){return e===39||e===34}function us(e){return e===32||e===9||e===10||e===12||e===13}function ct(e){const t=[],u=ss(t,`${e}`,0);if(u<e.length)throw new Error(`Unmatched selector: ${e.slice(u)}`);return t}function ss(e,t,u){let s=[];function n(C){const p=t.slice(u+C).match(ts);if(!p)throw new Error(`Expected name, found ${t.slice(u)}`);const[S]=p;return u+=C+S.length,we(S)}function i(C){for(u+=C;u<t.length&&us(t.charCodeAt(u));)u++}function r(){u+=1;const C=u;let p=1;for(;p>0&&u<t.length;u++)t.charCodeAt(u)===40&&!h(u)?p++:t.charCodeAt(u)===41&&!h(u)&&p--;if(p)throw new Error("Parenthesis not matched");return we(t.slice(C,u-1))}function h(C){let p=0;for(;t.charCodeAt(--C)===92;)p++;return(p&1)===1}function d(){if(s.length>0&&Me(s[s.length-1]))throw new Error("Did not expect successive traversals.")}function f(C){if(s.length>0&&s[s.length-1].type===N.Descendant){s[s.length-1].type=C;return}d(),s.push({type:C})}function g(C,p){s.push({type:N.Attribute,name:C,action:p,value:n(1),namespace:null,ignoreCase:"quirks"})}function I(){if(s.length&&s[s.length-1].type===N.Descendant&&s.pop(),s.length===0)throw new Error("Empty sub-selector");e.push(s)}if(i(0),t.length===u)return u;e:for(;u<t.length;){const C=t.charCodeAt(u);switch(C){case 32:case 9:case 10:case 12:case 13:{(s.length===0||s[0].type!==N.Descendant)&&(d(),s.push({type:N.Descendant})),i(1);break}case 62:{f(N.Child),i(1);break}case 60:{f(N.Parent),i(1);break}case 126:{f(N.Sibling),i(1);break}case 43:{f(N.Adjacent),i(1);break}case 46:{g("class",P.Element);break}case 35:{g("id",P.Equals);break}case 91:{i(1);let p,S=null;t.charCodeAt(u)===124?p=n(1):t.startsWith("*|",u)?(S="*",p=n(2)):(p=n(0),t.charCodeAt(u)===124&&t.charCodeAt(u+1)!==61&&(S=p,p=n(1))),i(0);let k=P.Exists;const V=qn.get(t.charCodeAt(u));if(V){if(k=V,t.charCodeAt(u+1)!==61)throw new Error("Expected `=`");i(2)}else t.charCodeAt(u)===61&&(k=P.Equals,i(1));let De="",Be=null;if(k!=="exists"){if(Xt(t.charCodeAt(u))){const St=t.charCodeAt(u);let ge=u+1;for(;ge<t.length&&(t.charCodeAt(ge)!==St||h(ge));)ge+=1;if(t.charCodeAt(ge)!==St)throw new Error("Attribute value didn't end");De=we(t.slice(u+1,ge)),u=ge+1}else{const St=u;for(;u<t.length&&(!us(t.charCodeAt(u))&&t.charCodeAt(u)!==93||h(u));)u+=1;De=we(t.slice(St,u))}i(0);const qe=t.charCodeAt(u)|32;qe===115?(Be=!1,i(1)):qe===105&&(Be=!0,i(1))}if(t.charCodeAt(u)!==93)throw new Error("Attribute selector didn't terminate");u+=1;const Ve={type:N.Attribute,name:p,action:k,value:De,namespace:S,ignoreCase:Be};s.push(Ve);break}case 58:{if(t.charCodeAt(u+1)===58){s.push({type:N.PseudoElement,name:n(2).toLowerCase(),data:t.charCodeAt(u)===40?r():null});continue}const p=n(1).toLowerCase();let S=null;if(t.charCodeAt(u)===40)if(jn.has(p)){if(Xt(t.charCodeAt(u+1)))throw new Error(`Pseudo-selector ${p} cannot be quoted`);if(S=[],u=ss(S,t,u+1),t.charCodeAt(u)!==41)throw new Error(`Missing closing parenthesis in :${p} (${t})`);u+=1}else{if(S=r(),zn.has(p)){const k=S.charCodeAt(0);k===S.charCodeAt(S.length-1)&&Xt(k)&&(S=S.slice(1,-1))}S=we(S)}s.push({type:N.Pseudo,name:p,data:S});break}case 44:{I(),s=[],i(1);break}default:{if(t.startsWith("/*",u)){const k=t.indexOf("*/",u+2);if(k<0)throw new Error("Comment was not terminated");u=k+2,s.length===0&&i(0);break}let p=null,S;if(C===42)u+=1,S="*";else if(C===124){if(S="",t.charCodeAt(u+1)===124){f(N.ColumnCombinator),i(2);break}}else if(ts.test(t.slice(u)))S=n(0);else break e;t.charCodeAt(u)===124&&t.charCodeAt(u+1)!==124&&(p=S,t.charCodeAt(u+1)===42?(S="*",u+=2):S=n(1)),s.push(S==="*"?{type:N.Universal,namespace:p}:{type:N.Tag,name:S,namespace:p})}}}return I(),u}function ei(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vt,as;function ti(){return as||(as=1,Vt={trueFunc:function(){return!0},falseFunc:function(){return!1}}),Vt}var ot=ti();const B=ei(ot),ns=new Map([[N.Universal,50],[N.Tag,30],[N.Attribute,1],[N.Pseudo,0]]);function qt(e){return!ns.has(e.type)}const ui=new Map([[P.Exists,10],[P.Equals,8],[P.Not,7],[P.Start,6],[P.End,6],[P.Any,5]]);function si(e){const t=e.map(is);for(let u=1;u<e.length;u++){const s=t[u];if(!(s<0))for(let n=u-1;n>=0&&s<t[n];n--){const i=e[n+1];e[n+1]=e[n],e[n]=i,t[n+1]=t[n],t[n]=s}}}function is(e){var t,u;let s=(t=ns.get(e.type))!==null&&t!==void 0?t:-1;return e.type===N.Attribute?(s=(u=ui.get(e.action))!==null&&u!==void 0?u:4,e.action===P.Equals&&e.name==="id"&&(s=9),e.ignoreCase&&(s>>=1)):e.type===N.Pseudo&&(e.data?e.name==="has"||e.name==="contains"?s=0:Array.isArray(e.data)?(s=Math.min(...e.data.map(n=>Math.min(...n.map(is)))),s<0&&(s=0)):s=2:s=3),s}const ai=/[-[\]{}()*+?.,\\^$|#\s]/g;function rs(e){return e.replace(ai,"\\$&")}const ni=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function le(e,t){return typeof e.ignoreCase=="boolean"?e.ignoreCase:e.ignoreCase==="quirks"?!!t.quirksMode:!t.xmlMode&&ni.has(e.name)}const ii={equals(e,t,u){const{adapter:s}=u,{name:n}=t;let{value:i}=t;return le(t,u)?(i=i.toLowerCase(),r=>{const h=s.getAttributeValue(r,n);return h!=null&&h.length===i.length&&h.toLowerCase()===i&&e(r)}):r=>s.getAttributeValue(r,n)===i&&e(r)},hyphen(e,t,u){const{adapter:s}=u,{name:n}=t;let{value:i}=t;const r=i.length;return le(t,u)?(i=i.toLowerCase(),function(d){const f=s.getAttributeValue(d,n);return f!=null&&(f.length===r||f.charAt(r)==="-")&&f.substr(0,r).toLowerCase()===i&&e(d)}):function(d){const f=s.getAttributeValue(d,n);return f!=null&&(f.length===r||f.charAt(r)==="-")&&f.substr(0,r)===i&&e(d)}},element(e,t,u){const{adapter:s}=u,{name:n,value:i}=t;if(/\s/.test(i))return B.falseFunc;const r=new RegExp(`(?:^|\\s)${rs(i)}(?:$|\\s)`,le(t,u)?"i":"");return function(d){const f=s.getAttributeValue(d,n);return f!=null&&f.length>=i.length&&r.test(f)&&e(d)}},exists(e,{name:t},{adapter:u}){return s=>u.hasAttrib(s,t)&&e(s)},start(e,t,u){const{adapter:s}=u,{name:n}=t;let{value:i}=t;const r=i.length;return r===0?B.falseFunc:le(t,u)?(i=i.toLowerCase(),h=>{const d=s.getAttributeValue(h,n);return d!=null&&d.length>=r&&d.substr(0,r).toLowerCase()===i&&e(h)}):h=>{var d;return!!(!((d=s.getAttributeValue(h,n))===null||d===void 0)&&d.startsWith(i))&&e(h)}},end(e,t,u){const{adapter:s}=u,{name:n}=t;let{value:i}=t;const r=-i.length;return r===0?B.falseFunc:le(t,u)?(i=i.toLowerCase(),h=>{var d;return((d=s.getAttributeValue(h,n))===null||d===void 0?void 0:d.substr(r).toLowerCase())===i&&e(h)}):h=>{var d;return!!(!((d=s.getAttributeValue(h,n))===null||d===void 0)&&d.endsWith(i))&&e(h)}},any(e,t,u){const{adapter:s}=u,{name:n,value:i}=t;if(i==="")return B.falseFunc;if(le(t,u)){const r=new RegExp(rs(i),"i");return function(d){const f=s.getAttributeValue(d,n);return f!=null&&f.length>=i.length&&r.test(f)&&e(d)}}return r=>{var h;return!!(!((h=s.getAttributeValue(r,n))===null||h===void 0)&&h.includes(i))&&e(r)}},not(e,t,u){const{adapter:s}=u,{name:n}=t;let{value:i}=t;return i===""?r=>!!s.getAttributeValue(r,n)&&e(r):le(t,u)?(i=i.toLowerCase(),r=>{const h=s.getAttributeValue(r,n);return(h==null||h.length!==i.length||h.toLowerCase()!==i)&&e(r)}):r=>s.getAttributeValue(r,n)!==i&&e(r)}},ri=new Set([9,10,12,13,32]),As=48,Ai=57;function ci(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,u=0,s=i(),n=r();if(t<e.length&&e.charAt(t)==="n"&&(t++,u=s*(n??1),h(),t<e.length?(s=i(),h(),n=r()):s=n=0),n===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[u,s*n];function i(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function r(){const d=t;let f=0;for(;t<e.length&&e.charCodeAt(t)>=As&&e.charCodeAt(t)<=Ai;)f=f*10+(e.charCodeAt(t)-As),t++;return t===d?null:f}function h(){for(;t<e.length&&ri.has(e.charCodeAt(t));)t++}}function oi(e){const t=e[0],u=e[1]-1;if(u<0&&t<=0)return B.falseFunc;if(t===-1)return i=>i<=u;if(t===0)return i=>i===u;if(t===1)return u<0?B.trueFunc:i=>i>=u;const s=Math.abs(t),n=(u%s+s)%s;return t>1?i=>i>=u&&i%s===n:i=>i<=u&&i%s===n}function ht(e){return oi(ci(e))}function dt(e,t){return u=>{const s=t.getParent(u);return s!=null&&t.isTag(s)&&e(u)}}const jt={contains(e,t,{adapter:u}){return function(n){return e(n)&&u.getText(n).includes(t)}},icontains(e,t,{adapter:u}){const s=t.toLowerCase();return function(i){return e(i)&&u.getText(i).toLowerCase().includes(s)}},"nth-child"(e,t,{adapter:u,equals:s}){const n=ht(t);return n===B.falseFunc?B.falseFunc:n===B.trueFunc?dt(e,u):function(r){const h=u.getSiblings(r);let d=0;for(let f=0;f<h.length&&!s(r,h[f]);f++)u.isTag(h[f])&&d++;return n(d)&&e(r)}},"nth-last-child"(e,t,{adapter:u,equals:s}){const n=ht(t);return n===B.falseFunc?B.falseFunc:n===B.trueFunc?dt(e,u):function(r){const h=u.getSiblings(r);let d=0;for(let f=h.length-1;f>=0&&!s(r,h[f]);f--)u.isTag(h[f])&&d++;return n(d)&&e(r)}},"nth-of-type"(e,t,{adapter:u,equals:s}){const n=ht(t);return n===B.falseFunc?B.falseFunc:n===B.trueFunc?dt(e,u):function(r){const h=u.getSiblings(r);let d=0;for(let f=0;f<h.length;f++){const g=h[f];if(s(r,g))break;u.isTag(g)&&u.getName(g)===u.getName(r)&&d++}return n(d)&&e(r)}},"nth-last-of-type"(e,t,{adapter:u,equals:s}){const n=ht(t);return n===B.falseFunc?B.falseFunc:n===B.trueFunc?dt(e,u):function(r){const h=u.getSiblings(r);let d=0;for(let f=h.length-1;f>=0;f--){const g=h[f];if(s(r,g))break;u.isTag(g)&&u.getName(g)===u.getName(r)&&d++}return n(d)&&e(r)}},root(e,t,{adapter:u}){return s=>{const n=u.getParent(s);return(n==null||!u.isTag(n))&&e(s)}},scope(e,t,u,s){const{equals:n}=u;return!s||s.length===0?jt.root(e,t,u):s.length===1?i=>n(s[0],i)&&e(i):i=>s.includes(i)&&e(i)},hover:zt("isHovered"),visited:zt("isVisited"),active:zt("isActive")};function zt(e){return function(u,s,{adapter:n}){const i=n[e];return typeof i!="function"?B.falseFunc:function(h){return i(h)&&u(h)}}}const cs={empty(e,{adapter:t}){return!t.getChildren(e).some(u=>t.isTag(u)||t.getText(u)!=="")},"first-child"(e,{adapter:t,equals:u}){if(t.prevElementSibling)return t.prevElementSibling(e)==null;const s=t.getSiblings(e).find(n=>t.isTag(n));return s!=null&&u(e,s)},"last-child"(e,{adapter:t,equals:u}){const s=t.getSiblings(e);for(let n=s.length-1;n>=0;n--){if(u(e,s[n]))return!0;if(t.isTag(s[n]))break}return!1},"first-of-type"(e,{adapter:t,equals:u}){const s=t.getSiblings(e),n=t.getName(e);for(let i=0;i<s.length;i++){const r=s[i];if(u(e,r))return!0;if(t.isTag(r)&&t.getName(r)===n)break}return!1},"last-of-type"(e,{adapter:t,equals:u}){const s=t.getSiblings(e),n=t.getName(e);for(let i=s.length-1;i>=0;i--){const r=s[i];if(u(e,r))return!0;if(t.isTag(r)&&t.getName(r)===n)break}return!1},"only-of-type"(e,{adapter:t,equals:u}){const s=t.getName(e);return t.getSiblings(e).every(n=>u(e,n)||!t.isTag(n)||t.getName(n)!==s)},"only-child"(e,{adapter:t,equals:u}){return t.getSiblings(e).every(s=>u(e,s)||!t.isTag(s))}};function os(e,t,u,s){if(u===null){if(e.length>s)throw new Error(`Pseudo-class :${t} requires an argument`)}else if(e.length===s)throw new Error(`Pseudo-class :${t} doesn't have any arguments`)}const hi={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is(
|
|
3
|
+
:is(button, input, select, textarea, optgroup, option)[disabled],
|
|
4
|
+
optgroup[disabled] > option,
|
|
5
|
+
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
|
|
6
|
+
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},hs={};function di(e,t){return e===B.falseFunc?B.falseFunc:u=>t.isTag(u)&&e(u)}function ds(e,t){const u=t.getSiblings(e);if(u.length<=1)return[];const s=u.indexOf(e);return s<0||s===u.length-1?[]:u.slice(s+1).filter(t.isTag)}function $t(e){return{xmlMode:!!e.xmlMode,lowerCaseAttributeNames:!!e.lowerCaseAttributeNames,lowerCaseTags:!!e.lowerCaseTags,quirksMode:!!e.quirksMode,cacheResults:!!e.cacheResults,pseudos:e.pseudos,adapter:e.adapter,equals:e.equals}}const eu=(e,t,u,s,n)=>{const i=n(t,$t(u),s);return i===B.trueFunc?e:i===B.falseFunc?B.falseFunc:r=>i(r)&&e(r)},tu={is:eu,matches:eu,where:eu,not(e,t,u,s,n){const i=n(t,$t(u),s);return i===B.falseFunc?e:i===B.trueFunc?B.falseFunc:r=>!i(r)&&e(r)},has(e,t,u,s,n){const{adapter:i}=u,r=$t(u);r.relativeSelector=!0;const h=t.some(g=>g.some(qt))?[hs]:void 0,d=n(t,r,h);if(d===B.falseFunc)return B.falseFunc;const f=di(d,i);if(h&&d!==B.trueFunc){const{shouldTestNextSiblings:g=!1}=d;return I=>{if(!e(I))return!1;h[0]=I;const C=i.getChildren(I),p=g?[...C,...ds(I,i)]:C;return i.existsOne(f,p)}}return g=>e(g)&&i.existsOne(f,i.getChildren(g))}};function li(e,t,u,s,n){var i;const{name:r,data:h}=t;if(Array.isArray(h)){if(!(r in tu))throw new Error(`Unknown pseudo-class :${r}(${h})`);return tu[r](e,h,u,s,n)}const d=(i=u.pseudos)===null||i===void 0?void 0:i[r],f=typeof d=="string"?d:hi[r];if(typeof f=="string"){if(h!=null)throw new Error(`Pseudo ${r} doesn't have any arguments`);const g=ct(f);return tu.is(e,g,u,s,n)}if(typeof d=="function")return os(d,r,h,1),g=>d(g,h)&&e(g);if(r in jt)return jt[r](e,h,u,s);if(r in cs){const g=cs[r];return os(g,r,h,2),I=>g(I,u,h)&&e(I)}throw new Error(`Unknown pseudo-class :${r}`)}function uu(e,t){const u=t.getParent(e);return u&&t.isTag(u)?u:null}function fi(e,t,u,s,n){const{adapter:i,equals:r}=u;switch(t.type){case N.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case N.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case N.Attribute:{if(t.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!u.xmlMode||u.lowerCaseAttributeNames)&&(t.name=t.name.toLowerCase()),ii[t.action](e,t,u)}case N.Pseudo:return li(e,t,u,s,n);case N.Tag:{if(t.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:h}=t;return(!u.xmlMode||u.lowerCaseTags)&&(h=h.toLowerCase()),function(f){return i.getName(f)===h&&e(f)}}case N.Descendant:{if(u.cacheResults===!1||typeof WeakSet>"u")return function(f){let g=f;for(;g=uu(g,i);)if(e(g))return!0;return!1};const h=new WeakSet;return function(f){let g=f;for(;g=uu(g,i);)if(!h.has(g)){if(i.isTag(g)&&e(g))return!0;h.add(g)}return!1}}case"_flexibleDescendant":return function(d){let f=d;do if(e(f))return!0;while(f=uu(f,i));return!1};case N.Parent:return function(d){return i.getChildren(d).some(f=>i.isTag(f)&&e(f))};case N.Child:return function(d){const f=i.getParent(d);return f!=null&&i.isTag(f)&&e(f)};case N.Sibling:return function(d){const f=i.getSiblings(d);for(let g=0;g<f.length;g++){const I=f[g];if(r(d,I))break;if(i.isTag(I)&&e(I))return!0}return!1};case N.Adjacent:return i.prevElementSibling?function(d){const f=i.prevElementSibling(d);return f!=null&&e(f)}:function(d){const f=i.getSiblings(d);let g;for(let I=0;I<f.length;I++){const C=f[I];if(r(d,C))break;i.isTag(C)&&(g=C)}return!!g&&e(g)};case N.Universal:{if(t.namespace!=null&&t.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}}function ls(e){return e.type===N.Pseudo&&(e.name==="scope"||Array.isArray(e.data)&&e.data.some(t=>t.some(ls)))}const Ei={type:N.Descendant},Ti={type:"_flexibleDescendant"},gi={type:N.Pseudo,name:"scope",data:null};function bi(e,{adapter:t},u){const s=!!(u!=null&&u.every(n=>{const i=t.isTag(n)&&t.getParent(n);return n===hs||i&&t.isTag(i)}));for(const n of e){if(!(n.length>0&&qt(n[0])&&n[0].type!==N.Descendant))if(s&&!n.some(ls))n.unshift(Ei);else continue;n.unshift(gi)}}function fs(e,t,u){var s;e.forEach(si),u=(s=t.context)!==null&&s!==void 0?s:u;const n=Array.isArray(u),i=u&&(Array.isArray(u)?u:[u]);if(t.relativeSelector!==!1)bi(e,t,i);else if(e.some(d=>d.length>0&&qt(d[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let r=!1;const h=e.map(d=>{if(d.length>=2){const[f,g]=d;f.type!==N.Pseudo||f.name!=="scope"||(n&&g.type===N.Descendant?d[1]=Ti:(g.type===N.Adjacent||g.type===N.Sibling)&&(r=!0))}return mi(d,t,i)}).reduce(Ii,B.falseFunc);return h.shouldTestNextSiblings=r,h}function mi(e,t,u){var s;return e.reduce((n,i)=>n===B.falseFunc?B.falseFunc:fi(n,i,t,u,fs),(s=t.rootFunc)!==null&&s!==void 0?s:B.trueFunc)}function Ii(e,t){return t===B.falseFunc||e===B.trueFunc?e:e===B.falseFunc||t===B.trueFunc?t:function(s){return e(s)||t(s)}}const Es=(e,t)=>e===t,Ci={adapter:nt,equals:Es};function pi(e){var t,u,s,n;const i=e??Ci;return(t=i.adapter)!==null&&t!==void 0||(i.adapter=nt),(u=i.equals)!==null&&u!==void 0||(i.equals=(n=(s=i.adapter)===null||s===void 0?void 0:s.equals)!==null&&n!==void 0?n:Es),i}function _i(e){return function(u,s,n){const i=pi(s);return e(u,i,n)}}const su=_i(fs);function Ts(e,t,u=!1){return u&&(e=Ni(e,t)),Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}function Ni(e,t){const u=Array.isArray(e)?e.slice(0):[e],s=u.length;for(let n=0;n<s;n++){const i=ds(u[n],t);u.push(...i)}return u}const Si=new Set(["first","last","eq","gt","nth","lt","even","odd"]);function lt(e){return e.type!=="pseudo"?!1:Si.has(e.name)?!0:e.name==="not"&&Array.isArray(e.data)?e.data.some(t=>t.some(lt)):!1}function Di(e,t,u){const s=t!=null?parseInt(t,10):NaN;switch(e){case"first":return 1;case"nth":case"eq":return isFinite(s)?s>=0?s+1:1/0:0;case"lt":return isFinite(s)?s>=0?Math.min(s,u):1/0:0;case"gt":return isFinite(s)?1/0:0;case"odd":return 2*u;case"even":return 2*u-1;case"last":case"not":return 1/0}}function Bi(e){for(;e.parent;)e=e.parent;return e}function au(e){const t=[],u=[];for(const s of e)s.some(lt)?t.push(s):u.push(s);return[u,t]}const Oi={type:N.Universal,namespace:null},Ri={type:N.Pseudo,name:"scope",data:null};function gs(e,t,u={}){return bs([e],t,u)}function bs(e,t,u={}){if(typeof t=="function")return e.some(t);const[s,n]=au(ct(t));return s.length>0&&e.some(su(s,u))||n.some(i=>Cs(i,e,u).length>0)}function Li(e,t,u,s){const n=typeof u=="string"?parseInt(u,10):NaN;switch(e){case"first":case"lt":return t;case"last":return t.length>0?[t[t.length-1]]:t;case"nth":case"eq":return isFinite(n)&&Math.abs(n)<t.length?[n<0?t[t.length+n]:t[n]]:[];case"gt":return isFinite(n)?t.slice(n+1):[];case"even":return t.filter((i,r)=>r%2===0);case"odd":return t.filter((i,r)=>r%2===1);case"not":{const i=new Set(Is(u,t,s));return t.filter(r=>!i.has(r))}}}function ms(e,t,u={}){return Is(ct(e),t,u)}function Is(e,t,u){if(t.length===0)return[];const[s,n]=au(e);let i;if(s.length){const r=iu(t,s,u);if(n.length===0)return r;r.length&&(i=new Set(r))}for(let r=0;r<n.length&&(i==null?void 0:i.size)!==t.length;r++){const h=n[r];if((i?t.filter(g=>D(g)&&!i.has(g)):t).length===0)break;const f=Cs(h,t,u);if(f.length)if(i)f.forEach(g=>i.add(g));else{if(r===n.length-1)return f;i=new Set(f)}}return typeof i<"u"?i.size===t.length?t:t.filter(r=>i.has(r)):[]}function Cs(e,t,u){var s;if(e.some(Me)){const n=(s=u.root)!==null&&s!==void 0?s:Bi(t[0]),i={...u,context:t,relativeSelector:!1};return e.push(Ri),ft(n,e,i,!0,t.length)}return ft(t,e,u,!1,t.length)}function yi(e,t,u={},s=1/0){if(typeof e=="function")return ps(t,e);const[n,i]=au(ct(e)),r=i.map(h=>ft(t,h,u,!0,s));return n.length&&r.push(nu(t,n,u,s)),r.length===0?[]:r.length===1?r[0]:Ce(r.reduce((h,d)=>[...h,...d]))}function ft(e,t,u,s,n){const i=t.findIndex(lt),r=t.slice(0,i),h=t[i],d=t.length-1===i?n:1/0,f=Di(h.name,h.data,d);if(f===0)return[];const I=(r.length===0&&!Array.isArray(e)?ut(e).filter(D):r.length===0?(Array.isArray(e)?e:[e]).filter(D):s||r.some(Me)?nu(e,[r],u,f):iu(e,[r],u)).slice(0,f);let C=Li(h.name,I,h.data,u);if(C.length===0||t.length===i+1)return C;const p=t.slice(i+1),S=p.some(Me);if(S){if(Me(p[0])){const{type:k}=p[0];(k===N.Sibling||k===N.Adjacent)&&(C=Ts(C,nt,!0)),p.unshift(Oi)}u={...u,relativeSelector:!1,rootFunc:k=>C.includes(k)}}else u.rootFunc&&u.rootFunc!==ot.trueFunc&&(u={...u,rootFunc:ot.trueFunc});return p.some(lt)?ft(C,p,u,!1,n):S?nu(C,[p],u,n):iu(C,[p],u)}function nu(e,t,u,s){const n=su(t,u,e);return ps(e,n,s)}function ps(e,t,u=1/0){const s=Ts(e,nt,t.shouldTestNextSiblings);return kt(n=>D(n)&&t(n),s,!0,u)}function iu(e,t,u){const s=(Array.isArray(e)?e:[e]).filter(D);if(s.length===0)return s;const n=su(t,u);return n===ot.trueFunc?s:s.filter(n)}const xi=/^\s*(?:[+~]|:scope\b)/;function Fi(e){if(!e)return this._make([]);if(typeof e!="string"){const t=ee(e)?e.toArray():[e],u=this.toArray();return this._make(t.filter(s=>u.some(n=>Hu(n,s))))}return this._findBySelector(e,Number.POSITIVE_INFINITY)}function Mi(e,t){var u;const s=this.toArray(),n=xi.test(e)?s:this.children().toArray(),i={context:s,root:(u=this._root)===null||u===void 0?void 0:u[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(yi(e,n,i,t))}function ru(e){return function(t,...u){return function(s){var n;let i=e(t,this);return s&&(i=ou(i,s,this.options.xmlMode,(n=this._root)===null||n===void 0?void 0:n[0])),this._make(this.length>1&&i.length>1?u.reduce((r,h)=>h(r),i):i)}}}const Pe=ru((e,t)=>{let u=[];for(let s=0;s<t.length;s++){const n=e(t[s]);n.length>0&&(u=u.concat(n))}return u}),Au=ru((e,t)=>{const u=[];for(let s=0;s<t.length;s++){const n=e(t[s]);n!==null&&u.push(n)}return u});function cu(e,...t){let u=null;const s=ru((n,i)=>{const r=[];return x(i,h=>{for(let d;(d=n(h))&&!(u!=null&&u(d,r.length));h=d)r.push(d)}),r})(e,...t);return function(n,i){u=typeof n=="string"?h=>gs(h,n,this.options):n?ke(n):null;const r=s.call(this,i);return u=null,r}}function Ne(e){return e.length>1?Array.from(new Set(e)):e}const wi=Au(({parent:e})=>e&&!ae(e)?e:null,Ne),Pi=Pe(e=>{const t=[];for(;e.parent&&!ae(e.parent);)t.push(e.parent),e=e.parent;return t},Ce,e=>e.reverse()),ki=cu(({parent:e})=>e&&!ae(e)?e:null,Ce,e=>e.reverse());function Hi(e){var t;const u=[];if(!e)return this._make(u);const s={xmlMode:this.options.xmlMode,root:(t=this._root)===null||t===void 0?void 0:t[0]},n=typeof e=="string"?i=>gs(i,e,s):ke(e);return x(this,i=>{for(i&&!ae(i)&&!D(i)&&(i=i.parent);i&&D(i);){if(n(i,0)){u.includes(i)||u.push(i);break}i=i.parent}}),this._make(u)}const Ui=Au(e=>wt(e)),Qi=Pe(e=>{const t=[];for(;e.next;)e=e.next,D(e)&&t.push(e);return t},Ne),Yi=cu(e=>wt(e),Ne),vi=Au(e=>Pt(e)),Ki=Pe(e=>{const t=[];for(;e.prev;)e=e.prev,D(e)&&t.push(e);return t},Ne),Gi=cu(e=>Pt(e),Ne),Wi=Pe(e=>xu(e).filter(t=>D(t)&&t!==e),Ce),Ji=Pe(e=>ut(e).filter(D),Ne);function Zi(){const e=this.toArray().reduce((t,u)=>M(u)?t.concat(u.children):t,[]);return this._make(e)}function Xi(e){let t=0;const u=this.length;for(;t<u&&e.call(this[t],t,this[t])!==!1;)++t;return this}function Vi(e){let t=[];for(let u=0;u<this.length;u++){const s=this[u],n=e.call(s,u,s);n!=null&&(t=t.concat(n))}return this._make(t)}function ke(e){return typeof e=="function"?(t,u)=>e.call(t,u,t):ee(e)?t=>Array.prototype.includes.call(e,t):function(t){return e===t}}function qi(e){var t;return this._make(ou(this.toArray(),e,this.options.xmlMode,(t=this._root)===null||t===void 0?void 0:t[0]))}function ou(e,t,u,s){return typeof t=="string"?ms(t,e,{xmlMode:u,root:s}):e.filter(ke(t))}function ji(e){const t=this.toArray();return typeof e=="string"?bs(t.filter(D),e,this.options):e?t.some(ke(e)):!1}function zi(e){let t=this.toArray();if(typeof e=="string"){const u=new Set(ms(e,t,this.options));t=t.filter(s=>!u.has(s))}else{const u=ke(e);t=t.filter((s,n)=>!u(s,n))}return this._make(t)}function $i(e){return this.filter(typeof e=="string"?`:has(${e})`:(t,u)=>this._make(u).find(e).length>0)}function er(){return this.length>1?this._make(this[0]):this}function tr(){return this.length>0?this._make(this[this.length-1]):this}function ur(e){var t;return e=+e,e===0&&this.length<=1?this:(e<0&&(e=this.length+e),this._make((t=this[e])!==null&&t!==void 0?t:[]))}function sr(e){return e==null?this.toArray():this[e<0?this.length+e:e]}function ar(){return Array.prototype.slice.call(this)}function nr(e){let t,u;return e==null?(t=this.parent().children(),u=this[0]):typeof e=="string"?(t=this._make(e),u=this[0]):(t=this,u=ee(e)?e[0]:e),Array.prototype.indexOf.call(t,u)}function ir(e,t){return this._make(Array.prototype.slice.call(this,e,t))}function rr(){var e;return(e=this.prevObject)!==null&&e!==void 0?e:this._make([])}function Ar(e,t){const u=this._make(e,t),s=Ce([...this.get(),...u.get()]);return this._make(s)}function cr(e){return this.prevObject?this.add(e?this.prevObject.filter(e):this.prevObject):this}const or=Object.freeze(Object.defineProperty({__proto__:null,_findBySelector:Mi,add:Ar,addBack:cr,children:Ji,closest:Hi,contents:Zi,each:Xi,end:rr,eq:ur,filter:qi,filterArray:ou,find:Fi,first:er,get:sr,has:$i,index:nr,is:ji,last:tr,map:Vi,next:Ui,nextAll:Qi,nextUntil:Yi,not:zi,parent:wi,parents:Pi,parentsUntil:ki,prev:vi,prevAll:Ki,prevUntil:Gi,siblings:Wi,slice:ir,toArray:ar},Symbol.toStringTag,{value:"Module"}));function hr(e){return function(u,s,n,i){if(typeof Buffer<"u"&&Buffer.isBuffer(u)&&(u=u.toString()),typeof u=="string")return e(u,s,n,i);const r=u;if(!Array.isArray(r)&&ae(r))return r;const h=new oe([]);return fe(r,h),h}}function fe(e,t){const u=Array.isArray(e)?e:[e];t?t.children=u:t=null;for(let s=0;s<u.length;s++){const n=u[s];n.parent&&n.parent.children!==u&&he(n),t?(n.prev=u[s-1]||null,n.next=u[s+1]||null):n.prev=n.next=null,n.parent=t}return t}function dr(e,t){if(e==null)return[];if(typeof e=="string")return this._parse(e,this.options,!1,null).children.slice(0);if("length"in e){if(e.length===1)return this._makeDomArray(e[0],t);const u=[];for(let s=0;s<e.length;s++){const n=e[s];if(typeof n=="object"){if(n==null)continue;if(!("length"in n)){u.push(t?Re(n,!0):n);continue}}u.push(...this._makeDomArray(n,t))}return u}return[t?Re(e,!0):e]}function _s(e){return function(...t){const u=this.length-1;return x(this,(s,n)=>{if(!M(s))return;const i=typeof t[0]=="function"?t[0].call(s,n,this._render(s.children)):t,r=this._makeDomArray(i,n<u);e(r,s.children,s)})}}function ie(e,t,u,s,n){var i,r;const h=[t,u,...s],d=t===0?null:e[t-1],f=t+u>=e.length?null:e[t+u];for(let g=0;g<s.length;++g){const I=s[g],C=I.parent;if(C){const S=C.children.indexOf(I);S!==-1&&(C.children.splice(S,1),n===C&&t>S&&h[0]--)}I.parent=n,I.prev&&(I.prev.next=(i=I.next)!==null&&i!==void 0?i:null),I.next&&(I.next.prev=(r=I.prev)!==null&&r!==void 0?r:null),I.prev=g===0?d:s[g-1],I.next=g===s.length-1?f:s[g+1]}return d&&(d.next=s[0]),f&&(f.prev=s[s.length-1]),e.splice(...h)}function lr(e){return(ee(e)?e:this._make(e)).append(this),this}function fr(e){return(ee(e)?e:this._make(e)).prepend(this),this}const Er=_s((e,t,u)=>{ie(t,t.length,0,e,u)}),Tr=_s((e,t,u)=>{ie(t,0,0,e,u)});function Ns(e){return function(t){const u=this.length-1,s=this.parents().last();for(let n=0;n<this.length;n++){const i=this[n],r=typeof t=="function"?t.call(i,n,i):typeof t=="string"&&!Yt(t)?s.find(t).clone():t,[h]=this._makeDomArray(r,n<u);if(!h||!M(h))continue;let d=h,f=0;for(;f<d.children.length;){const g=d.children[f];D(g)?(d=g,f=0):f++}e(i,d,[h])}return this}}const gr=Ns((e,t,u)=>{const{parent:s}=e;if(!s)return;const n=s.children,i=n.indexOf(e);fe([e],t),ie(n,i,0,u,s)}),br=Ns((e,t,u)=>{M(e)&&(fe(e.children,t),fe(u,e))});function mr(e){return this.parent(e).not("body").each((t,u)=>{this._make(u).replaceWith(u.children)}),this}function Ir(e){const t=this[0];if(t){const u=this._make(typeof e=="function"?e.call(t,0,t):e).insertBefore(t);let s;for(let i=0;i<u.length;i++)u[i].type===Bt&&(s=u[i]);let n=0;for(;s&&n<s.children.length;){const i=s.children[n];i.type===Bt?(s=i,n=0):n++}s&&this._make(s).append(this)}return this}function Cr(...e){const t=this.length-1;return x(this,(u,s)=>{if(!M(u)||!u.parent)return;const n=u.parent.children,i=n.indexOf(u);if(i===-1)return;const r=typeof e[0]=="function"?e[0].call(u,s,this._render(u.children)):e,h=this._makeDomArray(r,s<t);ie(n,i+1,0,h,u.parent)})}function pr(e){typeof e=="string"&&(e=this._make(e)),this.remove();const t=[];for(const u of this._makeDomArray(e)){const s=this.clone().toArray(),{parent:n}=u;if(!n)continue;const i=n.children,r=i.indexOf(u);r!==-1&&(ie(i,r+1,0,s,n),t.push(...s))}return this._make(t)}function _r(...e){const t=this.length-1;return x(this,(u,s)=>{if(!M(u)||!u.parent)return;const n=u.parent.children,i=n.indexOf(u);if(i===-1)return;const r=typeof e[0]=="function"?e[0].call(u,s,this._render(u.children)):e,h=this._makeDomArray(r,s<t);ie(n,i,0,h,u.parent)})}function Nr(e){const t=this._make(e);this.remove();const u=[];return x(t,s=>{const n=this.clone().toArray(),{parent:i}=s;if(!i)return;const r=i.children,h=r.indexOf(s);h!==-1&&(ie(r,h,0,n,i),u.push(...n))}),this._make(u)}function Sr(e){const t=e?this.filter(e):this;return x(t,u=>{he(u),u.prev=u.next=u.parent=null}),this}function Dr(e){return x(this,(t,u)=>{const{parent:s}=t;if(!s)return;const n=s.children,i=typeof e=="function"?e.call(t,u,t):e,r=this._makeDomArray(i);fe(r,null);const h=n.indexOf(t);ie(n,h,1,r,s),r.includes(t)||(t.parent=t.prev=t.next=null)})}function Br(){return x(this,e=>{if(M(e)){for(const t of e.children)t.next=t.prev=t.parent=null;e.children.length=0}})}function Or(e){if(e===void 0){const t=this[0];return!t||!M(t)?null:this._render(t.children)}return x(this,t=>{if(!M(t))return;for(const s of t.children)s.next=s.prev=s.parent=null;const u=ee(e)?e.toArray():this._parse(`${e}`,this.options,!1,t).children;fe(u,t)})}function Rr(){return this._render(this)}function Lr(e){return e===void 0?ye(this):typeof e=="function"?x(this,(t,u)=>this._make(t).text(e.call(t,u,ye([t])))):x(this,t=>{if(!M(t))return;for(const s of t.children)s.next=s.prev=s.parent=null;const u=new Oe(`${e}`);fe(u,t)})}function yr(){const e=Array.prototype.map.call(this.get(),u=>Re(u,!0)),t=new oe(e);for(const u of e)u.parent=t;return this._make(e)}const xr=Object.freeze(Object.defineProperty({__proto__:null,_makeDomArray:dr,after:Cr,append:Er,appendTo:lr,before:_r,clone:yr,empty:Br,html:Or,insertAfter:pr,insertBefore:Nr,prepend:Tr,prependTo:fr,remove:Sr,replaceWith:Dr,text:Lr,toString:Rr,unwrap:mr,wrap:gr,wrapAll:Ir,wrapInner:br},Symbol.toStringTag,{value:"Module"}));function Fr(e,t){if(e!=null&&t!=null||typeof e=="object"&&!Array.isArray(e))return x(this,(u,s)=>{D(u)&&Ss(u,e,t,s)});if(this.length!==0)return Ds(this[0],e)}function Ss(e,t,u,s){if(typeof t=="string"){const n=Ds(e),i=typeof u=="function"?u.call(e,s,n[t]):u;i===""?delete n[t]:i!=null&&(n[t]=i),e.attribs.style=Mr(n)}else if(typeof t=="object"){const n=Object.keys(t);for(let i=0;i<n.length;i++){const r=n[i];Ss(e,r,t[r],i)}}}function Ds(e,t){if(!e||!D(e))return;const u=wr(e.attribs.style);if(typeof t=="string")return u[t];if(Array.isArray(t)){const s={};for(const n of t)u[n]!=null&&(s[n]=u[n]);return s}return u}function Mr(e){return Object.keys(e).reduce((t,u)=>`${t}${t?" ":""}${u}: ${e[u]};`,"")}function wr(e){if(e=(e||"").trim(),!e)return{};const t={};let u;for(const s of e.split(";")){const n=s.indexOf(":");if(n<1||n===s.length-1){const i=s.trimEnd();i.length>0&&u!==void 0&&(t[u]+=`;${i}`)}else u=s.slice(0,n).trim(),t[u]=s.slice(n+1).trim()}return t}const Pr=Object.freeze(Object.defineProperty({__proto__:null,css:Fr},Symbol.toStringTag,{value:"Module"})),Bs="input,select,textarea,keygen",kr=/%20/g,Os=/\r?\n/g;function Hr(){return this.serializeArray().map(u=>`${encodeURIComponent(u.name)}=${encodeURIComponent(u.value)}`).join("&").replace(kr,"+")}function Ur(){return this.map((e,t)=>{const u=this._make(t);return D(t)&&t.name==="form"?u.find(Bs).toArray():u.filter(Bs).toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((e,t)=>{var u;const s=this._make(t),n=s.attr("name"),i=(u=s.val())!==null&&u!==void 0?u:"";return Array.isArray(i)?i.map(r=>({name:n,value:r.replace(Os,`\r
|
|
7
|
+
`)})):{name:n,value:i.replace(Os,`\r
|
|
8
|
+
`)}}).toArray()}const Qr=Object.freeze(Object.defineProperty({__proto__:null,serialize:Hr,serializeArray:Ur},Symbol.toStringTag,{value:"Module"}));function Yr(e){var t;return typeof e=="string"?{selector:e,value:"textContent"}:{selector:e.selector,value:(t=e.value)!==null&&t!==void 0?t:"textContent"}}function vr(e){const t={};for(const u in e){const s=e[u],n=Array.isArray(s),{selector:i,value:r}=Yr(n?s[0]:s),h=typeof r=="function"?r:typeof r=="string"?d=>this._make(d).prop(r):d=>this._make(d).extract(r);if(n)t[u]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((d,f)=>h(f,u,t)).get();else{const d=this._findBySelector(i,1);t[u]=d.length>0?h(d[0],u,t):void 0}}return t}const Kr=Object.freeze(Object.defineProperty({__proto__:null,extract:vr},Symbol.toStringTag,{value:"Module"}));class He{constructor(t,u,s){if(this.length=0,this.options=s,this._root=u,t){for(let n=0;n<t.length;n++)this[n]=t[n];this.length=t.length}}}He.prototype.cheerio="[cheerio object]",He.prototype.splice=Array.prototype.splice,He.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],Object.assign(He.prototype,Xn,or,xr,Pr,Qr,Kr);function Gr(e,t){return function u(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");const r=Qt(n),h=e(s,r,i,null);class d extends He{_make(I,C){const p=f(I,C);return p.prevObject=this,p}_parse(I,C,p,S){return e(I,C,p,S)}_render(I){return t(I,this.options)}}function f(g,I,C=h,p){if(g&&ee(g))return g;const S=Qt(p,r),k=typeof C=="string"?[e(C,S,!1,null)]:"length"in C?C:[C],V=ee(k)?k:new d(k,null,S);if(V._root=V,!g)return new d(void 0,V,S);const De=typeof g=="string"&&Yt(g)?e(g,S,!1,null).children:Wr(g)?[g]:Array.isArray(g)?g:void 0,Be=new d(De,V,S);if(De)return Be;if(typeof g!="string")throw new TypeError("Unexpected type of selector");let Ve=g;const qe=I?typeof I=="string"?Yt(I)?new d([e(I,S,!1,null)],V,S):(Ve=`${I} ${Ve}`,V):ee(I)?I:new d(Array.isArray(I)?I:[I],V,S):V;return qe?qe.find(Ve):Be}return Object.assign(f,In,{load:u,_root:h,_options:r,fn:d.prototype,prototype:d.prototype}),f}}function Wr(e){return!!e.name||e.type===Dt||e.type===Cu||e.type===pu}const Jr=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]),y="�";var A;(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"})(A||(A={}));const G={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Rs(e){return e>=55296&&e<=57343}function Zr(e){return e>=56320&&e<=57343}function Xr(e,t){return(e-55296)*1024+9216+t}function Ls(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function ys(e){return e>=64976&&e<=65007||Jr.has(e)}var E;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(E||(E={}));const Vr=65536;class qr{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=Vr,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,u){const{line:s,col:n,offset:i}=this,r=n+u,h=i+u;return{code:t,startLine:s,endLine:s,startCol:r,endCol:r,startOffset:h,endOffset:h}}_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 u=this.html.charCodeAt(this.pos+1);if(Zr(u))return this.pos++,this._addGap(),Xr(t,u)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,A.EOF;return this._err(E.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,u){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=u}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,u){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(u)return this.html.startsWith(t,this.pos);for(let s=0;s<t.length;s++)if((this.html.charCodeAt(this.pos+s)|32)!==t.charCodeAt(s))return!1;return!0}peek(t){const u=this.pos+t;if(u>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,A.EOF;const s=this.html.charCodeAt(u);return s===A.CARRIAGE_RETURN?A.LINE_FEED:s}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,A.EOF;let t=this.html.charCodeAt(this.pos);return t===A.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,A.LINE_FEED):t===A.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Rs(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===A.LINE_FEED||t===A.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Ls(t)?this._err(E.controlCharacterInInputStream):ys(t)&&this._err(E.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var R;(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"})(R||(R={}));function xs(e,t){for(let u=e.attrs.length-1;u>=0;u--)if(e.attrs[u].name===t)return e.attrs[u].value;return null}const jr=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୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢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;怳Ādpuct;戏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ǣጓ\0y;䐎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Ā;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀ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Ā;elƀ;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\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»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ↄⅪ←ٖ↛ǰ↉\0proø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;䅓Ācrir;榿;쀀𝔬ͯ\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\0m;櫳;櫽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))),zr=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 $r(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=zr.get(e))!==null&&t!==void 0?t:e}var U;(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"})(U||(U={}));const eA=32;var re;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(re||(re={}));function hu(e){return e>=U.ZERO&&e<=U.NINE}function tA(e){return e>=U.UPPER_A&&e<=U.UPPER_F||e>=U.LOWER_A&&e<=U.LOWER_F}function uA(e){return e>=U.UPPER_A&&e<=U.UPPER_Z||e>=U.LOWER_A&&e<=U.LOWER_Z||hu(e)}function sA(e){return e===U.EQUALS||uA(e)}var Q;(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"})(Q||(Q={}));var ue;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ue||(ue={}));class aA{constructor(t,u,s){this.decodeTree=t,this.emitCodePoint=u,this.errors=s,this.state=Q.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ue.Strict}startEntity(t){this.decodeMode=t,this.state=Q.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,u){switch(this.state){case Q.EntityStart:return t.charCodeAt(u)===U.NUM?(this.state=Q.NumericStart,this.consumed+=1,this.stateNumericStart(t,u+1)):(this.state=Q.NamedEntity,this.stateNamedEntity(t,u));case Q.NumericStart:return this.stateNumericStart(t,u);case Q.NumericDecimal:return this.stateNumericDecimal(t,u);case Q.NumericHex:return this.stateNumericHex(t,u);case Q.NamedEntity:return this.stateNamedEntity(t,u)}}stateNumericStart(t,u){return u>=t.length?-1:(t.charCodeAt(u)|eA)===U.LOWER_X?(this.state=Q.NumericHex,this.consumed+=1,this.stateNumericHex(t,u+1)):(this.state=Q.NumericDecimal,this.stateNumericDecimal(t,u))}addToNumericResult(t,u,s,n){if(u!==s){const i=s-u;this.result=this.result*Math.pow(n,i)+Number.parseInt(t.substr(u,i),n),this.consumed+=i}}stateNumericHex(t,u){const s=u;for(;u<t.length;){const n=t.charCodeAt(u);if(hu(n)||tA(n))u+=1;else return this.addToNumericResult(t,s,u,16),this.emitNumericEntity(n,3)}return this.addToNumericResult(t,s,u,16),-1}stateNumericDecimal(t,u){const s=u;for(;u<t.length;){const n=t.charCodeAt(u);if(hu(n))u+=1;else return this.addToNumericResult(t,s,u,10),this.emitNumericEntity(n,2)}return this.addToNumericResult(t,s,u,10),-1}emitNumericEntity(t,u){var s;if(this.consumed<=u)return(s=this.errors)===null||s===void 0||s.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===U.SEMI)this.consumed+=1;else if(this.decodeMode===ue.Strict)return 0;return this.emitCodePoint($r(this.result),this.consumed),this.errors&&(t!==U.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,u){const{decodeTree:s}=this;let n=s[this.treeIndex],i=(n&re.VALUE_LENGTH)>>14;for(;u<t.length;u++,this.excess++){const r=t.charCodeAt(u);if(this.treeIndex=nA(s,n,this.treeIndex+Math.max(1,i),r),this.treeIndex<0)return this.result===0||this.decodeMode===ue.Attribute&&(i===0||sA(r))?0:this.emitNotTerminatedNamedEntity();if(n=s[this.treeIndex],i=(n&re.VALUE_LENGTH)>>14,i!==0){if(r===U.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==ue.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:u,decodeTree:s}=this,n=(s[u]&re.VALUE_LENGTH)>>14;return this.emitNamedEntityData(u,n,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,u,s){const{decodeTree:n}=this;return this.emitCodePoint(u===1?n[t]&~re.VALUE_LENGTH:n[t+1],s),u===3&&this.emitCodePoint(n[t+2],s),s}end(){var t;switch(this.state){case Q.NamedEntity:return this.result!==0&&(this.decodeMode!==ue.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Q.NumericDecimal:return this.emitNumericEntity(0,2);case Q.NumericHex:return this.emitNumericEntity(0,3);case Q.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Q.EntityStart:return 0}}}function nA(e,t,u,s){const n=(t&re.BRANCH_LENGTH)>>7,i=t&re.JUMP_TABLE;if(n===0)return i!==0&&s===i?u:-1;if(i){const d=s-i;return d<0||d>=n?-1:e[u+d]-1}let r=u,h=r+n-1;for(;r<=h;){const d=r+h>>>1,f=e[d];if(f<s)r=d+1;else if(f>s)h=d-1;else return e[d+n]}return-1}var T;(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/"})(T||(T={}));var Ee;(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"})(Ee||(Ee={}));var J;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(J||(J={}));var l;(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"})(l||(l={}));var a;(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"})(a||(a={}));const iA=new Map([[l.A,a.A],[l.ADDRESS,a.ADDRESS],[l.ANNOTATION_XML,a.ANNOTATION_XML],[l.APPLET,a.APPLET],[l.AREA,a.AREA],[l.ARTICLE,a.ARTICLE],[l.ASIDE,a.ASIDE],[l.B,a.B],[l.BASE,a.BASE],[l.BASEFONT,a.BASEFONT],[l.BGSOUND,a.BGSOUND],[l.BIG,a.BIG],[l.BLOCKQUOTE,a.BLOCKQUOTE],[l.BODY,a.BODY],[l.BR,a.BR],[l.BUTTON,a.BUTTON],[l.CAPTION,a.CAPTION],[l.CENTER,a.CENTER],[l.CODE,a.CODE],[l.COL,a.COL],[l.COLGROUP,a.COLGROUP],[l.DD,a.DD],[l.DESC,a.DESC],[l.DETAILS,a.DETAILS],[l.DIALOG,a.DIALOG],[l.DIR,a.DIR],[l.DIV,a.DIV],[l.DL,a.DL],[l.DT,a.DT],[l.EM,a.EM],[l.EMBED,a.EMBED],[l.FIELDSET,a.FIELDSET],[l.FIGCAPTION,a.FIGCAPTION],[l.FIGURE,a.FIGURE],[l.FONT,a.FONT],[l.FOOTER,a.FOOTER],[l.FOREIGN_OBJECT,a.FOREIGN_OBJECT],[l.FORM,a.FORM],[l.FRAME,a.FRAME],[l.FRAMESET,a.FRAMESET],[l.H1,a.H1],[l.H2,a.H2],[l.H3,a.H3],[l.H4,a.H4],[l.H5,a.H5],[l.H6,a.H6],[l.HEAD,a.HEAD],[l.HEADER,a.HEADER],[l.HGROUP,a.HGROUP],[l.HR,a.HR],[l.HTML,a.HTML],[l.I,a.I],[l.IMG,a.IMG],[l.IMAGE,a.IMAGE],[l.INPUT,a.INPUT],[l.IFRAME,a.IFRAME],[l.KEYGEN,a.KEYGEN],[l.LABEL,a.LABEL],[l.LI,a.LI],[l.LINK,a.LINK],[l.LISTING,a.LISTING],[l.MAIN,a.MAIN],[l.MALIGNMARK,a.MALIGNMARK],[l.MARQUEE,a.MARQUEE],[l.MATH,a.MATH],[l.MENU,a.MENU],[l.META,a.META],[l.MGLYPH,a.MGLYPH],[l.MI,a.MI],[l.MO,a.MO],[l.MN,a.MN],[l.MS,a.MS],[l.MTEXT,a.MTEXT],[l.NAV,a.NAV],[l.NOBR,a.NOBR],[l.NOFRAMES,a.NOFRAMES],[l.NOEMBED,a.NOEMBED],[l.NOSCRIPT,a.NOSCRIPT],[l.OBJECT,a.OBJECT],[l.OL,a.OL],[l.OPTGROUP,a.OPTGROUP],[l.OPTION,a.OPTION],[l.P,a.P],[l.PARAM,a.PARAM],[l.PLAINTEXT,a.PLAINTEXT],[l.PRE,a.PRE],[l.RB,a.RB],[l.RP,a.RP],[l.RT,a.RT],[l.RTC,a.RTC],[l.RUBY,a.RUBY],[l.S,a.S],[l.SCRIPT,a.SCRIPT],[l.SEARCH,a.SEARCH],[l.SECTION,a.SECTION],[l.SELECT,a.SELECT],[l.SOURCE,a.SOURCE],[l.SMALL,a.SMALL],[l.SPAN,a.SPAN],[l.STRIKE,a.STRIKE],[l.STRONG,a.STRONG],[l.STYLE,a.STYLE],[l.SUB,a.SUB],[l.SUMMARY,a.SUMMARY],[l.SUP,a.SUP],[l.TABLE,a.TABLE],[l.TBODY,a.TBODY],[l.TEMPLATE,a.TEMPLATE],[l.TEXTAREA,a.TEXTAREA],[l.TFOOT,a.TFOOT],[l.TD,a.TD],[l.TH,a.TH],[l.THEAD,a.THEAD],[l.TITLE,a.TITLE],[l.TR,a.TR],[l.TRACK,a.TRACK],[l.TT,a.TT],[l.U,a.U],[l.UL,a.UL],[l.SVG,a.SVG],[l.VAR,a.VAR],[l.WBR,a.WBR],[l.XMP,a.XMP]]);function Et(e){var t;return(t=iA.get(e))!==null&&t!==void 0?t:a.UNKNOWN}const m=a,rA={[T.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]),[T.MATHML]:new Set([m.MI,m.MO,m.MN,m.MS,m.MTEXT,m.ANNOTATION_XML]),[T.SVG]:new Set([m.TITLE,m.FOREIGN_OBJECT,m.DESC]),[T.XLINK]:new Set,[T.XML]:new Set,[T.XMLNS]:new Set},du=new Set([m.H1,m.H2,m.H3,m.H4,m.H5,m.H6]),AA=new Set([l.STYLE,l.SCRIPT,l.XMP,l.IFRAME,l.NOEMBED,l.NOFRAMES,l.PLAINTEXT]);function cA(e,t){return AA.has(e)||t&&e===l.NOSCRIPT}var c;(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"})(c||(c={}));const W={DATA:c.DATA,RCDATA:c.RCDATA,RAWTEXT:c.RAWTEXT,SCRIPT_DATA:c.SCRIPT_DATA,PLAINTEXT:c.PLAINTEXT,CDATA_SECTION:c.CDATA_SECTION};function oA(e){return e>=A.DIGIT_0&&e<=A.DIGIT_9}function Ue(e){return e>=A.LATIN_CAPITAL_A&&e<=A.LATIN_CAPITAL_Z}function hA(e){return e>=A.LATIN_SMALL_A&&e<=A.LATIN_SMALL_Z}function Ae(e){return hA(e)||Ue(e)}function Fs(e){return Ae(e)||oA(e)}function Tt(e){return e+32}function Ms(e){return e===A.SPACE||e===A.LINE_FEED||e===A.TABULATION||e===A.FORM_FEED}function ws(e){return Ms(e)||e===A.SOLIDUS||e===A.GREATER_THAN_SIGN}function dA(e){return e===A.NULL?E.nullCharacterReference:e>1114111?E.characterReferenceOutsideUnicodeRange:Rs(e)?E.surrogateCharacterReference:ys(e)?E.noncharacterCharacterReference:Ls(e)||e===A.CARRIAGE_RETURN?E.controlCharacterReference:null}class lA{constructor(t,u){this.options=t,this.handler=u,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=c.DATA,this.returnState=c.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new qr(u),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new aA(jr,(s,n)=>{this.preprocessor.pos=this.entityStartPos+n-1,this._flushCodePointConsumedAsCharacterReference(s)},u.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(E.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:s=>{this._err(E.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+s)},validateNumericCharacterReference:s=>{const n=dA(s);n&&this._err(n,1)}}:void 0)}_err(t,u=0){var s,n;(n=(s=this.handler).onParseError)===null||n===void 0||n.call(s,this.preprocessor.getError(t,u))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;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,u,s){this.active=!0,this.preprocessor.write(t,u),this._runParsingLoop(),this.paused||s==null||s()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let u=0;u<t;u++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,u){return this.preprocessor.startsWith(t,u)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:R.START_TAG,tagName:"",tagID:a.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:R.END_TAG,tagName:"",tagID:a.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:R.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:R.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,u){this.currentCharacterToken={type:t,chars:u,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,u;const s=this.currentToken;if(xs(s,this.currentAttr.name)===null){if(s.attrs.push(this.currentAttr),s.location&&this.currentLocation){const n=(t=(u=s.location).attrs)!==null&&t!==void 0?t:u.attrs=Object.create(null);n[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(E.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Et(t.tagName),t.type===R.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(E.endTagWithAttributes),t.selfClosing&&this._err(E.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case R.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case R.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case R.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:R.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,u){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=u;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,u)}_emitCodePoint(t){const u=Ms(t)?R.WHITESPACE_CHARACTER:t===A.NULL?R.NULL_CHARACTER:R.CHARACTER;this._appendCharToCurrentCharacterToken(u,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(R.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=c.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ue.Attribute:ue.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===c.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===c.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===c.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case c.DATA:{this._stateData(t);break}case c.RCDATA:{this._stateRcdata(t);break}case c.RAWTEXT:{this._stateRawtext(t);break}case c.SCRIPT_DATA:{this._stateScriptData(t);break}case c.PLAINTEXT:{this._statePlaintext(t);break}case c.TAG_OPEN:{this._stateTagOpen(t);break}case c.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case c.TAG_NAME:{this._stateTagName(t);break}case c.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case c.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case c.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case c.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case c.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case c.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case c.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case c.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case c.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case c.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case c.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case c.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case c.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case c.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case c.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case c.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case c.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case c.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case c.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case c.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case c.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case c.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case c.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case c.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case c.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case c.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case c.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case c.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case c.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case c.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case c.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case c.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case c.BOGUS_COMMENT:{this._stateBogusComment(t);break}case c.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case c.COMMENT_START:{this._stateCommentStart(t);break}case c.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case c.COMMENT:{this._stateComment(t);break}case c.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case c.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case c.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case c.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case c.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case c.COMMENT_END:{this._stateCommentEnd(t);break}case c.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case c.DOCTYPE:{this._stateDoctype(t);break}case c.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case c.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case c.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case c.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case c.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case c.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case c.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case c.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case c.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case c.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case c.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case c.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case c.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case c.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case c.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case c.CDATA_SECTION:{this._stateCdataSection(t);break}case c.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case c.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case c.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case c.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case A.LESS_THAN_SIGN:{this.state=c.TAG_OPEN;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err(E.unexpectedNullCharacter),this._emitCodePoint(t);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case A.AMPERSAND:{this._startCharacterReference();break}case A.LESS_THAN_SIGN:{this.state=c.RCDATA_LESS_THAN_SIGN;break}case A.NULL:{this._err(E.unexpectedNullCharacter),this._emitChars(y);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case A.LESS_THAN_SIGN:{this.state=c.RAWTEXT_LESS_THAN_SIGN;break}case A.NULL:{this._err(E.unexpectedNullCharacter),this._emitChars(y);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case A.LESS_THAN_SIGN:{this.state=c.SCRIPT_DATA_LESS_THAN_SIGN;break}case A.NULL:{this._err(E.unexpectedNullCharacter),this._emitChars(y);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case A.NULL:{this._err(E.unexpectedNullCharacter),this._emitChars(y);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Ae(t))this._createStartTagToken(),this.state=c.TAG_NAME,this._stateTagName(t);else switch(t){case A.EXCLAMATION_MARK:{this.state=c.MARKUP_DECLARATION_OPEN;break}case A.SOLIDUS:{this.state=c.END_TAG_OPEN;break}case A.QUESTION_MARK:{this._err(E.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=c.BOGUS_COMMENT,this._stateBogusComment(t);break}case A.EOF:{this._err(E.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(E.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=c.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Ae(t))this._createEndTagToken(),this.state=c.TAG_NAME,this._stateTagName(t);else switch(t){case A.GREATER_THAN_SIGN:{this._err(E.missingEndTagName),this.state=c.DATA;break}case A.EOF:{this._err(E.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(E.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=c.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const u=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=c.BEFORE_ATTRIBUTE_NAME;break}case A.SOLIDUS:{this.state=c.SELF_CLOSING_START_TAG;break}case A.GREATER_THAN_SIGN:{this.state=c.DATA,this.emitCurrentTagToken();break}case A.NULL:{this._err(E.unexpectedNullCharacter),u.tagName+=y;break}case A.EOF:{this._err(E.eofInTag),this._emitEOFToken();break}default:u.tagName+=String.fromCodePoint(Ue(t)?Tt(t):t)}}_stateRcdataLessThanSign(t){t===A.SOLIDUS?this.state=c.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=c.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Ae(t)?(this.state=c.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=c.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const u=this.currentToken;switch(u.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=c.BEFORE_ATTRIBUTE_NAME,!1;case A.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=c.SELF_CLOSING_START_TAG,!1;case A.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=c.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=c.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===A.SOLIDUS?this.state=c.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=c.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Ae(t)?(this.state=c.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=c.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=c.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case A.SOLIDUS:{this.state=c.SCRIPT_DATA_END_TAG_OPEN;break}case A.EXCLAMATION_MARK:{this.state=c.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=c.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Ae(t)?(this.state=c.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=c.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=c.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===A.HYPHEN_MINUS?(this.state=c.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=c.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===A.HYPHEN_MINUS?(this.state=c.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=c.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case A.HYPHEN_MINUS:{this.state=c.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=c.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case A.NULL:{this._err(E.unexpectedNullCharacter),this._emitChars(y);break}case A.EOF:{this._err(E.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case A.HYPHEN_MINUS:{this.state=c.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=c.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case A.NULL:{this._err(E.unexpectedNullCharacter),this.state=c.SCRIPT_DATA_ESCAPED,this._emitChars(y);break}case A.EOF:{this._err(E.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=c.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case A.HYPHEN_MINUS:{this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=c.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case A.GREATER_THAN_SIGN:{this.state=c.SCRIPT_DATA,this._emitChars(">");break}case A.NULL:{this._err(E.unexpectedNullCharacter),this.state=c.SCRIPT_DATA_ESCAPED,this._emitChars(y);break}case A.EOF:{this._err(E.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=c.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===A.SOLIDUS?this.state=c.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Ae(t)?(this._emitChars("<"),this.state=c.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=c.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Ae(t)?(this.state=c.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=c.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=c.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(G.SCRIPT,!1)&&ws(this.preprocessor.peek(G.SCRIPT.length))){this._emitCodePoint(t);for(let u=0;u<G.SCRIPT.length;u++)this._emitCodePoint(this._consume());this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=c.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case A.HYPHEN_MINUS:{this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case A.NULL:{this._err(E.unexpectedNullCharacter),this._emitChars(y);break}case A.EOF:{this._err(E.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case A.HYPHEN_MINUS:{this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case A.NULL:{this._err(E.unexpectedNullCharacter),this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(y);break}case A.EOF:{this._err(E.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case A.HYPHEN_MINUS:{this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case A.GREATER_THAN_SIGN:{this.state=c.SCRIPT_DATA,this._emitChars(">");break}case A.NULL:{this._err(E.unexpectedNullCharacter),this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(y);break}case A.EOF:{this._err(E.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===A.SOLIDUS?(this.state=c.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(G.SCRIPT,!1)&&ws(this.preprocessor.peek(G.SCRIPT.length))){this._emitCodePoint(t);for(let u=0;u<G.SCRIPT.length;u++)this._emitCodePoint(this._consume());this.state=c.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.SOLIDUS:case A.GREATER_THAN_SIGN:case A.EOF:{this.state=c.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case A.EQUALS_SIGN:{this._err(E.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=c.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=c.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:case A.SOLIDUS:case A.GREATER_THAN_SIGN:case A.EOF:{this._leaveAttrName(),this.state=c.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case A.EQUALS_SIGN:{this._leaveAttrName(),this.state=c.BEFORE_ATTRIBUTE_VALUE;break}case A.QUOTATION_MARK:case A.APOSTROPHE:case A.LESS_THAN_SIGN:{this._err(E.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case A.NULL:{this._err(E.unexpectedNullCharacter),this.currentAttr.name+=y;break}default:this.currentAttr.name+=String.fromCodePoint(Ue(t)?Tt(t):t)}}_stateAfterAttributeName(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.SOLIDUS:{this.state=c.SELF_CLOSING_START_TAG;break}case A.EQUALS_SIGN:{this.state=c.BEFORE_ATTRIBUTE_VALUE;break}case A.GREATER_THAN_SIGN:{this.state=c.DATA,this.emitCurrentTagToken();break}case A.EOF:{this._err(E.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=c.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{this.state=c.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this.state=c.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(E.missingAttributeValue),this.state=c.DATA,this.emitCurrentTagToken();break}default:this.state=c.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case A.QUOTATION_MARK:{this.state=c.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err(E.unexpectedNullCharacter),this.currentAttr.value+=y;break}case A.EOF:{this._err(E.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case A.APOSTROPHE:{this.state=c.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err(E.unexpectedNullCharacter),this.currentAttr.value+=y;break}case A.EOF:{this._err(E.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this._leaveAttrValue(),this.state=c.BEFORE_ATTRIBUTE_NAME;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=c.DATA,this.emitCurrentTagToken();break}case A.NULL:{this._err(E.unexpectedNullCharacter),this.currentAttr.value+=y;break}case A.QUOTATION_MARK:case A.APOSTROPHE:case A.LESS_THAN_SIGN:case A.EQUALS_SIGN:case A.GRAVE_ACCENT:{this._err(E.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case A.EOF:{this._err(E.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this._leaveAttrValue(),this.state=c.BEFORE_ATTRIBUTE_NAME;break}case A.SOLIDUS:{this._leaveAttrValue(),this.state=c.SELF_CLOSING_START_TAG;break}case A.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=c.DATA,this.emitCurrentTagToken();break}case A.EOF:{this._err(E.eofInTag),this._emitEOFToken();break}default:this._err(E.missingWhitespaceBetweenAttributes),this.state=c.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case A.GREATER_THAN_SIGN:{const u=this.currentToken;u.selfClosing=!0,this.state=c.DATA,this.emitCurrentTagToken();break}case A.EOF:{this._err(E.eofInTag),this._emitEOFToken();break}default:this._err(E.unexpectedSolidusInTag),this.state=c.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const u=this.currentToken;switch(t){case A.GREATER_THAN_SIGN:{this.state=c.DATA,this.emitCurrentComment(u);break}case A.EOF:{this.emitCurrentComment(u),this._emitEOFToken();break}case A.NULL:{this._err(E.unexpectedNullCharacter),u.data+=y;break}default:u.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(G.DASH_DASH,!0)?(this._createCommentToken(G.DASH_DASH.length+1),this.state=c.COMMENT_START):this._consumeSequenceIfMatch(G.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(G.DOCTYPE.length+1),this.state=c.DOCTYPE):this._consumeSequenceIfMatch(G.CDATA_START,!0)?this.inForeignNode?this.state=c.CDATA_SECTION:(this._err(E.cdataInHtmlContent),this._createCommentToken(G.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=c.BOGUS_COMMENT):this._ensureHibernation()||(this._err(E.incorrectlyOpenedComment),this._createCommentToken(2),this.state=c.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case A.HYPHEN_MINUS:{this.state=c.COMMENT_START_DASH;break}case A.GREATER_THAN_SIGN:{this._err(E.abruptClosingOfEmptyComment),this.state=c.DATA;const u=this.currentToken;this.emitCurrentComment(u);break}default:this.state=c.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const u=this.currentToken;switch(t){case A.HYPHEN_MINUS:{this.state=c.COMMENT_END;break}case A.GREATER_THAN_SIGN:{this._err(E.abruptClosingOfEmptyComment),this.state=c.DATA,this.emitCurrentComment(u);break}case A.EOF:{this._err(E.eofInComment),this.emitCurrentComment(u),this._emitEOFToken();break}default:u.data+="-",this.state=c.COMMENT,this._stateComment(t)}}_stateComment(t){const u=this.currentToken;switch(t){case A.HYPHEN_MINUS:{this.state=c.COMMENT_END_DASH;break}case A.LESS_THAN_SIGN:{u.data+="<",this.state=c.COMMENT_LESS_THAN_SIGN;break}case A.NULL:{this._err(E.unexpectedNullCharacter),u.data+=y;break}case A.EOF:{this._err(E.eofInComment),this.emitCurrentComment(u),this._emitEOFToken();break}default:u.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const u=this.currentToken;switch(t){case A.EXCLAMATION_MARK:{u.data+="!",this.state=c.COMMENT_LESS_THAN_SIGN_BANG;break}case A.LESS_THAN_SIGN:{u.data+="<";break}default:this.state=c.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===A.HYPHEN_MINUS?this.state=c.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=c.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===A.HYPHEN_MINUS?this.state=c.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=c.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==A.GREATER_THAN_SIGN&&t!==A.EOF&&this._err(E.nestedComment),this.state=c.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const u=this.currentToken;switch(t){case A.HYPHEN_MINUS:{this.state=c.COMMENT_END;break}case A.EOF:{this._err(E.eofInComment),this.emitCurrentComment(u),this._emitEOFToken();break}default:u.data+="-",this.state=c.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const u=this.currentToken;switch(t){case A.GREATER_THAN_SIGN:{this.state=c.DATA,this.emitCurrentComment(u);break}case A.EXCLAMATION_MARK:{this.state=c.COMMENT_END_BANG;break}case A.HYPHEN_MINUS:{u.data+="-";break}case A.EOF:{this._err(E.eofInComment),this.emitCurrentComment(u),this._emitEOFToken();break}default:u.data+="--",this.state=c.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const u=this.currentToken;switch(t){case A.HYPHEN_MINUS:{u.data+="--!",this.state=c.COMMENT_END_DASH;break}case A.GREATER_THAN_SIGN:{this._err(E.incorrectlyClosedComment),this.state=c.DATA,this.emitCurrentComment(u);break}case A.EOF:{this._err(E.eofInComment),this.emitCurrentComment(u),this._emitEOFToken();break}default:u.data+="--!",this.state=c.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=c.BEFORE_DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this.state=c.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case A.EOF:{this._err(E.eofInDoctype),this._createDoctypeToken(null);const u=this.currentToken;u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(E.missingWhitespaceBeforeDoctypeName),this.state=c.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Ue(t))this._createDoctypeToken(String.fromCharCode(Tt(t))),this.state=c.DOCTYPE_NAME;else switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.NULL:{this._err(E.unexpectedNullCharacter),this._createDoctypeToken(y),this.state=c.DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this._err(E.missingDoctypeName),this._createDoctypeToken(null);const u=this.currentToken;u.forceQuirks=!0,this.emitCurrentDoctype(u),this.state=c.DATA;break}case A.EOF:{this._err(E.eofInDoctype),this._createDoctypeToken(null);const u=this.currentToken;u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=c.DOCTYPE_NAME}}_stateDoctypeName(t){const u=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=c.AFTER_DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this.state=c.DATA,this.emitCurrentDoctype(u);break}case A.NULL:{this._err(E.unexpectedNullCharacter),u.name+=y;break}case A.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:u.name+=String.fromCodePoint(Ue(t)?Tt(t):t)}}_stateAfterDoctypeName(t){const u=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.state=c.DATA,this.emitCurrentDoctype(u);break}case A.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(G.PUBLIC,!1)?this.state=c.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(G.SYSTEM,!1)?this.state=c.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(E.invalidCharacterSequenceAfterDoctypeName),u.forceQuirks=!0,this.state=c.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const u=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=c.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.QUOTATION_MARK:{this._err(E.missingWhitespaceAfterDoctypePublicKeyword),u.publicId="",this.state=c.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err(E.missingWhitespaceAfterDoctypePublicKeyword),u.publicId="",this.state=c.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(E.missingDoctypePublicIdentifier),u.forceQuirks=!0,this.state=c.DATA,this.emitCurrentDoctype(u);break}case A.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(E.missingQuoteBeforeDoctypePublicIdentifier),u.forceQuirks=!0,this.state=c.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const u=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{u.publicId="",this.state=c.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{u.publicId="",this.state=c.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(E.missingDoctypePublicIdentifier),u.forceQuirks=!0,this.state=c.DATA,this.emitCurrentDoctype(u);break}case A.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(E.missingQuoteBeforeDoctypePublicIdentifier),u.forceQuirks=!0,this.state=c.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const u=this.currentToken;switch(t){case A.QUOTATION_MARK:{this.state=c.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.NULL:{this._err(E.unexpectedNullCharacter),u.publicId+=y;break}case A.GREATER_THAN_SIGN:{this._err(E.abruptDoctypePublicIdentifier),u.forceQuirks=!0,this.emitCurrentDoctype(u),this.state=c.DATA;break}case A.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:u.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const u=this.currentToken;switch(t){case A.APOSTROPHE:{this.state=c.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.NULL:{this._err(E.unexpectedNullCharacter),u.publicId+=y;break}case A.GREATER_THAN_SIGN:{this._err(E.abruptDoctypePublicIdentifier),u.forceQuirks=!0,this.emitCurrentDoctype(u),this.state=c.DATA;break}case A.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:u.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const u=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=c.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case A.GREATER_THAN_SIGN:{this.state=c.DATA,this.emitCurrentDoctype(u);break}case A.QUOTATION_MARK:{this._err(E.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),u.systemId="",this.state=c.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err(E.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),u.systemId="",this.state=c.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(E.missingQuoteBeforeDoctypeSystemIdentifier),u.forceQuirks=!0,this.state=c.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const u=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(u),this.state=c.DATA;break}case A.QUOTATION_MARK:{u.systemId="",this.state=c.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{u.systemId="",this.state=c.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(E.missingQuoteBeforeDoctypeSystemIdentifier),u.forceQuirks=!0,this.state=c.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const u=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=c.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.QUOTATION_MARK:{this._err(E.missingWhitespaceAfterDoctypeSystemKeyword),u.systemId="",this.state=c.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err(E.missingWhitespaceAfterDoctypeSystemKeyword),u.systemId="",this.state=c.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(E.missingDoctypeSystemIdentifier),u.forceQuirks=!0,this.state=c.DATA,this.emitCurrentDoctype(u);break}case A.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(E.missingQuoteBeforeDoctypeSystemIdentifier),u.forceQuirks=!0,this.state=c.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const u=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{u.systemId="",this.state=c.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{u.systemId="",this.state=c.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(E.missingDoctypeSystemIdentifier),u.forceQuirks=!0,this.state=c.DATA,this.emitCurrentDoctype(u);break}case A.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(E.missingQuoteBeforeDoctypeSystemIdentifier),u.forceQuirks=!0,this.state=c.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const u=this.currentToken;switch(t){case A.QUOTATION_MARK:{this.state=c.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.NULL:{this._err(E.unexpectedNullCharacter),u.systemId+=y;break}case A.GREATER_THAN_SIGN:{this._err(E.abruptDoctypeSystemIdentifier),u.forceQuirks=!0,this.emitCurrentDoctype(u),this.state=c.DATA;break}case A.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:u.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const u=this.currentToken;switch(t){case A.APOSTROPHE:{this.state=c.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.NULL:{this._err(E.unexpectedNullCharacter),u.systemId+=y;break}case A.GREATER_THAN_SIGN:{this._err(E.abruptDoctypeSystemIdentifier),u.forceQuirks=!0,this.emitCurrentDoctype(u),this.state=c.DATA;break}case A.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:u.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const u=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(u),this.state=c.DATA;break}case A.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(E.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=c.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const u=this.currentToken;switch(t){case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(u),this.state=c.DATA;break}case A.NULL:{this._err(E.unexpectedNullCharacter);break}case A.EOF:{this.emitCurrentDoctype(u),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case A.RIGHT_SQUARE_BRACKET:{this.state=c.CDATA_SECTION_BRACKET;break}case A.EOF:{this._err(E.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===A.RIGHT_SQUARE_BRACKET?this.state=c.CDATA_SECTION_END:(this._emitChars("]"),this.state=c.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case A.GREATER_THAN_SIGN:{this.state=c.DATA;break}case A.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=c.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(A.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Fs(this.preprocessor.peek(1))?c.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Fs(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===A.SEMICOLON&&this._err(E.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const Ps=new Set([a.DD,a.DT,a.LI,a.OPTGROUP,a.OPTION,a.P,a.RB,a.RP,a.RT,a.RTC]),ks=new Set([...Ps,a.CAPTION,a.COLGROUP,a.TBODY,a.TD,a.TFOOT,a.TH,a.THEAD,a.TR]),gt=new Set([a.APPLET,a.CAPTION,a.HTML,a.MARQUEE,a.OBJECT,a.TABLE,a.TD,a.TEMPLATE,a.TH]),fA=new Set([...gt,a.OL,a.UL]),EA=new Set([...gt,a.BUTTON]),Hs=new Set([a.ANNOTATION_XML,a.MI,a.MN,a.MO,a.MS,a.MTEXT]),Us=new Set([a.DESC,a.FOREIGN_OBJECT,a.TITLE]),TA=new Set([a.TR,a.TEMPLATE,a.HTML]),gA=new Set([a.TBODY,a.TFOOT,a.THEAD,a.TEMPLATE,a.HTML]),bA=new Set([a.TABLE,a.TEMPLATE,a.HTML]),mA=new Set([a.TD,a.TH]);class IA{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,u,s){this.treeAdapter=u,this.handler=s,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=a.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===a.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===T.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,u){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=u,this.currentTagId=u,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,u,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,u){const s=this._indexOf(t);this.items[s]=u,s===this.stackTop&&(this.current=u)}insertAfter(t,u,s){const n=this._indexOf(t)+1;this.items.splice(n,0,u),this.tagIDs.splice(n,0,s),this.stackTop++,n===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,n===this.stackTop)}popUntilTagNamePopped(t){let u=this.stackTop+1;do u=this.tagIDs.lastIndexOf(t,u-1);while(u>0&&this.treeAdapter.getNamespaceURI(this.items[u])!==T.HTML);this.shortenToLength(Math.max(u,0))}shortenToLength(t){for(;this.stackTop>=t;){const u=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(u,this.stackTop<t)}}popUntilElementPopped(t){const u=this._indexOf(t);this.shortenToLength(Math.max(u,0))}popUntilPopped(t,u){const s=this._indexOfTagNames(t,u);this.shortenToLength(Math.max(s,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(du,T.HTML)}popUntilTableCellPopped(){this.popUntilPopped(mA,T.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,u){for(let s=this.stackTop;s>=0;s--)if(t.has(this.tagIDs[s])&&this.treeAdapter.getNamespaceURI(this.items[s])===u)return s;return-1}clearBackTo(t,u){const s=this._indexOfTagNames(t,u);this.shortenToLength(s+1)}clearBackToTableContext(){this.clearBackTo(bA,T.HTML)}clearBackToTableBodyContext(){this.clearBackTo(gA,T.HTML)}clearBackToTableRowContext(){this.clearBackTo(TA,T.HTML)}remove(t){const u=this._indexOf(t);u>=0&&(u===this.stackTop?this.pop():(this.items.splice(u,1),this.tagIDs.splice(u,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===a.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const u=this._indexOf(t)-1;return u>=0?this.items[u]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===a.HTML}hasInDynamicScope(t,u){for(let s=this.stackTop;s>=0;s--){const n=this.tagIDs[s];switch(this.treeAdapter.getNamespaceURI(this.items[s])){case T.HTML:{if(n===t)return!0;if(u.has(n))return!1;break}case T.SVG:{if(Us.has(n))return!1;break}case T.MATHML:{if(Hs.has(n))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,gt)}hasInListItemScope(t){return this.hasInDynamicScope(t,fA)}hasInButtonScope(t){return this.hasInDynamicScope(t,EA)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const u=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case T.HTML:{if(du.has(u))return!0;if(gt.has(u))return!1;break}case T.SVG:{if(Us.has(u))return!1;break}case T.MATHML:{if(Hs.has(u))return!1;break}}}return!0}hasInTableScope(t){for(let u=this.stackTop;u>=0;u--)if(this.treeAdapter.getNamespaceURI(this.items[u])===T.HTML)switch(this.tagIDs[u]){case t:return!0;case a.TABLE:case a.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===T.HTML)switch(this.tagIDs[t]){case a.TBODY:case a.THEAD:case a.TFOOT:return!0;case a.TABLE:case a.HTML:return!1}return!0}hasInSelectScope(t){for(let u=this.stackTop;u>=0;u--)if(this.treeAdapter.getNamespaceURI(this.items[u])===T.HTML)switch(this.tagIDs[u]){case t:return!0;case a.OPTION:case a.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&Ps.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&ks.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&ks.has(this.currentTagId);)this.pop()}}const lu=3;var $;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})($||($={}));const Qs={type:$.Marker};class CA{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,u){const s=[],n=u.length,i=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t);for(let h=0;h<this.entries.length;h++){const d=this.entries[h];if(d.type===$.Marker)break;const{element:f}=d;if(this.treeAdapter.getTagName(f)===i&&this.treeAdapter.getNamespaceURI(f)===r){const g=this.treeAdapter.getAttrList(f);g.length===n&&s.push({idx:h,attrs:g})}}return s}_ensureNoahArkCondition(t){if(this.entries.length<lu)return;const u=this.treeAdapter.getAttrList(t),s=this._getNoahArkConditionCandidates(t,u);if(s.length<lu)return;const n=new Map(u.map(r=>[r.name,r.value]));let i=0;for(let r=0;r<s.length;r++){const h=s[r];h.attrs.every(d=>n.get(d.name)===d.value)&&(i+=1,i>=lu&&this.entries.splice(h.idx,1))}}insertMarker(){this.entries.unshift(Qs)}pushElement(t,u){this._ensureNoahArkCondition(t),this.entries.unshift({type:$.Element,element:t,token:u})}insertElementAfterBookmark(t,u){const s=this.entries.indexOf(this.bookmark);this.entries.splice(s,0,{type:$.Element,element:t,token:u})}removeEntry(t){const u=this.entries.indexOf(t);u!==-1&&this.entries.splice(u,1)}clearToLastMarker(){const t=this.entries.indexOf(Qs);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const u=this.entries.find(s=>s.type===$.Marker||this.treeAdapter.getTagName(s.element)===t);return u&&u.type===$.Element?u:null}getElementEntry(t){return this.entries.find(u=>u.type===$.Element&&u.element===t)}}const se={createDocument(){return{nodeName:"#document",mode:J.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,u){return{nodeName:e,tagName:e,attrs:u,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,u){const s=e.childNodes.indexOf(u);e.childNodes.splice(s,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,u,s){const n=e.childNodes.find(i=>i.nodeName==="#documentType");if(n)n.name=t,n.publicId=u,n.systemId=s;else{const i={nodeName:"#documentType",name:t,publicId:u,systemId:s,parentNode:null};se.appendChild(e,i)}},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 u=e.childNodes[e.childNodes.length-1];if(se.isTextNode(u)){u.value+=t;return}}se.appendChild(e,se.createTextNode(t))},insertTextBefore(e,t,u){const s=e.childNodes[e.childNodes.indexOf(u)-1];s&&se.isTextNode(s)?s.value+=t:se.insertBefore(e,se.createTextNode(t),u)},adoptAttributes(e,t){const u=new Set(e.attrs.map(s=>s.name));for(let s=0;s<t.length;s++)u.has(t[s].name)||e.attrs.push(t[s])},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}}},Ys="html",pA="about:legacy-compat",_A="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",vs=["+//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//"],NA=[...vs,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],SA=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Ks=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],DA=[...Ks,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Gs(e,t){return t.some(u=>e.startsWith(u))}function BA(e){return e.name===Ys&&e.publicId===null&&(e.systemId===null||e.systemId===pA)}function OA(e){if(e.name!==Ys)return J.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===_A)return J.QUIRKS;let{publicId:u}=e;if(u!==null){if(u=u.toLowerCase(),SA.has(u))return J.QUIRKS;let s=t===null?NA:vs;if(Gs(u,s))return J.QUIRKS;if(s=t===null?Ks:DA,Gs(u,s))return J.LIMITED_QUIRKS}return J.NO_QUIRKS}const Ws={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},RA="definitionurl",LA="definitionURL",yA=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])),xA=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:T.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:T.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:T.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:T.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:T.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:T.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:T.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:T.XML}],["xml:space",{prefix:"xml",name:"space",namespace:T.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:T.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:T.XMLNS}]]),FA=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])),MA=new Set([a.B,a.BIG,a.BLOCKQUOTE,a.BODY,a.BR,a.CENTER,a.CODE,a.DD,a.DIV,a.DL,a.DT,a.EM,a.EMBED,a.H1,a.H2,a.H3,a.H4,a.H5,a.H6,a.HEAD,a.HR,a.I,a.IMG,a.LI,a.LISTING,a.MENU,a.META,a.NOBR,a.OL,a.P,a.PRE,a.RUBY,a.S,a.SMALL,a.SPAN,a.STRONG,a.STRIKE,a.SUB,a.SUP,a.TABLE,a.TT,a.U,a.UL,a.VAR]);function wA(e){const t=e.tagID;return t===a.FONT&&e.attrs.some(({name:s})=>s===Ee.COLOR||s===Ee.SIZE||s===Ee.FACE)||MA.has(t)}function Js(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===RA){e.attrs[t].name=LA;break}}function Zs(e){for(let t=0;t<e.attrs.length;t++){const u=yA.get(e.attrs[t].name);u!=null&&(e.attrs[t].name=u)}}function fu(e){for(let t=0;t<e.attrs.length;t++){const u=xA.get(e.attrs[t].name);u&&(e.attrs[t].prefix=u.prefix,e.attrs[t].name=u.name,e.attrs[t].namespace=u.namespace)}}function PA(e){const t=FA.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Et(e.tagName))}function kA(e,t){return t===T.MATHML&&(e===a.MI||e===a.MO||e===a.MN||e===a.MS||e===a.MTEXT)}function HA(e,t,u){if(t===T.MATHML&&e===a.ANNOTATION_XML){for(let s=0;s<u.length;s++)if(u[s].name===Ee.ENCODING){const n=u[s].value.toLowerCase();return n===Ws.TEXT_HTML||n===Ws.APPLICATION_XML}}return t===T.SVG&&(e===a.FOREIGN_OBJECT||e===a.DESC||e===a.TITLE)}function UA(e,t,u,s){return(!s||s===T.HTML)&&HA(e,t,u)||(!s||s===T.MATHML)&&kA(e,t)}const QA="hidden",YA=8,vA=3;var o;(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"})(o||(o={}));const KA={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Xs=new Set([a.TABLE,a.TBODY,a.TFOOT,a.THEAD,a.TR]),Vs={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:se,onParseError:null};class qs{constructor(t,u,s=null,n=null){this.fragmentContext=s,this.scriptHandler=n,this.currentToken=null,this.stopped=!1,this.insertionMode=o.INITIAL,this.originalInsertionMode=o.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={...Vs,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=u??this.treeAdapter.createDocument(),this.tokenizer=new lA(this.options,this),this.activeFormattingElements=new CA(this.treeAdapter),this.fragmentContextID=s?Et(this.treeAdapter.getTagName(s)):a.UNKNOWN,this._setContextModes(s??this.document,this.fragmentContextID),this.openElements=new IA(this.document,this.treeAdapter,this)}static parse(t,u){const s=new this(u);return s.tokenizer.write(t,!0),s.document}static getFragmentParser(t,u){const s={...Vs,...u};t??(t=s.treeAdapter.createElement(l.TEMPLATE,T.HTML,[]));const n=s.treeAdapter.createElement("documentmock",T.HTML,[]),i=new this(s,n,t);return i.fragmentContextID===a.TEMPLATE&&i.tmplInsertionModeStack.unshift(o.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),u=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,u),u}_err(t,u,s){var n;if(!this.onParseError)return;const i=(n=t.location)!==null&&n!==void 0?n:KA,r={code:u,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:s?i.startLine:i.endLine,endCol:s?i.startCol:i.endCol,endOffset:s?i.startOffset:i.endOffset};this.onParseError(r)}onItemPush(t,u,s){var n,i;(i=(n=this.treeAdapter).onItemPush)===null||i===void 0||i.call(n,t),s&&this.openElements.stackTop>0&&this._setContextModes(t,u)}onItemPop(t,u){var s,n;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(n=(s=this.treeAdapter).onItemPop)===null||n===void 0||n.call(s,t,this.openElements.current),u){let i,r;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,r=this.fragmentContextID):{current:i,currentTagId:r}=this.openElements,this._setContextModes(i,r)}}_setContextModes(t,u){const s=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===T.HTML;this.currentNotInHTML=!s,this.tokenizer.inForeignNode=!s&&t!==void 0&&u!==void 0&&!this._isIntegrationPoint(u,t)}_switchToTextParsing(t,u){this._insertElement(t,T.HTML),this.tokenizer.state=u,this.originalInsertionMode=this.insertionMode,this.insertionMode=o.TEXT}switchToPlaintextParsing(){this.insertionMode=o.TEXT,this.originalInsertionMode=o.IN_BODY,this.tokenizer.state=W.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===l.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==T.HTML))switch(this.fragmentContextID){case a.TITLE:case a.TEXTAREA:{this.tokenizer.state=W.RCDATA;break}case a.STYLE:case a.XMP:case a.IFRAME:case a.NOEMBED:case a.NOFRAMES:case a.NOSCRIPT:{this.tokenizer.state=W.RAWTEXT;break}case a.SCRIPT:{this.tokenizer.state=W.SCRIPT_DATA;break}case a.PLAINTEXT:{this.tokenizer.state=W.PLAINTEXT;break}}}_setDocumentType(t){const u=t.name||"",s=t.publicId||"",n=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,u,s,n),t.location){const r=this.treeAdapter.getChildNodes(this.document).find(h=>this.treeAdapter.isDocumentTypeNode(h));r&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}}_attachElementToTree(t,u){if(this.options.sourceCodeLocationInfo){const s=u&&{...u,startTag:u};this.treeAdapter.setNodeSourceCodeLocation(t,s)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const s=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(s??this.document,t)}}_appendElement(t,u){const s=this.treeAdapter.createElement(t.tagName,u,t.attrs);this._attachElementToTree(s,t.location)}_insertElement(t,u){const s=this.treeAdapter.createElement(t.tagName,u,t.attrs);this._attachElementToTree(s,t.location),this.openElements.push(s,t.tagID)}_insertFakeElement(t,u){const s=this.treeAdapter.createElement(t,T.HTML,[]);this._attachElementToTree(s,null),this.openElements.push(s,u)}_insertTemplate(t){const u=this.treeAdapter.createElement(t.tagName,T.HTML,t.attrs),s=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(u,s),this._attachElementToTree(u,t.location),this.openElements.push(u,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(l.HTML,T.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,a.HTML)}_appendCommentNode(t,u){const s=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(u,s),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_insertCharacters(t){let u,s;if(this._shouldFosterParentOnInsertion()?({parent:u,beforeElement:s}=this._findFosterParentingLocation(),s?this.treeAdapter.insertTextBefore(u,t.chars,s):this.treeAdapter.insertText(u,t.chars)):(u=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(u,t.chars)),!t.location)return;const n=this.treeAdapter.getChildNodes(u),i=s?n.lastIndexOf(s):n.length,r=n[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(r)){const{endLine:d,endCol:f,endOffset:g}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(r,{endLine:d,endCol:f,endOffset:g})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_adoptNodes(t,u){for(let s=this.treeAdapter.getFirstChild(t);s;s=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(s),this.treeAdapter.appendChild(u,s)}_setEndLocation(t,u){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&u.location){const s=u.location,n=this.treeAdapter.getTagName(t),i=u.type===R.END_TAG&&n===u.tagName?{endTag:{...s},endLine:s.endLine,endCol:s.endCol,endOffset:s.endOffset}:{endLine:s.startLine,endCol:s.startCol,endOffset:s.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let u,s;return this.openElements.stackTop===0&&this.fragmentContext?(u=this.fragmentContext,s=this.fragmentContextID):{current:u,currentTagId:s}=this.openElements,t.tagID===a.SVG&&this.treeAdapter.getTagName(u)===l.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(u)===T.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===a.MGLYPH||t.tagID===a.MALIGNMARK)&&s!==void 0&&!this._isIntegrationPoint(s,u,T.HTML)}_processToken(t){switch(t.type){case R.CHARACTER:{this.onCharacter(t);break}case R.NULL_CHARACTER:{this.onNullCharacter(t);break}case R.COMMENT:{this.onComment(t);break}case R.DOCTYPE:{this.onDoctype(t);break}case R.START_TAG:{this._processStartTag(t);break}case R.END_TAG:{this.onEndTag(t);break}case R.EOF:{this.onEof(t);break}case R.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,u,s){const n=this.treeAdapter.getNamespaceURI(u),i=this.treeAdapter.getAttrList(u);return UA(t,n,i,s)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const u=this.activeFormattingElements.entries.findIndex(n=>n.type===$.Marker||this.openElements.contains(n.element)),s=u===-1?t-1:u-1;for(let n=s;n>=0;n--){const i=this.activeFormattingElements.entries[n];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=o.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(a.P),this.openElements.popUntilTagNamePopped(a.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case a.TR:{this.insertionMode=o.IN_ROW;return}case a.TBODY:case a.THEAD:case a.TFOOT:{this.insertionMode=o.IN_TABLE_BODY;return}case a.CAPTION:{this.insertionMode=o.IN_CAPTION;return}case a.COLGROUP:{this.insertionMode=o.IN_COLUMN_GROUP;return}case a.TABLE:{this.insertionMode=o.IN_TABLE;return}case a.BODY:{this.insertionMode=o.IN_BODY;return}case a.FRAMESET:{this.insertionMode=o.IN_FRAMESET;return}case a.SELECT:{this._resetInsertionModeForSelect(t);return}case a.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case a.HTML:{this.insertionMode=this.headElement?o.AFTER_HEAD:o.BEFORE_HEAD;return}case a.TD:case a.TH:{if(t>0){this.insertionMode=o.IN_CELL;return}break}case a.HEAD:{if(t>0){this.insertionMode=o.IN_HEAD;return}break}}this.insertionMode=o.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let u=t-1;u>0;u--){const s=this.openElements.tagIDs[u];if(s===a.TEMPLATE)break;if(s===a.TABLE){this.insertionMode=o.IN_SELECT_IN_TABLE;return}}this.insertionMode=o.IN_SELECT}_isElementCausesFosterParenting(t){return Xs.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 u=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case a.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(u)===T.HTML)return{parent:this.treeAdapter.getTemplateContent(u),beforeElement:null};break}case a.TABLE:{const s=this.treeAdapter.getParentNode(u);return s?{parent:s,beforeElement:u}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const u=this._findFosterParentingLocation();u.beforeElement?this.treeAdapter.insertBefore(u.parent,t,u.beforeElement):this.treeAdapter.appendChild(u.parent,t)}_isSpecialElement(t,u){const s=this.treeAdapter.getNamespaceURI(t);return rA[s].has(u)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Io(this,t);return}switch(this.insertionMode){case o.INITIAL:{Qe(this,t);break}case o.BEFORE_HTML:{Ye(this,t);break}case o.BEFORE_HEAD:{ve(this,t);break}case o.IN_HEAD:{Ke(this,t);break}case o.IN_HEAD_NO_SCRIPT:{Ge(this,t);break}case o.AFTER_HEAD:{We(this,t);break}case o.IN_BODY:case o.IN_CAPTION:case o.IN_CELL:case o.IN_TEMPLATE:{zs(this,t);break}case o.TEXT:case o.IN_SELECT:case o.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case o.IN_TABLE:case o.IN_TABLE_BODY:case o.IN_ROW:{bu(this,t);break}case o.IN_TABLE_TEXT:{ia(this,t);break}case o.IN_COLUMN_GROUP:{It(this,t);break}case o.AFTER_BODY:{_t(this,t);break}case o.AFTER_AFTER_BODY:{Nt(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){mo(this,t);return}switch(this.insertionMode){case o.INITIAL:{Qe(this,t);break}case o.BEFORE_HTML:{Ye(this,t);break}case o.BEFORE_HEAD:{ve(this,t);break}case o.IN_HEAD:{Ke(this,t);break}case o.IN_HEAD_NO_SCRIPT:{Ge(this,t);break}case o.AFTER_HEAD:{We(this,t);break}case o.TEXT:{this._insertCharacters(t);break}case o.IN_TABLE:case o.IN_TABLE_BODY:case o.IN_ROW:{bu(this,t);break}case o.IN_COLUMN_GROUP:{It(this,t);break}case o.AFTER_BODY:{_t(this,t);break}case o.AFTER_AFTER_BODY:{Nt(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Tu(this,t);return}switch(this.insertionMode){case o.INITIAL:case o.BEFORE_HTML:case o.BEFORE_HEAD:case o.IN_HEAD:case o.IN_HEAD_NO_SCRIPT:case o.AFTER_HEAD:case o.IN_BODY:case o.IN_TABLE:case o.IN_CAPTION:case o.IN_COLUMN_GROUP:case o.IN_TABLE_BODY:case o.IN_ROW:case o.IN_CELL:case o.IN_SELECT:case o.IN_SELECT_IN_TABLE:case o.IN_TEMPLATE:case o.IN_FRAMESET:case o.AFTER_FRAMESET:{Tu(this,t);break}case o.IN_TABLE_TEXT:{Xe(this,t);break}case o.AFTER_BODY:{qA(this,t);break}case o.AFTER_AFTER_BODY:case o.AFTER_AFTER_FRAMESET:{jA(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case o.INITIAL:{zA(this,t);break}case o.BEFORE_HEAD:case o.IN_HEAD:case o.IN_HEAD_NO_SCRIPT:case o.AFTER_HEAD:{this._err(t,E.misplacedDoctype);break}case o.IN_TABLE_TEXT:{Xe(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,E.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Co(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case o.INITIAL:{Qe(this,t);break}case o.BEFORE_HTML:{$A(this,t);break}case o.BEFORE_HEAD:{tc(this,t);break}case o.IN_HEAD:{X(this,t);break}case o.IN_HEAD_NO_SCRIPT:{ac(this,t);break}case o.AFTER_HEAD:{ic(this,t);break}case o.IN_BODY:{Y(this,t);break}case o.IN_TABLE:{Se(this,t);break}case o.IN_TABLE_TEXT:{Xe(this,t);break}case o.IN_CAPTION:{uo(this,t);break}case o.IN_COLUMN_GROUP:{mu(this,t);break}case o.IN_TABLE_BODY:{Ct(this,t);break}case o.IN_ROW:{pt(this,t);break}case o.IN_CELL:{no(this,t);break}case o.IN_SELECT:{ca(this,t);break}case o.IN_SELECT_IN_TABLE:{ro(this,t);break}case o.IN_TEMPLATE:{co(this,t);break}case o.AFTER_BODY:{ho(this,t);break}case o.IN_FRAMESET:{lo(this,t);break}case o.AFTER_FRAMESET:{Eo(this,t);break}case o.AFTER_AFTER_BODY:{go(this,t);break}case o.AFTER_AFTER_FRAMESET:{bo(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?po(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case o.INITIAL:{Qe(this,t);break}case o.BEFORE_HTML:{ec(this,t);break}case o.BEFORE_HEAD:{uc(this,t);break}case o.IN_HEAD:{sc(this,t);break}case o.IN_HEAD_NO_SCRIPT:{nc(this,t);break}case o.AFTER_HEAD:{rc(this,t);break}case o.IN_BODY:{mt(this,t);break}case o.TEXT:{Jc(this,t);break}case o.IN_TABLE:{Je(this,t);break}case o.IN_TABLE_TEXT:{Xe(this,t);break}case o.IN_CAPTION:{so(this,t);break}case o.IN_COLUMN_GROUP:{ao(this,t);break}case o.IN_TABLE_BODY:{Iu(this,t);break}case o.IN_ROW:{Aa(this,t);break}case o.IN_CELL:{io(this,t);break}case o.IN_SELECT:{oa(this,t);break}case o.IN_SELECT_IN_TABLE:{Ao(this,t);break}case o.IN_TEMPLATE:{oo(this,t);break}case o.AFTER_BODY:{da(this,t);break}case o.IN_FRAMESET:{fo(this,t);break}case o.AFTER_FRAMESET:{To(this,t);break}case o.AFTER_AFTER_BODY:{Nt(this,t);break}}}onEof(t){switch(this.insertionMode){case o.INITIAL:{Qe(this,t);break}case o.BEFORE_HTML:{Ye(this,t);break}case o.BEFORE_HEAD:{ve(this,t);break}case o.IN_HEAD:{Ke(this,t);break}case o.IN_HEAD_NO_SCRIPT:{Ge(this,t);break}case o.AFTER_HEAD:{We(this,t);break}case o.IN_BODY:case o.IN_TABLE:case o.IN_CAPTION:case o.IN_COLUMN_GROUP:case o.IN_TABLE_BODY:case o.IN_ROW:case o.IN_CELL:case o.IN_SELECT:case o.IN_SELECT_IN_TABLE:{aa(this,t);break}case o.TEXT:{Zc(this,t);break}case o.IN_TABLE_TEXT:{Xe(this,t);break}case o.IN_TEMPLATE:{ha(this,t);break}case o.AFTER_BODY:case o.IN_FRAMESET:case o.AFTER_FRAMESET:case o.AFTER_AFTER_BODY:case o.AFTER_AFTER_FRAMESET:{gu(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===A.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 o.IN_HEAD:case o.IN_HEAD_NO_SCRIPT:case o.AFTER_HEAD:case o.TEXT:case o.IN_COLUMN_GROUP:case o.IN_SELECT:case o.IN_SELECT_IN_TABLE:case o.IN_FRAMESET:case o.AFTER_FRAMESET:{this._insertCharacters(t);break}case o.IN_BODY:case o.IN_CAPTION:case o.IN_CELL:case o.IN_TEMPLATE:case o.AFTER_BODY:case o.AFTER_AFTER_BODY:case o.AFTER_AFTER_FRAMESET:{js(this,t);break}case o.IN_TABLE:case o.IN_TABLE_BODY:case o.IN_ROW:{bu(this,t);break}case o.IN_TABLE_TEXT:{na(this,t);break}}}}function GA(e,t){let u=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return u?e.openElements.contains(u.element)?e.openElements.hasInScope(t.tagID)||(u=null):(e.activeFormattingElements.removeEntry(u),u=null):sa(e,t),u}function WA(e,t){let u=null,s=e.openElements.stackTop;for(;s>=0;s--){const n=e.openElements.items[s];if(n===t.element)break;e._isSpecialElement(n,e.openElements.tagIDs[s])&&(u=n)}return u||(e.openElements.shortenToLength(Math.max(s,0)),e.activeFormattingElements.removeEntry(t)),u}function JA(e,t,u){let s=t,n=e.openElements.getCommonAncestor(t);for(let i=0,r=n;r!==u;i++,r=n){n=e.openElements.getCommonAncestor(r);const h=e.activeFormattingElements.getElementEntry(r),d=h&&i>=vA;!h||d?(d&&e.activeFormattingElements.removeEntry(h),e.openElements.remove(r)):(r=ZA(e,h),s===t&&(e.activeFormattingElements.bookmark=h),e.treeAdapter.detachNode(s),e.treeAdapter.appendChild(r,s),s=r)}return s}function ZA(e,t){const u=e.treeAdapter.getNamespaceURI(t.element),s=e.treeAdapter.createElement(t.token.tagName,u,t.token.attrs);return e.openElements.replace(t.element,s),t.element=s,s}function XA(e,t,u){const s=e.treeAdapter.getTagName(t),n=Et(s);if(e._isElementCausesFosterParenting(n))e._fosterParentElement(u);else{const i=e.treeAdapter.getNamespaceURI(t);n===a.TEMPLATE&&i===T.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,u)}}function VA(e,t,u){const s=e.treeAdapter.getNamespaceURI(u.element),{token:n}=u,i=e.treeAdapter.createElement(n.tagName,s,n.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,n),e.activeFormattingElements.removeEntry(u),e.openElements.remove(u.element),e.openElements.insertAfter(t,i,n.tagID)}function Eu(e,t){for(let u=0;u<YA;u++){const s=GA(e,t);if(!s)break;const n=WA(e,s);if(!n)break;e.activeFormattingElements.bookmark=s;const i=JA(e,n,s.element),r=e.openElements.getCommonAncestor(s.element);e.treeAdapter.detachNode(i),r&&XA(e,r,i),VA(e,n,s)}}function Tu(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function qA(e,t){e._appendCommentNode(t,e.openElements.items[0])}function jA(e,t){e._appendCommentNode(t,e.document)}function gu(e,t){if(e.stopped=!0,t.location){const u=e.fragmentContext?0:2;for(let s=e.openElements.stackTop;s>=u;s--)e._setEndLocation(e.openElements.items[s],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const s=e.openElements.items[0],n=e.treeAdapter.getNodeSourceCodeLocation(s);if(n&&!n.endTag&&(e._setEndLocation(s,t),e.openElements.stackTop>=1)){const i=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(i);r&&!r.endTag&&e._setEndLocation(i,t)}}}}function zA(e,t){e._setDocumentType(t);const u=t.forceQuirks?J.QUIRKS:OA(t);BA(t)||e._err(t,E.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,u),e.insertionMode=o.BEFORE_HTML}function Qe(e,t){e._err(t,E.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,J.QUIRKS),e.insertionMode=o.BEFORE_HTML,e._processToken(t)}function $A(e,t){t.tagID===a.HTML?(e._insertElement(t,T.HTML),e.insertionMode=o.BEFORE_HEAD):Ye(e,t)}function ec(e,t){const u=t.tagID;(u===a.HTML||u===a.HEAD||u===a.BODY||u===a.BR)&&Ye(e,t)}function Ye(e,t){e._insertFakeRootElement(),e.insertionMode=o.BEFORE_HEAD,e._processToken(t)}function tc(e,t){switch(t.tagID){case a.HTML:{Y(e,t);break}case a.HEAD:{e._insertElement(t,T.HTML),e.headElement=e.openElements.current,e.insertionMode=o.IN_HEAD;break}default:ve(e,t)}}function uc(e,t){const u=t.tagID;u===a.HEAD||u===a.BODY||u===a.HTML||u===a.BR?ve(e,t):e._err(t,E.endTagWithoutMatchingOpenElement)}function ve(e,t){e._insertFakeElement(l.HEAD,a.HEAD),e.headElement=e.openElements.current,e.insertionMode=o.IN_HEAD,e._processToken(t)}function X(e,t){switch(t.tagID){case a.HTML:{Y(e,t);break}case a.BASE:case a.BASEFONT:case a.BGSOUND:case a.LINK:case a.META:{e._appendElement(t,T.HTML),t.ackSelfClosing=!0;break}case a.TITLE:{e._switchToTextParsing(t,W.RCDATA);break}case a.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,W.RAWTEXT):(e._insertElement(t,T.HTML),e.insertionMode=o.IN_HEAD_NO_SCRIPT);break}case a.NOFRAMES:case a.STYLE:{e._switchToTextParsing(t,W.RAWTEXT);break}case a.SCRIPT:{e._switchToTextParsing(t,W.SCRIPT_DATA);break}case a.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=o.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(o.IN_TEMPLATE);break}case a.HEAD:{e._err(t,E.misplacedStartTagForHeadElement);break}default:Ke(e,t)}}function sc(e,t){switch(t.tagID){case a.HEAD:{e.openElements.pop(),e.insertionMode=o.AFTER_HEAD;break}case a.BODY:case a.BR:case a.HTML:{Ke(e,t);break}case a.TEMPLATE:{Te(e,t);break}default:e._err(t,E.endTagWithoutMatchingOpenElement)}}function Te(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==a.TEMPLATE&&e._err(t,E.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(a.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,E.endTagWithoutMatchingOpenElement)}function Ke(e,t){e.openElements.pop(),e.insertionMode=o.AFTER_HEAD,e._processToken(t)}function ac(e,t){switch(t.tagID){case a.HTML:{Y(e,t);break}case a.BASEFONT:case a.BGSOUND:case a.HEAD:case a.LINK:case a.META:case a.NOFRAMES:case a.STYLE:{X(e,t);break}case a.NOSCRIPT:{e._err(t,E.nestedNoscriptInHead);break}default:Ge(e,t)}}function nc(e,t){switch(t.tagID){case a.NOSCRIPT:{e.openElements.pop(),e.insertionMode=o.IN_HEAD;break}case a.BR:{Ge(e,t);break}default:e._err(t,E.endTagWithoutMatchingOpenElement)}}function Ge(e,t){const u=t.type===R.EOF?E.openElementsLeftAfterEof:E.disallowedContentInNoscriptInHead;e._err(t,u),e.openElements.pop(),e.insertionMode=o.IN_HEAD,e._processToken(t)}function ic(e,t){switch(t.tagID){case a.HTML:{Y(e,t);break}case a.BODY:{e._insertElement(t,T.HTML),e.framesetOk=!1,e.insertionMode=o.IN_BODY;break}case a.FRAMESET:{e._insertElement(t,T.HTML),e.insertionMode=o.IN_FRAMESET;break}case a.BASE:case a.BASEFONT:case a.BGSOUND:case a.LINK:case a.META:case a.NOFRAMES:case a.SCRIPT:case a.STYLE:case a.TEMPLATE:case a.TITLE:{e._err(t,E.abandonedHeadElementChild),e.openElements.push(e.headElement,a.HEAD),X(e,t),e.openElements.remove(e.headElement);break}case a.HEAD:{e._err(t,E.misplacedStartTagForHeadElement);break}default:We(e,t)}}function rc(e,t){switch(t.tagID){case a.BODY:case a.HTML:case a.BR:{We(e,t);break}case a.TEMPLATE:{Te(e,t);break}default:e._err(t,E.endTagWithoutMatchingOpenElement)}}function We(e,t){e._insertFakeElement(l.BODY,a.BODY),e.insertionMode=o.IN_BODY,bt(e,t)}function bt(e,t){switch(t.type){case R.CHARACTER:{zs(e,t);break}case R.WHITESPACE_CHARACTER:{js(e,t);break}case R.COMMENT:{Tu(e,t);break}case R.START_TAG:{Y(e,t);break}case R.END_TAG:{mt(e,t);break}case R.EOF:{aa(e,t);break}}}function js(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function zs(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Ac(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function cc(e,t){const u=e.openElements.tryPeekProperlyNestedBodyElement();u&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(u,t.attrs))}function oc(e,t){const u=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&u&&(e.treeAdapter.detachNode(u),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,T.HTML),e.insertionMode=o.IN_FRAMESET)}function hc(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,T.HTML)}function dc(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&du.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,T.HTML)}function lc(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,T.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function fc(e,t){const u=e.openElements.tmplCount>0;(!e.formElement||u)&&(e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,T.HTML),u||(e.formElement=e.openElements.current))}function Ec(e,t){e.framesetOk=!1;const u=t.tagID;for(let s=e.openElements.stackTop;s>=0;s--){const n=e.openElements.tagIDs[s];if(u===a.LI&&n===a.LI||(u===a.DD||u===a.DT)&&(n===a.DD||n===a.DT)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n);break}if(n!==a.ADDRESS&&n!==a.DIV&&n!==a.P&&e._isSpecialElement(e.openElements.items[s],n))break}e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,T.HTML)}function Tc(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,T.HTML),e.tokenizer.state=W.PLAINTEXT}function gc(e,t){e.openElements.hasInScope(a.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML),e.framesetOk=!1}function bc(e,t){const u=e.activeFormattingElements.getElementEntryInScopeWithTagName(l.A);u&&(Eu(e,t),e.openElements.remove(u.element),e.activeFormattingElements.removeEntry(u)),e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function mc(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ic(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(a.NOBR)&&(Eu(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,T.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Cc(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function pc(e,t){e.treeAdapter.getDocumentMode(e.document)!==J.QUIRKS&&e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,T.HTML),e.framesetOk=!1,e.insertionMode=o.IN_TABLE}function $s(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,T.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function ea(e){const t=xs(e,Ee.TYPE);return t!=null&&t.toLowerCase()===QA}function _c(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,T.HTML),ea(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Nc(e,t){e._appendElement(t,T.HTML),t.ackSelfClosing=!0}function Sc(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._appendElement(t,T.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Dc(e,t){t.tagName=l.IMG,t.tagID=a.IMG,$s(e,t)}function Bc(e,t){e._insertElement(t,T.HTML),e.skipNextNewLine=!0,e.tokenizer.state=W.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=o.TEXT}function Oc(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,W.RAWTEXT)}function Rc(e,t){e.framesetOk=!1,e._switchToTextParsing(t,W.RAWTEXT)}function ta(e,t){e._switchToTextParsing(t,W.RAWTEXT)}function Lc(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===o.IN_TABLE||e.insertionMode===o.IN_CAPTION||e.insertionMode===o.IN_TABLE_BODY||e.insertionMode===o.IN_ROW||e.insertionMode===o.IN_CELL?o.IN_SELECT_IN_TABLE:o.IN_SELECT}function yc(e,t){e.openElements.currentTagId===a.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML)}function xc(e,t){e.openElements.hasInScope(a.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,T.HTML)}function Fc(e,t){e.openElements.hasInScope(a.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(a.RTC),e._insertElement(t,T.HTML)}function Mc(e,t){e._reconstructActiveFormattingElements(),Js(t),fu(t),t.selfClosing?e._appendElement(t,T.MATHML):e._insertElement(t,T.MATHML),t.ackSelfClosing=!0}function wc(e,t){e._reconstructActiveFormattingElements(),Zs(t),fu(t),t.selfClosing?e._appendElement(t,T.SVG):e._insertElement(t,T.SVG),t.ackSelfClosing=!0}function ua(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML)}function Y(e,t){switch(t.tagID){case a.I:case a.S:case a.B:case a.U:case a.EM:case a.TT:case a.BIG:case a.CODE:case a.FONT:case a.SMALL:case a.STRIKE:case a.STRONG:{mc(e,t);break}case a.A:{bc(e,t);break}case a.H1:case a.H2:case a.H3:case a.H4:case a.H5:case a.H6:{dc(e,t);break}case a.P:case a.DL:case a.OL:case a.UL:case a.DIV:case a.DIR:case a.NAV:case a.MAIN:case a.MENU:case a.ASIDE:case a.CENTER:case a.FIGURE:case a.FOOTER:case a.HEADER:case a.HGROUP:case a.DIALOG:case a.DETAILS:case a.ADDRESS:case a.ARTICLE:case a.SEARCH:case a.SECTION:case a.SUMMARY:case a.FIELDSET:case a.BLOCKQUOTE:case a.FIGCAPTION:{hc(e,t);break}case a.LI:case a.DD:case a.DT:{Ec(e,t);break}case a.BR:case a.IMG:case a.WBR:case a.AREA:case a.EMBED:case a.KEYGEN:{$s(e,t);break}case a.HR:{Sc(e,t);break}case a.RB:case a.RTC:{xc(e,t);break}case a.RT:case a.RP:{Fc(e,t);break}case a.PRE:case a.LISTING:{lc(e,t);break}case a.XMP:{Oc(e,t);break}case a.SVG:{wc(e,t);break}case a.HTML:{Ac(e,t);break}case a.BASE:case a.LINK:case a.META:case a.STYLE:case a.TITLE:case a.SCRIPT:case a.BGSOUND:case a.BASEFONT:case a.TEMPLATE:{X(e,t);break}case a.BODY:{cc(e,t);break}case a.FORM:{fc(e,t);break}case a.NOBR:{Ic(e,t);break}case a.MATH:{Mc(e,t);break}case a.TABLE:{pc(e,t);break}case a.INPUT:{_c(e,t);break}case a.PARAM:case a.TRACK:case a.SOURCE:{Nc(e,t);break}case a.IMAGE:{Dc(e,t);break}case a.BUTTON:{gc(e,t);break}case a.APPLET:case a.OBJECT:case a.MARQUEE:{Cc(e,t);break}case a.IFRAME:{Rc(e,t);break}case a.SELECT:{Lc(e,t);break}case a.OPTION:case a.OPTGROUP:{yc(e,t);break}case a.NOEMBED:case a.NOFRAMES:{ta(e,t);break}case a.FRAMESET:{oc(e,t);break}case a.TEXTAREA:{Bc(e,t);break}case a.NOSCRIPT:{e.options.scriptingEnabled?ta(e,t):ua(e,t);break}case a.PLAINTEXT:{Tc(e,t);break}case a.COL:case a.TH:case a.TD:case a.TR:case a.HEAD:case a.FRAME:case a.TBODY:case a.TFOOT:case a.THEAD:case a.CAPTION:case a.COLGROUP:break;default:ua(e,t)}}function Pc(e,t){if(e.openElements.hasInScope(a.BODY)&&(e.insertionMode=o.AFTER_BODY,e.options.sourceCodeLocationInfo)){const u=e.openElements.tryPeekProperlyNestedBodyElement();u&&e._setEndLocation(u,t)}}function kc(e,t){e.openElements.hasInScope(a.BODY)&&(e.insertionMode=o.AFTER_BODY,da(e,t))}function Hc(e,t){const u=t.tagID;e.openElements.hasInScope(u)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u))}function Uc(e){const t=e.openElements.tmplCount>0,{formElement:u}=e;t||(e.formElement=null),(u||t)&&e.openElements.hasInScope(a.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(a.FORM):u&&e.openElements.remove(u))}function Qc(e){e.openElements.hasInButtonScope(a.P)||e._insertFakeElement(l.P,a.P),e._closePElement()}function Yc(e){e.openElements.hasInListItemScope(a.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(a.LI),e.openElements.popUntilTagNamePopped(a.LI))}function vc(e,t){const u=t.tagID;e.openElements.hasInScope(u)&&(e.openElements.generateImpliedEndTagsWithExclusion(u),e.openElements.popUntilTagNamePopped(u))}function Kc(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Gc(e,t){const u=t.tagID;e.openElements.hasInScope(u)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u),e.activeFormattingElements.clearToLastMarker())}function Wc(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(l.BR,a.BR),e.openElements.pop(),e.framesetOk=!1}function sa(e,t){const u=t.tagName,s=t.tagID;for(let n=e.openElements.stackTop;n>0;n--){const i=e.openElements.items[n],r=e.openElements.tagIDs[n];if(s===r&&(s!==a.UNKNOWN||e.treeAdapter.getTagName(i)===u)){e.openElements.generateImpliedEndTagsWithExclusion(s),e.openElements.stackTop>=n&&e.openElements.shortenToLength(n);break}if(e._isSpecialElement(i,r))break}}function mt(e,t){switch(t.tagID){case a.A:case a.B:case a.I:case a.S:case a.U:case a.EM:case a.TT:case a.BIG:case a.CODE:case a.FONT:case a.NOBR:case a.SMALL:case a.STRIKE:case a.STRONG:{Eu(e,t);break}case a.P:{Qc(e);break}case a.DL:case a.UL:case a.OL:case a.DIR:case a.DIV:case a.NAV:case a.PRE:case a.MAIN:case a.MENU:case a.ASIDE:case a.BUTTON:case a.CENTER:case a.FIGURE:case a.FOOTER:case a.HEADER:case a.HGROUP:case a.DIALOG:case a.ADDRESS:case a.ARTICLE:case a.DETAILS:case a.SEARCH:case a.SECTION:case a.SUMMARY:case a.LISTING:case a.FIELDSET:case a.BLOCKQUOTE:case a.FIGCAPTION:{Hc(e,t);break}case a.LI:{Yc(e);break}case a.DD:case a.DT:{vc(e,t);break}case a.H1:case a.H2:case a.H3:case a.H4:case a.H5:case a.H6:{Kc(e);break}case a.BR:{Wc(e);break}case a.BODY:{Pc(e,t);break}case a.HTML:{kc(e,t);break}case a.FORM:{Uc(e);break}case a.APPLET:case a.OBJECT:case a.MARQUEE:{Gc(e,t);break}case a.TEMPLATE:{Te(e,t);break}default:sa(e,t)}}function aa(e,t){e.tmplInsertionModeStack.length>0?ha(e,t):gu(e,t)}function Jc(e,t){var u;t.tagID===a.SCRIPT&&((u=e.scriptHandler)===null||u===void 0||u.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Zc(e,t){e._err(t,E.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function bu(e,t){if(e.openElements.currentTagId!==void 0&&Xs.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=o.IN_TABLE_TEXT,t.type){case R.CHARACTER:{ia(e,t);break}case R.WHITESPACE_CHARACTER:{na(e,t);break}}else Ze(e,t)}function Xc(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,T.HTML),e.insertionMode=o.IN_CAPTION}function Vc(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,T.HTML),e.insertionMode=o.IN_COLUMN_GROUP}function qc(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(l.COLGROUP,a.COLGROUP),e.insertionMode=o.IN_COLUMN_GROUP,mu(e,t)}function jc(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,T.HTML),e.insertionMode=o.IN_TABLE_BODY}function zc(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(l.TBODY,a.TBODY),e.insertionMode=o.IN_TABLE_BODY,Ct(e,t)}function $c(e,t){e.openElements.hasInTableScope(a.TABLE)&&(e.openElements.popUntilTagNamePopped(a.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function eo(e,t){ea(t)?e._appendElement(t,T.HTML):Ze(e,t),t.ackSelfClosing=!0}function to(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,T.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Se(e,t){switch(t.tagID){case a.TD:case a.TH:case a.TR:{zc(e,t);break}case a.STYLE:case a.SCRIPT:case a.TEMPLATE:{X(e,t);break}case a.COL:{qc(e,t);break}case a.FORM:{to(e,t);break}case a.TABLE:{$c(e,t);break}case a.TBODY:case a.TFOOT:case a.THEAD:{jc(e,t);break}case a.INPUT:{eo(e,t);break}case a.CAPTION:{Xc(e,t);break}case a.COLGROUP:{Vc(e,t);break}default:Ze(e,t)}}function Je(e,t){switch(t.tagID){case a.TABLE:{e.openElements.hasInTableScope(a.TABLE)&&(e.openElements.popUntilTagNamePopped(a.TABLE),e._resetInsertionMode());break}case a.TEMPLATE:{Te(e,t);break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:case a.TBODY:case a.TD:case a.TFOOT:case a.TH:case a.THEAD:case a.TR:break;default:Ze(e,t)}}function Ze(e,t){const u=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,bt(e,t),e.fosterParentingEnabled=u}function na(e,t){e.pendingCharacterTokens.push(t)}function ia(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Xe(e,t){let u=0;if(e.hasNonWhitespacePendingCharacterToken)for(;u<e.pendingCharacterTokens.length;u++)Ze(e,e.pendingCharacterTokens[u]);else for(;u<e.pendingCharacterTokens.length;u++)e._insertCharacters(e.pendingCharacterTokens[u]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const ra=new Set([a.CAPTION,a.COL,a.COLGROUP,a.TBODY,a.TD,a.TFOOT,a.TH,a.THEAD,a.TR]);function uo(e,t){const u=t.tagID;ra.has(u)?e.openElements.hasInTableScope(a.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=o.IN_TABLE,Se(e,t)):Y(e,t)}function so(e,t){const u=t.tagID;switch(u){case a.CAPTION:case a.TABLE:{e.openElements.hasInTableScope(a.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=o.IN_TABLE,u===a.TABLE&&Je(e,t));break}case a.BODY:case a.COL:case a.COLGROUP:case a.HTML:case a.TBODY:case a.TD:case a.TFOOT:case a.TH:case a.THEAD:case a.TR:break;default:mt(e,t)}}function mu(e,t){switch(t.tagID){case a.HTML:{Y(e,t);break}case a.COL:{e._appendElement(t,T.HTML),t.ackSelfClosing=!0;break}case a.TEMPLATE:{X(e,t);break}default:It(e,t)}}function ao(e,t){switch(t.tagID){case a.COLGROUP:{e.openElements.currentTagId===a.COLGROUP&&(e.openElements.pop(),e.insertionMode=o.IN_TABLE);break}case a.TEMPLATE:{Te(e,t);break}case a.COL:break;default:It(e,t)}}function It(e,t){e.openElements.currentTagId===a.COLGROUP&&(e.openElements.pop(),e.insertionMode=o.IN_TABLE,e._processToken(t))}function Ct(e,t){switch(t.tagID){case a.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,T.HTML),e.insertionMode=o.IN_ROW;break}case a.TH:case a.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(l.TR,a.TR),e.insertionMode=o.IN_ROW,pt(e,t);break}case a.CAPTION:case a.COL:case a.COLGROUP:case a.TBODY:case a.TFOOT:case a.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=o.IN_TABLE,Se(e,t));break}default:Se(e,t)}}function Iu(e,t){const u=t.tagID;switch(t.tagID){case a.TBODY:case a.TFOOT:case a.THEAD:{e.openElements.hasInTableScope(u)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=o.IN_TABLE);break}case a.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=o.IN_TABLE,Je(e,t));break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:case a.TD:case a.TH:case a.TR:break;default:Je(e,t)}}function pt(e,t){switch(t.tagID){case a.TH:case a.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,T.HTML),e.insertionMode=o.IN_CELL,e.activeFormattingElements.insertMarker();break}case a.CAPTION:case a.COL:case a.COLGROUP:case a.TBODY:case a.TFOOT:case a.THEAD:case a.TR:{e.openElements.hasInTableScope(a.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=o.IN_TABLE_BODY,Ct(e,t));break}default:Se(e,t)}}function Aa(e,t){switch(t.tagID){case a.TR:{e.openElements.hasInTableScope(a.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=o.IN_TABLE_BODY);break}case a.TABLE:{e.openElements.hasInTableScope(a.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=o.IN_TABLE_BODY,Iu(e,t));break}case a.TBODY:case a.TFOOT:case a.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(a.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=o.IN_TABLE_BODY,Iu(e,t));break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:case a.TD:case a.TH:break;default:Je(e,t)}}function no(e,t){const u=t.tagID;ra.has(u)?(e.openElements.hasInTableScope(a.TD)||e.openElements.hasInTableScope(a.TH))&&(e._closeTableCell(),pt(e,t)):Y(e,t)}function io(e,t){const u=t.tagID;switch(u){case a.TD:case a.TH:{e.openElements.hasInTableScope(u)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=o.IN_ROW);break}case a.TABLE:case a.TBODY:case a.TFOOT:case a.THEAD:case a.TR:{e.openElements.hasInTableScope(u)&&(e._closeTableCell(),Aa(e,t));break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:break;default:mt(e,t)}}function ca(e,t){switch(t.tagID){case a.HTML:{Y(e,t);break}case a.OPTION:{e.openElements.currentTagId===a.OPTION&&e.openElements.pop(),e._insertElement(t,T.HTML);break}case a.OPTGROUP:{e.openElements.currentTagId===a.OPTION&&e.openElements.pop(),e.openElements.currentTagId===a.OPTGROUP&&e.openElements.pop(),e._insertElement(t,T.HTML);break}case a.HR:{e.openElements.currentTagId===a.OPTION&&e.openElements.pop(),e.openElements.currentTagId===a.OPTGROUP&&e.openElements.pop(),e._appendElement(t,T.HTML),t.ackSelfClosing=!0;break}case a.INPUT:case a.KEYGEN:case a.TEXTAREA:case a.SELECT:{e.openElements.hasInSelectScope(a.SELECT)&&(e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode(),t.tagID!==a.SELECT&&e._processStartTag(t));break}case a.SCRIPT:case a.TEMPLATE:{X(e,t);break}}}function oa(e,t){switch(t.tagID){case a.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===a.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===a.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===a.OPTGROUP&&e.openElements.pop();break}case a.OPTION:{e.openElements.currentTagId===a.OPTION&&e.openElements.pop();break}case a.SELECT:{e.openElements.hasInSelectScope(a.SELECT)&&(e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode());break}case a.TEMPLATE:{Te(e,t);break}}}function ro(e,t){const u=t.tagID;u===a.CAPTION||u===a.TABLE||u===a.TBODY||u===a.TFOOT||u===a.THEAD||u===a.TR||u===a.TD||u===a.TH?(e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode(),e._processStartTag(t)):ca(e,t)}function Ao(e,t){const u=t.tagID;u===a.CAPTION||u===a.TABLE||u===a.TBODY||u===a.TFOOT||u===a.THEAD||u===a.TR||u===a.TD||u===a.TH?e.openElements.hasInTableScope(u)&&(e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode(),e.onEndTag(t)):oa(e,t)}function co(e,t){switch(t.tagID){case a.BASE:case a.BASEFONT:case a.BGSOUND:case a.LINK:case a.META:case a.NOFRAMES:case a.SCRIPT:case a.STYLE:case a.TEMPLATE:case a.TITLE:{X(e,t);break}case a.CAPTION:case a.COLGROUP:case a.TBODY:case a.TFOOT:case a.THEAD:{e.tmplInsertionModeStack[0]=o.IN_TABLE,e.insertionMode=o.IN_TABLE,Se(e,t);break}case a.COL:{e.tmplInsertionModeStack[0]=o.IN_COLUMN_GROUP,e.insertionMode=o.IN_COLUMN_GROUP,mu(e,t);break}case a.TR:{e.tmplInsertionModeStack[0]=o.IN_TABLE_BODY,e.insertionMode=o.IN_TABLE_BODY,Ct(e,t);break}case a.TD:case a.TH:{e.tmplInsertionModeStack[0]=o.IN_ROW,e.insertionMode=o.IN_ROW,pt(e,t);break}default:e.tmplInsertionModeStack[0]=o.IN_BODY,e.insertionMode=o.IN_BODY,Y(e,t)}}function oo(e,t){t.tagID===a.TEMPLATE&&Te(e,t)}function ha(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(a.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):gu(e,t)}function ho(e,t){t.tagID===a.HTML?Y(e,t):_t(e,t)}function da(e,t){var u;if(t.tagID===a.HTML){if(e.fragmentContext||(e.insertionMode=o.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===a.HTML){e._setEndLocation(e.openElements.items[0],t);const s=e.openElements.items[1];s&&!(!((u=e.treeAdapter.getNodeSourceCodeLocation(s))===null||u===void 0)&&u.endTag)&&e._setEndLocation(s,t)}}else _t(e,t)}function _t(e,t){e.insertionMode=o.IN_BODY,bt(e,t)}function lo(e,t){switch(t.tagID){case a.HTML:{Y(e,t);break}case a.FRAMESET:{e._insertElement(t,T.HTML);break}case a.FRAME:{e._appendElement(t,T.HTML),t.ackSelfClosing=!0;break}case a.NOFRAMES:{X(e,t);break}}}function fo(e,t){t.tagID===a.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==a.FRAMESET&&(e.insertionMode=o.AFTER_FRAMESET))}function Eo(e,t){switch(t.tagID){case a.HTML:{Y(e,t);break}case a.NOFRAMES:{X(e,t);break}}}function To(e,t){t.tagID===a.HTML&&(e.insertionMode=o.AFTER_AFTER_FRAMESET)}function go(e,t){t.tagID===a.HTML?Y(e,t):Nt(e,t)}function Nt(e,t){e.insertionMode=o.IN_BODY,bt(e,t)}function bo(e,t){switch(t.tagID){case a.HTML:{Y(e,t);break}case a.NOFRAMES:{X(e,t);break}}}function mo(e,t){t.chars=y,e._insertCharacters(t)}function Io(e,t){e._insertCharacters(t),e.framesetOk=!1}function la(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==T.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Co(e,t){if(wA(t))la(e),e._startTagOutsideForeignContent(t);else{const u=e._getAdjustedCurrentElement(),s=e.treeAdapter.getNamespaceURI(u);s===T.MATHML?Js(t):s===T.SVG&&(PA(t),Zs(t)),fu(t),t.selfClosing?e._appendElement(t,s):e._insertElement(t,s),t.ackSelfClosing=!0}}function po(e,t){if(t.tagID===a.P||t.tagID===a.BR){la(e),e._endTagOutsideForeignContent(t);return}for(let u=e.openElements.stackTop;u>0;u--){const s=e.openElements.items[u];if(e.treeAdapter.getNamespaceURI(s)===T.HTML){e._endTagOutsideForeignContent(t);break}const n=e.treeAdapter.getTagName(s);if(n.toLowerCase()===t.tagName){t.tagName=n,e.openElements.shortenToLength(u);break}}}function fa(e,t){return function(s){let n,i=0,r="";for(;n=e.exec(s);)i!==n.index&&(r+=s.substring(i,n.index)),r+=t.get(n[0].charCodeAt(0)),i=n.index+1;return r+s.substring(i)}}const _o=fa(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),No=fa(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),So=new Set([l.AREA,l.BASE,l.BASEFONT,l.BGSOUND,l.BR,l.COL,l.EMBED,l.FRAME,l.HR,l.IMG,l.INPUT,l.KEYGEN,l.LINK,l.META,l.PARAM,l.SOURCE,l.TRACK,l.WBR]);function Do(e,t){return t.treeAdapter.isElementNode(e)&&t.treeAdapter.getNamespaceURI(e)===T.HTML&&So.has(t.treeAdapter.getTagName(e))}const Bo={treeAdapter:se,scriptingEnabled:!0};function Oo(e,t){const u={...Bo,...t};return Ea(e,u)}function Ro(e,t){let u="";const s=t.treeAdapter.isElementNode(e)&&t.treeAdapter.getTagName(e)===l.TEMPLATE&&t.treeAdapter.getNamespaceURI(e)===T.HTML?t.treeAdapter.getTemplateContent(e):e,n=t.treeAdapter.getChildNodes(s);if(n)for(const i of n)u+=Ea(i,t);return u}function Ea(e,t){return t.treeAdapter.isElementNode(e)?Lo(e,t):t.treeAdapter.isTextNode(e)?xo(e,t):t.treeAdapter.isCommentNode(e)?Fo(e,t):t.treeAdapter.isDocumentTypeNode(e)?Mo(e,t):""}function Lo(e,t){const u=t.treeAdapter.getTagName(e);return`<${u}${yo(e,t)}>${Do(e,t)?"":`${Ro(e,t)}</${u}>`}`}function yo(e,{treeAdapter:t}){let u="";for(const s of t.getAttrList(e)){if(u+=" ",s.namespace)switch(s.namespace){case T.XML:{u+=`xml:${s.name}`;break}case T.XMLNS:{s.name!=="xmlns"&&(u+="xmlns:"),u+=s.name;break}case T.XLINK:{u+=`xlink:${s.name}`;break}default:u+=`${s.prefix}:${s.name}`}else u+=s.name;u+=`="${_o(s.value)}"`}return u}function xo(e,t){const{treeAdapter:u}=t,s=u.getTextNodeContent(e),n=u.getParentNode(e),i=n&&u.isElementNode(n)&&u.getTagName(n);return i&&u.getNamespaceURI(n)===T.HTML&&cA(i,t.scriptingEnabled)?s:No(s)}function Fo(e,{treeAdapter:t}){return`<!--${t.getCommentNodeContent(e)}-->`}function Mo(e,{treeAdapter:t}){return`<!DOCTYPE ${t.getDocumentTypeNodeName(e)}>`}function wo(e,t){return qs.parse(e,t)}function Po(e,t,u){typeof e=="string"&&(u=t,t=e,e=null);const s=qs.getFragmentParser(e,u);return s.tokenizer.write(t,!0),s.getFragment()}function Ta(e){const t=e.includes('"')?"'":'"';return t+e+t}function ko(e,t,u){let s="!DOCTYPE ";return e&&(s+=e),t?s+=` PUBLIC ${Ta(t)}`:u&&(s+=" SYSTEM"),u&&(s+=` ${Ta(u)}`),s}const ce={isCommentNode:ze,isElementNode:D,isTextNode:q,createDocument(){const e=new oe([]);return e["x-mode"]=J.NO_QUIRKS,e},createDocumentFragment(){return new oe([])},createElement(e,t,u){const s=Object.create(null),n=Object.create(null),i=Object.create(null);for(let h=0;h<u.length;h++){const d=u[h].name;s[d]=u[h].value,n[d]=u[h].namespace,i[d]=u[h].prefix}const r=new xt(e,s,[]);return r.namespace=t,r["x-attribsNamespace"]=n,r["x-attribsPrefix"]=i,r},createCommentNode(e){return new Rt(e)},createTextNode(e){return new Oe(e)},appendChild(e,t){const u=e.children[e.children.length-1];u&&(u.next=t,t.prev=u),e.children.push(t),t.parent=e},insertBefore(e,t,u){const s=e.children.indexOf(u),{prev:n}=u;n&&(n.next=t,t.prev=n),u.prev=t,t.next=u,e.children.splice(s,0,t),t.parent=e},setTemplateContent(e,t){ce.appendChild(e,t)},getTemplateContent(e){return e.children[0]},setDocumentType(e,t,u,s){const n=ko(t,u,s);let i=e.children.find(r=>Ft(r)&&r.name==="!doctype");i?i.data=n??null:(i=new Lt("!doctype",n),ce.appendChild(e,i)),i["x-name"]=t,i["x-publicId"]=u,i["x-systemId"]=s},setDocumentMode(e,t){e["x-mode"]=t},getDocumentMode(e){return e["x-mode"]},detachNode(e){if(e.parent){const t=e.parent.children.indexOf(e),{prev:u,next:s}=e;e.prev=null,e.next=null,u&&(u.next=s),s&&(s.prev=u),e.parent.children.splice(t,1),e.parent=null}},insertText(e,t){const u=e.children[e.children.length-1];u&&q(u)?u.data+=t:ce.appendChild(e,ce.createTextNode(t))},insertTextBefore(e,t,u){const s=e.children[e.children.indexOf(u)-1];s&&q(s)?s.data+=t:ce.insertBefore(e,ce.createTextNode(t),u)},adoptAttributes(e,t){for(let u=0;u<t.length;u++){const s=t[u].name;e.attribs[s]===void 0&&(e.attribs[s]=t[u].value,e["x-attribsNamespace"][s]=t[u].namespace,e["x-attribsPrefix"][s]=t[u].prefix)}},getFirstChild(e){return e.children[0]},getChildNodes(e){return e.children},getParentNode(e){return e.parent},getAttrList(e){return e.attributes},getTagName(e){return e.name},getNamespaceURI(e){return e.namespace},getTextNodeContent(e){return e.data},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){var t;return(t=e["x-name"])!==null&&t!==void 0?t:""},getDocumentTypeNodePublicId(e){var t;return(t=e["x-publicId"])!==null&&t!==void 0?t:""},getDocumentTypeNodeSystemId(e){var t;return(t=e["x-systemId"])!==null&&t!==void 0?t:""},isDocumentTypeNode(e){return Ft(e)&&e.name==="!doctype"},setNodeSourceCodeLocation(e,t){t&&(e.startIndex=t.startOffset,e.endIndex=t.endOffset),e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){t.endOffset!=null&&(e.endIndex=t.endOffset),e.sourceCodeLocation={...e.sourceCodeLocation,...t}}};function Ho(e,t,u,s){var n;return(n=t.treeAdapter)!==null&&n!==void 0||(t.treeAdapter=ce),t.scriptingEnabled!==!1&&(t.scriptingEnabled=!0),u?wo(e,t):Po(s,e,t)}const Uo={treeAdapter:ce};function Qo(e){const t="length"in e?e:[e];for(let s=0;s<t.length;s+=1){const n=t[s];ae(n)&&Array.prototype.splice.call(t,s,1,...n.children)}let u="";for(let s=0;s<t.length;s+=1){const n=t[s];u+=Oo(n,Uo)}return u}const Yo=hr((e,t,u,s)=>t._useHtmlParser2?Hn(e,t):Ho(e,t,u,s)),vo=Gr(Yo,(e,t)=>t._useHtmlParser2?$e(e,t):Qo(e));function Ko(e,{itemSelector:t="channel > item",selectors:u={},fallback:s=[]}={}){try{const n=vo(e,{xmlMode:!0}),i=[];return n(t).each((r,h)=>{const d={};Object.keys(u).forEach(f=>{const g=u[f];g&&(d[f]=n(h).find(g).first().text().trim())}),i.push(d)}),i}catch(n){return console.error("[parseRssItems] Failed to parse RSS feed",{error:n,itemSelector:t,selectors:u}),s}}be.parseRssItems=Ko,Object.defineProperty(be,Symbol.toStringTag,{value:"Module"})}));
|