mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 00:10:11 -05:00
215 lines
1.1 MiB
JavaScript
215 lines
1.1 MiB
JavaScript
|
var p=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var v0=p(Uo=>{(function(e){e.parser=function(h,f){return new r(h,f)},e.SAXParser=r,e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function r(h,f){if(!(this instanceof r))return new r(h,f);var E=this;i(E),E.q=E.c="",E.bufferCheckPosition=e.MAX_BUFFER_LENGTH,E.opt=f||{},E.opt.lowercase=E.opt.lowercase||E.opt.lowercasetags,E.looseCase=E.opt.lowercase?"toLowerCase":"toUpperCase",E.tags=[],E.closed=E.closedRoot=E.sawRoot=!1,E.tag=E.error=null,E.strict=!!h,E.noscript=!!(h||E.opt.noscript),E.state=b.BEGIN,E.strictEntities=E.opt.strictEntities,E.ENTITIES=E.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),E.attribList=[],E.opt.xmlns&&(E.ns=Object.create(c)),E.trackPosition=E.opt.position!==!1,E.trackPosition&&(E.position=E.line=E.column=0),V(E,"onready")}Object.create||(Object.create=function(h){function f(){}f.prototype=h;var E=new f;return E}),Object.keys||(Object.keys=function(h){var f=[];for(var E in h)h.hasOwnProperty(E)&&f.push(E);return f});function n(h){for(var f=Math.max(e.MAX_BUFFER_LENGTH,10),E=0,x=0,me=t.length;x<me;x++){var De=h[t[x]].length;if(De>f)switch(t[x]){case"textNode":q(h);break;case"cdata":O(h,"oncdata",h.cdata),h.cdata="";break;case"script":O(h,"onscript",h.script),h.script="";break;default:Ke(h,"Max buffer length exceeded: "+t[x])}E=Math.max(E,De)}var Me=e.MAX_BUFFER_LENGTH-E;h.bufferCheckPosition=Me+h.position}function i(h){for(var f=0,E=t.length;f<E;f++)h[t[f]]=""}function a(h){q(h),h.cdata!==""&&(O(h,"oncdata",h.cdata),h.cdata=""),h.script!==""&&(O(h,"onscript",h.script),h.script="")}r.prototype={end:function(){Qt(this)},write:jo,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var s="[CDATA[",o="DOCTYPE",u="http://www.w3.org/XML/1998/namespace",l="http://www.w3.org/2000/xmlns/",c={xml:u,xmlns:l},d=/[:_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]/,m=/[:_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-]/,g=/[#:_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]/,y=/[#:_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 S(h){return h===" "||h===`
|
||
|
`||h==="\r"||h===" "}function T(h){return h==='"'||h==="'"}function w(h){return h===">"||S(h)}function k(h,f){return h.test(f)}function z(h,f){return!k(h,f)}var b=0;e.STATE={BEGIN:b++,BEGIN_WHITESPACE:b++,TEXT:b++,TEXT_ENTITY:b++,OPEN_WAKA:b++,SGML_DECL:b++,SGML_DECL_QUOTED:b++,DOCTYPE:b++,DOCTYPE_QUOTED:b++,DOCTYPE_DTD:b++,DOCTYPE_DTD_QUOTED:b++,COMMENT_STARTING:b++,COMMENT:b++,COMMENT_ENDING:b++,COMMENT_ENDED:b++,CDATA:b++,CDATA_ENDING:b++,CDATA_ENDING_2:b++,PROC_INST:b++,PROC_INST_BODY:b++,PROC_INST_ENDING:b++,OPEN_TAG:b++,OPEN_TAG_SLASH:b++,ATTRIB:b++,ATTRIB_NAME:b++,ATTRIB_NAME_SAW_WHITE:b++,ATTRIB_VALUE:b++,ATTRIB_VALUE_QUOTED:b++,ATTRIB_VALUE_CLOSED:b++,ATTRIB_VALUE_UNQUOTED:b++,ATTRIB_VALUE_ENTITY_Q:b++,ATTRIB_VALUE_ENTITY_U:b++,CLOSE_TAG:b++,CLOSE_TAG_SAW_WHITE:b++,SCRIPT:b++,SCRIPT_ENDING:b++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(h){var f=e.ENTITIES[h],E=typeof f=="number"?String.fromCharCode(f):f;e.ENTITIES[h]=E});for(var A in e.STATE)e.STATE[e.STATE[A]]=A;b=e.STATE;function V(h,f,E){h[f]&&h[f](E)}function O(h,f,E){h.textNode&&q(h),V(h,f,E)}function q(h){h.textNode=J(h.opt,h.textNode),h.textNode&&V(h,"ontext",h.textNode),h.textNode=""}function J(h,f){return h.trim&&(f=f.trim()),h.normalize&&(f=f.replace(/\s+/g," ")),f}function Ke(h,f){q(h);let E=f+`
|
||
|
Line: `+h.line+`
|
||
|
Column: `+h.column+`
|
||
|
Char: `+h.c,x=new Error(E);return x.reason=f,x.line=h.line,x.column=h.column,h.error=x,V(h,"onerror",x),h}function Qt(h){return h.sawRoot&&!h.closedRoot&&F(h,"Unclosed root tag"),h.state!==b.BEGIN&&h.state!==b.BEGIN_WHITESPACE&&h.state!==b.TEXT&&Ke(h,"Unexpected end"),q(h),h.c="",h.closed=!0,V(h,"onend"),r.call(h,h.strict,h.opt),h}function F(h,f){if(typeof h!="object"||!(h instanceof r))throw new Error("bad call to strictFail");h.strict&&Ke(h,f)}function ye(h){h.strict||(h.tagName=h.tagName[h.looseCase]());var f=h.tags[h.tags.length-1]||h,E=h.tag={name:h.tagName,attributes:{}};h.opt.xmlns&&(E.ns=f.ns),h.attribList.length=0,O(h,"onopentagstart",E)}function ve(h,f){var E=h.indexOf(":"),x=E<0?["",h]:h.split(":"),me=x[0],De=x[1];return f&&h==="xmlns"&&(me="xmlns",De=""),{prefix:me,local:De}}function Be(h){if(h.strict||(h.attribName=h.attribName[h.looseCase]()),h.attribList.indexOf(h.attribName)!==-1||h.tag.attributes.hasOwnProperty(h.attribName)){h.attribName=h.attribValue="";return}if(h.opt.xmlns){var f=ve(h.attribName,!0),E=f.prefix,x=f.local;if(E==="xmlns")if(x==="xml"&&h.attribValue!==u)F(h,"xml: prefix must be bound to "+u+`
|
||
|
Actual: `+h.attribValue);else if(x==="xmlns"&&h.attribValue!==l)F(h,"xmlns: prefix must be bound to "+l+`
|
||
|
Actual: `+h.attribValue);else{var me=h.tag,De=h.tags[h.tags.length-1]||h;me.ns===De.ns&&(me.ns=Object.create(De.ns)),me.ns[x]=h.attribValue}h.attribList.push([h.attribName,h.attribValue])}else h.tag.attributes[h.attribName]=h.attribValue,O(h,"onattribute",{name:h.attribName,value:h.attribValue});h.attribName=h.attribValue=""}function we(h,f){if(h.opt.xmlns){var E=h.tag,x=ve(h.tagName);E.prefix=x.prefix,E.local=x.local,E.uri=E.ns[x.prefix]||"",E.prefix&&!E.uri&&(F(h,"Unbound namespace prefix: "+JSON.stringify(h.tagName)),E.uri=x.prefix);var me=h.tags[h.tags.length-1]||h;E.ns&&me.ns!==E.ns&&Object.keys(E.ns).forEach(function(x0){O(h,"onopennamespace",{prefix:x0,uri:E.ns[x0]})});for(var De=0,Me=h.attribList.length;De<Me;De++){var Zt=h.attribList[De],Jt=Zt[0],Kc=Zt[1],Ni=ve(Jt,!0),Sr=Ni.prefix,rO=Ni.local,S0=Sr===""?"":E.ns[Sr]||"",Xc={name:Jt,value:Kc,prefix:Sr,local:rO,uri:S0};Sr&&Sr!=="xmlns"&&!S0&&(F(h,"Unbound namespace prefix: "+JSON.stringify(Sr)),Xc.uri=Sr),h.tag.attributes[Jt]=Xc,O(h,"onattribute",Xc)}h.attribList.length=0}h.tag.isSelfClosing=!!f,h.sawRoot=!0,h.tags.push(h.tag),O(h,"onopentag",h.tag),f||(!h.noscript&&h.tagName.toLowerCase()==="script"?h.state=b.SCRIPT:h.state=b.TEXT,h.tag=null,h.tagName=""),h.attribName=h.attribValue="",h.attribList.length=0}function bt(h){if(!h.tagName){F(h,"Weird empty close tag."),h.textNode+="</>",h.state=b.TEXT;return}if(h.script){if(h.tagName!=="script"){h.script+="</"+h.tagName+">",h.tagName="",h.state=b.SCRIPT;return}O(h,"onscript",h.script),h.script=""}var f=h.tags.length,E=h.tagName;h.strict||(E=E[h.looseCase]());for(var x=E;f--;){var me=h.tags[f];if(me.name!==x)F(h,"Unexpected close tag");else break}if(f<0){F(h,"Unmatched closing tag: "+h.tagName),h.textNode+="</"+h.tagName+">",h.state=b.TEXT;return}h.tagName=E;for(var De=h.tags.length;De-- >f;){var Me=h.tag=h.tags.pop();h.tagName=h.tag.name,O(h,"onclosetag",h.tagName);var Zt={};for(var Jt in Me.ns)Zt[Jt]=Me.ns[Jt];var Kc=h.tags[h.tags.length-1]||h;h.opt.xmlns&&Me.ns!==Kc.ns&&Object.keys(Me.ns).forEach(function(Ni){var Sr=Me.ns[Ni];O(h,"onclosenamespace",{prefix:Ni,uri:Sr})})}f===0&&(h.closedRoot=!0),h.tagName=h.attribValue=h.attribName="",h.attribList.length=0,h.state=b.TEXT}function yr(h){var f=h.entity,E=f.toLowerCase(),x,me="";return h.ENTITIES[f]?h.ENTITIES[f]:h.ENTITIES[E]?h.ENTITIES[E]:(f=E,f.charAt(0)==="#"&&(f.charAt(1)==="x"?(f=f.slice(2),x=parseInt(f,16),me=x.toString(16)):(f=f.slice(1),x=parseInt(f,10),me=x.toString(10))),f=f.replace(/^0+/,""),isNaN(x)||me.toLowerCase()!==f?(F(h,"Invalid character entity"),"&"+h.entity+";"):String.fromCodePoint(x))}function Qr(h,f){f==="<"?(h.state=b.OPEN_WAKA,h.startTagPosition=h.position):S(f)||(F(h,"Non-whitespace before first tag."),h.textNode=f,h.state=b.TEXT)}function Di(h,f){var E="";return f<h.length&&(E=h.charAt(f)),E}function jo(h){var f=this;if(this.error)throw this.error;if(f.closed)return Ke(f,"Cannot write after close. Assign an onready handler.");if(h===null)return Qt(f);typeof h=="object"&&(h=h.toString());for(var E=0,x="";x=Di(h,E++),f.c=x,!!x;)switch(f.trackPosition&&(f.position++,x===`
|
||
|
`?(f.line++,f.column=0):f.column++),f.state){case b.BEGIN:if(f.state=b.BEGIN_WHITESPACE,x==="\uFEFF")continue;Qr(f,x);continue;case b.BEGIN_WHITESPACE:Qr(f,x);continue;case b.TEXT:if(f.sawRoot&&!f.closedRoot){for(var me=E-1;x&&x!=="<"&&x!=="&";)x=Di(h,E++),x&&f.trackPosition&&(f.position++,x===`
|
||
|
`?(f.line++,f.column=0):f.column++);f.textNode+=h.substring(me,E-1)}x==="<"&&!(f.sawRoot&&f.closedRoot&&!f.strict)?(f.state=b.OPEN_WAKA,f.startTagPosition=f.position):(!S(x)&&(!f.sawRoot||f.closedRoot)&&F(f,"Text data outside of root node."),x==="&"?f.state=b.TEXT_ENTITY:f.textNode+=x);continue;case b.SCRIPT:x==="<"?f.state=b.SCRIPT_ENDING:f.script+=x;continue;case b.SCRIPT_ENDING:x==="/"?f.state=b.CLOSE_TAG:(f.script+="<"+x,f.state=b.SCRIPT);continue;case b.OPEN_WAKA:if(x==="!")f.state=b.SGML_DECL,f.sgmlDecl="";else if(!S(x))if(k(d,x))f.state=b.OPEN_TAG,f.tagName=x;else if(x==="/")f.state=b.CLOSE_TAG,f.tagName="";else if(x==="?")f.state=b.PROC_INST,f.procInstName=f.procInstBody="";else{if(F(f,"Unencoded <"),f.startTagPosition+1<f.position){var De=f.position-f.startTagPosition;x=new Array(De).join(" ")+x}f.textNode+="<"+x,f.state=b.TEXT}continue;case b.SGML_DECL:(f.sgmlDecl+x).toUpperCase()===s?(O(f,"onopencdata"),f.state=b.CDATA,f.sgmlDecl="",f.cdata=""):f.sgmlDecl+x==="--"?(f.state=b.COMMENT,f.comment="",f.sgmlDecl=""):(f.sgmlDecl+x).toUpperCase()===o?(f.state=b.DOCTYPE,(f.doctype||f.sawRoot)&&F(f,"Inappropriately located doctype declaration"),f.doctype="",f.sgmlDecl=""):x===">"?(O(f,"onsgmldeclaration",f.sgmlDecl),f.sgmlDecl="",f.state=b.TEXT):(T(x)&&(f.state=b.SGML_DECL_QUOTED),f.sgmlDecl+=x);continue;case b.SGML_DECL_QUOTED:x===f.q&&(f.state=b.SGML_DECL,f.q=""),f.sgmlDecl+=x;continue;case b.DOCTYPE:x===">"?(f.state=b.TEXT,O(f,"ondoctype",f.doctype),f.doctype=!0):(f.doctype+=x,x==="["?f.state=b.DOCTYPE_DTD:T(x)&&(f.state=b.DOCTYPE_QUOTED,f.q=x));continue;case b.DOCTYPE_QUOTED:f.doctype+=x,x===f.q&&(f.q="",f.state=b.DOCTYPE);continue;case b.DOCTYPE_DTD:f.doctype+=x,x==="]"?f.state=b.DOCTYPE:T(x)&&(f.state=b.DOCTYPE_DTD_QUOTED,f.q=x);continue;case b.DOCTYPE_DTD_QUOTED:f.doctype+=x,x===f.q&&(f.state=b.DOCTYPE_DTD,f.q="");continue;case b.COMMENT:x==="-"?f.state=b.COMMENT_ENDING:f.comment+=x;continue;case b.COMMENT_ENDING:x==="-"?(f.state=b.COMMENT_ENDED,f.comment=J(f.opt,f.comment),f.comment&&O(f,"oncomment",f.comment),f.comment=""):(f.comment+="-"+x,f.state=b.COMMENT);continue;case b.COMMENT_ENDED:x!==">"?(F(f,"Malformed comment"),f.comment+="--"+x,f.state=b.COMMENT):f.state=b.TEXT;continue;case b.CDATA:x==="]"?f.state=b.CDATA_ENDING:f.cdata+=x;continue;case b.CDATA_ENDING:x==="]"?f.state=b.CDATA_ENDING_2:(f.cdata+="]"+x,f.state=b.CDATA);continue;case b.CDATA_ENDING_2:x===">"?(f.cdata&&O(f,"oncdata",f.cdata),O(f,"onclosecdata"),f.cdata="",f.state=b.TEXT):x==="]"?f.cdata+="]":(f.cdata+="]]"+x,f.state=b.CDATA);continue;case b.PROC_INST:x==="?"?f.state=b.PROC_INST_ENDING:S(x)?f.state=b.PROC_INST_BODY:f.procInstName+=x;continue;case b.PROC_INST_BODY:if(!f.procInstBody&&S(x))continue;x==="?"?f.state=b.PROC_INST_ENDING:f.procInstBody+=x;continue;case b.PROC_INST_ENDING:x===">"?(O(f,"onprocessinginstruction",{name:f.procInstName,body:f.procInstBody}),f.procInstName=f.procInstBody="",f.state=b.TEXT):(f.procInstBody+="?"+x,f.state=b.PROC_INST_BODY);continue;case b.OPEN_TAG:k(m,x)?f.tagName+=x:(ye(f),x===">"?we(f):x==="/"?f.state=b.OPEN_TAG_SLASH:(S(x)||F(f,"Invalid character in tag name"),f.state=b.ATTRIB));continue;case b.OPEN_TAG_SLASH:x===">"?(we(f,!0),bt(f)):(F(f,"Forward-slash in opening tag not followed by >"),f.state=b.ATTRIB);continue;case b.ATTRIB:if(S(x))continue;x===">"?we(f):x==="/"?f.state=b.OPEN_TAG_SLASH:k(d,x)?(f.attribName=x,f.attribValue="",f.state=b.ATTRIB_NAME):F(f,"Invalid attribute name");continue;case b.ATTRIB_NAME:x==="="?f.state=b.ATTRIB_VALUE:x===">"?(F(f,"Attribute without value"),f.attribValue=f.attribName,Be(f),we(f)):S(x)?f.state=b.ATTRIB_NAME_SAW_WHITE:k(m,x)?f.attribName+=x:F(f,"Invalid attribute name");continue;case b.ATTRIB_NAME_SAW_WHITE:if(x==="=")f.state=b.ATTRIB_VALUE;else{if(S(x))continue;F(f,"Attribute without value"),f.tag.attributes[f.attribName]="",f.attribValue="",O(f,"onattribute",{name:f.attribName,value:""}),f.attribName="",x===">"?we(f):k(d,x)?(f.attribName=x,f.state=b.ATTRIB_NAME):(F(f,"Invalid attribute name"),f.state=b.ATTRIB)}continue;case b.ATTRIB_VALUE:if(S(x))continue;T(x)?
|
||
|
${w}^`}return` ${y}${d}${c}${m}`}).join(`
|
||
|
`);return`${this.name}: ${this.message}
|
||
|
|
||
|
${o}
|
||
|
`}},Yc=/<!ENTITY\s+(\S+)\s+(?:'([^']+)'|"([^"]+)")\s*>/g,C0={strict:!0,trim:!1,normalize:!1,lowercase:!0,xmlns:!0,position:!0},aO=(e,t)=>{let r=nO.parser(C0.strict,C0),n={type:"root",children:[]},i=n,a=[n],s=o=>{Object.defineProperty(o,"parentNode",{writable:!0,value:i}),i.children.push(o)};return r.ondoctype=o=>{s({type:"doctype",name:"svg",data:{doctype:o}});let l=o.indexOf("[");if(l>=0){Yc.lastIndex=l;let c=Yc.exec(e);for(;c!=null;)r.ENTITIES[c[1]]=c[2]||c[3],c=Yc.exec(e)}},r.onprocessinginstruction=o=>{let u={type:"instruction",name:o.name,value:o.body};s(u)},r.oncomment=o=>{let u={type:"comment",value:o.trim()};s(u)},r.oncdata=o=>{s({type:"cdata",value:o})},r.onopentag=o=>{let u={type:"element",name:o.name,attributes:{},children:[]};for(let[l,c]of Object.entries(o.attributes))u.attributes[l]=c.value;s(u),i=u,a.push(u)},r.ontext=o=>{if(i.type==="element"){if(iO.includes(i.name))s({type:"text",value:o});else if(/\S/.test(o)){let u={type:"text",value:o.trim()};s(u)}}},r.onclosetag=()=>{a.pop(),i=a[a.length-1]},r.onerror=o=>{let u=new $c(o.reason,o.line+1,o.column,e,t);if(o.message.indexOf("Unexpected end")===-1)throw u},r.write(e).close(),n};k0.parseSvg=aO});var A0=p(E0=>{"use strict";var{textElems:sO}=Ce(),oO=e=>lO[e],Zr={doctypeStart:"<!DOCTYPE",doctypeEnd:">",procInstStart:"<?",procInstEnd:"?>",tagOpenStart:"<",tagOpenEnd:">",tagCloseStart:"</",tagCloseEnd:">",tagShortStart:"<",tagShortEnd:"/>",attrStart:'="',attrEnd:'"',commentStart:"<!--",commentEnd:"-->",cdataStart:"<![CDATA[",cdataEnd:"]]>",textStart:"",textEnd:"",indent:4,regEntities:/[&'"<>]/g,regValEntities:/[&"<>]/g,encodeEntity:oO,pretty:!1,useShortTags:!0,eol:"lf",finalNewline:!1},lO={"&":"&","'":"'",'"':""",">":">","<":"<"},uO=(e,t={})=>{let r={...Zr,...t},n=r.indent,i=" ";typeof n=="number"&&Number.isNaN(n)===!1?i=n<0?" ":" ".repeat(n):typeof n=="string"&&(i=n);let a={indent:i,textContext:null,indentLevel:0},s=r.eol==="crlf"?`\r
|
||
|
`:`
|
||
|
`;r.pretty&&(r.doctypeEnd+=s,r.procInstEnd+=s,r.commentEnd+=s,r.cdataEnd+=s,r.tagShortEnd+=s,r.tagOpenEnd+=s,r.tagCloseEnd+=s,r.textEnd+=s);let o=T0(e,r,a);return r.finalNewline&&o.length>0&&o[o.length-1]!==`
|
||
|
`&&(o+=s),o};E0.stringifySvg=uO;var T0=(e,t,r)=>{let n="";r.indentLevel+=1;for(let i of e.children)i.type==="element"&&(n+=fO(i,t,r)),i.type==="text"&&(n+=hO(i,t,r)),i.type==="doctype"&&(n+=cO(i,t)),i.type==="instruction"&&(n+=dO(i,t)),i.type==="comment"&&(n+=pO(i,t)),i.type==="cdata"&&(n+=mO(i,t,r));return r.indentLevel-=1,n},An=(e,t)=>{let r="";return e.pretty&&t.textContext==null&&(r=t.indent.repeat(t.indentLevel-1)),r},cO=(e,t)=>t.doctypeStart+e.data.doctype+t.doctypeEnd,dO=(e,t)=>t.procInstStart+e.name+" "+e.value+t.procInstEnd,pO=(e,t)=>t.commentStart+e.value+t.commentEnd,mO=(e,t,r)=>An(t,r)+t.cdataStart+e.value+t.cdataEnd,fO=(e,t,r)=>{if(e.children.length===0)return t.useShortTags?An(t,r)+t.tagShortStart+e.name+Qc(e,t)+t.tagShortEnd:An(t,r)+t.tagShortStart+e.name+Qc(e,t)+t.tagOpenEnd+t.tagCloseStart+e.name+t.tagCloseEnd;{let n=t.tagOpenStart,i=t.tagOpenEnd,a=t.tagCloseStart,s=t.tagCloseEnd,o=An(t,r),u=An(t,r);r.textContext?(n=Zr.tagOpenStart,i=Zr.tagOpenEnd,a=Zr.tagCloseStart,s=Zr.tagCloseEnd,o=""):sO.includes(e.name)&&(i=Zr.tagOpenEnd,a=Zr.tagCloseStart,u="",r.textContext=e);let l=T0(e,t,r);return r.textContext===e&&(r.textContext=null),o+n+e.name+Qc(e,t)+i+l+u+a+e.name+s}},Qc=(e,t)=>{let r="";for(let[n,i]of Object.entries(e.attributes))if(i!==void 0){let a=i.toString().replace(t.regValEntities,t.encodeEntity);r+=" "+n+t.attrStart+a+t.attrEnd}else r+=" "+n;return r},hO=(e,t,r)=>An(t,r)+t.textStart+e.value.replace(t.regEntities,t.encodeEntity)+(r.textContext?"":t.textEnd)});var Ii=p(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.Doctype=ce.CDATA=ce.Tag=ce.Style=ce.Script=ce.Comment=ce.Directive=ce.Text=ce.Root=ce.isTag=ce.ElementType=void 0;var st;(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"})(st=ce.ElementType||(ce.ElementType={}));function gO(e){return e.type===st.Tag||e.type===st.Script||e.type===st.Style}ce.isTag=gO;ce.Root=st.Root;ce.Text=st.Text;ce.Directive=st.Directive;ce.Comment=st.Comment;ce.Script=st.Script;ce.Style=st.Style;ce.Tag=st.Tag;ce.CDATA=st.CDATA;ce.Doctype=st.Doctype});var td=p(X=>{"use strict";var Wr=X&&X.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ri=X&&X.__assign||function(){return Ri=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ri.apply(this,arguments)};Object.defineProperty(X,"__esModule",{value:!0});X.cloneNode=X.hasChildren=X.isDocument=X.isDirective=X.isComment=X.isText=X.isCDATA=X.isTag=X.Element=X.Document=X.CDATA=X.NodeWithChildren=X.ProcessingInstruction=X.Comment=X.Text=X.DataNode=X.Node=void 0;var Xe=Ii(),Jc=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),ed(this,t)},e}();X.Node=Jc;var Vo=function(e){Wr(t,e);function t(r){var n=e.call(this)||this;return n.data=r,n}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),t}(Jc);X.DataNode=Vo;va
|
||
|
`:Jo(e.children):(0,rr.isCDATA)(e)?Jo(e.children):(0,rr.isText)(e)?e.data:""}Ye.getText=Jo;function hd(e){return Array.isArray(e)?e.map(hd).join(""):(0,rr.hasChildren)(e)&&!(0,rr.isComment)(e)?hd(e.children):(0,rr.isText)(e)?e.data:""}Ye.textContent=hd;function gd(e){return Array.isArray(e)?e.map(gd).join(""):(0,rr.hasChildren)(e)&&(e.type===nq.ElementType.Tag||(0,rr.isCDATA)(e))?gd(e.children):(0,rr.isText)(e)?e.data:""}Ye.innerText=gd});var mb=p(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.prevElementSibling=qe.nextElementSibling=qe.getName=qe.hasAttrib=qe.getAttributeValue=qe.getSiblings=qe.getParent=qe.getChildren=void 0;var yd=Jr();function db(e){return(0,yd.hasChildren)(e)?e.children:[]}qe.getChildren=db;function pb(e){return e.parent||null}qe.getParent=pb;function aq(e){var t,r,n=pb(e);if(n!=null)return db(n);for(var i=[e],a=e.prev,s=e.next;a!=null;)i.unshift(a),t=a,a=t.prev;for(;s!=null;)i.push(s),r=s,s=r.next;return i}qe.getSiblings=aq;function sq(e,t){var r;return(r=e.attribs)===null||r===void 0?void 0:r[t]}qe.getAttributeValue=sq;function oq(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}qe.hasAttrib=oq;function lq(e){return e.name}qe.getName=lq;function uq(e){for(var t,r=e.next;r!==null&&!(0,yd.isTag)(r);)t=r,r=t.next;return r}qe.nextElementSibling=uq;function cq(e){for(var t,r=e.prev;r!==null&&!(0,yd.isTag)(r);)t=r,r=t.prev;return r}qe.prevElementSibling=cq});var fb=p($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.prepend=$e.prependChild=$e.append=$e.appendChild=$e.replaceElement=$e.removeElement=void 0;function Fi(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children,r=t.lastIndexOf(e);r>=0&&t.splice(r,1)}e.next=null,e.prev=null,e.parent=null}$e.removeElement=Fi;function dq(e,t){var r=t.prev=e.prev;r&&(r.next=t);var n=t.next=e.next;n&&(n.prev=t);var i=t.parent=e.parent;if(i){var a=i.children;a[a.lastIndexOf(e)]=t,e.parent=null}}$e.replaceElement=dq;function pq(e,t){if(Fi(t),t.next=null,t.parent=e,e.children.push(t)>1){var r=e.children[e.children.length-2];r.next=t,t.prev=r}else t.prev=null}$e.appendChild=pq;function mq(e,t){Fi(t);var r=e.parent,n=e.next;if(t.next=n,t.prev=e,e.next=t,t.parent=r,n){if(n.prev=t,r){var i=r.children;i.splice(i.lastIndexOf(n),0,t)}}else r&&r.children.push(t)}$e.append=mq;function fq(e,t){if(Fi(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){var r=e.children[1];r.prev=t,t.next=r}else t.next=null}$e.prependChild=fq;function hq(e,t){Fi(t);var r=e.parent;if(r){var n=r.children;n.splice(n.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=r,t.prev=e.prev,t.next=e,e.prev=t}$e.prepend=hq});var Sd=p(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.findAll=Qe.existsOne=Qe.findOne=Qe.findOneChild=Qe.find=Qe.filter=void 0;var el=Jr();function gq(e,t,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),hb(e,Array.isArray(t)?t:[t],r,n)}Qe.filter=gq;function hb(e,t,r,n){for(var i=[],a=[t],s=[0];;){if(s[0]>=a[0].length){if(s.length===1)return i;a.shift(),s.shift();continue}var o=a[0][s[0]++];if(e(o)&&(i.push(o),--n<=0))return i;r&&(0,el.hasChildren)(o)&&o.children.length>0&&(s.unshift(0),a.unshift(o.children))}}Qe.find=hb;function bq(e,t){return t.find(e)}Qe.findOneChild=bq;function gb(e,t,r){r===void 0&&(r=!0);for(var n=null,i=0;i<t.length&&!n;i++){var a=t[i];if((0,el.isTag)(a))e(a)?n=a:r&&a.children.length>0&&(n=gb(e,a.children,!0));else continue}return n}Qe.findOne=gb;function bb(e,t){return t.some(function(r){return(0,el.isTag)(r)&&(e(r)||bb(e,r.children))})}Qe.existsOne=bb;function yq(e,t){for(var r=[],n=[t],i=[0];;){if(i[0]>=n[0].length){if(n.length===1)return r;n.shift(),i.shift();continue}var a=n[0][i[0]++];(0,el.isTag)(a)&&(e(a)&&r.push(a),a.children.length>0&&(i.unshift(0),n.unshift(a.children)))}}Qe.findAll=yq});var xd=p(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.getElementsByTagType=yt.getElementsByTagName=yt.getElementById=yt.getElements=yt.testElement=void 0;var tn=Jr(),rl=Sd(),tl={tag_
|
||
|
:is(button, input, select, textarea, optgroup, option)[disabled],
|
||
|
optgroup[disabled] > option,
|
||
|
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
|
||
|
)`,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])"}});var ml=p(Fe=>{"use strict";var Jb=Fe&&Fe.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},cz=Fe&&Fe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Fe,"__esModule",{value:!0});Fe.subselects=Fe.getNextSiblings=Fe.ensureIsTag=Fe.PLACEHOLDER_ELEMENT=void 0;var Dt=cz(nn()),dz=Cd();Fe.PLACEHOLDER_ELEMENT={};function ey(e,t){return e===Dt.default.falseFunc?Dt.default.falseFunc:function(r){return t.isTag(r)&&e(r)}}Fe.ensureIsTag=ey;function ty(e,t){var r=t.getSiblings(e);if(r.length<=1)return[];var n=r.indexOf(e);return n<0||n===r.length-1?[]:r.slice(n+1).filter(t.isTag)}Fe.getNextSiblings=ty;function Ed(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}}var Td=function(e,t,r,n,i){var a=i(t,Ed(r),n);return a===Dt.default.trueFunc?e:a===Dt.default.falseFunc?Dt.default.falseFunc:function(s){return a(s)&&e(s)}};Fe.subselects={is:Td,matches:Td,where:Td,not:function(e,t,r,n,i){var a=i(t,Ed(r),n);return a===Dt.default.falseFunc?e:a===Dt.default.trueFunc?Dt.default.falseFunc:function(s){return!a(s)&&e(s)}},has:function(e,t,r,n,i){var a=r.adapter,s=Ed(r);s.relativeSelector=!0;var o=t.some(function(m){return m.some(dz.isTraversal)})?[Fe.PLACEHOLDER_ELEMENT]:void 0,u=i(t,s,o);if(u===Dt.default.falseFunc)return Dt.default.falseFunc;var l=ey(u,a);if(o&&u!==Dt.default.trueFunc){var c=u.shouldTestNextSiblings,d=c===void 0?!1:c;return function(m){if(!e(m))return!1;o[0]=m;var g=a.getChildren(m),y=d?Jb(Jb([],g,!0),ty(m,a),!0):g;return a.existsOne(l,y)}}return function(m){return e(m)&&a.existsOne(l,a.getChildren(m))}}}});var qd=p(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.compilePseudoSelector=ar.aliases=ar.pseudos=ar.filters=void 0;var pz=Vi(),Od=$b();Object.defineProperty(ar,"filters",{enumerable:!0,get:function(){return Od.filters}});var Ki=Qb();Object.defineProperty(ar,"pseudos",{enumerable:!0,get:function(){return Ki.pseudos}});var ry=Zb();Object.defineProperty(ar,"aliases",{enumerable:!0,get:function(){return ry.aliases}});var Ad=ml();function mz(e,t,r,n,i){var a,s=t.name,o=t.data;if(Array.isArray(o)){if(!(s in Ad.subselects))throw new Error("Unknown pseudo-class :".concat(s,"(").concat(o,")"));return Ad.subselects[s](e,o,r,n,i)}var u=(a=r.pseudos)===null||a===void 0?void 0:a[s],l=typeof u=="string"?u:ry.aliases[s];if(typeof l=="string"){if(o!=null)throw new Error("Pseudo ".concat(s," doesn't have any arguments"));var c=(0,pz.parse)(l);return Ad.subselects.is(e,c,r,n,i)}if(typeof u=="function")return(0,Ki.verifyPseudoArgs)(u,s,o,1),function(m){return u(m,o)&&e(m)};if(s in Od.filters)return Od.filters[s](e,o,r,n);if(s in Ki.pseudos){var d=Ki.pseudos[s];return(0,Ki.verifyPseudoArgs)(d,s,o,2),function(m){return d(m,r,o)&&e(m)}}throw new Error("Unknown pseudo-class :".concat(s))}ar.compilePseudoSelector=mz});var ny=p(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});fl.compileGeneralSelector=void 0;var fz=jb(),hz=qd(),Nt=Vi();function zd(e,t){var r=t.getParent(e);return r&&t.isTag(r)?r:null}function gz(e,t,r,n,i){var a=r.adapter,s=r.equals;switch(t.type){case
|
||
|
`)}})}Hy.createCustomError=W6});var Qy=p($y=>{"use strict";var P6=Tl(),Yd=100,Ky=60,Xy=" ";function Yy({source:e,line:t,column:r,baseLine:n,baseColumn:i},a){function s(y,S){return l.slice(y,S).map((T,w)=>String(y+w+1).padStart(m)+" |"+T).join(`
|
||
|
`)}let o=`
|
||
|
`.repeat(Math.max(n-1,0)),u=" ".repeat(Math.max(i-1,0)),l=(o+u+e).split(/\r\n?|\n|\f/),c=Math.max(1,t-a)-1,d=Math.min(t+a,l.length+1),m=Math.max(4,String(d).length)+1,g=0;r+=(Xy.length-1)*(l[t-1].substr(0,r-1).match(/\t/g)||[]).length,r>Yd&&(g=r-Ky+3,r=Ky-2);for(let y=c;y<=d;y++)y>=0&&y<l.length&&(l[y]=l[y].replace(/\t/g,Xy),l[y]=(g>0&&l[y].length>g?"\u2026":"")+l[y].substr(g,Yd-2)+(l[y].length>g+Yd-1?"\u2026":""));return[s(c,t),new Array(r+m+2).join("-")+"^",s(t,d)].filter(Boolean).join(`
|
||
|
`).replace(/^(\s+\d+\s+\|\n)+/,"").replace(/\n(\s+\d+\s+\|)+$/,"")}function B6(e,t,r,n,i,a=1,s=1){return Object.assign(P6.createCustomError("SyntaxError",e),{source:t,offset:r,line:n,column:i,sourceFragment(u){return Yy({source:t,line:n,column:i,baseLine:a,baseColumn:s},isNaN(u)?0:u)},get formattedMessage(){return`Parse error: ${e}
|
||
|
`+Yy({source:t,line:n,column:i,baseLine:a,baseColumn:s},2)}})}$y.SyntaxError=B6});var eS=p(Jy=>{"use strict";var Zy=W();function D6(e){let t=this.createList(),r=!1,n={recognizer:e};for(;!this.eof;){switch(this.tokenType){case Zy.Comment:this.next();continue;case Zy.WhiteSpace:r=!0,this.next();continue}let i=e.getNode.call(this,n);if(i===void 0)break;r&&(e.onWhiteSpace&&e.onWhiteSpace.call(this,i,t,n),r=!1),t.push(i)}return r&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,n),t}Jy.readSequence=D6});var oS=p(sS=>{"use strict";var tS=un(),rS=Qy(),N6=aa(),I6=eS(),R6=Hd(),M6=wl(),sa=sr(),Rt=W(),G6=ia(),nS=()=>{},F6=33,j6=35,$d=59,iS=123,aS=0;function U6(e){return function(){return this[e]()}}function Qd(e){let t=Object.create(null);for(let r of Object.keys(e)){let n=e[r],i=n.parse||n;i&&(t[r]=i)}return t}function V6(e){let t={context:Object.create(null),features:Object.assign(Object.create(null),e.features),scope:Object.assign(Object.create(null),e.scope),atrule:Qd(e.atrule),pseudo:Qd(e.pseudo),node:Qd(e.node)};for(let[r,n]of Object.entries(e.parseContext))switch(typeof n){case"function":t.context[r]=n;break;case"string":t.context[r]=U6(n);break}return{config:t,...t,...t.node}}function H6(e){let t="",r="<unknown>",n=!1,i=nS,a=!1,s=new R6.OffsetToLocation,o=Object.assign(new M6.TokenStream,V6(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:I6.readSequence,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket(l){return l===iS?1:0},consumeUntilLeftCurlyBracketOrSemicolon(l){return l===iS||l===$d?1:0},consumeUntilExclamationMarkOrSemicolon(l){return l===F6||l===$d?1:0},consumeUntilSemicolonIncluded(l){return l===$d?2:0},createList(){return new tS.List},createSingleNodeList(l){return new tS.List().appendData(l)},getFirstListNode(l){return l&&l.first},getLastListNode(l){return l&&l.last},parseWithFallback(l,c){let d=this.tokenIndex;try{return l.call(this)}catch(m){if(a)throw m;this.skip(d-this.tokenIndex);let g=c.call(this);return a=!0,i(m,g),a=!1,g}},lookupNonWSType(l){let c;do if(c=this.lookupType(l++),c!==Rt.WhiteSpace&&c!==Rt.Comment)return c;while(c!==aS);return aS},charCodeAt(l){return l>=0&&l<t.length?t.charCodeAt(l):0},substring(l,c){return t.substring(l,c)},substrToCursor(l){return this.source.substring(l,this.tokenStart)},cmpChar(l,c){return sa.cmpChar(t,l,c)},cmpStr(l,c,d){return sa.cmpStr(t,l,c,d)},consume(l){let c=this.tokenStart;return this.eat(l),this.substrToCursor(c)},consumeFunctionName(){let l=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(Rt.Function),l},consumeNumber(l){let c=t.substring(this.tokenStart,sa.consumeNumber(t,this.tokenStart));return this.eat(l),c},eat(l){if(this.tokenType!==l){let c=G6[l].slice(0,-6).replace(/-/g," ").replace(/^./,g=>g.toUpperCase()),d=`${/[[\](){}]/.test(c)?`"${c}"`:c} is expected`,m=this.tokenStart;switch(l){case Rt.Ident:this.tokenType===Rt.Function||this.tokenType===Rt.Url?(m=this.tokenEnd-1,d="Identifier is expected but function found"):d="Identifier is expected";break;case Rt.Hash:this.isDelim(j6)&&(this.next(),m++,d="Name is expected");break;case Rt.Percentage:this.tokenType===Rt.Number&&(m=this.tokenEnd,d="Percent sign is expected");break}this.error(d,m)}this.next()},eatIdent(l){(this.tokenType!==Rt.Ident||this.lookupValue(0,l)===!1)&&this.error(`Identifier "${l}" is expected`),this.next()},eatDelim(l){this.isDelim(l)||this.error(`Delim "${String.fromCharCode(l)}" is expected`),this.next()},getLocation(l,c){return n?s.getLocationRange(l,c,r):null},getLocationFromList(l){if(n){let c=this.getFirstListNode(l),d=this.getLastListNode(l);return s.getLocationRange(c!==null?c.loc.start.offset-s.startOffset:this.tokenStart,d!==null?d.loc.end.offset-s.startOffset:this.tokenStart,r)}return null},error(l,c){let d=typeof c<"u"&&c<t.length?s.getLocation(c):this.eof?s.getLocation(sa.findWhiteSpaceStart(t,t.length-1)):s.getLocation(this.tokenStart);throw new rS.SyntaxError(l||"Unexpected input",t,d.offset,d.line,d.column,s.startLine,s.startColumn)}});return Object.assign(function(l,c){t=l,c=c||{},o.setSource(t,N6.toke
|
||
|
`,LS.WhiteSpace,!0)},emit(u){i+=u},result(){return i}};n&&(typeof n.decorator=="function"&&(s=n.decorator(s)),n.sourceMap&&(s=S_.generateSourceMap(s)),n.mode in op&&(s.tokenBefore=op[n.mode]));let o={node:u=>s.node(u),children:v_,token:(u,l)=>s.token(u,l),tokenize:C_};return s.node(r),s.result()}}WS.createGenerator=k_});var DS=p(BS=>{"use strict";var lp=un();function w_(e){return{fromPlainObject(t){return e(t,{enter(r){r.children&&!(r.children instanceof lp.List)&&(r.children=new lp.List().fromArray(r.children))}}),t},toPlainObject(t){return e(t,{leave(r){r.children&&r.children instanceof lp.List&&(r.children=r.children.toArray())}}),t}}}BS.createConvertor=w_});var FS=p(GS=>{"use strict";var{hasOwnProperty:up}=Object.prototype,ua=function(){};function NS(e){return typeof e=="function"?e:ua}function IS(e,t){return function(r,n,i){r.type===t&&e.call(this,r,n,i)}}function T_(e,t){let r=t.structure,n=[];for(let i in r){if(up.call(r,i)===!1)continue;let a=r[i],s={name:i,type:!1,nullable:!1};Array.isArray(a)||(a=[a]);for(let o of a)o===null?s.nullable=!0:typeof o=="string"?s.type="node":Array.isArray(o)&&(s.type="list");s.type&&n.push(s)}return n.length?{context:t.walkContext,fields:n}:null}function E_(e){let t={};for(let r in e.node)if(up.call(e.node,r)){let n=e.node[r];if(!n.structure)throw new Error("Missed `structure` field in `"+r+"` node type definition");t[r]=T_(r,n)}return t}function RS(e,t){let r=e.fields.slice(),n=e.context,i=typeof n=="string";return t&&r.reverse(),function(a,s,o,u){let l;i&&(l=s[n],s[n]=a);for(let c of r){let d=a[c.name];if(!c.nullable||d){if(c.type==="list"){if(t?d.reduceRight(u,!1):d.reduce(u,!1))return!0}else if(o(d))return!0}}i&&(s[n]=l)}}function MS({StyleSheet:e,Atrule:t,Rule:r,Block:n,DeclarationList:i}){return{Atrule:{StyleSheet:e,Atrule:t,Rule:r,Block:n},Rule:{StyleSheet:e,Atrule:t,Rule:r,Block:n},Declaration:{StyleSheet:e,Atrule:t,Rule:r,Block:n,DeclarationList:i}}}function A_(e){let t=E_(e),r={},n={},i=Symbol("break-walk"),a=Symbol("skip-node");for(let l in t)up.call(t,l)&&t[l]!==null&&(r[l]=RS(t[l],!1),n[l]=RS(t[l],!0));let s=MS(r),o=MS(n),u=function(l,c){function d(w,k,z){let b=m.call(T,w,k,z);return b===i?!0:b===a?!1:!!(y.hasOwnProperty(w.type)&&y[w.type](w,T,d,S)||g.call(T,w,k,z)===i)}let m=ua,g=ua,y=r,S=(w,k,z,b)=>w||d(k,z,b),T={break:i,skip:a,root:l,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof c=="function")m=c;else if(c&&(m=NS(c.enter),g=NS(c.leave),c.reverse&&(y=n),c.visit)){if(s.hasOwnProperty(c.visit))y=c.reverse?o[c.visit]:s[c.visit];else if(!t.hasOwnProperty(c.visit))throw new Error("Bad value `"+c.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(", ")+")");m=IS(m,c.visit),g=IS(g,c.visit)}if(m===ua&&g===ua)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");d(l)};return u.break=i,u.skip=a,u.find=function(l,c){let d=null;return u(l,function(m,g,y){if(c.call(this,m,g,y))return d=m,i}),d},u.findLast=function(l,c){let d=null;return u(l,{reverse:!0,enter(m,g,y){if(c.call(this,m,g,y))return d=m,i}}),d},u.findAll=function(l,c){let d=[];return u(l,function(m,g,y){c.call(this,m,g,y)&&d.push(m)}),d},u}GS.createWalker=A_});var ql=p(jS=>{"use strict";function O_(e){return e}function q_(e){let{min:t,max:r,comma:n}=e;return t===0&&r===0?n?"#?":"*":t===0&&r===1?"?":t===1&&r===0?n?"#":"+":t===1&&r===1?"":(n?"#":"")+(t===r?"{"+t+"}":"{"+t+","+(r!==0?r:"")+"}")}function z_(e){switch(e.type){case"Range":return" ["+(e.min===null?"-\u221E":e.min)+","+(e.max===null?"\u221E":e.max)+"]";default:throw new Error("Unknown node type `"+e.type+"`")}}function __(e,t,r,n){let i=e.combinator===" "||n?e.combinator:" "+e.combinator+" ",a=e.terms.map(s=>cp(s,t,r,n)).join(i);return e.explicit||r?(n||a[0]===","?"[":"[ ")+a+(n?"]":" ]"):a}function cp(e,t,r,n){let i;switch(e.type){case"Group":i=__(e,t,r,n)+(e.disallowEmpty?"!":"");break;case"Multiplier":return cp(e.term,t,r,n)+t(q_(e),e);case"Type":i="<"+e.name+(e.opts?t(z_(e.opts),e.opts):"")+">";break;case"Property":i="<'
|
||
|
syntax: `+i.syntax+`
|
||
|
value: `+(a||"<empty string>")+`
|
||
|
--------`+new Array(i.mismatchOffset+1).join("-")+"^",Object.assign(i,u),i.loc={source:r&&r.loc&&r.loc.source||"<unknown>",start:u,end:l},i};dp.SyntaxMatchError=D_;dp.SyntaxReferenceError=B_});var Wl=p(da=>{"use strict";var _l=new Map,Mn=new Map,Ll=45,N_=M_,I_=G_,R_=mp;function pp(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===Ll&&e.charCodeAt(t+1)===Ll}function mp(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===Ll&&e.charCodeAt(t+1)!==Ll){let r=e.indexOf("-",t+2);if(r!==-1)return e.substring(t,r+1)}return""}function M_(e){if(_l.has(e))return _l.get(e);let t=e.toLowerCase(),r=_l.get(t);if(r===void 0){let n=pp(t,0),i=n?"":mp(t,0);r=Object.freeze({basename:t.substr(i.length),name:t,prefix:i,vendor:i,custom:n})}return _l.set(e,r),r}function G_(e){if(Mn.has(e))return Mn.get(e);let t=e,r=e[0];r==="/"?r=e[1]==="/"?"//":"/":r!=="_"&&r!=="*"&&r!=="$"&&r!=="#"&&r!=="+"&&r!=="&"&&(r="");let n=pp(t,r.length);if(!n&&(t=t.toLowerCase(),Mn.has(t))){let o=Mn.get(t);return Mn.set(e,o),o}let i=n?"":mp(t,r.length),a=t.substr(0,r.length+i.length),s=Object.freeze({basename:t.substr(a.length),name:t.substr(r.length),hack:r,vendor:i,prefix:a,custom:n});return Mn.set(e,s),s}da.isCustomProperty=pp;da.keyword=N_;da.property=I_;da.vendorPrefix=R_});var fp=p(KS=>{"use strict";var F_=["initial","inherit","unset","revert","revert-layer"];KS.cssWideKeywords=F_});var $S=p((jne,YS)=>{"use strict";var XS=St(),Mt=W(),hp=sr(),ma=43,lr=45,gp=110,Gn=!0,j_=!1;function yp(e,t){return e!==null&&e.type===Mt.Delim&&e.value.charCodeAt(0)===t}function pa(e,t,r){for(;e!==null&&(e.type===Mt.WhiteSpace||e.type===Mt.Comment);)e=r(++t);return t}function Gr(e,t,r,n){if(!e)return 0;let i=e.value.charCodeAt(t);if(i===ma||i===lr){if(r)return 0;t++}for(;t<e.value.length;t++)if(!XS.isDigit(e.value.charCodeAt(t)))return 0;return n+1}function bp(e,t,r){let n=!1,i=pa(e,t,r);if(e=r(i),e===null)return t;if(e.type!==Mt.Number)if(yp(e,ma)||yp(e,lr)){if(n=!0,i=pa(r(++i),i,r),e=r(i),e===null||e.type!==Mt.Number)return 0}else return t;if(!n){let a=e.value.charCodeAt(0);if(a!==ma&&a!==lr)return 0}return Gr(e,n?0:1,n,i)}function U_(e,t){let r=0;if(!e)return 0;if(e.type===Mt.Number)return Gr(e,0,j_,r);if(e.type===Mt.Ident&&e.value.charCodeAt(0)===lr){if(!hp.cmpChar(e.value,1,gp))return 0;switch(e.value.length){case 2:return bp(t(++r),r,t);case 3:return e.value.charCodeAt(2)!==lr?0:(r=pa(t(++r),r,t),e=t(r),Gr(e,0,Gn,r));default:return e.value.charCodeAt(2)!==lr?0:Gr(e,3,Gn,r)}}else if(e.type===Mt.Ident||yp(e,ma)&&t(r+1).type===Mt.Ident){if(e.type!==Mt.Ident&&(e=t(++r)),e===null||!hp.cmpChar(e.value,0,gp))return 0;switch(e.value.length){case 1:return bp(t(++r),r,t);case 2:return e.value.charCodeAt(1)!==lr?0:(r=pa(t(++r),r,t),e=t(r),Gr(e,0,Gn,r));default:return e.value.charCodeAt(1)!==lr?0:Gr(e,2,Gn,r)}}else if(e.type===Mt.Dimension){let n=e.value.charCodeAt(0),i=n===ma||n===lr?1:0,a=i;for(;a<e.value.length&&XS.isDigit(e.value.charCodeAt(a));a++);return a===i||!hp.cmpChar(e.value,a,gp)?0:a+1===e.value.length?bp(t(++r),r,t):e.value.charCodeAt(a+1)!==lr?0:a+2===e.value.length?(r=pa(t(++r),r,t),e=t(r),Gr(e,0,Gn,r)):Gr(e,a+2,Gn,r)}return 0}YS.exports=U_});var ex=p((Une,JS)=>{"use strict";var V_=St(),dn=W(),H_=sr(),K_=43,QS=45,ZS=63,X_=117;function Sp(e,t){return e!==null&&e.type===dn.Delim&&e.value.charCodeAt(0)===t}function Y_(e,t){return e.value.charCodeAt(0)===t}function fa(e,t,r){let n=0;for(let i=t;i<e.value.length;i++){let a=e.value.charCodeAt(i);if(a===QS&&r&&n!==0)return fa(e,t+n+1,!1),6;if(!V_.isHexDigit(a)||++n>6)return 0}return n}function Pl(e,t,r){if(!e)return 0;for(;Sp(r(t),ZS);){if(++e>6)return 0;t++}return t}function $_(e,t){let r=0;if(e===null||e.type!==dn.Ident||!H_.cmpChar(e.value,0,X_)||(e=t(++r),e===null))return 0;if(Sp(e,K_))return e=t(++r),e===null?0:e.type===dn.Ident?Pl(fa(e,0,!0),++r,t):Sp(e,ZS)?Pl(1,++r,t):0;if(e.type===dn.Number){let n=fa(e,1,!0);return n===0?0:(e=t(++r),e===null?r:e.type===dn.Dimension||e.type===dn.Number?!Y_(e,QS)||!fa(e,1,!1)?0:r+1:Pl(n,r,t))}return e.type===dn.Dimension?Pl(fa(e,1,!0),++r,t):0}JS.exports=$_});var ux=p(ha=>{"use strict";var Q
|
||
|
`+t+`
|
||
|
--`+new Array((r||t.length)+1).join("-")+"^"})}mx.SyntaxError=TL});var hx=p(fx=>{"use strict";var EL=Cp(),AL=9,OL=10,qL=12,zL=13,_L=32,kp=class{constructor(t){this.str=t,this.pos=0}charCodeAt(t){return t<this.str.length?this.str.charCodeAt(t):0}charCode(){return this.charCodeAt(this.pos)}nextCharCode(){return this.charCodeAt(this.pos+1)}nextNonWsCode(t){return this.charCodeAt(this.findWsEnd(t))}skipWs(){this.pos=this.findWsEnd(this.pos)}findWsEnd(t){for(;t<this.str.length;t++){let r=this.str.charCodeAt(t);if(r!==zL&&r!==OL&&r!==qL&&r!==_L&&r!==AL)break}return t}substringToPos(t){return this.str.substring(this.pos,this.pos=t)}eat(t){this.charCode()!==t&&this.error("Expect `"+String.fromCharCode(t)+"`"),this.pos++}peek(){return this.pos<this.str.length?this.str.charAt(this.pos++):""}error(t){throw new EL.SyntaxError(t,this.str,this.pos)}};fx.Tokenizer=kp});var Fl=p(Ox=>{"use strict";var LL=hx(),WL=9,PL=10,BL=12,DL=13,NL=32,kx=33,Ep=35,gx=38,Nl=39,wx=40,IL=41,Tx=42,Ap=43,Op=44,bx=45,qp=60,Ex=62,Tp=63,RL=64,Gl=91,zp=93,Il=123,yx=124,Sx=125,xx=8734,ga=new Uint8Array(128).map((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0),vx={" ":1,"&&":2,"||":3,"|":4};function Rl(e){return e.substringToPos(e.findWsEnd(e.pos))}function Fn(e){let t=e.pos;for(;t<e.str.length;t++){let r=e.str.charCodeAt(t);if(r>=128||ga[r]===0)break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function Ml(e){let t=e.pos;for(;t<e.str.length;t++){let r=e.str.charCodeAt(t);if(r<48||r>57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function ML(e){let t=e.str.indexOf("'",e.pos+1);return t===-1&&(e.pos=e.str.length,e.error("Expect an apostrophe")),e.substringToPos(t+1)}function Cx(e){let t=null,r=null;return e.eat(Il),e.skipWs(),t=Ml(e),e.skipWs(),e.charCode()===Op?(e.pos++,e.skipWs(),e.charCode()!==Sx&&(r=Ml(e),e.skipWs())):r=t,e.eat(Sx),{min:Number(t),max:r?Number(r):0}}function GL(e){let t=null,r=!1;switch(e.charCode()){case Tx:e.pos++,t={min:0,max:0};break;case Ap:e.pos++,t={min:1,max:0};break;case Tp:e.pos++,t={min:0,max:1};break;case Ep:e.pos++,r=!0,e.charCode()===Il?t=Cx(e):e.charCode()===Tp?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case Il:t=Cx(e);break;default:return null}return{type:"Multiplier",comma:r,min:t.min,max:t.max,term:null}}function jn(e,t){let r=GL(e);return r!==null?(r.term=t,e.charCode()===Ep&&e.charCodeAt(e.pos-1)===Ap?jn(e,r):r):t}function wp(e){let t=e.peek();return t===""?null:{type:"Token",value:t}}function FL(e){let t;return e.eat(qp),e.eat(Nl),t=Fn(e),e.eat(Nl),e.eat(Ex),jn(e,{type:"Property",name:t})}function jL(e){let t=null,r=null,n=1;return e.eat(Gl),e.charCode()===bx&&(e.peek(),n=-1),n==-1&&e.charCode()===xx?e.peek():(t=n*Number(Ml(e)),ga[e.charCode()]!==0&&(t+=Fn(e))),Rl(e),e.eat(Op),Rl(e),e.charCode()===xx?e.peek():(n=1,e.charCode()===bx&&(e.peek(),n=-1),r=n*Number(Ml(e)),ga[e.charCode()]!==0&&(r+=Fn(e))),e.eat(zp),{type:"Range",min:t,max:r}}function UL(e){let t,r=null;return e.eat(qp),t=Fn(e),e.charCode()===wx&&e.nextCharCode()===IL&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===Gl&&(Rl(e),r=jL(e)),e.eat(Ex),jn(e,{type:"Type",name:t,opts:r})}function VL(e){let t=Fn(e);return e.charCode()===wx?(e.pos++,{type:"Function",name:t}):jn(e,{type:"Keyword",name:t})}function HL(e,t){function r(i,a){return{type:"Group",terms:i,combinator:a,disallowEmpty:!1,explicit:!1}}let n;for(t=Object.keys(t).sort((i,a)=>vx[i]-vx[a]);t.length>0;){n=t.shift();let i=0,a=0;for(;i<e.length;i++){let s=e[i];s.type==="Combinator"&&(s.value===n?(a===-1&&(a=i-1),e.splice(i,1),i--):(a!==-1&&i-a>1&&(e.splice(a,i-a,r(e.slice(a,i),n)),i=a+1),a=-1))}a!==-1&&t.length&&e.splice(a,i-a,r(e.slice(a,i),n))}return n}function Ax(e){let t=[],r={},n,i=null,a=e.pos;for(;n=XL(e);)n.type!=="Spaces"&&(n.type==="Combinator"?((i===null||i.type==="Combinator")&&(e.pos=a,e.error("Unexpected combinator")),r[n.value]=!0):i!==null&&i.type!=="Combinator"&&(r[" "]=!0,t.push({type:"Combinator",value:" "})),t.push(n),i=n,a=e.pos);return i!==null&&i.type==="Combinator"&&(e.pos-=a,e.error("Unexpected combinator")),{type:"Grou
|
||
|
[ system: <counter-system>; ] ||
|
||
|
[ symbols: <counter-symbols>; ] ||
|
||
|
[ additive-symbols: <additive-symbols>; ] ||
|
||
|
[ negative: <negative-symbol>; ] ||
|
||
|
[ prefix: <prefix>; ] ||
|
||
|
[ suffix: <suffix>; ] ||
|
||
|
[ range: <range>; ] ||
|
||
|
[ pad: <padding>; ] ||
|
||
|
[ speak-as: <speak-as>; ] ||
|
||
|
[ fallback: <counter-style-name>; ]
|
||
|
}`,interfaces:["CSSCounterStyleRule"],groups:["CSS Counter Styles"],descriptors:{"additive-symbols":{syntax:"[ <integer> && <symbol> ]#",media:"all",initial:"n/a (required)",percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"},fallback:{syntax:"<counter-style-name>",media:"all",initial:"decimal",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},negative:{syntax:"<symbol> <symbol>?",media:"all",initial:'"-" hyphen-minus',percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"},pad:{syntax:"<integer> && <symbol>",media:"all",initial:'0 ""',percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},prefix:{syntax:"<symbol>",media:"all",initial:'""',percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},range:{syntax:"[ [ <integer> | infinite ]{2} ]# | auto",media:"all",initial:"auto",percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"},"speak-as":{syntax:"auto | bullets | numbers | words | spell-out | <counter-style-name>",media:"all",initial:"auto",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},suffix:{syntax:"<symbol>",media:"all",initial:'". "',percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},symbols:{syntax:"<symbol>+",media:"all",initial:"n/a (required)",percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"},system:{syntax:"cyclic | numeric | alphabetic | symbolic | additive | [ fixed <integer>? ] | [ extends <counter-style-name> ]",media:"all",initial:"symbolic",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"}},status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@counter-style"},"@document":{syntax:`@document [ <url> | url-prefix(<string>) | domain(<string>) | media-document(<string>) | regexp(<string>) ]# {
|
||
|
<group-rule-body>
|
||
|
}`,interfaces:["CSSGroupingRule","CSSConditionRule"],groups:["CSS Conditional Rules"],status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@document"},"@font-palette-values":{syntax:"@font-palette-values <dashed-ident> { <declaration-list> }",groups:["CSS Fonts"],descriptors:{"base-palette":{syntax:"light | dark | <integer [0,\u221E]>",media:"all",initial:"n/a (required)",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},"font-family":{syntax:"<family-name>#",media:"all",initial:"n/a (required)",percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"},"override-colors":{syntax:"[ <integer [0,\u221E]> <absolute-color-base> ]#",media:"all",initial:"n/a (required)",percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"}},status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@font-palette-values"},"@font-face":{syntax:`@font-face {
|
||
|
[ font-family: <family-name>; ] ||
|
||
|
[ src: <src>; ] ||
|
||
|
[ unicode-range: <unicode-range>; ] ||
|
||
|
[ font-variant: <font-variant>; ] ||
|
||
|
[ font-feature-settings: <font-feature-settings>; ] ||
|
||
|
[ font-variation-settings: <font-variation-settings>; ] ||
|
||
|
[ font-stretch: <font-stretch>; ] ||
|
||
|
[ font-weight: <font-weight>; ] ||
|
||
|
[ font-style: <font-style>; ] ||
|
||
|
[ size-adjust: <size-adjust>; ] ||
|
||
|
[ ascent-override: <ascent-override>; ] ||
|
||
|
[ descent-override: <descent-override>; ] ||
|
||
|
[ line-gap-override: <line-gap-override>; ]
|
||
|
}`,interfaces:["CSSFontFaceRule"],groups:["CSS Fonts"],descriptors:{"ascent-override":{syntax:"normal | <percentage>",media:"all",initial:"normal",percentages:"asSpecified",computed:"asSpecified",order:"orderOfAppearance",status:"experimental"},"descent-override":{syntax:"normal | <percentage>",media:"all",initial:"normal",percentages:"asSpecified",computed:"asSpecified",order:"orderOfAppearance",status:"experimental"},"font-display":{syntax:"[ auto | block | swap | fallback | optional ]",media:"visual",percentages:"no",initial:"auto",computed:"asSpecified",order:"uniqueOrder",status:"experimental"},"font-family":{syntax:"<family-name>",media:"all",initial:"n/a (required)",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},"font-feature-settings":{syntax:"normal | <feature-tag-value>#",media:"all",initial:"normal",percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"},"font-variation-settings":{syntax:"normal | [ <string> <number> ]#",media:"all",initial:"normal",percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"},"font-stretch":{syntax:"<font-stretch-absolute>{1,2}",media:"all",initial:"normal",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},"font-style":{syntax:"normal | italic | oblique <angle>{0,2}",media:"all",initial:"normal",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},"font-weight":{syntax:"<font-weight-absolute>{1,2}",media:"all",initial:"normal",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},"line-gap-override":{syntax:"normal | <percentage>",media:"all",initial:"normal",percentages:"asSpecified",computed:"asSpecified",order:"orderOfAppearance",status:"experimental"},"size-adjust":{syntax:"<percentage>",media:"all",initial:"100%",percentages:"asSpecified",computed:"asSpecified",order:"orderOfAppearance",status:"experimental"},src:{syntax:"[ <url> [ format( <string># ) ]? | local( <family-name> ) ]#",media:"all",initial:"n/a (required)",percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"},"unicode-range":{syntax:"<unicode-range>#",media:"all",initial:"U+0-10FFFF",percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"}},status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@font-face"},"@font-feature-values":{syntax:`@font-feature-values <family-name># {
|
||
|
<feature-value-block-list>
|
||
|
}`,interfaces:["CSSFontFeatureValuesRule"],groups:["CSS Fonts"],status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@font-feature-values"},"@import":{syntax:`@import [ <string> | <url> ]
|
||
|
[ layer | layer(<layer-name>) ]?
|
||
|
[ supports( [ <supports-condition> | <declaration> ] ) ]?
|
||
|
<media-query-list>? ;`,groups:["CSS Conditional Rules","Media Queries"],status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@import"},"@keyframes":{syntax:`@keyframes <keyframes-name> {
|
||
|
<keyframe-block-list>
|
||
|
}`,interfaces:["CSSKeyframeRule","CSSKeyframesRule"],groups:["CSS Animations"],status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@keyframes"},"@layer":{syntax:`@layer [ <layer-name># | <layer-name>? {
|
||
|
<stylesheet>
|
||
|
} ]`,interfaces:["CSSLayerBlockRule","CSSLayerStatementRule"],groups:["CSS Cascading and Inheritance"],status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@layer"},"@media":{syntax:`@media <media-query-list> {
|
||
|
<group-rule-body>
|
||
|
}`,interfaces:["CSSGroupingRule","CSSConditionRule","CSSMediaRule","CSSCustomMediaRule"],groups:["CSS Conditional Rules","Media Queries"],status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@media"},"@namespace":{syntax:"@namespace <namespace-prefix>? [ <string> | <url> ];",groups:["CSS Namespaces"],status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@namespace"},"@page":{syntax:`@page <page-selector-list> {
|
||
|
<page-body>
|
||
|
}`,interfaces:["CSSPageRule"],groups:["CSS Pages"],descriptors:{bleed:{syntax:"auto | <length>",media:["visual","paged"],initial:"auto",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},marks:{syntax:"none | [ crop || cross ]",media:["visual","paged"],initial:"none",percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"},"page-orientation":{syntax:"upright | rotate-left | rotate-right ",media:["visual","paged"],initial:"upright",percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"},size:{syntax:"<length>{1,2} | auto | [ <page-size> || [ portrait | landscape ] ]",media:["visual","paged"],initial:"auto",percentages:"no",computed:"asSpecifiedRelativeToAbsoluteLengths",order:"orderOfAppearance",status:"standard"}},status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@page"},"@position-try":{syntax:`@position-try <dashed-ident> {
|
||
|
<declaration-list>
|
||
|
}`,interfaces:["CSSPositionTryRule"],groups:["CSS Positioning"],status:"experimental",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@position-try"},"@property":{syntax:`@property <custom-property-name> {
|
||
|
<declaration-list>
|
||
|
}`,interfaces:["CSS","CSSPropertyRule"],groups:["CSS Houdini"],descriptors:{syntax:{syntax:"<string>",media:"all",percentages:"no",initial:"n/a (required)",computed:"asSpecified",order:"uniqueOrder",status:"experimental"},inherits:{syntax:"true | false",media:"all",percentages:"no",initial:"auto",computed:"asSpecified",order:"uniqueOrder",status:"experimental"},"initial-value":{syntax:"<declaration-value>?",media:"all",initial:"n/a (required)",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"experimental"}},status:"experimental",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@property"},"@scope":{syntax:`@scope [(<scope-start>)]? [to (<scope-end>)]? {
|
||
|
<rule-list>
|
||
|
}`,groups:["CSS Conditional Rules"],status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@scope"},"@starting-style":{syntax:`@starting-style {
|
||
|
<declaration-list> | <group-rule-body>
|
||
|
}`,interfaces:["CSSStartingStyleRule"],groups:["CSS Animations"],status:"experimental",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@starting-style"},"@supports":{syntax:`@supports <supports-condition> {
|
||
|
<group-rule-body>
|
||
|
}`,interfaces:["CSSGroupingRule","CSSConditionRule","CSSSupportsRule"],groups:["CSS Conditional Rules"],status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@supports"}}});var pv=p((uie,M4)=>{M4.exports={"--*":{syntax:"<declaration-value>",media:"all",inherited:!0,animationType:"discrete",percentages:"no",groups:["CSS Variables"],initial:"seeProse",appliesto:"allElements",computed:"asSpecifiedWithVarsSubstituted",order:"perGrammar",status:"experimental",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/--*"},"-ms-accelerator":{syntax:"false | true",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"false",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-accelerator"},"-ms-block-progression":{syntax:"tb | rl | bt | lr",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"tb",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-block-progression"},"-ms-content-zoom-chaining":{syntax:"none | chained",media:"interactive",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"none",appliesto:"nonReplacedBlockAndInlineBlockElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-chaining"},"-ms-content-zooming":{syntax:"none | zoom",media:"interactive",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"zoomForTheTopLevelNoneForTheRest",appliesto:"nonReplacedBlockAndInlineBlockElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zooming"},"-ms-content-zoom-limit":{syntax:"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>",media:"interactive",inherited:!1,animationType:"discrete",percentages:["-ms-content-zoom-limit-max","-ms-content-zoom-limit-min"],groups:["Microsoft Extensions"],initial:["-ms-content-zoom-limit-max","-ms-content-zoom-limit-min"],appliesto:"nonReplacedBlockAndInlineBlockElements",computed:["-ms-content-zoom-limit-max","-ms-content-zoom-limit-min"],order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-limit"},"-ms-content-zoom-limit-max":{syntax:"<percentage>",media:"interactive",inherited:!1,animationType:"discrete",percentages:"maxZoomFactor",groups:["Microsoft Extensions"],initial:"400%",appliesto:"nonReplacedBlockAndInlineBlockElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-limit-max"},"-ms-content-zoom-limit-min":{syntax:"<percentage>",media:"interactive",inherited:!1,animationType:"discrete",percentages:"minZoomFactor",groups:["Microsoft Extensions"],initial:"100%",appliesto:"nonReplacedBlockAndInlineBlockElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-limit-min"},"-ms-content-zoom-snap":{syntax:"<'-ms-content-zoom-snap-type'> || <'-ms-content-zoom-snap-points'>",media:"interactive",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:["-ms-content-zoom-snap-type","-ms-content-zoom-snap-points"],appliesto:"nonReplacedBlockAndInlineBlockElements",computed:["-ms-content-zoom-snap-type","-ms-content-zoom-snap-points"],order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-snap"},"-ms-content-zoom-snap-points":{syntax:"snapInterval( <percentage>, <percentage> ) | snapList( <percentage># )",media:"interactive",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"snapInterval(0%, 100%)",appliesto:"nonReplacedBlockAndInlineBlockElements",computed:"asSp
|
||
|
[ <line-names>? [ <fixed-size> | <fixed-repeat> ] ]* <line-names>?`},axis:{syntax:"block | inline | vertical | horizontal"},"baseline-position":{syntax:"[ first | last ]? baseline"},"basic-shape":{syntax:"<inset()> | <circle()> | <ellipse()> | <polygon()> | <path()>"},"bg-image":{syntax:"none | <image>"},"bg-layer":{syntax:"<bg-image> || <bg-position> [ / <bg-size> ]? || <repeat-style> || <attachment> || <box> || <box>"},"bg-position":{syntax:"[ [ left | center | right | top | bottom | <length-percentage> ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ] | [ center | [ left | right ] <length-percentage>? ] && [ center | [ top | bottom ] <length-percentage>? ] ]"},"bg-size":{syntax:"[ <length-percentage> | auto ]{1,2} | cover | contain"},"blur()":{syntax:"blur( <length> )"},"blend-mode":{syntax:"normal | multiply | screen | overlay | darken | lighten | color-dodge | color-burn | hard-light | soft-light | difference | exclusion | hue | saturation | color | luminosity"},box:{syntax:"border-box | padding-box | content-box"},"brightness()":{syntax:"brightness( <number-percentage> )"},"calc()":{syntax:"calc( <calc-sum> )"},"calc-sum":{syntax:"<calc-product> [ [ '+' | '-' ] <calc-product> ]*"},"calc-product":{syntax:"<calc-value> [ '*' <calc-value> | '/' <number> ]*"},"calc-value":{syntax:"<number> | <dimension> | <percentage> | <calc-constant> | ( <calc-sum> )"},"calc-constant":{syntax:"e | pi | infinity | -infinity | NaN"},"cf-final-image":{syntax:"<image> | <color>"},"cf-mixing-image":{syntax:"<percentage>? && <image>"},"circle()":{syntax:"circle( [ <shape-radius> ]? [ at <position> ]? )"},"clamp()":{syntax:"clamp( <calc-sum>#{3} )"},"class-selector":{syntax:"'.' <ident-token>"},"clip-source":{syntax:"<url>"},color:{syntax:"<rgb()> | <rgba()> | <hsl()> | <hsla()> | <hwb()> | <lab()> | <lch()> | <light-dark()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>"},"color-stop":{syntax:"<color-stop-length> | <color-stop-angle>"},"color-stop-angle":{syntax:"<angle-percentage>{1,2}"},"color-stop-length":{syntax:"<length-percentage>{1,2}"},"color-stop-list":{syntax:"[ <linear-color-stop> [, <linear-color-hint>]? ]# , <linear-color-stop>"},combinator:{syntax:"'>' | '+' | '~' | [ '||' ]"},"common-lig-values":{syntax:"[ common-ligatures | no-common-ligatures ]"},"compat-auto":{syntax:"searchfield | textarea | push-button | slider-horizontal | checkbox | radio | square-button | menulist | listbox | meter | progress-bar | button"},"composite-style":{syntax:"clear | copy | source-over | source-in | source-out | source-atop | destination-over | destination-in | destination-out | destination-atop | xor"},"compositing-operator":{syntax:"add | subtract | intersect | exclude"},"compound-selector":{syntax:"[ <type-selector>? <subclass-selector>* [ <pseudo-element-selector> <pseudo-class-selector>* ]* ]!"},"compound-selector-list":{syntax:"<compound-selector>#"},"complex-selector":{syntax:"<compound-selector> [ <combinator>? <compound-selector> ]*"},"complex-selector-list":{syntax:"<complex-selector>#"},"conic-gradient()":{syntax:"conic-gradient( [ from <angle> ]? [ at <position> ]?, <angular-color-stop-list> )"},"contextual-alt-values":{syntax:"[ contextual | no-contextual ]"},"content-distribution":{syntax:"space-between | space-around | space-evenly | stretch"},"content-list":{syntax:"[ <string> | contents | <image> | <counter> | <quote> | <target> | <leader()> ]+"},"content-position":{syntax:"center | start | end | flex-start | flex-end"},"content-replacement":{syntax:"<image>"},"contrast()":{syntax:"contrast( [ <number-percentage> ] )"},"cos()":{syntax:"cos( <calc-sum> )"},counter:{syntax:"<counter()> | <counters()>"},"counter()":{syntax:"counter( <counter-name>, <counter-style>? )"},"counter-name":{syntax:"<custom-ident>"},"counter-style":{syntax:"<counter-style-name> | symbols()"},"counter-style-name":{syntax:"<custom-ident>"},"counters()":{syntax:"counters( <counter-name>, <string>, <counter-style>? )"},"cross-fade()":{syntax:"cross-fade( <cf-mixing-image> , <cf-fi
|
||
|
<declaration-list>
|
||
|
}`},"keyframe-block-list":{syntax:"<keyframe-block>+"},"keyframe-selector":{syntax:"from | to | <percentage> | <timeline-range-name> <percentage>"},"lab()":{syntax:"lab( [<percentage> | <number> | none] [ <percentage> | <number> | none] [ <percentage> | <number> | none] [ / [<alpha-value> | none] ]? )"},"layer()":{syntax:"layer( <layer-name> )"},"layer-name":{syntax:"<ident> [ '.' <ident> ]*"},"lch()":{syntax:"lch( [<percentage> | <number> | none] [ <percentage> | <number> | none] [ <hue> | none] [ / [<alpha-value> | none] ]? )"},"leader()":{syntax:"leader( <leader-type> )"},"leader-type":{syntax:"dotted | solid | space | <string>"},"length-percentage":{syntax:"<length> | <percentage>"},"light-dark()":{syntax:"light-dark( <color>, <color> )"},"line-names":{syntax:"'[' <custom-ident>* ']'"},"line-name-list":{syntax:"[ <line-names> | <name-repeat> ]+"},"line-style":{syntax:"none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset"},"line-width":{syntax:"<length> | thin | medium | thick"},"linear-color-hint":{syntax:"<length-percentage>"},"linear-color-stop":{syntax:"<color> <color-stop-length>?"},"linear-gradient()":{syntax:"linear-gradient( [ <angle> | to <side-or-corner> ]? , <color-stop-list> )"},"log()":{syntax:"log( <calc-sum>, <calc-sum>? )"},"mask-layer":{syntax:"<mask-reference> || <position> [ / <bg-size> ]? || <repeat-style> || <geometry-box> || [ <geometry-box> | no-clip ] || <compositing-operator> || <masking-mode>"},"mask-position":{syntax:"[ <length-percentage> | left | center | right ] [ <length-percentage> | top | center | bottom ]?"},"mask-reference":{syntax:"none | <image> | <mask-source>"},"mask-source":{syntax:"<url>"},"masking-mode":{syntax:"alpha | luminance | match-source"},"matrix()":{syntax:"matrix( <number>#{6} )"},"matrix3d()":{syntax:"matrix3d( <number>#{16} )"},"max()":{syntax:"max( <calc-sum># )"},"media-and":{syntax:"<media-in-parens> [ and <media-in-parens> ]+"},"media-condition":{syntax:"<media-not> | <media-and> | <media-or> | <media-in-parens>"},"media-condition-without-or":{syntax:"<media-not> | <media-and> | <media-in-parens>"},"media-feature":{syntax:"( [ <mf-plain> | <mf-boolean> | <mf-range> ] )"},"media-in-parens":{syntax:"( <media-condition> ) | <media-feature> | <general-enclosed>"},"media-not":{syntax:"not <media-in-parens>"},"media-or":{syntax:"<media-in-parens> [ or <media-in-parens> ]+"},"media-query":{syntax:"<media-condition> | [ not | only ]? <media-type> [ and <media-condition-without-or> ]?"},"media-query-list":{syntax:"<media-query>#"},"media-type":{syntax:"<ident>"},"mf-boolean":{syntax:"<mf-name>"},"mf-name":{syntax:"<ident>"},"mf-plain":{syntax:"<mf-name> : <mf-value>"},"mf-range":{syntax:`<mf-name> [ '<' | '>' ]? '='? <mf-value>
|
||
|
| <mf-value> [ '<' | '>' ]? '='? <mf-name>
|
||
|
| <mf-value> '<' '='? <mf-name> '<' '='? <mf-value>
|
||
|
| <mf-value> '>' '='? <mf-name> '>' '='? <mf-value>`},"mf-value":{syntax:"<number> | <dimension> | <ident> | <ratio>"},"min()":{syntax:"min( <calc-sum># )"},"minmax()":{syntax:"minmax( [ <length-percentage> | min-content | max-content | auto ] , [ <length-percentage> | <flex> | min-content | max-content | auto ] )"},"mod()":{syntax:"mod( <calc-sum>, <calc-sum> )"},"name-repeat":{syntax:"repeat( [ <integer [1,\u221E]> | auto-fill ], <line-names>+ )"},"named-color":{syntax:"transparent | aliceblue | antiquewhite | aqua | aquamarine | azure | beige | bisque | black | blanchedalmond | blue | blueviolet | brown | burlywood | cadetblue | chartreuse | chocolate | coral | cornflowerblue | cornsilk | crimson | cyan | darkblue | darkcyan | darkgoldenrod | darkgray | darkgreen | darkgrey | darkkhaki | darkmagenta | darkolivegreen | darkorange | darkorchid | darkred | darksalmon | darkseagreen | darkslateblue | darkslategray | darkslategrey | darkturquoise | darkviolet | deeppink | deepskyblue | dimgray | dimgrey | dodgerblue | firebrick | floralwhite | forestgreen | fuchsia | gainsboro | ghostwhite | gold | goldenrod | gray | green | greenyellow | grey | honeydew | hotpink | indianred | indigo | ivory | khaki | lavender | lavenderblush | lawngreen | lemonchiffon | lightblue | lightcoral | lightcyan | lightgoldenrodyellow | lightgray | lightgreen | lightgrey | lightpink | lightsalmon | lightseagreen | lightskyblue | lightslategray | lightslategrey | lightsteelblue | lightyellow | lime | limegreen | linen | magenta | maroon | mediumaquamarine | mediumblue | mediumorchid | mediumpurple | mediumseagreen | mediumslateblue | mediumspringgreen | mediumturquoise | mediumvioletred | midnightblue | mintcream | mistyrose | moccasin | navajowhite | navy | oldlace | olive | olivedrab | orange | orangered | orchid | palegoldenrod | palegreen | paleturquoise | palevioletred | papayawhip | peachpuff | peru | pink | plum | powderblue | purple | rebeccapurple | red | rosybrown | royalblue | saddlebrown | salmon | sandybrown | seagreen | seashell | sienna | silver | skyblue | slateblue | slategray | slategrey | snow | springgreen | steelblue | tan | teal | thistle | tomato | turquoise | violet | wheat | white | whitesmoke | yellow | yellowgreen"},"namespace-prefix":{syntax:"<ident>"},"ns-prefix":{syntax:"[ <ident-token> | '*' ]? '|'"},"number-percentage":{syntax:"<number> | <percentage>"},"numeric-figure-values":{syntax:"[ lining-nums | oldstyle-nums ]"},"numeric-fraction-values":{syntax:"[ diagonal-fractions | stacked-fractions ]"},"numeric-spacing-values":{syntax:"[ proportional-nums | tabular-nums ]"},nth:{syntax:"<an-plus-b> | even | odd"},"opacity()":{syntax:"opacity( [ <number-percentage> ] )"},"overflow-position":{syntax:"unsafe | safe"},"outline-radius":{syntax:"<length> | <percentage>"},"page-body":{syntax:"<declaration>? [ ; <page-body> ]? | <page-margin-box> <page-body>"},"page-margin-box":{syntax:"<page-margin-box-type> '{' <declaration-list> '}'"},"page-margin-box-type":{syntax:"@top-left-corner | @top-left | @top-center | @top-right | @top-right-corner | @bottom-left-corner | @bottom-left | @bottom-center | @bottom-right | @bottom-right-corner | @left-top | @left-middle | @left-bottom | @right-top | @right-middle | @right-bottom"},"page-selector-list":{syntax:"[ <page-selector># ]?"},"page-selector":{syntax:"<pseudo-page>+ | <ident> <pseudo-page>*"},"page-size":{syntax:"A5 | A4 | A3 | B5 | B4 | JIS-B5 | JIS-B4 | letter | legal | ledger"},"path()":{syntax:"path( [ <fill-rule>, ]? <string> )"},"paint()":{syntax:"paint( <ident>, <declaration-value>? )"},"perspective()":{syntax:"perspective( [ <length [0,\u221E]> | none ] )"},"polygon()":{syntax:"polygon( <fill-rule>? , [ <length-percentage> <length-percentage> ]# )"},position:{syntax:"[ [ left | center | right ] || [ top | center | bottom ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]? | [ [ left | right ] <length-percentage> ] && [ [ top | bottom ] <length-percentage> ] ]"},"pow()":{syntax:"pow( <calc-sum>, <calc-sum> )"},"pseudo-class
|
||
|
`)}})}G1.createCustomError=eM});var H1=p(V1=>{"use strict";var tM=uu(),Cf=100,F1=60,j1=" ";function U1({source:e,line:t,column:r},n){function i(c,d){return a.slice(c,d).map((m,g)=>String(c+g+1).padStart(u)+" |"+m).join(`
|
||
|
`)}let a=e.split(/\r\n?|\n|\f/),s=Math.max(1,t-n)-1,o=Math.min(t+n,a.length+1),u=Math.max(4,String(o).length)+1,l=0;r+=(j1.length-1)*(a[t-1].substr(0,r-1).match(/\t/g)||[]).length,r>Cf&&(l=r-F1+3,r=F1-2);for(let c=s;c<=o;c++)c>=0&&c<a.length&&(a[c]=a[c].replace(/\t/g,j1),a[c]=(l>0&&a[c].length>l?"\u2026":"")+a[c].substr(l,Cf-2)+(a[c].length>l+Cf-1?"\u2026":""));return[i(s,t),new Array(r+u+2).join("-")+"^",i(t,o)].filter(Boolean).join(`
|
||
|
`)}function rM(e,t,r,n,i){return Object.assign(tM.createCustomError("SyntaxError",e),{source:t,offset:r,line:n,column:i,sourceFragment(s){return U1({source:t,line:n,column:i},isNaN(s)?0:s)},get formattedMessage(){return`Parse error: ${e}
|
||
|
`+U1({source:t,line:n,column:i},2)}})}V1.SyntaxError=rM});var Y1=p(X1=>{"use strict";var K1=R();function nM(e){let t=this.createList(),r=!1,n={recognizer:e};for(;!this.eof;){switch(this.tokenType){case K1.Comment:this.next();continue;case K1.WhiteSpace:r=!0,this.next();continue}let i=e.getNode.call(this,n);if(i===void 0)break;r&&(e.onWhiteSpace&&e.onWhiteSpace.call(this,i,t,n),r=!1),t.push(i)}return r&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,n),t}X1.readSequence=nM});var rk=p(tk=>{"use strict";var $1=gn(),Q1=H1(),iM=fs(),aM=Y1(),sM=Sf(),oM=lu(),hs=dr(),pr=R(),lM=ms(),Z1=()=>{},uM=33,cM=35,kf=59,J1=123,ek=0;function dM(e){return function(){return this[e]()}}function wf(e){let t=Object.create(null);for(let r in e){let n=e[r],i=n.parse||n;i&&(t[r]=i)}return t}function pM(e){let t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:wf(e.atrule),pseudo:wf(e.pseudo),node:wf(e.node)};for(let r in e.parseContext)switch(typeof e.parseContext[r]){case"function":t.context[r]=e.parseContext[r];break;case"string":t.context[r]=dM(e.parseContext[r]);break}return{config:t,...t,...t.node}}function mM(e){let t="",r="<unknown>",n=!1,i=Z1,a=!1,s=new sM.OffsetToLocation,o=Object.assign(new oM.TokenStream,pM(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:aM.readSequence,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket(l){return l===J1?1:0},consumeUntilLeftCurlyBracketOrSemicolon(l){return l===J1||l===kf?1:0},consumeUntilExclamationMarkOrSemicolon(l){return l===uM||l===kf?1:0},consumeUntilSemicolonIncluded(l){return l===kf?2:0},createList(){return new $1.List},createSingleNodeList(l){return new $1.List().appendData(l)},getFirstListNode(l){return l&&l.first},getLastListNode(l){return l&&l.last},parseWithFallback(l,c){let d=this.tokenIndex;try{return l.call(this)}catch(m){if(a)throw m;let g=c.call(this,d);return a=!0,i(m,g),a=!1,g}},lookupNonWSType(l){let c;do if(c=this.lookupType(l++),c!==pr.WhiteSpace)return c;while(c!==ek);return ek},charCodeAt(l){return l>=0&&l<t.length?t.charCodeAt(l):0},substring(l,c){return t.substring(l,c)},substrToCursor(l){return this.source.substring(l,this.tokenStart)},cmpChar(l,c){return hs.cmpChar(t,l,c)},cmpStr(l,c,d){return hs.cmpStr(t,l,c,d)},consume(l){let c=this.tokenStart;return this.eat(l),this.substrToCursor(c)},consumeFunctionName(){let l=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(pr.Function),l},consumeNumber(l){let c=t.substring(this.tokenStart,hs.consumeNumber(t,this.tokenStart));return this.eat(l),c},eat(l){if(this.tokenType!==l){let c=lM[l].slice(0,-6).replace(/-/g," ").replace(/^./,g=>g.toUpperCase()),d=`${/[[\](){}]/.test(c)?`"${c}"`:c} is expected`,m=this.tokenStart;switch(l){case pr.Ident:this.tokenType===pr.Function||this.tokenType===pr.Url?(m=this.tokenEnd-1,d="Identifier is expected but function found"):d="Identifier is expected";break;case pr.Hash:this.isDelim(cM)&&(this.next(),m++,d="Name is expected");break;case pr.Percentage:this.tokenType===pr.Number&&(m=this.tokenEnd,d="Percent sign is expected");break}this.error(d,m)}this.next()},eatIdent(l){(this.tokenType!==pr.Ident||this.lookupValue(0,l)===!1)&&this.error(`Identifier "${l}" is expected`),this.next()},eatDelim(l){this.isDelim(l)||this.error(`Delim "${String.fromCharCode(l)}" is expected`),this.next()},getLocation(l,c){return n?s.getLocationRange(l,c,r):null},getLocationFromList(l){if(n){let c=this.getFirstListNode(l),d=this.getLastListNode(l);return s.getLocationRange(c!==null?c.loc.start.offset-s.startOffset:this.tokenStart,d!==null?d.loc.end.offset-s.startOffset:this.tokenStart,r)}return null},error(l,c){let d=typeof c<"u"&&c<t.length?s.getLocation(c):this.eof?s.getLocation(hs.findWhiteSpaceStart(t,t.length-1)):s.getLocation(this.tokenStart);throw new Q1.SyntaxError(l||"Unexpected input",t,d.offset,d.line,d.column)}});return Object.assign(function(l,c){t=l,c=c||{},o.setSource(t,iM.tokenize),s.setSource(t,c.offset,c.line,c.column),r=c.filename||"<unknown>",n=!!c.positions,i=typeof c.onParseError=="function"?c.onPar
|
||
|
`,uk.WhiteSpace,!0)},emit(u){i+=u},result(){return i}};n&&(typeof n.decorator=="function"&&(s=n.decorator(s)),n.sourceMap&&(s=CM.generateSourceMap(s)),n.mode in Af&&(s.tokenBefore=Af[n.mode]));let o={node:u=>s.node(u),children:wM,token:(u,l)=>s.token(u,l),tokenize:TM};return s.node(r),s.result()}}ck.createGenerator=EM});var mk=p(pk=>{"use strict";var Of=gn();function AM(e){return{fromPlainObject(t){return e(t,{enter(r){r.children&&!(r.children instanceof Of.List)&&(r.children=new Of.List().fromArray(r.children))}}),t},toPlainObject(t){return e(t,{leave(r){r.children&&r.children instanceof Of.List&&(r.children=r.children.toArray())}}),t}}}pk.createConvertor=AM});var Sk=p(yk=>{"use strict";var{hasOwnProperty:qf}=Object.prototype,gs=function(){};function fk(e){return typeof e=="function"?e:gs}function hk(e,t){return function(r,n,i){r.type===t&&e.call(this,r,n,i)}}function OM(e,t){let r=t.structure,n=[];for(let i in r){if(qf.call(r,i)===!1)continue;let a=r[i],s={name:i,type:!1,nullable:!1};Array.isArray(a)||(a=[a]);for(let o of a)o===null?s.nullable=!0:typeof o=="string"?s.type="node":Array.isArray(o)&&(s.type="list");s.type&&n.push(s)}return n.length?{context:t.walkContext,fields:n}:null}function qM(e){let t={};for(let r in e.node)if(qf.call(e.node,r)){let n=e.node[r];if(!n.structure)throw new Error("Missed `structure` field in `"+r+"` node type definition");t[r]=OM(r,n)}return t}function gk(e,t){let r=e.fields.slice(),n=e.context,i=typeof n=="string";return t&&r.reverse(),function(a,s,o,u){let l;i&&(l=s[n],s[n]=a);for(let c of r){let d=a[c.name];if(!c.nullable||d){if(c.type==="list"){if(t?d.reduceRight(u,!1):d.reduce(u,!1))return!0}else if(o(d))return!0}}i&&(s[n]=l)}}function bk({StyleSheet:e,Atrule:t,Rule:r,Block:n,DeclarationList:i}){return{Atrule:{StyleSheet:e,Atrule:t,Rule:r,Block:n},Rule:{StyleSheet:e,Atrule:t,Rule:r,Block:n},Declaration:{StyleSheet:e,Atrule:t,Rule:r,Block:n,DeclarationList:i}}}function zM(e){let t=qM(e),r={},n={},i=Symbol("break-walk"),a=Symbol("skip-node");for(let l in t)qf.call(t,l)&&t[l]!==null&&(r[l]=gk(t[l],!1),n[l]=gk(t[l],!0));let s=bk(r),o=bk(n),u=function(l,c){function d(w,k,z){let b=m.call(T,w,k,z);return b===i?!0:b===a?!1:!!(y.hasOwnProperty(w.type)&&y[w.type](w,T,d,S)||g.call(T,w,k,z)===i)}let m=gs,g=gs,y=r,S=(w,k,z,b)=>w||d(k,z,b),T={break:i,skip:a,root:l,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof c=="function")m=c;else if(c&&(m=fk(c.enter),g=fk(c.leave),c.reverse&&(y=n),c.visit)){if(s.hasOwnProperty(c.visit))y=c.reverse?o[c.visit]:s[c.visit];else if(!t.hasOwnProperty(c.visit))throw new Error("Bad value `"+c.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(", ")+")");m=hk(m,c.visit),g=hk(g,c.visit)}if(m===gs&&g===gs)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");d(l)};return u.break=i,u.skip=a,u.find=function(l,c){let d=null;return u(l,function(m,g,y){if(c.call(this,m,g,y))return d=m,i}),d},u.findLast=function(l,c){let d=null;return u(l,{reverse:!0,enter(m,g,y){if(c.call(this,m,g,y))return d=m,i}}),d},u.findAll=function(l,c){let d=[];return u(l,function(m,g,y){c.call(this,m,g,y)&&d.push(m)}),d},u}yk.createWalker=zM});var cu=p(xk=>{"use strict";function _M(e){return e}function LM(e){let{min:t,max:r,comma:n}=e;return t===0&&r===0?n?"#?":"*":t===0&&r===1?"?":t===1&&r===0?n?"#":"+":t===1&&r===1?"":(n?"#":"")+(t===r?"{"+t+"}":"{"+t+","+(r!==0?r:"")+"}")}function WM(e){switch(e.type){case"Range":return" ["+(e.min===null?"-\u221E":e.min)+","+(e.max===null?"\u221E":e.max)+"]";default:throw new Error("Unknown node type `"+e.type+"`")}}function PM(e,t,r,n){let i=e.combinator===" "||n?e.combinator:" "+e.combinator+" ",a=e.terms.map(s=>zf(s,t,r,n)).join(i);return e.explicit||r?(n||a[0]===","?"[":"[ ")+a+(n?"]":" ]"):a}function zf(e,t,r,n){let i;switch(e.type){case"Group":i=PM(e,t,r,n)+(e.disallowEmpty?"!":"");break;case"Multiplier":return zf(e.term,t,r,n)+t(LM(e),e);case"Type":i="<"+e.name+(e.opts?t(WM(e.opts),e.opts):"")+">";break;case"Property":i="<'
|
||
|
syntax: `+i.syntax+`
|
||
|
value: `+(a||"<empty string>")+`
|
||
|
--------`+new Array(i.mismatchOffset+1).join("-")+"^",Object.assign(i,u),i.loc={source:r&&r.loc&&r.loc.source||"<unknown>",start:u,end:l},i};_f.SyntaxMatchError=RM;_f.SyntaxReferenceError=IM});var fu=p(ys=>{"use strict";var pu=new Map,oi=new Map,mu=45,MM=jM,GM=UM,FM=Wf;function Lf(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===mu&&e.charCodeAt(t+1)===mu}function Wf(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===mu&&e.charCodeAt(t+1)!==mu){let r=e.indexOf("-",t+2);if(r!==-1)return e.substring(t,r+1)}return""}function jM(e){if(pu.has(e))return pu.get(e);let t=e.toLowerCase(),r=pu.get(t);if(r===void 0){let n=Lf(t,0),i=n?"":Wf(t,0);r=Object.freeze({basename:t.substr(i.length),name:t,prefix:i,vendor:i,custom:n})}return pu.set(e,r),r}function UM(e){if(oi.has(e))return oi.get(e);let t=e,r=e[0];r==="/"?r=e[1]==="/"?"//":"/":r!=="_"&&r!=="*"&&r!=="$"&&r!=="#"&&r!=="+"&&r!=="&"&&(r="");let n=Lf(t,r.length);if(!n&&(t=t.toLowerCase(),oi.has(t))){let o=oi.get(t);return oi.set(e,o),o}let i=n?"":Wf(t,r.length),a=t.substr(0,r.length+i.length),s=Object.freeze({basename:t.substr(a.length),name:t.substr(r.length),hack:r,vendor:i,prefix:a,custom:n});return oi.set(e,s),s}ys.isCustomProperty=Lf;ys.keyword=MM;ys.property=GM;ys.vendorPrefix=FM});var Pf=p(wk=>{"use strict";var VM=["initial","inherit","unset","revert","revert-layer"];wk.cssWideKeywords=VM});var Ak=p((dse,Ek)=>{"use strict";var Tk=mt(),Ut=R(),Bf=dr(),xs=43,mr=45,Df=110,li=!0,HM=!1;function If(e,t){return e!==null&&e.type===Ut.Delim&&e.value.charCodeAt(0)===t}function Ss(e,t,r){for(;e!==null&&(e.type===Ut.WhiteSpace||e.type===Ut.Comment);)e=r(++t);return t}function Vr(e,t,r,n){if(!e)return 0;let i=e.value.charCodeAt(t);if(i===xs||i===mr){if(r)return 0;t++}for(;t<e.value.length;t++)if(!Tk.isDigit(e.value.charCodeAt(t)))return 0;return n+1}function Nf(e,t,r){let n=!1,i=Ss(e,t,r);if(e=r(i),e===null)return t;if(e.type!==Ut.Number)if(If(e,xs)||If(e,mr)){if(n=!0,i=Ss(r(++i),i,r),e=r(i),e===null||e.type!==Ut.Number)return 0}else return t;if(!n){let a=e.value.charCodeAt(0);if(a!==xs&&a!==mr)return 0}return Vr(e,n?0:1,n,i)}function KM(e,t){let r=0;if(!e)return 0;if(e.type===Ut.Number)return Vr(e,0,HM,r);if(e.type===Ut.Ident&&e.value.charCodeAt(0)===mr){if(!Bf.cmpChar(e.value,1,Df))return 0;switch(e.value.length){case 2:return Nf(t(++r),r,t);case 3:return e.value.charCodeAt(2)!==mr?0:(r=Ss(t(++r),r,t),e=t(r),Vr(e,0,li,r));default:return e.value.charCodeAt(2)!==mr?0:Vr(e,3,li,r)}}else if(e.type===Ut.Ident||If(e,xs)&&t(r+1).type===Ut.Ident){if(e.type!==Ut.Ident&&(e=t(++r)),e===null||!Bf.cmpChar(e.value,0,Df))return 0;switch(e.value.length){case 1:return Nf(t(++r),r,t);case 2:return e.value.charCodeAt(1)!==mr?0:(r=Ss(t(++r),r,t),e=t(r),Vr(e,0,li,r));default:return e.value.charCodeAt(1)!==mr?0:Vr(e,2,li,r)}}else if(e.type===Ut.Dimension){let n=e.value.charCodeAt(0),i=n===xs||n===mr?1:0,a=i;for(;a<e.value.length&&Tk.isDigit(e.value.charCodeAt(a));a++);return a===i||!Bf.cmpChar(e.value,a,Df)?0:a+1===e.value.length?Nf(t(++r),r,t):e.value.charCodeAt(a+1)!==mr?0:a+2===e.value.length?(r=Ss(t(++r),r,t),e=t(r),Vr(e,0,li,r)):Vr(e,a+2,li,r)}return 0}Ek.exports=KM});var _k=p((pse,zk)=>{"use strict";var XM=mt(),bn=R(),YM=dr(),$M=43,Ok=45,qk=63,QM=117;function Rf(e,t){return e!==null&&e.type===bn.Delim&&e.value.charCodeAt(0)===t}function ZM(e,t){return e.value.charCodeAt(0)===t}function vs(e,t,r){let n=0;for(let i=t;i<e.value.length;i++){let a=e.value.charCodeAt(i);if(a===Ok&&r&&n!==0)return vs(e,t+n+1,!1),6;if(!XM.isHexDigit(a)||++n>6)return 0}return n}function hu(e,t,r){if(!e)return 0;for(;Rf(r(t),qk);){if(++e>6)return 0;t++}return t}function JM(e,t){let r=0;if(e===null||e.type!==bn.Ident||!YM.cmpChar(e.value,0,QM)||(e=t(++r),e===null))return 0;if(Rf(e,$M))return e=t(++r),e===null?0:e.type===bn.Ident?hu(vs(e,0,!0),++r,t):Rf(e,qk)?hu(1,++r,t):0;if(e.type===bn.Number){let n=vs(e,1,!0);return n===0?0:(e=t(++r),e===null?r:e.type===bn.Dimension||e.type===bn.Number?!ZM(e,Ok)||!vs(e,1,!1)?0:r+1:hu(n,r,t))}return e.type===bn.Dimension?hu(vs(e,1,!0),++r,t):0}zk.exports=JM});var Nk=p((mse,Dk)=>{"use strict"
|
||
|
`+t+`
|
||
|
--`+new Array((r||t.length)+1).join("-")+"^"})}Mk.SyntaxError=O9});var Fk=p(Gk=>{"use strict";var q9=Ff(),z9=9,_9=10,L9=12,W9=13,P9=32,jf=class{constructor(t){this.str=t,this.pos=0}charCodeAt(t){return t<this.str.length?this.str.charCodeAt(t):0}charCode(){return this.charCodeAt(this.pos)}nextCharCode(){return this.charCodeAt(this.pos+1)}nextNonWsCode(t){return this.charCodeAt(this.findWsEnd(t))}findWsEnd(t){for(;t<this.str.length;t++){let r=this.str.charCodeAt(t);if(r!==W9&&r!==_9&&r!==L9&&r!==P9&&r!==z9)break}return t}substringToPos(t){return this.str.substring(this.pos,this.pos=t)}eat(t){this.charCode()!==t&&this.error("Expect `"+String.fromCharCode(t)+"`"),this.pos++}peek(){return this.pos<this.str.length?this.str.charAt(this.pos++):""}error(t){throw new q9.SyntaxError(t,this.str,this.pos)}};Gk.Tokenizer=jf});var ku=p(tw=>{"use strict";var B9=Fk(),D9=9,N9=10,I9=12,R9=13,M9=32,$k=33,Hf=35,jk=38,yu=39,Qk=40,G9=41,Zk=42,Kf=43,Xf=44,Uk=45,Yf=60,Jk=62,Vf=63,F9=64,Cu=91,$f=93,Su=123,Vk=124,Hk=125,Kk=8734,Cs=new Uint8Array(128).map((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0),Xk={" ":1,"&&":2,"||":3,"|":4};function xu(e){return e.substringToPos(e.findWsEnd(e.pos))}function ui(e){let t=e.pos;for(;t<e.str.length;t++){let r=e.str.charCodeAt(t);if(r>=128||Cs[r]===0)break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function vu(e){let t=e.pos;for(;t<e.str.length;t++){let r=e.str.charCodeAt(t);if(r<48||r>57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function j9(e){let t=e.str.indexOf("'",e.pos+1);return t===-1&&(e.pos=e.str.length,e.error("Expect an apostrophe")),e.substringToPos(t+1)}function Yk(e){let t=null,r=null;return e.eat(Su),t=vu(e),e.charCode()===Xf?(e.pos++,e.charCode()!==Hk&&(r=vu(e))):r=t,e.eat(Hk),{min:Number(t),max:r?Number(r):0}}function U9(e){let t=null,r=!1;switch(e.charCode()){case Zk:e.pos++,t={min:0,max:0};break;case Kf:e.pos++,t={min:1,max:0};break;case Vf:e.pos++,t={min:0,max:1};break;case Hf:e.pos++,r=!0,e.charCode()===Su?t=Yk(e):e.charCode()===Vf?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case Su:t=Yk(e);break;default:return null}return{type:"Multiplier",comma:r,min:t.min,max:t.max,term:null}}function ci(e,t){let r=U9(e);return r!==null?(r.term=t,e.charCode()===Hf&&e.charCodeAt(e.pos-1)===Kf?ci(e,r):r):t}function Uf(e){let t=e.peek();return t===""?null:{type:"Token",value:t}}function V9(e){let t;return e.eat(Yf),e.eat(yu),t=ui(e),e.eat(yu),e.eat(Jk),ci(e,{type:"Property",name:t})}function H9(e){let t=null,r=null,n=1;return e.eat(Cu),e.charCode()===Uk&&(e.peek(),n=-1),n==-1&&e.charCode()===Kk?e.peek():(t=n*Number(vu(e)),Cs[e.charCode()]!==0&&(t+=ui(e))),xu(e),e.eat(Xf),xu(e),e.charCode()===Kk?e.peek():(n=1,e.charCode()===Uk&&(e.peek(),n=-1),r=n*Number(vu(e)),Cs[e.charCode()]!==0&&(r+=ui(e))),e.eat($f),{type:"Range",min:t,max:r}}function K9(e){let t,r=null;return e.eat(Yf),t=ui(e),e.charCode()===Qk&&e.nextCharCode()===G9&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===Cu&&(xu(e),r=H9(e)),e.eat(Jk),ci(e,{type:"Type",name:t,opts:r})}function X9(e){let t=ui(e);return e.charCode()===Qk?(e.pos++,{type:"Function",name:t}):ci(e,{type:"Keyword",name:t})}function Y9(e,t){function r(i,a){return{type:"Group",terms:i,combinator:a,disallowEmpty:!1,explicit:!1}}let n;for(t=Object.keys(t).sort((i,a)=>Xk[i]-Xk[a]);t.length>0;){n=t.shift();let i=0,a=0;for(;i<e.length;i++){let s=e[i];s.type==="Combinator"&&(s.value===n?(a===-1&&(a=i-1),e.splice(i,1),i--):(a!==-1&&i-a>1&&(e.splice(a,i-a,r(e.slice(a,i),n)),i=a+1),a=-1))}a!==-1&&t.length&&e.splice(a,i-a,r(e.slice(a,i),n))}return n}function ew(e){let t=[],r={},n,i=null,a=e.pos;for(;n=Q9(e);)n.type!=="Spaces"&&(n.type==="Combinator"?((i===null||i.type==="Combinator")&&(e.pos=a,e.error("Unexpected combinator")),r[n.value]=!0):i!==null&&i.type!=="Combinator"&&(r[" "]=!0,t.push({type:"Combinator",value:" "})),t.push(n),i=n,a=e.pos);return i!==null&&i.type==="Combinator"&&(e.pos-=a,e.error("Unexpected combinator")),{type:"Group",terms:t,combinator:Y9(t,r)||" ",disallowEmpty:!1,explicit:!1}}function $9(e){let t;r
|
||
|
[ system: <counter-system>; ] ||
|
||
|
[ symbols: <counter-symbols>; ] ||
|
||
|
[ additive-symbols: <additive-symbols>; ] ||
|
||
|
[ negative: <negative-symbol>; ] ||
|
||
|
[ prefix: <prefix>; ] ||
|
||
|
[ suffix: <suffix>; ] ||
|
||
|
[ range: <range>; ] ||
|
||
|
[ pad: <padding>; ] ||
|
||
|
[ speak-as: <speak-as>; ] ||
|
||
|
[ fallback: <counter-style-name>; ]
|
||
|
}`,interfaces:["CSSCounterStyleRule"],groups:["CSS Counter Styles"],descriptors:{"additive-symbols":{syntax:"[ <integer> && <symbol> ]#",media:"all",initial:"n/a (required)",percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"},fallback:{syntax:"<counter-style-name>",media:"all",initial:"decimal",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},negative:{syntax:"<symbol> <symbol>?",media:"all",initial:'"-" hyphen-minus',percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"},pad:{syntax:"<integer> && <symbol>",media:"all",initial:'0 ""',percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},prefix:{syntax:"<symbol>",media:"all",initial:'""',percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},range:{syntax:"[ [ <integer> | infinite ]{2} ]# | auto",media:"all",initial:"auto",percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"},"speak-as":{syntax:"auto | bullets | numbers | words | spell-out | <counter-style-name>",media:"all",initial:"auto",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},suffix:{syntax:"<symbol>",media:"all",initial:'". "',percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},symbols:{syntax:"<symbol>+",media:"all",initial:"n/a (required)",percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"},system:{syntax:"cyclic | numeric | alphabetic | symbolic | additive | [ fixed <integer>? ] | [ extends <counter-style-name> ]",media:"all",initial:"symbolic",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"}},status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@counter-style"},"@document":{syntax:`@document [ <url> | url-prefix(<string>) | domain(<string>) | media-document(<string>) | regexp(<string>) ]# {
|
||
|
<group-rule-body>
|
||
|
}`,interfaces:["CSSGroupingRule","CSSConditionRule"],groups:["CSS Conditional Rules"],status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@document"},"@font-face":{syntax:`@font-face {
|
||
|
[ font-family: <family-name>; ] ||
|
||
|
[ src: <src>; ] ||
|
||
|
[ unicode-range: <unicode-range>; ] ||
|
||
|
[ font-variant: <font-variant>; ] ||
|
||
|
[ font-feature-settings: <font-feature-settings>; ] ||
|
||
|
[ font-variation-settings: <font-variation-settings>; ] ||
|
||
|
[ font-stretch: <font-stretch>; ] ||
|
||
|
[ font-weight: <font-weight>; ] ||
|
||
|
[ font-style: <font-style>; ] ||
|
||
|
[ size-adjust: <size-adjust>; ] ||
|
||
|
[ ascent-override: <ascent-override>; ] ||
|
||
|
[ descent-override: <descent-override>; ] ||
|
||
|
[ line-gap-override: <line-gap-override>; ]
|
||
|
}`,interfaces:["CSSFontFaceRule"],groups:["CSS Fonts"],descriptors:{"ascent-override":{syntax:"normal | <percentage>",media:"all",initial:"normal",percentages:"asSpecified",computed:"asSpecified",order:"orderOfAppearance",status:"experimental"},"descent-override":{syntax:"normal | <percentage>",media:"all",initial:"normal",percentages:"asSpecified",computed:"asSpecified",order:"orderOfAppearance",status:"experimental"},"font-display":{syntax:"[ auto | block | swap | fallback | optional ]",media:"visual",percentages:"no",initial:"auto",computed:"asSpecified",order:"uniqueOrder",status:"experimental"},"font-family":{syntax:"<family-name>",media:"all",initial:"n/a (required)",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},"font-feature-settings":{syntax:"normal | <feature-tag-value>#",media:"all",initial:"normal",percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"},"font-variation-settings":{syntax:"normal | [ <string> <number> ]#",media:"all",initial:"normal",percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"},"font-stretch":{syntax:"<font-stretch-absolute>{1,2}",media:"all",initial:"normal",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},"font-style":{syntax:"normal | italic | oblique <angle>{0,2}",media:"all",initial:"normal",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},"font-weight":{syntax:"<font-weight-absolute>{1,2}",media:"all",initial:"normal",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},"font-variant":{syntax:"normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> || stylistic(<feature-value-name>) || historical-forms || styleset(<feature-value-name>#) || character-variant(<feature-value-name>#) || swash(<feature-value-name>) || ornaments(<feature-value-name>) || annotation(<feature-value-name>) || [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] || <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero || <east-asian-variant-values> || <east-asian-width-values> || ruby ]",media:"all",initial:"normal",percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"},"line-gap-override":{syntax:"normal | <percentage>",media:"all",initial:"normal",percentages:"asSpecified",computed:"asSpecified",order:"orderOfAppearance",status:"experimental"},"size-adjust":{syntax:"<percentage>",media:"all",initial:"100%",percentages:"asSpecified",computed:"asSpecified",order:"orderOfAppearance",status:"experimental"},src:{syntax:"[ <url> [ format( <string># ) ]? | local( <family-name> ) ]#",media:"all",initial:"n/a (required)",percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"},"unicode-range":{syntax:"<unicode-range>#",media:"all",initial:"U+0-10FFFF",percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"}},status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@font-face"},"@font-feature-values":{syntax:`@font-feature-values <family-name># {
|
||
|
<feature-value-block-list>
|
||
|
}`,interfaces:["CSSFontFeatureValuesRule"],groups:["CSS Fonts"],status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@font-feature-values"},"@import":{syntax:`@import [ <string> | <url> ]
|
||
|
[ layer | layer(<layer-name>) ]?
|
||
|
[ supports( [ <supports-condition> | <declaration> ] ) ]?
|
||
|
<media-query-list>? ;`,groups:["CSS Conditional Rules","Media Queries"],status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@import"},"@keyframes":{syntax:`@keyframes <keyframes-name> {
|
||
|
<keyframe-block-list>
|
||
|
}`,interfaces:["CSSKeyframeRule","CSSKeyframesRule"],groups:["CSS Animations"],status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@keyframes"},"@layer":{syntax:`@layer [ <layer-name># | <layer-name>? {
|
||
|
<stylesheet>
|
||
|
} ]`,interfaces:["CSSLayerBlockRule","CSSLayerStatementRule"],groups:["CSS Cascading and Inheritance"],status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@layer"},"@media":{syntax:`@media <media-query-list> {
|
||
|
<group-rule-body>
|
||
|
}`,interfaces:["CSSGroupingRule","CSSConditionRule","CSSMediaRule","CSSCustomMediaRule"],groups:["CSS Conditional Rules","Media Queries"],status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@media"},"@namespace":{syntax:"@namespace <namespace-prefix>? [ <string> | <url> ];",groups:["CSS Namespaces"],status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@namespace"},"@page":{syntax:`@page <page-selector-list> {
|
||
|
<page-body>
|
||
|
}`,interfaces:["CSSPageRule"],groups:["CSS Pages"],descriptors:{bleed:{syntax:"auto | <length>",media:["visual","paged"],initial:"auto",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},marks:{syntax:"none | [ crop || cross ]",media:["visual","paged"],initial:"none",percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"},size:{syntax:"<length>{1,2} | auto | [ <page-size> || [ portrait | landscape ] ]",media:["visual","paged"],initial:"auto",percentages:"no",computed:"asSpecifiedRelativeToAbsoluteLengths",order:"orderOfAppearance",status:"standard"}},status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@page"},"@property":{syntax:`@property <custom-property-name> {
|
||
|
<declaration-list>
|
||
|
}`,interfaces:["CSS","CSSPropertyRule"],groups:["CSS Houdini"],descriptors:{syntax:{syntax:"<string>",media:"all",percentages:"no",initial:"n/a (required)",computed:"asSpecified",order:"uniqueOrder",status:"experimental"},inherits:{syntax:"true | false",media:"all",percentages:"no",initial:"auto",computed:"asSpecified",order:"uniqueOrder",status:"experimental"},"initial-value":{syntax:"<string>",media:"all",initial:"n/a (required)",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"experimental"}},status:"experimental",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@property"},"@scroll-timeline":{syntax:"@scroll-timeline <timeline-name> { <declaration-list> }",interfaces:["ScrollTimeline"],groups:["CSS Animations"],status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@scroll-timeline"},"@supports":{syntax:`@supports <supports-condition> {
|
||
|
<group-rule-body>
|
||
|
}`,interfaces:["CSSGroupingRule","CSSConditionRule","CSSSupportsRule"],groups:["CSS Conditional Rules"],status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@supports"},"@viewport":{syntax:`@viewport {
|
||
|
<group-rule-body>
|
||
|
}`,interfaces:["CSSViewportRule"],groups:["CSS Device Adaptation"],descriptors:{height:{syntax:"<viewport-length>{1,2}",media:["visual","continuous"],initial:["min-height","max-height"],percentages:["min-height","max-height"],computed:["min-height","max-height"],order:"orderOfAppearance",status:"standard"},"max-height":{syntax:"<viewport-length>",media:["visual","continuous"],initial:"auto",percentages:"referToHeightOfInitialViewport",computed:"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto",order:"uniqueOrder",status:"standard"},"max-width":{syntax:"<viewport-length>",media:["visual","continuous"],initial:"auto",percentages:"referToWidthOfInitialViewport",computed:"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto",order:"uniqueOrder",status:"standard"},"max-zoom":{syntax:"auto | <number> | <percentage>",media:["visual","continuous"],initial:"auto",percentages:"the zoom factor itself",computed:"autoNonNegativeOrPercentage",order:"uniqueOrder",status:"standard"},"min-height":{syntax:"<viewport-length>",media:["visual","continuous"],initial:"auto",percentages:"referToHeightOfInitialViewport",computed:"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto",order:"uniqueOrder",status:"standard"},"min-width":{syntax:"<viewport-length>",media:["visual","continuous"],initial:"auto",percentages:"referToWidthOfInitialViewport",computed:"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto",order:"uniqueOrder",status:"standard"},"min-zoom":{syntax:"auto | <number> | <percentage>",media:["visual","continuous"],initial:"auto",percentages:"the zoom factor itself",computed:"autoNonNegativeOrPercentage",order:"uniqueOrder",status:"standard"},orientation:{syntax:"auto | portrait | landscape",media:["visual","continuous"],initial:"auto",percentages:"referToSizeOfBoundingBox",computed:"asSpecified",order:"uniqueOrder",status:"standard"},"user-zoom":{syntax:"zoom | fixed",media:["visual","continuous"],initial:"zoom",percentages:"referToSizeOfBoundingBox",computed:"asSpecified",order:"uniqueOrder",status:"standard"},"viewport-fit":{syntax:"auto | contain | cover",media:["visual","continuous"],initial:"auto",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},width:{syntax:"<viewport-length>{1,2}",media:["visual","continuous"],initial:["min-width","max-width"],percentages:["min-width","max-width"],computed:["min-width","max-width"],order:"orderOfAppearance",status:"standard"},zoom:{syntax:"auto | <number> | <percentage>",media:["visual","continuous"],initial:"auto",percentages:"the zoom factor itself",computed:"autoNonNegativeOrPercentage",order:"uniqueOrder",status:"standard"}},status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@viewport"}}});var Gw=p((zse,j7)=>{j7.exports={"--*":{syntax:"<declaration-value>",media:"all",inherited:!0,animationType:"discrete",percentages:"no",groups:["CSS Variables"],initial:"seeProse",appliesto:"allElements",computed:"asSpecifiedWithVarsSubstituted",order:"perGrammar",status:"experimental",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/--*"},"-ms-accelerator":{syntax:"false | true",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"false",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-accelerator"},"-ms-block-progression":{syntax:"tb | rl | bt | lr",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"tb",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-block-progression"},"-ms-content-zoom-chaining":{syntax:"none | chained",media:"interactive",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"none",appliesto:"nonReplacedBlockAndInlineBlockElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-chaining"},"-ms-content-zooming":{
|
||
|
[ <line-names>? [ <fixed-size> | <fixed-repeat> ] ]* <line-names>?`},"baseline-position":{syntax:"[ first | last ]? baseline"},"basic-shape":{syntax:"<inset()> | <circle()> | <ellipse()> | <polygon()> | <path()>"},"bg-image":{syntax:"none | <image>"},"bg-layer":{syntax:"<bg-image> || <bg-position> [ / <bg-size> ]? || <repeat-style> || <attachment> || <box> || <box>"},"bg-position":{syntax:"[ [ left | center | right | top | bottom | <length-percentage> ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ] | [ center | [ left | right ] <length-percentage>? ] && [ center | [ top | bottom ] <length-percentage>? ] ]"},"bg-size":{syntax:"[ <length-percentage> | auto ]{1,2} | cover | contain"},"blur()":{syntax:"blur( <length> )"},"blend-mode":{syntax:"normal | multiply | screen | overlay | darken | lighten | color-dodge | color-burn | hard-light | soft-light | difference | exclusion | hue | saturation | color | luminosity"},box:{syntax:"border-box | padding-box | content-box"},"brightness()":{syntax:"brightness( <number-percentage> )"},"calc()":{syntax:"calc( <calc-sum> )"},"calc-sum":{syntax:"<calc-product> [ [ '+' | '-' ] <calc-product> ]*"},"calc-product":{syntax:"<calc-value> [ '*' <calc-value> | '/' <number> ]*"},"calc-value":{syntax:"<number> | <dimension> | <percentage> | ( <calc-sum> )"},"cf-final-image":{syntax:"<image> | <color>"},"cf-mixing-image":{syntax:"<percentage>? && <image>"},"circle()":{syntax:"circle( [ <shape-radius> ]? [ at <position> ]? )"},"clamp()":{syntax:"clamp( <calc-sum>#{3} )"},"class-selector":{syntax:"'.' <ident-token>"},"clip-source":{syntax:"<url>"},color:{syntax:"<rgb()> | <rgba()> | <hsl()> | <hsla()> | <hwb()> | <lab()> | <lch()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>"},"color-stop":{syntax:"<color-stop-length> | <color-stop-angle>"},"color-stop-angle":{syntax:"<angle-percentage>{1,2}"},"color-stop-length":{syntax:"<length-percentage>{1,2}"},"color-stop-list":{syntax:"[ <linear-color-stop> [, <linear-color-hint>]? ]# , <linear-color-stop>"},combinator:{syntax:"'>' | '+' | '~' | [ '||' ]"},"common-lig-values":{syntax:"[ common-ligatures | no-common-ligatures ]"},"compat-auto":{syntax:"searchfield | textarea | push-button | slider-horizontal | checkbox | radio | square-button | menulist | listbox | meter | progress-bar | button"},"composite-style":{syntax:"clear | copy | source-over | source-in | source-out | source-atop | destination-over | destination-in | destination-out | destination-atop | xor"},"compositing-operator":{syntax:"add | subtract | intersect | exclude"},"compound-selector":{syntax:"[ <type-selector>? <subclass-selector>* [ <pseudo-element-selector> <pseudo-class-selector>* ]* ]!"},"compound-selector-list":{syntax:"<compound-selector>#"},"complex-selector":{syntax:"<compound-selector> [ <combinator>? <compound-selector> ]*"},"complex-selector-list":{syntax:"<complex-selector>#"},"conic-gradient()":{syntax:"conic-gradient( [ from <angle> ]? [ at <position> ]?, <angular-color-stop-list> )"},"contextual-alt-values":{syntax:"[ contextual | no-contextual ]"},"content-distribution":{syntax:"space-between | space-around | space-evenly | stretch"},"content-list":{syntax:"[ <string> | contents | <image> | <counter> | <quote> | <target> | <leader()> ]+"},"content-position":{syntax:"center | start | end | flex-start | flex-end"},"content-replacement":{syntax:"<image>"},"contrast()":{syntax:"contrast( [ <number-percentage> ] )"},counter:{syntax:"<counter()> | <counters()>"},"counter()":{syntax:"counter( <counter-name>, <counter-style>? )"},"counter-name":{syntax:"<custom-ident>"},"counter-style":{syntax:"<counter-style-name> | symbols()"},"counter-style-name":{syntax:"<custom-ident>"},"counters()":{syntax:"counters( <counter-name>, <string>, <counter-style>? )"},"cross-fade()":{syntax:"cross-fade( <cf-mixing-image> , <cf-final-image>? )"},"cubic-bezier-timing-function":{syntax:"ease | ease-in | ease-out | ease-in-out | cubic-bezier(<number [0,1]>, <number>, <number [0,1]>, <number>)"},"deprecated-system-color"
|
||
|
<declaration-list>
|
||
|
}`},"keyframe-block-list":{syntax:"<keyframe-block>+"},"keyframe-selector":{syntax:"from | to | <percentage>"},"layer()":{syntax:"layer( <layer-name> )"},"layer-name":{syntax:"<ident> [ '.' <ident> ]*"},"leader()":{syntax:"leader( <leader-type> )"},"leader-type":{syntax:"dotted | solid | space | <string>"},"length-percentage":{syntax:"<length> | <percentage>"},"line-names":{syntax:"'[' <custom-ident>* ']'"},"line-name-list":{syntax:"[ <line-names> | <name-repeat> ]+"},"line-style":{syntax:"none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset"},"line-width":{syntax:"<length> | thin | medium | thick"},"linear-color-hint":{syntax:"<length-percentage>"},"linear-color-stop":{syntax:"<color> <color-stop-length>?"},"linear-gradient()":{syntax:"linear-gradient( [ <angle> | to <side-or-corner> ]? , <color-stop-list> )"},"mask-layer":{syntax:"<mask-reference> || <position> [ / <bg-size> ]? || <repeat-style> || <geometry-box> || [ <geometry-box> | no-clip ] || <compositing-operator> || <masking-mode>"},"mask-position":{syntax:"[ <length-percentage> | left | center | right ] [ <length-percentage> | top | center | bottom ]?"},"mask-reference":{syntax:"none | <image> | <mask-source>"},"mask-source":{syntax:"<url>"},"masking-mode":{syntax:"alpha | luminance | match-source"},"matrix()":{syntax:"matrix( <number>#{6} )"},"matrix3d()":{syntax:"matrix3d( <number>#{16} )"},"max()":{syntax:"max( <calc-sum># )"},"media-and":{syntax:"<media-in-parens> [ and <media-in-parens> ]+"},"media-condition":{syntax:"<media-not> | <media-and> | <media-or> | <media-in-parens>"},"media-condition-without-or":{syntax:"<media-not> | <media-and> | <media-in-parens>"},"media-feature":{syntax:"( [ <mf-plain> | <mf-boolean> | <mf-range> ] )"},"media-in-parens":{syntax:"( <media-condition> ) | <media-feature> | <general-enclosed>"},"media-not":{syntax:"not <media-in-parens>"},"media-or":{syntax:"<media-in-parens> [ or <media-in-parens> ]+"},"media-query":{syntax:"<media-condition> | [ not | only ]? <media-type> [ and <media-condition-without-or> ]?"},"media-query-list":{syntax:"<media-query>#"},"media-type":{syntax:"<ident>"},"mf-boolean":{syntax:"<mf-name>"},"mf-name":{syntax:"<ident>"},"mf-plain":{syntax:"<mf-name> : <mf-value>"},"mf-range":{syntax:`<mf-name> [ '<' | '>' ]? '='? <mf-value>
|
||
|
| <mf-value> [ '<' | '>' ]? '='? <mf-name>
|
||
|
| <mf-value> '<' '='? <mf-name> '<' '='? <mf-value>
|
||
|
| <mf-value> '>' '='? <mf-name> '>' '='? <mf-value>`},"mf-value":{syntax:"<number> | <dimension> | <ident> | <ratio>"},"min()":{syntax:"min( <calc-sum># )"},"minmax()":{syntax:"minmax( [ <length> | <percentage> | min-content | max-content | auto ] , [ <length> | <percentage> | <flex> | min-content | max-content | auto ] )"},"name-repeat":{syntax:"repeat( [ <integer [1,\u221E]> | auto-fill ], <line-names>+ )"},"named-color":{syntax:"transparent | aliceblue | antiquewhite | aqua | aquamarine | azure | beige | bisque | black | blanchedalmond | blue | blueviolet | brown | burlywood | cadetblue | chartreuse | chocolate | coral | cornflowerblue | cornsilk | crimson | cyan | darkblue | darkcyan | darkgoldenrod | darkgray | darkgreen | darkgrey | darkkhaki | darkmagenta | darkolivegreen | darkorange | darkorchid | darkred | darksalmon | darkseagreen | darkslateblue | darkslategray | darkslategrey | darkturquoise | darkviolet | deeppink | deepskyblue | dimgray | dimgrey | dodgerblue | firebrick | floralwhite | forestgreen | fuchsia | gainsboro | ghostwhite | gold | goldenrod | gray | green | greenyellow | grey | honeydew | hotpink | indianred | indigo | ivory | khaki | lavender | lavenderblush | lawngreen | lemonchiffon | lightblue | lightcoral | lightcyan | lightgoldenrodyellow | lightgray | lightgreen | lightgrey | lightpink | lightsalmon | lightseagreen | lightskyblue | lightslategray | lightslategrey | lightsteelblue | lightyellow | lime | limegreen | linen | magenta | maroon | mediumaquamarine | mediumblue | mediumorchid | mediumpurple | mediumseagreen | mediumslateblue | mediumspringgreen | mediumturquoise | mediumvioletred | midnightblue | mintcream | mistyrose | moccasin | navajowhite | navy | oldlace | olive | olivedrab | orange | orangered | orchid | palegoldenrod | palegreen | paleturquoise | palevioletred | papayawhip | peachpuff | peru | pink | plum | powderblue | purple | rebeccapurple | red | rosybrown | royalblue | saddlebrown | salmon | sandybrown | seagreen | seashell | sienna | silver | skyblue | slateblue | slategray | slategrey | snow | springgreen | steelblue | tan | teal | thistle | tomato | turquoise | violet | wheat | white | whitesmoke | yellow | yellowgreen"},"namespace-prefix":{syntax:"<ident>"},"ns-prefix":{syntax:"[ <ident-token> | '*' ]? '|'"},"number-percentage":{syntax:"<number> | <percentage>"},"numeric-figure-values":{syntax:"[ lining-nums | oldstyle-nums ]"},"numeric-fraction-values":{syntax:"[ diagonal-fractions | stacked-fractions ]"},"numeric-spacing-values":{syntax:"[ proportional-nums | tabular-nums ]"},nth:{syntax:"<an-plus-b> | even | odd"},"opacity()":{syntax:"opacity( [ <number-percentage> ] )"},"overflow-position":{syntax:"unsafe | safe"},"outline-radius":{syntax:"<length> | <percentage>"},"page-body":{syntax:"<declaration>? [ ; <page-body> ]? | <page-margin-box> <page-body>"},"page-margin-box":{syntax:"<page-margin-box-type> '{' <declaration-list> '}'"},"page-margin-box-type":{syntax:"@top-left-corner | @top-left | @top-center | @top-right | @top-right-corner | @bottom-left-corner | @bottom-left | @bottom-center | @bottom-right | @bottom-right-corner | @left-top | @left-middle | @left-bottom | @right-top | @right-middle | @right-bottom"},"page-selector-list":{syntax:"[ <page-selector># ]?"},"page-selector":{syntax:"<pseudo-page>+ | <ident> <pseudo-page>*"},"page-size":{syntax:"A5 | A4 | A3 | B5 | B4 | JIS-B5 | JIS-B4 | letter | legal | ledger"},"path()":{syntax:"path( [ <fill-rule>, ]? <string> )"},"paint()":{syntax:"paint( <ident>, <declaration-value>? )"},"perspective()":{syntax:"perspective( <length> )"},"polygon()":{syntax:"polygon( <fill-rule>? , [ <length-percentage> <length-percentage> ]# )"},position:{syntax:"[ [ left | center | right ] || [ top | center | bottom ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]? | [ [ left | right ] <length-percentage> ] && [ [ top | bottom ] <length-percentage> ] ]"},"pseudo-class-selector":{syntax:"':' <ident-token> | ':' <function-token> <any-value> ')'"},"pseudo-element-selector":{syntax
|
||
|
`})),n.insert(Xt.List.createItem(o.comment)),l.isEmpty||n.insert(Xt.List.createItem({type:"Raw",value:`
|
||
|
`}))),a&&!l.isEmpty){let c=l.last;(c.type!=="Atrule"||c.name!=="import"&&c.name!=="charset")&&(a=!1)}i!=="exclamation"&&(i=!1),n.appendList(l)}while(!s.isEmpty);return{ast:e}}pA.exports=O$});var hA=p(gt=>{"use strict";var qi=fe(),q$=mA(),z$=Eg();function fA(e){let t=qi.string.encode(e,!0),r=qi.string.encode(e);return t.length<r.length?t:r}var{lexer:_$,tokenize:L$,parse:W$,generate:P$,walk:B$,find:D$,findLast:N$,findAll:I$,fromPlainObject:R$,toPlainObject:M$}=qi.fork({node:{String:{generate(e){this.token(qi.tokenTypes.String,fA(e.value))}},Url:{generate(e){let t=qi.url.encode(e.value),r=fA(e.value);this.token(qi.tokenTypes.Url,t.length<=r.length+5?t:"url("+r+")")}}}});gt.compress=q$;gt.specificity=z$;gt.find=D$;gt.findAll=I$;gt.findLast=N$;gt.fromPlainObject=R$;gt.generate=P$;gt.lexer=_$;gt.parse=W$;gt.toPlainObject=M$;gt.tokenize=L$;gt.walk=B$});var gA=p(Xr=>{"use strict";var G$=Ag(),zi=co();Xr.processSelector=G$;Xr.addSelectors=zi.addSelectors;Xr.compareDeclarations=zi.compareDeclarations;Xr.hasSimilarSelectors=zi.hasSimilarSelectors;Xr.isEqualDeclarations=zi.isEqualDeclarations;Xr.isEqualSelectors=zi.isEqualSelectors;Xr.unsafeToSkipNode=zi.unsafeToSkipNode});var Ku=p(Li=>{"use strict";var F$=y1(),yA=hA(),j$=gA(),{parse:U$,generate:Wg,compress:V$}=yA;function _i(e,t,r,n){return t.debug&&console.error(`## ${e} done in %d ms
|
||
|
`,Date.now()-r),n}function H$(e){let t;return function(n,i){let a=n;if(i&&(a=`[${((Date.now()-t)/1e3).toFixed(3)}s] ${a}`),e>1&&i){let s=Wg(i);e===2&&s.length>256&&(s=s.substr(0,256)+"..."),a+=`
|
||
|
${s}
|
||
|
`}console.error(a),t=Date.now()}}function K$(e){return e={...e},typeof e.logger!="function"&&e.debug&&(e.logger=H$(e.debug)),e}function bA(e,t,r){Array.isArray(r)||(r=[r]),r.forEach(n=>n(e,t))}function SA(e,t,r){r=r||{};let n=r.filename||"<unknown>",i,a=_i("parsing",r,Date.now(),U$(t,{context:e,filename:n,positions:!!r.sourceMap}));r.beforeCompress&&_i("beforeCompress",r,Date.now(),bA(a,r,r.beforeCompress));let s=_i("compress",r,Date.now(),V$(a,K$(r)));return r.afterCompress&&_i("afterCompress",r,Date.now(),bA(s,r,r.afterCompress)),r.sourceMap?i=_i("generate(sourceMap: true)",r,Date.now(),(()=>{let o=Wg(s.ast,{sourceMap:!0});return o.map._file=n,o.map.setSourceContent(n,t),o})()):i=_i("generate",r,Date.now(),{css:Wg(s.ast),map:null}),i}function X$(e,t){return SA("stylesheet",e,t)}function Y$(e,t){return SA("declarationList",e,t)}Li.version=F$.version;Li.syntax=yA;Li.utils=j$;Li.minify=X$;Li.minifyBlock=Y$});var Yu=p(Xu=>{"use strict";var _t=su(),{syntax:{specificity:xA}}=Ku(),{visitSkip:$$,querySelectorAll:Q$,detachNodeFromParent:Z$}=Z();Xu.name="inlineStyles";Xu.description="inline styles (additional options)";var J$=(e,t)=>{for(var r=0;r<4;r+=1){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},Pg=e=>e;Xu.fn=(e,t)=>{let{onlyMatchedOnce:r=!0,removeMatchedSelectors:n=!0,useMqs:i=["","screen"],usePseudos:a=[""]}=t,s=[],o=[];return{element:{enter:(u,l)=>{if(u.name==="foreignObject")return $$;if(u.name!=="style"||u.children.length===0||u.attributes.type!=null&&u.attributes.type!==""&&u.attributes.type!=="text/css")return;let c="";for(let m of u.children)(m.type==="text"||m.type==="cdata")&&(c+=m.value);let d=null;try{d=_t.parse(c,{parseValue:!1,parseCustomProperty:!1})}catch{return}d.type==="StyleSheet"&&s.push({node:u,parentNode:l,cssAst:d}),_t.walk(d,{visit:"Selector",enter(m,g){let y=this.atrule,S=this.rule;if(S==null)return;let T="";if(y!=null&&(T=y.name,y.prelude!=null&&(T+=` ${_t.generate(y.prelude)}`)),i.includes(T)===!1)return;let w=[];m.type==="Selector"&&m.children.forEach((z,b,A)=>{(z.type==="PseudoClassSelector"||z.type==="PseudoElementSelector")&&w.push({item:b,list:A})});let k=_t.generate({type:"Selector",children:new _t.List().fromArray(w.map(z=>z.item.data))});if(a.includes(k)!==!1){for(let z of w)z.list.remove(z.item);o.push({node:m,item:g,rule:S})}}})}},root:{exit:()=>{if(s.length===0)return;let u=[...o].sort((l,c)=>{let d=xA(l.item.data),m=xA(c.item.data);return J$(d,m)}).reverse();for(let l of u){let c=_t.generate(l.item.data),d=[];try{for(let m of Q$(e,c))m.type==="element"&&d.push(m)}catch{continue}if(d.length!==0&&!(r&&d.length>1)){for(let m of d){let g=_t.parse(m.attributes.style==null?"":m.attributes.style,{context:"declarationList",parseValue:!1});if(g.type!=="DeclarationList")continue;let y=new Map;_t.walk(g,{visit:"Declaration",enter(S,T){y.set(S.property,T)}}),_t.walk(l.rule,{visit:"Declaration",enter(S){let T=y.get(S.property),w=g.children.createItem(S);T==null?g.children.append(w):T.data.important!==!0&&S.important===!0&&(g.children.replace(T,w),y.set(S.property,w))}}),m.attributes.style=_t.generate(g)}n&&d.length!==0&&l.rule.prelude.type==="SelectorList"&&l.rule.prelude.children.remove(l.item),l.matchedElements=d}}if(n!==!1){for(let l of u)if(l.matchedElements!=null&&!(r&&l.matchedElements.length>1))for(let c of l.matchedElements){let d=new Set(c.attributes.class==null?null:c.attributes.class.split(" ")),m=Pg(l.node.children.first);m!=null&&m.type==="ClassSelector"&&d.delete(m.name),d.size===0?delete c.attributes.class:c.attributes.class=Array.from(d).join(" "),m!=null&&m.type==="IdSelector"&&c.attributes.id===m.name&&delete c.attributes.id}for(let l of s)if(_t.walk(l.cssAst,{visit:"Rule",enter:function(c,d,m){c.type==="Rule"&&c.prelude.type==="SelectorList"&&Pg(c.prelude.children.isEmpty)&&m.remove(d)}}),Pg(l.cssAst.children.isEmpty))Z$(l.node,l.parentNode);else{let c=l.node.children[0];(c.type==="text"||c.type==="cdata")&&(c.value=_t.generate(l.cssAst))}}}}}}});var fo=p($u=>{"use strict";var vA=Ku();$u.name="minifyStyles";$u.description="minifies styles and removes unused styles based
|
||
|
It should have a list of "attributes" or one "attribute".
|
||
|
Config example:
|
||
|
|
||
|
plugins: [
|
||
|
{
|
||
|
name: 'addAttributesToSVGElement',
|
||
|
params: {
|
||
|
attribute: "mySvg"
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
|
||
|
plugins: [
|
||
|
{
|
||
|
name: 'addAttributesToSVGElement',
|
||
|
params: {
|
||
|
attributes: ["mySvg", "size-big"]
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
|
||
|
plugins: [
|
||
|
{
|
||
|
name: 'addAttributesToSVGElement',
|
||
|
params: {
|
||
|
attributes: [
|
||
|
{
|
||
|
focusable: false
|
||
|
},
|
||
|
{
|
||
|
'data-image': icon
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
`;zc.fn=(e,t)=>{if(!Array.isArray(t.attributes)&&!t.attribute)return console.error(Xee),null;let r=t.attributes||[t.attribute];return{element:{enter:(n,i)=>{if(n.name==="svg"&&i.type==="root"){for(let a of r)if(typeof a=="string"&&n.attributes[a]==null&&(n.attributes[a]=void 0),typeof a=="object")for(let s of Object.keys(a))n.attributes[s]==null&&(n.attributes[s]=a[s])}}}}}});var s3=p(_c=>{"use strict";_c.name="addClassesToSVGElement";_c.description="adds classnames to an outer <svg> element";var Yee=`Error in plugin "addClassesToSVGElement": absent parameters.
|
||
|
It should have a list of classes in "classNames" or one "className".
|
||
|
Config example:
|
||
|
|
||
|
plugins: [
|
||
|
{
|
||
|
name: "addClassesToSVGElement",
|
||
|
params: {
|
||
|
className: "mySvg"
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
|
||
|
plugins: [
|
||
|
{
|
||
|
name: "addClassesToSVGElement",
|
||
|
params: {
|
||
|
classNames: ["mySvg", "size-big"]
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
`;_c.fn=(e,t)=>{if(!(Array.isArray(t.classNames)&&t.classNames.some(String))&&!t.className)return console.error(Yee),null;let r=t.classNames||[t.className];return{element:{enter:(n,i)=>{if(n.name==="svg"&&i.type==="root"){let a=new Set(n.attributes.class==null?null:n.attributes.class.split(" "));for(let s of r)s!=null&&a.add(s);n.attributes.class=Array.from(a).join(" ")}}}}}});var l3=p(Lc=>{"use strict";var{removeLeadingZero:$ee}=It();Lc.name="cleanupListOfValues";Lc.description="rounds list of values to the fixed precision";var Qee=/^([-+]?\d*\.?\d+([eE][-+]?\d+)?)(px|pt|pc|mm|cm|m|in|ft|em|ex|%)?$/,Zee=/\s+,?\s*|,\s*/,o3={cm:96/2.54,mm:96/25.4,in:96,pt:4/3,pc:16,px:1};Lc.fn=(e,t)=>{let{floatPrecision:r=3,leadingZero:n=!0,defaultPx:i=!0,convertToPx:a=!0}=t,s=o=>{let u=[];for(let l of o.split(Zee)){let c=l.match(Qee),d=l.match(/new/);if(c){let m=Number(Number(c[1]).toFixed(r)),y=c[3]||"";if(a&&y&&y in o3){let T=Number((o3[y]*Number(c[1])).toFixed(r));T.toString().length<c[0].length&&(m=T,y="px")}let S;n?S=$ee(m):S=m.toString(),i&&y==="px"&&(y=""),u.push(S+y)}else d?u.push("new"):l&&u.push(l)}return u.join(" ")};return{element:{enter:o=>{o.attributes.points!=null&&(o.attributes.points=s(o.attributes.points)),o.attributes["enable-background"]!=null&&(o.attributes["enable-background"]=s(o.attributes["enable-background"])),o.attributes.viewBox!=null&&(o.attributes.viewBox=s(o.attributes.viewBox)),o.attributes["stroke-dasharray"]!=null&&(o.attributes["stroke-dasharray"]=s(o.attributes["stroke-dasharray"])),o.attributes.dx!=null&&(o.attributes.dx=s(o.attributes.dx)),o.attributes.dy!=null&&(o.attributes.dy=s(o.attributes.dy)),o.attributes.x!=null&&(o.attributes.x=s(o.attributes.x)),o.attributes.y!=null&&(o.attributes.y=s(o.attributes.y))}}}}});var c3=p(Bc=>{"use strict";var{attrsGroups:Jee}=Ce();Bc.name="convertStyleToAttrs";Bc.description="converts style to attributes";var Mo=(...e)=>"(?:"+e.join("|")+")",ete=Jee.presentation,Bi="\\\\(?:[0-9a-f]{1,6}\\s?|\\r\\n|.)",tte="\\s*("+Mo("[^:;\\\\]",Bi)+"*?)\\s*",Wc="'(?:[^'\\n\\r\\\\]|"+Bi+")*?(?:'|$)",Pc='"(?:[^"\\n\\r\\\\]|'+Bi+')*?(?:"|$)',rte=new RegExp("^"+Mo(Wc,Pc)+"$"),nte="\\("+Mo(`[^'"()\\\\]+`,Bi,Wc,Pc)+"*?\\)",ite="\\s*("+Mo(`[^!'"();\\\\]+?`,Bi,Wc,Pc,nte,"[^;]*?")+"*?)",ate="\\s*(?:;\\s*|$)",ste="(\\s*!important(?![-(\\w]))?",u3=new RegExp(tte+":"+ite+ste+ate,"ig"),ote=new RegExp(Mo(Bi,Wc,Pc,"/\\*[^]*?\\*/"),"ig");Bc.fn=(e,t)=>{let{keepImportant:r=!1}=t;return{element:{enter:n=>{if(n.attributes.style!=null){let a=[],s={},o=n.attributes.style.replace(ote,u=>u[0]=="/"?"":u[0]=="\\"&&/[-g-z]/i.test(u[1])?u[1]:u);u3.lastIndex=0;for(var i;i=u3.exec(o);)(!r||!i[3])&&a.push([i[1],i[2]]);a.length&&(a=a.filter(function(u){if(u[0]){var l=u[0].toLowerCase(),c=u[1];if(rte.test(c)&&(c=c.slice(1,-1)),ete.includes(l))return s[l]=c,!1}return!0}),Object.assign(n.attributes,s),a.length?n.attributes.style=a.map(u=>u.join(":")).join(";"):delete n.attributes.style)}}}}}});var d3=p(Dc=>{"use strict";var c0=su(),{referencesProps:lte}=Ce();Dc.name="prefixIds";Dc.description="prefix IDs";var ute=e=>{let t=e.match(/[/\\]?([^/\\]+)$/);return t?t[1]:""},cte=e=>e.replace(/[. ]/g,"_"),dte=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'")?e.slice(1,-1):e,Go=(e,t)=>t.startsWith(e)?t:e+t,d0=(e,t)=>t.startsWith("#")?"#"+Go(e,t.slice(1)):null,p0=e=>e;Dc.fn=(e,t,r)=>{let{delim:n="__",prefixIds:i=!0,prefixClassNames:a=!0}=t;return{element:{enter:s=>{let o="prefix"+n;if(typeof t.prefix=="function"?o=t.prefix(s,r)+n:typeof t.prefix=="string"?o=t.prefix+n:t.prefix===!1?o="":r.path!=null&&r.path.length>0&&(o=cte(ute(r.path))+n),s.name==="style"){if(s.children.length===0)return;let u="";(s.children[0].type==="text"||s.children[0].type==="cdata")&&(u=s.children[0].value);let l=null;try{l=c0.parse(u,{parseValue:!0,parseCustomProperty:!1})}catch{return}c0.walk(l,c=>{if(i&&c.type==="IdSelector"||a&&c.type==="ClassSelector"){c.name=Go(o,c.name);return}if(c.type==="Url"&&p0(c.value).length>0){let d=d0(o,dte(p0(c.value)));d!=null&&(p0(c).value=d)}}),(s.children[0].type==="text"||s.children[0].ty
|