diff --git a/asset-manifest.json b/asset-manifest.json
index 5dae89d..1b44ba5 100644
--- a/asset-manifest.json
+++ b/asset-manifest.json
@@ -1,7 +1,7 @@
{
"files": {
"main.css": "/static/css/main.916aa1ae.css",
- "main.js": "/static/js/main.5f44270d.js",
+ "main.js": "/static/js/main.b8343855.js",
"static/js/8694.1e334300.chunk.js": "/static/js/8694.1e334300.chunk.js",
"static/js/2266.9557b7a6.chunk.js": "/static/js/2266.9557b7a6.chunk.js",
"static/js/6769.90981532.chunk.js": "/static/js/6769.90981532.chunk.js",
@@ -121,7 +121,7 @@
"static/media/github.svg": "/static/media/github.6988a55f42f5097e5bd19ed9ae72ccde.svg",
"static/media/color.svg": "/static/media/color.3cdb61387d75158307fc6d9ed1ab3e74.svg",
"main.916aa1ae.css.map": "/static/css/main.916aa1ae.css.map",
- "main.5f44270d.js.map": "/static/js/main.5f44270d.js.map",
+ "main.b8343855.js.map": "/static/js/main.b8343855.js.map",
"8694.1e334300.chunk.js.map": "/static/js/8694.1e334300.chunk.js.map",
"2266.9557b7a6.chunk.js.map": "/static/js/2266.9557b7a6.chunk.js.map",
"6769.90981532.chunk.js.map": "/static/js/6769.90981532.chunk.js.map",
@@ -240,6 +240,6 @@
"static/js/refractor-prismjs-vendor.bb547693.js",
"static/js/react-vendor.51810a08.js",
"static/css/main.916aa1ae.css",
- "static/js/main.5f44270d.js"
+ "static/js/main.b8343855.js"
]
}
\ No newline at end of file
diff --git a/index.html b/index.html
index bbfa7e8..6a668ce 100644
--- a/index.html
+++ b/index.html
@@ -1 +1 @@
-
微信公众号 Markdown 编辑器
\ No newline at end of file
+微信公众号 Markdown 编辑器
\ No newline at end of file
diff --git a/static/js/main.5f44270d.js b/static/js/main.b8343855.js
similarity index 99%
rename from static/js/main.5f44270d.js
rename to static/js/main.b8343855.js
index 2afde21..7924f67 100644
--- a/static/js/main.5f44270d.js
+++ b/static/js/main.b8343855.js
@@ -1,4 +1,4 @@
-/*! For license information please see main.5f44270d.js.LICENSE.txt */
+/*! For license information please see main.b8343855.js.LICENSE.txt */
(()=>{var e={1701:(e,t,n)=>{"use strict";var r={};n.r(r),n.d(r,{attentionMarkers:()=>jb,contentInitial:()=>Fb,disable:()=>Hb,document:()=>Lb,flow:()=>Bb,flowInitial:()=>$b,insideSpan:()=>Zb,string:()=>Ub,text:()=>zb});var i={};n.r(i),n.d(i,{safe:()=>jA,spec:()=>ZA});var o={};n.r(o),n.d(o,{angle:()=>Xw,decibel:()=>Vw,flex:()=>Gw,frequency:()=>Yw,length:()=>Hw,resolution:()=>Ww,semitones:()=>Kw,time:()=>qw});var s={};n.r(s),n.d(s,{getTrace:()=>OC,isKeyword:()=>vC,isProperty:()=>yC,isType:()=>bC});var a={};n.r(a),n.d(a,{generate:()=>KC,name:()=>WC,parse:()=>VC,structure:()=>GC});var l={};n.r(l),n.d(l,{generate:()=>o_,name:()=>t_,parse:()=>i_,structure:()=>r_,walkContext:()=>n_});var c={};n.r(c),n.d(c,{generate:()=>u_,name:()=>s_,parse:()=>c_,structure:()=>l_,walkContext:()=>a_});var u={};n.r(u),n.d(u,{generate:()=>S_,name:()=>y_,parse:()=>k_,structure:()=>v_});var h={};n.r(h),n.d(h,{generate:()=>R_,name:()=>C_,parse:()=>D_,structure:()=>P_,walkContext:()=>__});var d={};n.r(d),n.d(d,{generate:()=>Q_,name:()=>N_,parse:()=>M_,structure:()=>I_});var f={};n.r(f),n.d(f,{generate:()=>B_,name:()=>L_,parse:()=>$_,structure:()=>F_});var p={};n.r(p),n.d(p,{generate:()=>j_,name:()=>U_,parse:()=>Z_,structure:()=>z_});var m={};n.r(m),n.d(m,{generate:()=>W_,name:()=>X_,parse:()=>Y_,structure:()=>q_});var g={};n.r(g),n.d(g,{generate:()=>rP,name:()=>eP,parse:()=>nP,structure:()=>tP});var O={};n.r(O),n.d(O,{generate:()=>cP,name:()=>sP,parse:()=>lP,structure:()=>aP});var b={};n.r(b),n.d(b,{generate:()=>EP,name:()=>vP,parse:()=>xP,structure:()=>SP,walkContext:()=>kP});var y={};n.r(y),n.d(y,{generate:()=>RP,name:()=>_P,parse:()=>DP,structure:()=>PP});var v={};n.r(v),n.d(v,{generate:()=>QP,name:()=>NP,parse:()=>MP,structure:()=>IP});var k={};n.r(k),n.d(k,{generate:()=>UP,name:()=>LP,parse:()=>BP,structure:()=>$P,walkContext:()=>FP});var S={};n.r(S),n.d(S,{generate:()=>XP,name:()=>ZP,parse:()=>HP,structure:()=>jP,xxx:()=>zP});var x={};n.r(x),n.d(x,{generate:()=>GP,name:()=>qP,parse:()=>WP,structure:()=>YP});var E={};n.r(E),n.d(E,{generate:()=>eD,name:()=>VP,parse:()=>JP,structure:()=>KP});var A={};n.r(A),n.d(A,{generate:()=>iD,name:()=>tD,parse:()=>rD,structure:()=>nD});var w={};n.r(w),n.d(w,{generate:()=>lD,name:()=>oD,parse:()=>aD,structure:()=>sD});var T={};n.r(T),n.d(T,{generate:()=>dD,name:()=>cD,parse:()=>hD,structure:()=>uD});var C={};n.r(C),n.d(C,{generate:()=>OD,name:()=>pD,parse:()=>gD,structure:()=>mD});var _={};n.r(_),n.d(_,{generate:()=>kD,name:()=>bD,parse:()=>vD,structure:()=>yD});var P={};n.r(P),n.d(P,{generate:()=>AD,name:()=>SD,parse:()=>ED,structure:()=>xD});var D={};n.r(D),n.d(D,{generate:()=>_D,name:()=>wD,parse:()=>CD,structure:()=>TD});var R={};n.r(R),n.d(R,{generate:()=>ND,name:()=>PD,parse:()=>RD,structure:()=>DD});var N={};n.r(N),n.d(N,{generate:()=>LD,name:()=>ID,parse:()=>QD,structure:()=>MD});var I={};n.r(I),n.d(I,{generate:()=>zD,name:()=>FD,parse:()=>UD,structure:()=>BD,walkContext:()=>$D});var M={};n.r(M),n.d(M,{generate:()=>qD,name:()=>ZD,parse:()=>XD,structure:()=>HD,walkContext:()=>jD});var Q={};n.r(Q),n.d(Q,{generate:()=>eR,name:()=>VD,parse:()=>JD,structure:()=>KD});var L={};n.r(L),n.d(L,{generate:()=>oR,name:()=>nR,parse:()=>iR,structure:()=>rR});var F={};n.r(F),n.d(F,{generate:()=>dR,name:()=>lR,parse:()=>hR,structure:()=>uR,walkContext:()=>cR});var $={};n.r($),n.d($,{generate:()=>gR,name:()=>fR,parse:()=>mR,structure:()=>pR});var B={};n.r(B),n.d(B,{generate:()=>kR,name:()=>OR,parse:()=>vR,structure:()=>yR,walkContext:()=>bR});var U={};n.r(U),n.d(U,{generate:()=>_R,name:()=>wR,parse:()=>CR,structure:()=>TR});var z={};n.r(z),n.d(z,{generate:()=>QR,name:()=>RR,parse:()=>MR,structure:()=>IR,walkContext:()=>NR});var Z={};n.r(Z),n.d(Z,{generate:()=>ZR,name:()=>BR,parse:()=>zR,structure:()=>UR});var j={};n.r(j),n.d(j,{generate:()=>eN,name:()=>VR,parse:()=>JR,structure:()=>KR});var H={};n.r(H),n.d(H,{generate:()=>uN,name:()=>aN,parse:()=>cN,structure:()=>lN});var X={};n.r(X),n.d(X,{generate:()=>pN,name:()=>hN,parse:()=>fN,structure:()=>dN});var q={};n.r(q),n.d(q,{generate:()=>yN,name:()=>gN,parse:()=>bN,structure:()=>ON});var Y={};n.r(Y),n.d(Y,{AnPlusB:()=>a,Atrule:()=>l,AtrulePrelude:()=>c,AttributeSelector:()=>u,Block:()=>h,Brackets:()=>d,CDC:()=>f,CDO:()=>p,ClassSelector:()=>m,Combinator:()=>g,Comment:()=>O,Declaration:()=>b,DeclarationList:()=>y,Dimension:()=>v,Function:()=>k,Hash:()=>S,IdSelector:()=>E,Identifier:()=>x,MediaFeature:()=>A,MediaQuery:()=>w,MediaQueryList:()=>T,NestingSelector:()=>C,Nth:()=>_,Number:()=>P,Operator:()=>D,Parentheses:()=>R,Percentage:()=>N,PseudoClassSelector:()=>I,PseudoElementSelector:()=>M,Ratio:()=>Q,Raw:()=>L,Rule:()=>F,Selector:()=>$,SelectorList:()=>B,String:()=>U,StyleSheet:()=>z,TypeSelector:()=>Z,UnicodeRange:()=>j,Url:()=>H,Value:()=>X,WhiteSpace:()=>q});var W={};n.r(W),n.d(W,{AtrulePrelude:()=>SN,Selector:()=>xN,Value:()=>AN});var G={};n.r(G),n.d(G,{AnPlusB:()=>VC,Atrule:()=>i_,AtrulePrelude:()=>c_,AttributeSelector:()=>k_,Block:()=>D_,Brackets:()=>M_,CDC:()=>$_,CDO:()=>Z_,ClassSelector:()=>Y_,Combinator:()=>nP,Comment:()=>lP,Declaration:()=>xP,DeclarationList:()=>DP,Dimension:()=>MP,Function:()=>BP,Hash:()=>HP,IdSelector:()=>JP,Identifier:()=>WP,MediaFeature:()=>rD,MediaQuery:()=>aD,MediaQueryList:()=>hD,NestingSelector:()=>gD,Nth:()=>vD,Number:()=>ED,Operator:()=>CD,Parentheses:()=>RD,Percentage:()=>QD,PseudoClassSelector:()=>UD,PseudoElementSelector:()=>XD,Ratio:()=>JD,Raw:()=>iR,Rule:()=>hR,Selector:()=>mR,SelectorList:()=>vR,String:()=>CR,StyleSheet:()=>MR,TypeSelector:()=>zR,UnicodeRange:()=>JR,Url:()=>cN,Value:()=>fN,WhiteSpace:()=>bN});var V,K=n(905),J=n.t(K,2),ee=n(8721),te=n(4824),ne=n.t(te,2);function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function he(e,t,n,r){void 0===r&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=V.Pop,l=null,c=u();function u(){return(s.state||{idx:null}).idx}function h(){a=V.Pop;let e=u(),t=null==e?null:e-c;c=e,l&&l({action:a,location:f.location,delta:t})}function d(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,n="string"===typeof e?e:ce(e);return n=n.replace(/ $/,"%20"),oe(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==c&&(c=0,s.replaceState(re({},s.state,{idx:c}),""));let f={get action(){return a},get location(){return e(i,s)},listen(e){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(ie,h),l=e,()=>{i.removeEventListener(ie,h),l=null}},createHref:e=>t(i,e),createURL:d,encodeLocation(e){let t=d(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){a=V.Push;let r=le(f.location,e,t);n&&n(r,e),c=u()+1;let h=ae(r,c),d=f.createHref(r);try{s.pushState(h,"",d)}catch(p){if(p instanceof DOMException&&"DataCloneError"===p.name)throw p;i.location.assign(d)}o&&l&&l({action:a,location:f.location,delta:1})},replace:function(e,t){a=V.Replace;let r=le(f.location,e,t);n&&n(r,e),c=u();let i=ae(r,c),h=f.createHref(r);s.replaceState(i,"",h),o&&l&&l({action:a,location:f.location,delta:0})},go:e=>s.go(e)};return f}var de;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(de||(de={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function fe(e,t,n){return void 0===n&&(n="/"),pe(e,t,n,!1)}function pe(e,t,n,r){let i=Ce(("string"===typeof t?ue(t):t).pathname||"/",n);if(null==i)return null;let o=me(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let s=null;for(let a=0;null==s&&a{let s={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};s.relativePath.startsWith("/")&&(oe(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(r.length));let a=Ne([r,s.relativePath]),l=n.concat(s);e.children&&e.children.length>0&&(oe(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+a+'".'),me(e.children,t,l,a)),(null!=e.path||e.index)&&t.push({path:a,score:Ee(a,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of ge(e.path))i(e,t,r);else i(e,t)})),t}function ge(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return i?[o,""]:[o];let s=ge(r.join("/")),a=[];return a.push(...s.map((e=>""===e?o:[o,e].join("/")))),i&&a.push(...s),a.map((t=>e.startsWith("/")&&""===t?"/":t))}const Oe=/^:[\w-]+$/,be=3,ye=2,ve=1,ke=10,Se=-2,xe=e=>"*"===e;function Ee(e,t){let n=e.split("/"),r=n.length;return n.some(xe)&&(r+=Se),t&&(r+=ye),n.filter((e=>!xe(e))).reduce(((e,t)=>e+(Oe.test(t)?be:""===t?ve:ke)),r)}function Ae(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,i={},o="/",s=[];for(let a=0;a(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let o=new RegExp(i,t?void 0:"i");return[o,r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),a=i.slice(1),l=r.reduce(((e,t,n)=>{let{paramName:r,isOptional:i}=t;if("*"===r){let e=a[n]||"";s=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const l=a[n];return e[r]=i&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{});return{params:l,pathname:o,pathnameBase:s,pattern:e}}function Te(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return se(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function Ce(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function _e(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function Pe(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function De(e,t){let n=Pe(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function Re(e,t,n,r){let i;void 0===r&&(r=!1),"string"===typeof e?i=ue(e):(i=re({},e),oe(!i.pathname||!i.pathname.includes("?"),_e("?","pathname","search",i)),oe(!i.pathname||!i.pathname.includes("#"),_e("#","pathname","hash",i)),oe(!i.search||!i.search.includes("#"),_e("#","search","hash",i)));let o,s=""===e||""===i.pathname,a=s?"/":i.pathname;if(null==a)o=n;else{let e=t.length-1;if(!r&&a.startsWith("..")){let t=a.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:i=""}="string"===typeof e?ue(e):e,o=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:o,search:Me(r),hash:Qe(i)}}(i,o),c=a&&"/"!==a&&a.endsWith("/"),u=(s||"."===a)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}const Ne=e=>e.join("/").replace(/\/\/+/g,"/"),Ie=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Me=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Qe=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function Le(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const Fe=["post","put","patch","delete"],$e=(new Set(Fe),["get",...Fe]);new Set($e),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function Be(){return Be=Object.assign?Object.assign.bind():function(e){for(var t=1;t{n.current=!0}));let r=K.useCallback((function(r,i){void 0===i&&(i={}),n.current&&("number"===typeof r?e.navigate(r):e.navigate(r,Be({fromRouteId:t},i)))}),[e,t]);return r}():function(){qe()||oe(!1);let e=K.useContext(Ue),{basename:t,future:n,navigator:r}=K.useContext(Ze),{matches:i}=K.useContext(He),{pathname:o}=Ye(),s=JSON.stringify(De(i,n.v7_relativeSplatPath)),a=K.useRef(!1);We((()=>{a.current=!0}));let l=K.useCallback((function(n,i){if(void 0===i&&(i={}),!a.current)return;if("number"===typeof n)return void r.go(n);let l=Re(n,JSON.parse(s),o,"path"===i.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:Ne([t,l.pathname])),(i.replace?r.replace:r.push)(l,i.state,i)}),[t,r,s,o,e]);return l}()}const Ve=K.createContext(null);function Ke(e,t){let{relative:n}=void 0===t?{}:t,{future:r}=K.useContext(Ze),{matches:i}=K.useContext(He),{pathname:o}=Ye(),s=JSON.stringify(De(i,r.v7_relativeSplatPath));return K.useMemo((()=>Re(e,JSON.parse(s),o,"path"===n)),[e,s,o,n])}function Je(e,t,n,r){qe()||oe(!1);let{navigator:i}=K.useContext(Ze),{matches:o}=K.useContext(He),s=o[o.length-1],a=s?s.params:{},l=(s&&s.pathname,s?s.pathnameBase:"/");s&&s.route;let c,u=Ye();if(t){var h;let e="string"===typeof t?ue(t):t;"/"===l||(null==(h=e.pathname)?void 0:h.startsWith(l))||oe(!1),c=e}else c=u;let d=c.pathname||"/",f=d;if("/"!==l){let e=l.replace(/^\//,"").split("/");f="/"+d.replace(/^\//,"").split("/").slice(e.length).join("/")}let p=fe(e,{pathname:f});let m=it(p&&p.map((e=>Object.assign({},e,{params:Object.assign({},a,e.params),pathname:Ne([l,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:Ne([l,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),o,n,r);return t&&m?K.createElement(je.Provider,{value:{location:Be({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:V.Pop}},m):m}function et(){let e=function(){var e;let t=K.useContext(Xe),n=lt(st.UseRouteError),r=ct(st.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=Le(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r};return K.createElement(K.Fragment,null,K.createElement("h2",null,"Unexpected Application Error!"),K.createElement("h3",{style:{fontStyle:"italic"}},t),n?K.createElement("pre",{style:i},n):null,null)}const tt=K.createElement(et,null);class nt extends K.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?K.createElement(He.Provider,{value:this.props.routeContext},K.createElement(Xe.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function rt(e){let{routeContext:t,match:n,children:r}=e,i=K.useContext(Ue);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),K.createElement(He.Provider,{value:t},r)}function it(e,t,n,r){var i;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){var o;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(o=r)&&o.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let s=e,a=null==(i=n)?void 0:i.errors;if(null!=a){let e=s.findIndex((e=>e.route.id&&void 0!==(null==a?void 0:a[e.route.id])));e>=0||oe(!1),s=s.slice(0,Math.min(s.length,e+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?s.slice(0,c+1):[s[0]];break}}}return s.reduceRight(((e,r,i)=>{let o,u=!1,h=null,d=null;n&&(o=a&&r.route.id?a[r.route.id]:void 0,h=r.route.errorElement||tt,l&&(c<0&&0===i?(!function(e,t){t||ut[e]||(ut[e]=!0)}("route-fallback",!1),u=!0,d=null):c===i&&(u=!0,d=r.route.hydrateFallbackElement||null)));let f=t.concat(s.slice(0,i+1)),p=()=>{let t;return t=o?h:u?d:r.route.Component?K.createElement(r.route.Component,null):r.route.element?r.route.element:e,K.createElement(rt,{match:r,routeContext:{outlet:e,matches:f,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===i)?K.createElement(nt,{location:n.location,revalidation:n.revalidation,component:h,error:o,children:p(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):p()}),null)}var ot=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ot||{}),st=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(st||{});function at(e){let t=K.useContext(Ue);return t||oe(!1),t}function lt(e){let t=K.useContext(ze);return t||oe(!1),t}function ct(e){let t=function(){let e=K.useContext(He);return e||oe(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||oe(!1),n.route.id}const ut={};J.startTransition;function ht(e){return function(e){let t=K.useContext(He).outlet;return t?K.createElement(Ve.Provider,{value:e},t):t}(e.context)}function dt(e){oe(!1)}function ft(e){let{basename:t="/",children:n=null,location:r,navigationType:i=V.Pop,navigator:o,static:s=!1,future:a}=e;qe()&&oe(!1);let l=t.replace(/^\/*/,"/"),c=K.useMemo((()=>({basename:l,navigator:o,static:s,future:Be({v7_relativeSplatPath:!1},a)})),[l,a,o,s]);"string"===typeof r&&(r=ue(r));let{pathname:u="/",search:h="",hash:d="",state:f=null,key:p="default"}=r,m=K.useMemo((()=>{let e=Ce(u,l);return null==e?null:{location:{pathname:e,search:h,hash:d,state:f,key:p},navigationType:i}}),[l,u,h,d,f,p,i]);return null==m?null:K.createElement(Ze.Provider,{value:c},K.createElement(je.Provider,{children:n,value:m}))}function pt(e){let{children:t,location:n}=e;return Je(mt(t),n)}new Promise((()=>{}));K.Component;function mt(e,t){void 0===t&&(t=[]);let n=[];return K.Children.forEach(e,((e,r)=>{if(!K.isValidElement(e))return;let i=[...t,r];if(e.type===K.Fragment)return void n.push.apply(n,mt(e.props.children,i));e.type!==dt&&oe(!1),e.props.index&&e.props.children&&oe(!1);let o={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=mt(e.props.children,i)),n.push(o)})),n}function gt(){return gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function bt(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const yt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],vt=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];try{window.__reactRouterVersion="6"}catch($M){}const kt=K.createContext({isTransitioning:!1});new Map;const St=J.startTransition;ne.flushSync,J.useId;function xt(e){let{basename:t,children:n,future:r,window:i}=e,o=K.useRef();var s;null==o.current&&(o.current=(void 0===(s={window:i,v5Compat:!0})&&(s={}),he((function(e,t){let{pathname:n="/",search:r="",hash:i=""}=ue(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),le("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"===typeof t?t:ce(t))}),(function(e,t){se("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),s)));let a=o.current,[l,c]=K.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},h=K.useCallback((e=>{u&&St?St((()=>c(e))):c(e)}),[c,u]);return K.useLayoutEffect((()=>a.listen(h)),[a,h]),K.createElement(ft,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}const Et="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,At=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wt=K.forwardRef((function(e,t){let n,{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:c,preventScrollReset:u,unstable_viewTransition:h}=e,d=Ot(e,yt),{basename:f}=K.useContext(Ze),p=!1;if("string"===typeof c&&At.test(c)&&(n=c,Et))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),n=Ce(t.pathname,f);t.origin===e.origin&&null!=n?c=n+t.search+t.hash:p=!0}catch($M){}let m=function(e,t){let{relative:n}=void 0===t?{}:t;qe()||oe(!1);let{basename:r,navigator:i}=K.useContext(Ze),{hash:o,pathname:s,search:a}=Ke(e,{relative:n}),l=s;return"/"!==r&&(l="/"===s?r:Ne([r,s])),i.createHref({pathname:l,search:a,hash:o})}(c,{relative:i}),g=function(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:a}=void 0===t?{}:t,l=Ge(),c=Ye(),u=Ke(e,{relative:s});return K.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==r?r:ce(c)===ce(u);l(e,{replace:n,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:a})}}),[c,l,u,r,i,n,e,o,s,a])}(c,{replace:s,state:a,target:l,preventScrollReset:u,relative:i,unstable_viewTransition:h});return K.createElement("a",gt({},d,{href:n||m,onClick:p||o?r:function(e){r&&r(e),e.defaultPrevented||g(e)},ref:t,target:l}))}));const Tt=K.forwardRef((function(e,t){let{"aria-current":n="page",caseSensitive:r=!1,className:i="",end:o=!1,style:s,to:a,unstable_viewTransition:l,children:c}=e,u=Ot(e,vt),h=Ke(a,{relative:u.relative}),d=Ye(),f=K.useContext(ze),{navigator:p,basename:m}=K.useContext(Ze),g=null!=f&&function(e,t){void 0===t&&(t={});let n=K.useContext(kt);null==n&&oe(!1);let{basename:r}=Pt(Ct.useViewTransitionState),i=Ke(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=Ce(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Ce(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=we(i.pathname,s)||null!=we(i.pathname,o)}(h)&&!0===l,O=p.encodeLocation?p.encodeLocation(h).pathname:h.pathname,b=d.pathname,y=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;r||(b=b.toLowerCase(),y=y?y.toLowerCase():null,O=O.toLowerCase()),y&&m&&(y=Ce(y,m)||y);const v="/"!==O&&O.endsWith("/")?O.length-1:O.length;let k,S=b===O||!o&&b.startsWith(O)&&"/"===b.charAt(v),x=null!=y&&(y===O||!o&&y.startsWith(O)&&"/"===y.charAt(O.length)),E={isActive:S,isPending:x,isTransitioning:g},A=S?n:void 0;k="function"===typeof i?i(E):[i,S?"active":null,x?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let w="function"===typeof s?s(E):s;return K.createElement(wt,gt({},u,{"aria-current":A,className:k,ref:t,style:w,to:a,unstable_viewTransition:l}),"function"===typeof c?c(E):c)}));var Ct,_t;function Pt(e){let t=K.useContext(Ue);return t||oe(!1),t}function Dt(e){let t=K.useRef(bt(e)),n=K.useRef(!1),r=Ye(),i=K.useMemo((()=>function(e,t){let n=bt(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(r.search,n.current?null:t.current)),[r.search]),o=Ge(),s=K.useCallback(((e,t)=>{const r=bt("function"===typeof e?e(i):e);n.current=!0,o("?"+r,t)}),[o,i]);return[i,s]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ct||(Ct={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(_t||(_t={}));function Rt(){return Rt=Object.assign?Object.assign.bind():function(e){for(var t=1;to/2),[o]),m=(0,K.useMemo)((()=>o/2-s/2),[o,s]),g=(0,K.useMemo)((()=>Math.PI*m*2),[m]),[O,b]=(0,K.useState)(g||0),y=e=>{var{clientHeight:t,scrollHeight:n,scrollTop:o}=r||Bt;b(g-g*(o/(n-t))||0),h.current&&i>0&&(h.current.style.opacity=o>i?"1":"0")};(0,K.useEffect)((()=>{var e=r===Bt?document:r;return e&&e.addEventListener("scroll",y,{passive:!0}),()=>{e&&e.removeEventListener("scroll",y)}}),[r]);return(0,It.jsxs)("div",Rt({className:d,ref:h},u,{onClick:e=>{r.scrollTo({top:0,behavior:a?"smooth":"auto"})},style:f,children:[!l&&(0,It.jsxs)("svg",{viewBox:"0 0 "+o+" "+o,width:o,height:o,focusable:"false",style:Lt,children:[(0,It.jsx)("circle",{fill:"rgb(0 0 0 / 75%)",stroke:"rgb(200 200 200 / 85%)",strokeWidth:s,r:m,cx:p,cy:p}),(0,It.jsx)("circle",{fill:"none",stroke:"rgb(0 0 0 / 50%)",strokeWidth:s,r:m,cx:p,cy:p,strokeDasharray:g,strokeDashoffset:O||0,style:Ft})]}),c&&(0,It.jsx)("div",{style:$t,children:c})]}))}let zt={data:""},Zt=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||zt,jt=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Ht=/\/\*[^]*?\*\/| +/g,Xt=/\n+/g,qt=(e,t)=>{let n="",r="",i="";for(let o in e){let s=e[o];"@"==o[0]?"i"==o[1]?n=o+" "+s+";":r+="f"==o[1]?qt(s,o):o+"{"+qt(s,"k"==o[1]?"":t)+"}":"object"==typeof s?r+=qt(s,t?t.replace(/([^,])+/g,(e=>o.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):o):null!=s&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=qt.p?qt.p(o,s):o+":"+s+";")}return n+(t&&i?t+"{"+i+"}":i)+r},Yt={},Wt=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+Wt(e[n]);return t}return e},Gt=(e,t,n,r,i)=>{let o=Wt(e),s=Yt[o]||(Yt[o]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(o));if(!Yt[s]){let t=o!==e?e:(e=>{let t,n,r=[{}];for(;t=jt.exec(e.replace(Ht,""));)t[4]?r.shift():t[3]?(n=t[3].replace(Xt," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(Xt," ").trim();return r[0]})(e);Yt[s]=qt(i?{["@keyframes "+s]:t}:t,n?"":"."+s)}let a=n&&Yt.g?Yt.g:null;return n&&(Yt.g=Yt[s]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(Yt[s],t,r,a),s},Vt=(e,t,n)=>e.reduce(((e,r,i)=>{let o=t[i];if(o&&o.call){let e=o(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":qt(e,""):!1===e?"":e}return e+r+(null==o?"":o)}),"");function Kt(e){let t=this||{},n=e.call?e(t.p):e;return Gt(n.unshift?n.raw?Vt(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,Zt(t.target),t.g,t.o,t.k)}Kt.bind({g:1});let Jt,en,tn,nn=Kt.bind({k:1});function rn(e,t){let n=this||{};return function(){let r=arguments;function i(o,s){let a=Object.assign({},o),l=a.className||i.className;n.p=Object.assign({theme:en&&en()},a),n.o=/ *go\d+/.test(l),a.className=Kt.apply(n,r)+(l?" "+l:""),t&&(a.ref=s);let c=e;return e[0]&&(c=a.as||e,delete a.as),tn&&c[0]&&tn(a),Jt(c,a)}return t?t(i):i}}var on=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,sn=(()=>{let e=0;return()=>(++e).toString()})(),an=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),ln=new Map,cn=e=>{if(ln.has(e))return;let t=setTimeout((()=>{ln.delete(e),fn({type:4,toastId:e})}),1e3);ln.set(e,t)},un=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return t.toast.id&&(e=>{let t=ln.get(e);t&&clearTimeout(t)})(t.toast.id),{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:n}=t;return e.toasts.find((e=>e.id===n.id))?un(e,{type:1,toast:n}):un(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?cn(r):e.toasts.forEach((e=>{cn(e.id)})),{...e,toasts:e.toasts.map((e=>e.id===r||void 0===r?{...e,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+i})))}}},hn=[],dn={toasts:[],pausedAt:void 0},fn=e=>{dn=un(dn,e),hn.forEach((e=>{e(dn)}))},pn={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},mn=e=>(t,n)=>{let r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"blank",n=arguments.length>2?arguments[2]:void 0;return{createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||sn()}}(t,e,n);return fn({type:2,toast:r}),r.id},gn=(e,t)=>mn("blank")(e,t);gn.error=mn("error"),gn.success=mn("success"),gn.loading=mn("loading"),gn.custom=mn("custom"),gn.dismiss=e=>{fn({type:3,toastId:e})},gn.remove=e=>fn({type:4,toastId:e}),gn.promise=(e,t,n)=>{let r=gn.loading(t.loading,{...n,...null==n?void 0:n.loading});return e.then((e=>(gn.success(on(t.success,e),{id:r,...n,...null==n?void 0:n.success}),e))).catch((e=>{gn.error(on(t.error,e),{id:r,...n,...null==n?void 0:n.error})})),e};var On=(e,t)=>{fn({type:1,toast:{id:e,height:t}})},bn=()=>{fn({type:5,time:Date.now()})},yn=e=>{let{toasts:t,pausedAt:n}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,n]=(0,K.useState)(dn);(0,K.useEffect)((()=>(hn.push(n),()=>{let e=hn.indexOf(n);e>-1&&hn.splice(e,1)})),[t]);let r=t.toasts.map((t=>{var n,r;return{...e,...e[t.type],...t,duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||pn[t.type],style:{...e.style,...null==(r=e[t.type])?void 0:r.style,...t.style}}}));return{...t,toasts:r}}(e);(0,K.useEffect)((()=>{if(n)return;let e=Date.now(),r=t.map((t=>{if(t.duration===1/0)return;let n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(n<0))return setTimeout((()=>gn.dismiss(t.id)),n);t.visible&&gn.dismiss(t.id)}));return()=>{r.forEach((e=>e&&clearTimeout(e)))}}),[t,n]);let r=(0,K.useCallback)((()=>{n&&fn({type:6,time:Date.now()})}),[n]),i=(0,K.useCallback)(((e,n)=>{let{reverseOrder:r=!1,gutter:i=8,defaultPosition:o}=n||{},s=t.filter((t=>(t.position||o)===(e.position||o)&&t.height)),a=s.findIndex((t=>t.id===e.id)),l=s.filter(((e,t)=>te.visible)).slice(...r?[l+1]:[0,l]).reduce(((e,t)=>e+(t.height||0)+i),0)}),[t]);return{toasts:t,handlers:{updateHeight:On,startPause:bn,endPause:r,calculateOffset:i}}},vn=nn`
from {
transform: scale(0) rotate(45deg);
@@ -237,7 +237,7 @@ to {
border-radius: 0.2rem;
}
}
-`;function aE(){const{isLoading:e}=(0,K.useContext)(Jx);return(0,It.jsxs)(eE,{className:"wmde-markdown-color",children:[(0,It.jsx)(tE,{children:(0,It.jsxs)(nE,{className:"header",children:[(0,It.jsxs)(rE,{className:"logo",children:[(0,It.jsx)(iE,{width:28,height:28}),(0,It.jsxs)(oE,{children:["\u5fae\u4fe1\u516c\u4f17\u53f7\u6392\u7248\u7f16\u8f91\u5668",(0,It.jsxs)("sup",{children:[" v","2.3.3"," "]})]}),e&&(0,It.jsx)(Ws,{})]}),(0,It.jsxs)(sE,{children:[(0,It.jsx)(Tt,{to:"/",children:"\u9996\u9875"}),(0,It.jsx)(Tt,{to:"/editor/theme",children:"\u7f16\u8f91\u4e3b\u9898"}),(0,It.jsx)(Tt,{to:"/doc",children:"\u6587\u6863"}),(0,It.jsx)("dark-mode",{permanent:!0,dark:"Dark",light:"Light"}),(0,It.jsx)("a",{href:"https://github.com/jaywcjlove/wxmp",target:"__blank",children:(0,It.jsx)(Ls,{width:23,height:23})})]})]})}),(0,It.jsx)(ht,{})]})}const lE=1,cE=2,uE=3,hE=4,dE=5,fE=6,pE=7,mE=8,gE=9,OE=10,bE=11,yE=12,vE=13,kE=14,SE=15,xE=16,EE=17,AE=18,wE=19,TE=20,CE=21,_E=22,PE=23,DE=24,RE=25,NE=0;function IE(e){return e>=48&&e<=57}function ME(e){return IE(e)||e>=65&&e<=70||e>=97&&e<=102}function QE(e){return e>=65&&e<=90}function LE(e){return function(e){return QE(e)||function(e){return e>=97&&e<=122}(e)}(e)||function(e){return e>=128}(e)||95===e}function FE(e){return LE(e)||IE(e)||45===e}function $E(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}function BE(e){return 10===e||13===e||12===e}function UE(e){return BE(e)||32===e||9===e}function zE(e,t){return 92===e&&(!BE(t)&&t!==NE)}function ZE(e,t,n){return 45===e?LE(t)||45===t||zE(t,n):!!LE(e)||92===e&&zE(e,t)}function jE(e,t,n){return 43===e||45===e?IE(t)?2:46===t&&IE(n)?3:0:46===e?IE(t)?2:0:IE(e)?1:0}function HE(e){return 65279===e||65534===e?1:0}const XE=new Array(128),qE=130,YE=131,WE=132,GE=133;for(let BM=0;BMe.length)return!1;for(let i=t;i=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)}const cA=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token"],uA=16384;function hA(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return null===e||e.length0?HE(t.charCodeAt(0)):0,i=hA(e.lines,n),o=hA(e.columns,n);let s=e.startLine,a=e.startColumn;for(let l=r;l1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;this.source=e,this.startOffset=t,this.startLine=n,this.startColumn=r,this.computed=!1}getLocation(e,t){return this.computed||dA(this),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,t,n){return this.computed||dA(this),{source:n,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]}}}}const pA=16777215,mA=24,gA=new Map([[cE,_E],[CE,_E],[wE,TE],[PE,DE]]);class OA{constructor(e,t){this.setSource(e,t)}reset(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}setSource(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};e=String(e||"");const n=e.length,r=hA(this.offsetAndType,e.length+1),i=hA(this.balance,e.length+1);let o=0,s=0,a=0,l=-1;for(this.offsetAndType=null,this.balance=null,t(e,((e,t,c)=>{switch(e){default:i[o]=n;break;case s:{let e=a&pA;for(a=i[e],s=a>>mA,i[o]=e,i[e++]=o;e>mA:0}lookupOffset(e){return(e+=this.tokenIndex)0?e>mA,this.tokenEnd=t&pA):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e>mA,this.tokenEnd=e&pA):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=0,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===vE||this.tokenType===RE;)this.next()}skipUntilBalanced(e,t){let n,r,i=e;e:for(;i0?this.offsetAndType[i-1]&pA:this.firstCharOffset,t(this.source.charCodeAt(r))){case 1:break e;case 2:i++;break e;default:this.balance[n]===i&&(i=n)}this.skip(i-this.tokenIndex)}forEachToken(e){for(let t=0,n=this.firstCharOffset;t>mA,r,o,t)}}dump(){const e=new Array(this.tokenCount);return this.forEachToken(((t,n,r,i)=>{e[i]={idx:i,type:cA[t],chunk:this.source.substring(n,r),balance:this.balance[i]}})),e}}function bA(e,t){function n(t){return t=e.length?void(c1&&void 0!==arguments[1]?arguments[1]:this;const n=this.allocateCursor(null,this.head);for(;null!==n.next;){const r=n.next;n.next=r.next,e.call(t,r.data,r,this)}this.releaseCursor()}forEachRight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;const n=this.allocateCursor(this.tail,null);for(;null!==n.prev;){const r=n.prev;n.prev=r.prev,e.call(t,r.data,r,this)}this.releaseCursor()}reduce(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,i=this.allocateCursor(null,this.head),o=t;for(;null!==i.next;)n=i.next,i.next=n.next,o=e.call(r,o,n.data,n,this);return this.releaseCursor(),o}reduceRight(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,i=this.allocateCursor(this.tail,null),o=t;for(;null!==i.prev;)n=i.prev,i.prev=n.prev,o=e.call(r,o,n.data,n,this);return this.releaseCursor(),o}some(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(let n=this.head;null!==n;n=n.next)if(e.call(t,n.data,n,this))return!0;return!1}map(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;const n=new vA;for(let r=this.head;null!==r;r=r.next)n.appendData(e.call(t,r.data,r,this));return n}filter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;const n=new vA;for(let r=this.head;null!==r;r=r.next)e.call(t,r.data,r,this)&&n.appendData(r.data);return n}nextUntil(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;if(null===e)return;const r=this.allocateCursor(null,e);for(;null!==r.next;){const e=r.next;if(r.next=e.next,t.call(n,e.data,e,this))break}this.releaseCursor()}prevUntil(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;if(null===e)return;const r=this.allocateCursor(e,null);for(;null!==r.prev;){const e=r.prev;if(r.prev=e.prev,t.call(n,e.data,e,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){const e=new vA;for(let t of this)e.appendData(t);return e}prepend(e){return this.updateCursors(null,e,this.head,e),null!==this.head?(this.head.prev=e,e.next=this.head):this.tail=e,this.head=e,this}prependData(e){return this.prepend(vA.createItem(e))}append(e){return this.insert(e)}appendData(e){return this.insert(vA.createItem(e))}insert(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null!==t)if(this.updateCursors(t.prev,e,t,e),null===t.prev){if(this.head!==t)throw new Error("before doesn't belong to list");this.head=e,t.prev=e,e.next=t,this.updateCursors(null,e)}else t.prev.next=e,e.prev=t.prev,t.prev=e,e.next=t;else this.updateCursors(this.tail,e,null,e),null!==this.tail?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e;return this}insertData(e,t){return this.insert(vA.createItem(e),t)}remove(e){if(this.updateCursors(e,e.prev,e,e.next),null!==e.prev)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't belong to list");this.head=e.next}if(null!==e.next)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't belong to list");this.tail=e.prev}return e.prev=null,e.next=null,e}push(e){this.insert(vA.createItem(e))}pop(){return null!==this.tail?this.remove(this.tail):null}unshift(e){this.prepend(vA.createItem(e))}shift(){return null!==this.head?this.remove(this.head):null}prependList(e){return this.insertList(e,this.head)}appendList(e){return this.insertList(e)}insertList(e,t){return null===e.head||(void 0!==t&&null!==t?(this.updateCursors(t.prev,e.tail,t,e.head),null!==t.prev?(t.prev.next=e.head,e.head.prev=t.prev):this.head=e.head,t.prev=e.tail,e.tail.next=t):(this.updateCursors(this.tail,e.tail,null,e.head),null!==this.tail?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail),e.head=null,e.tail=null),this}replace(e,t){"head"in t?this.insertList(t,e):this.insert(t,e),this.remove(e)}}function kA(e,t){const n=Object.create(SyntaxError.prototype),r=new Error;return Object.assign(n,{name:e,message:t,get stack(){return(r.stack||"").replace(/^(.+\n){1,3}/,`${e}: ${t}\n`)}})}const SA=100,xA=60,EA=" ";function AA(e,t){let{source:n,line:r,column:i}=e;function o(e,t){return s.slice(e,t).map(((t,n)=>String(e+n+1).padStart(c)+" |"+t)).join("\n")}const s=n.split(/\r\n?|\n|\f/),a=Math.max(1,r-t)-1,l=Math.min(r+t,s.length+1),c=Math.max(4,String(l).length)+1;let u=0;i+=(EA.length-1)*(s[r-1].substr(0,i-1).match(/\t/g)||[]).length,i>SA&&(u=i-xA+3,i=xA-2);for(let h=a;h<=l;h++)h>=0&&h0&&s[h].length>u?"\u2026":"")+s[h].substr(u,SA-2)+(s[h].length>u+SA-1?"\u2026":""));return[o(a,r),new Array(i+c+2).join("-")+"^",o(r,l)].filter(Boolean).join("\n")}function wA(e,t,n,r,i){return Object.assign(kA("SyntaxError",e),{source:t,offset:n,line:r,column:i,sourceFragment:e=>AA({source:t,line:r,column:i},isNaN(e)?0:e),get formattedMessage(){return`Parse error: ${e}\n`+AA({source:t,line:r,column:i},2)}})}function TA(e){const t=this.createList();let n=!1;const r={recognizer:e};for(;!this.eof;){switch(this.tokenType){case RE:this.next();continue;case vE:n=!0,this.next();continue}let i=e.getNode.call(this,r);if(void 0===i)break;n&&(e.onWhiteSpace&&e.onWhiteSpace.call(this,i,t,r),n=!1),t.push(i)}return n&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,r),t}const CA=()=>{},_A=33,PA=35,DA=59,RA=123,NA=0;function IA(e){return function(){return this[e]()}}function MA(e){const t=Object.create(null);for(const n in e){const r=e[n],i=r.parse||r;i&&(t[n]=i)}return t}function QA(e){let t="",n="",r=!1,i=CA,o=!1;const s=new fA,a=Object.assign(new OA,function(e){const t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:MA(e.atrule),pseudo:MA(e.pseudo),node:MA(e.node)};for(const n in e.parseContext)switch(typeof e.parseContext[n]){case"function":t.context[n]=e.parseContext[n];break;case"string":t.context[n]=IA(e.parseContext[n])}return{config:t,...t,...t.node}}(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:TA,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket:e=>e===RA?1:0,consumeUntilLeftCurlyBracketOrSemicolon:e=>e===RA||e===DA?1:0,consumeUntilExclamationMarkOrSemicolon:e=>e===_A||e===DA?1:0,consumeUntilSemicolonIncluded:e=>e===DA?2:0,createList:()=>new vA,createSingleNodeList:e=>(new vA).appendData(e),getFirstListNode:e=>e&&e.first,getLastListNode:e=>e&&e.last,parseWithFallback(e,t){const n=this.tokenIndex;try{return e.call(this)}catch($M){if(o)throw $M;const r=t.call(this,n);return o=!0,i($M,r),o=!1,r}},lookupNonWSType(e){let t;do{if(t=this.lookupType(e++),t!==vE)return t}while(t!==NA);return NA},charCodeAt:e=>e>=0&&et.substring(e,n),substrToCursor(e){return this.source.substring(e,this.tokenStart)},cmpChar:(e,n)=>eA(t,e,n),cmpStr:(e,n,r)=>tA(t,e,n,r),consume(e){const t=this.tokenStart;return this.eat(e),this.substrToCursor(t)},consumeFunctionName(){const e=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(cE),e},consumeNumber(e){const n=t.substring(this.tokenStart,sA(t,this.tokenStart));return this.eat(e),n},eat(e){if(this.tokenType!==e){const t=cA[e].slice(0,-6).replace(/-/g," ").replace(/^./,(e=>e.toUpperCase()));let n=`${/[[\](){}]/.test(t)?`"${t}"`:t} is expected`,r=this.tokenStart;switch(e){case lE:this.tokenType===cE||this.tokenType===pE?(r=this.tokenEnd-1,n="Identifier is expected but function found"):n="Identifier is expected";break;case hE:this.isDelim(PA)&&(this.next(),r++,n="Name is expected");break;case bE:this.tokenType===OE&&(r=this.tokenEnd,n="Percent sign is expected")}this.error(n,r)}this.next()},eatIdent(e){this.tokenType===lE&&!1!==this.lookupValue(0,e)||this.error(`Identifier "${e}" is expected`),this.next()},eatDelim(e){this.isDelim(e)||this.error(`Delim "${String.fromCharCode(e)}" is expected`),this.next()},getLocation:(e,t)=>r?s.getLocationRange(e,t,n):null,getLocationFromList(e){if(r){const t=this.getFirstListNode(e),r=this.getLastListNode(e);return s.getLocationRange(null!==t?t.loc.start.offset-s.startOffset:this.tokenStart,null!==r?r.loc.end.offset-s.startOffset:this.tokenStart,n)}return null},error(e,n){const r="undefined"!==typeof n&&n=0&&UE(e.charCodeAt(t));t--);return t+1}(t,t.length-1)):s.getLocation(this.tokenStart);throw new wA(e||"Unexpected input",t,r.offset,r.line,r.column)}});return Object.assign((function(e,l){t=e,l=l||{},a.setSource(t,bA),s.setSource(t,l.offset,l.line,l.column),n=l.filename||"",r=Boolean(l.positions),i="function"===typeof l.onParseError?l.onParseError:CA,o=!1,a.parseAtrulePrelude=!("parseAtrulePrelude"in l)||Boolean(l.parseAtrulePrelude),a.parseRulePrelude=!("parseRulePrelude"in l)||Boolean(l.parseRulePrelude),a.parseValue=!("parseValue"in l)||Boolean(l.parseValue),a.parseCustomProperty="parseCustomProperty"in l&&Boolean(l.parseCustomProperty);const{context:c="default",onComment:u}=l;if(c in a.context===!1)throw new Error("Unknown context `"+c+"`");"function"===typeof u&&a.forEachToken(((e,n,r)=>{if(e===RE){const e=a.getLocation(n,r),i=tA(t,r-2,r,"*/")?t.slice(n+2,r-2):t.slice(n+2,r);u(i,e)}}));const h=a.context[c].call(a,l);return a.eof||a.error(),h}),{SyntaxError:wA,config:a.config})}var LA=n(7428);const FA=new Set(["Atrule","Selector","Declaration"]);const $A=(e,t)=>{if(e===gE&&(e=t),"string"===typeof e){const t=e.charCodeAt(0);return t>127?32768:t<<8}return e},BA=[[lE,lE],[lE,cE],[lE,pE],[lE,mE],[lE,"-"],[lE,OE],[lE,bE],[lE,yE],[lE,SE],[lE,CE],[uE,lE],[uE,cE],[uE,pE],[uE,mE],[uE,"-"],[uE,OE],[uE,bE],[uE,yE],[uE,SE],[hE,lE],[hE,cE],[hE,pE],[hE,mE],[hE,"-"],[hE,OE],[hE,bE],[hE,yE],[hE,SE],[yE,lE],[yE,cE],[yE,pE],[yE,mE],[yE,"-"],[yE,OE],[yE,bE],[yE,yE],[yE,SE],["#",lE],["#",cE],["#",pE],["#",mE],["#","-"],["#",OE],["#",bE],["#",yE],["#",SE],["-",lE],["-",cE],["-",pE],["-",mE],["-","-"],["-",OE],["-",bE],["-",yE],["-",SE],[OE,lE],[OE,cE],[OE,pE],[OE,mE],[OE,OE],[OE,bE],[OE,yE],[OE,"%"],[OE,SE],["@",lE],["@",cE],["@",pE],["@",mE],["@","-"],["@",SE],[".",OE],[".",bE],[".",yE],["+",OE],["+",bE],["+",yE],["/","*"]],UA=BA.concat([[lE,hE],[yE,hE],[hE,hE],[uE,CE],[uE,dE],[uE,xE],[bE,bE],[bE,yE],[bE,cE],[bE,"-"],[_E,lE],[_E,cE],[_E,bE],[_E,yE],[_E,hE],[_E,"-"]]);function zA(e){const t=new Set(e.map((e=>{let[t,n]=e;return $A(t)<<16|$A(n)})));return function(e,n,r){const i=$A(n,r),o=r.charCodeAt(0);return(45===o&&n!==lE&&n!==cE&&n!==SE||43===o?t.has(e<<16|o<<8):t.has(e<<16|i))&&this.emit(" ",vE,!0),i}}const ZA=zA(BA),jA=zA(UA),HA=92;function XA(e,t){if("function"!==typeof t)e.children.forEach(this.node,this);else{let n=null;e.children.forEach((e=>{null!==n&&t.call(this,n),this.node(e),n=e}))}}function qA(e){bA(e,((t,n,r)=>{this.token(t,e.slice(n,r))}))}function YA(e){const t=new Map;for(let n in e.node){const r=e.node[n];"function"===typeof(r.generate||r)&&t.set(n,r.generate||r)}return function(e,n){let r="",o=0,s={node(e){if(!t.has(e.type))throw new Error("Unknown node type: "+e.type);t.get(e.type).call(a,e)},tokenBefore:jA,token(e,t){o=this.tokenBefore(o,e,t),this.emit(t,e,!1),e===gE&&t.charCodeAt(0)===HA&&this.emit("\n",vE,!0)},emit(e){r+=e},result:()=>r};n&&("function"===typeof n.decorator&&(s=n.decorator(s)),n.sourceMap&&(s=function(e){const t=new LA.x,n={line:1,column:0},r={line:0,column:0},i={line:1,column:0},o={generated:i};let s=1,a=0,l=!1;const c=e.node;e.node=function(e){if(e.loc&&e.loc.start&&FA.has(e.type)){const c=e.loc.start.line,u=e.loc.start.column-1;r.line===c&&r.column===u||(r.line=c,r.column=u,n.line=s,n.column=a,l&&(l=!1,n.line===i.line&&n.column===i.column||t.addMapping(o)),l=!0,t.addMapping({source:e.loc.source,original:r,generated:n}))}c.call(this,e),l&&FA.has(e.type)&&(i.line=s,i.column=a)};const u=e.emit;e.emit=function(e,t,n){for(let r=0;rs.node(e),children:XA,token:(e,t)=>s.token(e,t),tokenize:qA};return s.node(e),s.result()}}const{hasOwnProperty:WA}=Object.prototype,GA=function(){};function VA(e){return"function"===typeof e?e:GA}function KA(e,t){return function(n,r,i){n.type===t&&e.call(this,n,r,i)}}function JA(e,t){const n=t.structure,r=[];for(const i in n){if(!1===WA.call(n,i))continue;let e=n[i];const t={name:i,type:!1,nullable:!1};Array.isArray(e)||(e=[e]);for(const n of e)null===n?t.nullable=!0:"string"===typeof n?t.type="node":Array.isArray(n)&&(t.type="list");t.type&&r.push(t)}return r.length?{context:t.walkContext,fields:r}:null}function ew(e,t){const n=e.fields.slice(),r=e.context,i="string"===typeof r;return t&&n.reverse(),function(e,o,s,a){let l;i&&(l=o[r],o[r]=e);for(const r of n){const n=e[r.name];if(!r.nullable||n)if("list"===r.type){if(t?n.reduceRight(a,!1):n.reduce(a,!1))return!0}else if(s(n))return!0}i&&(o[r]=l)}}function tw(e){let{StyleSheet:t,Atrule:n,Rule:r,Block:i,DeclarationList:o}=e;return{Atrule:{StyleSheet:t,Atrule:n,Rule:r,Block:i},Rule:{StyleSheet:t,Atrule:n,Rule:r,Block:i},Declaration:{StyleSheet:t,Atrule:n,Rule:r,Block:i,DeclarationList:o}}}function nw(e){const t=function(e){const t={};for(const n in e.node)if(WA.call(e.node,n)){const r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=JA(0,r)}return t}(e),n={},r={},i=Symbol("break-walk"),o=Symbol("skip-node");for(const c in t)WA.call(t,c)&&null!==t[c]&&(n[c]=ew(t[c],!1),r[c]=ew(t[c],!0));const s=tw(n),a=tw(r),l=function(e,l){function c(e,t,n){const r=u.call(p,e,t,n);return r===i||r!==o&&(!(!d.hasOwnProperty(e.type)||!d[e.type](e,p,c,f))||h.call(p,e,t,n)===i)}let u=GA,h=GA,d=n,f=(e,t,n,r)=>e||c(t,n,r);const p={break:i,skip:o,root:e,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if("function"===typeof l)u=l;else if(l&&(u=VA(l.enter),h=VA(l.leave),l.reverse&&(d=r),l.visit)){if(s.hasOwnProperty(l.visit))d=l.reverse?a[l.visit]:s[l.visit];else if(!t.hasOwnProperty(l.visit))throw new Error("Bad value `"+l.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(", ")+")");u=KA(u,l.visit),h=KA(h,l.visit)}if(u===GA&&h===GA)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");c(e)};return l.break=i,l.skip=o,l.find=function(e,t){let n=null;return l(e,(function(e,r,o){if(t.call(this,e,r,o))return n=e,i})),n},l.findLast=function(e,t){let n=null;return l(e,{reverse:!0,enter(e,r,o){if(t.call(this,e,r,o))return n=e,i}}),n},l.findAll=function(e,t){const n=[];return l(e,(function(e,r,i){t.call(this,e,r,i)&&n.push(e)})),n},l}function rw(e){return e}function iw(e,t,n,r){let i;switch(e.type){case"Group":i=function(e,t,n,r){const i=" "===e.combinator||r?e.combinator:" "+e.combinator+" ",o=e.terms.map((e=>iw(e,t,n,r))).join(i);return e.explicit||n?(r||","===o[0]?"[":"[ ")+o+(r?"]":" ]"):o}(e,t,n,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return iw(e.term,t,n,r)+t(function(e){const{min:t,max:n,comma:r}=e;return 0===t&&0===n?r?"#?":"*":0===t&&1===n?"?":1===t&&0===n?r?"#":"+":1===t&&1===n?"":(r?"#":"")+(t===n?"{"+t+"}":"{"+t+","+(0!==n?n:"")+"}")}(e),e);case"Type":i="<"+e.name+(e.opts?t(function(e){if("Range"===e.type)return" ["+(null===e.min?"-\u221e":e.min)+","+(null===e.max?"\u221e":e.max)+"]";throw new Error("Unknown node type `"+e.type+"`")}(e.opts),e.opts):"")+">";break;case"Property":i="<'"+e.name+"'>";break;case"Keyword":i=e.name;break;case"AtKeyword":i="@"+e.name;break;case"Function":i=e.name+"(";break;case"String":case"Token":i=e.value;break;case"Comma":i=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(i,e)}function ow(e,t){let n=rw,r=!1,i=!1;return"function"===typeof t?n=t:t&&(r=Boolean(t.forceBraces),i=Boolean(t.compact),"function"===typeof t.decorate&&(n=t.decorate)),iw(e,n,r,i)}const sw={offset:0,line:1,column:1};function aw(e,t){const n=e&&e.loc&&e.loc[t];return n?"line"in n?lw(n):n:null}function lw(e,t){let{offset:n,line:r,column:i}=e;const o={offset:n,line:r,column:i};if(t){const e=t.split(/\n|\r\n?|\f/);o.offset+=t.length,o.line+=e.length-1,o.column=1===e.length?o.column+t.length:e.pop().length+1}return o}const cw=function(e,t){const n=kA("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},uw=function(e,t,n,r){const i=kA("SyntaxMatchError",e),{css:o,mismatchOffset:s,mismatchLength:a,start:l,end:c}=function(e,t){const n=e.tokens,r=e.longestMatch,i=r1?(s=aw(o||t,"end")||lw(sw,h),a=lw(s)):(s=aw(o,"start")||lw(aw(t,"start")||sw,h.slice(0,l)),a=aw(o,"end")||lw(s,h.substr(l,c))),{css:h,mismatchOffset:l,mismatchLength:c,start:s,end:a}}(r,n);return i.rawMessage=e,i.syntax=t?ow(t):"",i.css=o,i.mismatchOffset=s,i.mismatchLength=a,i.message=e+"\n syntax: "+i.syntax+"\n value: "+(o||"")+"\n --------"+new Array(i.mismatchOffset+1).join("-")+"^",Object.assign(i,l),i.loc={source:n&&n.loc&&n.loc.source||"",start:l,end:c},i},hw=new Map,dw=new Map,fw=45,pw=function(e){if(hw.has(e))return hw.get(e);const t=e.toLowerCase();let n=hw.get(t);if(void 0===n){const e=gw(t,0),r=e?"":Ow(t,0);n=Object.freeze({basename:t.substr(r.length),name:t,prefix:r,vendor:r,custom:e})}return hw.set(e,n),n},mw=function(e){if(dw.has(e))return dw.get(e);let t=e,n=e[0];"/"===n?n="/"===e[1]?"//":"/":"_"!==n&&"*"!==n&&"$"!==n&&"#"!==n&&"+"!==n&&"&"!==n&&(n="");const r=gw(t,n.length);if(!r&&(t=t.toLowerCase(),dw.has(t))){const n=dw.get(t);return dw.set(e,n),n}const i=r?"":Ow(t,n.length),o=t.substr(0,n.length+i.length),s=Object.freeze({basename:t.substr(o.length),name:t.substr(n.length),hack:n,vendor:i,prefix:o,custom:r});return dw.set(e,s),s};function gw(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===fw&&e.charCodeAt(t+1)===fw}function Ow(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===fw&&e.charCodeAt(t+1)!==fw){const n=e.indexOf("-",t+2);if(-1!==n)return e.substring(t,n+1)}return""}const bw=["initial","inherit","unset","revert","revert-layer"],yw=43,vw=45,kw=!0;function Sw(e,t){return null!==e&&e.type===gE&&e.value.charCodeAt(0)===t}function xw(e,t,n){for(;null!==e&&(e.type===vE||e.type===RE);)e=n(++t);return t}function Ew(e,t,n,r){if(!e)return 0;const i=e.value.charCodeAt(t);if(i===yw||i===vw){if(n)return 0;t++}for(;t6)return 0}return r}function Pw(e,t,n){if(!e)return 0;for(;Cw(n(t),Tw);){if(++e>6)return 0;t++}return t}const Dw=["calc(","-moz-calc(","-webkit-calc("],Rw=new Map([[cE,_E],[CE,_E],[wE,TE],[PE,DE]]);function Nw(e,t){return te.max&&"string"!==typeof e.max)return!0}return!1}function Fw(e){return function(t,n,r){return null===t?0:t.type===cE&&Mw(t.value,Dw)?function(e,t){let n=0,r=[],i=0;e:do{switch(e.type){case DE:case _E:case TE:if(e.type!==n)break e;if(n=r.pop(),0===r.length){i++;break e}break;case cE:case CE:case wE:case PE:r.push(n),n=Rw.get(e.type)}i++}while(e=t(i));return i}(t,n):e(t,n,r)}}function $w(e){return function(t){return null===t||t.type!==e?0:1}}function Bw(e){return e&&(e=new Set(e)),function(t,n,r){if(null===t||t.type!==yE)return 0;const i=sA(t.value,0);if(null!==e){const n=t.value.indexOf("\\",i),r=-1!==n&&Qw(t.value,n)?t.value.substring(i,n):t.value.substr(i);if(!1===e.has(r.toLowerCase()))return 0}return Lw(r,t.value,i)?0:1}}function Uw(e){return"function"!==typeof e&&(e=function(){return 0}),function(t,n,r){return null!==t&&t.type===OE&&0===Number(t.value)?1:e(t,n,r)}}const zw={"ident-token":$w(lE),"function-token":$w(cE),"at-keyword-token":$w(uE),"hash-token":$w(hE),"string-token":$w(dE),"bad-string-token":$w(fE),"url-token":$w(pE),"bad-url-token":$w(mE),"delim-token":$w(gE),"number-token":$w(OE),"percentage-token":$w(bE),"dimension-token":$w(yE),"whitespace-token":$w(vE),"CDO-token":$w(kE),"CDC-token":$w(SE),"colon-token":$w(xE),"semicolon-token":$w(EE),"comma-token":$w(AE),"[-token":$w(wE),"]-token":$w(TE),"(-token":$w(CE),")-token":$w(_E),"{-token":$w(PE),"}-token":$w(DE)},Zw={string:$w(dE),ident:$w(lE),percentage:Fw((function(e,t,n){return null===e||e.type!==bE||Lw(n,e.value,e.value.length-1)?0:1})),zero:Uw(),number:Fw((function(e,t,n){if(null===e)return 0;const r=sA(e.value,0);return r===e.value.length||Qw(e.value,r)?Lw(n,e.value,r)?0:1:0})),integer:Fw((function(e,t,n){if(null===e||e.type!==OE)return 0;let r=43===Nw(e.value,0)||45===Nw(e.value,0)?1:0;for(;r/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0)),TT={" ":1,"&&":2,"||":3,"|":4};function CT(e){return e.substringToPos(e.findWsEnd(e.pos))}function _T(e){let t=e.pos;for(;t=128||0===wT[n])break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function PT(e){let t=e.pos;for(;t57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function DT(e){const t=e.str.indexOf("'",e.pos+1);return-1===t&&(e.pos=e.str.length,e.error("Expect an apostrophe")),e.substringToPos(t+1)}function RT(e){let t=null,n=null;return e.eat(ST),t=PT(e),e.charCode()===pT?(e.pos++,e.charCode()!==ET&&(n=PT(e))):n=t,e.eat(ET),{min:Number(t),max:n?Number(n):0}}function NT(e,t){const n=function(e){let t=null,n=!1;switch(e.charCode()){case dT:e.pos++,t={min:0,max:0};break;case fT:e.pos++,t={min:1,max:0};break;case bT:e.pos++,t={min:0,max:1};break;case aT:e.pos++,n=!0,e.charCode()===ST?t=RT(e):e.charCode()===bT?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case ST:t=RT(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}(e);return null!==n?(n.term=t,e.charCode()===aT&&e.charCodeAt(e.pos-1)===fT?NT(e,n):n):t}function IT(e){const t=e.peek();return""===t?null:{type:"Token",value:t}}function MT(e){let t,n=null;return e.eat(gT),t=_T(e),e.charCode()===uT&&e.nextCharCode()===hT&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===vT&&(CT(e),n=function(e){let t=null,n=null,r=1;return e.eat(vT),e.charCode()===mT&&(e.peek(),r=-1),-1==r&&e.charCode()===AT?e.peek():(t=r*Number(PT(e)),0!==wT[e.charCode()]&&(t+=_T(e))),CT(e),e.eat(pT),CT(e),e.charCode()===AT?e.peek():(r=1,e.charCode()===mT&&(e.peek(),r=-1),n=r*Number(PT(e)),0!==wT[e.charCode()]&&(n+=_T(e))),e.eat(kT),{type:"Range",min:t,max:n}}(e)),e.eat(OT),NT(e,{type:"Type",name:t,opts:n})}function QT(e,t){function n(e,t){return{type:"Group",terms:e,combinator:t,disallowEmpty:!1,explicit:!1}}let r;for(t=Object.keys(t).sort(((e,t)=>TT[e]-TT[t]));t.length>0;){r=t.shift();let i=0,o=0;for(;i1&&(e.splice(o,i-o,n(e.slice(o,i),r)),i=o+1),o=-1))}-1!==o&&t.length&&e.splice(o,i-o,n(e.slice(o,i),r))}return r}function LT(e){const t=[],n={};let r,i=null,o=e.pos;for(;r=FT(e);)"Spaces"!==r.type&&("Combinator"===r.type?(null!==i&&"Combinator"!==i.type||(e.pos=o,e.error("Unexpected combinator")),n[r.value]=!0):null!==i&&"Combinator"!==i.type&&(n[" "]=!0,t.push({type:"Combinator",value:" "})),t.push(r),i=r,o=e.pos);return null!==i&&"Combinator"===i.type&&(e.pos-=o,e.error("Unexpected combinator")),{type:"Group",terms:t,combinator:QT(t,n)||" ",disallowEmpty:!1,explicit:!1}}function FT(e){let t=e.charCode();if(t<128&&1===wT[t])return function(e){const t=_T(e);return e.charCode()===uT?(e.pos++,{type:"Function",name:t}):NT(e,{type:"Keyword",name:t})}(e);switch(t){case kT:break;case vT:return NT(e,function(e){let t;return e.eat(vT),t=LT(e),e.eat(kT),t.explicit=!0,e.charCode()===sT&&(e.pos++,t.disallowEmpty=!0),t}(e));case gT:return e.nextCharCode()===cT?function(e){let t;return e.eat(gT),e.eat(cT),t=_T(e),e.eat(cT),e.eat(OT),NT(e,{type:"Property",name:t})}(e):MT(e);case xT:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===xT?2:1))};case lT:return e.pos++,e.eat(lT),{type:"Combinator",value:"&&"};case pT:return e.pos++,{type:"Comma"};case cT:return NT(e,{type:"String",value:DT(e)});case oT:case tT:case nT:case iT:case rT:return{type:"Spaces",value:CT(e)};case yT:return t=e.nextCharCode(),t<128&&1===wT[t]?(e.pos++,{type:"AtKeyword",name:_T(e)}):IT(e);case dT:case fT:case bT:case aT:case sT:break;case ST:if(t=e.nextCharCode(),t<48||t>57)return IT(e);break;default:return IT(e)}}function $T(e){const t=new eT(e),n=LT(t);return t.pos!==e.length&&t.error("Unexpected input"),1===n.terms.length&&"Group"===n.terms[0].type?n.terms[0]:n}const BT=function(){};function UT(e){return"function"===typeof e?e:BT}const zT={decorator(e){const t=[];let n=null;return{...e,node(t){const r=n;n=t,e.node.call(this,t),n=r},emit(e,r,i){t.push({type:r,value:e,node:i?null:n})},result:()=>t}}};function ZT(e,t){return"string"===typeof e?function(e){const t=[];return bA(e,((n,r,i)=>t.push({type:n,value:e.slice(r,i),node:null}))),t}(e):t.generate(e,zT)}const jT={type:"Match"},HT={type:"Mismatch"},XT={type:"DisallowEmpty"},qT=40,YT=41;function WT(e,t,n){return t===jT&&n===HT||e===jT&&t===jT&&n===jT?e:("If"===e.type&&e.else===HT&&t===jT&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function GT(e){return e.length>2&&e.charCodeAt(e.length-2)===qT&&e.charCodeAt(e.length-1)===YT}function VT(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&>(e.name)}function KT(e,t,n){switch(e){case" ":{let e=jT;for(let n=t.length-1;n>=0;n--){e=WT(t[n],e,HT)}return e}case"|":{let e=HT,n=null;for(let r=t.length-1;r>=0;r--){let i=t[r];if(VT(i)&&(null===n&&r>0&&VT(t[r-1])&&(n=Object.create(null),e=WT({type:"Enum",map:n},jT,e)),null!==n)){const e=(GT(i.name)?i.name.slice(0,-1):i.name).toLowerCase();if(e in n===!1){n[e]=i;continue}}n=null,e=WT(i,jT,e)}return e}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let n=HT;for(let r=t.length-1;r>=0;r--){const i=t[r];let o;o=t.length>1?KT(e,t.filter((function(e){return e!==i})),!1):jT,n=WT(i,o,n)}return n}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?jT:HT;for(let n=t.length-1;n>=0;n--){const i=t[n];let o;o=t.length>1?KT(e,t.filter((function(e){return e!==i})),!0):jT,r=WT(i,o,r)}return r}}}function JT(e){if("function"===typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=KT(e.combinator,e.terms.map(JT),!1);return e.disallowEmpty&&(t=WT(t,XT,HT)),t}case"Multiplier":return function(e){let t=jT,n=JT(e.term);if(0===e.max)n=WT(n,XT,HT),t=WT(n,null,HT),t.then=WT(jT,jT,t),e.comma&&(t.then.else=WT({type:"Comma",syntax:e},t,HT));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==jT&&(t=WT({type:"Comma",syntax:e},t,HT)),t=WT(n,WT(jT,jT,t),HT);if(0===e.min)t=WT(jT,jT,t);else for(let r=0;r=65&&i<=90&&(i|=32),i!==r)return!1}return!0}function fC(e){return null===e||(e.type===AE||e.type===cE||e.type===CE||e.type===wE||e.type===PE||function(e){return e.type===gE&&"?"!==e.value}(e))}function pC(e){return null===e||(e.type===_E||e.type===TE||e.type===DE||e.type===gE&&"/"===e.value)}function mC(e,t,n){function r(){do{O++,g=Ob&&(b=O)}function c(){y=y.type===iC?y.prev:{type:oC,syntax:u.syntax,token:y.token,prev:y},u=u.prev}let u=null,h=null,d=null,f=null,p=0,m=null,g=null,O=-1,b=0,y={type:nC,syntax:null,token:null,prev:null};for(r();null===m&&++pd.tokenIndex)&&(d=f,f=!1);else if(null===d){m=aC;break}t=d.nextState,h=d.thenStack,u=d.syntaxStack,y=d.matchStack,O=d.tokenIndex,g=OO){for(;O":"<'"+t.name+"'>"));if(!1!==f&&null!==g&&"Type"===t.type){if("custom-ident"===t.name&&g.type===lE||"length"===t.name&&"0"===g.value){null===f&&(f=o(t,d)),t=HT;break}}u={syntax:t.syntax,opts:t.syntax.opts||null!==u&&u.opts||null,prev:u},y={type:iC,syntax:t.syntax,token:y.token,prev:y},t=r.match;break}case"Keyword":{const e=t.name;if(null!==g){let n=g.value;if(-1!==n.indexOf("\\")&&(n=n.replace(/\\[09].*$/,"")),dC(n,e)){l(),t=jT;break}}t=HT;break}case"AtKeyword":case"Function":if(null!==g&&dC(g.value,t.name)){l(),t=jT;break}t=HT;break;case"Token":if(null!==g&&g.value===t.value){l(),t=jT;break}t=HT;break;case"Comma":null!==g&&g.type===AE?fC(y.token)?t=HT:(l(),t=pC(g)?HT:jT):t=fC(y.token)||pC(g)?jT:HT;break;case"String":let r="",p=O;for(;p"Type"===e.type&&e.name===t))}function yC(e,t){return kC(this,e,(e=>"Property"===e.type&&e.name===t))}function vC(e){return kC(this,e,(e=>"Keyword"===e.type))}function kC(e,t,n){const r=OC.call(e,t);return null!==r&&r.some(n)}function SC(e){return"node"in e?e.node:SC(e.match[0])}function xC(e){return"node"in e?e.node:xC(e.match[e.match.length-1])}function EC(e,t,n,r,i){const o=[];return null!==n.matched&&function n(s){if(null!==s.syntax&&s.syntax.type===r&&s.syntax.name===i){const n=SC(s),r=xC(s);e.syntax.walk(t,(function(e,t,i){if(e===n){const e=new vA;do{if(e.appendData(t.data),t.data===r)break;t=t.next}while(null!==t);o.push({parent:i,nodes:e})}}))}Array.isArray(s.match)&&s.match.forEach(n)}(n.matched),o}const{hasOwnProperty:AC}=Object.prototype;function wC(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}function TC(e){return Boolean(e)&&wC(e.offset)&&wC(e.line)&&wC(e.column)}function CC(e,t){return function(n,r){if(!n||n.constructor!==Object)return r(n,"Type of node should be an Object");for(let i in n){let o=!0;if(!1!==AC.call(n,i)){if("type"===i)n.type!==e&&r(n,"Wrong node type `"+n.type+"`, expected `"+e+"`");else if("loc"===i){if(null===n.loc)continue;if(n.loc&&n.loc.constructor===Object)if("string"!==typeof n.loc.source)i+=".source";else if(TC(n.loc.start)){if(TC(n.loc.end))continue;i+=".end"}else i+=".start";o=!1}else if(t.hasOwnProperty(i)){o=!1;for(let e=0;!o&&e");else{if(!Array.isArray(r))throw new Error("Wrong value `"+r+"` in `"+e+"."+o+"` structure definition");t.push("List")}}i[o]=t.join(" | ")}return{docs:i,check:CC(e,r)}}const PC=eC(bw.join(" | "));function DC(e,t,n){const r={};for(const i in e)e[i].syntax&&(r[i]=n?e[i].syntax:ow(e[i].syntax,{compact:t}));return r}function RC(e,t,n){const r={};for(const[i,o]of Object.entries(e))r[i]={prelude:o.prelude&&(n?o.prelude.syntax:ow(o.prelude.syntax,{compact:t})),descriptors:o.descriptors&&DC(o.descriptors,t,n)};return r}function NC(e,t,n){return{matched:e,iterations:n,error:t,...s}}function IC(e,t,n,r){const i=ZT(n,e.syntax);let o;return function(e){for(let t=0;t3&&void 0!==arguments[3]?arguments[3]:null,serializable:"string"===typeof e||e&&"string"===typeof e.type,syntax:null,match:null};return"function"===typeof e?i.match=eC(e,r):("string"===typeof e?Object.defineProperty(i,"syntax",{get:()=>(Object.defineProperty(i,"syntax",{value:$T(e)}),i.syntax)}):i.syntax=e,Object.defineProperty(i,"match",{get:()=>(Object.defineProperty(i,"match",{value:eC(i.syntax,r)}),i.match)})),i}addAtrule_(e,t){t&&(this.atrules[e]={type:"Atrule",name:e,prelude:t.prelude?this.createDescriptor(t.prelude,"AtrulePrelude",e):null,descriptors:t.descriptors?Object.keys(t.descriptors).reduce(((n,r)=>(n[r]=this.createDescriptor(t.descriptors[r],"AtruleDescriptor",r,e),n)),Object.create(null)):null})}addProperty_(e,t){t&&(this.properties[e]=this.createDescriptor(t,"Property",e))}addType_(e,t){t&&(this.types[e]=this.createDescriptor(t,"Type",e))}checkAtruleName(e){if(!this.getAtrule(e))return new cw("Unknown at-rule","@"+e)}checkAtrulePrelude(e,t){const n=this.checkAtruleName(e);if(n)return n;const r=this.getAtrule(e);return!r.prelude&&t?new SyntaxError("At-rule `@"+e+"` should not contain a prelude"):!r.prelude||t||IC(this,r.prelude,"",!1).matched?void 0:new SyntaxError("At-rule `@"+e+"` should contain a prelude")}checkAtruleDescriptorName(e,t){const n=this.checkAtruleName(e);if(n)return n;const r=this.getAtrule(e),i=pw(t);return r.descriptors?r.descriptors[i.name]||r.descriptors[i.basename]?void 0:new cw("Unknown at-rule descriptor",t):new SyntaxError("At-rule `@"+e+"` has no known descriptors")}checkPropertyName(e){if(!this.getProperty(e))return new cw("Unknown property",e)}matchAtrulePrelude(e,t){const n=this.checkAtrulePrelude(e,t);if(n)return NC(null,n);const r=this.getAtrule(e);return r.prelude?IC(this,r.prelude,t||"",!1):NC(null,null)}matchAtruleDescriptor(e,t,n){const r=this.checkAtruleDescriptorName(e,t);if(r)return NC(null,r);const i=this.getAtrule(e),o=pw(t);return IC(this,i.descriptors[o.name]||i.descriptors[o.basename],n,!1)}matchDeclaration(e){return"Declaration"!==e.type?NC(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,t){if(mw(e).custom)return NC(null,new Error("Lexer matching doesn't applicable for custom properties"));const n=this.checkPropertyName(e);return n?NC(null,n):IC(this,this.getProperty(e),t,!0)}matchType(e,t){const n=this.getType(e);return n?IC(this,n,t,!1):NC(null,new cw("Unknown type",e))}match(e,t){return"string"===typeof e||e&&e.type?("string"!==typeof e&&e.match||(e=this.createDescriptor(e,"Type","anonymous")),IC(this,e,t,!1)):NC(null,new cw("Bad syntax"))}findValueFragments(e,t,n,r){return EC(this,t,this.matchProperty(e,t),n,r)}findDeclarationValueFragments(e,t,n){return EC(this,e.value,this.matchDeclaration(e),t,n)}findAllFragments(e,t,n){const r=[];return this.syntax.walk(e,{visit:"Declaration",enter:e=>{r.push.apply(r,this.findDeclarationValueFragments(e,t,n))}}),r}getAtrule(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=pw(e);return(n.vendor&&t?this.atrules[n.name]||this.atrules[n.basename]:this.atrules[n.name])||null}getAtrulePrelude(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.getAtrule(e,t);return n&&n.prelude||null}getAtruleDescriptor(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[t]||null}getProperty(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=mw(e);return(n.vendor&&t?this.properties[n.name]||this.properties[n.basename]:this.properties[n.name])||null}getType(e){return hasOwnProperty.call(this.types,e)?this.types[e]:null}validate(){function e(r,i,o,s){if(o.has(i))return o.get(i);o.set(i,!1),null!==s.syntax&&function(e,t,n){let r=BT,i=BT;if("function"===typeof t?r=t:t&&(r=UT(t.enter),i=UT(t.leave)),r===BT&&i===BT)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");!function e(t){switch(r.call(n,t),t.type){case"Group":t.terms.forEach(e);break;case"Multiplier":e(t.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+t.type)}i.call(n,t)}(e)}(s.syntax,(function(s){if("Type"!==s.type&&"Property"!==s.type)return;const a="Type"===s.type?r.types:r.properties,l="Type"===s.type?t:n;hasOwnProperty.call(a,s.name)&&!e(r,s.name,l,a[s.name])||o.set(i,!0)}),this)}let t=new Map,n=new Map;for(const r in this.types)e(this,r,t,this.types[r]);for(const r in this.properties)e(this,r,n,this.properties[r]);return t=[...t.keys()].filter((e=>t.get(e))),n=[...n.keys()].filter((e=>n.get(e))),t.length||n.length?{types:t,properties:n}:null}dump(e,t){return{generic:this.generic,units:this.units,types:DC(this.types,!t,e),properties:DC(this.properties,!t,e),atrules:RC(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}}function QC(e,t){return"string"===typeof t&&/^\s*\|/.test(t)?"string"===typeof e?e+t:t.replace(/^\s*\|\s*/,""):t||null}function LC(e,t){const n=Object.create(null);for(const[r,i]of Object.entries(e))if(i){n[r]={};for(const e of Object.keys(i))t.includes(e)&&(n[r][e]=i[e])}return n}function FC(e,t){const n={...e};for(const[r,i]of Object.entries(t))switch(r){case"generic":n[r]=Boolean(i);break;case"units":n[r]={...e[r]};for(const[e,t]of Object.entries(i))n[r][e]=Array.isArray(t)?t:[];break;case"atrules":n[r]={...e[r]};for(const[e,t]of Object.entries(i)){const i=n[r][e]||{},o=n[r][e]={prelude:i.prelude||null,descriptors:{...i.descriptors}};if(t){o.prelude=t.prelude?QC(o.prelude,t.prelude):o.prelude||null;for(const[e,n]of Object.entries(t.descriptors||{}))o.descriptors[e]=n?QC(o.descriptors[e],n):null;Object.keys(o.descriptors).length||(o.descriptors=null)}}break;case"types":case"properties":n[r]={...e[r]};for(const[e,t]of Object.entries(i))n[r][e]=QC(n[r][e],t);break;case"scope":n[r]={...e[r]};for(const[e,t]of Object.entries(i))n[r][e]={...n[r][e],...t};break;case"parseContext":n[r]={...e[r],...i};break;case"atrule":case"pseudo":n[r]={...e[r],...LC(i,["parse"])};break;case"node":n[r]={...e[r],...LC(i,["name","structure","parse","generate","walkContext"])}}return n}function $C(e){const t=QA(e),n=nw(e),r=YA(e),{fromPlainObject:i,toPlainObject:o}=function(e){return{fromPlainObject:t=>(e(t,{enter(e){e.children&&e.children instanceof vA===!1&&(e.children=(new vA).fromArray(e.children))}}),t),toPlainObject:t=>(e(t,{leave(e){e.children&&e.children instanceof vA&&(e.children=e.children.toArray())}}),t)}}(n),s={lexer:null,createLexer:e=>new MC(e,s,s.lexer.structure),tokenize:bA,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:i,toPlainObject:o,fork(t){const n=FC({},e);return $C("function"===typeof t?t(n,Object.assign):FC(n,t))}};return s.lexer=new MC({generic:!0,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},s),s}const BC=43,UC=45,zC=110,ZC=!0,jC=!1;function HC(e,t){let n=this.tokenStart+e;const r=this.charCodeAt(n);for(r!==BC&&r!==UC||(t&&this.error("Number sign is not allowed"),n++);n0&&this.skip(e),0===t&&(n=this.charCodeAt(this.tokenStart),n!==BC&&n!==UC&&this.error("Number sign is expected")),XC.call(this,0!==t),t===UC?"-"+this.consume(OE):this.consume(OE)}const WC="AnPlusB",GC={a:[String,null],b:[String,null]};function VC(){const e=this.tokenStart;let t=null,n=null;if(this.tokenType===OE)XC.call(this,jC),n=this.consume(OE);else if(this.tokenType===lE&&this.cmpChar(this.tokenStart,UC))switch(t="-1",qC.call(this,1,zC),this.tokenEnd-this.tokenStart){case 2:this.next(),n=YC.call(this);break;case 3:qC.call(this,2,UC),this.next(),this.skipSC(),XC.call(this,ZC),n="-"+this.consume(OE);break;default:qC.call(this,2,UC),HC.call(this,3,ZC),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===lE||this.isDelim(BC)&&this.lookupType(1)===lE){let r=0;switch(t="1",this.isDelim(BC)&&(r=1,this.next()),qC.call(this,0,zC),this.tokenEnd-this.tokenStart){case 1:this.next(),n=YC.call(this);break;case 2:qC.call(this,1,UC),this.next(),this.skipSC(),XC.call(this,ZC),n="-"+this.consume(OE);break;default:qC.call(this,1,UC),HC.call(this,2,ZC),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===yE){const r=this.charCodeAt(this.tokenStart),i=r===BC||r===UC;let o=this.tokenStart+i;for(;o0&&void 0!==arguments[0]&&arguments[0];const t=this.tokenStart;let n,r,i=null,o=null;switch(this.eat(uE),n=this.substrToCursor(t+1),r=n.toLowerCase(),this.skipSC(),!1===this.eof&&this.tokenType!==PE&&this.tokenType!==EE&&(i=this.parseAtrulePrelude?this.parseWithFallback(this.AtrulePrelude.bind(this,n,e),JC):JC.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case EE:this.next();break;case PE:o=hasOwnProperty.call(this.atrule,r)&&"function"===typeof this.atrule[r].block?this.atrule[r].block.call(this,e):this.Block(e_.call(this))}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:n,prelude:i,block:o}}function o_(e){this.token(uE,"@"+e.name),null!==e.prelude&&this.node(e.prelude),e.block?this.node(e.block):this.token(EE,";")}const s_="AtrulePrelude",a_="atrulePrelude",l_={children:[[]]};function c_(e){let t=null;return null!==e&&(e=e.toLowerCase()),this.skipSC(),t=hasOwnProperty.call(this.atrule,e)&&"function"===typeof this.atrule[e].prelude?this.atrule[e].prelude.call(this):this.readSequence(this.scope.AtrulePrelude),this.skipSC(),!0!==this.eof&&this.tokenType!==PE&&this.tokenType!==EE&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}}function u_(e){this.children(e)}const h_=36,d_=42,f_=61,p_=94,m_=124,g_=126;function O_(){this.eof&&this.error("Unexpected end of input");const e=this.tokenStart;let t=!1;return this.isDelim(d_)?(t=!0,this.next()):this.isDelim(m_)||this.eat(lE),this.isDelim(m_)?this.charCodeAt(this.tokenStart+1)!==f_?(this.next(),this.eat(lE)):t&&this.error("Identifier is expected",this.tokenEnd):t&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function b_(){const e=this.tokenStart,t=this.charCodeAt(e);return t!==f_&&t!==g_&&t!==p_&&t!==h_&&t!==d_&&t!==m_&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==f_&&(this.isDelim(f_)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}const y_="AttributeSelector",v_={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function k_(){const e=this.tokenStart;let t,n=null,r=null,i=null;return this.eat(wE),this.skipSC(),t=O_.call(this),this.skipSC(),this.tokenType!==TE&&(this.tokenType!==lE&&(n=b_.call(this),this.skipSC(),r=this.tokenType===dE?this.String():this.Identifier(),this.skipSC()),this.tokenType===lE&&(i=this.consume(lE),this.skipSC())),this.eat(TE),{type:"AttributeSelector",loc:this.getLocation(e,this.tokenStart),name:t,matcher:n,value:r,flags:i}}function S_(e){this.token(gE,"["),this.node(e.name),null!==e.matcher&&(this.tokenize(e.matcher),this.node(e.value)),null!==e.flags&&this.token(lE,e.flags),this.token(gE,"]")}const x_=38;function E_(e){return this.Raw(e,null,!0)}function A_(){return this.parseWithFallback(this.Rule,E_)}function w_(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function T_(){if(this.tokenType===EE)return w_.call(this,this.tokenIndex);const e=this.parseWithFallback(this.Declaration,w_);return this.tokenType===EE&&this.next(),e}const C_="Block",__="block",P_={children:[["Atrule","Rule","Declaration"]]};function D_(e){const t=e?T_:A_,n=this.tokenStart;let r=this.createList();this.eat(PE);e:for(;!this.eof;)switch(this.tokenType){case DE:break e;case vE:case RE:this.next();break;case uE:r.push(this.parseWithFallback(this.Atrule.bind(this,e),E_));break;default:e&&this.isDelim(x_)?r.push(A_.call(this)):r.push(t.call(this))}return this.eof||this.eat(DE),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function R_(e){this.token(PE,"{"),this.children(e,(e=>{"Declaration"===e.type&&this.token(EE,";")})),this.token(DE,"}")}const N_="Brackets",I_={children:[[]]};function M_(e,t){const n=this.tokenStart;let r=null;return this.eat(wE),r=e.call(this,t),this.eof||this.eat(TE),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:r}}function Q_(e){this.token(gE,"["),this.children(e),this.token(gE,"]")}const L_="CDC",F_=[];function $_(){const e=this.tokenStart;return this.eat(SE),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function B_(){this.token(SE,"--\x3e")}const U_="CDO",z_=[];function Z_(){const e=this.tokenStart;return this.eat(kE),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function j_(){this.token(kE,"\x3c!--")}const H_=46,X_="ClassSelector",q_={name:String};function Y_(){return this.eatDelim(H_),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(lE)}}function W_(e){this.token(gE,"."),this.token(lE,e.name)}const G_=43,V_=47,K_=62,J_=126,eP="Combinator",tP={name:String};function nP(){const e=this.tokenStart;let t;switch(this.tokenType){case vE:t=" ";break;case gE:switch(this.charCodeAt(this.tokenStart)){case K_:case G_:case J_:this.next();break;case V_:this.next(),this.eatIdent("deep"),this.eatDelim(V_);break;default:this.error("Combinator is expected")}t=this.substrToCursor(e)}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}}function rP(e){this.tokenize(e.name)}const iP=42,oP=47,sP="Comment",aP={value:String};function lP(){const e=this.tokenStart;let t=this.tokenEnd;return this.eat(RE),t-e+2>=2&&this.charCodeAt(t-2)===iP&&this.charCodeAt(t-1)===oP&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function cP(e){this.token(RE,"/*"+e.value+"*/")}const uP=33,hP=35,dP=36,fP=38,pP=42,mP=43,gP=47;function OP(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function bP(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function yP(){const e=this.tokenIndex,t=this.Value();return"Raw"!==t.type&&!1===this.eof&&this.tokenType!==EE&&!1===this.isDelim(uP)&&!1===this.isBalanceEdge(e)&&this.error(),t}const vP="Declaration",kP="declaration",SP={important:[Boolean,String],property:String,value:["Value","Raw"]};function xP(){const e=this.tokenStart,t=this.tokenIndex,n=AP.call(this),r=gw(n),i=r?this.parseCustomProperty:this.parseValue,o=r?bP:OP;let s,a=!1;this.skipSC(),this.eat(xE);const l=this.tokenIndex;if(r||this.skipSC(),s=i?this.parseWithFallback(yP,o):o.call(this,this.tokenIndex),r&&"Value"===s.type&&s.children.isEmpty)for(let c=l-this.tokenIndex;c<=0;c++)if(this.lookupType(c)===vE){s.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}return this.isDelim(uP)&&(a=wP.call(this),this.skipSC()),!1===this.eof&&this.tokenType!==EE&&!1===this.isBalanceEdge(t)&&this.error(),{type:"Declaration",loc:this.getLocation(e,this.tokenStart),important:a,property:n,value:s}}function EP(e){this.token(lE,e.property),this.token(xE,":"),this.node(e.value),e.important&&(this.token(gE,"!"),this.token(lE,!0===e.important?"important":e.important))}function AP(){const e=this.tokenStart;if(this.tokenType===gE)switch(this.charCodeAt(this.tokenStart)){case pP:case dP:case mP:case hP:case fP:this.next();break;case gP:this.next(),this.isDelim(gP)&&this.next()}return this.tokenType===hE?this.eat(hE):this.eat(lE),this.substrToCursor(e)}function wP(){this.eat(gE),this.skipSC();const e=this.consume(lE);return"important"===e||e}const TP=38;function CP(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}const _P="DeclarationList",PP={children:[["Declaration","Atrule","Rule"]]};function DP(){const e=this.createList();for(;!this.eof;)switch(this.tokenType){case vE:case RE:case EE:this.next();break;case uE:e.push(this.parseWithFallback(this.Atrule.bind(this,!0),CP));break;default:this.isDelim(TP)?e.push(this.parseWithFallback(this.Rule,CP)):e.push(this.parseWithFallback(this.Declaration,CP))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function RP(e){this.children(e,(e=>{"Declaration"===e.type&&this.token(EE,";")}))}const NP="Dimension",IP={value:String,unit:String};function MP(){const e=this.tokenStart,t=this.consumeNumber(yE);return{type:"Dimension",loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}}function QP(e){this.token(yE,e.value+e.unit)}const LP="Function",FP="function",$P={name:String,children:[[]]};function BP(e,t){const n=this.tokenStart,r=this.consumeFunctionName(),i=r.toLowerCase();let o;return o=t.hasOwnProperty(i)?t[i].call(this,t):e.call(this,t),this.eof||this.eat(_E),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:r,children:o}}function UP(e){this.token(cE,e.name+"("),this.children(e),this.token(_E,")")}const zP="XXX",ZP="Hash",jP={value:String};function HP(){const e=this.tokenStart;return this.eat(hE),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function XP(e){this.token(hE,"#"+e.value)}const qP="Identifier",YP={name:String};function WP(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(lE)}}function GP(e){this.token(lE,e.name)}const VP="IdSelector",KP={name:String};function JP(){const e=this.tokenStart;return this.eat(hE),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function eD(e){this.token(gE,"#"+e.name)}const tD="MediaFeature",nD={name:String,value:["Identifier","Number","Dimension","Ratio",null]};function rD(){const e=this.tokenStart;let t,n=null;if(this.eat(CE),this.skipSC(),t=this.consume(lE),this.skipSC(),this.tokenType!==_E){switch(this.eat(xE),this.skipSC(),this.tokenType){case OE:n=this.lookupNonWSType(1)===gE?this.Ratio():this.Number();break;case yE:n=this.Dimension();break;case lE:n=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eat(_E),{type:"MediaFeature",loc:this.getLocation(e,this.tokenStart),name:t,value:n}}function iD(e){this.token(CE,"("),this.token(lE,e.name),null!==e.value&&(this.token(xE,":"),this.node(e.value)),this.token(_E,")")}const oD="MediaQuery",sD={children:[["Identifier","MediaFeature","WhiteSpace"]]};function aD(){const e=this.createList();let t=null;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case RE:case vE:this.next();continue;case lE:t=this.Identifier();break;case CE:t=this.MediaFeature();break;default:break e}e.push(t)}return null===t&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(e),children:e}}function lD(e){this.children(e)}const cD="MediaQueryList",uD={children:[["MediaQuery"]]};function hD(){const e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===AE);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}}function dD(e){this.children(e,(()=>this.token(AE,",")))}const fD=38,pD="NestingSelector",mD={};function gD(){const e=this.tokenStart;return this.eatDelim(fD),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function OD(){this.token(gE,"&")}const bD="Nth",yD={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function vD(){this.skipSC();const e=this.tokenStart;let t,n=e,r=null;return t=this.lookupValue(0,"odd")||this.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),n=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),r=this.SelectorList(),n=this.tokenStart),{type:"Nth",loc:this.getLocation(e,n),nth:t,selector:r}}function kD(e){this.node(e.nth),null!==e.selector&&(this.token(lE,"of"),this.node(e.selector))}const SD="Number",xD={value:String};function ED(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(OE)}}function AD(e){this.token(OE,e.value)}const wD="Operator",TD={value:String};function CD(){const e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function _D(e){this.tokenize(e.value)}const PD="Parentheses",DD={children:[[]]};function RD(e,t){const n=this.tokenStart;let r=null;return this.eat(CE),r=e.call(this,t),this.eof||this.eat(_E),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:r}}function ND(e){this.token(CE,"("),this.children(e),this.token(_E,")")}const ID="Percentage",MD={value:String};function QD(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(bE)}}function LD(e){this.token(bE,e.value+"%")}const FD="PseudoClassSelector",$D="function",BD={name:String,children:[["Raw"],null]};function UD(){const e=this.tokenStart;let t,n,r=null;return this.eat(xE),this.tokenType===cE?(t=this.consumeFunctionName(),n=t.toLowerCase(),hasOwnProperty.call(this.pseudo,n)?(this.skipSC(),r=this.pseudo[n].call(this),this.skipSC()):(r=this.createList(),r.push(this.Raw(this.tokenIndex,null,!1))),this.eat(_E)):t=this.consume(lE),{type:"PseudoClassSelector",loc:this.getLocation(e,this.tokenStart),name:t,children:r}}function zD(e){this.token(xE,":"),null===e.children?this.token(lE,e.name):(this.token(cE,e.name+"("),this.children(e),this.token(_E,")"))}const ZD="PseudoElementSelector",jD="function",HD={name:String,children:[["Raw"],null]};function XD(){const e=this.tokenStart;let t,n,r=null;return this.eat(xE),this.eat(xE),this.tokenType===cE?(t=this.consumeFunctionName(),n=t.toLowerCase(),hasOwnProperty.call(this.pseudo,n)?(this.skipSC(),r=this.pseudo[n].call(this),this.skipSC()):(r=this.createList(),r.push(this.Raw(this.tokenIndex,null,!1))),this.eat(_E)):t=this.consume(lE),{type:"PseudoElementSelector",loc:this.getLocation(e,this.tokenStart),name:t,children:r}}function qD(e){this.token(xE,":"),this.token(xE,":"),null===e.children?this.token(lE,e.name):(this.token(cE,e.name+"("),this.children(e),this.token(_E,")"))}const YD=47,WD=46;function GD(){this.skipSC();const e=this.consume(OE);for(let t=0;t0&&this.lookupType(-1)===vE?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}const nR="Raw",rR={value:String};function iR(e,t,n){const r=this.getTokenStart(e);let i;return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),i=n&&this.tokenStart>r?tR.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(r,i),value:this.substring(r,i)}}function oR(e){this.tokenize(e.value)}function sR(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function aR(){const e=this.SelectorList();return"Raw"!==e.type&&!1===this.eof&&this.tokenType!==PE&&this.error(),e}const lR="Rule",cR="rule",uR={prelude:["SelectorList","Raw"],block:["Block"]};function hR(){const e=this.tokenIndex,t=this.tokenStart;let n,r;return n=this.parseRulePrelude?this.parseWithFallback(aR,sR):sR.call(this,e),r=this.Block(!0),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}}function dR(e){this.node(e.prelude),this.node(e.block)}const fR="Selector",pR={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};function mR(){const e=this.readSequence(this.scope.Selector);return null===this.getFirstListNode(e)&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(e),children:e}}function gR(e){this.children(e)}const OR="SelectorList",bR="selector",yR={children:[["Selector","Raw"]]};function vR(){const e=this.createList();for(;!this.eof&&(e.push(this.Selector()),this.tokenType===AE);)this.next();return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}}function kR(e){this.children(e,(()=>this.token(AE,",")))}const SR=92,xR=34,ER=39;function AR(e){const t=e.length,n=e.charCodeAt(0),r=n===xR||n===ER?1:0,i=1===r&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1;let o="";for(let s=r;s<=i;s++){let n=e.charCodeAt(s);if(n===SR){if(s===i){s!==t-1&&(o=e.substr(s+1));break}if(n=e.charCodeAt(++s),zE(SR,n)){const t=s-1,n=iA(e,t);s=n-1,o+=lA(e.substring(t+1,n))}else 13===n&&10===e.charCodeAt(s+1)&&s++}else o+=e[s]}return o}const wR="String",TR={value:String};function CR(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:AR(this.consume(dE))}}function _R(e){this.token(dE,function(e,t){const n=t?"'":'"',r=t?ER:xR;let i="",o=!1;for(let s=0;s6&&this.error("Too many hex digits",r)}return this.next(),n}function YR(e){let t=0;for(;this.isDelim(XR);)++t>e&&this.error("Too many question marks"),this.next()}function WR(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===jR?"Plus sign":"Hyphen minus")+" is expected")}function GR(){let e=0;switch(this.tokenType){case OE:if(e=qR.call(this,1,!0),this.isDelim(XR)){YR.call(this,6-e);break}if(this.tokenType===yE||this.tokenType===OE){WR.call(this,HR),qR.call(this,1,!1);break}break;case yE:e=qR.call(this,1,!0),e>0&&YR.call(this,6-e);break;default:if(this.eatDelim(jR),this.tokenType===lE){e=qR.call(this,0,!0),e>0&&YR.call(this,6-e);break}if(this.isDelim(XR)){this.next(),YR.call(this,5);break}this.error("Hex digit or question mark is expected")}}const VR="UnicodeRange",KR={value:String};function JR(){const e=this.tokenStart;return this.eatIdent("u"),GR.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function eN(e){this.tokenize(e.value)}const tN=32,nN=92,rN=34,iN=39,oN=40,sN=41;const aN="Url",lN={value:String};function cN(){const e=this.tokenStart;let t;switch(this.tokenType){case pE:t=function(e){const t=e.length;let n=4,r=e.charCodeAt(t-1)===sN?t-2:t-1,i="";for(;n )","absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","acos()":"acos( )","alpha-value":"|","angle-percentage":"|","angular-color-hint":"","angular-color-stop":"&&?","angular-color-stop-list":"[ [, ]?]# , ","animateable-feature":"scroll-position|contents|","asin()":"asin( )","atan()":"atan( )","atan2()":"atan2( , )",attachment:"scroll|fixed|local","attr()":"attr( ? [, ]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' ']'|'[' [|] ? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [? ]+ ? )","auto-track-list":"[? [|]]* ? [? [|]]* ?",axis:"block|inline|vertical|horizontal","baseline-position":"[first|last]? baseline","basic-shape":"||||","bg-image":"none|","bg-layer":"|| [/ ]?||||||||","bg-position":"[[left|center|right|top|bottom|]|[left|center|right|] [top|center|bottom|]|[center|[left|right] ?]&&[center|[top|bottom] ?]]","bg-size":"[|auto]{1,2}|cover|contain","blur()":"blur( )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity",box:"border-box|padding-box|content-box","brightness()":"brightness( )","calc()":"calc( )","calc-sum":" [['+'|'-'] ]*","calc-product":" ['*' |'/' ]*","calc-value":"||||( )","calc-constant":"e|pi|infinity|-infinity|NaN","cf-final-image":"|","cf-mixing-image":"?&&","circle()":"circle( []? [at ]? )","clamp()":"clamp( #{3} )","class-selector":"'.' ","clip-source":"",color:"|||||||||currentcolor|","color-stop":"|","color-stop-angle":"{1,2}","color-stop-length":"{1,2}","color-stop-list":"[ [, ]?]# , ",combinator:"'>'|'+'|'~'|['||']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat-auto":"searchfield|textarea|push-button|slider-horizontal|checkbox|radio|square-button|menulist|listbox|meter|progress-bar|button","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[? * [ *]*]!","compound-selector-list":"#","complex-selector":" [? ]*","complex-selector-list":"#","conic-gradient()":"conic-gradient( [from ]? [at ]? , )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[|contents||||||]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"","contrast()":"contrast( [] )","cos()":"cos( )",counter:"|","counter()":"counter( , ? )","counter-name":"","counter-style":"|symbols( )","counter-style-name":"","counters()":"counters( , , ? )","cross-fade()":"cross-fade( , ? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( , , , )","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( {2,3} ? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( , [first|start|last|first-except]? )|element( )","ellipse()":"ellipse( [{2}]? [at ]? )","ending-shape":"circle|ellipse","env()":"env( , ? )","exp()":"exp( )","explicit-track-list":"[? ]+ ?","family-name":"|+","feature-tag-value":" [|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":" '{' '}'","feature-value-block-list":"+","feature-value-declaration":" : + ;","feature-value-declaration-list":"","feature-value-name":"","fill-rule":"nonzero|evenodd","filter-function":"|||||||||","filter-function-list":"[|]+","final-bg-layer":"<'background-color'>|||| [/ ]?||||||||","fixed-breadth":"","fixed-repeat":"repeat( [] , [? ]+ ? )","fixed-size":"|minmax( , )|minmax( , )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|","frequency-percentage":"|","general-enclosed":"[ )]|( )","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"|fill-box|stroke-box|view-box",gradient:"||||||<-legacy-gradient>","grayscale()":"grayscale( )","grid-line":"auto||[