baize-compress 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/LICENSE +165 -0
  2. package/README.md +82 -2
  3. package/dist/assets/compress-BQao8LZ4.js +501 -0
  4. package/dist/assets/compress-CRhfuN3_.js +4 -0
  5. package/dist/assets/compress-Di96HUYT.js +1 -0
  6. package/dist/assets/compress-I5veHSQ1.js +110 -0
  7. package/dist/assets/compress-XlJOQ9AQ.js +1 -0
  8. package/dist/assets/pool.worker-BZcE0nvO.js +4 -0
  9. package/dist/index.js +150 -0
  10. package/dist/plugins/gif.js +16 -0
  11. package/dist/plugins/jpeg-webp.js +12 -0
  12. package/dist/plugins/media.js +32 -0
  13. package/dist/plugins/png.js +12 -0
  14. package/dist/plugins/svg.js +14 -0
  15. package/dist/types/config.d.ts +1 -0
  16. package/dist/types/main.d.ts +14 -0
  17. package/dist/types/plugins/gif/compress.d.ts +2 -0
  18. package/dist/types/plugins/gif/index.d.ts +6 -0
  19. package/dist/types/plugins/jpeg-webp/compress.d.ts +2 -0
  20. package/dist/types/plugins/jpeg-webp/index.d.ts +2 -0
  21. package/dist/types/plugins/media/compress.d.ts +2 -0
  22. package/dist/types/plugins/media/index.d.ts +23 -0
  23. package/dist/types/plugins/png/compress.d.ts +2 -0
  24. package/dist/types/plugins/png/index.d.ts +2 -0
  25. package/dist/types/plugins/svg/compress.d.ts +2 -0
  26. package/dist/types/plugins/svg/index.d.ts +6 -0
  27. package/dist/types/pool.worker.d.ts +1 -0
  28. package/dist/types/types.d.ts +45 -0
  29. package/dist/types/utils.d.ts +4 -0
  30. package/dist/types/workerManage.d.ts +15 -0
  31. package/dist/types/workerTask.d.ts +16 -0
  32. package/dist/utils-DHI2QTd1.js +8 -0
  33. package/index.d.ts +2 -0
  34. package/package.json +100 -4
  35. package/plugins/gif.d.ts +2 -0
  36. package/plugins/jpeg-webp.d.ts +2 -0
  37. package/plugins/media.d.ts +2 -0
  38. package/plugins/png.d.ts +2 -0
  39. package/plugins/svg.d.ts +2 -0
@@ -0,0 +1,110 @@
1
+ const e=Symbol(),t=(n,r,i)=>{let a=r[n.type];if(!(a?.enter&&a.enter(n,i)===e)){if(n.type===`root`)for(let e of n.children)t(e,r,n);if(n.type===`element`&&i.children.includes(n))for(let e of n.children)t(e,r,n);a?.exit&&a.exit(n,i)}},n=(e,n,r,i,a)=>{for(let o of r){let r=i?.[o.name];if(r===!1)continue;let s={...o.params,...a,...r},c=o.fn(e,s,n);c!=null&&t(e,c)}},r=({name:e,plugins:t})=>({name:e,isPreset:!0,plugins:Object.freeze(t),fn:(r,i,a)=>{let{floatPrecision:o,overrides:s}=i,c={};if(o!=null&&(c.floatPrecision=o),s){let n=t.map((({name:e})=>e));for(let t of Object.keys(s))n.includes(t)||console.warn(`You are trying to configure ${t} which is not part of ${e}.\nTry to put it before or after, for example\n\nplugins: [\n {\n name: '${e}',\n },\n '${t}'\n]\n`)}n(r,a,t,s,c)}});var i;(function(e){e.Root=`root`,e.Text=`text`,e.Directive=`directive`,e.Comment=`comment`,e.Script=`script`,e.Style=`style`,e.Tag=`tag`,e.CDATA=`cdata`,e.Doctype=`doctype`})(i||={});function a(e){return e.type===i.Tag||e.type===i.Script||e.type===i.Style}const o=i.Root,s=i.Text,c=i.Directive,l=i.Comment,u=i.Script,d=i.Style,f=i.Tag,p=i.CDATA,m=i.Doctype;function h(e){return a(e)}function g(e){return e.type===i.CDATA}function _(e){return e.type===i.Text}function v(e){return e.type===i.Comment}function y(e){return e.type===i.Root}function b(e){return Object.prototype.hasOwnProperty.call(e,`children`)}const x=/["&'<>$\x80-\uFFFF]/g,S=/* @__PURE__ */ new Map([[34,`&quot;`],[38,`&amp;`],[39,`&apos;`],[60,`&lt;`],[62,`&gt;`]]),C=String.prototype.codePointAt==null?(e,t)=>(e.charCodeAt(t)&64512)==55296?1024*(e.charCodeAt(t)-55296)+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t):(e,t)=>e.codePointAt(t);function ee(e){let t=``,n=0,r;for(;(r=x.exec(e))!==null;){let i=r.index,a=e.charCodeAt(i),o=S.get(a);o===void 0?(t+=`${e.substring(n,i)}&#x${C(e,i).toString(16)};`,n=x.lastIndex+=Number((a&64512)==55296)):(t+=e.substring(n,i)+o,n=i+1)}return t+e.substr(n)}function te(e,t){return function(n){let r,i=0,a=``;for(;r=e.exec(n);)i!==r.index&&(a+=n.substring(i,r.index)),a+=t.get(r[0].charCodeAt(0)),i=r.index+1;return a+n.substring(i)}}const w=te(/["&\u00A0]/g,/* @__PURE__ */ new Map([[34,`&quot;`],[38,`&amp;`],[160,`&nbsp;`]])),ne=te(/[&<>\u00A0]/g,/* @__PURE__ */ new Map([[38,`&amp;`],[60,`&lt;`],[62,`&gt;`],[160,`&nbsp;`]])),T=new Map((/* @__PURE__ */ `altGlyph.altGlyphDef.altGlyphItem.animateColor.animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.glyphRef.linearGradient.radialGradient.textPath`.split(`.`)).map((e=>[e.toLowerCase(),e]))),re=new Map((/* @__PURE__ */ `definitionURL.attributeName.attributeType.baseFrequency.baseProfile.calcMode.clipPathUnits.diffuseConstant.edgeMode.filterUnits.glyphRef.gradientTransform.gradientUnits.kernelMatrix.kernelUnitLength.keyPoints.keySplines.keyTimes.lengthAdjust.limitingConeAngle.markerHeight.markerUnits.markerWidth.maskContentUnits.maskUnits.numOctaves.pathLength.patternContentUnits.patternTransform.patternUnits.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.refX.refY.repeatCount.repeatDur.requiredExtensions.requiredFeatures.specularConstant.specularExponent.spreadMethod.startOffset.stdDeviation.stitchTiles.surfaceScale.systemLanguage.tableValues.targetX.targetY.textLength.viewBox.viewTarget.xChannelSelector.yChannelSelector.zoomAndPan`.split(`.`)).map((e=>[e.toLowerCase(),e]))),ie=/* @__PURE__ */ new Set([`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`]);function ae(e){return e.replace(/"/g,`&quot;`)}function oe(e,t){if(!e)return;let n=(t.encodeEntities??t.decodeEntities)===!1?ae:t.xmlMode||t.encodeEntities!==`utf8`?ee:w;return Object.keys(e).map((r=>{let i=e[r]??``;return t.xmlMode===`foreign`&&(r=re.get(r)??r),!t.emptyAttrs&&!t.xmlMode&&i===``?r:`${r}="${n(i)}"`})).join(` `)}const se=/* @__PURE__ */ new Set([`area`,`base`,`basefont`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`img`,`input`,`isindex`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`]);function ce(e,t={}){let n=`length`in e?e:[e],r=``;for(let e=0;e<n.length;e++)r+=le(n[e],t);return r}function le(e,t){switch(e.type){case o:return ce(e.children,t);case m:case c:return pe(e);case l:return ge(e);case p:return he(e);case u:case d:case f:return fe(e,t);case s:return me(e,t)}}const ue=/* @__PURE__ */ new Set([`mi`,`mo`,`mn`,`ms`,`mtext`,`annotation-xml`,`foreignObject`,`desc`,`title`]),de=/* @__PURE__ */ new Set([`svg`,`math`]);function fe(e,t){t.xmlMode===`foreign`&&(e.name=T.get(e.name)??e.name,e.parent&&ue.has(e.parent.name)&&(t={...t,xmlMode:!1})),!t.xmlMode&&de.has(e.name)&&(t={...t,xmlMode:`foreign`});let n=`<${e.name}`,r=oe(e.attribs,t);return r&&(n+=` ${r}`),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&se.has(e.name))?(t.xmlMode||(n+=` `),n+=`/>`):(n+=`>`,e.children.length>0&&(n+=ce(e.children,t)),!t.xmlMode&&se.has(e.name)||(n+=`</${e.name}>`)),n}function pe(e){return`<${e.data}>`}function me(e,t){let n=e.data||``;return(t.encodeEntities??t.decodeEntities)===!1||!t.xmlMode&&e.parent&&ie.has(e.parent.name)||(n=t.xmlMode||t.encodeEntities!==`utf8`?ee(n):ne(n)),n}function he(e){return`<![CDATA[${e.children[0].data}]]>`}function ge(e){return`\x3c!--${e.data}--\x3e`}function _e(e,t){return ce(e,t)}function ve(e,t){return b(e)?e.children.map((e=>_e(e,t))).join(``):``}function ye(e){return Array.isArray(e)?e.map(ye).join(``):h(e)?e.name===`br`?`
2
+ `:ye(e.children):g(e)?ye(e.children):_(e)?e.data:``}function be(e){return Array.isArray(e)?e.map(be).join(``):b(e)&&!v(e)?be(e.children):_(e)?e.data:``}function xe(e){return Array.isArray(e)?e.map(xe).join(``):b(e)&&(e.type===i.Tag||g(e))?xe(e.children):_(e)?e.data:``}function Se(e){return b(e)?e.children:[]}function Ce(e){return e.parent||null}function we(e){let t=Ce(e);if(t!=null)return Se(t);let n=[e],{prev:r,next:i}=e;for(;r!=null;)n.unshift(r),{prev:r}=r;for(;i!=null;)n.push(i),{next:i}=i;return n}function Te(e,t){return e.attribs?.[t]}function Ee(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function De(e){return e.name}function Oe(e){let{next:t}=e;for(;t!==null&&!h(t);)({next:t}=t);return t}function ke(e){let{prev:t}=e;for(;t!==null&&!h(t);)({prev:t}=t);return t}function Ae(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){let t=e.parent.children,n=t.lastIndexOf(e);n>=0&&t.splice(n,1)}e.next=null,e.prev=null,e.parent=null}function je(e,t){let n=t.prev=e.prev;n&&(n.next=t);let r=t.next=e.next;r&&(r.prev=t);let i=t.parent=e.parent;if(i){let n=i.children;n[n.lastIndexOf(e)]=t,e.parent=null}}function Me(e,t){if(Ae(t),t.next=null,t.parent=e,e.children.push(t)>1){let n=e.children[e.children.length-2];n.next=t,t.prev=n}else t.prev=null}function Ne(e,t){Ae(t);let{parent:n}=e,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=n,r){if(r.prev=t,n){let e=n.children;e.splice(e.lastIndexOf(r),0,t)}}else n&&n.children.push(t)}function Pe(e,t){if(Ae(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){let n=e.children[1];n.prev=t,t.next=n}else t.next=null}function Fe(e,t){Ae(t);let{parent:n}=e;if(n){let r=n.children;r.splice(r.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}function Ie(e,t,n=!0,r=1/0){return Le(e,Array.isArray(t)?t:[t],n,r)}function Le(e,t,n,r){let i=[],a=[t],o=[0];for(;;){if(o[0]>=a[0].length){if(o.length===1)return i;a.shift(),o.shift();continue}let t=a[0][o[0]++];if(e(t)&&(i.push(t),--r<=0))return i;n&&b(t)&&t.children.length>0&&(o.unshift(0),a.unshift(t.children))}}function Re(e,t){return t.find(e)}function ze(e,t,n=!0){let r=null;for(let i=0;i<t.length&&!r;i++){let a=t[i];h(a)&&(e(a)?r=a:n&&a.children.length>0&&(r=ze(e,a.children,!0)))}return r}function Be(e,t){return t.some((t=>h(t)&&(e(t)||Be(e,t.children))))}function Ve(e,t){let n=[],r=[t],i=[0];for(;;){if(i[0]>=r[0].length){if(r.length===1)return n;r.shift(),i.shift();continue}let t=r[0][i[0]++];h(t)&&(e(t)&&n.push(t),t.children.length>0&&(i.unshift(0),r.unshift(t.children)))}}const He={tag_name(e){return typeof e==`function`?t=>h(t)&&e(t.name):e===`*`?h:t=>h(t)&&t.name===e},tag_type(e){return typeof e==`function`?t=>e(t.type):t=>t.type===e},tag_contains(e){return typeof e==`function`?t=>_(t)&&e(t.data):t=>_(t)&&t.data===e}};function Ue(e,t){return typeof t==`function`?n=>h(n)&&t(n.attribs[e]):n=>h(n)&&n.attribs[e]===t}function We(e,t){return n=>e(n)||t(n)}function Ge(e){let t=Object.keys(e).map((t=>{let n=e[t];return Object.prototype.hasOwnProperty.call(He,t)?He[t](n):Ue(t,n)}));return t.length===0?null:t.reduce(We)}function Ke(e,t){let n=Ge(e);return!n||n(t)}function qe(e,t,n,r=1/0){let i=Ge(e);return i?Ie(i,t,n,r):[]}function Je(e,t,n=!0){return Array.isArray(t)||(t=[t]),ze(Ue(`id`,e),t,n)}function Ye(e,t,n=!0,r=1/0){return Ie(He.tag_name(e),t,n,r)}function Xe(e,t,n=!0,r=1/0){return Ie(He.tag_type(e),t,n,r)}function Ze(e){let t=e.length;for(;--t>=0;){let n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0)e.splice(t,1);else for(let r=n.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return e}var Qe;(function(e){e[e.DISCONNECTED=1]=`DISCONNECTED`,e[e.PRECEDING=2]=`PRECEDING`,e[e.FOLLOWING=4]=`FOLLOWING`,e[e.CONTAINS=8]=`CONTAINS`,e[e.CONTAINED_BY=16]=`CONTAINED_BY`})(Qe||={});function $e(e,t){let n=[],r=[];if(e===t)return 0;let i=b(e)?e:e.parent;for(;i;)n.unshift(i),i=i.parent;for(i=b(t)?t:t.parent;i;)r.unshift(i),i=i.parent;let a=Math.min(n.length,r.length),o=0;for(;o<a&&n[o]===r[o];)o++;if(o===0)return Qe.DISCONNECTED;let s=n[o-1],c=s.children,l=n[o],u=r[o];return c.indexOf(l)>c.indexOf(u)?s===t?Qe.FOLLOWING|Qe.CONTAINED_BY:Qe.FOLLOWING:s===e?Qe.PRECEDING|Qe.CONTAINS:Qe.PRECEDING}function et(e){return e=e.filter(((e,t,n)=>!n.includes(e,t+1))),e.sort(((e,t)=>{let n=$e(e,t);return n&Qe.PRECEDING?-1:n&Qe.FOLLOWING?1:0})),e}function tt(e){let t=st(lt,e);return t?t.name===`feed`?nt(t):rt(t):null}function nt(e){let t=e.children,n={type:`atom`,items:Ye(`entry`,t).map((e=>{let{children:t}=e,n={media:ot(t)};E(n,`id`,`id`,t),E(n,`title`,`title`,t);let r=st(`link`,t)?.attribs.href;r&&(n.link=r);let i=ct(`summary`,t)||ct(`content`,t);i&&(n.description=i);let a=ct(`updated`,t);return a&&(n.pubDate=new Date(a)),n}))};E(n,`id`,`id`,t),E(n,`title`,`title`,t);let r=st(`link`,t)?.attribs.href;r&&(n.link=r),E(n,`description`,`subtitle`,t);let i=ct(`updated`,t);return i&&(n.updated=new Date(i)),E(n,`author`,`email`,t,!0),n}function rt(e){let t=st(`channel`,e.children)?.children??[],n={type:e.name.substr(0,3),id:``,items:Ye(`item`,e.children).map((e=>{let{children:t}=e,n={media:ot(t)};E(n,`id`,`guid`,t),E(n,`title`,`title`,t),E(n,`link`,`link`,t),E(n,`description`,`description`,t);let r=ct(`pubDate`,t)||ct(`dc:date`,t);return r&&(n.pubDate=new Date(r)),n}))};E(n,`title`,`title`,t),E(n,`link`,`link`,t),E(n,`description`,`description`,t);let r=ct(`lastBuildDate`,t);return r&&(n.updated=new Date(r)),E(n,`author`,`managingEditor`,t,!0),n}const it=[`url`,`type`,`lang`],at=[`fileSize`,`bitrate`,`framerate`,`samplingrate`,`channels`,`duration`,`height`,`width`];function ot(e){return Ye(`media:content`,e).map((e=>{let{attribs:t}=e,n={medium:t.medium,isDefault:!!t.isDefault};for(let e of it)t[e]&&(n[e]=t[e]);for(let e of at)t[e]&&(n[e]=parseInt(t[e],10));return t.expression&&(n.expression=t.expression),n}))}function st(e,t){return Ye(e,t,!0,1)[0]}function ct(e,t,n=!1){return be(Ye(e,t,n,1)).trim()}function E(e,t,n,r,i=!1){let a=ct(n,r,i);a&&(e[t]=a)}function lt(e){return e===`rss`||e===`feed`||e===`rdf:RDF`}var ut=Object.freeze({__proto__:null,get DocumentPosition(){return Qe},append:Ne,appendChild:Me,compareDocumentPosition:$e,existsOne:Be,filter:Ie,find:Le,findAll:Ve,findOne:ze,findOneChild:Re,getAttributeValue:Te,getChildren:Se,getElementById:Je,getElements:qe,getElementsByTagName:Ye,getElementsByTagType:Xe,getFeed:tt,getInnerHTML:ve,getName:De,getOuterHTML:_e,getParent:Ce,getSiblings:we,getText:ye,hasAttrib:Ee,hasChildren:b,innerText:xe,isCDATA:g,isComment:v,isDocument:y,isTag:h,isText:_,nextElementSibling:Oe,prepend:Fe,prependChild:Pe,prevElementSibling:ke,removeElement:Ae,removeSubsets:Ze,replaceElement:je,testElement:Ke,textContent:be,uniqueSort:et});function dt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var D=dt({trueFunc:function(){return!0},falseFunc:function(){return!1}}),O;(function(e){e.Attribute=`attribute`,e.Pseudo=`pseudo`,e.PseudoElement=`pseudo-element`,e.Tag=`tag`,e.Universal=`universal`,e.Adjacent=`adjacent`,e.Child=`child`,e.Descendant=`descendant`,e.Parent=`parent`,e.Sibling=`sibling`,e.ColumnCombinator=`column-combinator`})(O||={});var k;(function(e){e.Any=`any`,e.Element=`element`,e.End=`end`,e.Equals=`equals`,e.Exists=`exists`,e.Hyphen=`hyphen`,e.Not=`not`,e.Start=`start`})(k||={});const ft=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,pt=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,mt=/* @__PURE__ */ new Map([[126,k.Element],[94,k.Start],[36,k.End],[42,k.Any],[33,k.Not],[124,k.Hyphen]]),ht=/* @__PURE__ */ new Set([`has`,`not`,`matches`,`is`,`where`,`host`,`host-context`]);function gt(e){switch(e.type){case O.Adjacent:case O.Child:case O.Descendant:case O.Parent:case O.Sibling:case O.ColumnCombinator:return!0;default:return!1}}const _t=/* @__PURE__ */ new Set([`contains`,`icontains`]);function vt(e,t,n){let r=parseInt(t,16)-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)}function yt(e){return e.replace(pt,vt)}function bt(e){return e===39||e===34}function xt(e){return e===32||e===9||e===10||e===12||e===13}function St(e){let t=[],n=Ct(t,`${e}`,0);if(n<e.length)throw Error(`Unmatched selector: ${e.slice(n)}`);return t}function Ct(e,t,n){let r=[];function i(e){let r=t.slice(n+e).match(ft);if(!r)throw Error(`Expected name, found ${t.slice(n)}`);let[i]=r;return n+=e+i.length,yt(i)}function a(e){for(n+=e;n<t.length&&xt(t.charCodeAt(n));)n++}function o(){n+=1;let e=n,r=1;for(;r>0&&n<t.length;n++)t.charCodeAt(n)!==40||s(n)?t.charCodeAt(n)!==41||s(n)||r--:r++;if(r)throw Error(`Parenthesis not matched`);return yt(t.slice(e,n-1))}function s(e){let n=0;for(;t.charCodeAt(--e)===92;)n++;return(n&1)==1}function c(){if(r.length>0&&gt(r[r.length-1]))throw Error(`Did not expect successive traversals.`)}function l(e){r.length>0&&r[r.length-1].type===O.Descendant?r[r.length-1].type=e:(c(),r.push({type:e}))}function u(e,t){r.push({type:O.Attribute,name:e,action:t,value:i(1),namespace:null,ignoreCase:`quirks`})}function d(){if(r.length&&r[r.length-1].type===O.Descendant&&r.pop(),r.length===0)throw Error(`Empty sub-selector`);e.push(r)}if(a(0),t.length===n)return n;loop:for(;n<t.length;){let e=t.charCodeAt(n);switch(e){case 32:case 9:case 10:case 12:case 13:(r.length===0||r[0].type!==O.Descendant)&&(c(),r.push({type:O.Descendant})),a(1);break;case 62:l(O.Child),a(1);break;case 60:l(O.Parent),a(1);break;case 126:l(O.Sibling),a(1);break;case 43:l(O.Adjacent),a(1);break;case 46:u(`class`,k.Element);break;case 35:u(`id`,k.Equals);break;case 91:{a(1);let e,o=null;t.charCodeAt(n)===124?e=i(1):t.startsWith(`*|`,n)?(o=`*`,e=i(2)):(e=i(0),t.charCodeAt(n)===124&&t.charCodeAt(n+1)!==61&&(o=e,e=i(1))),a(0);let c=k.Exists,l=mt.get(t.charCodeAt(n));if(l){if(c=l,t.charCodeAt(n+1)!==61)throw Error("Expected `=`");a(2)}else t.charCodeAt(n)===61&&(c=k.Equals,a(1));let u=``,d=null;if(c!==`exists`){if(bt(t.charCodeAt(n))){let e=t.charCodeAt(n),r=n+1;for(;r<t.length&&(t.charCodeAt(r)!==e||s(r));)r+=1;if(t.charCodeAt(r)!==e)throw Error(`Attribute value didn't end`);u=yt(t.slice(n+1,r)),n=r+1}else{let e=n;for(;n<t.length&&(!xt(t.charCodeAt(n))&&t.charCodeAt(n)!==93||s(n));)n+=1;u=yt(t.slice(e,n))}a(0);let e=t.charCodeAt(n)|32;e===115?(d=!1,a(1)):e===105&&(d=!0,a(1))}if(t.charCodeAt(n)!==93)throw Error(`Attribute selector didn't terminate`);n+=1;let f={type:O.Attribute,name:e,action:c,value:u,namespace:o,ignoreCase:d};r.push(f);break}case 58:{if(t.charCodeAt(n+1)===58){r.push({type:O.PseudoElement,name:i(2).toLowerCase(),data:t.charCodeAt(n)===40?o():null});continue}let e=i(1).toLowerCase(),a=null;if(t.charCodeAt(n)===40){if(ht.has(e)){if(bt(t.charCodeAt(n+1)))throw Error(`Pseudo-selector ${e} cannot be quoted`);if(a=[],n=Ct(a,t,n+1),t.charCodeAt(n)!==41)throw Error(`Missing closing parenthesis in :${e} (${t})`);n+=1}else{if(a=o(),_t.has(e)){let e=a.charCodeAt(0);e===a.charCodeAt(a.length-1)&&bt(e)&&(a=a.slice(1,-1))}a=yt(a)}}r.push({type:O.Pseudo,name:e,data:a});break}case 44:d(),r=[],a(1);break;default:{if(t.startsWith(`/*`,n)){let e=t.indexOf(`*/`,n+2);if(e<0)throw Error(`Comment was not terminated`);n=e+2,r.length===0&&a(0);break}let o=null,s;if(e===42)n+=1,s=`*`;else if(e===124){if(s=``,t.charCodeAt(n+1)===124){l(O.ColumnCombinator),a(2);break}}else{if(!ft.test(t.slice(n)))break loop;s=i(0)}t.charCodeAt(n)===124&&t.charCodeAt(n+1)!==124&&(o=s,t.charCodeAt(n+1)===42?(s=`*`,n+=2):s=i(1)),r.push(s===`*`?{type:O.Universal,namespace:o}:{type:O.Tag,name:s,namespace:o})}}}return d(),n}const wt=/* @__PURE__ */ new Map([[O.Universal,50],[O.Tag,30],[O.Attribute,1],[O.Pseudo,0]]);function Tt(e){return!wt.has(e.type)}const Et=/* @__PURE__ */ new Map([[k.Exists,10],[k.Equals,8],[k.Not,7],[k.Start,6],[k.End,6],[k.Any,5]]);function Dt(e){let t=e.map(Ot);for(let n=1;n<e.length;n++){let r=t[n];if(!(r<0))for(let i=n-1;i>=0&&r<t[i];i--){let n=e[i+1];e[i+1]=e[i],e[i]=n,t[i+1]=t[i],t[i]=r}}}function Ot(e){let t=wt.get(e.type)??-1;return e.type===O.Attribute?(t=Et.get(e.action)??4,e.action===k.Equals&&e.name===`id`&&(t=9),e.ignoreCase&&(t>>=1)):e.type===O.Pseudo&&(e.data?e.name===`has`||e.name===`contains`?t=0:Array.isArray(e.data)?(t=Math.min(...e.data.map((e=>Math.min(...e.map(Ot))))),t<0&&(t=0)):t=2:t=3),t}const kt=/[-[\]{}()*+?.,\\^$|#\s]/g;function At(e){return e.replace(kt,`\\$&`)}const jt=/* @__PURE__ */ new Set(/* @__PURE__ */ `accept.accept-charset.align.alink.axis.bgcolor.charset.checked.clear.codetype.color.compact.declare.defer.dir.direction.disabled.enctype.face.frame.hreflang.http-equiv.lang.language.link.media.method.multiple.nohref.noresize.noshade.nowrap.readonly.rel.rev.rules.scope.scrolling.selected.shape.target.text.type.valign.valuetype.vlink`.split(`.`));function Mt(e,t){return typeof e.ignoreCase==`boolean`?e.ignoreCase:e.ignoreCase===`quirks`?!!t.quirksMode:!t.xmlMode&&jt.has(e.name)}const Nt={equals(e,t,n){let{adapter:r}=n,{name:i}=t,{value:a}=t;return Mt(t,n)?(a=a.toLowerCase(),t=>{let n=r.getAttributeValue(t,i);return n!=null&&n.length===a.length&&n.toLowerCase()===a&&e(t)}):t=>r.getAttributeValue(t,i)===a&&e(t)},hyphen(e,t,n){let{adapter:r}=n,{name:i}=t,{value:a}=t,o=a.length;return Mt(t,n)?(a=a.toLowerCase(),function(t){let n=r.getAttributeValue(t,i);return n!=null&&(n.length===o||n.charAt(o)===`-`)&&n.substr(0,o).toLowerCase()===a&&e(t)}):function(t){let n=r.getAttributeValue(t,i);return n!=null&&(n.length===o||n.charAt(o)===`-`)&&n.substr(0,o)===a&&e(t)}},element(e,t,n){let{adapter:r}=n,{name:i,value:a}=t;if(/\s/.test(a))return D.falseFunc;let o=RegExp(`(?:^|\\s)${At(a)}(?:$|\\s)`,Mt(t,n)?`i`:``);return function(t){let n=r.getAttributeValue(t,i);return n!=null&&n.length>=a.length&&o.test(n)&&e(t)}},exists:(e,{name:t},{adapter:n})=>r=>n.hasAttrib(r,t)&&e(r),start(e,t,n){let{adapter:r}=n,{name:i}=t,{value:a}=t,o=a.length;return o===0?D.falseFunc:Mt(t,n)?(a=a.toLowerCase(),t=>{let n=r.getAttributeValue(t,i);return n!=null&&n.length>=o&&n.substr(0,o).toLowerCase()===a&&e(t)}):t=>!!r.getAttributeValue(t,i)?.startsWith(a)&&e(t)},end(e,t,n){let{adapter:r}=n,{name:i}=t,{value:a}=t,o=-a.length;return o===0?D.falseFunc:Mt(t,n)?(a=a.toLowerCase(),t=>r.getAttributeValue(t,i)?.substr(o).toLowerCase()===a&&e(t)):t=>!!r.getAttributeValue(t,i)?.endsWith(a)&&e(t)},any(e,t,n){let{adapter:r}=n,{name:i,value:a}=t;if(a===``)return D.falseFunc;if(Mt(t,n)){let t=new RegExp(At(a),`i`);return function(n){let o=r.getAttributeValue(n,i);return o!=null&&o.length>=a.length&&t.test(o)&&e(n)}}return t=>!!r.getAttributeValue(t,i)?.includes(a)&&e(t)},not(e,t,n){let{adapter:r}=n,{name:i}=t,{value:a}=t;return a===``?t=>!!r.getAttributeValue(t,i)&&e(t):Mt(t,n)?(a=a.toLowerCase(),t=>{let n=r.getAttributeValue(t,i);return(n==null||n.length!==a.length||n.toLowerCase()!==a)&&e(t)}):t=>r.getAttributeValue(t,i)!==a&&e(t)}},Pt=/* @__PURE__ */ new Set([9,10,12,13,32]);function Ft(e){if(e=e.trim().toLowerCase(),e===`even`)return[2,0];if(e===`odd`)return[2,1];let t=0,n=0,r=a(),i=o();if(t<e.length&&e.charAt(t)===`n`&&(t++,n=r*(i??1),s(),t<e.length?(r=a(),s(),i=o()):r=i=0),i===null||t<e.length)throw Error(`n-th rule couldn't be parsed ('${e}')`);return[n,r*i];function a(){return e.charAt(t)===`-`?(t++,-1):(e.charAt(t)===`+`&&t++,1)}function o(){let n=t,r=0;for(;t<e.length&&e.charCodeAt(t)>=48&&e.charCodeAt(t)<=57;)r=r*10+(e.charCodeAt(t)-48),t++;return t===n?null:r}function s(){for(;t<e.length&&Pt.has(e.charCodeAt(t));)t++}}function It(e){let t=e[0],n=e[1]-1;if(n<0&&t<=0)return D.falseFunc;if(t===-1)return e=>e<=n;if(t===0)return e=>e===n;if(t===1)return n<0?D.trueFunc:e=>e>=n;let r=Math.abs(t),i=(n%r+r)%r;return t>1?e=>e>=n&&e%r===i:e=>e<=n&&e%r===i}function Lt(e){return It(Ft(e))}function Rt(e,t){return n=>{let r=t.getParent(n);return r!=null&&t.isTag(r)&&e(n)}}const zt={contains:(e,t,{adapter:n})=>function(r){return e(r)&&n.getText(r).includes(t)},icontains(e,t,{adapter:n}){let r=t.toLowerCase();return function(t){return e(t)&&n.getText(t).toLowerCase().includes(r)}},"nth-child"(e,t,{adapter:n,equals:r}){let i=Lt(t);return i===D.falseFunc?D.falseFunc:i===D.trueFunc?Rt(e,n):function(t){let a=n.getSiblings(t),o=0;for(let e=0;e<a.length&&!r(t,a[e]);e++)n.isTag(a[e])&&o++;return i(o)&&e(t)}},"nth-last-child"(e,t,{adapter:n,equals:r}){let i=Lt(t);return i===D.falseFunc?D.falseFunc:i===D.trueFunc?Rt(e,n):function(t){let a=n.getSiblings(t),o=0;for(let e=a.length-1;e>=0&&!r(t,a[e]);e--)n.isTag(a[e])&&o++;return i(o)&&e(t)}},"nth-of-type"(e,t,{adapter:n,equals:r}){let i=Lt(t);return i===D.falseFunc?D.falseFunc:i===D.trueFunc?Rt(e,n):function(t){let a=n.getSiblings(t),o=0;for(let e=0;e<a.length;e++){let i=a[e];if(r(t,i))break;n.isTag(i)&&n.getName(i)===n.getName(t)&&o++}return i(o)&&e(t)}},"nth-last-of-type"(e,t,{adapter:n,equals:r}){let i=Lt(t);return i===D.falseFunc?D.falseFunc:i===D.trueFunc?Rt(e,n):function(t){let a=n.getSiblings(t),o=0;for(let e=a.length-1;e>=0;e--){let i=a[e];if(r(t,i))break;n.isTag(i)&&n.getName(i)===n.getName(t)&&o++}return i(o)&&e(t)}},root:(e,t,{adapter:n})=>t=>{let r=n.getParent(t);return(r==null||!n.isTag(r))&&e(t)},scope(e,t,n,r){let{equals:i}=n;return!r||r.length===0?zt.root(e,t,n):r.length===1?t=>i(r[0],t)&&e(t):t=>r.includes(t)&&e(t)},hover:Bt(`isHovered`),visited:Bt(`isVisited`),active:Bt(`isActive`)};function Bt(e){return function(t,n,{adapter:r}){let i=r[e];return typeof i==`function`?function(e){return i(e)&&t(e)}:D.falseFunc}}const Vt={empty:(e,{adapter:t})=>!t.getChildren(e).some((e=>t.isTag(e)||t.getText(e)!==``)),"first-child"(e,{adapter:t,equals:n}){if(t.prevElementSibling)return t.prevElementSibling(e)==null;let r=t.getSiblings(e).find((e=>t.isTag(e)));return r!=null&&n(e,r)},"last-child"(e,{adapter:t,equals:n}){let r=t.getSiblings(e);for(let i=r.length-1;i>=0;i--){if(n(e,r[i]))return!0;if(t.isTag(r[i]))break}return!1},"first-of-type"(e,{adapter:t,equals:n}){let r=t.getSiblings(e),i=t.getName(e);for(let a=0;a<r.length;a++){let o=r[a];if(n(e,o))return!0;if(t.isTag(o)&&t.getName(o)===i)break}return!1},"last-of-type"(e,{adapter:t,equals:n}){let r=t.getSiblings(e),i=t.getName(e);for(let a=r.length-1;a>=0;a--){let o=r[a];if(n(e,o))return!0;if(t.isTag(o)&&t.getName(o)===i)break}return!1},"only-of-type"(e,{adapter:t,equals:n}){let r=t.getName(e);return t.getSiblings(e).every((i=>n(e,i)||!t.isTag(i)||t.getName(i)!==r))},"only-child":(e,{adapter:t,equals:n})=>t.getSiblings(e).every((r=>n(e,r)||!t.isTag(r)))};function Ht(e,t,n,r){if(n===null){if(e.length>r)throw Error(`Pseudo-class :${t} requires an argument`)}else if(e.length===r)throw Error(`Pseudo-class :${t} doesn't have any arguments`)}const Ut={"any-link":`:is(a, area, link)[href]`,link:`:any-link:not(:visited)`,disabled:`:is(
3
+ :is(button, input, select, textarea, optgroup, option)[disabled],
4
+ optgroup[disabled] > option,
5
+ fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
6
+ )`,enabled:`:not(:disabled)`,checked:`:is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)`,required:`:is(input, select, textarea)[required]`,optional:`:is(input, select, textarea):not([required])`,selected:`option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)`,checkbox:`[type=checkbox]`,file:`[type=file]`,password:`[type=password]`,radio:`[type=radio]`,reset:`[type=reset]`,image:`[type=image]`,submit:`[type=submit]`,parent:`:not(:empty)`,header:`:is(h1, h2, h3, h4, h5, h6)`,button:`:is(button, input[type=button])`,input:`:is(input, textarea, select, button)`,text:`input:is(:not([type!='']), [type=text])`},Wt={};function Gt(e,t){return e===D.falseFunc?D.falseFunc:n=>t.isTag(n)&&e(n)}function Kt(e,t){let n=t.getSiblings(e);if(n.length<=1)return[];let r=n.indexOf(e);return r<0||r===n.length-1?[]:n.slice(r+1).filter(t.isTag)}function qt(e){return{xmlMode:!!e.xmlMode,lowerCaseAttributeNames:!!e.lowerCaseAttributeNames,lowerCaseTags:!!e.lowerCaseTags,quirksMode:!!e.quirksMode,cacheResults:!!e.cacheResults,pseudos:e.pseudos,adapter:e.adapter,equals:e.equals}}const Jt=(e,t,n,r,i)=>{let a=i(t,qt(n),r);return a===D.trueFunc?e:a===D.falseFunc?D.falseFunc:t=>a(t)&&e(t)},Yt={is:Jt,matches:Jt,where:Jt,not(e,t,n,r,i){let a=i(t,qt(n),r);return a===D.falseFunc?e:a===D.trueFunc?D.falseFunc:t=>!a(t)&&e(t)},has(e,t,n,r,i){let{adapter:a}=n,o=qt(n);o.relativeSelector=!0;let s=t.some((e=>e.some(Tt)))?[Wt]:void 0,c=i(t,o,s);if(c===D.falseFunc)return D.falseFunc;let l=Gt(c,a);if(s&&c!==D.trueFunc){let{shouldTestNextSiblings:t=!1}=c;return n=>{if(!e(n))return!1;s[0]=n;let r=a.getChildren(n),i=t?[...r,...Kt(n,a)]:r;return a.existsOne(l,i)}}return t=>e(t)&&a.existsOne(l,a.getChildren(t))}};function Xt(e,t,n,r,i){let{name:a,data:o}=t;if(Array.isArray(o)){if(!(a in Yt))throw Error(`Unknown pseudo-class :${a}(${o})`);return Yt[a](e,o,n,r,i)}let s=n.pseudos?.[a],c=typeof s==`string`?s:Ut[a];if(typeof c==`string`){if(o!=null)throw Error(`Pseudo ${a} doesn't have any arguments`);let t=St(c);return Yt.is(e,t,n,r,i)}if(typeof s==`function`)return Ht(s,a,o,1),t=>s(t,o)&&e(t);if(a in zt)return zt[a](e,o,n,r);if(a in Vt){let t=Vt[a];return Ht(t,a,o,2),r=>t(r,n,o)&&e(r)}throw Error(`Unknown pseudo-class :${a}`)}function Zt(e,t){let n=t.getParent(e);return n&&t.isTag(n)?n:null}function Qt(e,t,n,r,i){let{adapter:a,equals:o}=n;switch(t.type){case O.PseudoElement:throw Error(`Pseudo-elements are not supported by css-select`);case O.ColumnCombinator:throw Error(`Column combinators are not yet supported by css-select`);case O.Attribute:if(t.namespace!=null)throw Error(`Namespaced attributes are not yet supported by css-select`);return n.xmlMode&&!n.lowerCaseAttributeNames||(t.name=t.name.toLowerCase()),Nt[t.action](e,t,n);case O.Pseudo:return Xt(e,t,n,r,i);case O.Tag:{if(t.namespace!=null)throw Error(`Namespaced tag names are not yet supported by css-select`);let{name:r}=t;return n.xmlMode&&!n.lowerCaseTags||(r=r.toLowerCase()),function(t){return a.getName(t)===r&&e(t)}}case O.Descendant:{if(n.cacheResults===!1||typeof WeakSet>`u`)return function(t){let n=t;for(;n=Zt(n,a);)if(e(n))return!0;return!1};let t=/* @__PURE__ */ new WeakSet;return function(n){let r=n;for(;r=Zt(r,a);)if(!t.has(r)){if(a.isTag(r)&&e(r))return!0;t.add(r)}return!1}}case`_flexibleDescendant`:return function(t){let n=t;do if(e(n))return!0;while(n=Zt(n,a));return!1};case O.Parent:return function(t){return a.getChildren(t).some((t=>a.isTag(t)&&e(t)))};case O.Child:return function(t){let n=a.getParent(t);return n!=null&&a.isTag(n)&&e(n)};case O.Sibling:return function(t){let n=a.getSiblings(t);for(let r=0;r<n.length;r++){let i=n[r];if(o(t,i))break;if(a.isTag(i)&&e(i))return!0}return!1};case O.Adjacent:return a.prevElementSibling?function(t){let n=a.prevElementSibling(t);return n!=null&&e(n)}:function(t){let n=a.getSiblings(t),r;for(let e=0;e<n.length;e++){let i=n[e];if(o(t,i))break;a.isTag(i)&&(r=i)}return!!r&&e(r)};case O.Universal:if(t.namespace!=null&&t.namespace!==`*`)throw Error(`Namespaced universal selectors are not yet supported by css-select`);return e}}function $t(e,t,n){return Gt(en(e,t,n),t.adapter)}function en(e,t,n){return sn(typeof e==`string`?St(e):e,t,n)}function tn(e){return e.type===O.Pseudo&&(e.name===`scope`||Array.isArray(e.data)&&e.data.some((e=>e.some(tn))))}const nn={type:O.Descendant},rn={type:`_flexibleDescendant`},an={type:O.Pseudo,name:`scope`,data:null};function on(e,{adapter:t},n){let r=!!n?.every((e=>{let n=t.isTag(e)&&t.getParent(e);return e===Wt||n&&t.isTag(n)}));for(let t of e){if(!(t.length>0&&Tt(t[0])&&t[0].type!==O.Descendant)){if(!r||t.some(tn))continue;t.unshift(nn)}t.unshift(an)}}function sn(e,t,n){e.forEach(Dt),n=t.context??n;let r=Array.isArray(n),i=n&&(Array.isArray(n)?n:[n]);if(t.relativeSelector!==!1)on(e,t,i);else if(e.some((e=>e.length>0&&Tt(e[0]))))throw Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let a=!1,o=e.map((e=>{if(e.length>=2){let[t,n]=e;t.type!==O.Pseudo||t.name!==`scope`||(r&&n.type===O.Descendant?e[1]=rn:n.type!==O.Adjacent&&n.type!==O.Sibling||(a=!0))}return cn(e,t,i)})).reduce(ln,D.falseFunc);return o.shouldTestNextSiblings=a,o}function cn(e,t,n){return e.reduce(((e,r)=>e===D.falseFunc?D.falseFunc:Qt(e,r,t,n,sn)),t.rootFunc??D.trueFunc)}function ln(e,t){return t===D.falseFunc||e===D.trueFunc?e:e===D.falseFunc||t===D.trueFunc?t:function(n){return e(n)||t(n)}}const un=(e,t)=>e===t,dn={adapter:ut,equals:un};function fn(e){let t=e??dn;return t.adapter??=ut,t.equals??=t.adapter?.equals??un,t}function pn(e){return function(t,n,r){let i=fn(r);typeof t!=`function`&&(t=en(t,i,n));let a=mn(n,i.adapter,t.shouldTestNextSiblings);return e(t,a,i)}}function mn(e,t,n=!1){return n&&(e=hn(e,t)),Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}function hn(e,t){let n=Array.isArray(e)?e.slice(0):[e],r=n.length;for(let e=0;e<r;e++){let r=Kt(n[e],t);n.push(...r)}return n}const gn=pn(((e,t,n)=>e!==D.falseFunc&&t&&t.length!==0?n.adapter.findAll(e,t):[])),_n=pn(((e,t,n)=>e!==D.falseFunc&&t&&t.length!==0?n.adapter.findOne(e,t):null));function vn(e,t,n){let r=fn(n);return(typeof t==`function`?t:$t(t,r))(e)}function yn(e){let n=/* @__PURE__ */ new Map;for(let r of e.children)n.set(r,e),t(r,{element:{enter:(e,t)=>{n.set(e,t)}}},e);return n}const bn=e=>e.type===`element`,xn=(e,t)=>t.some((t=>bn(t)&&(e(t)||xn(e,Cn(t))))),Sn=(e,t)=>e.attributes[t],Cn=e=>e.children||[],wn=e=>e.name,Tn=e=>e.children[0].type===`text`||e.children[0].type===`cdata`?e.children[0].value:``,En=(e,t)=>e.attributes[t]!==void 0,Dn=(e,t)=>{let n=[];for(let r of t)bn(r)&&(e(r)&&n.push(r),n.push(...Dn(e,Cn(r))));return n},On=(e,t)=>{for(let n of t)if(bn(n)){if(e(n))return n;let t=On(e,Cn(n));if(t)return t}return null};function kn(e,t){let n=n=>(t||=yn(e),t.get(n)||null);return{isTag:bn,existsOne:xn,getAttributeValue:Sn,getChildren:Cn,getName:wn,getParent:n,getSiblings:e=>{let t=n(e);return t?Cn(t):[]},getText:Tn,hasAttrib:En,removeSubsets:e=>{let t=e.length,r,i,a;for(;--t>-1;){for(r=i=e[t],e[t]=null,a=!0;i;){if(e.includes(i)){a=!1,e.splice(t,1);break}i=n(i)}a&&(e[t]=r)}return e},findAll:Dn,findOne:On}}function An(e,t){return{xmlMode:!0,adapter:kn(e,t)}}const jn=(e,t,n)=>gn(t,e,An(e,n)),Mn=(e,t,n)=>_n(t,e,An(e,n)),Nn=(e,t,n)=>vn(e,t,An(e,n)),A=(e,t)=>{t.children=t.children.filter((t=>t!==e))};var Pn=Object.freeze({__proto__:null,description:`removes doctype declaration`,fn:()=>({doctype:{enter:(e,t)=>{A(e,t)}}}),name:`removeDoctype`}),Fn=Object.freeze({__proto__:null,description:`removes XML processing instructions`,fn:()=>({instruction:{enter:(e,t)=>{e.name===`xml`&&A(e,t)}}}),name:`removeXMLProcInst`});const In=[/^!/];var Ln=Object.freeze({__proto__:null,description:`removes comments`,fn:(e,t)=>{let{preservePatterns:n=In}=t;return{comment:{enter:(e,t)=>{if(n){if(!Array.isArray(n))throw Error(`Expected array in removeComments preservePatterns parameter but received ${n}`);if(n.some((t=>new RegExp(t).test(e.value))))return}A(e,t)}}}},name:`removeComments`});const Rn={animation:/* @__PURE__ */ new Set([`animate`,`animateColor`,`animateMotion`,`animateTransform`,`set`]),descriptive:/* @__PURE__ */ new Set([`desc`,`metadata`,`title`]),shape:/* @__PURE__ */ new Set([`circle`,`ellipse`,`line`,`path`,`polygon`,`polyline`,`rect`]),structural:/* @__PURE__ */ new Set([`defs`,`g`,`svg`,`symbol`,`use`]),paintServer:/* @__PURE__ */ new Set([`hatch`,`linearGradient`,`meshGradient`,`pattern`,`radialGradient`,`solidColor`]),nonRendering:/* @__PURE__ */ new Set([`clipPath`,`filter`,`linearGradient`,`marker`,`mask`,`pattern`,`radialGradient`,`solidColor`,`symbol`]),container:/* @__PURE__ */ new Set([`a`,`defs`,`foreignObject`,`g`,`marker`,`mask`,`missing-glyph`,`pattern`,`svg`,`switch`,`symbol`]),textContent:/* @__PURE__ */ new Set([`a`,`altGlyph`,`altGlyphDef`,`altGlyphItem`,`glyph`,`glyphRef`,`text`,`textPath`,`tref`,`tspan`]),textContentChild:/* @__PURE__ */ new Set([`altGlyph`,`textPath`,`tref`,`tspan`]),lightSource:/* @__PURE__ */ new Set([`feDiffuseLighting`,`feDistantLight`,`fePointLight`,`feSpecularLighting`,`feSpotLight`]),filterPrimitive:/* @__PURE__ */ new Set([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`feSpecularLighting`,`feTile`,`feTurbulence`])},zn=/* @__PURE__ */ new Set([...Rn.textContent,`pre`,`title`]),Bn=/* @__PURE__ */ new Set([`glyph`,`missing-glyph`,`path`]),j={animationAddition:/* @__PURE__ */ new Set([`additive`,`accumulate`]),animationAttributeTarget:/* @__PURE__ */ new Set([`attributeType`,`attributeName`]),animationEvent:/* @__PURE__ */ new Set([`onbegin`,`onend`,`onrepeat`,`onload`]),animationTiming:/* @__PURE__ */ new Set([`begin`,`dur`,`end`,`fill`,`max`,`min`,`repeatCount`,`repeatDur`,`restart`]),animationValue:/* @__PURE__ */ new Set([`by`,`calcMode`,`from`,`keySplines`,`keyTimes`,`to`,`values`]),conditionalProcessing:/* @__PURE__ */ new Set([`requiredExtensions`,`requiredFeatures`,`systemLanguage`]),core:/* @__PURE__ */ new Set([`id`,`tabindex`,`xml:base`,`xml:lang`,`xml:space`]),graphicalEvent:/* @__PURE__ */ new Set([`onactivate`,`onclick`,`onfocusin`,`onfocusout`,`onload`,`onmousedown`,`onmousemove`,`onmouseout`,`onmouseover`,`onmouseup`]),presentation:/* @__PURE__ */ new Set(/* @__PURE__ */ `alignment-baseline.baseline-shift.clip-path.clip-rule.clip.color-interpolation-filters.color-interpolation.color-profile.color-rendering.color.cursor.direction.display.dominant-baseline.enable-background.fill-opacity.fill-rule.fill.filter.flood-color.flood-opacity.font-family.font-size-adjust.font-size.font-stretch.font-style.font-variant.font-weight.glyph-orientation-horizontal.glyph-orientation-vertical.image-rendering.letter-spacing.lighting-color.marker-end.marker-mid.marker-start.mask.opacity.overflow.paint-order.pointer-events.shape-rendering.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.stroke.text-anchor.text-decoration.text-overflow.text-rendering.transform-origin.transform.unicode-bidi.vector-effect.visibility.word-spacing.writing-mode`.split(`.`)),xlink:/* @__PURE__ */ new Set([`xlink:actuate`,`xlink:arcrole`,`xlink:href`,`xlink:role`,`xlink:show`,`xlink:title`,`xlink:type`]),documentEvent:/* @__PURE__ */ new Set([`onabort`,`onerror`,`onresize`,`onscroll`,`onunload`,`onzoom`]),documentElementEvent:/* @__PURE__ */ new Set([`oncopy`,`oncut`,`onpaste`]),globalEvent:/* @__PURE__ */ new Set(/* @__PURE__ */ `oncancel.oncanplay.oncanplaythrough.onchange.onclick.onclose.oncuechange.ondblclick.ondrag.ondragend.ondragenter.ondragleave.ondragover.ondragstart.ondrop.ondurationchange.onemptied.onended.onerror.onfocus.oninput.oninvalid.onkeydown.onkeypress.onkeyup.onload.onloadeddata.onloadedmetadata.onloadstart.onmousedown.onmouseenter.onmouseleave.onmousemove.onmouseout.onmouseover.onmouseup.onmousewheel.onpause.onplay.onplaying.onprogress.onratechange.onreset.onresize.onscroll.onseeked.onseeking.onselect.onshow.onstalled.onsubmit.onsuspend.ontimeupdate.ontoggle.onvolumechange.onwaiting`.split(`.`)),filterPrimitive:/* @__PURE__ */ new Set([`x`,`y`,`width`,`height`,`result`]),transferFunction:/* @__PURE__ */ new Set([`amplitude`,`exponent`,`intercept`,`offset`,`slope`,`tableValues`,`type`])},Vn={core:{"xml:space":`default`},presentation:{clip:`auto`,"clip-path":`none`,"clip-rule":`nonzero`,mask:`none`,opacity:`1`,"stop-color":`#000`,"stop-opacity":`1`,"fill-opacity":`1`,"fill-rule":`nonzero`,fill:`#000`,stroke:`none`,"stroke-width":`1`,"stroke-linecap":`butt`,"stroke-linejoin":`miter`,"stroke-miterlimit":`4`,"stroke-dasharray":`none`,"stroke-dashoffset":`0`,"stroke-opacity":`1`,"paint-order":`normal`,"vector-effect":`none`,display:`inline`,visibility:`visible`,"marker-start":`none`,"marker-mid":`none`,"marker-end":`none`,"color-interpolation":`sRGB`,"color-interpolation-filters":`linearRGB`,"color-rendering":`auto`,"shape-rendering":`auto`,"text-rendering":`auto`,"image-rendering":`auto`,"font-style":`normal`,"font-variant":`normal`,"font-weight":`normal`,"font-stretch":`normal`,"font-size":`medium`,"font-size-adjust":`none`,kerning:`auto`,"letter-spacing":`normal`,"word-spacing":`normal`,"text-decoration":`none`,"text-anchor":`start`,"text-overflow":`clip`,"writing-mode":`lr-tb`,"glyph-orientation-vertical":`auto`,"glyph-orientation-horizontal":`0deg`,direction:`ltr`,"unicode-bidi":`normal`,"dominant-baseline":`auto`,"alignment-baseline":`baseline`,"baseline-shift":`baseline`},transferFunction:{slope:`1`,intercept:`0`,amplitude:`1`,exponent:`1`,offset:`0`}},Hn={animationAttributeTarget:{unsafe:/* @__PURE__ */ new Set([`attributeType`])},conditionalProcessing:{unsafe:/* @__PURE__ */ new Set([`requiredFeatures`])},core:{unsafe:/* @__PURE__ */ new Set([`xml:base`,`xml:lang`,`xml:space`])},presentation:{unsafe:/* @__PURE__ */ new Set([`clip`,`color-profile`,`enable-background`,`glyph-orientation-horizontal`,`glyph-orientation-vertical`,`kerning`])}},Un={a:{attrsGroups:/* @__PURE__ */ new Set([`conditionalProcessing`,`core`,`graphicalEvent`,`presentation`,`xlink`]),attrs:/* @__PURE__ */ new Set([`class`,`externalResourcesRequired`,`style`,`target`,`transform`]),defaults:{target:`_self`},contentGroups:/* @__PURE__ */ new Set([`animation`,`descriptive`,`paintServer`,`shape`,`structural`]),content:/* @__PURE__ */ new Set([`a`,`altGlyphDef`,`clipPath`,`color-profile`,`cursor`,`filter`,`font-face`,`font`,`foreignObject`,`image`,`marker`,`mask`,`pattern`,`script`,`style`,`switch`,`text`,`view`,`tspan`])},altGlyph:{attrsGroups:/* @__PURE__ */ new Set([`conditionalProcessing`,`core`,`graphicalEvent`,`presentation`,`xlink`]),attrs:/* @__PURE__ */ new Set([`class`,`dx`,`dy`,`externalResourcesRequired`,`format`,`glyphRef`,`rotate`,`style`,`x`,`y`])},altGlyphDef:{attrsGroups:/* @__PURE__ */ new Set([`core`]),content:/* @__PURE__ */ new Set([`glyphRef`])},altGlyphItem:{attrsGroups:/* @__PURE__ */ new Set([`core`]),content:/* @__PURE__ */ new Set([`glyphRef`,`altGlyphItem`])},animate:{attrsGroups:/* @__PURE__ */ new Set([`animationAddition`,`animationAttributeTarget`,`animationEvent`,`animationTiming`,`animationValue`,`conditionalProcessing`,`core`,`presentation`,`xlink`]),attrs:/* @__PURE__ */ new Set([`externalResourcesRequired`]),contentGroups:/* @__PURE__ */ new Set([`descriptive`])},animateColor:{attrsGroups:/* @__PURE__ */ new Set([`animationAddition`,`animationAttributeTarget`,`animationEvent`,`animationTiming`,`animationValue`,`conditionalProcessing`,`core`,`presentation`,`xlink`]),attrs:/* @__PURE__ */ new Set([`externalResourcesRequired`]),contentGroups:/* @__PURE__ */ new Set([`descriptive`])},animateMotion:{attrsGroups:/* @__PURE__ */ new Set([`animationAddition`,`animationEvent`,`animationTiming`,`animationValue`,`conditionalProcessing`,`core`,`xlink`]),attrs:/* @__PURE__ */ new Set([`externalResourcesRequired`,`keyPoints`,`origin`,`path`,`rotate`]),defaults:{rotate:`0`},contentGroups:/* @__PURE__ */ new Set([`descriptive`]),content:/* @__PURE__ */ new Set([`mpath`])},animateTransform:{attrsGroups:/* @__PURE__ */ new Set([`animationAddition`,`animationAttributeTarget`,`animationEvent`,`animationTiming`,`animationValue`,`conditionalProcessing`,`core`,`xlink`]),attrs:/* @__PURE__ */ new Set([`externalResourcesRequired`,`type`]),contentGroups:/* @__PURE__ */ new Set([`descriptive`])},circle:{attrsGroups:/* @__PURE__ */ new Set([`conditionalProcessing`,`core`,`graphicalEvent`,`presentation`]),attrs:/* @__PURE__ */ new Set([`class`,`cx`,`cy`,`externalResourcesRequired`,`r`,`style`,`transform`]),defaults:{cx:`0`,cy:`0`},contentGroups:/* @__PURE__ */ new Set([`animation`,`descriptive`])},clipPath:{attrsGroups:/* @__PURE__ */ new Set([`conditionalProcessing`,`core`,`presentation`]),attrs:/* @__PURE__ */ new Set([`class`,`clipPathUnits`,`externalResourcesRequired`,`style`,`transform`]),defaults:{clipPathUnits:`userSpaceOnUse`},contentGroups:/* @__PURE__ */ new Set([`animation`,`descriptive`,`shape`]),content:/* @__PURE__ */ new Set([`text`,`use`])},"color-profile":{attrsGroups:/* @__PURE__ */ new Set([`core`,`xlink`]),attrs:/* @__PURE__ */ new Set([`local`,`name`,`rendering-intent`]),defaults:{name:`sRGB`,"rendering-intent":`auto`},deprecated:{unsafe:/* @__PURE__ */ new Set([`name`])},contentGroups:/* @__PURE__ */ new Set([`descriptive`])},cursor:{attrsGroups:/* @__PURE__ */ new Set([`core`,`conditionalProcessing`,`xlink`]),attrs:/* @__PURE__ */ new Set([`externalResourcesRequired`,`x`,`y`]),defaults:{x:`0`,y:`0`},contentGroups:/* @__PURE__ */ new Set([`descriptive`])},defs:{attrsGroups:/* @__PURE__ */ new Set([`conditionalProcessing`,`core`,`graphicalEvent`,`presentation`]),attrs:/* @__PURE__ */ new Set([`class`,`externalResourcesRequired`,`style`,`transform`]),contentGroups:/* @__PURE__ */ new Set([`animation`,`descriptive`,`paintServer`,`shape`,`structural`]),content:/* @__PURE__ */ new Set([`a`,`altGlyphDef`,`clipPath`,`color-profile`,`cursor`,`filter`,`font-face`,`font`,`foreignObject`,`image`,`marker`,`mask`,`pattern`,`script`,`style`,`switch`,`text`,`view`])},desc:{attrsGroups:/* @__PURE__ */ new Set([`core`]),attrs:/* @__PURE__ */ new Set([`class`,`style`])},ellipse:{attrsGroups:/* @__PURE__ */ new Set([`conditionalProcessing`,`core`,`graphicalEvent`,`presentation`]),attrs:/* @__PURE__ */ new Set([`class`,`cx`,`cy`,`externalResourcesRequired`,`rx`,`ry`,`style`,`transform`]),defaults:{cx:`0`,cy:`0`},contentGroups:/* @__PURE__ */ new Set([`animation`,`descriptive`])},feBlend:{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`,`filterPrimitive`]),attrs:/* @__PURE__ */ new Set([`class`,`style`,`in`,`in2`,`mode`]),defaults:{mode:`normal`},content:/* @__PURE__ */ new Set([`animate`,`set`])},feColorMatrix:{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`,`filterPrimitive`]),attrs:/* @__PURE__ */ new Set([`class`,`style`,`in`,`type`,`values`]),defaults:{type:`matrix`},content:/* @__PURE__ */ new Set([`animate`,`set`])},feComponentTransfer:{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`,`filterPrimitive`]),attrs:/* @__PURE__ */ new Set([`class`,`style`,`in`]),content:/* @__PURE__ */ new Set([`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`])},feComposite:{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`,`filterPrimitive`]),attrs:/* @__PURE__ */ new Set([`class`,`in`,`in2`,`k1`,`k2`,`k3`,`k4`,`operator`,`style`]),defaults:{operator:`over`,k1:`0`,k2:`0`,k3:`0`,k4:`0`},content:/* @__PURE__ */ new Set([`animate`,`set`])},feConvolveMatrix:{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`,`filterPrimitive`]),attrs:/* @__PURE__ */ new Set([`class`,`in`,`kernelMatrix`,`order`,`style`,`bias`,`divisor`,`edgeMode`,`targetX`,`targetY`,`kernelUnitLength`,`preserveAlpha`]),defaults:{order:`3`,bias:`0`,edgeMode:`duplicate`,preserveAlpha:`false`},content:/* @__PURE__ */ new Set([`animate`,`set`])},feDiffuseLighting:{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`,`filterPrimitive`]),attrs:/* @__PURE__ */ new Set([`class`,`diffuseConstant`,`in`,`kernelUnitLength`,`style`,`surfaceScale`]),defaults:{surfaceScale:`1`,diffuseConstant:`1`},contentGroups:/* @__PURE__ */ new Set([`descriptive`]),content:/* @__PURE__ */ new Set([`feDistantLight`,`fePointLight`,`feSpotLight`])},feDisplacementMap:{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`,`filterPrimitive`]),attrs:/* @__PURE__ */ new Set([`class`,`in`,`in2`,`scale`,`style`,`xChannelSelector`,`yChannelSelector`]),defaults:{scale:`0`,xChannelSelector:`A`,yChannelSelector:`A`},content:/* @__PURE__ */ new Set([`animate`,`set`])},feDistantLight:{attrsGroups:/* @__PURE__ */ new Set([`core`]),attrs:/* @__PURE__ */ new Set([`azimuth`,`elevation`]),defaults:{azimuth:`0`,elevation:`0`},content:/* @__PURE__ */ new Set([`animate`,`set`])},feFlood:{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`,`filterPrimitive`]),attrs:/* @__PURE__ */ new Set([`class`,`style`]),content:/* @__PURE__ */ new Set([`animate`,`animateColor`,`set`])},feFuncA:{attrsGroups:/* @__PURE__ */ new Set([`core`,`transferFunction`]),content:/* @__PURE__ */ new Set([`set`,`animate`])},feFuncB:{attrsGroups:/* @__PURE__ */ new Set([`core`,`transferFunction`]),content:/* @__PURE__ */ new Set([`set`,`animate`])},feFuncG:{attrsGroups:/* @__PURE__ */ new Set([`core`,`transferFunction`]),content:/* @__PURE__ */ new Set([`set`,`animate`])},feFuncR:{attrsGroups:/* @__PURE__ */ new Set([`core`,`transferFunction`]),content:/* @__PURE__ */ new Set([`set`,`animate`])},feGaussianBlur:{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`,`filterPrimitive`]),attrs:/* @__PURE__ */ new Set([`class`,`style`,`in`,`stdDeviation`]),defaults:{stdDeviation:`0`},content:/* @__PURE__ */ new Set([`set`,`animate`])},feImage:{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`,`filterPrimitive`,`xlink`]),attrs:/* @__PURE__ */ new Set([`class`,`externalResourcesRequired`,`href`,`preserveAspectRatio`,`style`,`xlink:href`]),defaults:{preserveAspectRatio:`xMidYMid meet`},content:/* @__PURE__ */ new Set([`animate`,`animateTransform`,`set`])},feMerge:{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`,`filterPrimitive`]),attrs:/* @__PURE__ */ new Set([`class`,`style`]),content:/* @__PURE__ */ new Set([`feMergeNode`])},feMergeNode:{attrsGroups:/* @__PURE__ */ new Set([`core`]),attrs:/* @__PURE__ */ new Set([`in`]),content:/* @__PURE__ */ new Set([`animate`,`set`])},feMorphology:{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`,`filterPrimitive`]),attrs:/* @__PURE__ */ new Set([`class`,`style`,`in`,`operator`,`radius`]),defaults:{operator:`erode`,radius:`0`},content:/* @__PURE__ */ new Set([`animate`,`set`])},feOffset:{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`,`filterPrimitive`]),attrs:/* @__PURE__ */ new Set([`class`,`style`,`in`,`dx`,`dy`]),defaults:{dx:`0`,dy:`0`},content:/* @__PURE__ */ new Set([`animate`,`set`])},fePointLight:{attrsGroups:/* @__PURE__ */ new Set([`core`]),attrs:/* @__PURE__ */ new Set([`x`,`y`,`z`]),defaults:{x:`0`,y:`0`,z:`0`},content:/* @__PURE__ */ new Set([`animate`,`set`])},feSpecularLighting:{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`,`filterPrimitive`]),attrs:/* @__PURE__ */ new Set([`class`,`in`,`kernelUnitLength`,`specularConstant`,`specularExponent`,`style`,`surfaceScale`]),defaults:{surfaceScale:`1`,specularConstant:`1`,specularExponent:`1`},contentGroups:/* @__PURE__ */ new Set([`descriptive`,`lightSource`])},feSpotLight:{attrsGroups:/* @__PURE__ */ new Set([`core`]),attrs:/* @__PURE__ */ new Set([`limitingConeAngle`,`pointsAtX`,`pointsAtY`,`pointsAtZ`,`specularExponent`,`x`,`y`,`z`]),defaults:{x:`0`,y:`0`,z:`0`,pointsAtX:`0`,pointsAtY:`0`,pointsAtZ:`0`,specularExponent:`1`},content:/* @__PURE__ */ new Set([`animate`,`set`])},feTile:{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`,`filterPrimitive`]),attrs:/* @__PURE__ */ new Set([`class`,`style`,`in`]),content:/* @__PURE__ */ new Set([`animate`,`set`])},feTurbulence:{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`,`filterPrimitive`]),attrs:/* @__PURE__ */ new Set([`baseFrequency`,`class`,`numOctaves`,`seed`,`stitchTiles`,`style`,`type`]),defaults:{baseFrequency:`0`,numOctaves:`1`,seed:`0`,stitchTiles:`noStitch`,type:`turbulence`},content:/* @__PURE__ */ new Set([`animate`,`set`])},filter:{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`,`xlink`]),attrs:/* @__PURE__ */ new Set([`class`,`externalResourcesRequired`,`filterRes`,`filterUnits`,`height`,`href`,`primitiveUnits`,`style`,`width`,`x`,`xlink:href`,`y`]),defaults:{primitiveUnits:`userSpaceOnUse`,x:`-10%`,y:`-10%`,width:`120%`,height:`120%`},deprecated:{unsafe:/* @__PURE__ */ new Set([`filterRes`])},contentGroups:/* @__PURE__ */ new Set([`descriptive`,`filterPrimitive`]),content:/* @__PURE__ */ new Set([`animate`,`set`])},font:{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`]),attrs:/* @__PURE__ */ new Set([`class`,`externalResourcesRequired`,`horiz-adv-x`,`horiz-origin-x`,`horiz-origin-y`,`style`,`vert-adv-y`,`vert-origin-x`,`vert-origin-y`]),defaults:{"horiz-origin-x":`0`,"horiz-origin-y":`0`},deprecated:{unsafe:/* @__PURE__ */ new Set([`horiz-origin-x`,`horiz-origin-y`,`vert-adv-y`,`vert-origin-x`,`vert-origin-y`])},contentGroups:/* @__PURE__ */ new Set([`descriptive`]),content:/* @__PURE__ */ new Set([`font-face`,`glyph`,`hkern`,`missing-glyph`,`vkern`])},"font-face":{attrsGroups:/* @__PURE__ */ new Set([`core`]),attrs:/* @__PURE__ */ new Set(/* @__PURE__ */ `font-family.font-style.font-variant.font-weight.font-stretch.font-size.unicode-range.units-per-em.panose-1.stemv.stemh.slope.cap-height.x-height.accent-height.ascent.descent.widths.bbox.ideographic.alphabetic.mathematical.hanging.v-ideographic.v-alphabetic.v-mathematical.v-hanging.underline-position.underline-thickness.strikethrough-position.strikethrough-thickness.overline-position.overline-thickness`.split(`.`)),defaults:{"font-style":`all`,"font-variant":`normal`,"font-weight":`all`,"font-stretch":`normal`,"unicode-range":`U+0-10FFFF`,"units-per-em":`1000`,"panose-1":`0 0 0 0 0 0 0 0 0 0`,slope:`0`},deprecated:{unsafe:/* @__PURE__ */ new Set([`accent-height`,`alphabetic`,`ascent`,`bbox`,`cap-height`,`descent`,`hanging`,`ideographic`,`mathematical`,`panose-1`,`slope`,`stemh`,`stemv`,`unicode-range`,`units-per-em`,`v-alphabetic`,`v-hanging`,`v-ideographic`,`v-mathematical`,`widths`,`x-height`])},contentGroups:/* @__PURE__ */ new Set([`descriptive`]),content:/* @__PURE__ */ new Set([`font-face-src`])},"font-face-format":{attrsGroups:/* @__PURE__ */ new Set([`core`]),attrs:/* @__PURE__ */ new Set([`string`]),deprecated:{unsafe:/* @__PURE__ */ new Set([`string`])}},"font-face-name":{attrsGroups:/* @__PURE__ */ new Set([`core`]),attrs:/* @__PURE__ */ new Set([`name`]),deprecated:{unsafe:/* @__PURE__ */ new Set([`name`])}},"font-face-src":{attrsGroups:/* @__PURE__ */ new Set([`core`]),content:/* @__PURE__ */ new Set([`font-face-name`,`font-face-uri`])},"font-face-uri":{attrsGroups:/* @__PURE__ */ new Set([`core`,`xlink`]),attrs:/* @__PURE__ */ new Set([`href`,`xlink:href`]),content:/* @__PURE__ */ new Set([`font-face-format`])},foreignObject:{attrsGroups:/* @__PURE__ */ new Set([`conditionalProcessing`,`core`,`graphicalEvent`,`presentation`]),attrs:/* @__PURE__ */ new Set([`class`,`externalResourcesRequired`,`height`,`style`,`transform`,`width`,`x`,`y`]),defaults:{x:`0`,y:`0`}},g:{attrsGroups:/* @__PURE__ */ new Set([`conditionalProcessing`,`core`,`graphicalEvent`,`presentation`]),attrs:/* @__PURE__ */ new Set([`class`,`externalResourcesRequired`,`style`,`transform`]),contentGroups:/* @__PURE__ */ new Set([`animation`,`descriptive`,`paintServer`,`shape`,`structural`]),content:/* @__PURE__ */ new Set([`a`,`altGlyphDef`,`clipPath`,`color-profile`,`cursor`,`filter`,`font-face`,`font`,`foreignObject`,`image`,`marker`,`mask`,`pattern`,`script`,`style`,`switch`,`text`,`view`])},glyph:{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`]),attrs:/* @__PURE__ */ new Set([`arabic-form`,`class`,`d`,`glyph-name`,`horiz-adv-x`,`lang`,`orientation`,`style`,`unicode`,`vert-adv-y`,`vert-origin-x`,`vert-origin-y`]),defaults:{"arabic-form":`initial`},deprecated:{unsafe:/* @__PURE__ */ new Set([`arabic-form`,`glyph-name`,`horiz-adv-x`,`orientation`,`unicode`,`vert-adv-y`,`vert-origin-x`,`vert-origin-y`])},contentGroups:/* @__PURE__ */ new Set([`animation`,`descriptive`,`paintServer`,`shape`,`structural`]),content:/* @__PURE__ */ new Set([`a`,`altGlyphDef`,`clipPath`,`color-profile`,`cursor`,`filter`,`font-face`,`font`,`foreignObject`,`image`,`marker`,`mask`,`pattern`,`script`,`style`,`switch`,`text`,`view`])},glyphRef:{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`]),attrs:/* @__PURE__ */ new Set([`class`,`d`,`horiz-adv-x`,`style`,`vert-adv-y`,`vert-origin-x`,`vert-origin-y`]),deprecated:{unsafe:/* @__PURE__ */ new Set([`horiz-adv-x`,`vert-adv-y`,`vert-origin-x`,`vert-origin-y`])},contentGroups:/* @__PURE__ */ new Set([`animation`,`descriptive`,`paintServer`,`shape`,`structural`]),content:/* @__PURE__ */ new Set([`a`,`altGlyphDef`,`clipPath`,`color-profile`,`cursor`,`filter`,`font-face`,`font`,`foreignObject`,`image`,`marker`,`mask`,`pattern`,`script`,`style`,`switch`,`text`,`view`])},hatch:{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`,`xlink`]),attrs:/* @__PURE__ */ new Set([`class`,`hatchContentUnits`,`hatchUnits`,`pitch`,`rotate`,`style`,`transform`,`x`,`y`]),defaults:{hatchUnits:`objectBoundingBox`,hatchContentUnits:`userSpaceOnUse`,x:`0`,y:`0`,pitch:`0`,rotate:`0`},contentGroups:/* @__PURE__ */ new Set([`animation`,`descriptive`]),content:/* @__PURE__ */ new Set([`hatchPath`])},hatchPath:{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`,`xlink`]),attrs:/* @__PURE__ */ new Set([`class`,`style`,`d`,`offset`]),defaults:{offset:`0`},contentGroups:/* @__PURE__ */ new Set([`animation`,`descriptive`])},hkern:{attrsGroups:/* @__PURE__ */ new Set([`core`]),attrs:/* @__PURE__ */ new Set([`u1`,`g1`,`u2`,`g2`,`k`]),deprecated:{unsafe:/* @__PURE__ */ new Set([`g1`,`g2`,`k`,`u1`,`u2`])}},image:{attrsGroups:/* @__PURE__ */ new Set([`conditionalProcessing`,`core`,`graphicalEvent`,`presentation`,`xlink`]),attrs:/* @__PURE__ */ new Set([`class`,`externalResourcesRequired`,`height`,`href`,`preserveAspectRatio`,`style`,`transform`,`width`,`x`,`xlink:href`,`y`]),defaults:{x:`0`,y:`0`,preserveAspectRatio:`xMidYMid meet`},contentGroups:/* @__PURE__ */ new Set([`animation`,`descriptive`])},line:{attrsGroups:/* @__PURE__ */ new Set([`conditionalProcessing`,`core`,`graphicalEvent`,`presentation`]),attrs:/* @__PURE__ */ new Set([`class`,`externalResourcesRequired`,`style`,`transform`,`x1`,`x2`,`y1`,`y2`]),defaults:{x1:`0`,y1:`0`,x2:`0`,y2:`0`},contentGroups:/* @__PURE__ */ new Set([`animation`,`descriptive`])},linearGradient:{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`,`xlink`]),attrs:/* @__PURE__ */ new Set([`class`,`externalResourcesRequired`,`gradientTransform`,`gradientUnits`,`href`,`spreadMethod`,`style`,`x1`,`x2`,`xlink:href`,`y1`,`y2`]),defaults:{x1:`0`,y1:`0`,x2:`100%`,y2:`0`,spreadMethod:`pad`},contentGroups:/* @__PURE__ */ new Set([`descriptive`]),content:/* @__PURE__ */ new Set([`animate`,`animateTransform`,`set`,`stop`])},marker:{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`]),attrs:/* @__PURE__ */ new Set([`class`,`externalResourcesRequired`,`markerHeight`,`markerUnits`,`markerWidth`,`orient`,`preserveAspectRatio`,`refX`,`refY`,`style`,`viewBox`]),defaults:{markerUnits:`strokeWidth`,refX:`0`,refY:`0`,markerWidth:`3`,markerHeight:`3`},contentGroups:/* @__PURE__ */ new Set([`animation`,`descriptive`,`paintServer`,`shape`,`structural`]),content:/* @__PURE__ */ new Set([`a`,`altGlyphDef`,`clipPath`,`color-profile`,`cursor`,`filter`,`font-face`,`font`,`foreignObject`,`image`,`marker`,`mask`,`pattern`,`script`,`style`,`switch`,`text`,`view`])},mask:{attrsGroups:/* @__PURE__ */ new Set([`conditionalProcessing`,`core`,`presentation`]),attrs:/* @__PURE__ */ new Set([`class`,`externalResourcesRequired`,`height`,`mask-type`,`maskContentUnits`,`maskUnits`,`style`,`width`,`x`,`y`]),defaults:{maskUnits:`objectBoundingBox`,maskContentUnits:`userSpaceOnUse`,x:`-10%`,y:`-10%`,width:`120%`,height:`120%`},contentGroups:/* @__PURE__ */ new Set([`animation`,`descriptive`,`paintServer`,`shape`,`structural`]),content:/* @__PURE__ */ new Set([`a`,`altGlyphDef`,`clipPath`,`color-profile`,`cursor`,`filter`,`font-face`,`font`,`foreignObject`,`image`,`marker`,`mask`,`pattern`,`script`,`style`,`switch`,`text`,`view`])},metadata:{attrsGroups:/* @__PURE__ */ new Set([`core`])},"missing-glyph":{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`]),attrs:/* @__PURE__ */ new Set([`class`,`d`,`horiz-adv-x`,`style`,`vert-adv-y`,`vert-origin-x`,`vert-origin-y`]),deprecated:{unsafe:/* @__PURE__ */ new Set([`horiz-adv-x`,`vert-adv-y`,`vert-origin-x`,`vert-origin-y`])},contentGroups:/* @__PURE__ */ new Set([`animation`,`descriptive`,`paintServer`,`shape`,`structural`]),content:/* @__PURE__ */ new Set([`a`,`altGlyphDef`,`clipPath`,`color-profile`,`cursor`,`filter`,`font-face`,`font`,`foreignObject`,`image`,`marker`,`mask`,`pattern`,`script`,`style`,`switch`,`text`,`view`])},mpath:{attrsGroups:/* @__PURE__ */ new Set([`core`,`xlink`]),attrs:/* @__PURE__ */ new Set([`externalResourcesRequired`,`href`,`xlink:href`]),contentGroups:/* @__PURE__ */ new Set([`descriptive`])},path:{attrsGroups:/* @__PURE__ */ new Set([`conditionalProcessing`,`core`,`graphicalEvent`,`presentation`]),attrs:/* @__PURE__ */ new Set([`class`,`d`,`externalResourcesRequired`,`pathLength`,`style`,`transform`]),contentGroups:/* @__PURE__ */ new Set([`animation`,`descriptive`])},pattern:{attrsGroups:/* @__PURE__ */ new Set([`conditionalProcessing`,`core`,`presentation`,`xlink`]),attrs:/* @__PURE__ */ new Set([`class`,`externalResourcesRequired`,`height`,`href`,`patternContentUnits`,`patternTransform`,`patternUnits`,`preserveAspectRatio`,`style`,`viewBox`,`width`,`x`,`xlink:href`,`y`]),defaults:{patternUnits:`objectBoundingBox`,patternContentUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`0`,height:`0`,preserveAspectRatio:`xMidYMid meet`},contentGroups:/* @__PURE__ */ new Set([`animation`,`descriptive`,`paintServer`,`shape`,`structural`]),content:/* @__PURE__ */ new Set([`a`,`altGlyphDef`,`clipPath`,`color-profile`,`cursor`,`filter`,`font-face`,`font`,`foreignObject`,`image`,`marker`,`mask`,`pattern`,`script`,`style`,`switch`,`text`,`view`])},polygon:{attrsGroups:/* @__PURE__ */ new Set([`conditionalProcessing`,`core`,`graphicalEvent`,`presentation`]),attrs:/* @__PURE__ */ new Set([`class`,`externalResourcesRequired`,`points`,`style`,`transform`]),contentGroups:/* @__PURE__ */ new Set([`animation`,`descriptive`])},polyline:{attrsGroups:/* @__PURE__ */ new Set([`conditionalProcessing`,`core`,`graphicalEvent`,`presentation`]),attrs:/* @__PURE__ */ new Set([`class`,`externalResourcesRequired`,`points`,`style`,`transform`]),contentGroups:/* @__PURE__ */ new Set([`animation`,`descriptive`])},radialGradient:{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`,`xlink`]),attrs:/* @__PURE__ */ new Set([`class`,`cx`,`cy`,`externalResourcesRequired`,`fr`,`fx`,`fy`,`gradientTransform`,`gradientUnits`,`href`,`r`,`spreadMethod`,`style`,`xlink:href`]),defaults:{gradientUnits:`objectBoundingBox`,cx:`50%`,cy:`50%`,r:`50%`},contentGroups:/* @__PURE__ */ new Set([`descriptive`]),content:/* @__PURE__ */ new Set([`animate`,`animateTransform`,`set`,`stop`])},meshGradient:{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`,`xlink`]),attrs:/* @__PURE__ */ new Set([`class`,`style`,`x`,`y`,`gradientUnits`,`transform`]),contentGroups:/* @__PURE__ */ new Set([`descriptive`,`paintServer`,`animation`]),content:/* @__PURE__ */ new Set([`meshRow`])},meshRow:{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`]),attrs:/* @__PURE__ */ new Set([`class`,`style`]),contentGroups:/* @__PURE__ */ new Set([`descriptive`]),content:/* @__PURE__ */ new Set([`meshPatch`])},meshPatch:{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`]),attrs:/* @__PURE__ */ new Set([`class`,`style`]),contentGroups:/* @__PURE__ */ new Set([`descriptive`]),content:/* @__PURE__ */ new Set([`stop`])},rect:{attrsGroups:/* @__PURE__ */ new Set([`conditionalProcessing`,`core`,`graphicalEvent`,`presentation`]),attrs:/* @__PURE__ */ new Set([`class`,`externalResourcesRequired`,`height`,`rx`,`ry`,`style`,`transform`,`width`,`x`,`y`]),defaults:{x:`0`,y:`0`},contentGroups:/* @__PURE__ */ new Set([`animation`,`descriptive`])},script:{attrsGroups:/* @__PURE__ */ new Set([`core`,`xlink`]),attrs:/* @__PURE__ */ new Set([`externalResourcesRequired`,`type`,`href`,`xlink:href`])},set:{attrsGroups:/* @__PURE__ */ new Set([`animation`,`animationAttributeTarget`,`animationTiming`,`conditionalProcessing`,`core`,`xlink`]),attrs:/* @__PURE__ */ new Set([`externalResourcesRequired`,`to`]),contentGroups:/* @__PURE__ */ new Set([`descriptive`])},solidColor:{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`]),attrs:/* @__PURE__ */ new Set([`class`,`style`]),contentGroups:/* @__PURE__ */ new Set([`paintServer`])},stop:{attrsGroups:/* @__PURE__ */ new Set([`core`,`presentation`]),attrs:/* @__PURE__ */ new Set([`class`,`style`,`offset`,`path`]),content:/* @__PURE__ */ new Set([`animate`,`animateColor`,`set`])},style:{attrsGroups:/* @__PURE__ */ new Set([`core`]),attrs:/* @__PURE__ */ new Set([`type`,`media`,`title`]),defaults:{type:`text/css`}},svg:{attrsGroups:/* @__PURE__ */ new Set([`conditionalProcessing`,`core`,`documentEvent`,`graphicalEvent`,`presentation`]),attrs:/* @__PURE__ */ new Set([`baseProfile`,`class`,`contentScriptType`,`contentStyleType`,`height`,`preserveAspectRatio`,`style`,`version`,`viewBox`,`width`,`x`,`y`,`zoomAndPan`]),defaults:{x:`0`,y:`0`,width:`100%`,height:`100%`,preserveAspectRatio:`xMidYMid meet`,zoomAndPan:`magnify`,version:`1.1`,baseProfile:`none`,contentScriptType:`application/ecmascript`,contentStyleType:`text/css`},deprecated:{safe:/* @__PURE__ */ new Set([`version`]),unsafe:/* @__PURE__ */ new Set([`baseProfile`,`contentScriptType`,`contentStyleType`,`zoomAndPan`])},contentGroups:/* @__PURE__ */ new Set([`animation`,`descriptive`,`paintServer`,`shape`,`structural`]),content:/* @__PURE__ */ new Set([`a`,`altGlyphDef`,`clipPath`,`color-profile`,`cursor`,`filter`,`font-face`,`font`,`foreignObject`,`image`,`marker`,`mask`,`pattern`,`script`,`style`,`switch`,`text`,`view`])},switch:{attrsGroups:/* @__PURE__ */ new Set([`conditionalProcessing`,`core`,`graphicalEvent`,`presentation`]),attrs:/* @__PURE__ */ new Set([`class`,`externalResourcesRequired`,`style`,`transform`]),contentGroups:/* @__PURE__ */ new Set([`animation`,`descriptive`,`shape`]),content:/* @__PURE__ */ new Set([`a`,`foreignObject`,`g`,`image`,`svg`,`switch`,`text`,`use`])},symbol:{attrsGroups:/* @__PURE__ */ new Set([`core`,`graphicalEvent`,`presentation`]),attrs:/* @__PURE__ */ new Set([`class`,`externalResourcesRequired`,`preserveAspectRatio`,`refX`,`refY`,`style`,`viewBox`]),defaults:{refX:`0`,refY:`0`},contentGroups:/* @__PURE__ */ new Set([`animation`,`descriptive`,`paintServer`,`shape`,`structural`]),content:/* @__PURE__ */ new Set([`a`,`altGlyphDef`,`clipPath`,`color-profile`,`cursor`,`filter`,`font-face`,`font`,`foreignObject`,`image`,`marker`,`mask`,`pattern`,`script`,`style`,`switch`,`text`,`view`])},text:{attrsGroups:/* @__PURE__ */ new Set([`conditionalProcessing`,`core`,`graphicalEvent`,`presentation`]),attrs:/* @__PURE__ */ new Set([`class`,`dx`,`dy`,`externalResourcesRequired`,`lengthAdjust`,`rotate`,`style`,`textLength`,`transform`,`x`,`y`]),defaults:{x:`0`,y:`0`,lengthAdjust:`spacing`},contentGroups:/* @__PURE__ */ new Set([`animation`,`descriptive`,`textContentChild`]),content:/* @__PURE__ */ new Set([`a`])},textPath:{attrsGroups:/* @__PURE__ */ new Set([`conditionalProcessing`,`core`,`graphicalEvent`,`presentation`,`xlink`]),attrs:/* @__PURE__ */ new Set([`class`,`d`,`externalResourcesRequired`,`href`,`method`,`spacing`,`startOffset`,`style`,`xlink:href`]),defaults:{startOffset:`0`,method:`align`,spacing:`exact`},contentGroups:/* @__PURE__ */ new Set([`descriptive`]),content:/* @__PURE__ */ new Set([`a`,`altGlyph`,`animate`,`animateColor`,`set`,`tref`,`tspan`])},title:{attrsGroups:/* @__PURE__ */ new Set([`core`]),attrs:/* @__PURE__ */ new Set([`class`,`style`])},tref:{attrsGroups:/* @__PURE__ */ new Set([`conditionalProcessing`,`core`,`graphicalEvent`,`presentation`,`xlink`]),attrs:/* @__PURE__ */ new Set([`class`,`externalResourcesRequired`,`href`,`style`,`xlink:href`]),contentGroups:/* @__PURE__ */ new Set([`descriptive`]),content:/* @__PURE__ */ new Set([`animate`,`animateColor`,`set`])},tspan:{attrsGroups:/* @__PURE__ */ new Set([`conditionalProcessing`,`core`,`graphicalEvent`,`presentation`]),attrs:/* @__PURE__ */ new Set([`class`,`dx`,`dy`,`externalResourcesRequired`,`lengthAdjust`,`rotate`,`style`,`textLength`,`x`,`y`]),contentGroups:/* @__PURE__ */ new Set([`descriptive`]),content:/* @__PURE__ */ new Set([`a`,`altGlyph`,`animate`,`animateColor`,`set`,`tref`,`tspan`])},use:{attrsGroups:/* @__PURE__ */ new Set([`conditionalProcessing`,`core`,`graphicalEvent`,`presentation`,`xlink`]),attrs:/* @__PURE__ */ new Set([`class`,`externalResourcesRequired`,`height`,`href`,`style`,`transform`,`width`,`x`,`xlink:href`,`y`]),defaults:{x:`0`,y:`0`},contentGroups:/* @__PURE__ */ new Set([`animation`,`descriptive`])},view:{attrsGroups:/* @__PURE__ */ new Set([`core`]),attrs:/* @__PURE__ */ new Set([`externalResourcesRequired`,`preserveAspectRatio`,`viewBox`,`viewTarget`,`zoomAndPan`]),deprecated:{unsafe:/* @__PURE__ */ new Set([`viewTarget`,`zoomAndPan`])},contentGroups:/* @__PURE__ */ new Set([`descriptive`])},vkern:{attrsGroups:/* @__PURE__ */ new Set([`core`]),attrs:/* @__PURE__ */ new Set([`u1`,`g1`,`u2`,`g2`,`k`]),deprecated:{unsafe:/* @__PURE__ */ new Set([`g1`,`g2`,`k`,`u1`,`u2`])}}},Wn=/* @__PURE__ */ new Set([`http://creativecommons.org/ns#`,`http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd`,`http://krita.org/namespaces/svg/krita`,`http://ns.adobe.com/AdobeIllustrator/10.0/`,`http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/`,`http://ns.adobe.com/Extensibility/1.0/`,`http://ns.adobe.com/Flows/1.0/`,`http://ns.adobe.com/GenericCustomNamespace/1.0/`,`http://ns.adobe.com/Graphs/1.0/`,`http://ns.adobe.com/ImageReplacement/1.0/`,`http://ns.adobe.com/SaveForWeb/1.0/`,`http://ns.adobe.com/Variables/1.0/`,`http://ns.adobe.com/XPath/1.0/`,`http://purl.org/dc/elements/1.1/`,`http://schemas.microsoft.com/visio/2003/SVGExtensions/`,`http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd`,`http://taptrix.com/vectorillustrator/svg_extensions`,`http://www.bohemiancoding.com/sketch/ns`,`http://www.figma.com/figma/ns`,`http://www.inkscape.org/namespaces/inkscape`,`http://www.serif.com/`,`http://www.vector.evaxdesign.sk`,`http://www.w3.org/1999/02/22-rdf-syntax-ns#`,`https://boxy-svg.com`]),Gn=/* @__PURE__ */ new Set([`clip-path`,`color-profile`,`fill`,`filter`,`marker-end`,`marker-mid`,`marker-start`,`mask`,`stroke`,`style`]),Kn=/* @__PURE__ */ new Set(/* @__PURE__ */ `clip-rule.color-interpolation-filters.color-interpolation.color-profile.color-rendering.color.cursor.direction.dominant-baseline.fill-opacity.fill-rule.fill.font-family.font-size-adjust.font-size.font-stretch.font-style.font-variant.font-weight.font.glyph-orientation-horizontal.glyph-orientation-vertical.image-rendering.letter-spacing.marker-end.marker-mid.marker-start.marker.paint-order.pointer-events.shape-rendering.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.stroke.text-anchor.text-rendering.transform.visibility.word-spacing.writing-mode`.split(`.`)),qn=/* @__PURE__ */ new Set([`clip-path`,`display`,`filter`,`mask`,`opacity`,`text-decoration`,`transform`,`unicode-bidi`]),Jn={aliceblue:`#f0f8ff`,antiquewhite:`#faebd7`,aqua:`#0ff`,aquamarine:`#7fffd4`,azure:`#f0ffff`,beige:`#f5f5dc`,bisque:`#ffe4c4`,black:`#000`,blanchedalmond:`#ffebcd`,blue:`#00f`,blueviolet:`#8a2be2`,brown:`#a52a2a`,burlywood:`#deb887`,cadetblue:`#5f9ea0`,chartreuse:`#7fff00`,chocolate:`#d2691e`,coral:`#ff7f50`,cornflowerblue:`#6495ed`,cornsilk:`#fff8dc`,crimson:`#dc143c`,cyan:`#0ff`,darkblue:`#00008b`,darkcyan:`#008b8b`,darkgoldenrod:`#b8860b`,darkgray:`#a9a9a9`,darkgreen:`#006400`,darkgrey:`#a9a9a9`,darkkhaki:`#bdb76b`,darkmagenta:`#8b008b`,darkolivegreen:`#556b2f`,darkorange:`#ff8c00`,darkorchid:`#9932cc`,darkred:`#8b0000`,darksalmon:`#e9967a`,darkseagreen:`#8fbc8f`,darkslateblue:`#483d8b`,darkslategray:`#2f4f4f`,darkslategrey:`#2f4f4f`,darkturquoise:`#00ced1`,darkviolet:`#9400d3`,deeppink:`#ff1493`,deepskyblue:`#00bfff`,dimgray:`#696969`,dimgrey:`#696969`,dodgerblue:`#1e90ff`,firebrick:`#b22222`,floralwhite:`#fffaf0`,forestgreen:`#228b22`,fuchsia:`#f0f`,gainsboro:`#dcdcdc`,ghostwhite:`#f8f8ff`,gold:`#ffd700`,goldenrod:`#daa520`,gray:`#808080`,green:`#008000`,greenyellow:`#adff2f`,grey:`#808080`,honeydew:`#f0fff0`,hotpink:`#ff69b4`,indianred:`#cd5c5c`,indigo:`#4b0082`,ivory:`#fffff0`,khaki:`#f0e68c`,lavender:`#e6e6fa`,lavenderblush:`#fff0f5`,lawngreen:`#7cfc00`,lemonchiffon:`#fffacd`,lightblue:`#add8e6`,lightcoral:`#f08080`,lightcyan:`#e0ffff`,lightgoldenrodyellow:`#fafad2`,lightgray:`#d3d3d3`,lightgreen:`#90ee90`,lightgrey:`#d3d3d3`,lightpink:`#ffb6c1`,lightsalmon:`#ffa07a`,lightseagreen:`#20b2aa`,lightskyblue:`#87cefa`,lightslategray:`#789`,lightslategrey:`#789`,lightsteelblue:`#b0c4de`,lightyellow:`#ffffe0`,lime:`#0f0`,limegreen:`#32cd32`,linen:`#faf0e6`,magenta:`#f0f`,maroon:`#800000`,mediumaquamarine:`#66cdaa`,mediumblue:`#0000cd`,mediumorchid:`#ba55d3`,mediumpurple:`#9370db`,mediumseagreen:`#3cb371`,mediumslateblue:`#7b68ee`,mediumspringgreen:`#00fa9a`,mediumturquoise:`#48d1cc`,mediumvioletred:`#c71585`,midnightblue:`#191970`,mintcream:`#f5fffa`,mistyrose:`#ffe4e1`,moccasin:`#ffe4b5`,navajowhite:`#ffdead`,navy:`#000080`,oldlace:`#fdf5e6`,olive:`#808000`,olivedrab:`#6b8e23`,orange:`#ffa500`,orangered:`#ff4500`,orchid:`#da70d6`,palegoldenrod:`#eee8aa`,palegreen:`#98fb98`,paleturquoise:`#afeeee`,palevioletred:`#db7093`,papayawhip:`#ffefd5`,peachpuff:`#ffdab9`,peru:`#cd853f`,pink:`#ffc0cb`,plum:`#dda0dd`,powderblue:`#b0e0e6`,purple:`#800080`,rebeccapurple:`#639`,red:`#f00`,rosybrown:`#bc8f8f`,royalblue:`#4169e1`,saddlebrown:`#8b4513`,salmon:`#fa8072`,sandybrown:`#f4a460`,seagreen:`#2e8b57`,seashell:`#fff5ee`,sienna:`#a0522d`,silver:`#c0c0c0`,skyblue:`#87ceeb`,slateblue:`#6a5acd`,slategray:`#708090`,slategrey:`#708090`,snow:`#fffafa`,springgreen:`#00ff7f`,steelblue:`#4682b4`,tan:`#d2b48c`,teal:`#008080`,thistle:`#d8bfd8`,tomato:`#ff6347`,turquoise:`#40e0d0`,violet:`#ee82ee`,wheat:`#f5deb3`,white:`#fff`,whitesmoke:`#f5f5f5`,yellow:`#ff0`,yellowgreen:`#9acd32`},Yn={"#f0ffff":`azure`,"#f5f5dc":`beige`,"#ffe4c4":`bisque`,"#a52a2a":`brown`,"#ff7f50":`coral`,"#ffd700":`gold`,"#808080":`gray`,"#008000":`green`,"#4b0082":`indigo`,"#fffff0":`ivory`,"#f0e68c":`khaki`,"#faf0e6":`linen`,"#800000":`maroon`,"#000080":`navy`,"#808000":`olive`,"#ffa500":`orange`,"#da70d6":`orchid`,"#cd853f":`peru`,"#ffc0cb":`pink`,"#dda0dd":`plum`,"#800080":`purple`,"#f00":`red`,"#ff0000":`red`,"#fa8072":`salmon`,"#a0522d":`sienna`,"#c0c0c0":`silver`,"#fffafa":`snow`,"#d2b48c":`tan`,"#008080":`teal`,"#ff6347":`tomato`,"#ee82ee":`violet`,"#f5deb3":`wheat`},Xn=/* @__PURE__ */ new Set([`color`,`fill`,`flood-color`,`lighting-color`,`stop-color`,`stroke`]),Zn={displayState:/* @__PURE__ */ new Set([`fullscreen`,`modal`,`picture-in-picture`]),input:/* @__PURE__ */ new Set([`autofill`,`blank`,`checked`,`default`,`disabled`,`enabled`,`in-range`,`indeterminate`,`invalid`,`optional`,`out-of-range`,`placeholder-shown`,`read-only`,`read-write`,`required`,`user-invalid`,`valid`]),linguistic:/* @__PURE__ */ new Set([`dir`,`lang`]),location:/* @__PURE__ */ new Set([`any-link`,`link`,`local-link`,`scope`,`target-within`,`target`,`visited`]),resourceState:/* @__PURE__ */ new Set([`playing`,`paused`]),timeDimensional:/* @__PURE__ */ new Set([`current`,`past`,`future`]),treeStructural:/* @__PURE__ */ new Set([`empty`,`first-child`,`first-of-type`,`last-child`,`last-of-type`,`nth-child`,`nth-last-child`,`nth-last-of-type`,`nth-of-type`,`only-child`,`only-of-type`,`root`]),userAction:/* @__PURE__ */ new Set([`active`,`focus-visible`,`focus-within`,`focus`,`hover`]),functional:/* @__PURE__ */ new Set([`is`,`not`,`where`,`has`])};Object.freeze({__proto__:null,attrsGroups:j,attrsGroupsDefaults:Vn,attrsGroupsDeprecated:Hn,colorsNames:Jn,colorsProps:Xn,colorsShortNames:Yn,editorNamespaces:Wn,elems:Un,elemsGroups:Rn,inheritableAttrs:Kn,pathElems:Bn,presentationNonInheritableGroupAttrs:qn,pseudoClasses:Zn,referencesProps:Gn,textElems:zn});function M(e){return e>=48&&e<=57}function Qn(e){return M(e)||e>=65&&e<=70||e>=97&&e<=102}function $n(e){return e>=65&&e<=90}function er(e){return e>=97&&e<=122}function tr(e){return $n(e)||er(e)}function nr(e){return e>=128}function rr(e){return tr(e)||nr(e)||e===95}function ir(e){return rr(e)||M(e)||e===45}function ar(e){return e>=0&&e<=8||e===11||e>=14&&e<=31||e===127}function or(e){return e===10||e===13||e===12}function sr(e){return or(e)||e===32||e===9}function cr(e,t){return!(e!==92||or(t)||t===0)}function lr(e,t,n){return e===45?rr(t)||t===45||cr(t,n):rr(e)?!0:e===92&&cr(e,t)}function ur(e,t,n){return e===43||e===45?M(t)?2:t===46&&M(n)?3:0:e===46?M(t)?2:0:+!!M(e)}function dr(e){return+(e===65279||e===65534)}const fr=Array(128);for(let e=0;e<fr.length;e++)fr[e]=sr(e)&&130||M(e)&&131||rr(e)&&132||ar(e)&&133||e||128;function pr(e){return e<128?fr[e]:132}function mr(e,t){return t<e.length?e.charCodeAt(t):0}function hr(e,t,n){return n===13&&mr(e,t+1)===10?2:1}function gr(e,t,n){let r=e.charCodeAt(t);return $n(r)&&(r|=32),r===n}function _r(e,t,n,r){if(n-t!==r.length||t<0||n>e.length)return!1;for(let i=t;i<n;i++){let n=r.charCodeAt(i-t),a=e.charCodeAt(i);if($n(a)&&(a|=32),a!==n)return!1}return!0}function vr(e,t){for(;t>=0&&sr(e.charCodeAt(t));t--);return t+1}function yr(e,t){for(;t<e.length&&sr(e.charCodeAt(t));t++);return t}function br(e,t){for(;t<e.length&&M(e.charCodeAt(t));t++);return t}function xr(e,t){if(t+=2,Qn(mr(e,t-1))){for(let n=Math.min(e.length,t+5);t<n&&Qn(mr(e,t));t++);let n=mr(e,t);sr(n)&&(t+=hr(e,t,n))}return t}function Sr(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(!ir(n)){if(cr(n,mr(e,t+1)))t=xr(e,t)-1;else break}}return t}function Cr(e,t){let n=e.charCodeAt(t);if(n!==43&&n!==45||(n=e.charCodeAt(t+=1)),M(n)&&(t=br(e,t+1),n=e.charCodeAt(t)),n===46&&M(e.charCodeAt(t+1))&&(t+=2,t=br(e,t)),gr(e,t,101)){let r=0;n=e.charCodeAt(t+1),(n===45||n===43)&&(r=1,n=e.charCodeAt(t+2)),M(n)&&(t=br(e,t+1+r+1))}return t}function wr(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(n===41){t++;break}cr(n,mr(e,t+1))&&(t=xr(e,t))}return t}function Tr(e){if(e.length===1&&!Qn(e.charCodeAt(0)))return e[0];let t=parseInt(e,16);return(t===0||t>=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)}var Er=/* @__PURE__ */ `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.comment-token`.split(`.`);function Dr(e=null,t){return e===null||e.length<t?new Uint32Array(Math.max(t+1024,16384)):e}function Or(e){let t=e.source,n=t.length,r=t.length>0?dr(t.charCodeAt(0)):0,i=Dr(e.lines,n),a=Dr(e.columns,n),o=e.startLine,s=e.startColumn;for(let e=r;e<n;e++){let r=t.charCodeAt(e);i[e]=o,a[e]=s++,(r===10||r===13||r===12)&&(r===13&&e+1<n&&t.charCodeAt(e+1)===10&&(e++,i[e]=o,a[e]=s),o++,s=1)}i[n]=o,a[n]=s,e.lines=i,e.columns=a,e.computed=!0}let kr=class{constructor(){this.lines=null,this.columns=null,this.computed=!1}setSource(e,t=0,n=1,r=1){this.source=e,this.startOffset=t,this.startLine=n,this.startColumn=r,this.computed=!1}getLocation(e,t){return this.computed||Or(this),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,t,n){return this.computed||Or(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 N=16777215,Ar=/* @__PURE__ */ new Map([[2,22],[21,22],[19,20],[23,24]]);let jr=class{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(e=``,t=(()=>{})){e=String(e||``);let n=e.length,r=Dr(this.offsetAndType,e.length+1),i=Dr(this.balance,e.length+1),a=0,o=0,s=0,c=-1;for(this.offsetAndType=null,this.balance=null,t(e,((e,t,l)=>{switch(e){default:i[a]=n;break;case o:{let e=s&N;for(s=i[e],o=s>>24,i[a]=e,i[e++]=a;e<a;e++)i[e]===n&&(i[e]=a);break}case 21:case 2:case 19:case 23:i[a]=s,o=Ar.get(e),s=o<<24|a}r[a++]=e<<24|l,c===-1&&(c=t)})),r[a]=0|n,i[a]=n,i[n]=n;s!==0;){let e=s&N;s=i[e],i[e]=n}this.source=e,this.firstCharOffset=c===-1?0:c,this.tokenCount=a,this.offsetAndType=r,this.balance=i,this.reset(),this.next()}lookupType(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e]>>24:0}lookupTypeNonSC(e){for(let t=this.tokenIndex;t<this.tokenCount;t++){let n=this.offsetAndType[t]>>24;if(n!==13&&n!==25&&e--===0)return n}return 0}lookupOffset(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e-1]&N:this.source.length}lookupOffsetNonSC(e){for(let t=this.tokenIndex;t<this.tokenCount;t++){let n=this.offsetAndType[t]>>24;if(n!==13&&n!==25&&e--===0)return t-this.tokenIndex}return 0}lookupValue(e,t){return e+=this.tokenIndex,e<this.tokenCount&&_r(this.source,this.offsetAndType[e-1]&N,this.offsetAndType[e]&N,t)}getTokenStart(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&N:this.offsetAndType[this.tokenCount]&N:this.firstCharOffset}substrToCursor(e){return this.source.substring(e,this.tokenStart)}isBalanceEdge(e){return this.balance[this.tokenIndex]<e}isDelim(e,t){return t?this.lookupType(t)===9&&this.source.charCodeAt(this.lookupOffset(t))===e:this.tokenType===9&&this.source.charCodeAt(this.tokenStart)===e}skip(e){let t=this.tokenIndex+e;t<this.tokenCount?(this.tokenIndex=t,this.tokenStart=this.offsetAndType[t-1]&N,t=this.offsetAndType[t],this.tokenType=t>>24,this.tokenEnd=t&N):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e<this.tokenCount?(this.tokenIndex=e,this.tokenStart=this.tokenEnd,e=this.offsetAndType[e],this.tokenType=e>>24,this.tokenEnd=e&N):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=0,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===13||this.tokenType===25;)this.next()}skipUntilBalanced(e,t){let n=e,r,i;loop:for(;n<this.tokenCount;n++){if(r=this.balance[n],r<e)break loop;switch(i=n>0?this.offsetAndType[n-1]&N:this.firstCharOffset,t(this.source.charCodeAt(i))){case 1:break loop;case 2:n++;break loop;default:this.balance[r]===n&&(n=r)}}this.skip(n-this.tokenIndex)}forEachToken(e){for(let t=0,n=this.firstCharOffset;t<this.tokenCount;t++){let r=n,i=this.offsetAndType[t],a=i&N,o=i>>24;n=a,e(o,r,a,t)}}dump(){let e=Array(this.tokenCount);return this.forEachToken(((t,n,r,i)=>{e[i]={idx:i,type:Er[t],chunk:this.source.substring(n,r),balance:this.balance[i]}})),e}};function Mr(e,t){function n(t){return t<s?e.charCodeAt(t):0}function r(){l=Cr(e,l),lr(n(l),n(l+1),n(l+2))?(u=12,l=Sr(e,l)):n(l)===37?(u=11,l++):u=10}function i(){let t=l;if(l=Sr(e,l),_r(e,t,l,`url`)&&n(l)===40){if(l=yr(e,l+1),n(l)===34||n(l)===39){u=2,l=t+4;return}o()}else n(l)===40?(u=2,l++):u=1}function a(t){for(t||=n(l++),u=5;l<e.length;l++){let r=e.charCodeAt(l);switch(pr(r)){case t:l++;return;case 130:if(or(r)){l+=hr(e,l,r),u=6;return}break;case 92:if(l===e.length-1)break;let i=n(l+1);or(i)?l+=hr(e,l+1,i):cr(r,i)&&(l=xr(e,l)-1)}}}function o(){for(u=7,l=yr(e,l);l<e.length;l++){let t=e.charCodeAt(l);switch(pr(t)){case 41:l++;return;case 130:if(l=yr(e,l),n(l)===41||l>=e.length){l<e.length&&l++;return}l=wr(e,l),u=8;return;case 34:case 39:case 40:case 133:l=wr(e,l),u=8;return;case 92:if(cr(t,n(l+1))){l=xr(e,l)-1;break}l=wr(e,l),u=8;return}}}e=String(e||``);let s=e.length,c=dr(n(0)),l=c,u;for(;l<s;){let o=e.charCodeAt(l);switch(pr(o)){case 130:u=13,l=yr(e,l+1);break;case 34:a();break;case 35:ir(n(l+1))||cr(n(l+1),n(l+2))?(u=4,l=Sr(e,l+1)):(u=9,l++);break;case 39:a();break;case 40:u=21,l++;break;case 41:u=22,l++;break;case 43:ur(o,n(l+1),n(l+2))?r():(u=9,l++);break;case 44:u=18,l++;break;case 45:ur(o,n(l+1),n(l+2))?r():n(l+1)===45&&n(l+2)===62?(u=15,l+=3):lr(o,n(l+1),n(l+2))?i():(u=9,l++);break;case 46:ur(o,n(l+1),n(l+2))?r():(u=9,l++);break;case 47:n(l+1)===42?(u=25,l=e.indexOf(`*/`,l+2),l=l===-1?e.length:l+2):(u=9,l++);break;case 58:u=16,l++;break;case 59:u=17,l++;break;case 60:n(l+1)===33&&n(l+2)===45&&n(l+3)===45?(u=14,l+=4):(u=9,l++);break;case 64:lr(n(l+1),n(l+2),n(l+3))?(u=3,l=Sr(e,l+1)):(u=9,l++);break;case 91:u=19,l++;break;case 92:cr(o,n(l+1))?i():(u=9,l++);break;case 93:u=20,l++;break;case 123:u=23,l++;break;case 125:u=24,l++;break;case 131:r();break;case 132:i();break;default:u=9,l++}t(u,c,c=l)}}let Nr=null,Pr=class e{static createItem(e){return{prev:null,next:null,data:e}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(t){return e.createItem(t)}allocateCursor(e,t){let n;return Nr===null?n={prev:e,next:t,cursor:this.cursor}:(n=Nr,Nr=Nr.cursor,n.prev=e,n.next=t,n.cursor=this.cursor),this.cursor=n,n}releaseCursor(){let{cursor:e}=this;this.cursor=e.cursor,e.prev=null,e.next=null,e.cursor=Nr,Nr=e}updateCursors(e,t,n,r){let{cursor:i}=this;for(;i!==null;)i.prev===e&&(i.prev=t),i.next===n&&(i.next=r),i=i.cursor}*[Symbol.iterator](){for(let e=this.head;e!==null;e=e.next)yield e.data}get size(){let e=0;for(let t=this.head;t!==null;t=t.next)e++;return e}get isEmpty(){return this.head===null}get first(){return this.head&&this.head.data}get last(){return this.tail&&this.tail.data}fromArray(t){let n=null;this.head=null;for(let r of t){let t=e.createItem(r);n===null?this.head=t:n.next=t,t.prev=n,n=t}return this.tail=n,this}toArray(){return[...this]}toJSON(){return[...this]}forEach(e,t=this){let n=this.allocateCursor(null,this.head);for(;n.next!==null;){let r=n.next;n.next=r.next,e.call(t,r.data,r,this)}this.releaseCursor()}forEachRight(e,t=this){let n=this.allocateCursor(this.tail,null);for(;n.prev!==null;){let r=n.prev;n.prev=r.prev,e.call(t,r.data,r,this)}this.releaseCursor()}reduce(e,t,n=this){let r=this.allocateCursor(null,this.head),i=t,a;for(;r.next!==null;)a=r.next,r.next=a.next,i=e.call(n,i,a.data,a,this);return this.releaseCursor(),i}reduceRight(e,t,n=this){let r=this.allocateCursor(this.tail,null),i=t,a;for(;r.prev!==null;)a=r.prev,r.prev=a.prev,i=e.call(n,i,a.data,a,this);return this.releaseCursor(),i}some(e,t=this){for(let n=this.head;n!==null;n=n.next)if(e.call(t,n.data,n,this))return!0;return!1}map(t,n=this){let r=new e;for(let e=this.head;e!==null;e=e.next)r.appendData(t.call(n,e.data,e,this));return r}filter(t,n=this){let r=new e;for(let e=this.head;e!==null;e=e.next)t.call(n,e.data,e,this)&&r.appendData(e.data);return r}nextUntil(e,t,n=this){if(e===null)return;let r=this.allocateCursor(null,e);for(;r.next!==null;){let e=r.next;if(r.next=e.next,t.call(n,e.data,e,this))break}this.releaseCursor()}prevUntil(e,t,n=this){if(e===null)return;let r=this.allocateCursor(e,null);for(;r.prev!==null;){let 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(){let t=new e;for(let e of this)t.appendData(e);return t}prepend(e){return this.updateCursors(null,e,this.head,e),this.head===null?this.tail=e:(this.head.prev=e,e.next=this.head),this.head=e,this}prependData(t){return this.prepend(e.createItem(t))}append(e){return this.insert(e)}appendData(t){return this.insert(e.createItem(t))}insert(e,t=null){if(t!==null){if(this.updateCursors(t.prev,e,t,e),t.prev===null){if(this.head!==t)throw 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),this.tail===null?this.head=e:(this.tail.next=e,e.prev=this.tail),this.tail=e;return this}insertData(t,n){return this.insert(e.createItem(t),n)}remove(e){if(this.updateCursors(e,e.prev,e,e.next),e.prev!==null)e.prev.next=e.next;else{if(this.head!==e)throw Error(`item doesn't belong to list`);this.head=e.next}if(e.next!==null)e.next.prev=e.prev;else{if(this.tail!==e)throw Error(`item doesn't belong to list`);this.tail=e.prev}return e.prev=null,e.next=null,e}push(t){this.insert(e.createItem(t))}pop(){return this.tail===null?null:this.remove(this.tail)}unshift(t){this.prepend(e.createItem(t))}shift(){return this.head===null?null:this.remove(this.head)}prependList(e){return this.insertList(e,this.head)}appendList(e){return this.insertList(e)}insertList(e,t){return e.head===null||(t==null?(this.updateCursors(this.tail,e.tail,null,e.head),this.tail===null?this.head=e.head:(this.tail.next=e.head,e.head.prev=this.tail),this.tail=e.tail):(this.updateCursors(t.prev,e.tail,t,e.head),t.prev===null?this.head=e.head:(t.prev.next=e.head,e.head.prev=t.prev),t.prev=e.tail,e.tail.next=t),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 Fr(e,t){let n=Object.create(SyntaxError.prototype),r=/* @__PURE__ */ Error();return Object.assign(n,{name:e,message:t,get stack(){return(r.stack||``).replace(/^(.+\n){1,3}/,`${e}: ${t}\n`)}})}function Ir({source:e,line:t,column:n,baseLine:r,baseColumn:i},a){function o(e,t){return s.slice(e,t).map(((t,n)=>String(e+n+1).padStart(u)+` |`+t)).join(`
7
+ `)}let s=(`
8
+ `.repeat(Math.max(r-1,0))+` `.repeat(Math.max(i-1,0))+e).split(/\r\n?|\n|\f/),c=Math.max(1,t-a)-1,l=Math.min(t+a,s.length+1),u=Math.max(4,String(l).length)+1,d=0;n+=3*(s[t-1].substr(0,n-1).match(/\t/g)||[]).length,n>100&&(d=n-60+3,n=58);for(let e=c;e<=l;e++)e>=0&&e<s.length&&(s[e]=s[e].replace(/\t/g,` `),s[e]=(d>0&&s[e].length>d?`…`:``)+s[e].substr(d,98)+(s[e].length>d+100-1?`…`:``));return[o(c,t),Array(n+u+2).join(`-`)+`^`,o(t,l)].filter(Boolean).join(`
9
+ `).replace(/^(\s+\d+\s+\|\n)+/,``).replace(/\n(\s+\d+\s+\|)+$/,``)}function Lr(e,t,n,r,i,a=1,o=1){return Object.assign(Fr(`SyntaxError`,e),{source:t,offset:n,line:r,column:i,sourceFragment:e=>Ir({source:t,line:r,column:i,baseLine:a,baseColumn:o},isNaN(e)?0:e),get formattedMessage(){return`Parse error: ${e}\n`+Ir({source:t,line:r,column:i,baseLine:a,baseColumn:o},2)}})}function Rr(e){let t=this.createList(),n=!1,r={recognizer:e};for(;!this.eof;){switch(this.tokenType){case 25:this.next();continue;case 13:n=!0,this.next();continue}let i=e.getNode.call(this,r);if(i===void 0)break;n&&=(e.onWhiteSpace&&e.onWhiteSpace.call(this,i,t,r),!1),t.push(i)}return n&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,r),t}const zr=()=>{};function Br(e){return function(){return this[e]()}}function Vr(e){let t=Object.create(null);for(let n of Object.keys(e)){let r=e[n],i=r.parse||r;i&&(t[n]=i)}return t}function Hr(e){let t={context:Object.create(null),features:Object.assign(Object.create(null),e.features),scope:Object.assign(Object.create(null),e.scope),atrule:Vr(e.atrule),pseudo:Vr(e.pseudo),node:Vr(e.node)};for(let[n,r]of Object.entries(e.parseContext))switch(typeof r){case`function`:t.context[n]=r;break;case`string`:t.context[n]=Br(r)}return{config:t,...t,...t.node}}function Ur(e){let t=``,n=`<unknown>`,r=!1,i=zr,a=!1,o=new kr,s=Object.assign(new jr,Hr(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:Rr,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket:e=>+(e===123),consumeUntilLeftCurlyBracketOrSemicolon:e=>+(e===123||e===59),consumeUntilExclamationMarkOrSemicolon:e=>+(e===33||e===59),consumeUntilSemicolonIncluded:e=>e===59?2:0,createList:()=>new Pr,createSingleNodeList:e=>new Pr().appendData(e),getFirstListNode:e=>e&&e.first,getLastListNode:e=>e&&e.last,parseWithFallback(e,t){let n=this.tokenIndex;try{return e.call(this)}catch(e){if(a)throw e;this.skip(n-this.tokenIndex);let r=t.call(this);return a=!0,i(e,r),a=!1,r}},lookupNonWSType(e){let t;do if(t=this.lookupType(e++),t!==13&&t!==25)return t;while(t!==0);return 0},charCodeAt:e=>e>=0&&e<t.length?t.charCodeAt(e):0,substring:(e,n)=>t.substring(e,n),substrToCursor(e){return this.source.substring(e,this.tokenStart)},cmpChar:(e,n)=>gr(t,e,n),cmpStr:(e,n,r)=>_r(t,e,n,r),consume(e){let t=this.tokenStart;return this.eat(e),this.substrToCursor(t)},consumeFunctionName(){let e=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(2),e},consumeNumber(e){let n=t.substring(this.tokenStart,Cr(t,this.tokenStart));return this.eat(e),n},eat(e){if(this.tokenType!==e){let t=Er[e].slice(0,-6).replace(/-/g,` `).replace(/^./,(e=>e.toUpperCase())),n=`${/[[\](){}]/.test(t)?`"${t}"`:t} is expected`,r=this.tokenStart;switch(e){case 1:this.tokenType===2||this.tokenType===7?(r=this.tokenEnd-1,n=`Identifier is expected but function found`):n=`Identifier is expected`;break;case 4:this.isDelim(35)&&(this.next(),r++,n=`Name is expected`);break;case 11:this.tokenType===10&&(r=this.tokenEnd,n=`Percent sign is expected`)}this.error(n,r)}this.next()},eatIdent(e){this.tokenType===1&&this.lookupValue(0,e)!==!1||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){return r?o.getLocationRange(e,t,n):null},getLocationFromList(e){if(r){let t=this.getFirstListNode(e),r=this.getLastListNode(e);return o.getLocationRange(t===null?this.tokenStart:t.loc.start.offset-o.startOffset,r===null?this.tokenStart:r.loc.end.offset-o.startOffset,n)}return null},error(e,n){let r=n!==void 0&&n<t.length?o.getLocation(n):this.eof?o.getLocation(vr(t,t.length-1)):o.getLocation(this.tokenStart);throw new Lr(e||`Unexpected input`,t,r.offset,r.line,r.column,o.startLine,o.startColumn)}});return Object.assign(function(e,c){t=e,c||={},s.setSource(t,Mr),o.setSource(t,c.offset,c.line,c.column),n=c.filename||`<unknown>`,r=!!c.positions,i=typeof c.onParseError==`function`?c.onParseError:zr,a=!1,s.parseAtrulePrelude=!(`parseAtrulePrelude`in c)||!!c.parseAtrulePrelude,s.parseRulePrelude=!(`parseRulePrelude`in c)||!!c.parseRulePrelude,s.parseValue=!(`parseValue`in c)||!!c.parseValue,s.parseCustomProperty=`parseCustomProperty`in c&&!!c.parseCustomProperty;let{context:l=`default`,onComment:u}=c;if(!(l in s.context))throw Error("Unknown context `"+l+"`");typeof u==`function`&&s.forEachToken(((e,n,r)=>{if(e===25){let e=s.getLocation(n,r),i=_r(t,r-2,r,`*/`)?t.slice(n+2,r-2):t.slice(n+2,r);u(i,e)}}));let d=s.context[l].call(s,c);return s.eof||s.error(),d},{SyntaxError:Lr,config:s.config})}var Wr={},Gr={},Kr=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``);Gr.encode=function(e){if(0<=e&&e<Kr.length)return Kr[e];throw TypeError(`Must be between 0 and 63: `+e)},Gr.decode=function(e){var t=65,n=90,r=97,i=122,a=48;return t<=e&&e<=n?e-t:r<=e&&e<=i?e-r+26:a<=e&&e<=57?e-a+52:e==43?62:e==47?63:-1};var qr=Gr,Jr=5,Yr=1<<Jr,Xr=Yr-1,Zr=Yr;function Qr(e){return e<0?1+(-e<<1):0+(e<<1)}function $r(e){var t=(e&1)==1,n=e>>1;return t?-n:n}Wr.encode=function(e){var t=``,n,r=Qr(e);do n=r&Xr,r>>>=Jr,r>0&&(n|=Zr),t+=qr.encode(n);while(r>0);return t},Wr.decode=function(e,t,n){var r=e.length,i=0,a=0,o,s;do{if(t>=r)throw Error(`Expected more digits in base 64 VLQ value.`);if(s=qr.decode(e.charCodeAt(t++)),s===-1)throw Error(`Invalid base64 digit: `+e.charAt(t-1));o=!!(s&Zr),s&=Xr,i+=s<<a,a+=Jr}while(o);n.value=$r(i),n.rest=t};var ei={};(function(e){function t(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw Error(`"`+t+`" is a required argument.`)}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}e.urlParse=i;function a(e){var t=``;return e.scheme&&(t+=e.scheme+`:`),t+=`//`,e.auth&&(t+=e.auth+`@`),e.host&&(t+=e.host),e.port&&(t+=`:`+e.port),e.path&&(t+=e.path),t}e.urlGenerate=a;var o=32;function s(e){var t=[];return function(n){for(var r=0;r<t.length;r++)if(t[r].input===n){var i=t[0];return t[0]=t[r],t[r]=i,t[0].result}var a=e(n);return t.unshift({input:n,result:a}),t.length>o&&t.pop(),a}}var c=s((function(t){var n=t,r=i(t);if(r){if(!r.path)return t;n=r.path}for(var o=e.isAbsolute(n),s=[],c=0,l=0;;){if(c=l,l=n.indexOf(`/`,c),l===-1){s.push(n.slice(c));break}for(s.push(n.slice(c,l));l<n.length&&n[l]===`/`;)l++}for(var u,d=0,l=s.length-1;l>=0;l--)u=s[l],u===`.`?s.splice(l,1):u===`..`?d++:d>0&&(u===``?(s.splice(l+1,d),d=0):(s.splice(l,2),d--));return n=s.join(`/`),n===``&&(n=o?`/`:`.`),r?(r.path=n,a(r)):n}));e.normalize=c;function l(e,t){e===``&&(e=`.`),t===``&&(t=`.`);var n=i(t),o=i(e);if(o&&(e=o.path||`/`),n&&!n.scheme)return o&&(n.scheme=o.scheme),a(n);if(n||t.match(r))return t;if(o&&!o.host&&!o.path)return o.host=t,a(o);var s=t.charAt(0)===`/`?t:c(e.replace(/\/+$/,``)+`/`+t);return o?(o.path=s,a(o)):s}e.join=l,e.isAbsolute=function(e){return e.charAt(0)===`/`||n.test(e)};function u(e,t){e===``&&(e=`.`),e=e.replace(/\/$/,``);for(var n=0;t.indexOf(e+`/`)!==0;){var r=e.lastIndexOf(`/`);if(r<0||(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/)))return t;++n}return Array(n+1).join(`../`)+t.substr(e.length+1)}e.relative=u;var d=function(){return!(`__proto__`in Object.create(null))}();function f(e){return e}function p(e){return h(e)?`$`+e:e}e.toSetString=d?f:p;function m(e){return h(e)?e.slice(1):e}e.fromSetString=d?f:m;function h(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var n=t-10;n>=0;n--)if(e.charCodeAt(n)!==36)return!1;return!0}function g(e,t,n){var r=b(e.source,t.source);return r!==0||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:b(e.name,t.name)}e.compareByOriginalPositions=g;function _(e,t,n){var r=e.originalLine-t.originalLine;return r!==0||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:b(e.name,t.name)}e.compareByOriginalPositionsNoSource=_;function v(e,t,n){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||n)||(r=b(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:b(e.name,t.name)}e.compareByGeneratedPositionsDeflated=v;function y(e,t,n){var r=e.generatedColumn-t.generatedColumn;return r!==0||n||(r=b(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:b(e.name,t.name)}e.compareByGeneratedPositionsDeflatedNoLine=y;function b(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function x(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=b(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:b(e.name,t.name)}e.compareByGeneratedPositionsInflated=x;function S(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,``))}e.parseSourceMapInput=S;function C(e,t,n){if(t||=``,e&&(e[e.length-1]!==`/`&&t[0]!==`/`&&(e+=`/`),t=e+t),n){var r=i(n);if(!r)throw Error(`sourceMapURL could not be parsed`);if(r.path){var o=r.path.lastIndexOf(`/`);o>=0&&(r.path=r.path.substring(0,o+1))}t=l(a(r),t)}return c(t)}e.computeSourceURL=C})(ei);var ti={},ni=ei,ri=Object.prototype.hasOwnProperty,ii=typeof Map<`u`;function ai(){this._array=[],this._set=ii?/* @__PURE__ */ new Map:Object.create(null)}ai.fromArray=function(e,t){for(var n=new ai,r=0,i=e.length;r<i;r++)n.add(e[r],t);return n},ai.prototype.size=function(){return ii?this._set.size:Object.getOwnPropertyNames(this._set).length},ai.prototype.add=function(e,t){var n=ii?e:ni.toSetString(e),r=ii?this.has(e):ri.call(this._set,n),i=this._array.length;r&&!t||this._array.push(e),r||(ii?this._set.set(e,i):this._set[n]=i)},ai.prototype.has=function(e){if(ii)return this._set.has(e);var t=ni.toSetString(e);return ri.call(this._set,t)},ai.prototype.indexOf=function(e){if(ii){var t=this._set.get(e);if(t>=0)return t}else{var n=ni.toSetString(e);if(ri.call(this._set,n))return this._set[n]}throw Error(`"`+e+`" is not in the set.`)},ai.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw Error(`No element indexed by `+e)},ai.prototype.toArray=function(){return this._array.slice()},ti.ArraySet=ai;var oi={},si=ei;function ci(e,t){var n=e.generatedLine,r=t.generatedLine,i=e.generatedColumn,a=t.generatedColumn;return r>n||r==n&&a>=i||si.compareByGeneratedPositionsInflated(e,t)<=0}function li(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}li.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},li.prototype.add=function(e){ci(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},li.prototype.toArray=function(){return this._sorted||=(this._array.sort(si.compareByGeneratedPositionsInflated),!0),this._array},oi.MappingList=li;var ui=Wr,P=ei,di=ti.ArraySet,fi=oi.MappingList;function F(e){e||={},this._file=P.getArg(e,`file`,null),this._sourceRoot=P.getArg(e,`sourceRoot`,null),this._skipValidation=P.getArg(e,`skipValidation`,!1),this._ignoreInvalidMapping=P.getArg(e,`ignoreInvalidMapping`,!1),this._sources=new di,this._names=new di,this._mappings=new fi,this._sourcesContents=null}F.prototype._version=3,F.fromSourceMap=function(e,t){var n=e.sourceRoot,r=new F(Object.assign(t||{},{file:e.file,sourceRoot:n}));return e.eachMapping((function(e){var t={generated:{line:e.generatedLine,column:e.generatedColumn}};e.source!=null&&(t.source=e.source,n!=null&&(t.source=P.relative(n,t.source)),t.original={line:e.originalLine,column:e.originalColumn},e.name!=null&&(t.name=e.name)),r.addMapping(t)})),e.sources.forEach((function(t){var i=t;n!==null&&(i=P.relative(n,t)),r._sources.has(i)||r._sources.add(i);var a=e.sourceContentFor(t);a!=null&&r.setSourceContent(t,a)})),r},F.prototype.addMapping=function(e){var t=P.getArg(e,`generated`),n=P.getArg(e,`original`,null),r=P.getArg(e,`source`,null),i=P.getArg(e,`name`,null);(this._skipValidation||this._validateMapping(t,n,r,i)!==!1)&&(r!=null&&(r=String(r),this._sources.has(r)||this._sources.add(r)),i!=null&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:r,name:i}))},F.prototype.setSourceContent=function(e,t){var n=e;this._sourceRoot!=null&&(n=P.relative(this._sourceRoot,n)),t==null?this._sourcesContents&&(delete this._sourcesContents[P.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null)):(this._sourcesContents||=Object.create(null),this._sourcesContents[P.toSetString(n)]=t)},F.prototype.applySourceMap=function(e,t,n){var r=t;if(t==null){if(e.file==null)throw Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);r=e.file}var i=this._sourceRoot;i!=null&&(r=P.relative(i,r));var a=new di,o=new di;this._mappings.unsortedForEach((function(t){if(t.source===r&&t.originalLine!=null){var s=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});s.source!=null&&(t.source=s.source,n!=null&&(t.source=P.join(n,t.source)),i!=null&&(t.source=P.relative(i,t.source)),t.originalLine=s.line,t.originalColumn=s.column,s.name!=null&&(t.name=s.name))}var c=t.source;c==null||a.has(c)||a.add(c);var l=t.name;l==null||o.has(l)||o.add(l)}),this),this._sources=a,this._names=o,e.sources.forEach((function(t){var r=e.sourceContentFor(t);r!=null&&(n!=null&&(t=P.join(n,t)),i!=null&&(t=P.relative(i,t)),this.setSourceContent(t,r))}),this)},F.prototype._validateMapping=function(e,t,n,r){if(t&&typeof t.line!=`number`&&typeof t.column!=`number`){var i=`original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.`;if(this._ignoreInvalidMapping)return typeof console<`u`&&console.warn&&console.warn(i),!1;throw Error(i)}if(!(e&&`line`in e&&`column`in e&&e.line>0&&e.column>=0&&!t&&!n&&!r)&&!(e&&`line`in e&&`column`in e&&t&&`line`in t&&`column`in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n)){var i=`Invalid mapping: `+JSON.stringify({generated:e,source:n,original:t,name:r});if(this._ignoreInvalidMapping)return typeof console<`u`&&console.warn&&console.warn(i),!1;throw Error(i)}},F.prototype._serializeMappings=function(){for(var e=0,t=1,n=0,r=0,i=0,a=0,o=``,s,c,l,u,d=this._mappings.toArray(),f=0,p=d.length;f<p;f++){if(c=d[f],s=``,c.generatedLine!==t)for(e=0;c.generatedLine!==t;)s+=`;`,t++;else if(f>0){if(!P.compareByGeneratedPositionsInflated(c,d[f-1]))continue;s+=`,`}s+=ui.encode(c.generatedColumn-e),e=c.generatedColumn,c.source!=null&&(u=this._sources.indexOf(c.source),s+=ui.encode(u-a),a=u,s+=ui.encode(c.originalLine-1-r),r=c.originalLine-1,s+=ui.encode(c.originalColumn-n),n=c.originalColumn,c.name!=null&&(l=this._names.indexOf(c.name),s+=ui.encode(l-i),i=l)),o+=s}return o},F.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;t!=null&&(e=P.relative(t,e));var n=P.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},F.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},F.prototype.toString=function(){return JSON.stringify(this.toJSON())};var pi=F;const mi=/* @__PURE__ */ new Set([`Atrule`,`Selector`,`Declaration`]);function hi(e){let t=new pi,n={line:1,column:0},r={line:0,column:0},i={line:1,column:0},a={generated:i},o=1,s=0,c=!1,l=e.node;e.node=function(e){if(e.loc&&e.loc.start&&mi.has(e.type)){let l=e.loc.start.line,u=e.loc.start.column-1;(r.line!==l||r.column!==u)&&(r.line=l,r.column=u,n.line=o,n.column=s,c&&(c=!1,n.line===i.line&&n.column===i.column||t.addMapping(a)),c=!0,t.addMapping({source:e.loc.source,original:r,generated:n}))}l.call(this,e),c&&mi.has(e.type)&&(i.line=o,i.column=s)};let u=e.emit;e.emit=function(e,t,n){for(let t=0;t<e.length;t++)e.charCodeAt(t)===10?(o++,s=0):s++;u(e,t,n)};let d=e.result;return e.result=function(){return c&&t.addMapping(a),{css:d(),map:t}},e}const gi=(e,t)=>{if(e===9&&(e=t),typeof e==`string`){let t=e.charCodeAt(0);return t>127?32768:t<<8}return e},_i=[[1,1],[1,2],[1,7],[1,8],[1,`-`],[1,10],[1,11],[1,12],[1,15],[1,21],[3,1],[3,2],[3,7],[3,8],[3,`-`],[3,10],[3,11],[3,12],[3,15],[4,1],[4,2],[4,7],[4,8],[4,`-`],[4,10],[4,11],[4,12],[4,15],[12,1],[12,2],[12,7],[12,8],[12,`-`],[12,10],[12,11],[12,12],[12,15],[`#`,1],[`#`,2],[`#`,7],[`#`,8],[`#`,`-`],[`#`,10],[`#`,11],[`#`,12],[`#`,15],[`-`,1],[`-`,2],[`-`,7],[`-`,8],[`-`,`-`],[`-`,10],[`-`,11],[`-`,12],[`-`,15],[10,1],[10,2],[10,7],[10,8],[10,10],[10,11],[10,12],[10,`%`],[10,15],[`@`,1],[`@`,2],[`@`,7],[`@`,8],[`@`,`-`],[`@`,15],[`.`,10],[`.`,11],[`.`,12],[`+`,10],[`+`,11],[`+`,12],[`/`,`*`]],vi=_i.concat([[1,4],[12,4],[4,4],[3,21],[3,5],[3,16],[11,11],[11,12],[11,2],[11,`-`],[22,1],[22,2],[22,11],[22,12],[22,4],[22,`-`]]);function yi(e){let t=new Set(e.map((([e,t])=>gi(e)<<16|gi(t))));return function(e,n,r){let i=gi(n,r),a=r.charCodeAt(0);return(a===45&&n!==1&&n!==2&&n!==15||a===43?t.has(e<<16|a<<8):t.has(e<<16|i))&&this.emit(` `,13,!0),i}}const bi=yi(_i),xi=yi(vi);var Si=Object.freeze({__proto__:null,safe:xi,spec:bi});function Ci(e,t){if(typeof t==`function`){let n=null;e.children.forEach((e=>{n!==null&&t.call(this,n),this.node(e),n=e}))}else e.children.forEach(this.node,this)}function wi(e){Mr(e,((t,n,r)=>{this.token(t,e.slice(n,r))}))}function Ti(e){let t=/* @__PURE__ */ new Map;for(let[n,r]of Object.entries(e.node))typeof(r.generate||r)==`function`&&t.set(n,r.generate||r);return function(e,n){let r=``,i=0,a={node(e){if(!t.has(e.type))throw Error(`Unknown node type: `+e.type);t.get(e.type).call(o,e)},tokenBefore:xi,token(e,t){i=this.tokenBefore(i,e,t),this.emit(t,e,!1),e===9&&t.charCodeAt(0)===92&&this.emit(`
10
+ `,13,!0)},emit(e){r+=e},result:()=>r};n&&(typeof n.decorator==`function`&&(a=n.decorator(a)),n.sourceMap&&(a=hi(a)),n.mode in Si&&(a.tokenBefore=Si[n.mode]));let o={node:e=>a.node(e),children:Ci,token:(e,t)=>a.token(e,t),tokenize:wi};return a.node(e),a.result()}}function Ei(e){return{fromPlainObject(t){return e(t,{enter(e){e.children&&!(e.children instanceof Pr)&&(e.children=new Pr().fromArray(e.children))}}),t},toPlainObject(t){return e(t,{leave(e){e.children&&e.children instanceof Pr&&(e.children=e.children.toArray())}}),t}}}const{hasOwnProperty:Di}=Object.prototype,Oi=function(){};function ki(e){return typeof e==`function`?e:Oi}function Ai(e,t){return function(n,r,i){n.type===t&&e.call(this,n,r,i)}}function ji(e,t){let n=t.structure,r=[];for(let e in n){if(Di.call(n,e)===!1)continue;let t=n[e],i={name:e,type:!1,nullable:!1};Array.isArray(t)||(t=[t]);for(let e of t)e===null?i.nullable=!0:typeof e==`string`?i.type=`node`:Array.isArray(e)&&(i.type=`list`);i.type&&r.push(i)}return r.length?{context:t.walkContext,fields:r}:null}function Mi(e){let t={};for(let n in e.node)if(Di.call(e.node,n)){let r=e.node[n];if(!r.structure)throw Error("Missed `structure` field in `"+n+"` node type definition");t[n]=ji(n,r)}return t}function Ni(e,t){let n=e.fields.slice(),r=e.context,i=typeof r==`string`;return t&&n.reverse(),function(e,a,o,s){let c;i&&(c=a[r],a[r]=e);for(let r of n){let n=e[r.name];if(!r.nullable||n){if(r.type===`list`){if(t?n.reduceRight(s,!1):n.reduce(s,!1))return!0}else if(o(n))return!0}}i&&(a[r]=c)}}function Pi({StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:i}){return{Atrule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Rule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Declaration:{StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:i}}}function Fi(e){let t=Mi(e),n={},r={},i=Symbol(`break-walk`),a=Symbol(`skip-node`);for(let e in t)Di.call(t,e)&&t[e]!==null&&(n[e]=Ni(t[e],!1),r[e]=Ni(t[e],!0));let o=Pi(n),s=Pi(r),c=function(e,c){function l(e,t,n){let r=u.call(m,e,t,n);return r===i||r!==a&&!!(f.hasOwnProperty(e.type)&&f[e.type](e,m,l,p)||d.call(m,e,t,n)===i)}let u=Oi,d=Oi,f=n,p=(e,t,n,r)=>e||l(t,n,r),m={break:i,skip:a,root:e,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof c==`function`)u=c;else if(c&&(u=ki(c.enter),d=ki(c.leave),c.reverse&&(f=r),c.visit)){if(o.hasOwnProperty(c.visit))f=c.reverse?s[c.visit]:o[c.visit];else if(!t.hasOwnProperty(c.visit))throw Error("Bad value `"+c.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(`, `)+`)`);u=Ai(u,c.visit),d=Ai(d,c.visit)}if(u===Oi&&d===Oi)throw Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");l(e)};return c.break=i,c.skip=a,c.find=function(e,t){let n=null;return c(e,(function(e,r,a){if(t.call(this,e,r,a))return n=e,i})),n},c.findLast=function(e,t){let n=null;return c(e,{reverse:!0,enter(e,r,a){if(t.call(this,e,r,a))return n=e,i}}),n},c.findAll=function(e,t){let n=[];return c(e,(function(e,r,i){t.call(this,e,r,i)&&n.push(e)})),n},c}function Ii(e){return e}function Li(e){let{min:t,max:n,comma:r}=e;return t===0&&n===0?r?`#?`:`*`:t===0&&n===1?`?`:t===1&&n===0?r?`#`:`+`:t===1&&n===1?``:(r?`#`:``)+(t===n?`{`+t+`}`:`{`+t+`,`+(n===0?``:n)+`}`)}function Ri(e){switch(e.type){case`Range`:return` [`+(e.min===null?`-∞`:e.min)+`,`+(e.max===null?`∞`:e.max)+`]`;default:throw Error("Unknown node type `"+e.type+"`")}}function zi(e,t,n,r){let i=e.combinator===` `||r?e.combinator:` `+e.combinator+` `,a=e.terms.map((e=>Bi(e,t,n,r))).join(i);return e.explicit||n?(r||a[0]===`,`?`[`:`[ `)+a+(r?`]`:` ]`):a}function Bi(e,t,n,r){let i;switch(e.type){case`Group`:i=zi(e,t,n,r)+(e.disallowEmpty?`!`:``);break;case`Multiplier`:return Bi(e.term,t,n,r)+t(Li(e),e);case`Type`:i=`<`+e.name+(e.opts?t(Ri(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 Error("Unknown node type `"+e.type+"`")}return t(i,e)}function Vi(e,t){let n=Ii,r=!1,i=!1;return typeof t==`function`?n=t:t&&(r=!!t.forceBraces,i=!!t.compact,typeof t.decorate==`function`&&(n=t.decorate)),Bi(e,n,r,i)}const Hi={offset:0,line:1,column:1};function Ui(e,t){let n=e.tokens,r=e.longestMatch,i=r<n.length&&n[r].node||null,a=i===t?null:i,o=0,s=0,c=0,l=``,u,d;for(let e=0;e<n.length;e++){let t=n[e].value;e===r&&(s=t.length,o=l.length),a!==null&&n[e].node===a&&(e<=r?c++:c=0),l+=t}return r===n.length||c>1?(u=Wi(a||t,`end`)||Gi(Hi,l),d=Gi(u)):(u=Wi(a,`start`)||Gi(Wi(t,`start`)||Hi,l.slice(0,o)),d=Wi(a,`end`)||Gi(u,l.substr(o,s))),{css:l,mismatchOffset:o,mismatchLength:s,start:u,end:d}}function Wi(e,t){let n=e&&e.loc&&e.loc[t];return n?`line`in n?Gi(n):n:null}function Gi({offset:e,line:t,column:n},r){let i={offset:e,line:t,column:n};if(r){let e=r.split(/\n|\r\n?|\f/);i.offset+=r.length,i.line+=e.length-1,i.column=e.length===1?i.column+r.length:e.pop().length+1}return i}const Ki=function(e,t){let n=Fr(`SyntaxReferenceError`,e+(t?" `"+t+"`":``));return n.reference=t,n},qi=function(e,t,n,r){let i=Fr(`SyntaxMatchError`,e),{css:a,mismatchOffset:o,mismatchLength:s,start:c,end:l}=Ui(r,n);return i.rawMessage=e,i.syntax=t?Vi(t):`<generic>`,i.css=a,i.mismatchOffset=o,i.mismatchLength=s,i.message=e+`
11
+ syntax: `+i.syntax+`
12
+ value: `+(a||`<empty string>`)+`
13
+ --------`+Array(i.mismatchOffset+1).join(`-`)+`^`,Object.assign(i,c),i.loc={source:n&&n.loc&&n.loc.source||`<unknown>`,start:c,end:l},i},Ji=/* @__PURE__ */ new Map,Yi=/* @__PURE__ */ new Map,Xi=ea,Zi=ta;function Qi(e,t){return t||=0,e.length-t>=2&&e.charCodeAt(t)===45&&e.charCodeAt(t+1)===45}function $i(e,t){if(t||=0,e.length-t>=3&&e.charCodeAt(t)===45&&e.charCodeAt(t+1)!==45){let n=e.indexOf(`-`,t+2);if(n!==-1)return e.substring(t,n+1)}return``}function ea(e){if(Ji.has(e))return Ji.get(e);let t=e.toLowerCase(),n=Ji.get(t);if(n===void 0){let e=Qi(t,0),r=e?``:$i(t,0);n=Object.freeze({basename:t.substr(r.length),name:t,prefix:r,vendor:r,custom:e})}return Ji.set(e,n),n}function ta(e){if(Yi.has(e))return Yi.get(e);let t=e,n=e[0];n===`/`?n=e[1]===`/`?`//`:`/`:n!==`_`&&n!==`*`&&n!==`$`&&n!==`#`&&n!==`+`&&n!==`&`&&(n=``);let r=Qi(t,n.length);if(!r&&(t=t.toLowerCase(),Yi.has(t))){let n=Yi.get(t);return Yi.set(e,n),n}let i=r?``:$i(t,n.length),a=t.substr(0,n.length+i.length),o=Object.freeze({basename:t.substr(a.length),name:t.substr(n.length),hack:n,vendor:i,prefix:a,custom:r});return Yi.set(e,o),o}const na=[`initial`,`inherit`,`unset`,`revert`,`revert-layer`];function ra(e,t){return e!==null&&e.type===9&&e.value.charCodeAt(0)===t}function ia(e,t,n){for(;e!==null&&(e.type===13||e.type===25);)e=n(++t);return t}function aa(e,t,n,r){if(!e)return 0;let i=e.value.charCodeAt(t);if(i===43||i===45){if(n)return 0;t++}for(;t<e.value.length;t++)if(!M(e.value.charCodeAt(t)))return 0;return r+1}function oa(e,t,n){let r=!1,i=ia(e,t,n);if(e=n(i),e===null)return t;if(e.type!==10){if(!ra(e,43)&&!ra(e,45))return t;if(r=!0,i=ia(n(++i),i,n),e=n(i),e===null||e.type!==10)return 0}if(!r){let t=e.value.charCodeAt(0);if(t!==43&&t!==45)return 0}return aa(e,+!r,r,i)}function sa(e,t){let n=0;if(!e)return 0;if(e.type===10)return aa(e,0,!1,n);if(e.type===1&&e.value.charCodeAt(0)===45){if(!gr(e.value,1,110))return 0;switch(e.value.length){case 2:return oa(t(++n),n,t);case 3:return e.value.charCodeAt(2)===45?(n=ia(t(++n),n,t),e=t(n),aa(e,0,!0,n)):0;default:return e.value.charCodeAt(2)===45?aa(e,3,!0,n):0}}else if(e.type===1||ra(e,43)&&t(n+1).type===1){if(e.type!==1&&(e=t(++n)),e===null||!gr(e.value,0,110))return 0;switch(e.value.length){case 1:return oa(t(++n),n,t);case 2:return e.value.charCodeAt(1)===45?(n=ia(t(++n),n,t),e=t(n),aa(e,0,!0,n)):0;default:return e.value.charCodeAt(1)===45?aa(e,2,!0,n):0}}else if(e.type===12){let r=e.value.charCodeAt(0),i=+(r===43||r===45),a=i;for(;a<e.value.length&&M(e.value.charCodeAt(a));a++);return a===i||!gr(e.value,a,110)?0:a+1===e.value.length?oa(t(++n),n,t):e.value.charCodeAt(a+1)===45?a+2===e.value.length?(n=ia(t(++n),n,t),e=t(n),aa(e,0,!0,n)):aa(e,a+2,!0,n):0}return 0}function ca(e,t){return e!==null&&e.type===9&&e.value.charCodeAt(0)===t}function la(e,t){return e.value.charCodeAt(0)===t}function ua(e,t,n){let r=0;for(let i=t;i<e.value.length;i++){let a=e.value.charCodeAt(i);if(a===45&&n&&r!==0)return ua(e,t+r+1,!1),6;if(!Qn(a)||++r>6)return 0}return r}function da(e,t,n){if(!e)return 0;for(;ca(n(t),63);){if(++e>6)return 0;t++}return t}function fa(e,t){let n=0;if(e===null||e.type!==1||!gr(e.value,0,117)||(e=t(++n),e===null))return 0;if(ca(e,43))return e=t(++n),e===null?0:e.type===1?da(ua(e,0,!0),++n,t):ca(e,63)?da(1,++n,t):0;if(e.type===10){let r=ua(e,1,!0);return r===0?0:(e=t(++n),e===null?n:e.type===12||e.type===10?!la(e,45)||!ua(e,1,!1)?0:n+1:da(r,n,t))}return e.type===12?da(ua(e,1,!0),++n,t):0}const pa=[`calc(`,`-moz-calc(`,`-webkit-calc(`],ma=/* @__PURE__ */ new Map([[2,22],[21,22],[19,20],[23,24]]);function ha(e,t){return t<e.length?e.charCodeAt(t):0}function ga(e,t){return _r(e,0,e.length,t)}function _a(e,t){for(let n=0;n<t.length;n++)if(ga(e,t[n]))return!0;return!1}function va(e,t){return t===e.length-2&&ha(e,t)===92&&M(ha(e,t+1))}function ya(e,t,n){if(e&&e.type===`Range`){let r=Number(n!==void 0&&n!==t.length?t.substr(0,n):t);if(isNaN(r)||e.min!==null&&r<e.min&&typeof e.min!=`string`||e.max!==null&&r>e.max&&typeof e.max!=`string`)return!0}return!1}function ba(e,t){let n=0,r=[],i=0;scan:do{switch(e.type){case 24:case 22:case 20:if(e.type!==n)break scan;if(n=r.pop(),r.length===0){i++;break scan}break;case 2:case 21:case 19:case 23:r.push(n),n=ma.get(e.type)}i++}while(e=t(i));return i}function I(e){return function(t,n,r){return t===null?0:t.type===2&&_a(t.value,pa)?ba(t,n):e(t,n,r)}}function L(e){return function(t){return t===null||t.type!==e?0:1}}function xa(e){if(e===null||e.type!==1)return 0;let t=e.value.toLowerCase();return _a(t,na)||ga(t,`default`)?0:1}function Sa(e){return e===null||e.type!==1||ha(e.value,0)!==45||ha(e.value,1)!==45?0:1}function Ca(e){return!Sa(e)||e.value===`--`?0:1}function wa(e){if(e===null||e.type!==4)return 0;let t=e.value.length;if(t!==4&&t!==5&&t!==7&&t!==9)return 0;for(let n=1;n<t;n++)if(!Qn(ha(e.value,n)))return 0;return 1}function Ta(e){return e===null||e.type!==4||!lr(ha(e.value,1),ha(e.value,2),ha(e.value,3))?0:1}function Ea(e,t){if(!e)return 0;let n=0,r=[],i=0;scan:do{switch(e.type){case 6:case 8:break scan;case 24:case 22:case 20:if(e.type!==n)break scan;n=r.pop();break;case 17:if(n===0)break scan;break;case 9:if(n===0&&e.value===`!`)break scan;break;case 2:case 21:case 19:case 23:r.push(n),n=ma.get(e.type)}i++}while(e=t(i));return i}function Da(e,t){if(!e)return 0;let n=0,r=[],i=0;scan:do{switch(e.type){case 6:case 8:break scan;case 24:case 22:case 20:if(e.type!==n)break scan;n=r.pop();break;case 2:case 21:case 19:case 23:r.push(n),n=ma.get(e.type)}i++}while(e=t(i));return i}function Oa(e){return e&&=new Set(e),function(t,n,r){if(t===null||t.type!==12)return 0;let i=Cr(t.value,0);if(e!==null){let n=t.value.indexOf(`\\`,i),r=n!==-1&&va(t.value,n)?t.value.substring(i,n):t.value.substr(i);if(e.has(r.toLowerCase())===!1)return 0}return+!ya(r,t.value,i)}}function ka(e,t,n){return e===null||e.type!==11||ya(n,e.value,e.value.length-1)?0:1}function Aa(e){return typeof e!=`function`&&(e=function(){return 0}),function(t,n,r){return t!==null&&t.type===10&&Number(t.value)===0?1:e(t,n,r)}}function ja(e,t,n){if(e===null)return 0;let r=Cr(e.value,0);return r!==e.value.length&&!va(e.value,r)||ya(n,e.value,r)?0:1}function Ma(e,t,n){if(e===null||e.type!==10)return 0;let r=+(ha(e.value,0)===43||ha(e.value,0)===45);for(;r<e.value.length;r++)if(!M(ha(e.value,r)))return 0;return+!ya(n,e.value,r)}const Na={"ident-token":L(1),"function-token":L(2),"at-keyword-token":L(3),"hash-token":L(4),"string-token":L(5),"bad-string-token":L(6),"url-token":L(7),"bad-url-token":L(8),"delim-token":L(9),"number-token":L(10),"percentage-token":L(11),"dimension-token":L(12),"whitespace-token":L(13),"CDO-token":L(14),"CDC-token":L(15),"colon-token":L(16),"semicolon-token":L(17),"comma-token":L(18),"[-token":L(19),"]-token":L(20),"(-token":L(21),")-token":L(22),"{-token":L(23),"}-token":L(24)},Pa={string:L(5),ident:L(1),percentage:I(ka),zero:Aa(),number:I(ja),integer:I(Ma),"custom-ident":xa,"dashed-ident":Sa,"custom-property-name":Ca,"hex-color":wa,"id-selector":Ta,"an-plus-b":sa,urange:fa,"declaration-value":Ea,"any-value":Da};function Fa(e){let{angle:t,decibel:n,frequency:r,flex:i,length:a,resolution:o,semitones:s,time:c}=e||{};return{dimension:I(Oa(null)),angle:I(Oa(t)),decibel:I(Oa(n)),frequency:I(Oa(r)),flex:I(Oa(i)),length:I(Aa(Oa(a))),resolution:I(Oa(o)),semitones:I(Oa(s)),time:I(Oa(c))}}function Ia(e){return{...Na,...Pa,...Fa(e)}}var La=Object.freeze({__proto__:null,angle:[`deg`,`grad`,`rad`,`turn`],decibel:[`db`],flex:[`fr`],frequency:[`hz`,`khz`],length:/* @__PURE__ */ `cm.mm.q.in.pt.pc.px.em.rem.ex.rex.cap.rcap.ch.rch.ic.ric.lh.rlh.vw.svw.lvw.dvw.vh.svh.lvh.dvh.vi.svi.lvi.dvi.vb.svb.lvb.dvb.vmin.svmin.lvmin.dvmin.vmax.svmax.lvmax.dvmax.cqw.cqh.cqi.cqb.cqmin.cqmax`.split(`.`),resolution:[`dpi`,`dpcm`,`dppx`,`x`],semitones:[`st`],time:[`s`,`ms`]});function Ra(e,t,n){return Object.assign(Fr(`SyntaxError`,e),{input:t,offset:n,rawMessage:e,message:e+`
14
+ `+t+`
15
+ --`+Array((n||t.length)+1).join(`-`)+`^`})}let za=class{constructor(e){this.str=e,this.pos=0}charCodeAt(e){return e<this.str.length?this.str.charCodeAt(e):0}charCode(){return this.charCodeAt(this.pos)}nextCharCode(){return this.charCodeAt(this.pos+1)}nextNonWsCode(e){return this.charCodeAt(this.findWsEnd(e))}skipWs(){this.pos=this.findWsEnd(this.pos)}findWsEnd(e){for(;e<this.str.length;e++){let t=this.str.charCodeAt(e);if(t!==13&&t!==10&&t!==12&&t!==32&&t!==9)break}return e}substringToPos(e){return this.str.substring(this.pos,this.pos=e)}eat(e){this.charCode()!==e&&this.error("Expect `"+String.fromCharCode(e)+"`"),this.pos++}peek(){return this.pos<this.str.length?this.str.charAt(this.pos++):``}error(e){throw new Ra(e,this.str,this.pos)}};const Ba=8734,Va=(/* @__PURE__ */ new Uint8Array(128)).map(((e,t)=>+!!/[a-zA-Z0-9\-]/.test(String.fromCharCode(t)))),Ha={" ":1,"&&":2,"||":3,"|":4};function Ua(e){return e.substringToPos(e.findWsEnd(e.pos))}function Wa(e){let t=e.pos;for(;t<e.str.length;t++){let n=e.str.charCodeAt(t);if(n>=128||Va[n]===0)break}return e.pos===t&&e.error(`Expect a keyword`),e.substringToPos(t)}function Ga(e){let t=e.pos;for(;t<e.str.length;t++){let n=e.str.charCodeAt(t);if(n<48||n>57)break}return e.pos===t&&e.error(`Expect a number`),e.substringToPos(t)}function Ka(e){let t=e.str.indexOf(`'`,e.pos+1);return t===-1&&(e.pos=e.str.length,e.error(`Expect an apostrophe`)),e.substringToPos(t+1)}function qa(e){let t=null,n=null;return e.eat(123),e.skipWs(),t=Ga(e),e.skipWs(),e.charCode()===44?(e.pos++,e.skipWs(),e.charCode()!==125&&(n=Ga(e),e.skipWs())):n=t,e.eat(125),{min:Number(t),max:n?Number(n):0}}function Ja(e){let t=null,n=!1;switch(e.charCode()){case 42:e.pos++,t={min:0,max:0};break;case 43:e.pos++,t={min:1,max:0};break;case 63:e.pos++,t={min:0,max:1};break;case 35:e.pos++,n=!0,e.charCode()===123?t=qa(e):e.charCode()===63?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case 123:t=qa(e);break;default:return null}return{type:`Multiplier`,comma:n,min:t.min,max:t.max,term:null}}function Ya(e,t){let n=Ja(e);return n===null?t:(n.term=t,e.charCode()===35&&e.charCodeAt(e.pos-1)===43?Ya(e,n):n)}function Xa(e){let t=e.peek();return t===``?null:{type:`Token`,value:t}}function Za(e){let t;return e.eat(60),e.eat(39),t=Wa(e),e.eat(39),e.eat(62),Ya(e,{type:`Property`,name:t})}function Qa(e){let t=null,n=null,r=1;return e.eat(91),e.charCode()===45&&(e.peek(),r=-1),r==-1&&e.charCode()===Ba?e.peek():(t=r*Number(Ga(e)),Va[e.charCode()]!==0&&(t+=Wa(e))),Ua(e),e.eat(44),Ua(e),e.charCode()===Ba?e.peek():(r=1,e.charCode()===45&&(e.peek(),r=-1),n=r*Number(Ga(e)),Va[e.charCode()]!==0&&(n+=Wa(e))),e.eat(93),{type:`Range`,min:t,max:n}}function $a(e){let t,n=null;return e.eat(60),t=Wa(e),e.charCode()===40&&e.nextCharCode()===41&&(e.pos+=2,t+=`()`),e.charCodeAt(e.findWsEnd(e.pos))===91&&(Ua(e),n=Qa(e)),e.eat(62),Ya(e,{type:`Type`,name:t,opts:n})}function eo(e){let t=Wa(e);return e.charCode()===40?(e.pos++,{type:`Function`,name:t}):Ya(e,{type:`Keyword`,name:t})}function to(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)=>Ha[e]-Ha[t]));t.length>0;){r=t.shift();let i=0,a=0;for(;i<e.length;i++){let t=e[i];t.type===`Combinator`&&(t.value===r?(a===-1&&(a=i-1),e.splice(i,1),i--):(a!==-1&&i-a>1&&(e.splice(a,i-a,n(e.slice(a,i),r)),i=a+1),a=-1))}a!==-1&&t.length&&e.splice(a,i-a,n(e.slice(a,i),r))}return r}function no(e){let t=[],n={},r,i=null,a=e.pos;for(;r=io(e);)r.type!==`Spaces`&&(r.type===`Combinator`?((i===null||i.type===`Combinator`)&&(e.pos=a,e.error(`Unexpected combinator`)),n[r.value]=!0):i!==null&&i.type!==`Combinator`&&(n[` `]=!0,t.push({type:`Combinator`,value:` `})),t.push(r),i=r,a=e.pos);return i!==null&&i.type===`Combinator`&&(e.pos-=a,e.error(`Unexpected combinator`)),{type:`Group`,terms:t,combinator:to(t,n)||` `,disallowEmpty:!1,explicit:!1}}function ro(e){let t;return e.eat(91),t=no(e),e.eat(93),t.explicit=!0,e.charCode()===33&&(e.pos++,t.disallowEmpty=!0),t}function io(e){let t=e.charCode();if(t<128&&Va[t]===1)return eo(e);switch(t){case 93:break;case 91:return Ya(e,ro(e));case 60:return e.nextCharCode()===39?Za(e):$a(e);case 124:return{type:`Combinator`,value:e.substringToPos(e.pos+(e.nextCharCode()===124?2:1))};case 38:return e.pos++,e.eat(38),{type:`Combinator`,value:`&&`};case 44:return e.pos++,{type:`Comma`};case 39:return Ya(e,{type:`String`,value:Ka(e)});case 32:case 9:case 10:case 13:case 12:return{type:`Spaces`,value:Ua(e)};case 64:return t=e.nextCharCode(),t<128&&Va[t]===1?(e.pos++,{type:`AtKeyword`,name:Wa(e)}):Xa(e);case 42:case 43:case 63:case 35:case 33:break;case 123:if(t=e.nextCharCode(),t<48||t>57)return Xa(e);break;default:return Xa(e)}}function ao(e){let t=new za(e),n=no(t);return t.pos!==e.length&&t.error(`Unexpected input`),n.terms.length===1&&n.terms[0].type===`Group`?n.terms[0]:n}const oo=function(){};function so(e){return typeof e==`function`?e:oo}function co(e,t,n){function r(e){switch(i.call(n,e),e.type){case`Group`:e.terms.forEach(r);break;case`Multiplier`:r(e.term);break;case`Type`:case`Property`:case`Keyword`:case`AtKeyword`:case`Function`:case`String`:case`Token`:case`Comma`:break;default:throw Error(`Unknown type: `+e.type)}a.call(n,e)}let i=oo,a=oo;if(typeof t==`function`?i=t:t&&(i=so(t.enter),a=so(t.leave)),i===oo&&a===oo)throw Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");r(e)}const lo={decorator(e){let t=[],n=null;return{...e,node(t){let 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 uo(e){let t=[];return Mr(e,((n,r,i)=>t.push({type:n,value:e.slice(r,i),node:null}))),t}function fo(e,t){return typeof e==`string`?uo(e):t.generate(e,lo)}const R={type:`Match`},z={type:`Mismatch`},po={type:`DisallowEmpty`};function B(e,t,n){return t===R&&n===z||e===R&&t===R&&n===R?e:(e.type===`If`&&e.else===z&&t===R&&(t=e.then,e=e.match),{type:`If`,match:e,then:t,else:n})}function mo(e){return e.length>2&&e.charCodeAt(e.length-2)===40&&e.charCodeAt(e.length-1)===41}function ho(e){return e.type===`Keyword`||e.type===`AtKeyword`||e.type===`Function`||e.type===`Type`&&mo(e.name)}function go(e,t,n){switch(e){case` `:{let e=R;for(let n=t.length-1;n>=0;n--){let r=t[n];e=B(r,e,z)}return e}case`|`:{let e=z,n=null;for(let r=t.length-1;r>=0;r--){let i=t[r];if(ho(i)&&(n===null&&r>0&&ho(t[r-1])&&(n=Object.create(null),e=B({type:`Enum`,map:n},R,e)),n!==null)){let e=(mo(i.name)?i.name.slice(0,-1):i.name).toLowerCase();if(!(e in n)){n[e]=i;continue}}n=null,e=B(i,R,e)}return e}case`&&`:{if(t.length>5)return{type:`MatchOnce`,terms:t,all:!0};let n=z;for(let r=t.length-1;r>=0;r--){let i=t[r],a;a=t.length>1?go(e,t.filter((function(e){return e!==i})),!1):R,n=B(i,a,n)}return n}case`||`:{if(t.length>5)return{type:`MatchOnce`,terms:t,all:!1};let r=n?R:z;for(let n=t.length-1;n>=0;n--){let i=t[n],a;a=t.length>1?go(e,t.filter((function(e){return e!==i})),!0):R,r=B(i,a,r)}return r}}}function _o(e){let t=R,n=vo(e.term);if(e.max===0)n=B(n,po,z),t=B(n,null,z),t.then=B(R,R,t),e.comma&&(t.then.else=B({type:`Comma`,syntax:e},t,z));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==R&&(t=B({type:`Comma`,syntax:e},t,z)),t=B(n,B(R,R,t),z);if(e.min===0)t=B(R,R,t);else for(let r=0;r<e.min-1;r++)e.comma&&t!==R&&(t=B({type:`Comma`,syntax:e},t,z)),t=B(n,t,z);return t}function vo(e){if(typeof e==`function`)return{type:`Generic`,fn:e};switch(e.type){case`Group`:{let t=go(e.combinator,e.terms.map(vo),!1);return e.disallowEmpty&&(t=B(t,po,z)),t}case`Multiplier`:return _o(e);case`Type`:case`Property`:return{type:e.type,name:e.name,syntax:e};case`Keyword`:return{type:e.type,name:e.name.toLowerCase(),syntax:e};case`AtKeyword`:return{type:e.type,name:`@`+e.name.toLowerCase(),syntax:e};case`Function`:return{type:e.type,name:e.name.toLowerCase()+`(`,syntax:e};case`String`:return e.value.length===3?{type:`Token`,value:e.value.charAt(1),syntax:e}:{type:e.type,value:e.value.substr(1,e.value.length-2).replace(/\\'/g,`'`),syntax:e};case`Token`:return{type:e.type,value:e.value,syntax:e};case`Comma`:return{type:e.type,syntax:e};default:throw Error(`Unknown node type:`,e.type)}}function yo(e,t){return typeof e==`string`&&(e=ao(e)),{type:`MatchGraph`,match:vo(e),syntax:t||null,source:e}}const{hasOwnProperty:bo}=Object.prototype,xo=`Match`;function So(e){let t=null,n=null,r=e;for(;r!==null;)n=r.prev,r.prev=t,t=r,r=n;return t}function Co(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){let r=t.charCodeAt(n),i=e.charCodeAt(n);if(i>=65&&i<=90&&(i|=32),i!==r)return!1}return!0}function wo(e){return e.type===9&&e.value!==`?`}function To(e){return e===null||e.type===18||e.type===2||e.type===21||e.type===19||e.type===23||wo(e)}function Eo(e){return e===null||e.type===22||e.type===20||e.type===24||e.type===9&&e.value===`/`}function Do(e,t,n){function r(){do v++,_=v<e.length?e[v]:null;while(_!==null&&(_.type===13||_.type===25))}function i(t){let n=v+t;return n<e.length?e[n]:null}function a(e,t){return{nextState:e,matchStack:b,syntaxStack:d,thenStack:f,tokenIndex:v,prev:t}}function o(e){f={nextState:e,matchStack:b,syntaxStack:d,prev:f}}function s(e){p=a(e,p)}function c(){b={type:1,syntax:t.syntax,token:_,prev:b},r(),m=null,v>y&&(y=v)}function l(){d={syntax:t.syntax,opts:t.syntax.opts||d!==null&&d.opts||null,prev:d},b={type:2,syntax:t.syntax,token:b.token,prev:b}}function u(){b=b.type===2?b.prev:{type:3,syntax:d.syntax,token:b.token,prev:b},d=d.prev}let d=null,f=null,p=null,m=null,h=0,g=null,_=null,v=-1,y=0,b={type:0,syntax:null,token:null,prev:null};for(r();g===null&&++h<15e3;)switch(t.type){case`Match`:if(f===null){if(_!==null&&(v!==e.length-1||_.value!==`\\0`&&_.value!==`\\9`)){t=z;break}g=xo;break}if(t=f.nextState,t===po){if(f.matchStack===b){t=z;break}t=R}for(;f.syntaxStack!==d;)u();f=f.prev;break;case`Mismatch`:if(m!==null&&m!==!1)(p===null||v>p.tokenIndex)&&(p=m,m=!1);else if(p===null){g=`Mismatch`;break}t=p.nextState,f=p.thenStack,d=p.syntaxStack,b=p.matchStack,v=p.tokenIndex,_=v<e.length?e[v]:null,p=p.prev;break;case`MatchGraph`:t=t.match;break;case`If`:t.else!==z&&s(t.else),t.then!==R&&o(t.then),t=t.match;break;case`MatchOnce`:t={type:`MatchOnceBuffer`,syntax:t,index:0,mask:0};break;case`MatchOnceBuffer`:{let e=t.syntax.terms;if(t.index===e.length){if(t.mask===0||t.syntax.all){t=z;break}t=R;break}if(t.mask===(1<<e.length)-1){t=R;break}for(;t.index<e.length;t.index++){let n=1<<t.index;if((t.mask&n)===0){s(t),o({type:`AddMatchOnce`,syntax:t.syntax,mask:t.mask|n}),t=e[t.index++];break}}break}case`AddMatchOnce`:t={type:`MatchOnceBuffer`,syntax:t.syntax,index:0,mask:t.mask};break;case`Enum`:if(_!==null){let e=_.value.toLowerCase();if(e.indexOf(`\\`)!==-1&&(e=e.replace(/\\[09].*$/,``)),bo.call(t.map,e)){t=t.map[e];break}}t=z;break;case`Generic`:{let e=d===null?null:d.opts,n=v+Math.floor(t.fn(_,i,e));if(!isNaN(n)&&n>v){for(;v<n;)c();t=R}else t=z;break}case`Type`:case`Property`:{let e=t.type===`Type`?`types`:`properties`,r=bo.call(n,e)?n[e][t.name]:null;if(!r||!r.match)throw Error(`Bad syntax reference: `+(t.type===`Type`?`<`+t.name+`>`:`<'`+t.name+`'>`));if(m!==!1&&_!==null&&t.type===`Type`&&(t.name===`custom-ident`&&_.type===1||t.name===`length`&&_.value===`0`)){m===null&&(m=a(t,p)),t=z;break}l(),t=r.matchRef||r.match;break}case`Keyword`:{let e=t.name;if(_!==null){let n=_.value;if(n.indexOf(`\\`)!==-1&&(n=n.replace(/\\[09].*$/,``)),Co(n,e)){c(),t=R;break}}t=z;break}case`AtKeyword`:case`Function`:if(_!==null&&Co(_.value,t.name)){c(),t=R;break}t=z;break;case`Token`:if(_!==null&&_.value===t.value){c(),t=R;break}t=z;break;case`Comma`:_!==null&&_.type===18?To(b.token)?t=z:(c(),t=Eo(_)?z:R):t=To(b.token)||Eo(_)?R:z;break;case`String`:let r=``,h=v;for(;h<e.length&&r.length<t.value.length;h++)r+=e[h].value;if(Co(r,t.value)){for(;v<h;)c();t=R}else t=z;break;default:throw Error(`Unknown node type: `+t.type)}switch(g){case null:console.warn(`[csstree-match] BREAK after 15000 iterations`),g=`Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)`,b=null;break;case xo:for(;d!==null;)u();break;default:b=null}return{tokens:e,reason:g,iterations:h,match:b,longestMatch:y}}function Oo(e,t,n){let r=Do(e,t,n||{});if(r.match===null)return r;let i=r.match,a=r.match={syntax:t.syntax||null,match:[]},o=[a];for(i=So(i).prev;i!==null;){switch(i.type){case 2:a.match.push(a={syntax:i.syntax,match:[]}),o.push(a);break;case 3:o.pop(),a=o[o.length-1];break;default:a.match.push({syntax:i.syntax||null,token:i.token.value,node:i.token.node})}i=i.prev}return r}function ko(e){function t(e){return e===null?!1:e.type===`Type`||e.type===`Property`||e.type===`Keyword`}function n(i){if(Array.isArray(i.match)){for(let e=0;e<i.match.length;e++)if(n(i.match[e]))return t(i.syntax)&&r.unshift(i.syntax),!0}else if(i.node===e)return r=t(i.syntax)?[i.syntax]:[],!0;return!1}let r=null;return this.matched!==null&&n(this.matched),r}function Ao(e,t){return No(this,e,(e=>e.type===`Type`&&e.name===t))}function jo(e,t){return No(this,e,(e=>e.type===`Property`&&e.name===t))}function Mo(e){return No(this,e,(e=>e.type===`Keyword`))}function No(e,t,n){let r=ko.call(e,t);return r!==null&&r.some(n)}var Po=Object.freeze({__proto__:null,getTrace:ko,isKeyword:Mo,isProperty:jo,isType:Ao});function Fo(e){return`node`in e?e.node:Fo(e.match[0])}function Io(e){return`node`in e?e.node:Io(e.match[e.match.length-1])}function Lo(e,t,n,r,i){function a(n){if(n.syntax!==null&&n.syntax.type===r&&n.syntax.name===i){let r=Fo(n),i=Io(n);e.syntax.walk(t,(function(e,t,n){if(e===r){let e=new Pr;do{if(e.appendData(t.data),t.data===i)break;t=t.next}while(t!==null);o.push({parent:n,nodes:e})}}))}Array.isArray(n.match)&&n.match.forEach(a)}let o=[];return n.matched!==null&&a(n.matched),o}const{hasOwnProperty:Ro}=Object.prototype;function zo(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e&&e>=0}function Bo(e){return!!e&&zo(e.offset)&&zo(e.line)&&zo(e.column)}function Vo(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 a=!0;if(Ro.call(n,i)!==!1){if(i===`type`)n.type!==e&&r(n,"Wrong node type `"+n.type+"`, expected `"+e+"`");else if(i===`loc`){if(n.loc===null)continue;if(n.loc&&n.loc.constructor===Object){if(typeof n.loc.source!=`string`)i+=`.source`;else if(Bo(n.loc.start)){if(Bo(n.loc.end))continue;i+=`.end`}else i+=`.start`}a=!1}else if(t.hasOwnProperty(i)){a=!1;for(let e=0;!a&&e<t[i].length;e++){let r=t[i][e];switch(r){case String:a=typeof n[i]==`string`;break;case Boolean:a=typeof n[i]==`boolean`;break;case null:a=n[i]===null;break;default:typeof r==`string`?a=n[i]&&n[i].type===r:Array.isArray(r)&&(a=n[i]instanceof Pr)}}}else r(n,"Unknown field `"+i+"` for "+e+` node type`);a||r(n,"Bad value for `"+e+`.`+i+"`")}}for(let i in t)Ro.call(t,i)&&Ro.call(n,i)===!1&&r(n,"Field `"+e+`.`+i+"` is missed")}}function Ho(e,t){let n=[];for(let r=0;r<e.length;r++){let i=e[r];if(i===String||i===Boolean)n.push(i.name.toLowerCase());else if(i===null)n.push(`null`);else if(typeof i==`string`)n.push(i);else{if(!Array.isArray(i))throw Error("Wrong value `"+i+"` in `"+t+"` structure definition");n.push(`List<`+(Ho(i,t)||`any`)+`>`)}}return n.join(` | `)}function Uo(e,t){let n=t.structure,r={type:String,loc:!0},i={type:`"`+e+`"`};for(let t in n)Ro.call(n,t)!==!1&&(i[t]=Ho(r[t]=Array.isArray(n[t])?n[t].slice():[n[t]],e+`.`+t));return{docs:i,check:Vo(e,r)}}function Wo(e){let t={};if(e.node){for(let n in e.node)if(Ro.call(e.node,n)){let r=e.node[n];if(!r.structure)throw Error("Missed `structure` field in `"+n+"` node type definition");t[n]=Uo(n,r)}}return t}function Go(e,t,n){let r={};for(let i in e)e[i].syntax&&(r[i]=n?e[i].syntax:Vi(e[i].syntax,{compact:t}));return r}function Ko(e,t,n){let r={};for(let[i,a]of Object.entries(e))r[i]={prelude:a.prelude&&(n?a.prelude.syntax:Vi(a.prelude.syntax,{compact:t})),descriptors:a.descriptors&&Go(a.descriptors,t,n)};return r}function qo(e){for(let t=0;t<e.length;t++)if(e[t].value.toLowerCase()===`var(`)return!0;return!1}function Jo(e){let t=e.terms[0];return e.explicit===!1&&e.terms.length===1&&t.type===`Multiplier`&&t.comma===!0}function Yo(e,t,n){return{matched:e,iterations:n,error:t,...Po}}function Xo(e,t,n,r){let i=fo(n,e.syntax),a;return qo(i)?Yo(null,/* @__PURE__ */ Error(`Matching for a tree with var() is not supported`)):(r&&(a=Oo(i,e.cssWideKeywordsSyntax,e)),(!r||!a.match)&&(a=Oo(i,t.match,e),!a.match)?Yo(null,new qi(a.reason,t.syntax,n,a),a.iterations):Yo(a.match,null,a.iterations))}let Zo=class{constructor(e,t,n){if(this.cssWideKeywords=na,this.syntax=t,this.generic=!1,this.units={...La},this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=n||Wo(e),e){if(e.cssWideKeywords&&(this.cssWideKeywords=e.cssWideKeywords),e.units)for(let t of Object.keys(La))Array.isArray(e.units[t])&&(this.units[t]=e.units[t]);if(e.types)for(let[t,n]of Object.entries(e.types))this.addType_(t,n);if(e.generic){this.generic=!0;for(let[e,t]of Object.entries(Ia(this.units)))this.addType_(e,t)}if(e.atrules)for(let[t,n]of Object.entries(e.atrules))this.addAtrule_(t,n);if(e.properties)for(let[t,n]of Object.entries(e.properties))this.addProperty_(t,n)}this.cssWideKeywordsSyntax=yo(this.cssWideKeywords.join(` | `))}checkStructure(e){function t(e,t){r.push({node:e,message:t})}let n=this.structure,r=[];return this.syntax.walk(e,(function(e){n.hasOwnProperty(e.type)?n[e.type].check(e,t):t(e,"Unknown node type `"+e.type+"`")})),!!r.length&&r}createDescriptor(e,t,n,r=null){let i={type:t,name:n},a={type:t,name:n,parent:r,serializable:typeof e==`string`||e&&typeof e.type==`string`,syntax:null,match:null,matchRef:null};return typeof e==`function`?a.match=yo(e,i):(typeof e==`string`?Object.defineProperty(a,"syntax",{get(){return Object.defineProperty(a,"syntax",{value:ao(e)}),a.syntax}}):a.syntax=e,Object.defineProperty(a,"match",{get(){return Object.defineProperty(a,"match",{value:yo(a.syntax,i)}),a.match}}),t===`Property`&&Object.defineProperty(a,"matchRef",{get(){let e=a.syntax,t=Jo(e)?yo({...e,terms:[e.terms[0].term]},i):null;return Object.defineProperty(a,"matchRef",{value:t}),t}})),a}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 Ki(`Unknown at-rule`,`@`+e)}checkAtrulePrelude(e,t){let n=this.checkAtruleName(e);if(n)return n;let r=this.getAtrule(e);if(!r.prelude&&t)return/* @__PURE__ */ SyntaxError("At-rule `@"+e+"` should not contain a prelude");if(r.prelude&&!t&&!Xo(this,r.prelude,``,!1).matched)return/* @__PURE__ */ SyntaxError("At-rule `@"+e+"` should contain a prelude")}checkAtruleDescriptorName(e,t){let n=this.checkAtruleName(e);if(n)return n;let r=this.getAtrule(e),i=Xi(t);if(!r.descriptors)return/* @__PURE__ */ SyntaxError("At-rule `@"+e+"` has no known descriptors");if(!r.descriptors[i.name]&&!r.descriptors[i.basename])return new Ki(`Unknown at-rule descriptor`,t)}checkPropertyName(e){if(!this.getProperty(e))return new Ki(`Unknown property`,e)}matchAtrulePrelude(e,t){let n=this.checkAtrulePrelude(e,t);if(n)return Yo(null,n);let r=this.getAtrule(e);return r.prelude?Xo(this,r.prelude,t||``,!1):Yo(null,null)}matchAtruleDescriptor(e,t,n){let r=this.checkAtruleDescriptorName(e,t);if(r)return Yo(null,r);let i=this.getAtrule(e),a=Xi(t);return Xo(this,i.descriptors[a.name]||i.descriptors[a.basename],n,!1)}matchDeclaration(e){return e.type===`Declaration`?this.matchProperty(e.property,e.value):Yo(null,/* @__PURE__ */ Error(`Not a Declaration node`))}matchProperty(e,t){if(Zi(e).custom)return Yo(null,/* @__PURE__ */ Error(`Lexer matching doesn't applicable for custom properties`));let n=this.checkPropertyName(e);return n?Yo(null,n):Xo(this,this.getProperty(e),t,!0)}matchType(e,t){let n=this.getType(e);return n?Xo(this,n,t,!1):Yo(null,new Ki(`Unknown type`,e))}match(e,t){return typeof e!=`string`&&(!e||!e.type)?Yo(null,new Ki(`Bad syntax`)):(typeof e!=`string`&&e.match||(e=this.createDescriptor(e,`Type`,`anonymous`)),Xo(this,e,t,!1))}findValueFragments(e,t,n,r){return Lo(this,t,this.matchProperty(e,t),n,r)}findDeclarationValueFragments(e,t,n){return Lo(this,e.value,this.matchDeclaration(e),t,n)}findAllFragments(e,t,n){let r=[];return this.syntax.walk(e,{visit:`Declaration`,enter:e=>{r.push.apply(r,this.findDeclarationValueFragments(e,t,n))}}),r}getAtrule(e,t=!0){let n=Xi(e);return(n.vendor&&t?this.atrules[n.name]||this.atrules[n.basename]:this.atrules[n.name])||null}getAtrulePrelude(e,t=!0){let 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,t=!0){let n=Zi(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(e,t){return t?`<${e}>`:`<'${e}'>`}function t(a,o,s,c){if(s.has(o))return s.get(o);s.set(o,!1),c.syntax!==null&&co(c.syntax,(function(c){if(c.type!==`Type`&&c.type!==`Property`)return;let l=c.type===`Type`?a.types:a.properties,u=c.type===`Type`?r:i;hasOwnProperty.call(l,c.name)?t(a,c.name,u,l[c.name])&&(n.push(`${e(o,s===r)} used broken syntax definition ${e(c.name,c.type===`Type`)}`),s.set(o,!0)):(n.push(`${e(o,s===r)} used missed syntax definition ${e(c.name,c.type===`Type`)}`),s.set(o,!0))}),this)}let n=[],r=/* @__PURE__ */ new Map,i=/* @__PURE__ */ new Map;for(let e in this.types)t(this,e,r,this.types[e]);for(let e in this.properties)t(this,e,i,this.properties[e]);let a=[...r.keys()].filter((e=>r.get(e))),o=[...i.keys()].filter((e=>i.get(e)));return a.length||o.length?{errors:n,types:a,properties:o}:null}dump(e,t){return{generic:this.generic,cssWideKeywords:this.cssWideKeywords,units:this.units,types:Go(this.types,!t,e),properties:Go(this.properties,!t,e),atrules:Ko(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}};function Qo(e,t){return typeof t==`string`&&/^\s*\|/.test(t)?typeof e==`string`?e+t:t.replace(/^\s*\|\s*/,``):t||null}function $o(e,t){let n=Object.create(null);for(let[r,i]of Object.entries(e))if(i){n[r]={};for(let e of Object.keys(i))t.includes(e)&&(n[r][e]=i[e])}return n}function es(e,t){let n={...e};for(let[r,i]of Object.entries(t))switch(r){case`generic`:n[r]=!!i;break;case`cssWideKeywords`:n[r]=e[r]?[...e[r],...i]:i||[];break;case`units`:n[r]={...e[r]};for(let[e,t]of Object.entries(i))n[r][e]=Array.isArray(t)?t:[];break;case`atrules`:n[r]={...e[r]};for(let[e,t]of Object.entries(i)){let i=n[r][e]||{},a=n[r][e]={prelude:i.prelude||null,descriptors:{...i.descriptors}};if(t){a.prelude=t.prelude?Qo(a.prelude,t.prelude):a.prelude||null;for(let[e,n]of Object.entries(t.descriptors||{}))a.descriptors[e]=n?Qo(a.descriptors[e],n):null;Object.keys(a.descriptors).length||(a.descriptors=null)}}break;case`types`:case`properties`:n[r]={...e[r]};for(let[e,t]of Object.entries(i))n[r][e]=Qo(n[r][e],t);break;case`scope`:case`features`:n[r]={...e[r]};for(let[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],...$o(i,[`parse`])};break;case`node`:n[r]={...e[r],...$o(i,[`name`,`structure`,`parse`,`generate`,`walkContext`])}}return n}function ts(e){let t=Ur(e),n=Fi(e),r=Ti(e),{fromPlainObject:i,toPlainObject:a}=Ei(n),o={lexer:null,createLexer:e=>new Zo(e,o,o.lexer.structure),tokenize:Mr,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:i,toPlainObject:a,fork(t){let n=es({},e);return ts(typeof t==`function`?t(n):es(n,t))}};return o.lexer=new Zo({generic:e.generic,cssWideKeywords:e.cssWideKeywords,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},o),o}var ns=e=>ts(es({},e)),rs={generic:!0,cssWideKeywords:[`initial`,`inherit`,`unset`,`revert`,`revert-layer`],units:{angle:[`deg`,`grad`,`rad`,`turn`],decibel:[`db`],flex:[`fr`],frequency:[`hz`,`khz`],length:/* @__PURE__ */ `cm.mm.q.in.pt.pc.px.em.rem.ex.rex.cap.rcap.ch.rch.ic.ric.lh.rlh.vw.svw.lvw.dvw.vh.svh.lvh.dvh.vi.svi.lvi.dvi.vb.svb.lvb.dvb.vmin.svmin.lvmin.dvmin.vmax.svmax.lvmax.dvmax.cqw.cqh.cqi.cqb.cqmin.cqmax`.split(`.`),resolution:[`dpi`,`dpcm`,`dppx`,`x`],semitones:[`st`],time:[`s`,`ms`]},types:{"abs()":`abs( <calc-sum> )`,"absolute-size":`xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large`,"acos()":`acos( <calc-sum> )`,"alpha-value":`<number>|<percentage>`,"angle-percentage":`<angle>|<percentage>`,"angular-color-hint":`<angle-percentage>`,"angular-color-stop":`<color>&&<color-stop-angle>?`,"angular-color-stop-list":`[<angular-color-stop> [, <angular-color-hint>]?]# , <angular-color-stop>`,"animateable-feature":`scroll-position|contents|<custom-ident>`,"asin()":`asin( <calc-sum> )`,"atan()":`atan( <calc-sum> )`,"atan2()":`atan2( <calc-sum> , <calc-sum> )`,attachment:`scroll|fixed|local`,"attr()":`attr( <attr-name> <type-or-unit>? [, <attr-fallback>]? )`,"attr-matcher":`['~'|'|'|'^'|'$'|'*']? '='`,"attr-modifier":`i|s`,"attribute-selector":`'[' <wq-name> ']'|'[' <wq-name> <attr-matcher> [<string-token>|<ident-token>] <attr-modifier>? ']'`,"auto-repeat":`repeat( [auto-fill|auto-fit] , [<line-names>? <fixed-size>]+ <line-names>? )`,"auto-track-list":`[<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>? <auto-repeat> [<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>?`,axis:`block|inline|vertical|horizontal`,"baseline-position":`[first|last]? baseline`,"basic-shape":`<inset()>|<xywh()>|<rect()>|<circle()>|<ellipse()>|<polygon()>|<path()>`,"bg-image":`none|<image>`,"bg-layer":`<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>`,"bg-position":`[[left|center|right|top|bottom|<length-percentage>]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]|[center|[left|right] <length-percentage>?]&&[center|[top|bottom] <length-percentage>?]]`,"bg-size":`[<length-percentage>|auto]{1,2}|cover|contain`,"blur()":`blur( <length> )`,"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( <number-percentage> )`,"calc()":`calc( <calc-sum> )`,"calc-sum":`<calc-product> [['+'|'-'] <calc-product>]*`,"calc-product":`<calc-value> ['*' <calc-value>|'/' <number>]*`,"calc-value":`<number>|<dimension>|<percentage>|<calc-constant>|( <calc-sum> )`,"calc-constant":`e|pi|infinity|-infinity|NaN`,"cf-final-image":`<image>|<color>`,"cf-mixing-image":`<percentage>?&&<image>`,"circle()":`circle( [<shape-radius>]? [at <position>]? )`,"clamp()":`clamp( <calc-sum>#{3} )`,"class-selector":`'.' <ident-token>`,"clip-source":`<url>`,color:`<color-base>|currentColor|<system-color>|<device-cmyk()>|<light-dark()>|<-non-standard-color>`,"color-stop":`<color-stop-length>|<color-stop-angle>`,"color-stop-angle":`<angle-percentage>{1,2}`,"color-stop-length":`<length-percentage>{1,2}`,"color-stop-list":`[<linear-color-stop> [, <linear-color-hint>]?]# , <linear-color-stop>`,"color-interpolation-method":`in [<rectangular-color-space>|<polar-color-space> <hue-interpolation-method>?|<custom-color-space>]`,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":`[<type-selector>? <subclass-selector>*]!`,"compound-selector-list":`<compound-selector>#`,"complex-selector":`<complex-selector-unit> [<combinator>? <complex-selector-unit>]*`,"complex-selector-list":`<complex-selector>#`,"conic-gradient()":`conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )`,"contextual-alt-values":`[contextual|no-contextual]`,"content-distribution":`space-between|space-around|space-evenly|stretch`,"content-list":`[<string>|contents|<image>|<counter>|<quote>|<target>|<leader()>|<attr()>]+`,"content-position":`center|start|end|flex-start|flex-end`,"content-replacement":`<image>`,"contrast()":`contrast( [<number-percentage>] )`,"cos()":`cos( <calc-sum> )`,counter:`<counter()>|<counters()>`,"counter()":`counter( <counter-name> , <counter-style>? )`,"counter-name":`<custom-ident>`,"counter-style":`<counter-style-name>|symbols( )`,"counter-style-name":`<custom-ident>`,"counters()":`counters( <counter-name> , <string> , <counter-style>? )`,"cross-fade()":`cross-fade( <cf-mixing-image> , <cf-final-image>? )`,"cubic-bezier-timing-function":`ease|ease-in|ease-out|ease-in-out|cubic-bezier( <number [0,1]> , <number> , <number [0,1]> , <number> )`,"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":`<display-outside>?&&[flow|flow-root]?&&list-item`,"display-outside":`block|inline|run-in`,"drop-shadow()":`drop-shadow( <length>{2,3} <color>? )`,"east-asian-variant-values":`[jis78|jis83|jis90|jis04|simplified|traditional]`,"east-asian-width-values":`[full-width|proportional-width]`,"element()":`element( <custom-ident> , [first|start|last|first-except]? )|element( <id-selector> )`,"ellipse()":`ellipse( [<shape-radius>{2}]? [at <position>]? )`,"ending-shape":`circle|ellipse`,"env()":`env( <custom-ident> , <declaration-value>? )`,"exp()":`exp( <calc-sum> )`,"explicit-track-list":`[<line-names>? <track-size>]+ <line-names>?`,"family-name":`<string>|<custom-ident>+`,"feature-tag-value":`<string> [<integer>|on|off]?`,"feature-type":`@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation`,"feature-value-block":`<feature-type> '{' <feature-value-declaration-list> '}'`,"feature-value-block-list":`<feature-value-block>+`,"feature-value-declaration":`<custom-ident> : <integer>+ ;`,"feature-value-declaration-list":`<feature-value-declaration>`,"feature-value-name":`<custom-ident>`,"fill-rule":`nonzero|evenodd`,"filter-function":`<blur()>|<brightness()>|<contrast()>|<drop-shadow()>|<grayscale()>|<hue-rotate()>|<invert()>|<opacity()>|<saturate()>|<sepia()>`,"filter-function-list":`[<filter-function>|<url>]+`,"final-bg-layer":`<'background-color'>||<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>`,"fixed-breadth":`<length-percentage>`,"fixed-repeat":`repeat( [<integer [1,∞]>] , [<line-names>? <fixed-size>]+ <line-names>? )`,"fixed-size":`<fixed-breadth>|minmax( <fixed-breadth> , <track-breadth> )|minmax( <inflexible-breadth> , <fixed-breadth> )`,"font-stretch-absolute":`normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|<percentage>`,"font-variant-css21":`[normal|small-caps]`,"font-weight-absolute":`normal|bold|<number [1,1000]>`,"frequency-percentage":`<frequency>|<percentage>`,"general-enclosed":`[<function-token> <any-value>? )]|[( <any-value>? )]`,"generic-family":`<generic-script-specific>|<generic-complete>|<generic-incomplete>|<-non-standard-generic-family>`,"generic-name":`serif|sans-serif|cursive|fantasy|monospace`,"geometry-box":`<shape-box>|fill-box|stroke-box|view-box`,gradient:`<linear-gradient()>|<repeating-linear-gradient()>|<radial-gradient()>|<repeating-radial-gradient()>|<conic-gradient()>|<repeating-conic-gradient()>|<-legacy-gradient>`,"grayscale()":`grayscale( <number-percentage> )`,"grid-line":`auto|<custom-ident>|[<integer>&&<custom-ident>?]|[span&&[<integer>||<custom-ident>]]`,"historical-lig-values":`[historical-ligatures|no-historical-ligatures]`,"hsl()":`hsl( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsl( <hue> , <percentage> , <percentage> , <alpha-value>? )`,"hsla()":`hsla( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsla( <hue> , <percentage> , <percentage> , <alpha-value>? )`,hue:`<number>|<angle>`,"hue-rotate()":`hue-rotate( <angle> )`,"hue-interpolation-method":`[shorter|longer|increasing|decreasing] hue`,"hwb()":`hwb( [<hue>|none] [<percentage>|none] [<percentage>|none] [/ [<alpha-value>|none]]? )`,"hypot()":`hypot( <calc-sum># )`,image:`<url>|<image()>|<image-set()>|<element()>|<paint()>|<cross-fade()>|<gradient>`,"image()":`image( <image-tags>? [<image-src>? , <color>?]! )`,"image-set()":`image-set( <image-set-option># )`,"image-set-option":`[<image>|<string>] [<resolution>||type( <string> )]`,"image-src":`<url>|<string>`,"image-tags":`ltr|rtl`,"inflexible-breadth":`<length-percentage>|min-content|max-content|auto`,"inset()":`inset( <length-percentage>{1,4} [round <'border-radius'>]? )`,"invert()":`invert( <number-percentage> )`,"keyframes-name":`<custom-ident>|<string>`,"keyframe-block":`<keyframe-selector># { <declaration-list> }`,"keyframe-block-list":`<keyframe-block>+`,"keyframe-selector":`from|to|<percentage>|<timeline-range-name> <percentage>`,"lab()":`lab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )`,"layer()":`layer( <layer-name> )`,"layer-name":`<ident> ['.' <ident>]*`,"lch()":`lch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )`,"leader()":`leader( <leader-type> )`,"leader-type":`dotted|solid|space|<string>`,"length-percentage":`<length>|<percentage>`,"light-dark()":`light-dark( <color> , <color> )`,"line-names":`'[' <custom-ident>* ']'`,"line-name-list":`[<line-names>|<name-repeat>]+`,"line-style":`none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset`,"line-width":`<length>|thin|medium|thick`,"linear-color-hint":`<length-percentage>`,"linear-color-stop":`<color> <color-stop-length>?`,"linear-gradient()":`linear-gradient( [[<angle>|to <side-or-corner>]||<color-interpolation-method>]? , <color-stop-list> )`,"log()":`log( <calc-sum> , <calc-sum>? )`,"mask-layer":`<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||<geometry-box>||[<geometry-box>|no-clip]||<compositing-operator>||<masking-mode>`,"mask-position":`[<length-percentage>|left|center|right] [<length-percentage>|top|center|bottom]?`,"mask-reference":`none|<image>|<mask-source>`,"mask-source":`<url>`,"masking-mode":`alpha|luminance|match-source`,"matrix()":`matrix( <number>#{6} )`,"matrix3d()":`matrix3d( <number>#{16} )`,"max()":`max( <calc-sum># )`,"media-and":`<media-in-parens> [and <media-in-parens>]+`,"media-condition":`<media-not>|<media-and>|<media-or>|<media-in-parens>`,"media-condition-without-or":`<media-not>|<media-and>|<media-in-parens>`,"media-feature":`( [<mf-plain>|<mf-boolean>|<mf-range>] )`,"media-in-parens":`( <media-condition> )|<media-feature>|<general-enclosed>`,"media-not":`not <media-in-parens>`,"media-or":`<media-in-parens> [or <media-in-parens>]+`,"media-query":`<media-condition>|[not|only]? <media-type> [and <media-condition-without-or>]?`,"media-query-list":`<media-query>#`,"media-type":`<ident>`,"mf-boolean":`<mf-name>`,"mf-name":`<ident>`,"mf-plain":`<mf-name> : <mf-value>`,"mf-range":`<mf-name> ['<'|'>']? '='? <mf-value>|<mf-value> ['<'|'>']? '='? <mf-name>|<mf-value> '<' '='? <mf-name> '<' '='? <mf-value>|<mf-value> '>' '='? <mf-name> '>' '='? <mf-value>`,"mf-value":`<number>|<dimension>|<ident>|<ratio>`,"min()":`min( <calc-sum># )`,"minmax()":`minmax( [<length-percentage>|min-content|max-content|auto] , [<length-percentage>|<flex>|min-content|max-content|auto] )`,"mod()":`mod( <calc-sum> , <calc-sum> )`,"name-repeat":`repeat( [<integer [1,∞]>|auto-fill] , <line-names>+ )`,"named-color":`transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen`,"namespace-prefix":`<ident>`,"ns-prefix":`[<ident-token>|'*']? '|'`,"number-percentage":`<number>|<percentage>`,"numeric-figure-values":`[lining-nums|oldstyle-nums]`,"numeric-fraction-values":`[diagonal-fractions|stacked-fractions]`,"numeric-spacing-values":`[proportional-nums|tabular-nums]`,nth:`<an-plus-b>|even|odd`,"opacity()":`opacity( [<number-percentage>] )`,"overflow-position":`unsafe|safe`,"outline-radius":`<length>|<percentage>`,"page-body":`<declaration>? [; <page-body>]?|<page-margin-box> <page-body>`,"page-margin-box":`<page-margin-box-type> '{' <declaration-list> '}'`,"page-margin-box-type":`@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom`,"page-selector-list":`[<page-selector>#]?`,"page-selector":`<pseudo-page>+|<ident> <pseudo-page>*`,"page-size":`A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger`,"path()":`path( [<fill-rule> ,]? <string> )`,"paint()":`paint( <ident> , <declaration-value>? )`,"perspective()":`perspective( [<length [0,∞]>|none] )`,"polygon()":`polygon( <fill-rule>? , [<length-percentage> <length-percentage>]# )`,"polar-color-space":`hsl|hwb|lch|oklch`,position:`[[left|center|right]||[top|center|bottom]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]?|[[left|right] <length-percentage>]&&[[top|bottom] <length-percentage>]]`,"pow()":`pow( <calc-sum> , <calc-sum> )`,"pseudo-class-selector":`':' <ident-token>|':' <function-token> <any-value> ')'`,"pseudo-element-selector":`':' <pseudo-class-selector>|<legacy-pseudo-element-selector>`,"pseudo-page":`: [left|right|first|blank]`,quote:`open-quote|close-quote|no-open-quote|no-close-quote`,"radial-gradient()":`radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )`,ratio:`<number [0,∞]> [/ <number [0,∞]>]?`,"ray()":`ray( <angle>&&<ray-size>?&&contain?&&[at <position>]? )`,"ray-size":`closest-side|closest-corner|farthest-side|farthest-corner|sides`,"rectangular-color-space":`srgb|srgb-linear|display-p3|a98-rgb|prophoto-rgb|rec2020|lab|oklab|xyz|xyz-d50|xyz-d65`,"relative-selector":`<combinator>? <complex-selector>`,"relative-selector-list":`<relative-selector>#`,"relative-size":`larger|smaller`,"rem()":`rem( <calc-sum> , <calc-sum> )`,"repeat-style":`repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}`,"repeating-conic-gradient()":`repeating-conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )`,"repeating-linear-gradient()":`repeating-linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )`,"repeating-radial-gradient()":`repeating-radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )`,"reversed-counter-name":`reversed( <counter-name> )`,"rgb()":`rgb( <percentage>{3} [/ <alpha-value>]? )|rgb( <number>{3} [/ <alpha-value>]? )|rgb( <percentage>#{3} , <alpha-value>? )|rgb( <number>#{3} , <alpha-value>? )`,"rgba()":`rgba( <percentage>{3} [/ <alpha-value>]? )|rgba( <number>{3} [/ <alpha-value>]? )|rgba( <percentage>#{3} , <alpha-value>? )|rgba( <number>#{3} , <alpha-value>? )`,"rotate()":`rotate( [<angle>|<zero>] )`,"rotate3d()":`rotate3d( <number> , <number> , <number> , [<angle>|<zero>] )`,"rotateX()":`rotateX( [<angle>|<zero>] )`,"rotateY()":`rotateY( [<angle>|<zero>] )`,"rotateZ()":`rotateZ( [<angle>|<zero>] )`,"round()":`round( <rounding-strategy>? , <calc-sum> , <calc-sum> )`,"rounding-strategy":`nearest|up|down|to-zero`,"saturate()":`saturate( <number-percentage> )`,"scale()":`scale( [<number>|<percentage>]#{1,2} )`,"scale3d()":`scale3d( [<number>|<percentage>]#{3} )`,"scaleX()":`scaleX( [<number>|<percentage>] )`,"scaleY()":`scaleY( [<number>|<percentage>] )`,"scaleZ()":`scaleZ( [<number>|<percentage>] )`,"scroll()":`scroll( [<axis>||<scroller>]? )`,scroller:`root|nearest`,"self-position":`center|start|end|self-start|self-end|flex-start|flex-end`,"shape-radius":`<length-percentage>|closest-side|farthest-side`,"sign()":`sign( <calc-sum> )`,"skew()":`skew( [<angle>|<zero>] , [<angle>|<zero>]? )`,"skewX()":`skewX( [<angle>|<zero>] )`,"skewY()":`skewY( [<angle>|<zero>] )`,"sepia()":`sepia( <number-percentage> )`,shadow:`inset?&&<length>{2,4}&&<color>?`,"shadow-t":`[<length>{2,3}&&<color>?]`,shape:`rect( <top> , <right> , <bottom> , <left> )|rect( <top> <right> <bottom> <left> )`,"shape-box":`<box>|margin-box`,"side-or-corner":`[left|right]||[top|bottom]`,"sin()":`sin( <calc-sum> )`,"single-animation":`<'animation-duration'>||<easing-function>||<'animation-delay'>||<single-animation-iteration-count>||<single-animation-direction>||<single-animation-fill-mode>||<single-animation-play-state>||[none|<keyframes-name>]||<single-animation-timeline>`,"single-animation-direction":`normal|reverse|alternate|alternate-reverse`,"single-animation-fill-mode":`none|forwards|backwards|both`,"single-animation-iteration-count":`infinite|<number>`,"single-animation-play-state":`running|paused`,"single-animation-timeline":`auto|none|<dashed-ident>|<scroll()>|<view()>`,"single-transition":`[none|<single-transition-property>]||<time>||<easing-function>||<time>||<transition-behavior-value>`,"single-transition-property":`all|<custom-ident>`,size:`closest-side|farthest-side|closest-corner|farthest-corner|<length>|<length-percentage>{2}`,"sqrt()":`sqrt( <calc-sum> )`,"step-position":`jump-start|jump-end|jump-none|jump-both|start|end`,"step-timing-function":`step-start|step-end|steps( <integer> [, <step-position>]? )`,"subclass-selector":`<id-selector>|<class-selector>|<attribute-selector>|<pseudo-class-selector>`,"supports-condition":`not <supports-in-parens>|<supports-in-parens> [and <supports-in-parens>]*|<supports-in-parens> [or <supports-in-parens>]*`,"supports-in-parens":`( <supports-condition> )|<supports-feature>|<general-enclosed>`,"supports-feature":`<supports-decl>|<supports-selector-fn>`,"supports-decl":`( <declaration> )`,"supports-selector-fn":`selector( <complex-selector> )`,symbol:`<string>|<image>|<custom-ident>`,"tan()":`tan( <calc-sum> )`,target:`<target-counter()>|<target-counters()>|<target-text()>`,"target-counter()":`target-counter( [<string>|<url>] , <custom-ident> , <counter-style>? )`,"target-counters()":`target-counters( [<string>|<url>] , <custom-ident> , <string> , <counter-style>? )`,"target-text()":`target-text( [<string>|<url>] , [content|before|after|first-letter]? )`,"time-percentage":`<time>|<percentage>`,"timeline-range-name":`cover|contain|entry|exit|entry-crossing|exit-crossing`,"easing-function":`linear|<cubic-bezier-timing-function>|<step-timing-function>`,"track-breadth":`<length-percentage>|<flex>|min-content|max-content|auto`,"track-list":`[<line-names>? [<track-size>|<track-repeat>]]+ <line-names>?`,"track-repeat":`repeat( [<integer [1,∞]>] , [<line-names>? <track-size>]+ <line-names>? )`,"track-size":`<track-breadth>|minmax( <inflexible-breadth> , <track-breadth> )|fit-content( <length-percentage> )`,"transform-function":`<matrix()>|<translate()>|<translateX()>|<translateY()>|<scale()>|<scaleX()>|<scaleY()>|<rotate()>|<skew()>|<skewX()>|<skewY()>|<matrix3d()>|<translate3d()>|<translateZ()>|<scale3d()>|<scaleZ()>|<rotate3d()>|<rotateX()>|<rotateY()>|<rotateZ()>|<perspective()>`,"transform-list":`<transform-function>+`,"transition-behavior-value":`normal|allow-discrete`,"translate()":`translate( <length-percentage> , <length-percentage>? )`,"translate3d()":`translate3d( <length-percentage> , <length-percentage> , <length> )`,"translateX()":`translateX( <length-percentage> )`,"translateY()":`translateY( <length-percentage> )`,"translateZ()":`translateZ( <length> )`,"type-or-unit":`string|color|url|integer|number|length|angle|time|frequency|cap|ch|em|ex|ic|lh|rlh|rem|vb|vi|vw|vh|vmin|vmax|mm|Q|cm|in|pt|pc|px|deg|grad|rad|turn|ms|s|Hz|kHz|%`,"type-selector":`<wq-name>|<ns-prefix>? '*'`,"var()":`var( <custom-property-name> , <declaration-value>? )`,"view()":`view( [<axis>||<'view-timeline-inset'>]? )`,"viewport-length":`auto|<length-percentage>`,"visual-box":`content-box|padding-box|border-box`,"wq-name":`<ns-prefix>? <ident-token>`,"-legacy-gradient":`<-webkit-gradient()>|<-legacy-linear-gradient>|<-legacy-repeating-linear-gradient>|<-legacy-radial-gradient>|<-legacy-repeating-radial-gradient>`,"-legacy-linear-gradient":`-moz-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-linear-gradient( <-legacy-linear-gradient-arguments> )`,"-legacy-repeating-linear-gradient":`-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )`,"-legacy-linear-gradient-arguments":`[<angle>|<side-or-corner>]? , <color-stop-list>`,"-legacy-radial-gradient":`-moz-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-radial-gradient( <-legacy-radial-gradient-arguments> )`,"-legacy-repeating-radial-gradient":`-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )`,"-legacy-radial-gradient-arguments":`[<position> ,]? [[[<-legacy-radial-gradient-shape>||<-legacy-radial-gradient-size>]|[<length>|<percentage>]{2}] ,]? <color-stop-list>`,"-legacy-radial-gradient-size":`closest-side|closest-corner|farthest-side|farthest-corner|contain|cover`,"-legacy-radial-gradient-shape":`circle|ellipse`,"-non-standard-font":`-apple-system-body|-apple-system-headline|-apple-system-subheadline|-apple-system-caption1|-apple-system-caption2|-apple-system-footnote|-apple-system-short-body|-apple-system-short-headline|-apple-system-short-subheadline|-apple-system-short-caption1|-apple-system-short-footnote|-apple-system-tall-body`,"-non-standard-color":`-moz-ButtonDefault|-moz-ButtonHoverFace|-moz-ButtonHoverText|-moz-CellHighlight|-moz-CellHighlightText|-moz-Combobox|-moz-ComboboxText|-moz-Dialog|-moz-DialogText|-moz-dragtargetzone|-moz-EvenTreeRow|-moz-Field|-moz-FieldText|-moz-html-CellHighlight|-moz-html-CellHighlightText|-moz-mac-accentdarkestshadow|-moz-mac-accentdarkshadow|-moz-mac-accentface|-moz-mac-accentlightesthighlight|-moz-mac-accentlightshadow|-moz-mac-accentregularhighlight|-moz-mac-accentregularshadow|-moz-mac-chrome-active|-moz-mac-chrome-inactive|-moz-mac-focusring|-moz-mac-menuselect|-moz-mac-menushadow|-moz-mac-menutextselect|-moz-MenuHover|-moz-MenuHoverText|-moz-MenuBarText|-moz-MenuBarHoverText|-moz-nativehyperlinktext|-moz-OddTreeRow|-moz-win-communicationstext|-moz-win-mediatext|-moz-activehyperlinktext|-moz-default-background-color|-moz-default-color|-moz-hyperlinktext|-moz-visitedhyperlinktext|-webkit-activelink|-webkit-focus-ring-color|-webkit-link|-webkit-text`,"-non-standard-image-rendering":`optimize-contrast|-moz-crisp-edges|-o-crisp-edges|-webkit-optimize-contrast`,"-non-standard-overflow":`overlay|-moz-scrollbars-none|-moz-scrollbars-horizontal|-moz-scrollbars-vertical|-moz-hidden-unscrollable`,"-non-standard-size":`intrinsic|min-intrinsic|-webkit-fill-available|-webkit-fit-content|-webkit-min-content|-webkit-max-content|-moz-available|-moz-fit-content|-moz-min-content|-moz-max-content`,"-webkit-gradient()":`-webkit-gradient( <-webkit-gradient-type> , <-webkit-gradient-point> [, <-webkit-gradient-point>|, <-webkit-gradient-radius> , <-webkit-gradient-point>] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )`,"-webkit-gradient-color-stop":`from( <color> )|color-stop( [<number-zero-one>|<percentage>] , <color> )|to( <color> )`,"-webkit-gradient-point":`[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]`,"-webkit-gradient-radius":`<length>|<percentage>`,"-webkit-gradient-type":`linear|radial`,"-webkit-mask-box-repeat":`repeat|stretch|round`,"-ms-filter-function-list":`<-ms-filter-function>+`,"-ms-filter-function":`<-ms-filter-function-progid>|<-ms-filter-function-legacy>`,"-ms-filter-function-progid":`'progid:' [<ident-token> '.']* [<ident-token>|<function-token> <any-value>? )]`,"-ms-filter-function-legacy":`<ident-token>|<function-token> <any-value>? )`,"absolute-color-base":`<hex-color>|<absolute-color-function>|<named-color>|transparent`,"absolute-color-function":`<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<oklab()>|<oklch()>|<color()>`,age:`child|young|old`,"anchor-name":`<dashed-ident>`,"attr-name":`<wq-name>`,"attr-fallback":`<any-value>`,"bg-clip":`<box>|border|text`,bottom:`<length>|auto`,"container-name":`<custom-ident>`,"container-condition":`not <query-in-parens>|<query-in-parens> [[and <query-in-parens>]*|[or <query-in-parens>]*]`,"coord-box":`content-box|padding-box|border-box|fill-box|stroke-box|view-box`,"generic-voice":`[<age>? <gender> <integer>?]`,gender:`male|female|neutral`,"generic-script-specific":`generic( kai )|generic( fangsong )|generic( nastaliq )`,"generic-complete":`serif|sans-serif|system-ui|cursive|fantasy|math|monospace`,"generic-incomplete":`ui-serif|ui-sans-serif|ui-monospace|ui-rounded`,"-non-standard-generic-family":`-apple-system|BlinkMacSystemFont`,left:`<length>|auto`,"color-base":`<hex-color>|<color-function>|<named-color>|<color-mix()>|transparent`,"color-function":`<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<oklab()>|<oklch()>|<color()>`,"system-color":`AccentColor|AccentColorText|ActiveText|ButtonBorder|ButtonFace|ButtonText|Canvas|CanvasText|Field|FieldText|GrayText|Highlight|HighlightText|LinkText|Mark|MarkText|SelectedItem|SelectedItemText|VisitedText`,"device-cmyk()":`<legacy-device-cmyk-syntax>|<modern-device-cmyk-syntax>`,"legacy-device-cmyk-syntax":`device-cmyk( <number>#{4} )`,"modern-device-cmyk-syntax":`device-cmyk( <cmyk-component>{4} [/ [<alpha-value>|none]]? )`,"cmyk-component":`<number>|<percentage>|none`,"color-mix()":`color-mix( <color-interpolation-method> , [<color>&&<percentage [0,100]>?]#{2} )`,"color-space":`<rectangular-color-space>|<polar-color-space>|<custom-color-space>`,"custom-color-space":`<dashed-ident>`,paint:`none|<color>|<url> [none|<color>]?|context-fill|context-stroke`,"palette-identifier":`<dashed-ident>`,right:`<length>|auto`,"scope-start":`<forgiving-selector-list>`,"scope-end":`<forgiving-selector-list>`,"forgiving-selector-list":`<complex-real-selector-list>`,"forgiving-relative-selector-list":`<relative-real-selector-list>`,"selector-list":`<complex-selector-list>`,"complex-real-selector-list":`<complex-real-selector>#`,"simple-selector-list":`<simple-selector>#`,"relative-real-selector-list":`<relative-real-selector>#`,"complex-selector-unit":`[<compound-selector>? <pseudo-compound-selector>*]!`,"complex-real-selector":`<compound-selector> [<combinator>? <compound-selector>]*`,"relative-real-selector":`<combinator>? <complex-real-selector>`,"pseudo-compound-selector":`<pseudo-element-selector> <pseudo-class-selector>*`,"simple-selector":`<type-selector>|<subclass-selector>`,"legacy-pseudo-element-selector":`':' [before|after|first-line|first-letter]`,"single-animation-composition":`replace|add|accumulate`,"svg-length":`<percentage>|<length>|<number>`,"svg-writing-mode":`lr-tb|rl-tb|tb-rl|lr|rl|tb`,top:`<length>|auto`,x:`<number>`,y:`<number>`,declaration:`<ident-token> : <declaration-value>? ['!' important]?`,"declaration-list":`[<declaration>? ';']* <declaration>?`,url:`url( <string> <url-modifier>* )|<url-token>`,"url-modifier":`<ident>|<function-token> <any-value> )`,"number-zero-one":`<number [0,1]>`,"number-one-or-greater":`<number [1,∞]>`,"color()":`color( <colorspace-params> [/ [<alpha-value>|none]]? )`,"colorspace-params":`[<predefined-rgb-params>|<xyz-params>]`,"predefined-rgb-params":`<predefined-rgb> [<number>|<percentage>|none]{3}`,"predefined-rgb":`srgb|srgb-linear|display-p3|a98-rgb|prophoto-rgb|rec2020`,"xyz-params":`<xyz-space> [<number>|<percentage>|none]{3}`,"xyz-space":`xyz|xyz-d50|xyz-d65`,"oklab()":`oklab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )`,"oklch()":`oklch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )`,"offset-path":`<ray()>|<url>|<basic-shape>`,"rect()":`rect( [<length-percentage>|auto]{4} [round <'border-radius'>]? )`,"xywh()":`xywh( <length-percentage>{2} <length-percentage [0,∞]>{2} [round <'border-radius'>]? )`,"query-in-parens":`( <container-condition> )|( <size-feature> )|style( <style-query> )|<general-enclosed>`,"size-feature":`<mf-plain>|<mf-boolean>|<mf-range>`,"style-feature":`<declaration>`,"style-query":`<style-condition>|<style-feature>`,"style-condition":`not <style-in-parens>|<style-in-parens> [[and <style-in-parens>]*|[or <style-in-parens>]*]`,"style-in-parens":`( <style-condition> )|( <style-feature> )|<general-enclosed>`,"-non-standard-display":`-ms-inline-flexbox|-ms-grid|-ms-inline-grid|-webkit-flex|-webkit-inline-flex|-webkit-box|-webkit-inline-box|-moz-inline-stack|-moz-box|-moz-inline-box`,"inset-area":`[[left|center|right|span-left|span-right|x-start|x-end|span-x-start|span-x-end|x-self-start|x-self-end|span-x-self-start|span-x-self-end|span-all]||[top|center|bottom|span-top|span-bottom|y-start|y-end|span-y-start|span-y-end|y-self-start|y-self-end|span-y-self-start|span-y-self-end|span-all]|[block-start|center|block-end|span-block-start|span-block-end|span-all]||[inline-start|center|inline-end|span-inline-start|span-inline-end|span-all]|[self-block-start|self-block-end|span-self-block-start|span-self-block-end|span-all]||[self-inline-start|self-inline-end|span-self-inline-start|span-self-inline-end|span-all]|[start|center|end|span-start|span-end|span-all]{1,2}|[self-start|center|self-end|span-self-start|span-self-end|span-all]{1,2}]`,"position-area":`[[left|center|right|span-left|span-right|x-start|x-end|span-x-start|span-x-end|x-self-start|x-self-end|span-x-self-start|span-x-self-end|span-all]||[top|center|bottom|span-top|span-bottom|y-start|y-end|span-y-start|span-y-end|y-self-start|y-self-end|span-y-self-start|span-y-self-end|span-all]|[block-start|center|block-end|span-block-start|span-block-end|span-all]||[inline-start|center|inline-end|span-inline-start|span-inline-end|span-all]|[self-block-start|center|self-block-end|span-self-block-start|span-self-block-end|span-all]||[self-inline-start|center|self-inline-end|span-self-inline-start|span-self-inline-end|span-all]|[start|center|end|span-start|span-end|span-all]{1,2}|[self-start|center|self-end|span-self-start|span-self-end|span-all]{1,2}]`,"anchor()":`anchor( <anchor-element>?&&<anchor-side> , <length-percentage>? )`,"anchor-side":`inside|outside|top|left|right|bottom|start|end|self-start|self-end|<percentage>|center`,"anchor-size()":`anchor-size( [<anchor-element>||<anchor-size>]? , <length-percentage>? )`,"anchor-size":`width|height|block|inline|self-block|self-inline`,"anchor-element":`<dashed-ident>`,"try-size":`most-width|most-height|most-block-size|most-inline-size`,"try-tactic":`flip-block||flip-inline||flip-start`,"font-variant-css2":`normal|small-caps`,"font-width-css3":`normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded`,"system-family-name":`caption|icon|menu|message-box|small-caption|status-bar`},properties:{"--*":`<declaration-value>`,"-ms-accelerator":`false|true`,"-ms-block-progression":`tb|rl|bt|lr`,"-ms-content-zoom-chaining":`none|chained`,"-ms-content-zooming":`none|zoom`,"-ms-content-zoom-limit":`<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>`,"-ms-content-zoom-limit-max":`<percentage>`,"-ms-content-zoom-limit-min":`<percentage>`,"-ms-content-zoom-snap":`<'-ms-content-zoom-snap-type'>||<'-ms-content-zoom-snap-points'>`,"-ms-content-zoom-snap-points":`snapInterval( <percentage> , <percentage> )|snapList( <percentage># )`,"-ms-content-zoom-snap-type":`none|proximity|mandatory`,"-ms-filter":`<string>`,"-ms-flow-from":`[none|<custom-ident>]#`,"-ms-flow-into":`[none|<custom-ident>]#`,"-ms-grid-columns":`none|<track-list>|<auto-track-list>`,"-ms-grid-rows":`none|<track-list>|<auto-track-list>`,"-ms-high-contrast-adjust":`auto|none`,"-ms-hyphenate-limit-chars":`auto|<integer>{1,3}`,"-ms-hyphenate-limit-lines":`no-limit|<integer>`,"-ms-hyphenate-limit-zone":`<percentage>|<length>`,"-ms-ime-align":`auto|after`,"-ms-overflow-style":`auto|none|scrollbar|-ms-autohiding-scrollbar`,"-ms-scrollbar-3dlight-color":`<color>`,"-ms-scrollbar-arrow-color":`<color>`,"-ms-scrollbar-base-color":`<color>`,"-ms-scrollbar-darkshadow-color":`<color>`,"-ms-scrollbar-face-color":`<color>`,"-ms-scrollbar-highlight-color":`<color>`,"-ms-scrollbar-shadow-color":`<color>`,"-ms-scrollbar-track-color":`<color>`,"-ms-scroll-chaining":`chained|none`,"-ms-scroll-limit":`<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>`,"-ms-scroll-limit-x-max":`auto|<length>`,"-ms-scroll-limit-x-min":`<length>`,"-ms-scroll-limit-y-max":`auto|<length>`,"-ms-scroll-limit-y-min":`<length>`,"-ms-scroll-rails":`none|railed`,"-ms-scroll-snap-points-x":`snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )`,"-ms-scroll-snap-points-y":`snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )`,"-ms-scroll-snap-type":`none|proximity|mandatory`,"-ms-scroll-snap-x":`<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>`,"-ms-scroll-snap-y":`<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>`,"-ms-scroll-translation":`none|vertical-to-horizontal`,"-ms-text-autospace":`none|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space`,"-ms-touch-select":`grippers|none`,"-ms-user-select":`none|element|text`,"-ms-wrap-flow":`auto|both|start|end|maximum|clear`,"-ms-wrap-margin":`<length>`,"-ms-wrap-through":`wrap|none`,"-moz-appearance":`none|button|button-arrow-down|button-arrow-next|button-arrow-previous|button-arrow-up|button-bevel|button-focus|caret|checkbox|checkbox-container|checkbox-label|checkmenuitem|dualbutton|groupbox|listbox|listitem|menuarrow|menubar|menucheckbox|menuimage|menuitem|menuitemtext|menulist|menulist-button|menulist-text|menulist-textfield|menupopup|menuradio|menuseparator|meterbar|meterchunk|progressbar|progressbar-vertical|progresschunk|progresschunk-vertical|radio|radio-container|radio-label|radiomenuitem|range|range-thumb|resizer|resizerpanel|scale-horizontal|scalethumbend|scalethumb-horizontal|scalethumbstart|scalethumbtick|scalethumb-vertical|scale-vertical|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|separator|sheet|spinner|spinner-downbutton|spinner-textfield|spinner-upbutton|splitter|statusbar|statusbarpanel|tab|tabpanel|tabpanels|tab-scroll-arrow-back|tab-scroll-arrow-forward|textfield|textfield-multiline|toolbar|toolbarbutton|toolbarbutton-dropdown|toolbargripper|toolbox|tooltip|treeheader|treeheadercell|treeheadersortarrow|treeitem|treeline|treetwisty|treetwistyopen|treeview|-moz-mac-unified-toolbar|-moz-win-borderless-glass|-moz-win-browsertabbar-toolbox|-moz-win-communicationstext|-moz-win-communications-toolbox|-moz-win-exclude-glass|-moz-win-glass|-moz-win-mediatext|-moz-win-media-toolbox|-moz-window-button-box|-moz-window-button-box-maximized|-moz-window-button-close|-moz-window-button-maximize|-moz-window-button-minimize|-moz-window-button-restore|-moz-window-frame-bottom|-moz-window-frame-left|-moz-window-frame-right|-moz-window-titlebar|-moz-window-titlebar-maximized`,"-moz-binding":`<url>|none`,"-moz-border-bottom-colors":`<color>+|none`,"-moz-border-left-colors":`<color>+|none`,"-moz-border-right-colors":`<color>+|none`,"-moz-border-top-colors":`<color>+|none`,"-moz-context-properties":`none|[fill|fill-opacity|stroke|stroke-opacity]#`,"-moz-float-edge":`border-box|content-box|margin-box|padding-box`,"-moz-force-broken-image-icon":`0|1`,"-moz-image-region":`<shape>|auto`,"-moz-orient":`inline|block|horizontal|vertical`,"-moz-outline-radius":`<outline-radius>{1,4} [/ <outline-radius>{1,4}]?`,"-moz-outline-radius-bottomleft":`<outline-radius>`,"-moz-outline-radius-bottomright":`<outline-radius>`,"-moz-outline-radius-topleft":`<outline-radius>`,"-moz-outline-radius-topright":`<outline-radius>`,"-moz-stack-sizing":`ignore|stretch-to-fit`,"-moz-text-blink":`none|blink`,"-moz-user-focus":`ignore|normal|select-after|select-before|select-menu|select-same|select-all|none`,"-moz-user-input":`auto|none|enabled|disabled`,"-moz-user-modify":`read-only|read-write|write-only`,"-moz-window-dragging":`drag|no-drag`,"-moz-window-shadow":`default|menu|tooltip|sheet|none`,"-webkit-appearance":`none|button|button-bevel|caps-lock-indicator|caret|checkbox|default-button|inner-spin-button|listbox|listitem|media-controls-background|media-controls-fullscreen-background|media-current-time-display|media-enter-fullscreen-button|media-exit-fullscreen-button|media-fullscreen-button|media-mute-button|media-overlay-play-button|media-play-button|media-seek-back-button|media-seek-forward-button|media-slider|media-sliderthumb|media-time-remaining-display|media-toggle-closed-captions-button|media-volume-slider|media-volume-slider-container|media-volume-sliderthumb|menulist|menulist-button|menulist-text|menulist-textfield|meter|progress-bar|progress-bar-value|push-button|radio|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbargripper-horizontal|scrollbargripper-vertical|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|searchfield-cancel-button|searchfield-decoration|searchfield-results-button|searchfield-results-decoration|slider-horizontal|slider-vertical|sliderthumb-horizontal|sliderthumb-vertical|square-button|textarea|textfield|-apple-pay-button`,"-webkit-border-before":`<'border-width'>||<'border-style'>||<color>`,"-webkit-border-before-color":`<color>`,"-webkit-border-before-style":`<'border-style'>`,"-webkit-border-before-width":`<'border-width'>`,"-webkit-box-reflect":`[above|below|right|left]? <length>? <image>?`,"-webkit-line-clamp":`none|<integer>`,"-webkit-mask":`[<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||[<box>|border|padding|content|text]||[<box>|border|padding|content]]#`,"-webkit-mask-attachment":`<attachment>#`,"-webkit-mask-clip":`[<box>|border|padding|content|text]#`,"-webkit-mask-composite":`<composite-style>#`,"-webkit-mask-image":`<mask-reference>#`,"-webkit-mask-origin":`[<box>|border|padding|content]#`,"-webkit-mask-position":`<position>#`,"-webkit-mask-position-x":`[<length-percentage>|left|center|right]#`,"-webkit-mask-position-y":`[<length-percentage>|top|center|bottom]#`,"-webkit-mask-repeat":`<repeat-style>#`,"-webkit-mask-repeat-x":`repeat|no-repeat|space|round`,"-webkit-mask-repeat-y":`repeat|no-repeat|space|round`,"-webkit-mask-size":`<bg-size>#`,"-webkit-overflow-scrolling":`auto|touch`,"-webkit-tap-highlight-color":`<color>`,"-webkit-text-fill-color":`<color>`,"-webkit-text-stroke":`<length>||<color>`,"-webkit-text-stroke-color":`<color>`,"-webkit-text-stroke-width":`<length>`,"-webkit-touch-callout":`default|none`,"-webkit-user-modify":`read-only|read-write|read-write-plaintext-only`,"accent-color":`auto|<color>`,"align-content":`normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>`,"align-items":`normal|stretch|<baseline-position>|[<overflow-position>? <self-position>]`,"align-self":`auto|normal|stretch|<baseline-position>|<overflow-position>? <self-position>`,"align-tracks":`[normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>]#`,all:`initial|inherit|unset|revert|revert-layer`,"anchor-name":`none|<dashed-ident>#`,"anchor-scope":`none|all|<dashed-ident>#`,animation:`<single-animation>#`,"animation-composition":`<single-animation-composition>#`,"animation-delay":`<time>#`,"animation-direction":`<single-animation-direction>#`,"animation-duration":`<time>#`,"animation-fill-mode":`<single-animation-fill-mode>#`,"animation-iteration-count":`<single-animation-iteration-count>#`,"animation-name":`[none|<keyframes-name>]#`,"animation-play-state":`<single-animation-play-state>#`,"animation-range":`[<'animation-range-start'> <'animation-range-end'>?]#`,"animation-range-end":`[normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#`,"animation-range-start":`[normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#`,"animation-timing-function":`<easing-function>#`,"animation-timeline":`<single-animation-timeline>#`,appearance:`none|auto|textfield|menulist-button|<compat-auto>`,"aspect-ratio":`auto||<ratio>`,azimuth:`<angle>|[[left-side|far-left|left|center-left|center|center-right|right|far-right|right-side]||behind]|leftwards|rightwards`,"backdrop-filter":`none|<filter-function-list>`,"backface-visibility":`visible|hidden`,background:`[<bg-layer> ,]* <final-bg-layer>`,"background-attachment":`<attachment>#`,"background-blend-mode":`<blend-mode>#`,"background-clip":`<bg-clip>#`,"background-color":`<color>`,"background-image":`<bg-image>#`,"background-origin":`<box>#`,"background-position":`<bg-position>#`,"background-position-x":`[center|[[left|right|x-start|x-end]? <length-percentage>?]!]#`,"background-position-y":`[center|[[top|bottom|y-start|y-end]? <length-percentage>?]!]#`,"background-repeat":`<repeat-style>#`,"background-size":`<bg-size>#`,"block-size":`<'width'>`,border:`<line-width>||<line-style>||<color>`,"border-block":`<'border-top-width'>||<'border-top-style'>||<color>`,"border-block-color":`<'border-top-color'>{1,2}`,"border-block-style":`<'border-top-style'>`,"border-block-width":`<'border-top-width'>`,"border-block-end":`<'border-top-width'>||<'border-top-style'>||<color>`,"border-block-end-color":`<'border-top-color'>`,"border-block-end-style":`<'border-top-style'>`,"border-block-end-width":`<'border-top-width'>`,"border-block-start":`<'border-top-width'>||<'border-top-style'>||<color>`,"border-block-start-color":`<'border-top-color'>`,"border-block-start-style":`<'border-top-style'>`,"border-block-start-width":`<'border-top-width'>`,"border-bottom":`<line-width>||<line-style>||<color>`,"border-bottom-color":`<'border-top-color'>`,"border-bottom-left-radius":`<length-percentage>{1,2}`,"border-bottom-right-radius":`<length-percentage>{1,2}`,"border-bottom-style":`<line-style>`,"border-bottom-width":`<line-width>`,"border-collapse":`collapse|separate`,"border-color":`<color>{1,4}`,"border-end-end-radius":`<length-percentage>{1,2}`,"border-end-start-radius":`<length-percentage>{1,2}`,"border-image":`<'border-image-source'>||<'border-image-slice'> [/ <'border-image-width'>|/ <'border-image-width'>? / <'border-image-outset'>]?||<'border-image-repeat'>`,"border-image-outset":`[<length>|<number>]{1,4}`,"border-image-repeat":`[stretch|repeat|round|space]{1,2}`,"border-image-slice":`<number-percentage>{1,4}&&fill?`,"border-image-source":`none|<image>`,"border-image-width":`[<length-percentage>|<number>|auto]{1,4}`,"border-inline":`<'border-top-width'>||<'border-top-style'>||<color>`,"border-inline-end":`<'border-top-width'>||<'border-top-style'>||<color>`,"border-inline-color":`<'border-top-color'>{1,2}`,"border-inline-style":`<'border-top-style'>`,"border-inline-width":`<'border-top-width'>`,"border-inline-end-color":`<'border-top-color'>`,"border-inline-end-style":`<'border-top-style'>`,"border-inline-end-width":`<'border-top-width'>`,"border-inline-start":`<'border-top-width'>||<'border-top-style'>||<color>`,"border-inline-start-color":`<'border-top-color'>`,"border-inline-start-style":`<'border-top-style'>`,"border-inline-start-width":`<'border-top-width'>`,"border-left":`<line-width>||<line-style>||<color>`,"border-left-color":`<color>`,"border-left-style":`<line-style>`,"border-left-width":`<line-width>`,"border-radius":`<length-percentage>{1,4} [/ <length-percentage>{1,4}]?`,"border-right":`<line-width>||<line-style>||<color>`,"border-right-color":`<color>`,"border-right-style":`<line-style>`,"border-right-width":`<line-width>`,"border-spacing":`<length> <length>?`,"border-start-end-radius":`<length-percentage>{1,2}`,"border-start-start-radius":`<length-percentage>{1,2}`,"border-style":`<line-style>{1,4}`,"border-top":`<line-width>||<line-style>||<color>`,"border-top-color":`<color>`,"border-top-left-radius":`<length-percentage>{1,2}`,"border-top-right-radius":`<length-percentage>{1,2}`,"border-top-style":`<line-style>`,"border-top-width":`<line-width>`,"border-width":`<line-width>{1,4}`,bottom:`<length>|<percentage>|auto`,"box-align":`start|center|end|baseline|stretch`,"box-decoration-break":`slice|clone`,"box-direction":`normal|reverse|inherit`,"box-flex":`<number>`,"box-flex-group":`<integer>`,"box-lines":`single|multiple`,"box-ordinal-group":`<integer>`,"box-orient":`horizontal|vertical|inline-axis|block-axis|inherit`,"box-pack":`start|center|end|justify`,"box-shadow":`none|<shadow>#`,"box-sizing":`content-box|border-box`,"break-after":`auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region`,"break-before":`auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region`,"break-inside":`auto|avoid|avoid-page|avoid-column|avoid-region`,"caption-side":`top|bottom|block-start|block-end|inline-start|inline-end`,caret:`<'caret-color'>||<'caret-shape'>`,"caret-color":`auto|<color>`,"caret-shape":`auto|bar|block|underscore`,clear:`none|left|right|both|inline-start|inline-end`,clip:`<shape>|auto`,"clip-path":`<clip-source>|[<basic-shape>||<geometry-box>]|none`,"clip-rule":`nonzero|evenodd`,color:`<color>`,"color-interpolation-filters":`auto|sRGB|linearRGB`,"color-scheme":`normal|[light|dark|<custom-ident>]+&&only?`,"column-count":`<integer>|auto`,"column-fill":`auto|balance`,"column-gap":`normal|<length-percentage>`,"column-rule":`<'column-rule-width'>||<'column-rule-style'>||<'column-rule-color'>`,"column-rule-color":`<color>`,"column-rule-style":`<'border-style'>`,"column-rule-width":`<'border-width'>`,"column-span":`none|all`,"column-width":`<length>|auto`,columns:`<'column-width'>||<'column-count'>`,contain:`none|strict|content|[[size||inline-size]||layout||style||paint]`,"contain-intrinsic-size":`[auto? [none|<length>]]{1,2}`,"contain-intrinsic-block-size":`auto? [none|<length>]`,"contain-intrinsic-height":`auto? [none|<length>]`,"contain-intrinsic-inline-size":`auto? [none|<length>]`,"contain-intrinsic-width":`auto? [none|<length>]`,container:`<'container-name'> [/ <'container-type'>]?`,"container-name":`none|<custom-ident>+`,"container-type":`normal||[size|inline-size]`,content:`normal|none|[<content-replacement>|<content-list>] [/ [<string>|<counter>]+]?`,"content-visibility":`visible|auto|hidden`,"counter-increment":`[<counter-name> <integer>?]+|none`,"counter-reset":`[<counter-name> <integer>?|<reversed-counter-name> <integer>?]+|none`,"counter-set":`[<counter-name> <integer>?]+|none`,cursor:`[[<url> [<x> <y>]? ,]* [auto|default|none|context-menu|help|pointer|progress|wait|cell|crosshair|text|vertical-text|alias|copy|move|no-drop|not-allowed|e-resize|n-resize|ne-resize|nw-resize|s-resize|se-resize|sw-resize|w-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing|hand|-webkit-grab|-webkit-grabbing|-webkit-zoom-in|-webkit-zoom-out|-moz-grab|-moz-grabbing|-moz-zoom-in|-moz-zoom-out]]`,d:`none|path( <string> )`,cx:`<length>|<percentage>`,cy:`<length>|<percentage>`,direction:`ltr|rtl`,display:`[<display-outside>||<display-inside>]|<display-listitem>|<display-internal>|<display-box>|<display-legacy>|<-non-standard-display>`,"dominant-baseline":`auto|use-script|no-change|reset-size|ideographic|alphabetic|hanging|mathematical|central|middle|text-after-edge|text-before-edge`,"empty-cells":`show|hide`,"field-sizing":`content|fixed`,fill:`<paint>`,"fill-opacity":`<number-zero-one>`,"fill-rule":`nonzero|evenodd`,filter:`none|<filter-function-list>|<-ms-filter-function-list>`,flex:`none|[<'flex-grow'> <'flex-shrink'>?||<'flex-basis'>]`,"flex-basis":`content|<'width'>`,"flex-direction":`row|row-reverse|column|column-reverse`,"flex-flow":`<'flex-direction'>||<'flex-wrap'>`,"flex-grow":`<number>`,"flex-shrink":`<number>`,"flex-wrap":`nowrap|wrap|wrap-reverse`,float:`left|right|none|inline-start|inline-end`,font:`[[<'font-style'>||<font-variant-css2>||<'font-weight'>||<font-width-css3>]? <'font-size'> [/ <'line-height'>]? <'font-family'>#]|<system-family-name>|<-non-standard-font>`,"font-family":`[<family-name>|<generic-family>]#`,"font-feature-settings":`normal|<feature-tag-value>#`,"font-kerning":`auto|normal|none`,"font-language-override":`normal|<string>`,"font-optical-sizing":`auto|none`,"font-palette":`normal|light|dark|<palette-identifier>`,"font-variation-settings":`normal|[<string> <number>]#`,"font-size":`<absolute-size>|<relative-size>|<length-percentage>`,"font-size-adjust":`none|[ex-height|cap-height|ch-width|ic-width|ic-height]? [from-font|<number>]`,"font-smooth":`auto|never|always|<absolute-size>|<length>`,"font-stretch":`<font-stretch-absolute>`,"font-style":`normal|italic|oblique <angle>?`,"font-synthesis":`none|[weight||style||small-caps||position]`,"font-synthesis-position":`auto|none`,"font-synthesis-small-caps":`auto|none`,"font-synthesis-style":`auto|none`,"font-synthesis-weight":`auto|none`,"font-variant":`normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]`,"font-variant-alternates":`normal|[stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )]`,"font-variant-caps":`normal|small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps`,"font-variant-east-asian":`normal|[<east-asian-variant-values>||<east-asian-width-values>||ruby]`,"font-variant-emoji":`normal|text|emoji|unicode`,"font-variant-ligatures":`normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>]`,"font-variant-numeric":`normal|[<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero]`,"font-variant-position":`normal|sub|super`,"font-weight":`<font-weight-absolute>|bolder|lighter`,"forced-color-adjust":`auto|none`,gap:`<'row-gap'> <'column-gap'>?`,grid:`<'grid-template'>|<'grid-template-rows'> / [auto-flow&&dense?] <'grid-auto-columns'>?|[auto-flow&&dense?] <'grid-auto-rows'>? / <'grid-template-columns'>`,"grid-area":`<grid-line> [/ <grid-line>]{0,3}`,"grid-auto-columns":`<track-size>+`,"grid-auto-flow":`[row|column]||dense`,"grid-auto-rows":`<track-size>+`,"grid-column":`<grid-line> [/ <grid-line>]?`,"grid-column-end":`<grid-line>`,"grid-column-gap":`<length-percentage>`,"grid-column-start":`<grid-line>`,"grid-gap":`<'grid-row-gap'> <'grid-column-gap'>?`,"grid-row":`<grid-line> [/ <grid-line>]?`,"grid-row-end":`<grid-line>`,"grid-row-gap":`<length-percentage>`,"grid-row-start":`<grid-line>`,"grid-template":`none|[<'grid-template-rows'> / <'grid-template-columns'>]|[<line-names>? <string> <track-size>? <line-names>?]+ [/ <explicit-track-list>]?`,"grid-template-areas":`none|<string>+`,"grid-template-columns":`none|<track-list>|<auto-track-list>|subgrid <line-name-list>?`,"grid-template-rows":`none|<track-list>|<auto-track-list>|subgrid <line-name-list>?`,"hanging-punctuation":`none|[first||[force-end|allow-end]||last]`,height:`auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>`,"hyphenate-character":`auto|<string>`,"hyphenate-limit-chars":`[auto|<integer>]{1,3}`,hyphens:`none|manual|auto`,"image-orientation":`from-image|<angle>|[<angle>? flip]`,"image-rendering":`auto|crisp-edges|pixelated|optimizeSpeed|optimizeQuality|<-non-standard-image-rendering>`,"image-resolution":`[from-image||<resolution>]&&snap?`,"ime-mode":`auto|normal|active|inactive|disabled`,"initial-letter":`normal|[<number> <integer>?]`,"initial-letter-align":`[auto|alphabetic|hanging|ideographic]`,"inline-size":`<'width'>`,"input-security":`auto|none`,inset:`<'top'>{1,4}`,"inset-block":`<'top'>{1,2}`,"inset-block-end":`<'top'>`,"inset-block-start":`<'top'>`,"inset-inline":`<'top'>{1,2}`,"inset-inline-end":`<'top'>`,"inset-inline-start":`<'top'>`,"interpolate-size":`numeric-only|allow-keywords`,isolation:`auto|isolate`,"justify-content":`normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]`,"justify-items":`normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]|legacy|legacy&&[left|right|center]`,"justify-self":`auto|normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]`,"justify-tracks":`[normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]]#`,left:`<length>|<percentage>|auto`,"letter-spacing":`normal|<length-percentage>`,"line-break":`auto|loose|normal|strict|anywhere`,"line-clamp":`none|<integer>`,"line-height":`normal|<number>|<length>|<percentage>`,"line-height-step":`<length>`,"list-style":`<'list-style-type'>||<'list-style-position'>||<'list-style-image'>`,"list-style-image":`<image>|none`,"list-style-position":`inside|outside`,"list-style-type":`<counter-style>|<string>|none`,margin:`[<length>|<percentage>|auto]{1,4}`,"margin-block":`<'margin-left'>{1,2}`,"margin-block-end":`<'margin-left'>`,"margin-block-start":`<'margin-left'>`,"margin-bottom":`<length>|<percentage>|auto`,"margin-inline":`<'margin-left'>{1,2}`,"margin-inline-end":`<'margin-left'>`,"margin-inline-start":`<'margin-left'>`,"margin-left":`<length>|<percentage>|auto`,"margin-right":`<length>|<percentage>|auto`,"margin-top":`<length>|<percentage>|auto`,"margin-trim":`none|in-flow|all`,marker:`none|<url>`,"marker-end":`none|<url>`,"marker-mid":`none|<url>`,"marker-start":`none|<url>`,mask:`<mask-layer>#`,"mask-border":`<'mask-border-source'>||<'mask-border-slice'> [/ <'mask-border-width'>? [/ <'mask-border-outset'>]?]?||<'mask-border-repeat'>||<'mask-border-mode'>`,"mask-border-mode":`luminance|alpha`,"mask-border-outset":`[<length>|<number>]{1,4}`,"mask-border-repeat":`[stretch|repeat|round|space]{1,2}`,"mask-border-slice":`<number-percentage>{1,4} fill?`,"mask-border-source":`none|<image>`,"mask-border-width":`[<length-percentage>|<number>|auto]{1,4}`,"mask-clip":`[<geometry-box>|no-clip]#`,"mask-composite":`<compositing-operator>#`,"mask-image":`<mask-reference>#`,"mask-mode":`<masking-mode>#`,"mask-origin":`<geometry-box>#`,"mask-position":`<position>#`,"mask-repeat":`<repeat-style>#`,"mask-size":`<bg-size>#`,"mask-type":`luminance|alpha`,"masonry-auto-flow":`[pack|next]||[definite-first|ordered]`,"math-depth":`auto-add|add( <integer> )|<integer>`,"math-shift":`normal|compact`,"math-style":`normal|compact`,"max-block-size":`<'max-width'>`,"max-height":`none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>`,"max-inline-size":`<'max-width'>`,"max-lines":`none|<integer>`,"max-width":`none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>`,"min-block-size":`<'min-width'>`,"min-height":`auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>`,"min-inline-size":`<'min-width'>`,"min-width":`auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>`,"mix-blend-mode":`<blend-mode>|plus-lighter`,"object-fit":`fill|contain|cover|none|scale-down`,"object-position":`<position>`,offset:`[<'offset-position'>? [<'offset-path'> [<'offset-distance'>||<'offset-rotate'>]?]?]! [/ <'offset-anchor'>]?`,"offset-anchor":`auto|<position>`,"offset-distance":`<length-percentage>`,"offset-path":`none|<offset-path>||<coord-box>`,"offset-position":`normal|auto|<position>`,"offset-rotate":`[auto|reverse]||<angle>`,opacity:`<alpha-value>`,order:`<integer>`,orphans:`<integer>`,outline:`[<'outline-width'>||<'outline-style'>||<'outline-color'>]`,"outline-color":`auto|<color>`,"outline-offset":`<length>`,"outline-style":`auto|<'border-style'>`,"outline-width":`<line-width>`,overflow:`[visible|hidden|clip|scroll|auto]{1,2}|<-non-standard-overflow>`,"overflow-anchor":`auto|none`,"overflow-block":`visible|hidden|clip|scroll|auto`,"overflow-clip-box":`padding-box|content-box`,"overflow-clip-margin":`<visual-box>||<length [0,∞]>`,"overflow-inline":`visible|hidden|clip|scroll|auto`,"overflow-wrap":`normal|break-word|anywhere`,"overflow-x":`visible|hidden|clip|scroll|auto`,"overflow-y":`visible|hidden|clip|scroll|auto`,overlay:`none|auto`,"overscroll-behavior":`[contain|none|auto]{1,2}`,"overscroll-behavior-block":`contain|none|auto`,"overscroll-behavior-inline":`contain|none|auto`,"overscroll-behavior-x":`contain|none|auto`,"overscroll-behavior-y":`contain|none|auto`,padding:`[<length>|<percentage>]{1,4}`,"padding-block":`<'padding-left'>{1,2}`,"padding-block-end":`<'padding-left'>`,"padding-block-start":`<'padding-left'>`,"padding-bottom":`<length>|<percentage>`,"padding-inline":`<'padding-left'>{1,2}`,"padding-inline-end":`<'padding-left'>`,"padding-inline-start":`<'padding-left'>`,"padding-left":`<length>|<percentage>`,"padding-right":`<length>|<percentage>`,"padding-top":`<length>|<percentage>`,page:`auto|<custom-ident>`,"page-break-after":`auto|always|avoid|left|right|recto|verso`,"page-break-before":`auto|always|avoid|left|right|recto|verso`,"page-break-inside":`auto|avoid`,"paint-order":`normal|[fill||stroke||markers]`,perspective:`none|<length>`,"perspective-origin":`<position>`,"place-content":`<'align-content'> <'justify-content'>?`,"place-items":`<'align-items'> <'justify-items'>?`,"place-self":`<'align-self'> <'justify-self'>?`,"pointer-events":`auto|none|visiblePainted|visibleFill|visibleStroke|visible|painted|fill|stroke|all|inherit`,position:`static|relative|absolute|sticky|fixed|-webkit-sticky`,"position-anchor":`auto|<anchor-name>`,"position-area":`none|<position-area>`,"position-try":`<'position-try-order'>? <'position-try-fallbacks'>`,"position-try-fallbacks":`none|[[<dashed-ident>||<try-tactic>]|<'position-area'>]#`,"position-try-order":`normal|<try-size>`,"position-visibility":`always|[anchors-valid||anchors-visible||no-overflow]`,"print-color-adjust":`economy|exact`,quotes:`none|auto|[<string> <string>]+`,r:`<length>|<percentage>`,resize:`none|both|horizontal|vertical|block|inline`,right:`<length>|<percentage>|auto`,rotate:`none|<angle>|[x|y|z|<number>{3}]&&<angle>`,"row-gap":`normal|<length-percentage>`,"ruby-align":`start|center|space-between|space-around`,"ruby-merge":`separate|collapse|auto`,"ruby-position":`[alternate||[over|under]]|inter-character`,rx:`<length>|<percentage>`,ry:`<length>|<percentage>`,scale:`none|<number>{1,3}`,"scrollbar-color":`auto|<color>{2}`,"scrollbar-gutter":`auto|stable&&both-edges?`,"scrollbar-width":`auto|thin|none`,"scroll-behavior":`auto|smooth`,"scroll-margin":`<length>{1,4}`,"scroll-margin-block":`<length>{1,2}`,"scroll-margin-block-start":`<length>`,"scroll-margin-block-end":`<length>`,"scroll-margin-bottom":`<length>`,"scroll-margin-inline":`<length>{1,2}`,"scroll-margin-inline-start":`<length>`,"scroll-margin-inline-end":`<length>`,"scroll-margin-left":`<length>`,"scroll-margin-right":`<length>`,"scroll-margin-top":`<length>`,"scroll-padding":`[auto|<length-percentage>]{1,4}`,"scroll-padding-block":`[auto|<length-percentage>]{1,2}`,"scroll-padding-block-start":`auto|<length-percentage>`,"scroll-padding-block-end":`auto|<length-percentage>`,"scroll-padding-bottom":`auto|<length-percentage>`,"scroll-padding-inline":`[auto|<length-percentage>]{1,2}`,"scroll-padding-inline-start":`auto|<length-percentage>`,"scroll-padding-inline-end":`auto|<length-percentage>`,"scroll-padding-left":`auto|<length-percentage>`,"scroll-padding-right":`auto|<length-percentage>`,"scroll-padding-top":`auto|<length-percentage>`,"scroll-snap-align":`[none|start|end|center]{1,2}`,"scroll-snap-coordinate":`none|<position>#`,"scroll-snap-destination":`<position>`,"scroll-snap-points-x":`none|repeat( <length-percentage> )`,"scroll-snap-points-y":`none|repeat( <length-percentage> )`,"scroll-snap-stop":`normal|always`,"scroll-snap-type":`none|[x|y|block|inline|both] [mandatory|proximity]?`,"scroll-snap-type-x":`none|mandatory|proximity`,"scroll-snap-type-y":`none|mandatory|proximity`,"scroll-timeline":`[<'scroll-timeline-name'>||<'scroll-timeline-axis'>]#`,"scroll-timeline-axis":`[block|inline|x|y]#`,"scroll-timeline-name":`[none|<dashed-ident>]#`,"shape-image-threshold":`<alpha-value>`,"shape-margin":`<length-percentage>`,"shape-outside":`none|[<shape-box>||<basic-shape>]|<image>`,"shape-rendering":`auto|optimizeSpeed|crispEdges|geometricPrecision`,stroke:`<paint>`,"stroke-dasharray":`none|[<svg-length>+]#`,"stroke-dashoffset":`<svg-length>`,"stroke-linecap":`butt|round|square`,"stroke-linejoin":`miter|round|bevel`,"stroke-miterlimit":`<number-one-or-greater>`,"stroke-opacity":`<'opacity'>`,"stroke-width":`<svg-length>`,"tab-size":`<integer>|<length>`,"table-layout":`auto|fixed`,"text-align":`start|end|left|right|center|justify|match-parent`,"text-align-last":`auto|start|end|left|right|center|justify`,"text-anchor":`start|middle|end`,"text-combine-upright":`none|all|[digits <integer>?]`,"text-decoration":`<'text-decoration-line'>||<'text-decoration-style'>||<'text-decoration-color'>||<'text-decoration-thickness'>`,"text-decoration-color":`<color>`,"text-decoration-line":`none|[underline||overline||line-through||blink]|spelling-error|grammar-error`,"text-decoration-skip":`none|[objects||[spaces|[leading-spaces||trailing-spaces]]||edges||box-decoration]`,"text-decoration-skip-ink":`auto|all|none`,"text-decoration-style":`solid|double|dotted|dashed|wavy`,"text-decoration-thickness":`auto|from-font|<length>|<percentage>`,"text-emphasis":`<'text-emphasis-style'>||<'text-emphasis-color'>`,"text-emphasis-color":`<color>`,"text-emphasis-position":`auto|[over|under]&&[right|left]?`,"text-emphasis-style":`none|[[filled|open]||[dot|circle|double-circle|triangle|sesame]]|<string>`,"text-indent":`<length-percentage>&&hanging?&&each-line?`,"text-justify":`auto|inter-character|inter-word|none`,"text-orientation":`mixed|upright|sideways`,"text-overflow":`[clip|ellipsis|<string>]{1,2}`,"text-rendering":`auto|optimizeSpeed|optimizeLegibility|geometricPrecision`,"text-shadow":`none|<shadow-t>#`,"text-size-adjust":`none|auto|<percentage>`,"text-spacing-trim":`space-all|normal|space-first|trim-start|trim-both|trim-all|auto`,"text-transform":`none|capitalize|uppercase|lowercase|full-width|full-size-kana`,"text-underline-offset":`auto|<length>|<percentage>`,"text-underline-position":`auto|from-font|[under||[left|right]]`,"text-wrap":`<'text-wrap-mode'>||<'text-wrap-style'>`,"text-wrap-mode":`auto|wrap|nowrap`,"text-wrap-style":`auto|balance|stable|pretty`,"timeline-scope":`none|<dashed-ident>#`,top:`<length>|<percentage>|auto`,"touch-action":`auto|none|[[pan-x|pan-left|pan-right]||[pan-y|pan-up|pan-down]||pinch-zoom]|manipulation`,transform:`none|<transform-list>`,"transform-box":`content-box|border-box|fill-box|stroke-box|view-box`,"transform-origin":`[<length-percentage>|left|center|right|top|bottom]|[[<length-percentage>|left|center|right]&&[<length-percentage>|top|center|bottom]] <length>?`,"transform-style":`flat|preserve-3d`,transition:`<single-transition>#`,"transition-behavior":`<transition-behavior-value>#`,"transition-delay":`<time>#`,"transition-duration":`<time>#`,"transition-property":`none|<single-transition-property>#`,"transition-timing-function":`<easing-function>#`,translate:`none|<length-percentage> [<length-percentage> <length>?]?`,"unicode-bidi":`normal|embed|isolate|bidi-override|isolate-override|plaintext|-moz-isolate|-moz-isolate-override|-moz-plaintext|-webkit-isolate|-webkit-isolate-override|-webkit-plaintext`,"user-select":`auto|text|none|contain|all`,"vector-effect":`none|non-scaling-stroke|non-scaling-size|non-rotation|fixed-position`,"vertical-align":`baseline|sub|super|text-top|text-bottom|middle|top|bottom|<percentage>|<length>`,"view-timeline":`[<'view-timeline-name'> <'view-timeline-axis'>?]#`,"view-timeline-axis":`[block|inline|x|y]#`,"view-timeline-inset":`[[auto|<length-percentage>]{1,2}]#`,"view-timeline-name":`none|<dashed-ident>#`,"view-transition-name":`none|<custom-ident>`,visibility:`visible|hidden|collapse`,"white-space":`normal|pre|nowrap|pre-wrap|pre-line|break-spaces|[<'white-space-collapse'>||<'text-wrap'>||<'white-space-trim'>]`,"white-space-collapse":`collapse|discard|preserve|preserve-breaks|preserve-spaces|break-spaces`,widows:`<integer>`,width:`auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>`,"will-change":`auto|<animateable-feature>#`,"word-break":`normal|break-all|keep-all|break-word|auto-phrase`,"word-spacing":`normal|<length>`,"word-wrap":`normal|break-word`,"writing-mode":`horizontal-tb|vertical-rl|vertical-lr|sideways-rl|sideways-lr|<svg-writing-mode>`,x:`<length>|<percentage>`,y:`<length>|<percentage>`,"z-index":`auto|<integer>`,zoom:`normal|reset|<number>|<percentage>`,"-moz-background-clip":`padding|border`,"-moz-border-radius-bottomleft":`<'border-bottom-left-radius'>`,"-moz-border-radius-bottomright":`<'border-bottom-right-radius'>`,"-moz-border-radius-topleft":`<'border-top-left-radius'>`,"-moz-border-radius-topright":`<'border-bottom-right-radius'>`,"-moz-control-character-visibility":`visible|hidden`,"-moz-osx-font-smoothing":`auto|grayscale`,"-moz-user-select":`none|text|all|-moz-none`,"-ms-flex-align":`start|end|center|baseline|stretch`,"-ms-flex-item-align":`auto|start|end|center|baseline|stretch`,"-ms-flex-line-pack":`start|end|center|justify|distribute|stretch`,"-ms-flex-negative":`<'flex-shrink'>`,"-ms-flex-pack":`start|end|center|justify|distribute`,"-ms-flex-order":`<integer>`,"-ms-flex-positive":`<'flex-grow'>`,"-ms-flex-preferred-size":`<'flex-basis'>`,"-ms-interpolation-mode":`nearest-neighbor|bicubic`,"-ms-grid-column-align":`start|end|center|stretch`,"-ms-grid-row-align":`start|end|center|stretch`,"-ms-hyphenate-limit-last":`none|always|column|page|spread`,"-webkit-background-clip":`[<box>|border|padding|content|text]#`,"-webkit-column-break-after":`always|auto|avoid`,"-webkit-column-break-before":`always|auto|avoid`,"-webkit-column-break-inside":`always|auto|avoid`,"-webkit-font-smoothing":`auto|none|antialiased|subpixel-antialiased`,"-webkit-mask-box-image":`[<url>|<gradient>|none] [<length-percentage>{4} <-webkit-mask-box-repeat>{2}]?`,"-webkit-print-color-adjust":`economy|exact`,"-webkit-text-security":`none|circle|disc|square`,"-webkit-user-drag":`none|element|auto`,"-webkit-user-select":`auto|none|text|all`,"alignment-baseline":`auto|baseline|before-edge|text-before-edge|middle|central|after-edge|text-after-edge|ideographic|alphabetic|hanging|mathematical`,"baseline-shift":`baseline|sub|super|<svg-length>`,behavior:`<url>+`,cue:`<'cue-before'> <'cue-after'>?`,"cue-after":`<url> <decibel>?|none`,"cue-before":`<url> <decibel>?|none`,"glyph-orientation-horizontal":`<angle>`,"glyph-orientation-vertical":`<angle>`,kerning:`auto|<svg-length>`,pause:`<'pause-before'> <'pause-after'>?`,"pause-after":`<time>|none|x-weak|weak|medium|strong|x-strong`,"pause-before":`<time>|none|x-weak|weak|medium|strong|x-strong`,rest:`<'rest-before'> <'rest-after'>?`,"rest-after":`<time>|none|x-weak|weak|medium|strong|x-strong`,"rest-before":`<time>|none|x-weak|weak|medium|strong|x-strong`,src:`[<url> [format( <string># )]?|local( <family-name> )]#`,speak:`auto|never|always`,"speak-as":`normal|spell-out||digits||[literal-punctuation|no-punctuation]`,"unicode-range":`<urange>#`,"voice-balance":`<number>|left|center|right|leftwards|rightwards`,"voice-duration":`auto|<time>`,"voice-family":`[[<family-name>|<generic-voice>] ,]* [<family-name>|<generic-voice>]|preserve`,"voice-pitch":`<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]`,"voice-range":`<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]`,"voice-rate":`[normal|x-slow|slow|medium|fast|x-fast]||<percentage>`,"voice-stress":`normal|strong|moderate|none|reduced`,"voice-volume":`silent|[[x-soft|soft|medium|loud|x-loud]||<decibel>]`,"white-space-trim":`none|discard-before||discard-after||discard-inner`},atrules:{charset:{prelude:`<string>`,descriptors:null},"counter-style":{prelude:`<counter-style-name>`,descriptors:{"additive-symbols":`[<integer>&&<symbol>]#`,fallback:`<counter-style-name>`,negative:`<symbol> <symbol>?`,pad:`<integer>&&<symbol>`,prefix:`<symbol>`,range:`[[<integer>|infinite]{2}]#|auto`,"speak-as":`auto|bullets|numbers|words|spell-out|<counter-style-name>`,suffix:`<symbol>`,symbols:`<symbol>+`,system:`cyclic|numeric|alphabetic|symbolic|additive|[fixed <integer>?]|[extends <counter-style-name>]`}},document:{prelude:`[<url>|url-prefix( <string> )|domain( <string> )|media-document( <string> )|regexp( <string> )]#`,descriptors:null},"font-palette-values":{prelude:`<dashed-ident>`,descriptors:{"base-palette":`light|dark|<integer [0,∞]>`,"font-family":`<family-name>#`,"override-colors":`[<integer [0,∞]> <absolute-color-base>]#`}},"font-face":{prelude:null,descriptors:{"ascent-override":`normal|<percentage>`,"descent-override":`normal|<percentage>`,"font-display":`[auto|block|swap|fallback|optional]`,"font-family":`<family-name>`,"font-feature-settings":`normal|<feature-tag-value>#`,"font-variation-settings":`normal|[<string> <number>]#`,"font-stretch":`<font-stretch-absolute>{1,2}`,"font-style":`normal|italic|oblique <angle>{0,2}`,"font-weight":`<font-weight-absolute>{1,2}`,"line-gap-override":`normal|<percentage>`,"size-adjust":`<percentage>`,src:`[<url> [format( <string># )]?|local( <family-name> )]#`,"unicode-range":`<urange>#`}},"font-feature-values":{prelude:`<family-name>#`,descriptors:null},import:{prelude:`[<string>|<url>] [layer|layer( <layer-name> )]? [supports( [<supports-condition>|<declaration>] )]? <media-query-list>?`,descriptors:null},keyframes:{prelude:`<keyframes-name>`,descriptors:null},layer:{prelude:`[<layer-name>#|<layer-name>?]`,descriptors:null},media:{prelude:`<media-query-list>`,descriptors:null},namespace:{prelude:`<namespace-prefix>? [<string>|<url>]`,descriptors:null},page:{prelude:`<page-selector-list>`,descriptors:{bleed:`auto|<length>`,marks:`none|[crop||cross]`,"page-orientation":`upright|rotate-left|rotate-right`,size:`<length>{1,2}|auto|[<page-size>||[portrait|landscape]]`}},"position-try":{prelude:`<dashed-ident>`,descriptors:{top:`<'top'>`,left:`<'left'>`,bottom:`<'bottom'>`,right:`<'right'>`,"inset-block-start":`<'inset-block-start'>`,"inset-block-end":`<'inset-block-end'>`,"inset-inline-start":`<'inset-inline-start'>`,"inset-inline-end":`<'inset-inline-end'>`,"inset-block":`<'inset-block'>`,"inset-inline":`<'inset-inline'>`,inset:`<'inset'>`,"margin-top":`<'margin-top'>`,"margin-left":`<'margin-left'>`,"margin-bottom":`<'margin-bottom'>`,"margin-right":`<'margin-right'>`,"margin-block-start":`<'margin-block-start'>`,"margin-block-end":`<'margin-block-end'>`,"margin-inline-start":`<'margin-inline-start'>`,"margin-inline-end":`<'margin-inline-end'>`,margin:`<'margin'>`,"margin-block":`<'margin-block'>`,"margin-inline":`<'margin-inline'>`,width:`<'width'>`,height:`<'height'>`,"min-width":`<'min-width'>`,"min-height":`<'min-height'>`,"max-width":`<'max-width'>`,"max-height":`<'max-height'>`,"block-size":`<'block-size'>`,"inline-size":`<'inline-size'>`,"min-block-size":`<'min-block-size'>`,"min-inline-size":`<'min-inline-size'>`,"max-block-size":`<'max-block-size'>`,"max-inline-size":`<'max-inline-size'>`,"align-self":`<'align-self'>|anchor-center`,"justify-self":`<'justify-self'>|anchor-center`}},property:{prelude:`<custom-property-name>`,descriptors:{syntax:`<string>`,inherits:`true|false`,"initial-value":`<declaration-value>?`}},scope:{prelude:`[( <scope-start> )]? [to ( <scope-end> )]?`,descriptors:null},"starting-style":{prelude:null,descriptors:null},supports:{prelude:`<supports-condition>`,descriptors:null},container:{prelude:`[<container-name>]? <container-condition>`,descriptors:null},nest:{prelude:`<complex-selector-list>`,descriptors:null}}};function is(e,t){let n=this.tokenStart+e,r=this.charCodeAt(n);for((r===43||r===45)&&(t&&this.error(`Number sign is not allowed`),n++);n<this.tokenEnd;n++)M(this.charCodeAt(n))||this.error(`Integer is expected`,n)}function as(e){return is.call(this,0,e)}function os(e,t){if(!this.cmpChar(this.tokenStart+e,t)){let n=``;switch(t){case 110:n=`N is expected`;break;case 45:n=`HyphenMinus is expected`}this.error(n,this.tokenStart+e)}}function ss(){let e=0,t=0,n=this.tokenType;for(;n===13||n===25;)n=this.lookupType(++e);if(n!==10){if(!this.isDelim(43,e)&&!this.isDelim(45,e))return null;t=this.isDelim(43,e)?43:45;do n=this.lookupType(++e);while(n===13||n===25);n!==10&&(this.skip(e),as.call(this,!0))}return e>0&&this.skip(e),t===0&&(n=this.charCodeAt(this.tokenStart),n!==43&&n!==45&&this.error(`Number sign is expected`)),as.call(this,t!==0),t===45?`-`+this.consume(10):this.consume(10)}const cs={a:[String,null],b:[String,null]};function ls(){let e=this.tokenStart,t=null,n=null;if(this.tokenType===10)as.call(this,!1),n=this.consume(10);else if(this.tokenType===1&&this.cmpChar(this.tokenStart,45))switch(t=`-1`,os.call(this,1,110),this.tokenEnd-this.tokenStart){case 2:this.next(),n=ss.call(this);break;case 3:os.call(this,2,45),this.next(),this.skipSC(),as.call(this,!0),n=`-`+this.consume(10);break;default:os.call(this,2,45),is.call(this,3,!0),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===1||this.isDelim(43)&&this.lookupType(1)===1){let r=0;switch(t=`1`,this.isDelim(43)&&(r=1,this.next()),os.call(this,0,110),this.tokenEnd-this.tokenStart){case 1:this.next(),n=ss.call(this);break;case 2:os.call(this,1,45),this.next(),this.skipSC(),as.call(this,!0),n=`-`+this.consume(10);break;default:os.call(this,1,45),is.call(this,2,!0),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===12){let r=this.charCodeAt(this.tokenStart),i=r===43||r===45,a=this.tokenStart+i;for(;a<this.tokenEnd&&M(this.charCodeAt(a));a++);a===this.tokenStart+i&&this.error(`Integer is expected`,this.tokenStart+i),os.call(this,a-this.tokenStart,110),t=this.substring(e,a),a+1===this.tokenEnd?(this.next(),n=ss.call(this)):(os.call(this,a-this.tokenStart+1,45),a+2===this.tokenEnd?(this.next(),this.skipSC(),as.call(this,!0),n=`-`+this.consume(10)):(is.call(this,a-this.tokenStart+2,!0),this.next(),n=this.substrToCursor(a+1)))}else this.error();return t!==null&&t.charCodeAt(0)===43&&(t=t.substr(1)),n!==null&&n.charCodeAt(0)===43&&(n=n.substr(1)),{type:`AnPlusB`,loc:this.getLocation(e,this.tokenStart),a:t,b:n}}function us(e){if(e.a){let t=(e.a===`+1`||e.a===`1`?`n`:e.a===`-1`&&`-n`)||e.a+`n`;if(e.b){let n=e.b[0]===`-`||e.b[0]===`+`?e.b:`+`+e.b;this.tokenize(t+n)}else this.tokenize(t)}else this.tokenize(e.b)}var ds=Object.freeze({__proto__:null,generate:us,name:`AnPlusB`,parse:ls,structure:cs});function fs(){return this.Raw(this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function ps(){for(let e=1,t;t=this.lookupType(e);e++){if(t===24)return!0;if(t===23||t===3)return!1}return!1}const ms={name:String,prelude:[`AtrulePrelude`,`Raw`,null],block:[`Block`,null]};function hs(e=!1){let t=this.tokenStart,n,r,i=null,a=null;switch(this.eat(3),n=this.substrToCursor(t+1),r=n.toLowerCase(),this.skipSC(),this.eof===!1&&this.tokenType!==23&&this.tokenType!==17&&(i=this.parseAtrulePrelude?this.parseWithFallback(this.AtrulePrelude.bind(this,n,e),fs):fs.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case 17:this.next();break;case 23:a=hasOwnProperty.call(this.atrule,r)&&typeof this.atrule[r].block==`function`?this.atrule[r].block.call(this,e):this.Block(ps.call(this))}return{type:`Atrule`,loc:this.getLocation(t,this.tokenStart),name:n,prelude:i,block:a}}function gs(e){this.token(3,`@`+e.name),e.prelude!==null&&this.node(e.prelude),e.block?this.node(e.block):this.token(17,`;`)}var _s=Object.freeze({__proto__:null,generate:gs,name:`Atrule`,parse:hs,structure:ms,walkContext:`atrule`});const vs={children:[[]]};function ys(e){let t=null;return e!==null&&(e=e.toLowerCase()),this.skipSC(),t=hasOwnProperty.call(this.atrule,e)&&typeof this.atrule[e].prelude==`function`?this.atrule[e].prelude.call(this):this.readSequence(this.scope.AtrulePrelude),this.skipSC(),this.eof!==!0&&this.tokenType!==23&&this.tokenType!==17&&this.error(`Semicolon or block is expected`),{type:`AtrulePrelude`,loc:this.getLocationFromList(t),children:t}}function bs(e){this.children(e)}var xs=Object.freeze({__proto__:null,generate:bs,name:`AtrulePrelude`,parse:ys,structure:vs,walkContext:`atrulePrelude`});function Ss(){this.eof&&this.error(`Unexpected end of input`);let e=this.tokenStart,t=!1;return this.isDelim(42)?(t=!0,this.next()):this.isDelim(124)||this.eat(1),this.isDelim(124)?this.charCodeAt(this.tokenStart+1)===61?t&&this.error(`Identifier is expected`,this.tokenEnd):(this.next(),this.eat(1)):t&&this.error(`Vertical line is expected`),{type:`Identifier`,loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function Cs(){let e=this.tokenStart,t=this.charCodeAt(e);return t!==61&&t!==126&&t!==94&&t!==36&&t!==42&&t!==124&&this.error(`Attribute selector (=, ~=, ^=, $=, *=, |=) is expected`),this.next(),t!==61&&(this.isDelim(61)||this.error(`Equal sign is expected`),this.next()),this.substrToCursor(e)}const ws={name:`Identifier`,matcher:[String,null],value:[`String`,`Identifier`,null],flags:[String,null]};function Ts(){let e=this.tokenStart,t,n=null,r=null,i=null;return this.eat(19),this.skipSC(),t=Ss.call(this),this.skipSC(),this.tokenType!==20&&(this.tokenType!==1&&(n=Cs.call(this),this.skipSC(),r=this.tokenType===5?this.String():this.Identifier(),this.skipSC()),this.tokenType===1&&(i=this.consume(1),this.skipSC())),this.eat(20),{type:`AttributeSelector`,loc:this.getLocation(e,this.tokenStart),name:t,matcher:n,value:r,flags:i}}function Es(e){this.token(9,`[`),this.node(e.name),e.matcher!==null&&(this.tokenize(e.matcher),this.node(e.value)),e.flags!==null&&this.token(1,e.flags),this.token(9,`]`)}var Ds=Object.freeze({__proto__:null,generate:Es,name:`AttributeSelector`,parse:Ts,structure:ws});function Os(){return this.Raw(null,!0)}function ks(){return this.parseWithFallback(this.Rule,Os)}function As(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}function js(){if(this.tokenType===17)return As.call(this,this.tokenIndex);let e=this.parseWithFallback(this.Declaration,As);return this.tokenType===17&&this.next(),e}const Ms={children:[[`Atrule`,`Rule`,`Declaration`]]};function Ns(e){let t=e?js:ks,n=this.tokenStart,r=this.createList();this.eat(23);scan:for(;!this.eof;)switch(this.tokenType){case 24:break scan;case 13:case 25:this.next();break;case 3:r.push(this.parseWithFallback(this.Atrule.bind(this,e),Os));break;default:e&&this.isDelim(38)?r.push(ks.call(this)):r.push(t.call(this))}return this.eof||this.eat(24),{type:`Block`,loc:this.getLocation(n,this.tokenStart),children:r}}function Ps(e){this.token(23,`{`),this.children(e,(e=>{e.type===`Declaration`&&this.token(17,`;`)})),this.token(24,`}`)}var Fs=Object.freeze({__proto__:null,generate:Ps,name:`Block`,parse:Ns,structure:Ms,walkContext:`block`});const Is={children:[[]]};function Ls(e,t){let n=this.tokenStart,r=null;return this.eat(19),r=e.call(this,t),this.eof||this.eat(20),{type:`Brackets`,loc:this.getLocation(n,this.tokenStart),children:r}}function Rs(e){this.token(9,`[`),this.children(e),this.token(9,`]`)}var zs=Object.freeze({__proto__:null,generate:Rs,name:`Brackets`,parse:Ls,structure:Is});const Bs=[];function Vs(){let e=this.tokenStart;return this.eat(15),{type:`CDC`,loc:this.getLocation(e,this.tokenStart)}}function Hs(){this.token(15,`-->`)}var Us=Object.freeze({__proto__:null,generate:Hs,name:`CDC`,parse:Vs,structure:Bs});const Ws=[];function Gs(){let e=this.tokenStart;return this.eat(14),{type:`CDO`,loc:this.getLocation(e,this.tokenStart)}}function Ks(){this.token(14,`<!--`)}var qs=Object.freeze({__proto__:null,generate:Ks,name:`CDO`,parse:Gs,structure:Ws});const Js={name:String};function Ys(){return this.eatDelim(46),{type:`ClassSelector`,loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function Xs(e){this.token(9,`.`),this.token(1,e.name)}var Zs=Object.freeze({__proto__:null,generate:Xs,name:`ClassSelector`,parse:Ys,structure:Js});const Qs={name:String};function $s(){let e=this.tokenStart,t;switch(this.tokenType){case 13:t=` `;break;case 9:switch(this.charCodeAt(this.tokenStart)){case 62:case 43:case 126:this.next();break;case 47:this.next(),this.eatIdent(`deep`),this.eatDelim(47);break;default:this.error(`Combinator is expected`)}t=this.substrToCursor(e)}return{type:`Combinator`,loc:this.getLocation(e,this.tokenStart),name:t}}function ec(e){this.tokenize(e.name)}var tc=Object.freeze({__proto__:null,generate:ec,name:`Combinator`,parse:$s,structure:Qs});const nc={value:String};function rc(){let e=this.tokenStart,t=this.tokenEnd;return this.eat(25),t-e+2>=2&&this.charCodeAt(t-2)===42&&this.charCodeAt(t-1)===47&&(t-=2),{type:`Comment`,loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function ic(e){this.token(25,`/*`+e.value+`*/`)}var ac=Object.freeze({__proto__:null,generate:ic,name:`Comment`,parse:rc,structure:nc});const oc=/* @__PURE__ */ new Set([16,22,0]),sc={kind:String,children:[[`Identifier`,`Feature`,`FeatureFunction`,`FeatureRange`,`SupportsDeclaration`]]};function cc(e){return this.lookupTypeNonSC(1)===1&&oc.has(this.lookupTypeNonSC(2))?this.Feature(e):this.FeatureRange(e)}const lc={media:cc,container:cc,supports(){return this.SupportsDeclaration()}};function uc(e=`media`){let t=this.createList();scan:for(;!this.eof;)switch(this.tokenType){case 25:case 13:this.next();continue;case 1:t.push(this.Identifier());break;case 21:{let n=this.parseWithFallback((()=>lc[e].call(this,e)),(()=>null));n||=this.parseWithFallback((()=>{this.eat(21);let t=this.Condition(e);return this.eat(22),t}),(()=>this.GeneralEnclosed(e))),t.push(n);break}case 2:{let n=this.parseWithFallback((()=>this.FeatureFunction(e)),(()=>null));n||=this.GeneralEnclosed(e),t.push(n);break}default:break scan}return t.isEmpty&&this.error(`Condition is expected`),{type:`Condition`,loc:this.getLocationFromList(t),kind:e,children:t}}function dc(e){e.children.forEach((e=>{e.type===`Condition`?(this.token(21,`(`),this.node(e),this.token(22,`)`)):this.node(e)}))}var fc=Object.freeze({__proto__:null,generate:dc,name:`Condition`,parse:uc,structure:sc});function pc(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!0)}function mc(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1)}function hc(){let e=this.tokenIndex,t=this.Value();return t.type!==`Raw`&&this.eof===!1&&this.tokenType!==17&&this.isDelim(33)===!1&&this.isBalanceEdge(e)===!1&&this.error(),t}const gc={important:[Boolean,String],property:String,value:[`Value`,`Raw`]};function _c(){let e=this.tokenStart,t=this.tokenIndex,n=yc.call(this),r=Qi(n),i=r?this.parseCustomProperty:this.parseValue,a=r?mc:pc,o=!1,s;this.skipSC(),this.eat(16);let c=this.tokenIndex;if(r||this.skipSC(),s=i?this.parseWithFallback(hc,a):a.call(this,this.tokenIndex),r&&s.type===`Value`&&s.children.isEmpty){for(let e=c-this.tokenIndex;e<=0;e++)if(this.lookupType(e)===13){s.children.appendData({type:`WhiteSpace`,loc:null,value:` `});break}}return this.isDelim(33)&&(o=bc.call(this),this.skipSC()),this.eof===!1&&this.tokenType!==17&&this.isBalanceEdge(t)===!1&&this.error(),{type:`Declaration`,loc:this.getLocation(e,this.tokenStart),important:o,property:n,value:s}}function vc(e){this.token(1,e.property),this.token(16,`:`),this.node(e.value),e.important&&(this.token(9,`!`),this.token(1,e.important===!0?`important`:e.important))}function yc(){let e=this.tokenStart;if(this.tokenType===9)switch(this.charCodeAt(this.tokenStart)){case 42:case 36:case 43:case 35:case 38:this.next();break;case 47:this.next(),this.isDelim(47)&&this.next()}return this.tokenType===4?this.eat(4):this.eat(1),this.substrToCursor(e)}function bc(){this.eat(9),this.skipSC();let e=this.consume(1);return e===`important`||e}var xc=Object.freeze({__proto__:null,generate:vc,name:`Declaration`,parse:_c,structure:gc,walkContext:`declaration`});function Sc(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}const Cc={children:[[`Declaration`,`Atrule`,`Rule`]]};function wc(){let e=this.createList();for(;!this.eof;)switch(this.tokenType){case 13:case 25:case 17:this.next();break;case 3:e.push(this.parseWithFallback(this.Atrule.bind(this,!0),Sc));break;default:this.isDelim(38)?e.push(this.parseWithFallback(this.Rule,Sc)):e.push(this.parseWithFallback(this.Declaration,Sc))}return{type:`DeclarationList`,loc:this.getLocationFromList(e),children:e}}function Tc(e){this.children(e,(e=>{e.type===`Declaration`&&this.token(17,`;`)}))}var Ec=Object.freeze({__proto__:null,generate:Tc,name:`DeclarationList`,parse:wc,structure:Cc});const Dc={value:String,unit:String};function Oc(){let e=this.tokenStart,t=this.consumeNumber(12);return{type:`Dimension`,loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}}function kc(e){this.token(12,e.value+e.unit)}var Ac=Object.freeze({__proto__:null,generate:kc,name:`Dimension`,parse:Oc,structure:Dc});const jc={kind:String,name:String,value:[`Identifier`,`Number`,`Dimension`,`Ratio`,`Function`,null]};function Mc(e){let t=this.tokenStart,n,r=null;if(this.eat(21),this.skipSC(),n=this.consume(1),this.skipSC(),this.tokenType!==22){switch(this.eat(16),this.skipSC(),this.tokenType){case 10:r=this.lookupNonWSType(1)===9?this.Ratio():this.Number();break;case 12:r=this.Dimension();break;case 1:r=this.Identifier();break;case 2:r=this.parseWithFallback((()=>{let e=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(47)&&this.error(),e}),(()=>this.Ratio()));break;default:this.error(`Number, dimension, ratio or identifier is expected`)}this.skipSC()}return this.eof||this.eat(22),{type:`Feature`,loc:this.getLocation(t,this.tokenStart),kind:e,name:n,value:r}}function Nc(e){this.token(21,`(`),this.token(1,e.name),e.value!==null&&(this.token(16,`:`),this.node(e.value)),this.token(22,`)`)}var Pc=Object.freeze({__proto__:null,generate:Nc,name:`Feature`,parse:Mc,structure:jc});const Fc={kind:String,feature:String,value:[`Declaration`,`Selector`]};function Ic(e,t){let n=(this.features[e]||{})[t];return typeof n!=`function`&&this.error(`Unknown feature ${t}()`),n}function Lc(e=`unknown`){let t=this.tokenStart,n=this.consumeFunctionName(),r=Ic.call(this,e,n.toLowerCase());this.skipSC();let i=this.parseWithFallback((()=>{let e=this.tokenIndex,t=r.call(this);return this.eof===!1&&this.isBalanceEdge(e)===!1&&this.error(),t}),(()=>this.Raw(null,!1)));return this.eof||this.eat(22),{type:`FeatureFunction`,loc:this.getLocation(t,this.tokenStart),kind:e,feature:n,value:i}}function Rc(e){this.token(2,e.feature+`(`),this.node(e.value),this.token(22,`)`)}var zc=Object.freeze({__proto__:null,generate:Rc,name:`FeatureFunction`,parse:Lc,structure:Fc});const Bc={kind:String,left:[`Identifier`,`Number`,`Dimension`,`Ratio`,`Function`],leftComparison:String,middle:[`Identifier`,`Number`,`Dimension`,`Ratio`,`Function`],rightComparison:[String,null],right:[`Identifier`,`Number`,`Dimension`,`Ratio`,`Function`,null]};function Vc(){switch(this.skipSC(),this.tokenType){case 10:return this.isDelim(47,this.lookupOffsetNonSC(1))?this.Ratio():this.Number();case 12:return this.Dimension();case 1:return this.Identifier();case 2:return this.parseWithFallback((()=>{let e=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(47)&&this.error(),e}),(()=>this.Ratio()));default:this.error(`Number, dimension, ratio or identifier is expected`)}}function Hc(e){if(this.skipSC(),this.isDelim(60)||this.isDelim(62)){let e=this.source[this.tokenStart];return this.next(),this.isDelim(61)?(this.next(),e+`=`):e}if(this.isDelim(61))return`=`;this.error(`Expected ${e?`":", `:``}"<", ">", "=" or ")"`)}function Uc(e=`unknown`){let t=this.tokenStart;this.skipSC(),this.eat(21);let n=Vc.call(this),r=Hc.call(this,n.type===`Identifier`),i=Vc.call(this),a=null,o=null;return this.lookupNonWSType(0)!==22&&(a=Hc.call(this),o=Vc.call(this)),this.skipSC(),this.eat(22),{type:`FeatureRange`,loc:this.getLocation(t,this.tokenStart),kind:e,left:n,leftComparison:r,middle:i,rightComparison:a,right:o}}function Wc(e){this.token(21,`(`),this.node(e.left),this.tokenize(e.leftComparison),this.node(e.middle),e.right&&(this.tokenize(e.rightComparison),this.node(e.right)),this.token(22,`)`)}var Gc=Object.freeze({__proto__:null,generate:Wc,name:`FeatureRange`,parse:Uc,structure:Bc});const Kc={name:String,children:[[]]};function qc(e,t){let n=this.tokenStart,r=this.consumeFunctionName(),i=r.toLowerCase(),a;return a=t.hasOwnProperty(i)?t[i].call(this,t):e.call(this,t),this.eof||this.eat(22),{type:`Function`,loc:this.getLocation(n,this.tokenStart),name:r,children:a}}function Jc(e){this.token(2,e.name+`(`),this.children(e),this.token(22,`)`)}var Yc=Object.freeze({__proto__:null,generate:Jc,name:`Function`,parse:qc,structure:Kc,walkContext:`function`});const Xc={kind:String,function:[String,null],children:[[]]};function Zc(e){let t=this.tokenStart,n=null;this.tokenType===2?n=this.consumeFunctionName():this.eat(21);let r=this.parseWithFallback((()=>{let e=this.tokenIndex,t=this.readSequence(this.scope.Value);return this.eof===!1&&this.isBalanceEdge(e)===!1&&this.error(),t}),(()=>this.createSingleNodeList(this.Raw(null,!1))));return this.eof||this.eat(22),{type:`GeneralEnclosed`,loc:this.getLocation(t,this.tokenStart),kind:e,function:n,children:r}}function Qc(e){e.function?this.token(2,e.function+`(`):this.token(21,`(`),this.children(e),this.token(22,`)`)}var $c=Object.freeze({__proto__:null,generate:Qc,name:`GeneralEnclosed`,parse:Zc,structure:Xc});const el={value:String};function tl(){let e=this.tokenStart;return this.eat(4),{type:`Hash`,loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function nl(e){this.token(4,`#`+e.value)}var rl=Object.freeze({__proto__:null,generate:nl,name:`Hash`,parse:tl,structure:el,xxx:`XXX`});const il={name:String};function al(){return{type:`Identifier`,loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function ol(e){this.token(1,e.name)}var sl=Object.freeze({__proto__:null,generate:ol,name:`Identifier`,parse:al,structure:il});const cl={name:String};function ll(){let e=this.tokenStart;return this.eat(4),{type:`IdSelector`,loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function ul(e){this.token(9,`#`+e.name)}var dl=Object.freeze({__proto__:null,generate:ul,name:`IdSelector`,parse:ll,structure:cl});const fl={name:String};function pl(){let e=this.consume(1);for(;this.isDelim(46);)this.eat(9),e+=`.`+this.consume(1);return{type:`Layer`,loc:this.getLocation(this.tokenStart,this.tokenEnd),name:e}}function ml(e){this.tokenize(e.name)}var hl=Object.freeze({__proto__:null,generate:ml,name:`Layer`,parse:pl,structure:fl});const gl={children:[[`Layer`]]};function _l(){let e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.Layer()),this.lookupTypeNonSC(0)===18);)this.skipSC(),this.next(),this.skipSC();return{type:`LayerList`,loc:this.getLocationFromList(e),children:e}}function vl(e){this.children(e,(()=>this.token(18,`,`)))}var yl=Object.freeze({__proto__:null,generate:vl,name:`LayerList`,parse:_l,structure:gl});const bl={modifier:[String,null],mediaType:[String,null],condition:[`Condition`,null]};function xl(){let e=this.tokenStart,t=null,n=null,r=null;if(this.skipSC(),this.tokenType===1&&this.lookupTypeNonSC(1)!==21){let e=this.consume(1),i=e.toLowerCase();switch(i===`not`||i===`only`?(this.skipSC(),t=i,n=this.consume(1)):n=e,this.lookupTypeNonSC(0)){case 1:this.skipSC(),this.eatIdent(`and`),r=this.Condition(`media`);break;case 23:case 17:case 18:case 0:break;default:this.error(`Identifier or parenthesis is expected`)}}else switch(this.tokenType){case 1:case 21:case 2:r=this.Condition(`media`);break;case 23:case 17:case 0:break;default:this.error(`Identifier or parenthesis is expected`)}return{type:`MediaQuery`,loc:this.getLocation(e,this.tokenStart),modifier:t,mediaType:n,condition:r}}function Sl(e){e.mediaType?(e.modifier&&this.token(1,e.modifier),this.token(1,e.mediaType),e.condition&&(this.token(1,`and`),this.node(e.condition))):e.condition&&this.node(e.condition)}var Cl=Object.freeze({__proto__:null,generate:Sl,name:`MediaQuery`,parse:xl,structure:bl});const wl={children:[[`MediaQuery`]]};function Tl(){let e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===18);)this.next();return{type:`MediaQueryList`,loc:this.getLocationFromList(e),children:e}}function El(e){this.children(e,(()=>this.token(18,`,`)))}var Dl=Object.freeze({__proto__:null,generate:El,name:`MediaQueryList`,parse:Tl,structure:wl});const Ol={};function kl(){let e=this.tokenStart;return this.eatDelim(38),{type:`NestingSelector`,loc:this.getLocation(e,this.tokenStart)}}function Al(){this.token(9,`&`)}var jl=Object.freeze({__proto__:null,generate:Al,name:`NestingSelector`,parse:kl,structure:Ol});const Ml={nth:[`AnPlusB`,`Identifier`],selector:[`SelectorList`,null]};function Nl(){this.skipSC();let e=this.tokenStart,t=e,n=null,r;return r=this.lookupValue(0,`odd`)||this.lookupValue(0,`even`)?this.Identifier():this.AnPlusB(),t=this.tokenStart,this.skipSC(),this.lookupValue(0,`of`)&&(this.next(),n=this.SelectorList(),t=this.tokenStart),{type:`Nth`,loc:this.getLocation(e,t),nth:r,selector:n}}function Pl(e){this.node(e.nth),e.selector!==null&&(this.token(1,`of`),this.node(e.selector))}var Fl=Object.freeze({__proto__:null,generate:Pl,name:`Nth`,parse:Nl,structure:Ml});const Il={value:String};function Ll(){return{type:`Number`,loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(10)}}function Rl(e){this.token(10,e.value)}var zl=Object.freeze({__proto__:null,generate:Rl,name:`Number`,parse:Ll,structure:Il});const Bl={value:String};function Vl(){let e=this.tokenStart;return this.next(),{type:`Operator`,loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function Hl(e){this.tokenize(e.value)}var Ul=Object.freeze({__proto__:null,generate:Hl,name:`Operator`,parse:Vl,structure:Bl});const Wl={children:[[]]};function Gl(e,t){let n=this.tokenStart,r=null;return this.eat(21),r=e.call(this,t),this.eof||this.eat(22),{type:`Parentheses`,loc:this.getLocation(n,this.tokenStart),children:r}}function Kl(e){this.token(21,`(`),this.children(e),this.token(22,`)`)}var ql=Object.freeze({__proto__:null,generate:Kl,name:`Parentheses`,parse:Gl,structure:Wl});const Jl={value:String};function Yl(){return{type:`Percentage`,loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(11)}}function Xl(e){this.token(11,e.value+`%`)}var Zl=Object.freeze({__proto__:null,generate:Xl,name:`Percentage`,parse:Yl,structure:Jl});const Ql={name:String,children:[[`Raw`],null]};function $l(){let e=this.tokenStart,t=null,n,r;return this.eat(16),this.tokenType===2?(n=this.consumeFunctionName(),r=n.toLowerCase(),this.lookupNonWSType(0)==22?t=this.createList():hasOwnProperty.call(this.pseudo,r)?(this.skipSC(),t=this.pseudo[r].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(null,!1))),this.eat(22)):n=this.consume(1),{type:`PseudoClassSelector`,loc:this.getLocation(e,this.tokenStart),name:n,children:t}}function eu(e){this.token(16,`:`),e.children===null?this.token(1,e.name):(this.token(2,e.name+`(`),this.children(e),this.token(22,`)`))}var tu=Object.freeze({__proto__:null,generate:eu,name:`PseudoClassSelector`,parse:$l,structure:Ql,walkContext:`function`});const nu={name:String,children:[[`Raw`],null]};function ru(){let e=this.tokenStart,t=null,n,r;return this.eat(16),this.eat(16),this.tokenType===2?(n=this.consumeFunctionName(),r=n.toLowerCase(),this.lookupNonWSType(0)==22?t=this.createList():hasOwnProperty.call(this.pseudo,r)?(this.skipSC(),t=this.pseudo[r].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(null,!1))),this.eat(22)):n=this.consume(1),{type:`PseudoElementSelector`,loc:this.getLocation(e,this.tokenStart),name:n,children:t}}function iu(e){this.token(16,`:`),this.token(16,`:`),e.children===null?this.token(1,e.name):(this.token(2,e.name+`(`),this.children(e),this.token(22,`)`))}var au=Object.freeze({__proto__:null,generate:iu,name:`PseudoElementSelector`,parse:ru,structure:nu,walkContext:`function`});function ou(){switch(this.skipSC(),this.tokenType){case 10:return this.Number();case 2:return this.Function(this.readSequence,this.scope.Value);default:this.error(`Number of function is expected`)}}const su={left:[`Number`,`Function`],right:[`Number`,`Function`,null]};function cu(){let e=this.tokenStart,t=ou.call(this),n=null;return this.skipSC(),this.isDelim(47)&&(this.eatDelim(47),n=ou.call(this)),{type:`Ratio`,loc:this.getLocation(e,this.tokenStart),left:t,right:n}}function lu(e){this.node(e.left),this.token(9,`/`),e.right?this.node(e.right):this.node(10,1)}var uu=Object.freeze({__proto__:null,generate:lu,name:`Ratio`,parse:cu,structure:su});function du(){return this.tokenIndex>0&&this.lookupType(-1)===13?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}const fu={value:String};function pu(e,t){let n=this.getTokenStart(this.tokenIndex),r;return this.skipUntilBalanced(this.tokenIndex,e||this.consumeUntilBalanceEnd),r=t&&this.tokenStart>n?du.call(this):this.tokenStart,{type:`Raw`,loc:this.getLocation(n,r),value:this.substring(n,r)}}function mu(e){this.tokenize(e.value)}var hu=Object.freeze({__proto__:null,generate:mu,name:`Raw`,parse:pu,structure:fu});function gu(){return this.Raw(this.consumeUntilLeftCurlyBracket,!0)}function _u(){let e=this.SelectorList();return e.type!==`Raw`&&this.eof===!1&&this.tokenType!==23&&this.error(),e}const vu={prelude:[`SelectorList`,`Raw`],block:[`Block`]};function yu(){let e=this.tokenIndex,t=this.tokenStart,n,r;return n=this.parseRulePrelude?this.parseWithFallback(_u,gu):gu.call(this,e),r=this.Block(!0),{type:`Rule`,loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}}function bu(e){this.node(e.prelude),this.node(e.block)}var xu=Object.freeze({__proto__:null,generate:bu,name:`Rule`,parse:yu,structure:vu,walkContext:`rule`});const Su={root:[`SelectorList`,`Raw`,null],limit:[`SelectorList`,`Raw`,null]};function Cu(){let e=null,t=null;this.skipSC();let n=this.tokenStart;return this.tokenType===21&&(this.next(),this.skipSC(),e=this.parseWithFallback(this.SelectorList,(()=>this.Raw(!1,!0))),this.skipSC(),this.eat(22)),this.lookupNonWSType(0)===1&&(this.skipSC(),this.eatIdent(`to`),this.skipSC(),this.eat(21),this.skipSC(),t=this.parseWithFallback(this.SelectorList,(()=>this.Raw(!1,!0))),this.skipSC(),this.eat(22)),{type:`Scope`,loc:this.getLocation(n,this.tokenStart),root:e,limit:t}}function wu(e){e.root&&(this.token(21,`(`),this.node(e.root),this.token(22,`)`)),e.limit&&(this.token(1,`to`),this.token(21,`(`),this.node(e.limit),this.token(22,`)`))}var Tu=Object.freeze({__proto__:null,generate:wu,name:`Scope`,parse:Cu,structure:Su});const Eu={children:[[`TypeSelector`,`IdSelector`,`ClassSelector`,`AttributeSelector`,`PseudoClassSelector`,`PseudoElementSelector`,`Combinator`]]};function Du(){let e=this.readSequence(this.scope.Selector);return this.getFirstListNode(e)===null&&this.error(`Selector is expected`),{type:`Selector`,loc:this.getLocationFromList(e),children:e}}function Ou(e){this.children(e)}var ku=Object.freeze({__proto__:null,generate:Ou,name:`Selector`,parse:Du,structure:Eu});const Au={children:[[`Selector`,`Raw`]]};function ju(){let e=this.createList();for(;!this.eof&&(e.push(this.Selector()),this.tokenType===18);)this.next();return{type:`SelectorList`,loc:this.getLocationFromList(e),children:e}}function Mu(e){this.children(e,(()=>this.token(18,`,`)))}var Nu=Object.freeze({__proto__:null,generate:Mu,name:`SelectorList`,parse:ju,structure:Au,walkContext:`selector`});function Pu(e){let t=e.length,n=e.charCodeAt(0),r=+(n===34||n===39),i=r===1&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1,a=``;for(let n=r;n<=i;n++){let r=e.charCodeAt(n);if(r===92){if(n===i){n!==t-1&&(a=e.substr(n+1));break}if(r=e.charCodeAt(++n),cr(92,r)){let t=n-1,r=xr(e,t);n=r-1,a+=Tr(e.substring(t+1,r))}else r===13&&e.charCodeAt(n+1)===10&&n++}else a+=e[n]}return a}function Fu(e,t){let n=``,r=!1;for(let t=0;t<e.length;t++){let i=e.charCodeAt(t);i===0?n+=`�`:i<=31||i===127?(n+=`\\`+i.toString(16),r=!0):i===34||i===92?(n+=`\\`+e.charAt(t),r=!1):(r&&(Qn(i)||sr(i))&&(n+=` `),n+=e.charAt(t),r=!1)}return`"`+n+`"`}const Iu={value:String};function Lu(){return{type:`String`,loc:this.getLocation(this.tokenStart,this.tokenEnd),value:Pu(this.consume(5))}}function Ru(e){this.token(5,Fu(e.value))}var zu=Object.freeze({__proto__:null,generate:Ru,name:`String`,parse:Lu,structure:Iu});function Bu(){return this.Raw(null,!1)}const Vu={children:[[`Comment`,`CDO`,`CDC`,`Atrule`,`Rule`,`Raw`]]};function Hu(){let e=this.tokenStart,t=this.createList(),n;for(;!this.eof;){switch(this.tokenType){case 13:this.next();continue;case 25:if(this.charCodeAt(this.tokenStart+2)!==33){this.next();continue}n=this.Comment();break;case 14:n=this.CDO();break;case 15:n=this.CDC();break;case 3:n=this.parseWithFallback(this.Atrule,Bu);break;default:n=this.parseWithFallback(this.Rule,Bu)}t.push(n)}return{type:`StyleSheet`,loc:this.getLocation(e,this.tokenStart),children:t}}function Uu(e){this.children(e)}var Wu=Object.freeze({__proto__:null,generate:Uu,name:`StyleSheet`,parse:Hu,structure:Vu,walkContext:`stylesheet`});const Gu={declaration:`Declaration`};function Ku(){let e=this.tokenStart;this.eat(21),this.skipSC();let t=this.Declaration();return this.eof||this.eat(22),{type:`SupportsDeclaration`,loc:this.getLocation(e,this.tokenStart),declaration:t}}function qu(e){this.token(21,`(`),this.node(e.declaration),this.token(22,`)`)}var Ju=Object.freeze({__proto__:null,generate:qu,name:`SupportsDeclaration`,parse:Ku,structure:Gu});function Yu(){this.tokenType!==1&&this.isDelim(42)===!1&&this.error(`Identifier or asterisk is expected`),this.next()}const Xu={name:String};function Zu(){let e=this.tokenStart;return this.isDelim(124)?(this.next(),Yu.call(this)):(Yu.call(this),this.isDelim(124)&&(this.next(),Yu.call(this))),{type:`TypeSelector`,loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function Qu(e){this.tokenize(e.name)}var $u=Object.freeze({__proto__:null,generate:Qu,name:`TypeSelector`,parse:Zu,structure:Xu});function ed(e,t){let n=0;for(let r=this.tokenStart+e;r<this.tokenEnd;r++){let i=this.charCodeAt(r);if(i===45&&t&&n!==0)return ed.call(this,e+n+1,!1),-1;Qn(i)||this.error(t&&n!==0?`Hyphen minus`+(n<6?` or hex digit`:``)+` is expected`:n<6?`Hex digit is expected`:`Unexpected input`,r),++n>6&&this.error(`Too many hex digits`,r)}return this.next(),n}function td(e){let t=0;for(;this.isDelim(63);)++t>e&&this.error(`Too many question marks`),this.next()}function nd(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===43?`Plus sign`:`Hyphen minus`)+` is expected`)}function rd(){let e=0;switch(this.tokenType){case 10:if(e=ed.call(this,1,!0),this.isDelim(63)){td.call(this,6-e);break}if(this.tokenType===12||this.tokenType===10){nd.call(this,45),ed.call(this,1,!1);break}break;case 12:e=ed.call(this,1,!0),e>0&&td.call(this,6-e);break;default:if(this.eatDelim(43),this.tokenType===1){e=ed.call(this,0,!0),e>0&&td.call(this,6-e);break}if(this.isDelim(63)){this.next(),td.call(this,5);break}this.error(`Hex digit or question mark is expected`)}}const id={value:String};function ad(){let e=this.tokenStart;return this.eatIdent(`u`),rd.call(this),{type:`UnicodeRange`,loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function od(e){this.tokenize(e.value)}var sd=Object.freeze({__proto__:null,generate:od,name:`UnicodeRange`,parse:ad,structure:id});function cd(e){let t=e.length,n=4,r=e.charCodeAt(t-1)===41?t-2:t-1,i=``;for(;n<r&&sr(e.charCodeAt(n));)n++;for(;n<r&&sr(e.charCodeAt(r));)r--;for(let a=n;a<=r;a++){let n=e.charCodeAt(a);if(n===92){if(a===r){a!==t-1&&(i=e.substr(a+1));break}if(n=e.charCodeAt(++a),cr(92,n)){let t=a-1,n=xr(e,t);a=n-1,i+=Tr(e.substring(t+1,n))}else n===13&&e.charCodeAt(a+1)===10&&a++}else i+=e[a]}return i}function ld(e){let t=``,n=!1;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i===0?t+=`�`:i<=31||i===127?(t+=`\\`+i.toString(16),n=!0):i===32||i===92||i===34||i===39||i===40||i===41?(t+=`\\`+e.charAt(r),n=!1):(n&&Qn(i)&&(t+=` `),t+=e.charAt(r),n=!1)}return`url(`+t+`)`}const ud={value:String};function dd(){let e=this.tokenStart,t;switch(this.tokenType){case 7:t=cd(this.consume(7));break;case 2:this.cmpStr(this.tokenStart,this.tokenEnd,`url(`)||this.error("Function name must be `url`"),this.eat(2),this.skipSC(),t=Pu(this.consume(5)),this.skipSC(),this.eof||this.eat(22);break;default:this.error(`Url or Function is expected`)}return{type:`Url`,loc:this.getLocation(e,this.tokenStart),value:t}}function fd(e){this.token(7,ld(e.value))}var pd=Object.freeze({__proto__:null,generate:fd,name:`Url`,parse:dd,structure:ud});const md={children:[[]]};function hd(){let e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:`Value`,loc:this.getLocation(e,this.tokenStart),children:t}}function gd(e){this.children(e)}var _d=Object.freeze({__proto__:null,generate:gd,name:`Value`,parse:hd,structure:md});const vd=Object.freeze({type:`WhiteSpace`,loc:null,value:` `}),yd={value:String};function bd(){return this.eat(13),vd}function xd(e){this.token(13,e.value)}var Sd=Object.freeze({__proto__:null,generate:xd,name:`WhiteSpace`,parse:bd,structure:yd}),Cd=Object.freeze({__proto__:null,AnPlusB:ds,Atrule:_s,AtrulePrelude:xs,AttributeSelector:Ds,Block:Fs,Brackets:zs,CDC:Us,CDO:qs,ClassSelector:Zs,Combinator:tc,Comment:ac,Condition:fc,Declaration:xc,DeclarationList:Ec,Dimension:Ac,Feature:Pc,FeatureFunction:zc,FeatureRange:Gc,Function:Yc,GeneralEnclosed:$c,Hash:rl,IdSelector:dl,Identifier:sl,Layer:hl,LayerList:yl,MediaQuery:Cl,MediaQueryList:Dl,NestingSelector:jl,Nth:Fl,Number:zl,Operator:Ul,Parentheses:ql,Percentage:Zl,PseudoClassSelector:tu,PseudoElementSelector:au,Ratio:uu,Raw:hu,Rule:xu,Scope:Tu,Selector:ku,SelectorList:Nu,String:zu,StyleSheet:Wu,SupportsDeclaration:Ju,TypeSelector:$u,UnicodeRange:sd,Url:pd,Value:_d,WhiteSpace:Sd}),wd={generic:!0,cssWideKeywords:na,...rs,node:Cd};function Td(e){switch(this.tokenType){case 4:return this.Hash();case 18:return this.Operator();case 21:return this.Parentheses(this.readSequence,e.recognizer);case 19:return this.Brackets(this.readSequence,e.recognizer);case 5:return this.String();case 12:return this.Dimension();case 11:return this.Percentage();case 10:return this.Number();case 2:return this.cmpStr(this.tokenStart,this.tokenEnd,`url(`)?this.Url():this.Function(this.readSequence,e.recognizer);case 7:return this.Url();case 1:return this.cmpChar(this.tokenStart,117)&&this.cmpChar(this.tokenStart+1,43)?this.UnicodeRange():this.Identifier();case 9:{let e=this.charCodeAt(this.tokenStart);if(e===47||e===42||e===43||e===45)return this.Operator();e===35&&this.error(`Hex or identifier is expected`,this.tokenStart+1);break}}}var Ed={getNode:Td};function Dd(e,t){t.last!==null&&t.last.type!==`Combinator`&&e!==null&&e.type!==`Combinator`&&t.push({type:`Combinator`,loc:null,name:` `})}function Od(){switch(this.tokenType){case 19:return this.AttributeSelector();case 4:return this.IdSelector();case 16:return this.lookupType(1)===16?this.PseudoElementSelector():this.PseudoClassSelector();case 1:return this.TypeSelector();case 10:case 11:return this.Percentage();case 12:this.charCodeAt(this.tokenStart)===46&&this.error(`Identifier is expected`,this.tokenStart+1);break;case 9:switch(this.charCodeAt(this.tokenStart)){case 43:case 62:case 126:case 47:return this.Combinator();case 46:return this.ClassSelector();case 42:case 124:return this.TypeSelector();case 35:return this.IdSelector();case 38:return this.NestingSelector()}}}var kd={onWhiteSpace:Dd,getNode:Od};function Ad(){return this.createSingleNodeList(this.Raw(null,!1))}function jd(){let e=this.createList();if(this.skipSC(),e.push(this.Identifier()),this.skipSC(),this.tokenType===18){e.push(this.Operator());let t=this.tokenIndex,n=this.parseCustomProperty?this.Value(null):this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1);if(n.type===`Value`&&n.children.isEmpty){for(let e=t-this.tokenIndex;e<=0;e++)if(this.lookupType(e)===13){n.children.appendData({type:`WhiteSpace`,loc:null,value:` `});break}}e.push(n)}return e}function Md(e){return e!==null&&e.type===`Operator`&&(e.value[e.value.length-1]===`-`||e.value[e.value.length-1]===`+`)}var Nd=Object.freeze({__proto__:null,AtrulePrelude:Ed,Selector:kd,Value:{getNode:Td,onWhiteSpace(e,t){Md(e)&&(e.value=` `+e.value),Md(t.last)&&(t.last.value+=` `)},expression:Ad,var:jd}});const Pd=/* @__PURE__ */ new Set([`none`,`and`,`not`,`or`]);var Fd={parse:{prelude(){let e=this.createList();if(this.tokenType===1){let t=this.substring(this.tokenStart,this.tokenEnd);Pd.has(t.toLowerCase())||e.push(this.Identifier())}return e.push(this.Condition(`container`)),e},block(e=!1){return this.Block(e)}}},Id={parse:{prelude:null,block(){return this.Block(!0)}}};function Ld(e,t){return this.parseWithFallback((()=>{try{return e.call(this)}finally{this.skipSC(),this.lookupNonWSType(0)!==22&&this.error()}}),t||(()=>this.Raw(null,!0)))}const Rd={layer(){this.skipSC();let e=this.createList(),t=Ld.call(this,this.Layer);return t.type===`Raw`&&t.value===``||e.push(t),e},supports(){this.skipSC();let e=this.createList(),t=Ld.call(this,this.Declaration,(()=>Ld.call(this,(()=>this.Condition(`supports`)))));return t.type===`Raw`&&t.value===``||e.push(t),e}};var zd={container:Fd,"font-face":Id,import:{parse:{prelude(){let e=this.createList();switch(this.tokenType){case 5:e.push(this.String());break;case 7:case 2:e.push(this.Url());break;default:this.error(`String or url() is expected`)}return this.skipSC(),this.tokenType===1&&this.cmpStr(this.tokenStart,this.tokenEnd,`layer`)?e.push(this.Identifier()):this.tokenType===2&&this.cmpStr(this.tokenStart,this.tokenEnd,`layer(`)&&e.push(this.Function(null,Rd)),this.skipSC(),this.tokenType===2&&this.cmpStr(this.tokenStart,this.tokenEnd,`supports(`)&&e.push(this.Function(null,Rd)),this.lookupNonWSType(0)!==1&&this.lookupNonWSType(0)!==21||e.push(this.MediaQueryList()),e},block:null}},layer:{parse:{prelude(){return this.createSingleNodeList(this.LayerList())},block(){return this.Block(!1)}}},media:{parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(e=!1){return this.Block(e)}}},nest:{parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},page:{parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},scope:{parse:{prelude(){return this.createSingleNodeList(this.Scope())},block(e=!1){return this.Block(e)}}},"starting-style":{parse:{prelude:null,block(e=!1){return this.Block(e)}}},supports:{parse:{prelude(){return this.createSingleNodeList(this.Condition(`supports`))},block(e=!1){return this.Block(e)}}}};function Bd(){let e=this.createList();this.skipSC();loop:for(;!this.eof;){switch(this.tokenType){case 1:e.push(this.Identifier());break;case 5:e.push(this.String());break;case 18:e.push(this.Operator());break;case 22:break loop;default:this.error(`Identifier, string or comma is expected`)}this.skipSC()}return e}const Vd={parse(){return this.createSingleNodeList(this.SelectorList())}},Hd={parse(){return this.createSingleNodeList(this.Selector())}},Ud={parse(){return this.createSingleNodeList(this.Identifier())}},Wd={parse:Bd},Gd={parse(){return this.createSingleNodeList(this.Nth())}};var Kd={parseContext:{default:`StyleSheet`,stylesheet:`StyleSheet`,atrule:`Atrule`,atrulePrelude(e){return this.AtrulePrelude(e.atrule?String(e.atrule):null)},mediaQueryList:`MediaQueryList`,mediaQuery:`MediaQuery`,condition(e){return this.Condition(e.kind)},rule:`Rule`,selectorList:`SelectorList`,selector:`Selector`,block(){return this.Block(!0)},declarationList:`DeclarationList`,declaration:`Declaration`,value:`Value`},features:{supports:{selector(){return this.Selector()}},container:{style(){return this.Declaration()}}},scope:Nd,atrule:zd,pseudo:{dir:Ud,has:Vd,lang:Wd,matches:Vd,is:Vd,"-moz-any":Vd,"-webkit-any":Vd,where:Vd,not:Vd,"nth-child":Gd,"nth-last-child":Gd,"nth-last-of-type":Gd,"nth-of-type":Gd,slotted:Hd,host:Hd,"host-context":Hd},node:Object.freeze({__proto__:null,AnPlusB:ls,Atrule:hs,AtrulePrelude:ys,AttributeSelector:Ts,Block:Ns,Brackets:Ls,CDC:Vs,CDO:Gs,ClassSelector:Ys,Combinator:$s,Comment:rc,Condition:uc,Declaration:_c,DeclarationList:wc,Dimension:Oc,Feature:Mc,FeatureFunction:Lc,FeatureRange:Uc,Function:qc,GeneralEnclosed:Zc,Hash:tl,IdSelector:ll,Identifier:al,Layer:pl,LayerList:_l,MediaQuery:xl,MediaQueryList:Tl,NestingSelector:kl,Nth:Nl,Number:Ll,Operator:Vl,Parentheses:Gl,Percentage:Yl,PseudoClassSelector:$l,PseudoElementSelector:ru,Ratio:cu,Raw:pu,Rule:yu,Scope:Cu,Selector:Du,SelectorList:ju,String:Lu,StyleSheet:Hu,SupportsDeclaration:Ku,TypeSelector:Zu,UnicodeRange:ad,Url:dd,Value:hd,WhiteSpace:bd})},qd={node:Cd},Jd=ns({...wd,...Kd,...qd});function Yd(e){let t={};for(let n of Object.keys(e)){let r=e[n];r&&(Array.isArray(r)||r instanceof Pr?r=r.map(Yd):r.constructor===Object&&(r=Yd(r))),t[n]=r}return t}const{tokenize:Xd,parse:Zd,generate:V,lexer:Qd,createLexer:$d,walk:H,find:ef,findLast:tf,findAll:nf,toPlainObject:rf,fromPlainObject:af,fork:of}=Jd;function U(e){return e>=48&&e<=57}function sf(e){return U(e)||e>=65&&e<=70||e>=97&&e<=102}function cf(e){return e>=65&&e<=90}function lf(e){return e>=97&&e<=122}function uf(e){return cf(e)||lf(e)}function df(e){return e>=128}function ff(e){return uf(e)||df(e)||e===95}function pf(e){return ff(e)||U(e)||e===45}function mf(e){return e>=0&&e<=8||e===11||e>=14&&e<=31||e===127}function hf(e){return e===10||e===13||e===12}function gf(e){return hf(e)||e===32||e===9}function _f(e,t){return!(e!==92||hf(t)||t===0)}function vf(e,t,n){return e===45?ff(t)||t===45||_f(t,n):ff(e)?!0:e===92&&_f(e,t)}function yf(e,t,n){return e===43||e===45?U(t)?2:t===46&&U(n)?3:0:e===46?U(t)?2:0:+!!U(e)}function bf(e){return+(e===65279||e===65534)}const xf=Array(128);for(let e=0;e<xf.length;e++)xf[e]=gf(e)&&130||U(e)&&131||ff(e)&&132||mf(e)&&133||e||128;function Sf(e){return e<128?xf[e]:132}function Cf(e,t){return t<e.length?e.charCodeAt(t):0}function wf(e,t,n){return n===13&&Cf(e,t+1)===10?2:1}function Tf(e,t,n){let r=e.charCodeAt(t);return cf(r)&&(r|=32),r===n}function Ef(e,t,n,r){if(n-t!==r.length||t<0||n>e.length)return!1;for(let i=t;i<n;i++){let n=r.charCodeAt(i-t),a=e.charCodeAt(i);if(cf(a)&&(a|=32),a!==n)return!1}return!0}function Df(e,t){for(;t>=0&&gf(e.charCodeAt(t));t--);return t+1}function Of(e,t){for(;t<e.length&&gf(e.charCodeAt(t));t++);return t}function kf(e,t){for(;t<e.length&&U(e.charCodeAt(t));t++);return t}function Af(e,t){if(t+=2,sf(Cf(e,t-1))){for(let n=Math.min(e.length,t+5);t<n&&sf(Cf(e,t));t++);let n=Cf(e,t);gf(n)&&(t+=wf(e,t,n))}return t}function jf(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(!pf(n)){if(_f(n,Cf(e,t+1)))t=Af(e,t)-1;else break}}return t}function Mf(e,t){let n=e.charCodeAt(t);if(n!==43&&n!==45||(n=e.charCodeAt(t+=1)),U(n)&&(t=kf(e,t+1),n=e.charCodeAt(t)),n===46&&U(e.charCodeAt(t+1))&&(t+=2,t=kf(e,t)),Tf(e,t,101)){let r=0;n=e.charCodeAt(t+1),(n===45||n===43)&&(r=1,n=e.charCodeAt(t+2)),U(n)&&(t=kf(e,t+1+r+1))}return t}function Nf(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(n===41){t++;break}_f(n,Cf(e,t+1))&&(t=Af(e,t))}return t}function Pf(e){if(e.length===1&&!sf(e.charCodeAt(0)))return e[0];let t=parseInt(e,16);return(t===0||t>=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)}var Ff=[`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`];function If(e=null,t){return e===null||e.length<t?new Uint32Array(Math.max(t+1024,16384)):e}function Lf(e){let t=e.source,n=t.length,r=t.length>0?bf(t.charCodeAt(0)):0,i=If(e.lines,n),a=If(e.columns,n),o=e.startLine,s=e.startColumn;for(let e=r;e<n;e++){let r=t.charCodeAt(e);i[e]=o,a[e]=s++,(r===10||r===13||r===12)&&(r===13&&e+1<n&&t.charCodeAt(e+1)===10&&(e++,i[e]=o,a[e]=s),o++,s=1)}i[n]=o,a[n]=s,e.lines=i,e.columns=a,e.computed=!0}var Rf=class{constructor(){this.lines=null,this.columns=null,this.computed=!1}setSource(e,t=0,n=1,r=1){this.source=e,this.startOffset=t,this.startLine=n,this.startColumn=r,this.computed=!1}getLocation(e,t){return this.computed||Lf(this),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,t,n){return this.computed||Lf(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 W=16777215,zf=/* @__PURE__ */ new Map([[2,22],[21,22],[19,20],[23,24]]);var Bf=class{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(e=``,t=(()=>{})){e=String(e||``);let n=e.length,r=If(this.offsetAndType,e.length+1),i=If(this.balance,e.length+1),a=0,o=0,s=0,c=-1;for(this.offsetAndType=null,this.balance=null,t(e,((e,t,l)=>{switch(e){default:i[a]=n;break;case o:{let e=s&W;for(s=i[e],o=s>>24,i[a]=e,i[e++]=a;e<a;e++)i[e]===n&&(i[e]=a);break}case 21:case 2:case 19:case 23:i[a]=s,o=zf.get(e),s=o<<24|a}r[a++]=e<<24|l,c===-1&&(c=t)})),r[a]=0|n,i[a]=n,i[n]=n;s!==0;){let e=s&W;s=i[e],i[e]=n}this.source=e,this.firstCharOffset=c===-1?0:c,this.tokenCount=a,this.offsetAndType=r,this.balance=i,this.reset(),this.next()}lookupType(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e]>>24:0}lookupOffset(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e-1]&W:this.source.length}lookupValue(e,t){return e+=this.tokenIndex,e<this.tokenCount&&Ef(this.source,this.offsetAndType[e-1]&W,this.offsetAndType[e]&W,t)}getTokenStart(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&W:this.offsetAndType[this.tokenCount]&W:this.firstCharOffset}substrToCursor(e){return this.source.substring(e,this.tokenStart)}isBalanceEdge(e){return this.balance[this.tokenIndex]<e}isDelim(e,t){return t?this.lookupType(t)===9&&this.source.charCodeAt(this.lookupOffset(t))===e:this.tokenType===9&&this.source.charCodeAt(this.tokenStart)===e}skip(e){let t=this.tokenIndex+e;t<this.tokenCount?(this.tokenIndex=t,this.tokenStart=this.offsetAndType[t-1]&W,t=this.offsetAndType[t],this.tokenType=t>>24,this.tokenEnd=t&W):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e<this.tokenCount?(this.tokenIndex=e,this.tokenStart=this.tokenEnd,e=this.offsetAndType[e],this.tokenType=e>>24,this.tokenEnd=e&W):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=0,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===13||this.tokenType===25;)this.next()}skipUntilBalanced(e,t){let n=e,r,i;loop:for(;n<this.tokenCount;n++){if(r=this.balance[n],r<e)break loop;switch(i=n>0?this.offsetAndType[n-1]&W:this.firstCharOffset,t(this.source.charCodeAt(i))){case 1:break loop;case 2:n++;break loop;default:this.balance[r]===n&&(n=r)}}this.skip(n-this.tokenIndex)}forEachToken(e){for(let t=0,n=this.firstCharOffset;t<this.tokenCount;t++){let r=n,i=this.offsetAndType[t],a=i&W,o=i>>24;n=a,e(o,r,a,t)}}dump(){let e=Array(this.tokenCount);return this.forEachToken(((t,n,r,i)=>{e[i]={idx:i,type:Ff[t],chunk:this.source.substring(n,r),balance:this.balance[i]}})),e}};function Vf(e,t){function n(t){return t<s?e.charCodeAt(t):0}function r(){l=Mf(e,l),vf(n(l),n(l+1),n(l+2))?(u=12,l=jf(e,l)):n(l)===37?(u=11,l++):u=10}function i(){let t=l;if(l=jf(e,l),Ef(e,t,l,`url`)&&n(l)===40){if(l=Of(e,l+1),n(l)===34||n(l)===39){u=2,l=t+4;return}o()}else n(l)===40?(u=2,l++):u=1}function a(t){for(t||=n(l++),u=5;l<e.length;l++){let r=e.charCodeAt(l);switch(Sf(r)){case t:l++;return;case 130:if(hf(r)){l+=wf(e,l,r),u=6;return}break;case 92:if(l===e.length-1)break;let i=n(l+1);hf(i)?l+=wf(e,l+1,i):_f(r,i)&&(l=Af(e,l)-1)}}}function o(){for(u=7,l=Of(e,l);l<e.length;l++){let t=e.charCodeAt(l);switch(Sf(t)){case 41:l++;return;case 130:if(l=Of(e,l),n(l)===41||l>=e.length){l<e.length&&l++;return}l=Nf(e,l),u=8;return;case 34:case 39:case 40:case 133:l=Nf(e,l),u=8;return;case 92:if(_f(t,n(l+1))){l=Af(e,l)-1;break}l=Nf(e,l),u=8;return}}}e=String(e||``);let s=e.length,c=bf(n(0)),l=c,u;for(;l<s;){let o=e.charCodeAt(l);switch(Sf(o)){case 130:u=13,l=Of(e,l+1);break;case 34:a();break;case 35:pf(n(l+1))||_f(n(l+1),n(l+2))?(u=4,l=jf(e,l+1)):(u=9,l++);break;case 39:a();break;case 40:u=21,l++;break;case 41:u=22,l++;break;case 43:yf(o,n(l+1),n(l+2))?r():(u=9,l++);break;case 44:u=18,l++;break;case 45:yf(o,n(l+1),n(l+2))?r():n(l+1)===45&&n(l+2)===62?(u=15,l+=3):vf(o,n(l+1),n(l+2))?i():(u=9,l++);break;case 46:yf(o,n(l+1),n(l+2))?r():(u=9,l++);break;case 47:n(l+1)===42?(u=25,l=e.indexOf(`*/`,l+2),l=l===-1?e.length:l+2):(u=9,l++);break;case 58:u=16,l++;break;case 59:u=17,l++;break;case 60:n(l+1)===33&&n(l+2)===45&&n(l+3)===45?(u=14,l+=4):(u=9,l++);break;case 64:vf(n(l+1),n(l+2),n(l+3))?(u=3,l=jf(e,l+1)):(u=9,l++);break;case 91:u=19,l++;break;case 92:_f(o,n(l+1))?i():(u=9,l++);break;case 93:u=20,l++;break;case 123:u=23,l++;break;case 125:u=24,l++;break;case 131:r();break;case 132:i();break;default:u=9,l++}t(u,c,c=l)}}let Hf=null;var G=class e{static createItem(e){return{prev:null,next:null,data:e}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(t){return e.createItem(t)}allocateCursor(e,t){let n;return Hf===null?n={prev:e,next:t,cursor:this.cursor}:(n=Hf,Hf=Hf.cursor,n.prev=e,n.next=t,n.cursor=this.cursor),this.cursor=n,n}releaseCursor(){let{cursor:e}=this;this.cursor=e.cursor,e.prev=null,e.next=null,e.cursor=Hf,Hf=e}updateCursors(e,t,n,r){let{cursor:i}=this;for(;i!==null;)i.prev===e&&(i.prev=t),i.next===n&&(i.next=r),i=i.cursor}*[Symbol.iterator](){for(let e=this.head;e!==null;e=e.next)yield e.data}get size(){let e=0;for(let t=this.head;t!==null;t=t.next)e++;return e}get isEmpty(){return this.head===null}get first(){return this.head&&this.head.data}get last(){return this.tail&&this.tail.data}fromArray(t){let n=null;this.head=null;for(let r of t){let t=e.createItem(r);n===null?this.head=t:n.next=t,t.prev=n,n=t}return this.tail=n,this}toArray(){return[...this]}toJSON(){return[...this]}forEach(e,t=this){let n=this.allocateCursor(null,this.head);for(;n.next!==null;){let r=n.next;n.next=r.next,e.call(t,r.data,r,this)}this.releaseCursor()}forEachRight(e,t=this){let n=this.allocateCursor(this.tail,null);for(;n.prev!==null;){let r=n.prev;n.prev=r.prev,e.call(t,r.data,r,this)}this.releaseCursor()}reduce(e,t,n=this){let r=this.allocateCursor(null,this.head),i=t,a;for(;r.next!==null;)a=r.next,r.next=a.next,i=e.call(n,i,a.data,a,this);return this.releaseCursor(),i}reduceRight(e,t,n=this){let r=this.allocateCursor(this.tail,null),i=t,a;for(;r.prev!==null;)a=r.prev,r.prev=a.prev,i=e.call(n,i,a.data,a,this);return this.releaseCursor(),i}some(e,t=this){for(let n=this.head;n!==null;n=n.next)if(e.call(t,n.data,n,this))return!0;return!1}map(t,n=this){let r=new e;for(let e=this.head;e!==null;e=e.next)r.appendData(t.call(n,e.data,e,this));return r}filter(t,n=this){let r=new e;for(let e=this.head;e!==null;e=e.next)t.call(n,e.data,e,this)&&r.appendData(e.data);return r}nextUntil(e,t,n=this){if(e===null)return;let r=this.allocateCursor(null,e);for(;r.next!==null;){let e=r.next;if(r.next=e.next,t.call(n,e.data,e,this))break}this.releaseCursor()}prevUntil(e,t,n=this){if(e===null)return;let r=this.allocateCursor(e,null);for(;r.prev!==null;){let 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(){let t=new e;for(let e of this)t.appendData(e);return t}prepend(e){return this.updateCursors(null,e,this.head,e),this.head===null?this.tail=e:(this.head.prev=e,e.next=this.head),this.head=e,this}prependData(t){return this.prepend(e.createItem(t))}append(e){return this.insert(e)}appendData(t){return this.insert(e.createItem(t))}insert(e,t=null){if(t!==null){if(this.updateCursors(t.prev,e,t,e),t.prev===null){if(this.head!==t)throw 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),this.tail===null?this.head=e:(this.tail.next=e,e.prev=this.tail),this.tail=e;return this}insertData(t,n){return this.insert(e.createItem(t),n)}remove(e){if(this.updateCursors(e,e.prev,e,e.next),e.prev!==null)e.prev.next=e.next;else{if(this.head!==e)throw Error(`item doesn't belong to list`);this.head=e.next}if(e.next!==null)e.next.prev=e.prev;else{if(this.tail!==e)throw Error(`item doesn't belong to list`);this.tail=e.prev}return e.prev=null,e.next=null,e}push(t){this.insert(e.createItem(t))}pop(){return this.tail===null?null:this.remove(this.tail)}unshift(t){this.prepend(e.createItem(t))}shift(){return this.head===null?null:this.remove(this.head)}prependList(e){return this.insertList(e,this.head)}appendList(e){return this.insertList(e)}insertList(e,t){return e.head===null||(t==null?(this.updateCursors(this.tail,e.tail,null,e.head),this.tail===null?this.head=e.head:(this.tail.next=e.head,e.head.prev=this.tail),this.tail=e.tail):(this.updateCursors(t.prev,e.tail,t,e.head),t.prev===null?this.head=e.head:(t.prev.next=e.head,e.head.prev=t.prev),t.prev=e.tail,e.tail.next=t),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 Uf(e,t){let n=Object.create(SyntaxError.prototype),r=/* @__PURE__ */ Error();return Object.assign(n,{name:e,message:t,get stack(){return(r.stack||``).replace(/^(.+\n){1,3}/,`${e}: ${t}\n`)}})}function Wf({source:e,line:t,column:n},r){function i(e,t){return a.slice(e,t).map(((t,n)=>String(e+n+1).padStart(c)+` |`+t)).join(`
16
+ `)}let a=e.split(/\r\n?|\n|\f/),o=Math.max(1,t-r)-1,s=Math.min(t+r,a.length+1),c=Math.max(4,String(s).length)+1,l=0;n+=3*(a[t-1].substr(0,n-1).match(/\t/g)||[]).length,n>100&&(l=n-60+3,n=58);for(let e=o;e<=s;e++)e>=0&&e<a.length&&(a[e]=a[e].replace(/\t/g,` `),a[e]=(l>0&&a[e].length>l?`…`:``)+a[e].substr(l,98)+(a[e].length>l+100-1?`…`:``));return[i(o,t),Array(n+c+2).join(`-`)+`^`,i(t,s)].filter(Boolean).join(`
17
+ `)}function Gf(e,t,n,r,i){return Object.assign(Uf(`SyntaxError`,e),{source:t,offset:n,line:r,column:i,sourceFragment:e=>Wf({source:t,line:r,column:i},isNaN(e)?0:e),get formattedMessage(){return`Parse error: ${e}\n`+Wf({source:t,line:r,column:i},2)}})}function Kf(e){let t=this.createList(),n=!1,r={recognizer:e};for(;!this.eof;){switch(this.tokenType){case 25:this.next();continue;case 13:n=!0,this.next();continue}let i=e.getNode.call(this,r);if(i===void 0)break;n&&=(e.onWhiteSpace&&e.onWhiteSpace.call(this,i,t,r),!1),t.push(i)}return n&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,r),t}const qf=()=>{};function Jf(e){return function(){return this[e]()}}function Yf(e){let t=Object.create(null);for(let n in e){let r=e[n],i=r.parse||r;i&&(t[n]=i)}return t}function Xf(e){let t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:Yf(e.atrule),pseudo:Yf(e.pseudo),node:Yf(e.node)};for(let n in e.parseContext)switch(typeof e.parseContext[n]){case`function`:t.context[n]=e.parseContext[n];break;case`string`:t.context[n]=Jf(e.parseContext[n])}return{config:t,...t,...t.node}}function Zf(e){let t=``,n=`<unknown>`,r=!1,i=qf,a=!1,o=new Rf,s=Object.assign(new Bf,Xf(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:Kf,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket:e=>+(e===123),consumeUntilLeftCurlyBracketOrSemicolon:e=>+(e===123||e===59),consumeUntilExclamationMarkOrSemicolon:e=>+(e===33||e===59),consumeUntilSemicolonIncluded:e=>e===59?2:0,createList:()=>new G,createSingleNodeList:e=>new G().appendData(e),getFirstListNode:e=>e&&e.first,getLastListNode:e=>e&&e.last,parseWithFallback(e,t){let n=this.tokenIndex;try{return e.call(this)}catch(e){if(a)throw e;let r=t.call(this,n);return a=!0,i(e,r),a=!1,r}},lookupNonWSType(e){let t;do if(t=this.lookupType(e++),t!==13)return t;while(t!==0);return 0},charCodeAt:e=>e>=0&&e<t.length?t.charCodeAt(e):0,substring:(e,n)=>t.substring(e,n),substrToCursor(e){return this.source.substring(e,this.tokenStart)},cmpChar:(e,n)=>Tf(t,e,n),cmpStr:(e,n,r)=>Ef(t,e,n,r),consume(e){let t=this.tokenStart;return this.eat(e),this.substrToCursor(t)},consumeFunctionName(){let e=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(2),e},consumeNumber(e){let n=t.substring(this.tokenStart,Mf(t,this.tokenStart));return this.eat(e),n},eat(e){if(this.tokenType!==e){let t=Ff[e].slice(0,-6).replace(/-/g,` `).replace(/^./,(e=>e.toUpperCase())),n=`${/[[\](){}]/.test(t)?`"${t}"`:t} is expected`,r=this.tokenStart;switch(e){case 1:this.tokenType===2||this.tokenType===7?(r=this.tokenEnd-1,n=`Identifier is expected but function found`):n=`Identifier is expected`;break;case 4:this.isDelim(35)&&(this.next(),r++,n=`Name is expected`);break;case 11:this.tokenType===10&&(r=this.tokenEnd,n=`Percent sign is expected`)}this.error(n,r)}this.next()},eatIdent(e){this.tokenType===1&&this.lookupValue(0,e)!==!1||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){return r?o.getLocationRange(e,t,n):null},getLocationFromList(e){if(r){let t=this.getFirstListNode(e),r=this.getLastListNode(e);return o.getLocationRange(t===null?this.tokenStart:t.loc.start.offset-o.startOffset,r===null?this.tokenStart:r.loc.end.offset-o.startOffset,n)}return null},error(e,n){let r=n!==void 0&&n<t.length?o.getLocation(n):this.eof?o.getLocation(Df(t,t.length-1)):o.getLocation(this.tokenStart);throw new Gf(e||`Unexpected input`,t,r.offset,r.line,r.column)}});return Object.assign(function(e,c){t=e,c||={},s.setSource(t,Vf),o.setSource(t,c.offset,c.line,c.column),n=c.filename||`<unknown>`,r=!!c.positions,i=typeof c.onParseError==`function`?c.onParseError:qf,a=!1,s.parseAtrulePrelude=!(`parseAtrulePrelude`in c)||!!c.parseAtrulePrelude,s.parseRulePrelude=!(`parseRulePrelude`in c)||!!c.parseRulePrelude,s.parseValue=!(`parseValue`in c)||!!c.parseValue,s.parseCustomProperty=`parseCustomProperty`in c&&!!c.parseCustomProperty;let{context:l=`default`,onComment:u}=c;if(!(l in s.context))throw Error("Unknown context `"+l+"`");typeof u==`function`&&s.forEachToken(((e,n,r)=>{if(e===25){let e=s.getLocation(n,r),i=Ef(t,r-2,r,`*/`)?t.slice(n+2,r-2):t.slice(n+2,r);u(i,e)}}));let d=s.context[l].call(s,c);return s.eof||s.error(),d},{SyntaxError:Gf,config:s.config})}const Qf=/* @__PURE__ */ new Set([`Atrule`,`Selector`,`Declaration`]);function $f(e){let t=new pi,n={line:1,column:0},r={line:0,column:0},i={line:1,column:0},a={generated:i},o=1,s=0,c=!1,l=e.node;e.node=function(e){if(e.loc&&e.loc.start&&Qf.has(e.type)){let l=e.loc.start.line,u=e.loc.start.column-1;(r.line!==l||r.column!==u)&&(r.line=l,r.column=u,n.line=o,n.column=s,c&&(c=!1,n.line===i.line&&n.column===i.column||t.addMapping(a)),c=!0,t.addMapping({source:e.loc.source,original:r,generated:n}))}l.call(this,e),c&&Qf.has(e.type)&&(i.line=o,i.column=s)};let u=e.emit;e.emit=function(e,t,n){for(let t=0;t<e.length;t++)e.charCodeAt(t)===10?(o++,s=0):s++;u(e,t,n)};let d=e.result;return e.result=function(){return c&&t.addMapping(a),{css:d(),map:t}},e}const ep=(e,t)=>{if(e===9&&(e=t),typeof e==`string`){let t=e.charCodeAt(0);return t>127?32768:t<<8}return e},tp=[[1,1],[1,2],[1,7],[1,8],[1,`-`],[1,10],[1,11],[1,12],[1,15],[1,21],[3,1],[3,2],[3,7],[3,8],[3,`-`],[3,10],[3,11],[3,12],[3,15],[4,1],[4,2],[4,7],[4,8],[4,`-`],[4,10],[4,11],[4,12],[4,15],[12,1],[12,2],[12,7],[12,8],[12,`-`],[12,10],[12,11],[12,12],[12,15],[`#`,1],[`#`,2],[`#`,7],[`#`,8],[`#`,`-`],[`#`,10],[`#`,11],[`#`,12],[`#`,15],[`-`,1],[`-`,2],[`-`,7],[`-`,8],[`-`,`-`],[`-`,10],[`-`,11],[`-`,12],[`-`,15],[10,1],[10,2],[10,7],[10,8],[10,10],[10,11],[10,12],[10,`%`],[10,15],[`@`,1],[`@`,2],[`@`,7],[`@`,8],[`@`,`-`],[`@`,15],[`.`,10],[`.`,11],[`.`,12],[`+`,10],[`+`,11],[`+`,12],[`/`,`*`]],np=tp.concat([[1,4],[12,4],[4,4],[3,21],[3,5],[3,16],[11,11],[11,12],[11,2],[11,`-`],[22,1],[22,2],[22,11],[22,12],[22,4],[22,`-`]]);function rp(e){let t=new Set(e.map((([e,t])=>ep(e)<<16|ep(t))));return function(e,n,r){let i=ep(n,r),a=r.charCodeAt(0);return(a===45&&n!==1&&n!==2&&n!==15||a===43?t.has(e<<16|a<<8):t.has(e<<16|i))&&this.emit(` `,13,!0),i}}const ip=rp(tp),ap=rp(np);var op=Object.freeze({__proto__:null,safe:ap,spec:ip});function sp(e,t){if(typeof t==`function`){let n=null;e.children.forEach((e=>{n!==null&&t.call(this,n),this.node(e),n=e}))}else e.children.forEach(this.node,this)}function cp(e){Vf(e,((t,n,r)=>{this.token(t,e.slice(n,r))}))}function lp(e){let t=/* @__PURE__ */ new Map;for(let n in e.node){let r=e.node[n];typeof(r.generate||r)==`function`&&t.set(n,r.generate||r)}return function(e,n){let r=``,i=0,a={node(e){if(!t.has(e.type))throw Error(`Unknown node type: `+e.type);t.get(e.type).call(o,e)},tokenBefore:ap,token(e,t){i=this.tokenBefore(i,e,t),this.emit(t,e,!1),e===9&&t.charCodeAt(0)===92&&this.emit(`
18
+ `,13,!0)},emit(e){r+=e},result:()=>r};n&&(typeof n.decorator==`function`&&(a=n.decorator(a)),n.sourceMap&&(a=$f(a)),n.mode in op&&(a.tokenBefore=op[n.mode]));let o={node:e=>a.node(e),children:sp,token:(e,t)=>a.token(e,t),tokenize:cp};return a.node(e),a.result()}}function up(e){return{fromPlainObject(t){return e(t,{enter(e){e.children&&!(e.children instanceof G)&&(e.children=new G().fromArray(e.children))}}),t},toPlainObject(t){return e(t,{leave(e){e.children&&e.children instanceof G&&(e.children=e.children.toArray())}}),t}}}const{hasOwnProperty:dp}=Object.prototype,fp=function(){};function pp(e){return typeof e==`function`?e:fp}function mp(e,t){return function(n,r,i){n.type===t&&e.call(this,n,r,i)}}function hp(e,t){let n=t.structure,r=[];for(let e in n){if(dp.call(n,e)===!1)continue;let t=n[e],i={name:e,type:!1,nullable:!1};Array.isArray(t)||(t=[t]);for(let e of t)e===null?i.nullable=!0:typeof e==`string`?i.type=`node`:Array.isArray(e)&&(i.type=`list`);i.type&&r.push(i)}return r.length?{context:t.walkContext,fields:r}:null}function gp(e){let t={};for(let n in e.node)if(dp.call(e.node,n)){let r=e.node[n];if(!r.structure)throw Error("Missed `structure` field in `"+n+"` node type definition");t[n]=hp(n,r)}return t}function _p(e,t){let n=e.fields.slice(),r=e.context,i=typeof r==`string`;return t&&n.reverse(),function(e,a,o,s){let c;i&&(c=a[r],a[r]=e);for(let r of n){let n=e[r.name];if(!r.nullable||n){if(r.type===`list`){if(t?n.reduceRight(s,!1):n.reduce(s,!1))return!0}else if(o(n))return!0}}i&&(a[r]=c)}}function vp({StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:i}){return{Atrule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Rule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Declaration:{StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:i}}}function yp(e){let t=gp(e),n={},r={},i=Symbol(`break-walk`),a=Symbol(`skip-node`);for(let e in t)dp.call(t,e)&&t[e]!==null&&(n[e]=_p(t[e],!1),r[e]=_p(t[e],!0));let o=vp(n),s=vp(r),c=function(e,c){function l(e,t,n){let r=u.call(m,e,t,n);return r===i||r!==a&&!!(f.hasOwnProperty(e.type)&&f[e.type](e,m,l,p)||d.call(m,e,t,n)===i)}let u=fp,d=fp,f=n,p=(e,t,n,r)=>e||l(t,n,r),m={break:i,skip:a,root:e,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof c==`function`)u=c;else if(c&&(u=pp(c.enter),d=pp(c.leave),c.reverse&&(f=r),c.visit)){if(o.hasOwnProperty(c.visit))f=c.reverse?s[c.visit]:o[c.visit];else if(!t.hasOwnProperty(c.visit))throw Error("Bad value `"+c.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(`, `)+`)`);u=mp(u,c.visit),d=mp(d,c.visit)}if(u===fp&&d===fp)throw Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");l(e)};return c.break=i,c.skip=a,c.find=function(e,t){let n=null;return c(e,(function(e,r,a){if(t.call(this,e,r,a))return n=e,i})),n},c.findLast=function(e,t){let n=null;return c(e,{reverse:!0,enter(e,r,a){if(t.call(this,e,r,a))return n=e,i}}),n},c.findAll=function(e,t){let n=[];return c(e,(function(e,r,i){t.call(this,e,r,i)&&n.push(e)})),n},c}function bp(e){return e}function xp(e){let{min:t,max:n,comma:r}=e;return t===0&&n===0?r?`#?`:`*`:t===0&&n===1?`?`:t===1&&n===0?r?`#`:`+`:t===1&&n===1?``:(r?`#`:``)+(t===n?`{`+t+`}`:`{`+t+`,`+(n===0?``:n)+`}`)}function Sp(e){switch(e.type){case`Range`:return` [`+(e.min===null?`-∞`:e.min)+`,`+(e.max===null?`∞`:e.max)+`]`;default:throw Error("Unknown node type `"+e.type+"`")}}function Cp(e,t,n,r){let i=e.combinator===` `||r?e.combinator:` `+e.combinator+` `,a=e.terms.map((e=>wp(e,t,n,r))).join(i);return e.explicit||n?(r||a[0]===`,`?`[`:`[ `)+a+(r?`]`:` ]`):a}function wp(e,t,n,r){let i;switch(e.type){case`Group`:i=Cp(e,t,n,r)+(e.disallowEmpty?`!`:``);break;case`Multiplier`:return wp(e.term,t,n,r)+t(xp(e),e);case`Type`:i=`<`+e.name+(e.opts?t(Sp(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 Error("Unknown node type `"+e.type+"`")}return t(i,e)}function Tp(e,t){let n=bp,r=!1,i=!1;return typeof t==`function`?n=t:t&&(r=!!t.forceBraces,i=!!t.compact,typeof t.decorate==`function`&&(n=t.decorate)),wp(e,n,r,i)}const Ep={offset:0,line:1,column:1};function Dp(e,t){let n=e.tokens,r=e.longestMatch,i=r<n.length&&n[r].node||null,a=i===t?null:i,o=0,s=0,c=0,l=``,u,d;for(let e=0;e<n.length;e++){let t=n[e].value;e===r&&(s=t.length,o=l.length),a!==null&&n[e].node===a&&(e<=r?c++:c=0),l+=t}return r===n.length||c>1?(u=Op(a||t,`end`)||kp(Ep,l),d=kp(u)):(u=Op(a,`start`)||kp(Op(t,`start`)||Ep,l.slice(0,o)),d=Op(a,`end`)||kp(u,l.substr(o,s))),{css:l,mismatchOffset:o,mismatchLength:s,start:u,end:d}}function Op(e,t){let n=e&&e.loc&&e.loc[t];return n?`line`in n?kp(n):n:null}function kp({offset:e,line:t,column:n},r){let i={offset:e,line:t,column:n};if(r){let e=r.split(/\n|\r\n?|\f/);i.offset+=r.length,i.line+=e.length-1,i.column=e.length===1?i.column+r.length:e.pop().length+1}return i}const Ap=function(e,t){let n=Uf(`SyntaxReferenceError`,e+(t?" `"+t+"`":``));return n.reference=t,n},jp=function(e,t,n,r){let i=Uf(`SyntaxMatchError`,e),{css:a,mismatchOffset:o,mismatchLength:s,start:c,end:l}=Dp(r,n);return i.rawMessage=e,i.syntax=t?Tp(t):`<generic>`,i.css=a,i.mismatchOffset=o,i.mismatchLength=s,i.message=e+`
19
+ syntax: `+i.syntax+`
20
+ value: `+(a||`<empty string>`)+`
21
+ --------`+Array(i.mismatchOffset+1).join(`-`)+`^`,Object.assign(i,c),i.loc={source:n&&n.loc&&n.loc.source||`<unknown>`,start:c,end:l},i},Mp=/* @__PURE__ */ new Map,Np=/* @__PURE__ */ new Map,Pp=Rp,Fp=zp;function Ip(e,t){return t||=0,e.length-t>=2&&e.charCodeAt(t)===45&&e.charCodeAt(t+1)===45}function Lp(e,t){if(t||=0,e.length-t>=3&&e.charCodeAt(t)===45&&e.charCodeAt(t+1)!==45){let n=e.indexOf(`-`,t+2);if(n!==-1)return e.substring(t,n+1)}return``}function Rp(e){if(Mp.has(e))return Mp.get(e);let t=e.toLowerCase(),n=Mp.get(t);if(n===void 0){let e=Ip(t,0),r=e?``:Lp(t,0);n=Object.freeze({basename:t.substr(r.length),name:t,prefix:r,vendor:r,custom:e})}return Mp.set(e,n),n}function zp(e){if(Np.has(e))return Np.get(e);let t=e,n=e[0];n===`/`?n=e[1]===`/`?`//`:`/`:n!==`_`&&n!==`*`&&n!==`$`&&n!==`#`&&n!==`+`&&n!==`&`&&(n=``);let r=Ip(t,n.length);if(!r&&(t=t.toLowerCase(),Np.has(t))){let n=Np.get(t);return Np.set(e,n),n}let i=r?``:Lp(t,n.length),a=t.substr(0,n.length+i.length),o=Object.freeze({basename:t.substr(a.length),name:t.substr(n.length),hack:n,vendor:i,prefix:a,custom:r});return Np.set(e,o),o}const Bp=[`initial`,`inherit`,`unset`,`revert`,`revert-layer`];function Vp(e,t){return e!==null&&e.type===9&&e.value.charCodeAt(0)===t}function Hp(e,t,n){for(;e!==null&&(e.type===13||e.type===25);)e=n(++t);return t}function Up(e,t,n,r){if(!e)return 0;let i=e.value.charCodeAt(t);if(i===43||i===45){if(n)return 0;t++}for(;t<e.value.length;t++)if(!U(e.value.charCodeAt(t)))return 0;return r+1}function Wp(e,t,n){let r=!1,i=Hp(e,t,n);if(e=n(i),e===null)return t;if(e.type!==10){if(!Vp(e,43)&&!Vp(e,45))return t;if(r=!0,i=Hp(n(++i),i,n),e=n(i),e===null||e.type!==10)return 0}if(!r){let t=e.value.charCodeAt(0);if(t!==43&&t!==45)return 0}return Up(e,+!r,r,i)}function Gp(e,t){let n=0;if(!e)return 0;if(e.type===10)return Up(e,0,!1,n);if(e.type===1&&e.value.charCodeAt(0)===45){if(!Tf(e.value,1,110))return 0;switch(e.value.length){case 2:return Wp(t(++n),n,t);case 3:return e.value.charCodeAt(2)===45?(n=Hp(t(++n),n,t),e=t(n),Up(e,0,!0,n)):0;default:return e.value.charCodeAt(2)===45?Up(e,3,!0,n):0}}else if(e.type===1||Vp(e,43)&&t(n+1).type===1){if(e.type!==1&&(e=t(++n)),e===null||!Tf(e.value,0,110))return 0;switch(e.value.length){case 1:return Wp(t(++n),n,t);case 2:return e.value.charCodeAt(1)===45?(n=Hp(t(++n),n,t),e=t(n),Up(e,0,!0,n)):0;default:return e.value.charCodeAt(1)===45?Up(e,2,!0,n):0}}else if(e.type===12){let r=e.value.charCodeAt(0),i=+(r===43||r===45),a=i;for(;a<e.value.length&&U(e.value.charCodeAt(a));a++);return a===i||!Tf(e.value,a,110)?0:a+1===e.value.length?Wp(t(++n),n,t):e.value.charCodeAt(a+1)===45?a+2===e.value.length?(n=Hp(t(++n),n,t),e=t(n),Up(e,0,!0,n)):Up(e,a+2,!0,n):0}return 0}function Kp(e,t){return e!==null&&e.type===9&&e.value.charCodeAt(0)===t}function qp(e,t){return e.value.charCodeAt(0)===t}function Jp(e,t,n){let r=0;for(let i=t;i<e.value.length;i++){let a=e.value.charCodeAt(i);if(a===45&&n&&r!==0)return Jp(e,t+r+1,!1),6;if(!sf(a)||++r>6)return 0}return r}function Yp(e,t,n){if(!e)return 0;for(;Kp(n(t),63);){if(++e>6)return 0;t++}return t}function Xp(e,t){let n=0;if(e===null||e.type!==1||!Tf(e.value,0,117)||(e=t(++n),e===null))return 0;if(Kp(e,43))return e=t(++n),e===null?0:e.type===1?Yp(Jp(e,0,!0),++n,t):Kp(e,63)?Yp(1,++n,t):0;if(e.type===10){let r=Jp(e,1,!0);return r===0?0:(e=t(++n),e===null?n:e.type===12||e.type===10?!qp(e,45)||!Jp(e,1,!1)?0:n+1:Yp(r,n,t))}return e.type===12?Yp(Jp(e,1,!0),++n,t):0}const Zp=[`calc(`,`-moz-calc(`,`-webkit-calc(`],Qp=/* @__PURE__ */ new Map([[2,22],[21,22],[19,20],[23,24]]),$p=/* @__PURE__ */ `cm.mm.q.in.pt.pc.px.em.rem.ex.rex.cap.rcap.ch.rch.ic.ric.lh.rlh.vw.svw.lvw.dvw.vh.svh.lvh.dvh.vi.svi.lvi.dvi.vb.svb.lvb.dvb.vmin.svmin.lvmin.dvmin.vmax.svmax.lvmax.dvmax.cqw.cqh.cqi.cqb.cqmin.cqmax`.split(`.`),em=[`deg`,`grad`,`rad`,`turn`],tm=[`s`,`ms`],nm=[`hz`,`khz`],rm=[`dpi`,`dpcm`,`dppx`,`x`],im=[`fr`],am=[`db`],om=[`st`];function sm(e,t){return t<e.length?e.charCodeAt(t):0}function cm(e,t){return Ef(e,0,e.length,t)}function lm(e,t){for(let n=0;n<t.length;n++)if(cm(e,t[n]))return!0;return!1}function um(e,t){return t===e.length-2&&sm(e,t)===92&&U(sm(e,t+1))}function dm(e,t,n){if(e&&e.type===`Range`){let r=Number(n!==void 0&&n!==t.length?t.substr(0,n):t);if(isNaN(r)||e.min!==null&&r<e.min&&typeof e.min!=`string`||e.max!==null&&r>e.max&&typeof e.max!=`string`)return!0}return!1}function fm(e,t){let n=0,r=[],i=0;scan:do{switch(e.type){case 24:case 22:case 20:if(e.type!==n)break scan;if(n=r.pop(),r.length===0){i++;break scan}break;case 2:case 21:case 19:case 23:r.push(n),n=Qp.get(e.type)}i++}while(e=t(i));return i}function K(e){return function(t,n,r){return t===null?0:t.type===2&&lm(t.value,Zp)?fm(t,n):e(t,n,r)}}function q(e){return function(t){return t===null||t.type!==e?0:1}}function pm(e){if(e===null||e.type!==1)return 0;let t=e.value.toLowerCase();return lm(t,Bp)||cm(t,`default`)?0:1}function mm(e){return e===null||e.type!==1||sm(e.value,0)!==45||sm(e.value,1)!==45?0:1}function hm(e){if(e===null||e.type!==4)return 0;let t=e.value.length;if(t!==4&&t!==5&&t!==7&&t!==9)return 0;for(let n=1;n<t;n++)if(!sf(sm(e.value,n)))return 0;return 1}function gm(e){return e===null||e.type!==4||!vf(sm(e.value,1),sm(e.value,2),sm(e.value,3))?0:1}function _m(e,t){if(!e)return 0;let n=0,r=[],i=0;scan:do{switch(e.type){case 6:case 8:break scan;case 24:case 22:case 20:if(e.type!==n)break scan;n=r.pop();break;case 17:if(n===0)break scan;break;case 9:if(n===0&&e.value===`!`)break scan;break;case 2:case 21:case 19:case 23:r.push(n),n=Qp.get(e.type)}i++}while(e=t(i));return i}function vm(e,t){if(!e)return 0;let n=0,r=[],i=0;scan:do{switch(e.type){case 6:case 8:break scan;case 24:case 22:case 20:if(e.type!==n)break scan;n=r.pop();break;case 2:case 21:case 19:case 23:r.push(n),n=Qp.get(e.type)}i++}while(e=t(i));return i}function ym(e){return e&&=new Set(e),function(t,n,r){if(t===null||t.type!==12)return 0;let i=Mf(t.value,0);if(e!==null){let n=t.value.indexOf(`\\`,i),r=n!==-1&&um(t.value,n)?t.value.substring(i,n):t.value.substr(i);if(e.has(r.toLowerCase())===!1)return 0}return+!dm(r,t.value,i)}}function bm(e,t,n){return e===null||e.type!==11||dm(n,e.value,e.value.length-1)?0:1}function xm(e){return typeof e!=`function`&&(e=function(){return 0}),function(t,n,r){return t!==null&&t.type===10&&Number(t.value)===0?1:e(t,n,r)}}function Sm(e,t,n){if(e===null)return 0;let r=Mf(e.value,0);return r!==e.value.length&&!um(e.value,r)||dm(n,e.value,r)?0:1}function Cm(e,t,n){if(e===null||e.type!==10)return 0;let r=+(sm(e.value,0)===43||sm(e.value,0)===45);for(;r<e.value.length;r++)if(!U(sm(e.value,r)))return 0;return+!dm(n,e.value,r)}var wm={"ident-token":q(1),"function-token":q(2),"at-keyword-token":q(3),"hash-token":q(4),"string-token":q(5),"bad-string-token":q(6),"url-token":q(7),"bad-url-token":q(8),"delim-token":q(9),"number-token":q(10),"percentage-token":q(11),"dimension-token":q(12),"whitespace-token":q(13),"CDO-token":q(14),"CDC-token":q(15),"colon-token":q(16),"semicolon-token":q(17),"comma-token":q(18),"[-token":q(19),"]-token":q(20),"(-token":q(21),")-token":q(22),"{-token":q(23),"}-token":q(24),string:q(5),ident:q(1),"custom-ident":pm,"custom-property-name":mm,"hex-color":hm,"id-selector":gm,"an-plus-b":Gp,urange:Xp,"declaration-value":_m,"any-value":vm,dimension:K(ym(null)),angle:K(ym(em)),decibel:K(ym(am)),frequency:K(ym(nm)),flex:K(ym(im)),length:K(xm(ym($p))),resolution:K(ym(rm)),semitones:K(ym(om)),time:K(ym(tm)),percentage:K(bm),zero:xm(),number:K(Sm),integer:K(Cm)};function Tm(e,t,n){return Object.assign(Uf(`SyntaxError`,e),{input:t,offset:n,rawMessage:e,message:e+`
22
+ `+t+`
23
+ --`+Array((n||t.length)+1).join(`-`)+`^`})}var Em=class{constructor(e){this.str=e,this.pos=0}charCodeAt(e){return e<this.str.length?this.str.charCodeAt(e):0}charCode(){return this.charCodeAt(this.pos)}nextCharCode(){return this.charCodeAt(this.pos+1)}nextNonWsCode(e){return this.charCodeAt(this.findWsEnd(e))}findWsEnd(e){for(;e<this.str.length;e++){let t=this.str.charCodeAt(e);if(t!==13&&t!==10&&t!==12&&t!==32&&t!==9)break}return e}substringToPos(e){return this.str.substring(this.pos,this.pos=e)}eat(e){this.charCode()!==e&&this.error("Expect `"+String.fromCharCode(e)+"`"),this.pos++}peek(){return this.pos<this.str.length?this.str.charAt(this.pos++):``}error(e){throw new Tm(e,this.str,this.pos)}};const Dm=8734,Om=(/* @__PURE__ */ new Uint8Array(128)).map(((e,t)=>+!!/[a-zA-Z0-9\-]/.test(String.fromCharCode(t)))),km={" ":1,"&&":2,"||":3,"|":4};function Am(e){return e.substringToPos(e.findWsEnd(e.pos))}function jm(e){let t=e.pos;for(;t<e.str.length;t++){let n=e.str.charCodeAt(t);if(n>=128||Om[n]===0)break}return e.pos===t&&e.error(`Expect a keyword`),e.substringToPos(t)}function Mm(e){let t=e.pos;for(;t<e.str.length;t++){let n=e.str.charCodeAt(t);if(n<48||n>57)break}return e.pos===t&&e.error(`Expect a number`),e.substringToPos(t)}function Nm(e){let t=e.str.indexOf(`'`,e.pos+1);return t===-1&&(e.pos=e.str.length,e.error(`Expect an apostrophe`)),e.substringToPos(t+1)}function Pm(e){let t=null,n=null;return e.eat(123),t=Mm(e),e.charCode()===44?(e.pos++,e.charCode()!==125&&(n=Mm(e))):n=t,e.eat(125),{min:Number(t),max:n?Number(n):0}}function Fm(e){let t=null,n=!1;switch(e.charCode()){case 42:e.pos++,t={min:0,max:0};break;case 43:e.pos++,t={min:1,max:0};break;case 63:e.pos++,t={min:0,max:1};break;case 35:e.pos++,n=!0,e.charCode()===123?t=Pm(e):e.charCode()===63?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case 123:t=Pm(e);break;default:return null}return{type:`Multiplier`,comma:n,min:t.min,max:t.max,term:null}}function Im(e,t){let n=Fm(e);return n===null?t:(n.term=t,e.charCode()===35&&e.charCodeAt(e.pos-1)===43?Im(e,n):n)}function Lm(e){let t=e.peek();return t===``?null:{type:`Token`,value:t}}function Rm(e){let t;return e.eat(60),e.eat(39),t=jm(e),e.eat(39),e.eat(62),Im(e,{type:`Property`,name:t})}function zm(e){let t=null,n=null,r=1;return e.eat(91),e.charCode()===45&&(e.peek(),r=-1),r==-1&&e.charCode()===Dm?e.peek():(t=r*Number(Mm(e)),Om[e.charCode()]!==0&&(t+=jm(e))),Am(e),e.eat(44),Am(e),e.charCode()===Dm?e.peek():(r=1,e.charCode()===45&&(e.peek(),r=-1),n=r*Number(Mm(e)),Om[e.charCode()]!==0&&(n+=jm(e))),e.eat(93),{type:`Range`,min:t,max:n}}function Bm(e){let t,n=null;return e.eat(60),t=jm(e),e.charCode()===40&&e.nextCharCode()===41&&(e.pos+=2,t+=`()`),e.charCodeAt(e.findWsEnd(e.pos))===91&&(Am(e),n=zm(e)),e.eat(62),Im(e,{type:`Type`,name:t,opts:n})}function Vm(e){let t=jm(e);return e.charCode()===40?(e.pos++,{type:`Function`,name:t}):Im(e,{type:`Keyword`,name:t})}function Hm(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)=>km[e]-km[t]));t.length>0;){r=t.shift();let i=0,a=0;for(;i<e.length;i++){let t=e[i];t.type===`Combinator`&&(t.value===r?(a===-1&&(a=i-1),e.splice(i,1),i--):(a!==-1&&i-a>1&&(e.splice(a,i-a,n(e.slice(a,i),r)),i=a+1),a=-1))}a!==-1&&t.length&&e.splice(a,i-a,n(e.slice(a,i),r))}return r}function Um(e){let t=[],n={},r,i=null,a=e.pos;for(;r=Gm(e);)r.type!==`Spaces`&&(r.type===`Combinator`?((i===null||i.type===`Combinator`)&&(e.pos=a,e.error(`Unexpected combinator`)),n[r.value]=!0):i!==null&&i.type!==`Combinator`&&(n[` `]=!0,t.push({type:`Combinator`,value:` `})),t.push(r),i=r,a=e.pos);return i!==null&&i.type===`Combinator`&&(e.pos-=a,e.error(`Unexpected combinator`)),{type:`Group`,terms:t,combinator:Hm(t,n)||` `,disallowEmpty:!1,explicit:!1}}function Wm(e){let t;return e.eat(91),t=Um(e),e.eat(93),t.explicit=!0,e.charCode()===33&&(e.pos++,t.disallowEmpty=!0),t}function Gm(e){let t=e.charCode();if(t<128&&Om[t]===1)return Vm(e);switch(t){case 93:break;case 91:return Im(e,Wm(e));case 60:return e.nextCharCode()===39?Rm(e):Bm(e);case 124:return{type:`Combinator`,value:e.substringToPos(e.pos+(e.nextCharCode()===124?2:1))};case 38:return e.pos++,e.eat(38),{type:`Combinator`,value:`&&`};case 44:return e.pos++,{type:`Comma`};case 39:return Im(e,{type:`String`,value:Nm(e)});case 32:case 9:case 10:case 13:case 12:return{type:`Spaces`,value:Am(e)};case 64:return t=e.nextCharCode(),t<128&&Om[t]===1?(e.pos++,{type:`AtKeyword`,name:jm(e)}):Lm(e);case 42:case 43:case 63:case 35:case 33:break;case 123:if(t=e.nextCharCode(),t<48||t>57)return Lm(e);break;default:return Lm(e)}}function Km(e){let t=new Em(e),n=Um(t);return t.pos!==e.length&&t.error(`Unexpected input`),n.terms.length===1&&n.terms[0].type===`Group`?n.terms[0]:n}const qm=function(){};function Jm(e){return typeof e==`function`?e:qm}function Ym(e,t,n){function r(e){switch(i.call(n,e),e.type){case`Group`:e.terms.forEach(r);break;case`Multiplier`:r(e.term);break;case`Type`:case`Property`:case`Keyword`:case`AtKeyword`:case`Function`:case`String`:case`Token`:case`Comma`:break;default:throw Error(`Unknown type: `+e.type)}a.call(n,e)}let i=qm,a=qm;if(typeof t==`function`?i=t:t&&(i=Jm(t.enter),a=Jm(t.leave)),i===qm&&a===qm)throw Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");r(e)}const Xm={decorator(e){let t=[],n=null;return{...e,node(t){let 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 Zm(e){let t=[];return Vf(e,((n,r,i)=>t.push({type:n,value:e.slice(r,i),node:null}))),t}function Qm(e,t){return typeof e==`string`?Zm(e):t.generate(e,Xm)}const J={type:`Match`},Y={type:`Mismatch`},$m={type:`DisallowEmpty`};function X(e,t,n){return t===J&&n===Y||e===J&&t===J&&n===J?e:(e.type===`If`&&e.else===Y&&t===J&&(t=e.then,e=e.match),{type:`If`,match:e,then:t,else:n})}function eh(e){return e.length>2&&e.charCodeAt(e.length-2)===40&&e.charCodeAt(e.length-1)===41}function th(e){return e.type===`Keyword`||e.type===`AtKeyword`||e.type===`Function`||e.type===`Type`&&eh(e.name)}function nh(e,t,n){switch(e){case` `:{let e=J;for(let n=t.length-1;n>=0;n--){let r=t[n];e=X(r,e,Y)}return e}case`|`:{let e=Y,n=null;for(let r=t.length-1;r>=0;r--){let i=t[r];if(th(i)&&(n===null&&r>0&&th(t[r-1])&&(n=Object.create(null),e=X({type:`Enum`,map:n},J,e)),n!==null)){let e=(eh(i.name)?i.name.slice(0,-1):i.name).toLowerCase();if(!(e in n)){n[e]=i;continue}}n=null,e=X(i,J,e)}return e}case`&&`:{if(t.length>5)return{type:`MatchOnce`,terms:t,all:!0};let n=Y;for(let r=t.length-1;r>=0;r--){let i=t[r],a;a=t.length>1?nh(e,t.filter((function(e){return e!==i})),!1):J,n=X(i,a,n)}return n}case`||`:{if(t.length>5)return{type:`MatchOnce`,terms:t,all:!1};let r=n?J:Y;for(let n=t.length-1;n>=0;n--){let i=t[n],a;a=t.length>1?nh(e,t.filter((function(e){return e!==i})),!0):J,r=X(i,a,r)}return r}}}function rh(e){let t=J,n=ih(e.term);if(e.max===0)n=X(n,$m,Y),t=X(n,null,Y),t.then=X(J,J,t),e.comma&&(t.then.else=X({type:`Comma`,syntax:e},t,Y));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==J&&(t=X({type:`Comma`,syntax:e},t,Y)),t=X(n,X(J,J,t),Y);if(e.min===0)t=X(J,J,t);else for(let r=0;r<e.min-1;r++)e.comma&&t!==J&&(t=X({type:`Comma`,syntax:e},t,Y)),t=X(n,t,Y);return t}function ih(e){if(typeof e==`function`)return{type:`Generic`,fn:e};switch(e.type){case`Group`:{let t=nh(e.combinator,e.terms.map(ih),!1);return e.disallowEmpty&&(t=X(t,$m,Y)),t}case`Multiplier`:return rh(e);case`Type`:case`Property`:return{type:e.type,name:e.name,syntax:e};case`Keyword`:return{type:e.type,name:e.name.toLowerCase(),syntax:e};case`AtKeyword`:return{type:e.type,name:`@`+e.name.toLowerCase(),syntax:e};case`Function`:return{type:e.type,name:e.name.toLowerCase()+`(`,syntax:e};case`String`:return e.value.length===3?{type:`Token`,value:e.value.charAt(1),syntax:e}:{type:e.type,value:e.value.substr(1,e.value.length-2).replace(/\\'/g,`'`),syntax:e};case`Token`:return{type:e.type,value:e.value,syntax:e};case`Comma`:return{type:e.type,syntax:e};default:throw Error(`Unknown node type:`,e.type)}}function ah(e,t){return typeof e==`string`&&(e=Km(e)),{type:`MatchGraph`,match:ih(e),syntax:t||null,source:e}}const{hasOwnProperty:oh}=Object.prototype,sh=`Match`;function ch(e){let t=null,n=null,r=e;for(;r!==null;)n=r.prev,r.prev=t,t=r,r=n;return t}function lh(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){let r=t.charCodeAt(n),i=e.charCodeAt(n);if(i>=65&&i<=90&&(i|=32),i!==r)return!1}return!0}function uh(e){return e.type===9&&e.value!==`?`}function dh(e){return e===null||e.type===18||e.type===2||e.type===21||e.type===19||e.type===23||uh(e)}function fh(e){return e===null||e.type===22||e.type===20||e.type===24||e.type===9&&e.value===`/`}function ph(e,t,n){function r(){do v++,_=v<e.length?e[v]:null;while(_!==null&&(_.type===13||_.type===25))}function i(t){let n=v+t;return n<e.length?e[n]:null}function a(e,t){return{nextState:e,matchStack:b,syntaxStack:d,thenStack:f,tokenIndex:v,prev:t}}function o(e){f={nextState:e,matchStack:b,syntaxStack:d,prev:f}}function s(e){p=a(e,p)}function c(){b={type:1,syntax:t.syntax,token:_,prev:b},r(),m=null,v>y&&(y=v)}function l(){d={syntax:t.syntax,opts:t.syntax.opts||d!==null&&d.opts||null,prev:d},b={type:2,syntax:t.syntax,token:b.token,prev:b}}function u(){b=b.type===2?b.prev:{type:3,syntax:d.syntax,token:b.token,prev:b},d=d.prev}let d=null,f=null,p=null,m=null,h=0,g=null,_=null,v=-1,y=0,b={type:0,syntax:null,token:null,prev:null};for(r();g===null&&++h<15e3;)switch(t.type){case`Match`:if(f===null){if(_!==null&&(v!==e.length-1||_.value!==`\\0`&&_.value!==`\\9`)){t=Y;break}g=sh;break}if(t=f.nextState,t===$m){if(f.matchStack===b){t=Y;break}t=J}for(;f.syntaxStack!==d;)u();f=f.prev;break;case`Mismatch`:if(m!==null&&m!==!1)(p===null||v>p.tokenIndex)&&(p=m,m=!1);else if(p===null){g=`Mismatch`;break}t=p.nextState,f=p.thenStack,d=p.syntaxStack,b=p.matchStack,v=p.tokenIndex,_=v<e.length?e[v]:null,p=p.prev;break;case`MatchGraph`:t=t.match;break;case`If`:t.else!==Y&&s(t.else),t.then!==J&&o(t.then),t=t.match;break;case`MatchOnce`:t={type:`MatchOnceBuffer`,syntax:t,index:0,mask:0};break;case`MatchOnceBuffer`:{let e=t.syntax.terms;if(t.index===e.length){if(t.mask===0||t.syntax.all){t=Y;break}t=J;break}if(t.mask===(1<<e.length)-1){t=J;break}for(;t.index<e.length;t.index++){let n=1<<t.index;if((t.mask&n)===0){s(t),o({type:`AddMatchOnce`,syntax:t.syntax,mask:t.mask|n}),t=e[t.index++];break}}break}case`AddMatchOnce`:t={type:`MatchOnceBuffer`,syntax:t.syntax,index:0,mask:t.mask};break;case`Enum`:if(_!==null){let e=_.value.toLowerCase();if(e.indexOf(`\\`)!==-1&&(e=e.replace(/\\[09].*$/,``)),oh.call(t.map,e)){t=t.map[e];break}}t=Y;break;case`Generic`:{let e=d===null?null:d.opts,n=v+Math.floor(t.fn(_,i,e));if(!isNaN(n)&&n>v){for(;v<n;)c();t=J}else t=Y;break}case`Type`:case`Property`:{let e=t.type===`Type`?`types`:`properties`,r=oh.call(n,e)?n[e][t.name]:null;if(!r||!r.match)throw Error(`Bad syntax reference: `+(t.type===`Type`?`<`+t.name+`>`:`<'`+t.name+`'>`));if(m!==!1&&_!==null&&t.type===`Type`&&(t.name===`custom-ident`&&_.type===1||t.name===`length`&&_.value===`0`)){m===null&&(m=a(t,p)),t=Y;break}l(),t=r.match;break}case`Keyword`:{let e=t.name;if(_!==null){let n=_.value;if(n.indexOf(`\\`)!==-1&&(n=n.replace(/\\[09].*$/,``)),lh(n,e)){c(),t=J;break}}t=Y;break}case`AtKeyword`:case`Function`:if(_!==null&&lh(_.value,t.name)){c(),t=J;break}t=Y;break;case`Token`:if(_!==null&&_.value===t.value){c(),t=J;break}t=Y;break;case`Comma`:_!==null&&_.type===18?dh(b.token)?t=Y:(c(),t=fh(_)?Y:J):t=dh(b.token)||fh(_)?J:Y;break;case`String`:let r=``,h=v;for(;h<e.length&&r.length<t.value.length;h++)r+=e[h].value;if(lh(r,t.value)){for(;v<h;)c();t=J}else t=Y;break;default:throw Error(`Unknown node type: `+t.type)}switch(g){case null:console.warn(`[csstree-match] BREAK after 15000 iterations`),g=`Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)`,b=null;break;case sh:for(;d!==null;)u();break;default:b=null}return{tokens:e,reason:g,iterations:h,match:b,longestMatch:y}}function mh(e,t,n){let r=ph(e,t,n||{});if(r.match===null)return r;let i=r.match,a=r.match={syntax:t.syntax||null,match:[]},o=[a];for(i=ch(i).prev;i!==null;){switch(i.type){case 2:a.match.push(a={syntax:i.syntax,match:[]}),o.push(a);break;case 3:o.pop(),a=o[o.length-1];break;default:a.match.push({syntax:i.syntax||null,token:i.token.value,node:i.token.node})}i=i.prev}return r}function hh(e){function t(e){return e===null?!1:e.type===`Type`||e.type===`Property`||e.type===`Keyword`}function n(i){if(Array.isArray(i.match)){for(let e=0;e<i.match.length;e++)if(n(i.match[e]))return t(i.syntax)&&r.unshift(i.syntax),!0}else if(i.node===e)return r=t(i.syntax)?[i.syntax]:[],!0;return!1}let r=null;return this.matched!==null&&n(this.matched),r}function gh(e,t){return yh(this,e,(e=>e.type===`Type`&&e.name===t))}function _h(e,t){return yh(this,e,(e=>e.type===`Property`&&e.name===t))}function vh(e){return yh(this,e,(e=>e.type===`Keyword`))}function yh(e,t,n){let r=hh.call(e,t);return r!==null&&r.some(n)}var bh=Object.freeze({__proto__:null,getTrace:hh,isKeyword:vh,isProperty:_h,isType:gh});function xh(e){return`node`in e?e.node:xh(e.match[0])}function Sh(e){return`node`in e?e.node:Sh(e.match[e.match.length-1])}function Ch(e,t,n,r,i){function a(n){if(n.syntax!==null&&n.syntax.type===r&&n.syntax.name===i){let r=xh(n),i=Sh(n);e.syntax.walk(t,(function(e,t,n){if(e===r){let e=new G;do{if(e.appendData(t.data),t.data===i)break;t=t.next}while(t!==null);o.push({parent:n,nodes:e})}}))}Array.isArray(n.match)&&n.match.forEach(a)}let o=[];return n.matched!==null&&a(n.matched),o}const{hasOwnProperty:wh}=Object.prototype;function Th(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e&&e>=0}function Eh(e){return!!e&&Th(e.offset)&&Th(e.line)&&Th(e.column)}function Dh(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 a=!0;if(wh.call(n,i)!==!1){if(i===`type`)n.type!==e&&r(n,"Wrong node type `"+n.type+"`, expected `"+e+"`");else if(i===`loc`){if(n.loc===null)continue;if(n.loc&&n.loc.constructor===Object){if(typeof n.loc.source!=`string`)i+=`.source`;else if(Eh(n.loc.start)){if(Eh(n.loc.end))continue;i+=`.end`}else i+=`.start`}a=!1}else if(t.hasOwnProperty(i)){a=!1;for(let e=0;!a&&e<t[i].length;e++){let r=t[i][e];switch(r){case String:a=typeof n[i]==`string`;break;case Boolean:a=typeof n[i]==`boolean`;break;case null:a=n[i]===null;break;default:typeof r==`string`?a=n[i]&&n[i].type===r:Array.isArray(r)&&(a=n[i]instanceof G)}}}else r(n,"Unknown field `"+i+"` for "+e+` node type`);a||r(n,"Bad value for `"+e+`.`+i+"`")}}for(let i in t)wh.call(t,i)&&wh.call(n,i)===!1&&r(n,"Field `"+e+`.`+i+"` is missed")}}function Oh(e,t){let n=t.structure,r={type:String,loc:!0},i={type:`"`+e+`"`};for(let t in n){if(wh.call(n,t)===!1)continue;let a=[],o=r[t]=Array.isArray(n[t])?n[t].slice():[n[t]];for(let n=0;n<o.length;n++){let r=o[n];if(r===String||r===Boolean)a.push(r.name);else if(r===null)a.push(`null`);else if(typeof r==`string`)a.push(`<`+r+`>`);else{if(!Array.isArray(r))throw Error("Wrong value `"+r+"` in `"+e+`.`+t+"` structure definition");a.push(`List`)}}i[t]=a.join(` | `)}return{docs:i,check:Dh(e,r)}}function kh(e){let t={};if(e.node){for(let n in e.node)if(wh.call(e.node,n)){let r=e.node[n];if(!r.structure)throw Error("Missed `structure` field in `"+n+"` node type definition");t[n]=Oh(n,r)}}return t}const Ah=ah(Bp.join(` | `));function jh(e,t,n){let r={};for(let i in e)e[i].syntax&&(r[i]=n?e[i].syntax:Tp(e[i].syntax,{compact:t}));return r}function Mh(e,t,n){let r={};for(let[i,a]of Object.entries(e))r[i]={prelude:a.prelude&&(n?a.prelude.syntax:Tp(a.prelude.syntax,{compact:t})),descriptors:a.descriptors&&jh(a.descriptors,t,n)};return r}function Nh(e){for(let t=0;t<e.length;t++)if(e[t].value.toLowerCase()===`var(`)return!0;return!1}function Ph(e,t,n){return{matched:e,iterations:n,error:t,...bh}}function Fh(e,t,n,r){let i=Qm(n,e.syntax),a;return Nh(i)?Ph(null,/* @__PURE__ */ Error(`Matching for a tree with var() is not supported`)):(r&&(a=mh(i,e.cssWideKeywordsSyntax,e)),(!r||!a.match)&&(a=mh(i,t.match,e),!a.match)?Ph(null,new jp(a.reason,t.syntax,n,a),a.iterations):Ph(a.match,null,a.iterations))}var Ih=class{constructor(e,t,n){if(this.cssWideKeywordsSyntax=Ah,this.syntax=t,this.generic=!1,this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=n||kh(e),e){if(e.types)for(let t in e.types)this.addType_(t,e.types[t]);if(e.generic){this.generic=!0;for(let e in wm)this.addType_(e,wm[e])}if(e.atrules)for(let t in e.atrules)this.addAtrule_(t,e.atrules[t]);if(e.properties)for(let t in e.properties)this.addProperty_(t,e.properties[t])}}checkStructure(e){function t(e,t){r.push({node:e,message:t})}let n=this.structure,r=[];return this.syntax.walk(e,(function(e){n.hasOwnProperty(e.type)?n[e.type].check(e,t):t(e,"Unknown node type `"+e.type+"`")})),!!r.length&&r}createDescriptor(e,t,n,r=null){let i={type:t,name:n},a={type:t,name:n,parent:r,serializable:typeof e==`string`||e&&typeof e.type==`string`,syntax:null,match:null};return typeof e==`function`?a.match=ah(e,i):(typeof e==`string`?Object.defineProperty(a,"syntax",{get(){return Object.defineProperty(a,"syntax",{value:Km(e)}),a.syntax}}):a.syntax=e,Object.defineProperty(a,"match",{get(){return Object.defineProperty(a,"match",{value:ah(a.syntax,i)}),a.match}})),a}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 Ap(`Unknown at-rule`,`@`+e)}checkAtrulePrelude(e,t){let n=this.checkAtruleName(e);if(n)return n;let r=this.getAtrule(e);if(!r.prelude&&t)return/* @__PURE__ */ SyntaxError("At-rule `@"+e+"` should not contain a prelude");if(r.prelude&&!t&&!Fh(this,r.prelude,``,!1).matched)return/* @__PURE__ */ SyntaxError("At-rule `@"+e+"` should contain a prelude")}checkAtruleDescriptorName(e,t){let n=this.checkAtruleName(e);if(n)return n;let r=this.getAtrule(e),i=Pp(t);if(!r.descriptors)return/* @__PURE__ */ SyntaxError("At-rule `@"+e+"` has no known descriptors");if(!r.descriptors[i.name]&&!r.descriptors[i.basename])return new Ap(`Unknown at-rule descriptor`,t)}checkPropertyName(e){if(!this.getProperty(e))return new Ap(`Unknown property`,e)}matchAtrulePrelude(e,t){let n=this.checkAtrulePrelude(e,t);if(n)return Ph(null,n);let r=this.getAtrule(e);return r.prelude?Fh(this,r.prelude,t||``,!1):Ph(null,null)}matchAtruleDescriptor(e,t,n){let r=this.checkAtruleDescriptorName(e,t);if(r)return Ph(null,r);let i=this.getAtrule(e),a=Pp(t);return Fh(this,i.descriptors[a.name]||i.descriptors[a.basename],n,!1)}matchDeclaration(e){return e.type===`Declaration`?this.matchProperty(e.property,e.value):Ph(null,/* @__PURE__ */ Error(`Not a Declaration node`))}matchProperty(e,t){if(Fp(e).custom)return Ph(null,/* @__PURE__ */ Error(`Lexer matching doesn't applicable for custom properties`));let n=this.checkPropertyName(e);return n?Ph(null,n):Fh(this,this.getProperty(e),t,!0)}matchType(e,t){let n=this.getType(e);return n?Fh(this,n,t,!1):Ph(null,new Ap(`Unknown type`,e))}match(e,t){return typeof e!=`string`&&(!e||!e.type)?Ph(null,new Ap(`Bad syntax`)):(typeof e!=`string`&&e.match||(e=this.createDescriptor(e,`Type`,`anonymous`)),Fh(this,e,t,!1))}findValueFragments(e,t,n,r){return Ch(this,t,this.matchProperty(e,t),n,r)}findDeclarationValueFragments(e,t,n){return Ch(this,e.value,this.matchDeclaration(e),t,n)}findAllFragments(e,t,n){let r=[];return this.syntax.walk(e,{visit:`Declaration`,enter:e=>{r.push.apply(r,this.findDeclarationValueFragments(e,t,n))}}),r}getAtrule(e,t=!0){let n=Pp(e);return(n.vendor&&t?this.atrules[n.name]||this.atrules[n.basename]:this.atrules[n.name])||null}getAtrulePrelude(e,t=!0){let 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,t=!0){let n=Fp(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,a,o){if(a.has(i))return a.get(i);a.set(i,!1),o.syntax!==null&&Ym(o.syntax,(function(o){if(o.type!==`Type`&&o.type!==`Property`)return;let s=o.type===`Type`?r.types:r.properties,c=o.type===`Type`?t:n;hasOwnProperty.call(s,o.name)&&!e(r,o.name,c,s[o.name])||a.set(i,!0)}),this)}let t=/* @__PURE__ */ new Map,n=/* @__PURE__ */ new Map;for(let n in this.types)e(this,n,t,this.types[n]);for(let t in this.properties)e(this,t,n,this.properties[t]);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,types:jh(this.types,!t,e),properties:jh(this.properties,!t,e),atrules:Mh(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}};const{hasOwnProperty:Lh}=Object.prototype,Rh={generic:!0,types:Wh,atrules:{prelude:Gh,descriptors:Gh},properties:Wh,parseContext:Vh,scope:Hh,atrule:[`parse`],pseudo:[`parse`],node:[`name`,`structure`,`parse`,`generate`,`walkContext`]};function zh(e){return e&&e.constructor===Object}function Bh(e){return zh(e)?{...e}:e}function Vh(e,t){return Object.assign(e,t)}function Hh(e,t){for(let n in t)Lh.call(t,n)&&(zh(e[n])?Hh(e[n],t[n]):e[n]=Bh(t[n]));return e}function Uh(e,t){return typeof t==`string`&&/^\s*\|/.test(t)?typeof e==`string`?e+t:t.replace(/^\s*\|\s*/,``):t||null}function Wh(e,t){if(typeof t==`string`)return Uh(e,t);let n={...e};for(let r in t)Lh.call(t,r)&&(n[r]=Uh(Lh.call(e,r)?e[r]:void 0,t[r]));return n}function Gh(e,t){let n=Wh(e,t);return!zh(n)||Object.keys(n).length?n:null}function Kh(e,t,n){for(let r in n)if(Lh.call(n,r)!==!1){if(n[r]===!0)Lh.call(t,r)&&(e[r]=Bh(t[r]));else if(n[r]){if(typeof n[r]==`function`){let i=n[r];e[r]=i({},e[r]),e[r]=i(e[r]||{},t[r])}else if(zh(n[r])){let i={};for(let t in e[r])i[t]=Kh({},e[r][t],n[r]);for(let e in t[r])i[e]=Kh(i[e]||{},t[r][e],n[r]);e[r]=i}else if(Array.isArray(n[r])){let i={},a=n[r].reduce((function(e,t){return e[t]=!0,e}),{});for(let[t,n]of Object.entries(e[r]||{}))i[t]={},n&&Kh(i[t],n,a);for(let e in t[r])Lh.call(t[r],e)&&(i[e]||(i[e]={}),t[r]&&t[r][e]&&Kh(i[e],t[r][e],a));e[r]=i}}}return e}var qh=(e,t)=>Kh(e,t,Rh);function Jh(e){let t=Zf(e),n=yp(e),r=lp(e),{fromPlainObject:i,toPlainObject:a}=up(n),o={lexer:null,createLexer:e=>new Ih(e,o,o.lexer.structure),tokenize:Vf,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:i,toPlainObject:a,fork(t){let n=qh({},e);return Jh(typeof t==`function`?t(n,Object.assign):qh(n,t))}};return o.lexer=new Ih({generic:!0,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},o),o}var Yh=e=>Jh(qh({},e)),Xh={generic:!0,types:{"absolute-size":`xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large`,"alpha-value":`<number>|<percentage>`,"angle-percentage":`<angle>|<percentage>`,"angular-color-hint":`<angle-percentage>`,"angular-color-stop":`<color>&&<color-stop-angle>?`,"angular-color-stop-list":`[<angular-color-stop> [, <angular-color-hint>]?]# , <angular-color-stop>`,"animateable-feature":`scroll-position|contents|<custom-ident>`,attachment:`scroll|fixed|local`,"attr()":`attr( <attr-name> <type-or-unit>? [, <attr-fallback>]? )`,"attr-matcher":`['~'|'|'|'^'|'$'|'*']? '='`,"attr-modifier":`i|s`,"attribute-selector":`'[' <wq-name> ']'|'[' <wq-name> <attr-matcher> [<string-token>|<ident-token>] <attr-modifier>? ']'`,"auto-repeat":`repeat( [auto-fill|auto-fit] , [<line-names>? <fixed-size>]+ <line-names>? )`,"auto-track-list":`[<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>? <auto-repeat> [<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>?`,"baseline-position":`[first|last]? baseline`,"basic-shape":`<inset()>|<circle()>|<ellipse()>|<polygon()>|<path()>`,"bg-image":`none|<image>`,"bg-layer":`<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>`,"bg-position":`[[left|center|right|top|bottom|<length-percentage>]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]|[center|[left|right] <length-percentage>?]&&[center|[top|bottom] <length-percentage>?]]`,"bg-size":`[<length-percentage>|auto]{1,2}|cover|contain`,"blur()":`blur( <length> )`,"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( <number-percentage> )`,"calc()":`calc( <calc-sum> )`,"calc-sum":`<calc-product> [['+'|'-'] <calc-product>]*`,"calc-product":`<calc-value> ['*' <calc-value>|'/' <number>]*`,"calc-value":`<number>|<dimension>|<percentage>|( <calc-sum> )`,"cf-final-image":`<image>|<color>`,"cf-mixing-image":`<percentage>?&&<image>`,"circle()":`circle( [<shape-radius>]? [at <position>]? )`,"clamp()":`clamp( <calc-sum>#{3} )`,"class-selector":`'.' <ident-token>`,"clip-source":`<url>`,color:`<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<hex-color>|<named-color>|currentcolor|<deprecated-system-color>`,"color-stop":`<color-stop-length>|<color-stop-angle>`,"color-stop-angle":`<angle-percentage>{1,2}`,"color-stop-length":`<length-percentage>{1,2}`,"color-stop-list":`[<linear-color-stop> [, <linear-color-hint>]?]# , <linear-color-stop>`,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":`[<type-selector>? <subclass-selector>* [<pseudo-element-selector> <pseudo-class-selector>*]*]!`,"compound-selector-list":`<compound-selector>#`,"complex-selector":`<compound-selector> [<combinator>? <compound-selector>]*`,"complex-selector-list":`<complex-selector>#`,"conic-gradient()":`conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )`,"contextual-alt-values":`[contextual|no-contextual]`,"content-distribution":`space-between|space-around|space-evenly|stretch`,"content-list":`[<string>|contents|<image>|<counter>|<quote>|<target>|<leader()>|<attr()>]+`,"content-position":`center|start|end|flex-start|flex-end`,"content-replacement":`<image>`,"contrast()":`contrast( [<number-percentage>] )`,counter:`<counter()>|<counters()>`,"counter()":`counter( <counter-name> , <counter-style>? )`,"counter-name":`<custom-ident>`,"counter-style":`<counter-style-name>|symbols( )`,"counter-style-name":`<custom-ident>`,"counters()":`counters( <counter-name> , <string> , <counter-style>? )`,"cross-fade()":`cross-fade( <cf-mixing-image> , <cf-final-image>? )`,"cubic-bezier-timing-function":`ease|ease-in|ease-out|ease-in-out|cubic-bezier( <number [0,1]> , <number> , <number [0,1]> , <number> )`,"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":`<display-outside>?&&[flow|flow-root]?&&list-item`,"display-outside":`block|inline|run-in`,"drop-shadow()":`drop-shadow( <length>{2,3} <color>? )`,"east-asian-variant-values":`[jis78|jis83|jis90|jis04|simplified|traditional]`,"east-asian-width-values":`[full-width|proportional-width]`,"element()":`element( <custom-ident> , [first|start|last|first-except]? )|element( <id-selector> )`,"ellipse()":`ellipse( [<shape-radius>{2}]? [at <position>]? )`,"ending-shape":`circle|ellipse`,"env()":`env( <custom-ident> , <declaration-value>? )`,"explicit-track-list":`[<line-names>? <track-size>]+ <line-names>?`,"family-name":`<string>|<custom-ident>+`,"feature-tag-value":`<string> [<integer>|on|off]?`,"feature-type":`@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation`,"feature-value-block":`<feature-type> '{' <feature-value-declaration-list> '}'`,"feature-value-block-list":`<feature-value-block>+`,"feature-value-declaration":`<custom-ident> : <integer>+ ;`,"feature-value-declaration-list":`<feature-value-declaration>`,"feature-value-name":`<custom-ident>`,"fill-rule":`nonzero|evenodd`,"filter-function":`<blur()>|<brightness()>|<contrast()>|<drop-shadow()>|<grayscale()>|<hue-rotate()>|<invert()>|<opacity()>|<saturate()>|<sepia()>`,"filter-function-list":`[<filter-function>|<url>]+`,"final-bg-layer":`<'background-color'>||<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>`,"fit-content()":`fit-content( [<length>|<percentage>] )`,"fixed-breadth":`<length-percentage>`,"fixed-repeat":`repeat( [<integer [1,∞]>] , [<line-names>? <fixed-size>]+ <line-names>? )`,"fixed-size":`<fixed-breadth>|minmax( <fixed-breadth> , <track-breadth> )|minmax( <inflexible-breadth> , <fixed-breadth> )`,"font-stretch-absolute":`normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|<percentage>`,"font-variant-css21":`[normal|small-caps]`,"font-weight-absolute":`normal|bold|<number [1,1000]>`,"frequency-percentage":`<frequency>|<percentage>`,"general-enclosed":`[<function-token> <any-value> )]|( <ident> <any-value> )`,"generic-family":`serif|sans-serif|cursive|fantasy|monospace|-apple-system`,"generic-name":`serif|sans-serif|cursive|fantasy|monospace`,"geometry-box":`<shape-box>|fill-box|stroke-box|view-box`,gradient:`<linear-gradient()>|<repeating-linear-gradient()>|<radial-gradient()>|<repeating-radial-gradient()>|<conic-gradient()>|<repeating-conic-gradient()>|<-legacy-gradient>`,"grayscale()":`grayscale( <number-percentage> )`,"grid-line":`auto|<custom-ident>|[<integer>&&<custom-ident>?]|[span&&[<integer>||<custom-ident>]]`,"historical-lig-values":`[historical-ligatures|no-historical-ligatures]`,"hsl()":`hsl( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsl( <hue> , <percentage> , <percentage> , <alpha-value>? )`,"hsla()":`hsla( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsla( <hue> , <percentage> , <percentage> , <alpha-value>? )`,hue:`<number>|<angle>`,"hue-rotate()":`hue-rotate( <angle> )`,"hwb()":`hwb( [<hue>|none] [<percentage>|none] [<percentage>|none] [/ [<alpha-value>|none]]? )`,image:`<url>|<image()>|<image-set()>|<element()>|<paint()>|<cross-fade()>|<gradient>`,"image()":`image( <image-tags>? [<image-src>? , <color>?]! )`,"image-set()":`image-set( <image-set-option># )`,"image-set-option":`[<image>|<string>] [<resolution>||type( <string> )]`,"image-src":`<url>|<string>`,"image-tags":`ltr|rtl`,"inflexible-breadth":`<length>|<percentage>|min-content|max-content|auto`,"inset()":`inset( <length-percentage>{1,4} [round <'border-radius'>]? )`,"invert()":`invert( <number-percentage> )`,"keyframes-name":`<custom-ident>|<string>`,"keyframe-block":`<keyframe-selector># { <declaration-list> }`,"keyframe-block-list":`<keyframe-block>+`,"keyframe-selector":`from|to|<percentage>`,"layer()":`layer( <layer-name> )`,"layer-name":`<ident> ['.' <ident>]*`,"leader()":`leader( <leader-type> )`,"leader-type":`dotted|solid|space|<string>`,"length-percentage":`<length>|<percentage>`,"line-names":`'[' <custom-ident>* ']'`,"line-name-list":`[<line-names>|<name-repeat>]+`,"line-style":`none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset`,"line-width":`<length>|thin|medium|thick`,"linear-color-hint":`<length-percentage>`,"linear-color-stop":`<color> <color-stop-length>?`,"linear-gradient()":`linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )`,"mask-layer":`<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||<geometry-box>||[<geometry-box>|no-clip]||<compositing-operator>||<masking-mode>`,"mask-position":`[<length-percentage>|left|center|right] [<length-percentage>|top|center|bottom]?`,"mask-reference":`none|<image>|<mask-source>`,"mask-source":`<url>`,"masking-mode":`alpha|luminance|match-source`,"matrix()":`matrix( <number>#{6} )`,"matrix3d()":`matrix3d( <number>#{16} )`,"max()":`max( <calc-sum># )`,"media-and":`<media-in-parens> [and <media-in-parens>]+`,"media-condition":`<media-not>|<media-and>|<media-or>|<media-in-parens>`,"media-condition-without-or":`<media-not>|<media-and>|<media-in-parens>`,"media-feature":`( [<mf-plain>|<mf-boolean>|<mf-range>] )`,"media-in-parens":`( <media-condition> )|<media-feature>|<general-enclosed>`,"media-not":`not <media-in-parens>`,"media-or":`<media-in-parens> [or <media-in-parens>]+`,"media-query":`<media-condition>|[not|only]? <media-type> [and <media-condition-without-or>]?`,"media-query-list":`<media-query>#`,"media-type":`<ident>`,"mf-boolean":`<mf-name>`,"mf-name":`<ident>`,"mf-plain":`<mf-name> : <mf-value>`,"mf-range":`<mf-name> ['<'|'>']? '='? <mf-value>|<mf-value> ['<'|'>']? '='? <mf-name>|<mf-value> '<' '='? <mf-name> '<' '='? <mf-value>|<mf-value> '>' '='? <mf-name> '>' '='? <mf-value>`,"mf-value":`<number>|<dimension>|<ident>|<ratio>`,"min()":`min( <calc-sum># )`,"minmax()":`minmax( [<length>|<percentage>|min-content|max-content|auto] , [<length>|<percentage>|<flex>|min-content|max-content|auto] )`,"name-repeat":`repeat( [<integer [1,∞]>|auto-fill] , <line-names>+ )`,"named-color":`transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|<-non-standard-color>`,"namespace-prefix":`<ident>`,"ns-prefix":`[<ident-token>|'*']? '|'`,"number-percentage":`<number>|<percentage>`,"numeric-figure-values":`[lining-nums|oldstyle-nums]`,"numeric-fraction-values":`[diagonal-fractions|stacked-fractions]`,"numeric-spacing-values":`[proportional-nums|tabular-nums]`,nth:`<an-plus-b>|even|odd`,"opacity()":`opacity( [<number-percentage>] )`,"overflow-position":`unsafe|safe`,"outline-radius":`<length>|<percentage>`,"page-body":`<declaration>? [; <page-body>]?|<page-margin-box> <page-body>`,"page-margin-box":`<page-margin-box-type> '{' <declaration-list> '}'`,"page-margin-box-type":`@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom`,"page-selector-list":`[<page-selector>#]?`,"page-selector":`<pseudo-page>+|<ident> <pseudo-page>*`,"page-size":`A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger`,"path()":`path( [<fill-rule> ,]? <string> )`,"paint()":`paint( <ident> , <declaration-value>? )`,"perspective()":`perspective( <length> )`,"polygon()":`polygon( <fill-rule>? , [<length-percentage> <length-percentage>]# )`,position:`[[left|center|right]||[top|center|bottom]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]?|[[left|right] <length-percentage>]&&[[top|bottom] <length-percentage>]]`,"pseudo-class-selector":`':' <ident-token>|':' <function-token> <any-value> ')'`,"pseudo-element-selector":`':' <pseudo-class-selector>`,"pseudo-page":`: [left|right|first|blank]`,quote:`open-quote|close-quote|no-open-quote|no-close-quote`,"radial-gradient()":`radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )`,"relative-selector":`<combinator>? <complex-selector>`,"relative-selector-list":`<relative-selector>#`,"relative-size":`larger|smaller`,"repeat-style":`repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}`,"repeating-conic-gradient()":`repeating-conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )`,"repeating-linear-gradient()":`repeating-linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )`,"repeating-radial-gradient()":`repeating-radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )`,"rgb()":`rgb( <percentage>{3} [/ <alpha-value>]? )|rgb( <number>{3} [/ <alpha-value>]? )|rgb( <percentage>#{3} , <alpha-value>? )|rgb( <number>#{3} , <alpha-value>? )`,"rgba()":`rgba( <percentage>{3} [/ <alpha-value>]? )|rgba( <number>{3} [/ <alpha-value>]? )|rgba( <percentage>#{3} , <alpha-value>? )|rgba( <number>#{3} , <alpha-value>? )`,"rotate()":`rotate( [<angle>|<zero>] )`,"rotate3d()":`rotate3d( <number> , <number> , <number> , [<angle>|<zero>] )`,"rotateX()":`rotateX( [<angle>|<zero>] )`,"rotateY()":`rotateY( [<angle>|<zero>] )`,"rotateZ()":`rotateZ( [<angle>|<zero>] )`,"saturate()":`saturate( <number-percentage> )`,"scale()":`scale( <number> , <number>? )`,"scale3d()":`scale3d( <number> , <number> , <number> )`,"scaleX()":`scaleX( <number> )`,"scaleY()":`scaleY( <number> )`,"scaleZ()":`scaleZ( <number> )`,"self-position":`center|start|end|self-start|self-end|flex-start|flex-end`,"shape-radius":`<length-percentage>|closest-side|farthest-side`,"skew()":`skew( [<angle>|<zero>] , [<angle>|<zero>]? )`,"skewX()":`skewX( [<angle>|<zero>] )`,"skewY()":`skewY( [<angle>|<zero>] )`,"sepia()":`sepia( <number-percentage> )`,shadow:`inset?&&<length>{2,4}&&<color>?`,"shadow-t":`[<length>{2,3}&&<color>?]`,shape:`rect( <top> , <right> , <bottom> , <left> )|rect( <top> <right> <bottom> <left> )`,"shape-box":`<box>|margin-box`,"side-or-corner":`[left|right]||[top|bottom]`,"single-animation":`<time>||<easing-function>||<time>||<single-animation-iteration-count>||<single-animation-direction>||<single-animation-fill-mode>||<single-animation-play-state>||[none|<keyframes-name>]`,"single-animation-direction":`normal|reverse|alternate|alternate-reverse`,"single-animation-fill-mode":`none|forwards|backwards|both`,"single-animation-iteration-count":`infinite|<number>`,"single-animation-play-state":`running|paused`,"single-animation-timeline":`auto|none|<timeline-name>`,"single-transition":`[none|<single-transition-property>]||<time>||<easing-function>||<time>`,"single-transition-property":`all|<custom-ident>`,size:`closest-side|farthest-side|closest-corner|farthest-corner|<length>|<length-percentage>{2}`,"step-position":`jump-start|jump-end|jump-none|jump-both|start|end`,"step-timing-function":`step-start|step-end|steps( <integer> [, <step-position>]? )`,"subclass-selector":`<id-selector>|<class-selector>|<attribute-selector>|<pseudo-class-selector>`,"supports-condition":`not <supports-in-parens>|<supports-in-parens> [and <supports-in-parens>]*|<supports-in-parens> [or <supports-in-parens>]*`,"supports-in-parens":`( <supports-condition> )|<supports-feature>|<general-enclosed>`,"supports-feature":`<supports-decl>|<supports-selector-fn>`,"supports-decl":`( <declaration> )`,"supports-selector-fn":`selector( <complex-selector> )`,symbol:`<string>|<image>|<custom-ident>`,target:`<target-counter()>|<target-counters()>|<target-text()>`,"target-counter()":`target-counter( [<string>|<url>] , <custom-ident> , <counter-style>? )`,"target-counters()":`target-counters( [<string>|<url>] , <custom-ident> , <string> , <counter-style>? )`,"target-text()":`target-text( [<string>|<url>] , [content|before|after|first-letter]? )`,"time-percentage":`<time>|<percentage>`,"timeline-name":`<custom-ident>|<string>`,"easing-function":`linear|<cubic-bezier-timing-function>|<step-timing-function>`,"track-breadth":`<length-percentage>|<flex>|min-content|max-content|auto`,"track-list":`[<line-names>? [<track-size>|<track-repeat>]]+ <line-names>?`,"track-repeat":`repeat( [<integer [1,∞]>] , [<line-names>? <track-size>]+ <line-names>? )`,"track-size":`<track-breadth>|minmax( <inflexible-breadth> , <track-breadth> )|fit-content( [<length>|<percentage>] )`,"transform-function":`<matrix()>|<translate()>|<translateX()>|<translateY()>|<scale()>|<scaleX()>|<scaleY()>|<rotate()>|<skew()>|<skewX()>|<skewY()>|<matrix3d()>|<translate3d()>|<translateZ()>|<scale3d()>|<scaleZ()>|<rotate3d()>|<rotateX()>|<rotateY()>|<rotateZ()>|<perspective()>`,"transform-list":`<transform-function>+`,"translate()":`translate( <length-percentage> , <length-percentage>? )`,"translate3d()":`translate3d( <length-percentage> , <length-percentage> , <length> )`,"translateX()":`translateX( <length-percentage> )`,"translateY()":`translateY( <length-percentage> )`,"translateZ()":`translateZ( <length> )`,"type-or-unit":`string|color|url|integer|number|length|angle|time|frequency|cap|ch|em|ex|ic|lh|rlh|rem|vb|vi|vw|vh|vmin|vmax|mm|Q|cm|in|pt|pc|px|deg|grad|rad|turn|ms|s|Hz|kHz|%`,"type-selector":`<wq-name>|<ns-prefix>? '*'`,"var()":`var( <custom-property-name> , <declaration-value>? )`,"viewport-length":`auto|<length-percentage>`,"visual-box":`content-box|padding-box|border-box`,"wq-name":`<ns-prefix>? <ident-token>`,"-legacy-gradient":`<-webkit-gradient()>|<-legacy-linear-gradient>|<-legacy-repeating-linear-gradient>|<-legacy-radial-gradient>|<-legacy-repeating-radial-gradient>`,"-legacy-linear-gradient":`-moz-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-linear-gradient( <-legacy-linear-gradient-arguments> )`,"-legacy-repeating-linear-gradient":`-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )`,"-legacy-linear-gradient-arguments":`[<angle>|<side-or-corner>]? , <color-stop-list>`,"-legacy-radial-gradient":`-moz-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-radial-gradient( <-legacy-radial-gradient-arguments> )`,"-legacy-repeating-radial-gradient":`-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )`,"-legacy-radial-gradient-arguments":`[<position> ,]? [[[<-legacy-radial-gradient-shape>||<-legacy-radial-gradient-size>]|[<length>|<percentage>]{2}] ,]? <color-stop-list>`,"-legacy-radial-gradient-size":`closest-side|closest-corner|farthest-side|farthest-corner|contain|cover`,"-legacy-radial-gradient-shape":`circle|ellipse`,"-non-standard-font":`-apple-system-body|-apple-system-headline|-apple-system-subheadline|-apple-system-caption1|-apple-system-caption2|-apple-system-footnote|-apple-system-short-body|-apple-system-short-headline|-apple-system-short-subheadline|-apple-system-short-caption1|-apple-system-short-footnote|-apple-system-tall-body`,"-non-standard-color":`-moz-ButtonDefault|-moz-ButtonHoverFace|-moz-ButtonHoverText|-moz-CellHighlight|-moz-CellHighlightText|-moz-Combobox|-moz-ComboboxText|-moz-Dialog|-moz-DialogText|-moz-dragtargetzone|-moz-EvenTreeRow|-moz-Field|-moz-FieldText|-moz-html-CellHighlight|-moz-html-CellHighlightText|-moz-mac-accentdarkestshadow|-moz-mac-accentdarkshadow|-moz-mac-accentface|-moz-mac-accentlightesthighlight|-moz-mac-accentlightshadow|-moz-mac-accentregularhighlight|-moz-mac-accentregularshadow|-moz-mac-chrome-active|-moz-mac-chrome-inactive|-moz-mac-focusring|-moz-mac-menuselect|-moz-mac-menushadow|-moz-mac-menutextselect|-moz-MenuHover|-moz-MenuHoverText|-moz-MenuBarText|-moz-MenuBarHoverText|-moz-nativehyperlinktext|-moz-OddTreeRow|-moz-win-communicationstext|-moz-win-mediatext|-moz-activehyperlinktext|-moz-default-background-color|-moz-default-color|-moz-hyperlinktext|-moz-visitedhyperlinktext|-webkit-activelink|-webkit-focus-ring-color|-webkit-link|-webkit-text`,"-non-standard-image-rendering":`optimize-contrast|-moz-crisp-edges|-o-crisp-edges|-webkit-optimize-contrast`,"-non-standard-overflow":`-moz-scrollbars-none|-moz-scrollbars-horizontal|-moz-scrollbars-vertical|-moz-hidden-unscrollable`,"-non-standard-width":`fill-available|min-intrinsic|intrinsic|-moz-available|-moz-fit-content|-moz-min-content|-moz-max-content|-webkit-min-content|-webkit-max-content`,"-webkit-gradient()":`-webkit-gradient( <-webkit-gradient-type> , <-webkit-gradient-point> [, <-webkit-gradient-point>|, <-webkit-gradient-radius> , <-webkit-gradient-point>] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )`,"-webkit-gradient-color-stop":`from( <color> )|color-stop( [<number-zero-one>|<percentage>] , <color> )|to( <color> )`,"-webkit-gradient-point":`[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]`,"-webkit-gradient-radius":`<length>|<percentage>`,"-webkit-gradient-type":`linear|radial`,"-webkit-mask-box-repeat":`repeat|stretch|round`,"-webkit-mask-clip-style":`border|border-box|padding|padding-box|content|content-box|text`,"-ms-filter-function-list":`<-ms-filter-function>+`,"-ms-filter-function":`<-ms-filter-function-progid>|<-ms-filter-function-legacy>`,"-ms-filter-function-progid":`'progid:' [<ident-token> '.']* [<ident-token>|<function-token> <any-value>? )]`,"-ms-filter-function-legacy":`<ident-token>|<function-token> <any-value>? )`,"-ms-filter":`<string>`,age:`child|young|old`,"attr-name":`<wq-name>`,"attr-fallback":`<any-value>`,"bg-clip":`<box>|border|text`,"border-radius":`<length-percentage>{1,2}`,bottom:`<length>|auto`,"generic-voice":`[<age>? <gender> <integer>?]`,gender:`male|female|neutral`,"lab()":`lab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )`,"lch()":`lch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )`,left:`<length>|auto`,"mask-image":`<mask-reference>#`,paint:`none|<color>|<url> [none|<color>]?|context-fill|context-stroke`,ratio:`<number [0,∞]> [/ <number [0,∞]>]?`,"reversed-counter-name":`reversed( <counter-name> )`,right:`<length>|auto`,"svg-length":`<percentage>|<length>|<number>`,"svg-writing-mode":`lr-tb|rl-tb|tb-rl|lr|rl|tb`,top:`<length>|auto`,"track-group":`'(' [<string>* <track-minmax> <string>*]+ ')' ['[' <positive-integer> ']']?|<track-minmax>`,"track-list-v0":`[<string>* <track-group> <string>*]+|none`,"track-minmax":`minmax( <track-breadth> , <track-breadth> )|auto|<track-breadth>|fit-content`,x:`<number>`,y:`<number>`,declaration:`<ident-token> : <declaration-value>? ['!' important]?`,"declaration-list":`[<declaration>? ';']* <declaration>?`,url:`url( <string> <url-modifier>* )|<url-token>`,"url-modifier":`<ident>|<function-token> <any-value> )`,"number-zero-one":`<number [0,1]>`,"number-one-or-greater":`<number [1,∞]>`,"positive-integer":`<integer [0,∞]>`,"-non-standard-display":`-ms-inline-flexbox|-ms-grid|-ms-inline-grid|-webkit-flex|-webkit-inline-flex|-webkit-box|-webkit-inline-box|-moz-inline-stack|-moz-box|-moz-inline-box`},properties:{"--*":`<declaration-value>`,"-ms-accelerator":`false|true`,"-ms-block-progression":`tb|rl|bt|lr`,"-ms-content-zoom-chaining":`none|chained`,"-ms-content-zooming":`none|zoom`,"-ms-content-zoom-limit":`<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>`,"-ms-content-zoom-limit-max":`<percentage>`,"-ms-content-zoom-limit-min":`<percentage>`,"-ms-content-zoom-snap":`<'-ms-content-zoom-snap-type'>||<'-ms-content-zoom-snap-points'>`,"-ms-content-zoom-snap-points":`snapInterval( <percentage> , <percentage> )|snapList( <percentage># )`,"-ms-content-zoom-snap-type":`none|proximity|mandatory`,"-ms-filter":`<string>`,"-ms-flow-from":`[none|<custom-ident>]#`,"-ms-flow-into":`[none|<custom-ident>]#`,"-ms-grid-columns":`none|<track-list>|<auto-track-list>`,"-ms-grid-rows":`none|<track-list>|<auto-track-list>`,"-ms-high-contrast-adjust":`auto|none`,"-ms-hyphenate-limit-chars":`auto|<integer>{1,3}`,"-ms-hyphenate-limit-lines":`no-limit|<integer>`,"-ms-hyphenate-limit-zone":`<percentage>|<length>`,"-ms-ime-align":`auto|after`,"-ms-overflow-style":`auto|none|scrollbar|-ms-autohiding-scrollbar`,"-ms-scrollbar-3dlight-color":`<color>`,"-ms-scrollbar-arrow-color":`<color>`,"-ms-scrollbar-base-color":`<color>`,"-ms-scrollbar-darkshadow-color":`<color>`,"-ms-scrollbar-face-color":`<color>`,"-ms-scrollbar-highlight-color":`<color>`,"-ms-scrollbar-shadow-color":`<color>`,"-ms-scrollbar-track-color":`<color>`,"-ms-scroll-chaining":`chained|none`,"-ms-scroll-limit":`<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>`,"-ms-scroll-limit-x-max":`auto|<length>`,"-ms-scroll-limit-x-min":`<length>`,"-ms-scroll-limit-y-max":`auto|<length>`,"-ms-scroll-limit-y-min":`<length>`,"-ms-scroll-rails":`none|railed`,"-ms-scroll-snap-points-x":`snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )`,"-ms-scroll-snap-points-y":`snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )`,"-ms-scroll-snap-type":`none|proximity|mandatory`,"-ms-scroll-snap-x":`<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>`,"-ms-scroll-snap-y":`<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>`,"-ms-scroll-translation":`none|vertical-to-horizontal`,"-ms-text-autospace":`none|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space`,"-ms-touch-select":`grippers|none`,"-ms-user-select":`none|element|text`,"-ms-wrap-flow":`auto|both|start|end|maximum|clear`,"-ms-wrap-margin":`<length>`,"-ms-wrap-through":`wrap|none`,"-moz-appearance":`none|button|button-arrow-down|button-arrow-next|button-arrow-previous|button-arrow-up|button-bevel|button-focus|caret|checkbox|checkbox-container|checkbox-label|checkmenuitem|dualbutton|groupbox|listbox|listitem|menuarrow|menubar|menucheckbox|menuimage|menuitem|menuitemtext|menulist|menulist-button|menulist-text|menulist-textfield|menupopup|menuradio|menuseparator|meterbar|meterchunk|progressbar|progressbar-vertical|progresschunk|progresschunk-vertical|radio|radio-container|radio-label|radiomenuitem|range|range-thumb|resizer|resizerpanel|scale-horizontal|scalethumbend|scalethumb-horizontal|scalethumbstart|scalethumbtick|scalethumb-vertical|scale-vertical|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|separator|sheet|spinner|spinner-downbutton|spinner-textfield|spinner-upbutton|splitter|statusbar|statusbarpanel|tab|tabpanel|tabpanels|tab-scroll-arrow-back|tab-scroll-arrow-forward|textfield|textfield-multiline|toolbar|toolbarbutton|toolbarbutton-dropdown|toolbargripper|toolbox|tooltip|treeheader|treeheadercell|treeheadersortarrow|treeitem|treeline|treetwisty|treetwistyopen|treeview|-moz-mac-unified-toolbar|-moz-win-borderless-glass|-moz-win-browsertabbar-toolbox|-moz-win-communicationstext|-moz-win-communications-toolbox|-moz-win-exclude-glass|-moz-win-glass|-moz-win-mediatext|-moz-win-media-toolbox|-moz-window-button-box|-moz-window-button-box-maximized|-moz-window-button-close|-moz-window-button-maximize|-moz-window-button-minimize|-moz-window-button-restore|-moz-window-frame-bottom|-moz-window-frame-left|-moz-window-frame-right|-moz-window-titlebar|-moz-window-titlebar-maximized`,"-moz-binding":`<url>|none`,"-moz-border-bottom-colors":`<color>+|none`,"-moz-border-left-colors":`<color>+|none`,"-moz-border-right-colors":`<color>+|none`,"-moz-border-top-colors":`<color>+|none`,"-moz-context-properties":`none|[fill|fill-opacity|stroke|stroke-opacity]#`,"-moz-float-edge":`border-box|content-box|margin-box|padding-box`,"-moz-force-broken-image-icon":`0|1`,"-moz-image-region":`<shape>|auto`,"-moz-orient":`inline|block|horizontal|vertical`,"-moz-outline-radius":`<outline-radius>{1,4} [/ <outline-radius>{1,4}]?`,"-moz-outline-radius-bottomleft":`<outline-radius>`,"-moz-outline-radius-bottomright":`<outline-radius>`,"-moz-outline-radius-topleft":`<outline-radius>`,"-moz-outline-radius-topright":`<outline-radius>`,"-moz-stack-sizing":`ignore|stretch-to-fit`,"-moz-text-blink":`none|blink`,"-moz-user-focus":`ignore|normal|select-after|select-before|select-menu|select-same|select-all|none`,"-moz-user-input":`auto|none|enabled|disabled`,"-moz-user-modify":`read-only|read-write|write-only`,"-moz-window-dragging":`drag|no-drag`,"-moz-window-shadow":`default|menu|tooltip|sheet|none`,"-webkit-appearance":`none|button|button-bevel|caps-lock-indicator|caret|checkbox|default-button|inner-spin-button|listbox|listitem|media-controls-background|media-controls-fullscreen-background|media-current-time-display|media-enter-fullscreen-button|media-exit-fullscreen-button|media-fullscreen-button|media-mute-button|media-overlay-play-button|media-play-button|media-seek-back-button|media-seek-forward-button|media-slider|media-sliderthumb|media-time-remaining-display|media-toggle-closed-captions-button|media-volume-slider|media-volume-slider-container|media-volume-sliderthumb|menulist|menulist-button|menulist-text|menulist-textfield|meter|progress-bar|progress-bar-value|push-button|radio|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbargripper-horizontal|scrollbargripper-vertical|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|searchfield-cancel-button|searchfield-decoration|searchfield-results-button|searchfield-results-decoration|slider-horizontal|slider-vertical|sliderthumb-horizontal|sliderthumb-vertical|square-button|textarea|textfield|-apple-pay-button`,"-webkit-border-before":`<'border-width'>||<'border-style'>||<color>`,"-webkit-border-before-color":`<color>`,"-webkit-border-before-style":`<'border-style'>`,"-webkit-border-before-width":`<'border-width'>`,"-webkit-box-reflect":`[above|below|right|left]? <length>? <image>?`,"-webkit-line-clamp":`none|<integer>`,"-webkit-mask":`[<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||[<box>|border|padding|content|text]||[<box>|border|padding|content]]#`,"-webkit-mask-attachment":`<attachment>#`,"-webkit-mask-clip":`[<box>|border|padding|content|text]#`,"-webkit-mask-composite":`<composite-style>#`,"-webkit-mask-image":`<mask-reference>#`,"-webkit-mask-origin":`[<box>|border|padding|content]#`,"-webkit-mask-position":`<position>#`,"-webkit-mask-position-x":`[<length-percentage>|left|center|right]#`,"-webkit-mask-position-y":`[<length-percentage>|top|center|bottom]#`,"-webkit-mask-repeat":`<repeat-style>#`,"-webkit-mask-repeat-x":`repeat|no-repeat|space|round`,"-webkit-mask-repeat-y":`repeat|no-repeat|space|round`,"-webkit-mask-size":`<bg-size>#`,"-webkit-overflow-scrolling":`auto|touch`,"-webkit-tap-highlight-color":`<color>`,"-webkit-text-fill-color":`<color>`,"-webkit-text-stroke":`<length>||<color>`,"-webkit-text-stroke-color":`<color>`,"-webkit-text-stroke-width":`<length>`,"-webkit-touch-callout":`default|none`,"-webkit-user-modify":`read-only|read-write|read-write-plaintext-only`,"accent-color":`auto|<color>`,"align-content":`normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>`,"align-items":`normal|stretch|<baseline-position>|[<overflow-position>? <self-position>]`,"align-self":`auto|normal|stretch|<baseline-position>|<overflow-position>? <self-position>`,"align-tracks":`[normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>]#`,all:`initial|inherit|unset|revert|revert-layer`,animation:`<single-animation>#`,"animation-delay":`<time>#`,"animation-direction":`<single-animation-direction>#`,"animation-duration":`<time>#`,"animation-fill-mode":`<single-animation-fill-mode>#`,"animation-iteration-count":`<single-animation-iteration-count>#`,"animation-name":`[none|<keyframes-name>]#`,"animation-play-state":`<single-animation-play-state>#`,"animation-timing-function":`<easing-function>#`,"animation-timeline":`<single-animation-timeline>#`,appearance:`none|auto|textfield|menulist-button|<compat-auto>`,"aspect-ratio":`auto|<ratio>`,azimuth:`<angle>|[[left-side|far-left|left|center-left|center|center-right|right|far-right|right-side]||behind]|leftwards|rightwards`,"backdrop-filter":`none|<filter-function-list>`,"backface-visibility":`visible|hidden`,background:`[<bg-layer> ,]* <final-bg-layer>`,"background-attachment":`<attachment>#`,"background-blend-mode":`<blend-mode>#`,"background-clip":`<bg-clip>#`,"background-color":`<color>`,"background-image":`<bg-image>#`,"background-origin":`<box>#`,"background-position":`<bg-position>#`,"background-position-x":`[center|[[left|right|x-start|x-end]? <length-percentage>?]!]#`,"background-position-y":`[center|[[top|bottom|y-start|y-end]? <length-percentage>?]!]#`,"background-repeat":`<repeat-style>#`,"background-size":`<bg-size>#`,"block-overflow":`clip|ellipsis|<string>`,"block-size":`<'width'>`,border:`<line-width>||<line-style>||<color>`,"border-block":`<'border-top-width'>||<'border-top-style'>||<color>`,"border-block-color":`<'border-top-color'>{1,2}`,"border-block-style":`<'border-top-style'>`,"border-block-width":`<'border-top-width'>`,"border-block-end":`<'border-top-width'>||<'border-top-style'>||<color>`,"border-block-end-color":`<'border-top-color'>`,"border-block-end-style":`<'border-top-style'>`,"border-block-end-width":`<'border-top-width'>`,"border-block-start":`<'border-top-width'>||<'border-top-style'>||<color>`,"border-block-start-color":`<'border-top-color'>`,"border-block-start-style":`<'border-top-style'>`,"border-block-start-width":`<'border-top-width'>`,"border-bottom":`<line-width>||<line-style>||<color>`,"border-bottom-color":`<'border-top-color'>`,"border-bottom-left-radius":`<length-percentage>{1,2}`,"border-bottom-right-radius":`<length-percentage>{1,2}`,"border-bottom-style":`<line-style>`,"border-bottom-width":`<line-width>`,"border-collapse":`collapse|separate`,"border-color":`<color>{1,4}`,"border-end-end-radius":`<length-percentage>{1,2}`,"border-end-start-radius":`<length-percentage>{1,2}`,"border-image":`<'border-image-source'>||<'border-image-slice'> [/ <'border-image-width'>|/ <'border-image-width'>? / <'border-image-outset'>]?||<'border-image-repeat'>`,"border-image-outset":`[<length>|<number>]{1,4}`,"border-image-repeat":`[stretch|repeat|round|space]{1,2}`,"border-image-slice":`<number-percentage>{1,4}&&fill?`,"border-image-source":`none|<image>`,"border-image-width":`[<length-percentage>|<number>|auto]{1,4}`,"border-inline":`<'border-top-width'>||<'border-top-style'>||<color>`,"border-inline-end":`<'border-top-width'>||<'border-top-style'>||<color>`,"border-inline-color":`<'border-top-color'>{1,2}`,"border-inline-style":`<'border-top-style'>`,"border-inline-width":`<'border-top-width'>`,"border-inline-end-color":`<'border-top-color'>`,"border-inline-end-style":`<'border-top-style'>`,"border-inline-end-width":`<'border-top-width'>`,"border-inline-start":`<'border-top-width'>||<'border-top-style'>||<color>`,"border-inline-start-color":`<'border-top-color'>`,"border-inline-start-style":`<'border-top-style'>`,"border-inline-start-width":`<'border-top-width'>`,"border-left":`<line-width>||<line-style>||<color>`,"border-left-color":`<color>`,"border-left-style":`<line-style>`,"border-left-width":`<line-width>`,"border-radius":`<length-percentage>{1,4} [/ <length-percentage>{1,4}]?`,"border-right":`<line-width>||<line-style>||<color>`,"border-right-color":`<color>`,"border-right-style":`<line-style>`,"border-right-width":`<line-width>`,"border-spacing":`<length> <length>?`,"border-start-end-radius":`<length-percentage>{1,2}`,"border-start-start-radius":`<length-percentage>{1,2}`,"border-style":`<line-style>{1,4}`,"border-top":`<line-width>||<line-style>||<color>`,"border-top-color":`<color>`,"border-top-left-radius":`<length-percentage>{1,2}`,"border-top-right-radius":`<length-percentage>{1,2}`,"border-top-style":`<line-style>`,"border-top-width":`<line-width>`,"border-width":`<line-width>{1,4}`,bottom:`<length>|<percentage>|auto`,"box-align":`start|center|end|baseline|stretch`,"box-decoration-break":`slice|clone`,"box-direction":`normal|reverse|inherit`,"box-flex":`<number>`,"box-flex-group":`<integer>`,"box-lines":`single|multiple`,"box-ordinal-group":`<integer>`,"box-orient":`horizontal|vertical|inline-axis|block-axis|inherit`,"box-pack":`start|center|end|justify`,"box-shadow":`none|<shadow>#`,"box-sizing":`content-box|border-box`,"break-after":`auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region`,"break-before":`auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region`,"break-inside":`auto|avoid|avoid-page|avoid-column|avoid-region`,"caption-side":`top|bottom|block-start|block-end|inline-start|inline-end`,"caret-color":`auto|<color>`,clear:`none|left|right|both|inline-start|inline-end`,clip:`<shape>|auto`,"clip-path":`<clip-source>|[<basic-shape>||<geometry-box>]|none`,color:`<color>`,"print-color-adjust":`economy|exact`,"color-scheme":`normal|[light|dark|<custom-ident>]+&&only?`,"column-count":`<integer>|auto`,"column-fill":`auto|balance|balance-all`,"column-gap":`normal|<length-percentage>`,"column-rule":`<'column-rule-width'>||<'column-rule-style'>||<'column-rule-color'>`,"column-rule-color":`<color>`,"column-rule-style":`<'border-style'>`,"column-rule-width":`<'border-width'>`,"column-span":`none|all`,"column-width":`<length>|auto`,columns:`<'column-width'>||<'column-count'>`,contain:`none|strict|content|[size||layout||style||paint]`,content:`normal|none|[<content-replacement>|<content-list>] [/ [<string>|<counter>]+]?`,"content-visibility":`visible|auto|hidden`,"counter-increment":`[<counter-name> <integer>?]+|none`,"counter-reset":`[<counter-name> <integer>?|<reversed-counter-name> <integer>?]+|none`,"counter-set":`[<counter-name> <integer>?]+|none`,cursor:`[[<url> [<x> <y>]? ,]* [auto|default|none|context-menu|help|pointer|progress|wait|cell|crosshair|text|vertical-text|alias|copy|move|no-drop|not-allowed|e-resize|n-resize|ne-resize|nw-resize|s-resize|se-resize|sw-resize|w-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing|hand|-webkit-grab|-webkit-grabbing|-webkit-zoom-in|-webkit-zoom-out|-moz-grab|-moz-grabbing|-moz-zoom-in|-moz-zoom-out]]`,direction:`ltr|rtl`,display:`[<display-outside>||<display-inside>]|<display-listitem>|<display-internal>|<display-box>|<display-legacy>|<-non-standard-display>`,"empty-cells":`show|hide`,filter:`none|<filter-function-list>|<-ms-filter-function-list>`,flex:`none|[<'flex-grow'> <'flex-shrink'>?||<'flex-basis'>]`,"flex-basis":`content|<'width'>`,"flex-direction":`row|row-reverse|column|column-reverse`,"flex-flow":`<'flex-direction'>||<'flex-wrap'>`,"flex-grow":`<number>`,"flex-shrink":`<number>`,"flex-wrap":`nowrap|wrap|wrap-reverse`,float:`left|right|none|inline-start|inline-end`,font:`[[<'font-style'>||<font-variant-css21>||<'font-weight'>||<'font-stretch'>]? <'font-size'> [/ <'line-height'>]? <'font-family'>]|caption|icon|menu|message-box|small-caption|status-bar`,"font-family":`[<family-name>|<generic-family>]#`,"font-feature-settings":`normal|<feature-tag-value>#`,"font-kerning":`auto|normal|none`,"font-language-override":`normal|<string>`,"font-optical-sizing":`auto|none`,"font-variation-settings":`normal|[<string> <number>]#`,"font-size":`<absolute-size>|<relative-size>|<length-percentage>`,"font-size-adjust":`none|[ex-height|cap-height|ch-width|ic-width|ic-height]? [from-font|<number>]`,"font-smooth":`auto|never|always|<absolute-size>|<length>`,"font-stretch":`<font-stretch-absolute>`,"font-style":`normal|italic|oblique <angle>?`,"font-synthesis":`none|[weight||style||small-caps]`,"font-variant":`normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]`,"font-variant-alternates":`normal|[stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )]`,"font-variant-caps":`normal|small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps`,"font-variant-east-asian":`normal|[<east-asian-variant-values>||<east-asian-width-values>||ruby]`,"font-variant-ligatures":`normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>]`,"font-variant-numeric":`normal|[<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero]`,"font-variant-position":`normal|sub|super`,"font-weight":`<font-weight-absolute>|bolder|lighter`,"forced-color-adjust":`auto|none`,gap:`<'row-gap'> <'column-gap'>?`,grid:`<'grid-template'>|<'grid-template-rows'> / [auto-flow&&dense?] <'grid-auto-columns'>?|[auto-flow&&dense?] <'grid-auto-rows'>? / <'grid-template-columns'>`,"grid-area":`<grid-line> [/ <grid-line>]{0,3}`,"grid-auto-columns":`<track-size>+`,"grid-auto-flow":`[row|column]||dense`,"grid-auto-rows":`<track-size>+`,"grid-column":`<grid-line> [/ <grid-line>]?`,"grid-column-end":`<grid-line>`,"grid-column-gap":`<length-percentage>`,"grid-column-start":`<grid-line>`,"grid-gap":`<'grid-row-gap'> <'grid-column-gap'>?`,"grid-row":`<grid-line> [/ <grid-line>]?`,"grid-row-end":`<grid-line>`,"grid-row-gap":`<length-percentage>`,"grid-row-start":`<grid-line>`,"grid-template":`none|[<'grid-template-rows'> / <'grid-template-columns'>]|[<line-names>? <string> <track-size>? <line-names>?]+ [/ <explicit-track-list>]?`,"grid-template-areas":`none|<string>+`,"grid-template-columns":`none|<track-list>|<auto-track-list>|subgrid <line-name-list>?`,"grid-template-rows":`none|<track-list>|<auto-track-list>|subgrid <line-name-list>?`,"hanging-punctuation":`none|[first||[force-end|allow-end]||last]`,height:`auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )`,"hyphenate-character":`auto|<string>`,hyphens:`none|manual|auto`,"image-orientation":`from-image|<angle>|[<angle>? flip]`,"image-rendering":`auto|crisp-edges|pixelated|optimizeSpeed|optimizeQuality|<-non-standard-image-rendering>`,"image-resolution":`[from-image||<resolution>]&&snap?`,"ime-mode":`auto|normal|active|inactive|disabled`,"initial-letter":`normal|[<number> <integer>?]`,"initial-letter-align":`[auto|alphabetic|hanging|ideographic]`,"inline-size":`<'width'>`,"input-security":`auto|none`,inset:`<'top'>{1,4}`,"inset-block":`<'top'>{1,2}`,"inset-block-end":`<'top'>`,"inset-block-start":`<'top'>`,"inset-inline":`<'top'>{1,2}`,"inset-inline-end":`<'top'>`,"inset-inline-start":`<'top'>`,isolation:`auto|isolate`,"justify-content":`normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]`,"justify-items":`normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]|legacy|legacy&&[left|right|center]`,"justify-self":`auto|normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]`,"justify-tracks":`[normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]]#`,left:`<length>|<percentage>|auto`,"letter-spacing":`normal|<length-percentage>`,"line-break":`auto|loose|normal|strict|anywhere`,"line-clamp":`none|<integer>`,"line-height":`normal|<number>|<length>|<percentage>`,"line-height-step":`<length>`,"list-style":`<'list-style-type'>||<'list-style-position'>||<'list-style-image'>`,"list-style-image":`<image>|none`,"list-style-position":`inside|outside`,"list-style-type":`<counter-style>|<string>|none`,margin:`[<length>|<percentage>|auto]{1,4}`,"margin-block":`<'margin-left'>{1,2}`,"margin-block-end":`<'margin-left'>`,"margin-block-start":`<'margin-left'>`,"margin-bottom":`<length>|<percentage>|auto`,"margin-inline":`<'margin-left'>{1,2}`,"margin-inline-end":`<'margin-left'>`,"margin-inline-start":`<'margin-left'>`,"margin-left":`<length>|<percentage>|auto`,"margin-right":`<length>|<percentage>|auto`,"margin-top":`<length>|<percentage>|auto`,"margin-trim":`none|in-flow|all`,mask:`<mask-layer>#`,"mask-border":`<'mask-border-source'>||<'mask-border-slice'> [/ <'mask-border-width'>? [/ <'mask-border-outset'>]?]?||<'mask-border-repeat'>||<'mask-border-mode'>`,"mask-border-mode":`luminance|alpha`,"mask-border-outset":`[<length>|<number>]{1,4}`,"mask-border-repeat":`[stretch|repeat|round|space]{1,2}`,"mask-border-slice":`<number-percentage>{1,4} fill?`,"mask-border-source":`none|<image>`,"mask-border-width":`[<length-percentage>|<number>|auto]{1,4}`,"mask-clip":`[<geometry-box>|no-clip]#`,"mask-composite":`<compositing-operator>#`,"mask-image":`<mask-reference>#`,"mask-mode":`<masking-mode>#`,"mask-origin":`<geometry-box>#`,"mask-position":`<position>#`,"mask-repeat":`<repeat-style>#`,"mask-size":`<bg-size>#`,"mask-type":`luminance|alpha`,"masonry-auto-flow":`[pack|next]||[definite-first|ordered]`,"math-style":`normal|compact`,"max-block-size":`<'max-width'>`,"max-height":`none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )`,"max-inline-size":`<'max-width'>`,"max-lines":`none|<integer>`,"max-width":`none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>`,"min-block-size":`<'min-width'>`,"min-height":`auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )`,"min-inline-size":`<'min-width'>`,"min-width":`auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>`,"mix-blend-mode":`<blend-mode>|plus-lighter`,"object-fit":`fill|contain|cover|none|scale-down`,"object-position":`<position>`,offset:`[<'offset-position'>? [<'offset-path'> [<'offset-distance'>||<'offset-rotate'>]?]?]! [/ <'offset-anchor'>]?`,"offset-anchor":`auto|<position>`,"offset-distance":`<length-percentage>`,"offset-path":`none|ray( [<angle>&&<size>&&contain?] )|<path()>|<url>|[<basic-shape>||<geometry-box>]`,"offset-position":`auto|<position>`,"offset-rotate":`[auto|reverse]||<angle>`,opacity:`<alpha-value>`,order:`<integer>`,orphans:`<integer>`,outline:`[<'outline-color'>||<'outline-style'>||<'outline-width'>]`,"outline-color":`<color>|invert`,"outline-offset":`<length>`,"outline-style":`auto|<'border-style'>`,"outline-width":`<line-width>`,overflow:`[visible|hidden|clip|scroll|auto]{1,2}|<-non-standard-overflow>`,"overflow-anchor":`auto|none`,"overflow-block":`visible|hidden|clip|scroll|auto`,"overflow-clip-box":`padding-box|content-box`,"overflow-clip-margin":`<visual-box>||<length [0,∞]>`,"overflow-inline":`visible|hidden|clip|scroll|auto`,"overflow-wrap":`normal|break-word|anywhere`,"overflow-x":`visible|hidden|clip|scroll|auto`,"overflow-y":`visible|hidden|clip|scroll|auto`,"overscroll-behavior":`[contain|none|auto]{1,2}`,"overscroll-behavior-block":`contain|none|auto`,"overscroll-behavior-inline":`contain|none|auto`,"overscroll-behavior-x":`contain|none|auto`,"overscroll-behavior-y":`contain|none|auto`,padding:`[<length>|<percentage>]{1,4}`,"padding-block":`<'padding-left'>{1,2}`,"padding-block-end":`<'padding-left'>`,"padding-block-start":`<'padding-left'>`,"padding-bottom":`<length>|<percentage>`,"padding-inline":`<'padding-left'>{1,2}`,"padding-inline-end":`<'padding-left'>`,"padding-inline-start":`<'padding-left'>`,"padding-left":`<length>|<percentage>`,"padding-right":`<length>|<percentage>`,"padding-top":`<length>|<percentage>`,"page-break-after":`auto|always|avoid|left|right|recto|verso`,"page-break-before":`auto|always|avoid|left|right|recto|verso`,"page-break-inside":`auto|avoid`,"paint-order":`normal|[fill||stroke||markers]`,perspective:`none|<length>`,"perspective-origin":`<position>`,"place-content":`<'align-content'> <'justify-content'>?`,"place-items":`<'align-items'> <'justify-items'>?`,"place-self":`<'align-self'> <'justify-self'>?`,"pointer-events":`auto|none|visiblePainted|visibleFill|visibleStroke|visible|painted|fill|stroke|all|inherit`,position:`static|relative|absolute|sticky|fixed|-webkit-sticky`,quotes:`none|auto|[<string> <string>]+`,resize:`none|both|horizontal|vertical|block|inline`,right:`<length>|<percentage>|auto`,rotate:`none|<angle>|[x|y|z|<number>{3}]&&<angle>`,"row-gap":`normal|<length-percentage>`,"ruby-align":`start|center|space-between|space-around`,"ruby-merge":`separate|collapse|auto`,"ruby-position":`[alternate||[over|under]]|inter-character`,scale:`none|<number>{1,3}`,"scrollbar-color":`auto|<color>{2}`,"scrollbar-gutter":`auto|stable&&both-edges?`,"scrollbar-width":`auto|thin|none`,"scroll-behavior":`auto|smooth`,"scroll-margin":`<length>{1,4}`,"scroll-margin-block":`<length>{1,2}`,"scroll-margin-block-start":`<length>`,"scroll-margin-block-end":`<length>`,"scroll-margin-bottom":`<length>`,"scroll-margin-inline":`<length>{1,2}`,"scroll-margin-inline-start":`<length>`,"scroll-margin-inline-end":`<length>`,"scroll-margin-left":`<length>`,"scroll-margin-right":`<length>`,"scroll-margin-top":`<length>`,"scroll-padding":`[auto|<length-percentage>]{1,4}`,"scroll-padding-block":`[auto|<length-percentage>]{1,2}`,"scroll-padding-block-start":`auto|<length-percentage>`,"scroll-padding-block-end":`auto|<length-percentage>`,"scroll-padding-bottom":`auto|<length-percentage>`,"scroll-padding-inline":`[auto|<length-percentage>]{1,2}`,"scroll-padding-inline-start":`auto|<length-percentage>`,"scroll-padding-inline-end":`auto|<length-percentage>`,"scroll-padding-left":`auto|<length-percentage>`,"scroll-padding-right":`auto|<length-percentage>`,"scroll-padding-top":`auto|<length-percentage>`,"scroll-snap-align":`[none|start|end|center]{1,2}`,"scroll-snap-coordinate":`none|<position>#`,"scroll-snap-destination":`<position>`,"scroll-snap-points-x":`none|repeat( <length-percentage> )`,"scroll-snap-points-y":`none|repeat( <length-percentage> )`,"scroll-snap-stop":`normal|always`,"scroll-snap-type":`none|[x|y|block|inline|both] [mandatory|proximity]?`,"scroll-snap-type-x":`none|mandatory|proximity`,"scroll-snap-type-y":`none|mandatory|proximity`,"shape-image-threshold":`<alpha-value>`,"shape-margin":`<length-percentage>`,"shape-outside":`none|[<shape-box>||<basic-shape>]|<image>`,"tab-size":`<integer>|<length>`,"table-layout":`auto|fixed`,"text-align":`start|end|left|right|center|justify|match-parent`,"text-align-last":`auto|start|end|left|right|center|justify`,"text-combine-upright":`none|all|[digits <integer>?]`,"text-decoration":`<'text-decoration-line'>||<'text-decoration-style'>||<'text-decoration-color'>||<'text-decoration-thickness'>`,"text-decoration-color":`<color>`,"text-decoration-line":`none|[underline||overline||line-through||blink]|spelling-error|grammar-error`,"text-decoration-skip":`none|[objects||[spaces|[leading-spaces||trailing-spaces]]||edges||box-decoration]`,"text-decoration-skip-ink":`auto|all|none`,"text-decoration-style":`solid|double|dotted|dashed|wavy`,"text-decoration-thickness":`auto|from-font|<length>|<percentage>`,"text-emphasis":`<'text-emphasis-style'>||<'text-emphasis-color'>`,"text-emphasis-color":`<color>`,"text-emphasis-position":`[over|under]&&[right|left]`,"text-emphasis-style":`none|[[filled|open]||[dot|circle|double-circle|triangle|sesame]]|<string>`,"text-indent":`<length-percentage>&&hanging?&&each-line?`,"text-justify":`auto|inter-character|inter-word|none`,"text-orientation":`mixed|upright|sideways`,"text-overflow":`[clip|ellipsis|<string>]{1,2}`,"text-rendering":`auto|optimizeSpeed|optimizeLegibility|geometricPrecision`,"text-shadow":`none|<shadow-t>#`,"text-size-adjust":`none|auto|<percentage>`,"text-transform":`none|capitalize|uppercase|lowercase|full-width|full-size-kana`,"text-underline-offset":`auto|<length>|<percentage>`,"text-underline-position":`auto|from-font|[under||[left|right]]`,top:`<length>|<percentage>|auto`,"touch-action":`auto|none|[[pan-x|pan-left|pan-right]||[pan-y|pan-up|pan-down]||pinch-zoom]|manipulation`,transform:`none|<transform-list>`,"transform-box":`content-box|border-box|fill-box|stroke-box|view-box`,"transform-origin":`[<length-percentage>|left|center|right|top|bottom]|[[<length-percentage>|left|center|right]&&[<length-percentage>|top|center|bottom]] <length>?`,"transform-style":`flat|preserve-3d`,transition:`<single-transition>#`,"transition-delay":`<time>#`,"transition-duration":`<time>#`,"transition-property":`none|<single-transition-property>#`,"transition-timing-function":`<easing-function>#`,translate:`none|<length-percentage> [<length-percentage> <length>?]?`,"unicode-bidi":`normal|embed|isolate|bidi-override|isolate-override|plaintext|-moz-isolate|-moz-isolate-override|-moz-plaintext|-webkit-isolate|-webkit-isolate-override|-webkit-plaintext`,"user-select":`auto|text|none|contain|all`,"vertical-align":`baseline|sub|super|text-top|text-bottom|middle|top|bottom|<percentage>|<length>`,visibility:`visible|hidden|collapse`,"white-space":`normal|pre|nowrap|pre-wrap|pre-line|break-spaces`,widows:`<integer>`,width:`auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|fill|stretch|intrinsic|-moz-max-content|-webkit-max-content|-moz-fit-content|-webkit-fit-content`,"will-change":`auto|<animateable-feature>#`,"word-break":`normal|break-all|keep-all|break-word`,"word-spacing":`normal|<length>`,"word-wrap":`normal|break-word`,"writing-mode":`horizontal-tb|vertical-rl|vertical-lr|sideways-rl|sideways-lr|<svg-writing-mode>`,"z-index":`auto|<integer>`,zoom:`normal|reset|<number>|<percentage>`,"-moz-background-clip":`padding|border`,"-moz-border-radius-bottomleft":`<'border-bottom-left-radius'>`,"-moz-border-radius-bottomright":`<'border-bottom-right-radius'>`,"-moz-border-radius-topleft":`<'border-top-left-radius'>`,"-moz-border-radius-topright":`<'border-bottom-right-radius'>`,"-moz-control-character-visibility":`visible|hidden`,"-moz-osx-font-smoothing":`auto|grayscale`,"-moz-user-select":`none|text|all|-moz-none`,"-ms-flex-align":`start|end|center|baseline|stretch`,"-ms-flex-item-align":`auto|start|end|center|baseline|stretch`,"-ms-flex-line-pack":`start|end|center|justify|distribute|stretch`,"-ms-flex-negative":`<'flex-shrink'>`,"-ms-flex-pack":`start|end|center|justify|distribute`,"-ms-flex-order":`<integer>`,"-ms-flex-positive":`<'flex-grow'>`,"-ms-flex-preferred-size":`<'flex-basis'>`,"-ms-interpolation-mode":`nearest-neighbor|bicubic`,"-ms-grid-column-align":`start|end|center|stretch`,"-ms-grid-row-align":`start|end|center|stretch`,"-ms-hyphenate-limit-last":`none|always|column|page|spread`,"-webkit-background-clip":`[<box>|border|padding|content|text]#`,"-webkit-column-break-after":`always|auto|avoid`,"-webkit-column-break-before":`always|auto|avoid`,"-webkit-column-break-inside":`always|auto|avoid`,"-webkit-font-smoothing":`auto|none|antialiased|subpixel-antialiased`,"-webkit-mask-box-image":`[<url>|<gradient>|none] [<length-percentage>{4} <-webkit-mask-box-repeat>{2}]?`,"-webkit-print-color-adjust":`economy|exact`,"-webkit-text-security":`none|circle|disc|square`,"-webkit-user-drag":`none|element|auto`,"-webkit-user-select":`auto|none|text|all`,"alignment-baseline":`auto|baseline|before-edge|text-before-edge|middle|central|after-edge|text-after-edge|ideographic|alphabetic|hanging|mathematical`,"baseline-shift":`baseline|sub|super|<svg-length>`,behavior:`<url>+`,"clip-rule":`nonzero|evenodd`,cue:`<'cue-before'> <'cue-after'>?`,"cue-after":`<url> <decibel>?|none`,"cue-before":`<url> <decibel>?|none`,"dominant-baseline":`auto|use-script|no-change|reset-size|ideographic|alphabetic|hanging|mathematical|central|middle|text-after-edge|text-before-edge`,fill:`<paint>`,"fill-opacity":`<number-zero-one>`,"fill-rule":`nonzero|evenodd`,"glyph-orientation-horizontal":`<angle>`,"glyph-orientation-vertical":`<angle>`,kerning:`auto|<svg-length>`,marker:`none|<url>`,"marker-end":`none|<url>`,"marker-mid":`none|<url>`,"marker-start":`none|<url>`,pause:`<'pause-before'> <'pause-after'>?`,"pause-after":`<time>|none|x-weak|weak|medium|strong|x-strong`,"pause-before":`<time>|none|x-weak|weak|medium|strong|x-strong`,rest:`<'rest-before'> <'rest-after'>?`,"rest-after":`<time>|none|x-weak|weak|medium|strong|x-strong`,"rest-before":`<time>|none|x-weak|weak|medium|strong|x-strong`,"shape-rendering":`auto|optimizeSpeed|crispEdges|geometricPrecision`,src:`[<url> [format( <string># )]?|local( <family-name> )]#`,speak:`auto|none|normal`,"speak-as":`normal|spell-out||digits||[literal-punctuation|no-punctuation]`,stroke:`<paint>`,"stroke-dasharray":`none|[<svg-length>+]#`,"stroke-dashoffset":`<svg-length>`,"stroke-linecap":`butt|round|square`,"stroke-linejoin":`miter|round|bevel`,"stroke-miterlimit":`<number-one-or-greater>`,"stroke-opacity":`<number-zero-one>`,"stroke-width":`<svg-length>`,"text-anchor":`start|middle|end`,"unicode-range":`<urange>#`,"voice-balance":`<number>|left|center|right|leftwards|rightwards`,"voice-duration":`auto|<time>`,"voice-family":`[[<family-name>|<generic-voice>] ,]* [<family-name>|<generic-voice>]|preserve`,"voice-pitch":`<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]`,"voice-range":`<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]`,"voice-rate":`[normal|x-slow|slow|medium|fast|x-fast]||<percentage>`,"voice-stress":`normal|strong|moderate|none|reduced`,"voice-volume":`silent|[[x-soft|soft|medium|loud|x-loud]||<decibel>]`},atrules:{charset:{prelude:`<string>`,descriptors:null},"counter-style":{prelude:`<counter-style-name>`,descriptors:{"additive-symbols":`[<integer>&&<symbol>]#`,fallback:`<counter-style-name>`,negative:`<symbol> <symbol>?`,pad:`<integer>&&<symbol>`,prefix:`<symbol>`,range:`[[<integer>|infinite]{2}]#|auto`,"speak-as":`auto|bullets|numbers|words|spell-out|<counter-style-name>`,suffix:`<symbol>`,symbols:`<symbol>+`,system:`cyclic|numeric|alphabetic|symbolic|additive|[fixed <integer>?]|[extends <counter-style-name>]`}},document:{prelude:`[<url>|url-prefix( <string> )|domain( <string> )|media-document( <string> )|regexp( <string> )]#`,descriptors:null},"font-face":{prelude:null,descriptors:{"ascent-override":`normal|<percentage>`,"descent-override":`normal|<percentage>`,"font-display":`[auto|block|swap|fallback|optional]`,"font-family":`<family-name>`,"font-feature-settings":`normal|<feature-tag-value>#`,"font-variation-settings":`normal|[<string> <number>]#`,"font-stretch":`<font-stretch-absolute>{1,2}`,"font-style":`normal|italic|oblique <angle>{0,2}`,"font-weight":`<font-weight-absolute>{1,2}`,"font-variant":`normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]`,"line-gap-override":`normal|<percentage>`,"size-adjust":`<percentage>`,src:`[<url> [format( <string># )]?|local( <family-name> )]#`,"unicode-range":`<urange>#`}},"font-feature-values":{prelude:`<family-name>#`,descriptors:null},import:{prelude:`[<string>|<url>] [layer|layer( <layer-name> )]? [supports( [<supports-condition>|<declaration>] )]? <media-query-list>?`,descriptors:null},keyframes:{prelude:`<keyframes-name>`,descriptors:null},layer:{prelude:`[<layer-name>#|<layer-name>?]`,descriptors:null},media:{prelude:`<media-query-list>`,descriptors:null},namespace:{prelude:`<namespace-prefix>? [<string>|<url>]`,descriptors:null},page:{prelude:`<page-selector-list>`,descriptors:{bleed:`auto|<length>`,marks:`none|[crop||cross]`,size:`<length>{1,2}|auto|[<page-size>||[portrait|landscape]]`}},property:{prelude:`<custom-property-name>`,descriptors:{syntax:`<string>`,inherits:`true|false`,"initial-value":`<string>`}},"scroll-timeline":{prelude:`<timeline-name>`,descriptors:null},supports:{prelude:`<supports-condition>`,descriptors:null},viewport:{prelude:null,descriptors:{height:`<viewport-length>{1,2}`,"max-height":`<viewport-length>`,"max-width":`<viewport-length>`,"max-zoom":`auto|<number>|<percentage>`,"min-height":`<viewport-length>`,"min-width":`<viewport-length>`,"min-zoom":`auto|<number>|<percentage>`,orientation:`auto|portrait|landscape`,"user-zoom":`zoom|fixed`,"viewport-fit":`auto|contain|cover`,width:`<viewport-length>{1,2}`,zoom:`auto|<number>|<percentage>`}}}};function Zh(e,t){let n=this.tokenStart+e,r=this.charCodeAt(n);for((r===43||r===45)&&(t&&this.error(`Number sign is not allowed`),n++);n<this.tokenEnd;n++)U(this.charCodeAt(n))||this.error(`Integer is expected`,n)}function Qh(e){return Zh.call(this,0,e)}function $h(e,t){if(!this.cmpChar(this.tokenStart+e,t)){let n=``;switch(t){case 110:n=`N is expected`;break;case 45:n=`HyphenMinus is expected`}this.error(n,this.tokenStart+e)}}function eg(){let e=0,t=0,n=this.tokenType;for(;n===13||n===25;)n=this.lookupType(++e);if(n!==10){if(!this.isDelim(43,e)&&!this.isDelim(45,e))return null;t=this.isDelim(43,e)?43:45;do n=this.lookupType(++e);while(n===13||n===25);n!==10&&(this.skip(e),Qh.call(this,!0))}return e>0&&this.skip(e),t===0&&(n=this.charCodeAt(this.tokenStart),n!==43&&n!==45&&this.error(`Number sign is expected`)),Qh.call(this,t!==0),t===45?`-`+this.consume(10):this.consume(10)}const tg={a:[String,null],b:[String,null]};function ng(){let e=this.tokenStart,t=null,n=null;if(this.tokenType===10)Qh.call(this,!1),n=this.consume(10);else if(this.tokenType===1&&this.cmpChar(this.tokenStart,45))switch(t=`-1`,$h.call(this,1,110),this.tokenEnd-this.tokenStart){case 2:this.next(),n=eg.call(this);break;case 3:$h.call(this,2,45),this.next(),this.skipSC(),Qh.call(this,!0),n=`-`+this.consume(10);break;default:$h.call(this,2,45),Zh.call(this,3,!0),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===1||this.isDelim(43)&&this.lookupType(1)===1){let r=0;switch(t=`1`,this.isDelim(43)&&(r=1,this.next()),$h.call(this,0,110),this.tokenEnd-this.tokenStart){case 1:this.next(),n=eg.call(this);break;case 2:$h.call(this,1,45),this.next(),this.skipSC(),Qh.call(this,!0),n=`-`+this.consume(10);break;default:$h.call(this,1,45),Zh.call(this,2,!0),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===12){let r=this.charCodeAt(this.tokenStart),i=r===43||r===45,a=this.tokenStart+i;for(;a<this.tokenEnd&&U(this.charCodeAt(a));a++);a===this.tokenStart+i&&this.error(`Integer is expected`,this.tokenStart+i),$h.call(this,a-this.tokenStart,110),t=this.substring(e,a),a+1===this.tokenEnd?(this.next(),n=eg.call(this)):($h.call(this,a-this.tokenStart+1,45),a+2===this.tokenEnd?(this.next(),this.skipSC(),Qh.call(this,!0),n=`-`+this.consume(10)):(Zh.call(this,a-this.tokenStart+2,!0),this.next(),n=this.substrToCursor(a+1)))}else this.error();return t!==null&&t.charCodeAt(0)===43&&(t=t.substr(1)),n!==null&&n.charCodeAt(0)===43&&(n=n.substr(1)),{type:`AnPlusB`,loc:this.getLocation(e,this.tokenStart),a:t,b:n}}function rg(e){if(e.a){let t=(e.a===`+1`||e.a===`1`?`n`:e.a===`-1`&&`-n`)||e.a+`n`;if(e.b){let n=e.b[0]===`-`||e.b[0]===`+`?e.b:`+`+e.b;this.tokenize(t+n)}else this.tokenize(t)}else this.tokenize(e.b)}var ig=Object.freeze({__proto__:null,generate:rg,name:`AnPlusB`,parse:ng,structure:tg});function ag(e){return this.Raw(e,this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function og(){for(let e=1,t;t=this.lookupType(e);e++){if(t===24)return!0;if(t===23||t===3)return!1}return!1}const sg={name:String,prelude:[`AtrulePrelude`,`Raw`,null],block:[`Block`,null]};function cg(){let e=this.tokenStart,t,n,r=null,i=null;switch(this.eat(3),t=this.substrToCursor(e+1),n=t.toLowerCase(),this.skipSC(),this.eof===!1&&this.tokenType!==23&&this.tokenType!==17&&(r=this.parseAtrulePrelude?this.parseWithFallback(this.AtrulePrelude.bind(this,t),ag):ag.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case 17:this.next();break;case 23:i=hasOwnProperty.call(this.atrule,n)&&typeof this.atrule[n].block==`function`?this.atrule[n].block.call(this):this.Block(og.call(this))}return{type:`Atrule`,loc:this.getLocation(e,this.tokenStart),name:t,prelude:r,block:i}}function lg(e){this.token(3,`@`+e.name),e.prelude!==null&&this.node(e.prelude),e.block?this.node(e.block):this.token(17,`;`)}var ug=Object.freeze({__proto__:null,generate:lg,name:`Atrule`,parse:cg,structure:sg,walkContext:`atrule`});const dg={children:[[]]};function fg(e){let t=null;return e!==null&&(e=e.toLowerCase()),this.skipSC(),t=hasOwnProperty.call(this.atrule,e)&&typeof this.atrule[e].prelude==`function`?this.atrule[e].prelude.call(this):this.readSequence(this.scope.AtrulePrelude),this.skipSC(),this.eof!==!0&&this.tokenType!==23&&this.tokenType!==17&&this.error(`Semicolon or block is expected`),{type:`AtrulePrelude`,loc:this.getLocationFromList(t),children:t}}function pg(e){this.children(e)}var mg=Object.freeze({__proto__:null,generate:pg,name:`AtrulePrelude`,parse:fg,structure:dg,walkContext:`atrulePrelude`});function hg(){this.eof&&this.error(`Unexpected end of input`);let e=this.tokenStart,t=!1;return this.isDelim(42)?(t=!0,this.next()):this.isDelim(124)||this.eat(1),this.isDelim(124)?this.charCodeAt(this.tokenStart+1)===61?t&&this.error(`Identifier is expected`,this.tokenEnd):(this.next(),this.eat(1)):t&&this.error(`Vertical line is expected`),{type:`Identifier`,loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function gg(){let e=this.tokenStart,t=this.charCodeAt(e);return t!==61&&t!==126&&t!==94&&t!==36&&t!==42&&t!==124&&this.error(`Attribute selector (=, ~=, ^=, $=, *=, |=) is expected`),this.next(),t!==61&&(this.isDelim(61)||this.error(`Equal sign is expected`),this.next()),this.substrToCursor(e)}const _g={name:`Identifier`,matcher:[String,null],value:[`String`,`Identifier`,null],flags:[String,null]};function vg(){let e=this.tokenStart,t,n=null,r=null,i=null;return this.eat(19),this.skipSC(),t=hg.call(this),this.skipSC(),this.tokenType!==20&&(this.tokenType!==1&&(n=gg.call(this),this.skipSC(),r=this.tokenType===5?this.String():this.Identifier(),this.skipSC()),this.tokenType===1&&(i=this.consume(1),this.skipSC())),this.eat(20),{type:`AttributeSelector`,loc:this.getLocation(e,this.tokenStart),name:t,matcher:n,value:r,flags:i}}function yg(e){this.token(9,`[`),this.node(e.name),e.matcher!==null&&(this.tokenize(e.matcher),this.node(e.value)),e.flags!==null&&this.token(1,e.flags),this.token(9,`]`)}var bg=Object.freeze({__proto__:null,generate:yg,name:`AttributeSelector`,parse:vg,structure:_g});function xg(e){return this.Raw(e,null,!0)}function Sg(){return this.parseWithFallback(this.Rule,xg)}function Cg(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function wg(){if(this.tokenType===17)return Cg.call(this,this.tokenIndex);let e=this.parseWithFallback(this.Declaration,Cg);return this.tokenType===17&&this.next(),e}const Tg={children:[[`Atrule`,`Rule`,`Declaration`]]};function Eg(e){let t=e?wg:Sg,n=this.tokenStart,r=this.createList();this.eat(23);scan:for(;!this.eof;)switch(this.tokenType){case 24:break scan;case 13:case 25:this.next();break;case 3:r.push(this.parseWithFallback(this.Atrule,xg));break;default:r.push(t.call(this))}return this.eof||this.eat(24),{type:`Block`,loc:this.getLocation(n,this.tokenStart),children:r}}function Dg(e){this.token(23,`{`),this.children(e,(e=>{e.type===`Declaration`&&this.token(17,`;`)})),this.token(24,`}`)}var Og=Object.freeze({__proto__:null,generate:Dg,name:`Block`,parse:Eg,structure:Tg,walkContext:`block`});const kg={children:[[]]};function Ag(e,t){let n=this.tokenStart,r=null;return this.eat(19),r=e.call(this,t),this.eof||this.eat(20),{type:`Brackets`,loc:this.getLocation(n,this.tokenStart),children:r}}function jg(e){this.token(9,`[`),this.children(e),this.token(9,`]`)}var Mg=Object.freeze({__proto__:null,generate:jg,name:`Brackets`,parse:Ag,structure:kg});const Ng=[];function Pg(){let e=this.tokenStart;return this.eat(15),{type:`CDC`,loc:this.getLocation(e,this.tokenStart)}}function Fg(){this.token(15,`-->`)}var Ig=Object.freeze({__proto__:null,generate:Fg,name:`CDC`,parse:Pg,structure:Ng});const Lg=[];function Rg(){let e=this.tokenStart;return this.eat(14),{type:`CDO`,loc:this.getLocation(e,this.tokenStart)}}function zg(){this.token(14,`<!--`)}var Bg=Object.freeze({__proto__:null,generate:zg,name:`CDO`,parse:Rg,structure:Lg});const Vg={name:String};function Hg(){return this.eatDelim(46),{type:`ClassSelector`,loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function Ug(e){this.token(9,`.`),this.token(1,e.name)}var Wg=Object.freeze({__proto__:null,generate:Ug,name:`ClassSelector`,parse:Hg,structure:Vg});const Gg={name:String};function Kg(){let e=this.tokenStart,t;switch(this.tokenType){case 13:t=` `;break;case 9:switch(this.charCodeAt(this.tokenStart)){case 62:case 43:case 126:this.next();break;case 47:this.next(),this.eatIdent(`deep`),this.eatDelim(47);break;default:this.error(`Combinator is expected`)}t=this.substrToCursor(e)}return{type:`Combinator`,loc:this.getLocation(e,this.tokenStart),name:t}}function qg(e){this.tokenize(e.name)}var Jg=Object.freeze({__proto__:null,generate:qg,name:`Combinator`,parse:Kg,structure:Gg});const Yg={value:String};function Xg(){let e=this.tokenStart,t=this.tokenEnd;return this.eat(25),t-e+2>=2&&this.charCodeAt(t-2)===42&&this.charCodeAt(t-1)===47&&(t-=2),{type:`Comment`,loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function Zg(e){this.token(25,`/*`+e.value+`*/`)}var Qg=Object.freeze({__proto__:null,generate:Zg,name:`Comment`,parse:Xg,structure:Yg});function $g(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function e_(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function t_(){let e=this.tokenIndex,t=this.Value();return t.type!==`Raw`&&this.eof===!1&&this.tokenType!==17&&this.isDelim(33)===!1&&this.isBalanceEdge(e)===!1&&this.error(),t}const n_={important:[Boolean,String],property:String,value:[`Value`,`Raw`]};function r_(){let e=this.tokenStart,t=this.tokenIndex,n=a_.call(this),r=Ip(n),i=r?this.parseCustomProperty:this.parseValue,a=r?e_:$g,o=!1,s;this.skipSC(),this.eat(16);let c=this.tokenIndex;if(r||this.skipSC(),s=i?this.parseWithFallback(t_,a):a.call(this,this.tokenIndex),r&&s.type===`Value`&&s.children.isEmpty){for(let e=c-this.tokenIndex;e<=0;e++)if(this.lookupType(e)===13){s.children.appendData({type:`WhiteSpace`,loc:null,value:` `});break}}return this.isDelim(33)&&(o=o_.call(this),this.skipSC()),this.eof===!1&&this.tokenType!==17&&this.isBalanceEdge(t)===!1&&this.error(),{type:`Declaration`,loc:this.getLocation(e,this.tokenStart),important:o,property:n,value:s}}function i_(e){this.token(1,e.property),this.token(16,`:`),this.node(e.value),e.important&&(this.token(9,`!`),this.token(1,e.important===!0?`important`:e.important))}function a_(){let e=this.tokenStart;if(this.tokenType===9)switch(this.charCodeAt(this.tokenStart)){case 42:case 36:case 43:case 35:case 38:this.next();break;case 47:this.next(),this.isDelim(47)&&this.next()}return this.tokenType===4?this.eat(4):this.eat(1),this.substrToCursor(e)}function o_(){this.eat(9),this.skipSC();let e=this.consume(1);return e===`important`||e}var s_=Object.freeze({__proto__:null,generate:i_,name:`Declaration`,parse:r_,structure:n_,walkContext:`declaration`});function c_(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}const l_={children:[[`Declaration`]]};function u_(){let e=this.createList();for(;!this.eof;)switch(this.tokenType){case 13:case 25:case 17:this.next();break;default:e.push(this.parseWithFallback(this.Declaration,c_))}return{type:`DeclarationList`,loc:this.getLocationFromList(e),children:e}}function d_(e){this.children(e,(e=>{e.type===`Declaration`&&this.token(17,`;`)}))}var f_=Object.freeze({__proto__:null,generate:d_,name:`DeclarationList`,parse:u_,structure:l_});const p_={value:String,unit:String};function m_(){let e=this.tokenStart,t=this.consumeNumber(12);return{type:`Dimension`,loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}}function h_(e){this.token(12,e.value+e.unit)}var g_=Object.freeze({__proto__:null,generate:h_,name:`Dimension`,parse:m_,structure:p_});const __={name:String,children:[[]]};function v_(e,t){let n=this.tokenStart,r=this.consumeFunctionName(),i=r.toLowerCase(),a;return a=t.hasOwnProperty(i)?t[i].call(this,t):e.call(this,t),this.eof||this.eat(22),{type:`Function`,loc:this.getLocation(n,this.tokenStart),name:r,children:a}}function y_(e){this.token(2,e.name+`(`),this.children(e),this.token(22,`)`)}var b_=Object.freeze({__proto__:null,generate:y_,name:`Function`,parse:v_,structure:__,walkContext:`function`});const x_={value:String};function S_(){let e=this.tokenStart;return this.eat(4),{type:`Hash`,loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function C_(e){this.token(4,`#`+e.value)}var w_=Object.freeze({__proto__:null,generate:C_,name:`Hash`,parse:S_,structure:x_,xxx:`XXX`});const T_={name:String};function E_(){return{type:`Identifier`,loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function D_(e){this.token(1,e.name)}var O_=Object.freeze({__proto__:null,generate:D_,name:`Identifier`,parse:E_,structure:T_});const k_={name:String};function A_(){let e=this.tokenStart;return this.eat(4),{type:`IdSelector`,loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function j_(e){this.token(9,`#`+e.name)}var M_=Object.freeze({__proto__:null,generate:j_,name:`IdSelector`,parse:A_,structure:k_});const N_={name:String,value:[`Identifier`,`Number`,`Dimension`,`Ratio`,null]};function P_(){let e=this.tokenStart,t,n=null;if(this.eat(21),this.skipSC(),t=this.consume(1),this.skipSC(),this.tokenType!==22){switch(this.eat(16),this.skipSC(),this.tokenType){case 10:n=this.lookupNonWSType(1)===9?this.Ratio():this.Number();break;case 12:n=this.Dimension();break;case 1:n=this.Identifier();break;default:this.error(`Number, dimension, ratio or identifier is expected`)}this.skipSC()}return this.eat(22),{type:`MediaFeature`,loc:this.getLocation(e,this.tokenStart),name:t,value:n}}function F_(e){this.token(21,`(`),this.token(1,e.name),e.value!==null&&(this.token(16,`:`),this.node(e.value)),this.token(22,`)`)}var I_=Object.freeze({__proto__:null,generate:F_,name:`MediaFeature`,parse:P_,structure:N_});const L_={children:[[`Identifier`,`MediaFeature`,`WhiteSpace`]]};function R_(){let e=this.createList(),t=null;this.skipSC();scan:for(;!this.eof;){switch(this.tokenType){case 25:case 13:this.next();continue;case 1:t=this.Identifier();break;case 21:t=this.MediaFeature();break;default:break scan}e.push(t)}return t===null&&this.error(`Identifier or parenthesis is expected`),{type:`MediaQuery`,loc:this.getLocationFromList(e),children:e}}function z_(e){this.children(e)}var B_=Object.freeze({__proto__:null,generate:z_,name:`MediaQuery`,parse:R_,structure:L_});const V_={children:[[`MediaQuery`]]};function H_(){let e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===18);)this.next();return{type:`MediaQueryList`,loc:this.getLocationFromList(e),children:e}}function U_(e){this.children(e,(()=>this.token(18,`,`)))}var W_=Object.freeze({__proto__:null,generate:U_,name:`MediaQueryList`,parse:H_,structure:V_});const G_={nth:[`AnPlusB`,`Identifier`],selector:[`SelectorList`,null]};function K_(){this.skipSC();let e=this.tokenStart,t=e,n=null,r;return r=this.lookupValue(0,`odd`)||this.lookupValue(0,`even`)?this.Identifier():this.AnPlusB(),t=this.tokenStart,this.skipSC(),this.lookupValue(0,`of`)&&(this.next(),n=this.SelectorList(),t=this.tokenStart),{type:`Nth`,loc:this.getLocation(e,t),nth:r,selector:n}}function q_(e){this.node(e.nth),e.selector!==null&&(this.token(1,`of`),this.node(e.selector))}var J_=Object.freeze({__proto__:null,generate:q_,name:`Nth`,parse:K_,structure:G_});const Y_={value:String};function X_(){return{type:`Number`,loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(10)}}function Z_(e){this.token(10,e.value)}var Q_=Object.freeze({__proto__:null,generate:Z_,name:`Number`,parse:X_,structure:Y_});const $_={value:String};function ev(){let e=this.tokenStart;return this.next(),{type:`Operator`,loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function tv(e){this.tokenize(e.value)}var nv=Object.freeze({__proto__:null,generate:tv,name:`Operator`,parse:ev,structure:$_});const rv={children:[[]]};function iv(e,t){let n=this.tokenStart,r=null;return this.eat(21),r=e.call(this,t),this.eof||this.eat(22),{type:`Parentheses`,loc:this.getLocation(n,this.tokenStart),children:r}}function av(e){this.token(21,`(`),this.children(e),this.token(22,`)`)}var ov=Object.freeze({__proto__:null,generate:av,name:`Parentheses`,parse:iv,structure:rv});const sv={value:String};function cv(){return{type:`Percentage`,loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(11)}}function lv(e){this.token(11,e.value+`%`)}var uv=Object.freeze({__proto__:null,generate:lv,name:`Percentage`,parse:cv,structure:sv});const dv={name:String,children:[[`Raw`],null]};function fv(){let e=this.tokenStart,t=null,n,r;return this.eat(16),this.tokenType===2?(n=this.consumeFunctionName(),r=n.toLowerCase(),hasOwnProperty.call(this.pseudo,r)?(this.skipSC(),t=this.pseudo[r].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(this.tokenIndex,null,!1))),this.eat(22)):n=this.consume(1),{type:`PseudoClassSelector`,loc:this.getLocation(e,this.tokenStart),name:n,children:t}}function pv(e){this.token(16,`:`),e.children===null?this.token(1,e.name):(this.token(2,e.name+`(`),this.children(e),this.token(22,`)`))}var mv=Object.freeze({__proto__:null,generate:pv,name:`PseudoClassSelector`,parse:fv,structure:dv,walkContext:`function`});const hv={name:String,children:[[`Raw`],null]};function gv(){let e=this.tokenStart,t=null,n,r;return this.eat(16),this.eat(16),this.tokenType===2?(n=this.consumeFunctionName(),r=n.toLowerCase(),hasOwnProperty.call(this.pseudo,r)?(this.skipSC(),t=this.pseudo[r].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(this.tokenIndex,null,!1))),this.eat(22)):n=this.consume(1),{type:`PseudoElementSelector`,loc:this.getLocation(e,this.tokenStart),name:n,children:t}}function _v(e){this.token(16,`:`),this.token(16,`:`),e.children===null?this.token(1,e.name):(this.token(2,e.name+`(`),this.children(e),this.token(22,`)`))}var vv=Object.freeze({__proto__:null,generate:_v,name:`PseudoElementSelector`,parse:gv,structure:hv,walkContext:`function`});function yv(){this.skipSC();let e=this.consume(10);for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);U(n)||n===46||this.error(`Unsigned number is expected`,this.tokenStart-e.length+t)}return Number(e)===0&&this.error(`Zero number is not allowed`,this.tokenStart-e.length),e}const bv={left:String,right:String};function xv(){let e=this.tokenStart,t=yv.call(this),n;return this.skipSC(),this.eatDelim(47),n=yv.call(this),{type:`Ratio`,loc:this.getLocation(e,this.tokenStart),left:t,right:n}}function Sv(e){this.token(10,e.left),this.token(9,`/`),this.token(10,e.right)}var Cv=Object.freeze({__proto__:null,generate:Sv,name:`Ratio`,parse:xv,structure:bv});function wv(){return this.tokenIndex>0&&this.lookupType(-1)===13?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}const Tv={value:String};function Ev(e,t,n){let r=this.getTokenStart(e),i;return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),i=n&&this.tokenStart>r?wv.call(this):this.tokenStart,{type:`Raw`,loc:this.getLocation(r,i),value:this.substring(r,i)}}function Dv(e){this.tokenize(e.value)}var Ov=Object.freeze({__proto__:null,generate:Dv,name:`Raw`,parse:Ev,structure:Tv});function kv(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function Av(){let e=this.SelectorList();return e.type!==`Raw`&&this.eof===!1&&this.tokenType!==23&&this.error(),e}const jv={prelude:[`SelectorList`,`Raw`],block:[`Block`]};function Mv(){let e=this.tokenIndex,t=this.tokenStart,n,r;return n=this.parseRulePrelude?this.parseWithFallback(Av,kv):kv.call(this,e),r=this.Block(!0),{type:`Rule`,loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}}function Nv(e){this.node(e.prelude),this.node(e.block)}var Pv=Object.freeze({__proto__:null,generate:Nv,name:`Rule`,parse:Mv,structure:jv,walkContext:`rule`});const Fv={children:[[`TypeSelector`,`IdSelector`,`ClassSelector`,`AttributeSelector`,`PseudoClassSelector`,`PseudoElementSelector`,`Combinator`,`WhiteSpace`]]};function Iv(){let e=this.readSequence(this.scope.Selector);return this.getFirstListNode(e)===null&&this.error(`Selector is expected`),{type:`Selector`,loc:this.getLocationFromList(e),children:e}}function Lv(e){this.children(e)}var Rv=Object.freeze({__proto__:null,generate:Lv,name:`Selector`,parse:Iv,structure:Fv});const zv={children:[[`Selector`,`Raw`]]};function Bv(){let e=this.createList();for(;!this.eof&&(e.push(this.Selector()),this.tokenType===18);)this.next();return{type:`SelectorList`,loc:this.getLocationFromList(e),children:e}}function Vv(e){this.children(e,(()=>this.token(18,`,`)))}var Hv=Object.freeze({__proto__:null,generate:Vv,name:`SelectorList`,parse:Bv,structure:zv,walkContext:`selector`});function Uv(e){let t=e.length,n=e.charCodeAt(0),r=+(n===34||n===39),i=r===1&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1,a=``;for(let n=r;n<=i;n++){let r=e.charCodeAt(n);if(r===92){if(n===i){n!==t-1&&(a=e.substr(n+1));break}if(r=e.charCodeAt(++n),_f(92,r)){let t=n-1,r=Af(e,t);n=r-1,a+=Pf(e.substring(t+1,r))}else r===13&&e.charCodeAt(n+1)===10&&n++}else a+=e[n]}return a}function Wv(e,t){let n=t?`'`:`"`,r=t?39:34,i=``,a=!1;for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);n===0?i+=`�`:n<=31||n===127?(i+=`\\`+n.toString(16),a=!0):n===r||n===92?(i+=`\\`+e.charAt(t),a=!1):(a&&(sf(n)||gf(n))&&(i+=` `),i+=e.charAt(t),a=!1)}return n+i+n}const Gv={value:String};function Kv(){return{type:`String`,loc:this.getLocation(this.tokenStart,this.tokenEnd),value:Uv(this.consume(5))}}function qv(e){this.token(5,Wv(e.value))}var Jv=Object.freeze({__proto__:null,generate:qv,name:`String`,parse:Kv,structure:Gv});function Yv(e){return this.Raw(e,null,!1)}const Xv={children:[[`Comment`,`CDO`,`CDC`,`Atrule`,`Rule`,`Raw`]]};function Zv(){let e=this.tokenStart,t=this.createList(),n;for(;!this.eof;){switch(this.tokenType){case 13:this.next();continue;case 25:if(this.charCodeAt(this.tokenStart+2)!==33){this.next();continue}n=this.Comment();break;case 14:n=this.CDO();break;case 15:n=this.CDC();break;case 3:n=this.parseWithFallback(this.Atrule,Yv);break;default:n=this.parseWithFallback(this.Rule,Yv)}t.push(n)}return{type:`StyleSheet`,loc:this.getLocation(e,this.tokenStart),children:t}}function Qv(e){this.children(e)}var $v=Object.freeze({__proto__:null,generate:Qv,name:`StyleSheet`,parse:Zv,structure:Xv,walkContext:`stylesheet`});function ey(){this.tokenType!==1&&this.isDelim(42)===!1&&this.error(`Identifier or asterisk is expected`),this.next()}const ty={name:String};function ny(){let e=this.tokenStart;return this.isDelim(124)?(this.next(),ey.call(this)):(ey.call(this),this.isDelim(124)&&(this.next(),ey.call(this))),{type:`TypeSelector`,loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function ry(e){this.tokenize(e.name)}var iy=Object.freeze({__proto__:null,generate:ry,name:`TypeSelector`,parse:ny,structure:ty});function ay(e,t){let n=0;for(let r=this.tokenStart+e;r<this.tokenEnd;r++){let i=this.charCodeAt(r);if(i===45&&t&&n!==0)return ay.call(this,e+n+1,!1),-1;sf(i)||this.error(t&&n!==0?`Hyphen minus`+(n<6?` or hex digit`:``)+` is expected`:n<6?`Hex digit is expected`:`Unexpected input`,r),++n>6&&this.error(`Too many hex digits`,r)}return this.next(),n}function oy(e){let t=0;for(;this.isDelim(63);)++t>e&&this.error(`Too many question marks`),this.next()}function sy(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===43?`Plus sign`:`Hyphen minus`)+` is expected`)}function cy(){let e=0;switch(this.tokenType){case 10:if(e=ay.call(this,1,!0),this.isDelim(63)){oy.call(this,6-e);break}if(this.tokenType===12||this.tokenType===10){sy.call(this,45),ay.call(this,1,!1);break}break;case 12:e=ay.call(this,1,!0),e>0&&oy.call(this,6-e);break;default:if(this.eatDelim(43),this.tokenType===1){e=ay.call(this,0,!0),e>0&&oy.call(this,6-e);break}if(this.isDelim(63)){this.next(),oy.call(this,5);break}this.error(`Hex digit or question mark is expected`)}}const ly={value:String};function uy(){let e=this.tokenStart;return this.eatIdent(`u`),cy.call(this),{type:`UnicodeRange`,loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function dy(e){this.tokenize(e.value)}var fy=Object.freeze({__proto__:null,generate:dy,name:`UnicodeRange`,parse:uy,structure:ly});function py(e){let t=e.length,n=4,r=e.charCodeAt(t-1)===41?t-2:t-1,i=``;for(;n<r&&gf(e.charCodeAt(n));)n++;for(;n<r&&gf(e.charCodeAt(r));)r--;for(let a=n;a<=r;a++){let n=e.charCodeAt(a);if(n===92){if(a===r){a!==t-1&&(i=e.substr(a+1));break}if(n=e.charCodeAt(++a),_f(92,n)){let t=a-1,n=Af(e,t);a=n-1,i+=Pf(e.substring(t+1,n))}else n===13&&e.charCodeAt(a+1)===10&&a++}else i+=e[a]}return i}function my(e){let t=``,n=!1;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i===0?t+=`�`:i<=31||i===127?(t+=`\\`+i.toString(16),n=!0):i===32||i===92||i===34||i===39||i===40||i===41?(t+=`\\`+e.charAt(r),n=!1):(n&&sf(i)&&(t+=` `),t+=e.charAt(r),n=!1)}return`url(`+t+`)`}const hy={value:String};function gy(){let e=this.tokenStart,t;switch(this.tokenType){case 7:t=py(this.consume(7));break;case 2:this.cmpStr(this.tokenStart,this.tokenEnd,`url(`)||this.error("Function name must be `url`"),this.eat(2),this.skipSC(),t=Uv(this.consume(5)),this.skipSC(),this.eof||this.eat(22);break;default:this.error(`Url or Function is expected`)}return{type:`Url`,loc:this.getLocation(e,this.tokenStart),value:t}}function _y(e){this.token(7,my(e.value))}var vy=Object.freeze({__proto__:null,generate:_y,name:`Url`,parse:gy,structure:hy});const yy={children:[[]]};function by(){let e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:`Value`,loc:this.getLocation(e,this.tokenStart),children:t}}function xy(e){this.children(e)}var Sy=Object.freeze({__proto__:null,generate:xy,name:`Value`,parse:by,structure:yy});const Cy=Object.freeze({type:`WhiteSpace`,loc:null,value:` `}),wy={value:String};function Ty(){return this.eat(13),Cy}function Ey(e){this.token(13,e.value)}var Dy=Object.freeze({__proto__:null,generate:Ey,name:`WhiteSpace`,parse:Ty,structure:wy}),Oy=Object.freeze({__proto__:null,AnPlusB:ig,Atrule:ug,AtrulePrelude:mg,AttributeSelector:bg,Block:Og,Brackets:Mg,CDC:Ig,CDO:Bg,ClassSelector:Wg,Combinator:Jg,Comment:Qg,Declaration:s_,DeclarationList:f_,Dimension:g_,Function:b_,Hash:w_,IdSelector:M_,Identifier:O_,MediaFeature:I_,MediaQuery:B_,MediaQueryList:W_,Nth:J_,Number:Q_,Operator:nv,Parentheses:ov,Percentage:uv,PseudoClassSelector:mv,PseudoElementSelector:vv,Ratio:Cv,Raw:Ov,Rule:Pv,Selector:Rv,SelectorList:Hv,String:Jv,StyleSheet:$v,TypeSelector:iy,UnicodeRange:fy,Url:vy,Value:Sy,WhiteSpace:Dy}),ky={generic:!0,...Xh,node:Oy};function Ay(e){switch(this.tokenType){case 4:return this.Hash();case 18:return this.Operator();case 21:return this.Parentheses(this.readSequence,e.recognizer);case 19:return this.Brackets(this.readSequence,e.recognizer);case 5:return this.String();case 12:return this.Dimension();case 11:return this.Percentage();case 10:return this.Number();case 2:return this.cmpStr(this.tokenStart,this.tokenEnd,`url(`)?this.Url():this.Function(this.readSequence,e.recognizer);case 7:return this.Url();case 1:return this.cmpChar(this.tokenStart,117)&&this.cmpChar(this.tokenStart+1,43)?this.UnicodeRange():this.Identifier();case 9:{let e=this.charCodeAt(this.tokenStart);if(e===47||e===42||e===43||e===45)return this.Operator();e===35&&this.error(`Hex or identifier is expected`,this.tokenStart+1);break}}}var jy={getNode:Ay};function My(e,t){t.last!==null&&t.last.type!==`Combinator`&&e!==null&&e.type!==`Combinator`&&t.push({type:`Combinator`,loc:null,name:` `})}function Ny(){switch(this.tokenType){case 19:return this.AttributeSelector();case 4:return this.IdSelector();case 16:return this.lookupType(1)===16?this.PseudoElementSelector():this.PseudoClassSelector();case 1:return this.TypeSelector();case 10:case 11:return this.Percentage();case 12:this.charCodeAt(this.tokenStart)===46&&this.error(`Identifier is expected`,this.tokenStart+1);break;case 9:switch(this.charCodeAt(this.tokenStart)){case 43:case 62:case 126:case 47:return this.Combinator();case 46:return this.ClassSelector();case 42:case 124:return this.TypeSelector();case 35:return this.IdSelector()}}}var Py={onWhiteSpace:My,getNode:Ny};function Fy(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function Iy(){let e=this.createList();if(this.skipSC(),e.push(this.Identifier()),this.skipSC(),this.tokenType===18){e.push(this.Operator());let t=this.tokenIndex,n=this.parseCustomProperty?this.Value(null):this.Raw(this.tokenIndex,this.consumeUntilExclamationMarkOrSemicolon,!1);if(n.type===`Value`&&n.children.isEmpty){for(let e=t-this.tokenIndex;e<=0;e++)if(this.lookupType(e)===13){n.children.appendData({type:`WhiteSpace`,loc:null,value:` `});break}}e.push(n)}return e}function Ly(e){return e!==null&&e.type===`Operator`&&(e.value[e.value.length-1]===`-`||e.value[e.value.length-1]===`+`)}var Ry=Object.freeze({__proto__:null,AtrulePrelude:jy,Selector:Py,Value:{getNode:Ay,onWhiteSpace(e,t){Ly(e)&&(e.value=` `+e.value),Ly(t.last)&&(t.last.value+=` `)},expression:Fy,var:Iy}}),zy={parse:{prelude:null,block(){return this.Block(!0)}}},By={parse:{prelude(){let e=this.createList();switch(this.skipSC(),this.tokenType){case 5:e.push(this.String());break;case 7:case 2:e.push(this.Url());break;default:this.error(`String or url() is expected`)}return this.lookupNonWSType(0)!==1&&this.lookupNonWSType(0)!==21||e.push(this.MediaQueryList()),e},block:null}},Vy={parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(){return this.Block(!1)}}},Hy={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}};function Uy(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function Wy(){return this.skipSC(),this.tokenType===1&&this.lookupNonWSType(1)===16?this.createSingleNodeList(this.Declaration()):Gy.call(this)}function Gy(){let e=this.createList(),t;this.skipSC();scan:for(;!this.eof;){switch(this.tokenType){case 25:case 13:this.next();continue;case 2:t=this.Function(Uy,this.scope.AtrulePrelude);break;case 1:t=this.Identifier();break;case 21:t=this.Parentheses(Wy,this.scope.AtrulePrelude);break;default:break scan}e.push(t)}return e}var Ky={"font-face":zy,import:By,media:Vy,page:Hy,supports:{parse:{prelude(){let e=Gy.call(this);return this.getFirstListNode(e)===null&&this.error(`Condition is expected`),e},block(){return this.Block(!1)}}}};const qy={parse(){return this.createSingleNodeList(this.SelectorList())}},Jy={parse(){return this.createSingleNodeList(this.Selector())}},Yy={parse(){return this.createSingleNodeList(this.Identifier())}},Xy={parse(){return this.createSingleNodeList(this.Nth())}};var Zy={parseContext:{default:`StyleSheet`,stylesheet:`StyleSheet`,atrule:`Atrule`,atrulePrelude(e){return this.AtrulePrelude(e.atrule?String(e.atrule):null)},mediaQueryList:`MediaQueryList`,mediaQuery:`MediaQuery`,rule:`Rule`,selectorList:`SelectorList`,selector:`Selector`,block(){return this.Block(!0)},declarationList:`DeclarationList`,declaration:`Declaration`,value:`Value`},scope:Ry,atrule:Ky,pseudo:{dir:Yy,has:qy,lang:Yy,matches:qy,is:qy,"-moz-any":qy,"-webkit-any":qy,where:qy,not:qy,"nth-child":Xy,"nth-last-child":Xy,"nth-last-of-type":Xy,"nth-of-type":Xy,slotted:Jy},node:Object.freeze({__proto__:null,AnPlusB:ng,Atrule:cg,AtrulePrelude:fg,AttributeSelector:vg,Block:Eg,Brackets:Ag,CDC:Pg,CDO:Rg,ClassSelector:Hg,Combinator:Kg,Comment:Xg,Declaration:r_,DeclarationList:u_,Dimension:m_,Function:v_,Hash:S_,IdSelector:A_,Identifier:E_,MediaFeature:P_,MediaQuery:R_,MediaQueryList:H_,Nth:K_,Number:X_,Operator:ev,Parentheses:iv,Percentage:cv,PseudoClassSelector:fv,PseudoElementSelector:gv,Ratio:xv,Raw:Ev,Rule:Mv,Selector:Iv,SelectorList:Bv,String:Kv,StyleSheet:Zv,TypeSelector:ny,UnicodeRange:uy,Url:gy,Value:by,WhiteSpace:Ty})},Qy={node:Oy},$y=Yh({...ky,...Zy,...Qy});function eb(e){let t={};for(let n in e){let r=e[n];r&&(Array.isArray(r)||r instanceof G?r=r.map(eb):r.constructor===Object&&(r=eb(r))),t[n]=r}return t}const{tokenize:tb,parse:nb,generate:rb,lexer:ib,createLexer:ab,walk:Z,find:ob,findLast:sb,findAll:cb,toPlainObject:lb,fromPlainObject:ub,fork:db}=$y,{hasOwnProperty:fb}=Object.prototype;function pb(e,t){let n=Object.create(null);if(!Array.isArray(e))return null;for(let r of e)t&&(r=r.toLowerCase()),n[r]=!0;return n}function mb(e){if(!e)return null;let t=pb(e.tags,!0),n=pb(e.ids),r=pb(e.classes);return t===null&&n===null&&r===null?null:{tags:t,ids:n,classes:r}}function hb(e){let t=!1;if(e.scopes&&Array.isArray(e.scopes)){t=Object.create(null);for(let n=0;n<e.scopes.length;n++){let r=e.scopes[n];if(!r||!Array.isArray(r))throw Error(`Wrong usage format`);for(let e of r){if(fb.call(t,e))throw Error(`Class can't be used for several scopes: ${e}`);t[e]=n+1}}}return{whitelist:mb(e),blacklist:mb(e.blacklist),scopes:t}}function gb(e){return!e||!e.children||e.children.isEmpty}function _b(e,t){return e!==null&&e.children===t}function vb(e,t,n){if(e.block&&(this.stylesheet!==null&&(this.stylesheet.firstAtrulesAllowed=!1),gb(e.block)))n.remove(t);else switch(e.name){case`charset`:if(gb(e.prelude)||t.prev){n.remove(t);return}break;case`import`:if(this.stylesheet===null||!this.stylesheet.firstAtrulesAllowed){n.remove(t);return}n.prevUntil(t.prev,(function(e){if(e.type!==`Atrule`||e.name!==`import`&&e.name!==`charset`)return this.root.firstAtrulesAllowed=!1,n.remove(t),!0}),this);break;default:{let r=Pp(e.name).basename;r!==`keyframes`&&r!==`media`&&r!==`supports`||(gb(e.prelude)||gb(e.block))&&n.remove(t)}}}function yb(e,t,n){n.remove(t)}function bb(e,t,n){e.value.children&&e.value.children.isEmpty?n.remove(t):Fp(e.property).custom&&/\S/.test(e.value.value)&&(e.value.value=e.value.value.trim())}function xb(e,t,n){(_b(this.stylesheet,n)||_b(this.block,n))&&n.remove(t)}const{hasOwnProperty:Sb}=Object.prototype,Cb=/* @__PURE__ */ new Set([`keyframes`]);function wb(e,t){return e.children.forEach(((n,r,i)=>{let a=!1;Z(n,(function(n){if(this.selector===null||this.selector===e)switch(n.type){case`SelectorList`:this.function!==null&&this.function.name.toLowerCase()===`not`||wb(n,t)&&(a=!0);break;case`ClassSelector`:t.whitelist===null||t.whitelist.classes===null||Sb.call(t.whitelist.classes,n.name)||(a=!0),t.blacklist!==null&&t.blacklist.classes!==null&&Sb.call(t.blacklist.classes,n.name)&&(a=!0);break;case`IdSelector`:t.whitelist===null||t.whitelist.ids===null||Sb.call(t.whitelist.ids,n.name)||(a=!0),t.blacklist!==null&&t.blacklist.ids!==null&&Sb.call(t.blacklist.ids,n.name)&&(a=!0);break;case`TypeSelector`:n.name.charAt(n.name.length-1)!==`*`&&(t.whitelist===null||t.whitelist.tags===null||Sb.call(t.whitelist.tags,n.name.toLowerCase())||(a=!0),t.blacklist!==null&&t.blacklist.tags!==null&&Sb.call(t.blacklist.tags,n.name.toLowerCase())&&(a=!0))}})),a&&i.remove(r)})),e.children.isEmpty}function Tb(e,t,n,r){if(gb(e.prelude)||gb(e.block)){n.remove(t);return}if(this.atrule&&Cb.has(Pp(this.atrule.name).basename))return;let{usage:i}=r;i&&(i.whitelist!==null||i.blacklist!==null)&&(wb(e.prelude,i),gb(e.prelude))&&n.remove(t)}function Eb(e,t,n){if(t.data.name!==`*`)return;let r=t.next&&t.next.data.type;r!==`IdSelector`&&r!==`ClassSelector`&&r!==`AttributeSelector`&&r!==`PseudoClassSelector`&&r!==`PseudoElementSelector`||n.remove(t)}function Db(e,t,n){n.remove(t)}const Ob={Atrule:vb,Comment:yb,Declaration:bb,Raw:xb,Rule:Tb,TypeSelector:Eb,WhiteSpace:Db};function kb(e,t){Z(e,{leave(e,n,r){Ob.hasOwnProperty(e.type)&&Ob[e.type].call(this,e,n,r,t)}})}function Ab(e){e.block.children.forEach((e=>{e.prelude.children.forEach((e=>{e.children.forEach(((e,t)=>{e.type===`Percentage`&&e.value===`100`?t.data={type:`TypeSelector`,loc:e.loc,name:`to`}:e.type===`TypeSelector`&&e.name===`from`&&(t.data={type:`Percentage`,loc:e.loc,value:`0`})}))}))}))}function jb(e){Pp(e.name).basename===`keyframes`&&Ab(e)}const Mb=/^(-?\d|--)|[\u0000-\u002c\u002e\u002f\u003A-\u0040\u005B-\u005E\u0060\u007B-\u009f]/;function Nb(e){return e===``||e===`-`?!1:!Mb.test(e)}function Pb(e){let t=e.value;t&&t.type===`String`&&Nb(t.value)&&(e.value={type:`Identifier`,loc:t.loc,name:t.value})}function Fb(e){let t=e.children;t.forEachRight((function(e,t){if(e.type===`Identifier`){if(e.name===`bold`)t.data={type:`Number`,loc:e.loc,value:`700`};else if(e.name===`normal`){let e=t.prev;e&&e.data.type===`Operator`&&e.data.value===`/`&&this.remove(e),this.remove(t)}}})),t.isEmpty&&t.insert(t.createItem({type:`Identifier`,name:`normal`}))}function Ib(e){let t=e.children.head.data;if(t.type===`Identifier`)switch(t.name){case`normal`:e.children.head.data={type:`Number`,loc:t.loc,value:`400`};break;case`bold`:e.children.head.data={type:`Number`,loc:t.loc,value:`700`}}}function Lb(e){function t(){r.length||r.unshift({type:`Number`,loc:null,value:`0`},{type:`Number`,loc:null,value:`0`}),n.push.apply(n,r),r=[]}let n=[],r=[];e.children.forEach((e=>{e.type===`Operator`&&e.value===`,`?(t(),n.push(e)):(e.type!==`Identifier`||e.name!==`transparent`&&e.name!==`none`&&e.name!==`repeat`&&e.name!==`scroll`)&&r.push(e)})),t(),e.children=new G().fromArray(n)}function Rb(e){e.children.forEach(((e,t,n)=>{e.type===`Identifier`&&e.name.toLowerCase()===`none`&&(n.head===n.tail?t.data={type:`Number`,loc:e.loc,value:`0`}:n.remove(t))}))}const zb={font:Fb,"font-weight":Ib,background:Lb,border:Rb,outline:Rb};function Bb(e){if(!this.declaration)return;let t=Fp(this.declaration.property);zb.hasOwnProperty(t.basename)&&zb[t.basename](e)}const Vb=/^(?:\+|(-))?0*(\d*)(?:\.0*|(\.\d*?)0*)?$/;function Hb(e,t){let n=Vb;return e=String(e).replace(n,`$1$2$3`),e!==``&&e!==`-`||(e=`0`),e}function Ub(e){e.value=Hb(e.value)}const Wb=/* @__PURE__ */ new Set([`calc`,`min`,`max`,`clamp`]),Gb=/* @__PURE__ */ new Set([`px`,`mm`,`cm`,`in`,`pt`,`pc`,`em`,`ex`,`ch`,`rem`,`vh`,`vw`,`vmin`,`vmax`,`vm`]);function Kb(e,t){let n=Hb(e.value);if(e.value=n,n===`0`&&this.declaration!==null&&this.atrulePrelude===null){let r=e.unit.toLowerCase();if(!Gb.has(r)||this.declaration.property===`-ms-flex`||this.declaration.property===`flex`||this.function&&Wb.has(this.function.name))return;t.data={type:`Number`,loc:e.loc,value:n}}}const qb=/* @__PURE__ */ new Set([`width`,`min-width`,`max-width`,`height`,`min-height`,`max-height`,`flex`,`-ms-flex`]);function Jb(e,t){e.value=Hb(e.value),e.value===`0`&&this.declaration&&!qb.has(this.declaration.property)&&(t.data={type:`Number`,loc:e.loc,value:e.value},ib.matchDeclaration(this.declaration).isType(t.data,`length`)||(t.data=e))}function Yb(e){e.value=e.value.replace(/\\/g,`/`)}const Xb={aliceblue:`f0f8ff`,antiquewhite:`faebd7`,aqua:`0ff`,aquamarine:`7fffd4`,azure:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`000`,blanchedalmond:`ffebcd`,blue:`00f`,blueviolet:`8a2be2`,brown:`a52a2a`,burlywood:`deb887`,cadetblue:`5f9ea0`,chartreuse:`7fff00`,chocolate:`d2691e`,coral:`ff7f50`,cornflowerblue:`6495ed`,cornsilk:`fff8dc`,crimson:`dc143c`,cyan:`0ff`,darkblue:`00008b`,darkcyan:`008b8b`,darkgoldenrod:`b8860b`,darkgray:`a9a9a9`,darkgrey:`a9a9a9`,darkgreen:`006400`,darkkhaki:`bdb76b`,darkmagenta:`8b008b`,darkolivegreen:`556b2f`,darkorange:`ff8c00`,darkorchid:`9932cc`,darkred:`8b0000`,darksalmon:`e9967a`,darkseagreen:`8fbc8f`,darkslateblue:`483d8b`,darkslategray:`2f4f4f`,darkslategrey:`2f4f4f`,darkturquoise:`00ced1`,darkviolet:`9400d3`,deeppink:`ff1493`,deepskyblue:`00bfff`,dimgray:`696969`,dimgrey:`696969`,dodgerblue:`1e90ff`,firebrick:`b22222`,floralwhite:`fffaf0`,forestgreen:`228b22`,fuchsia:`f0f`,gainsboro:`dcdcdc`,ghostwhite:`f8f8ff`,gold:`ffd700`,goldenrod:`daa520`,gray:`808080`,grey:`808080`,green:`008000`,greenyellow:`adff2f`,honeydew:`f0fff0`,hotpink:`ff69b4`,indianred:`cd5c5c`,indigo:`4b0082`,ivory:`fffff0`,khaki:`f0e68c`,lavender:`e6e6fa`,lavenderblush:`fff0f5`,lawngreen:`7cfc00`,lemonchiffon:`fffacd`,lightblue:`add8e6`,lightcoral:`f08080`,lightcyan:`e0ffff`,lightgoldenrodyellow:`fafad2`,lightgray:`d3d3d3`,lightgrey:`d3d3d3`,lightgreen:`90ee90`,lightpink:`ffb6c1`,lightsalmon:`ffa07a`,lightseagreen:`20b2aa`,lightskyblue:`87cefa`,lightslategray:`789`,lightslategrey:`789`,lightsteelblue:`b0c4de`,lightyellow:`ffffe0`,lime:`0f0`,limegreen:`32cd32`,linen:`faf0e6`,magenta:`f0f`,maroon:`800000`,mediumaquamarine:`66cdaa`,mediumblue:`0000cd`,mediumorchid:`ba55d3`,mediumpurple:`9370db`,mediumseagreen:`3cb371`,mediumslateblue:`7b68ee`,mediumspringgreen:`00fa9a`,mediumturquoise:`48d1cc`,mediumvioletred:`c71585`,midnightblue:`191970`,mintcream:`f5fffa`,mistyrose:`ffe4e1`,moccasin:`ffe4b5`,navajowhite:`ffdead`,navy:`000080`,oldlace:`fdf5e6`,olive:`808000`,olivedrab:`6b8e23`,orange:`ffa500`,orangered:`ff4500`,orchid:`da70d6`,palegoldenrod:`eee8aa`,palegreen:`98fb98`,paleturquoise:`afeeee`,palevioletred:`db7093`,papayawhip:`ffefd5`,peachpuff:`ffdab9`,peru:`cd853f`,pink:`ffc0cb`,plum:`dda0dd`,powderblue:`b0e0e6`,purple:`800080`,rebeccapurple:`639`,red:`f00`,rosybrown:`bc8f8f`,royalblue:`4169e1`,saddlebrown:`8b4513`,salmon:`fa8072`,sandybrown:`f4a460`,seagreen:`2e8b57`,seashell:`fff5ee`,sienna:`a0522d`,silver:`c0c0c0`,skyblue:`87ceeb`,slateblue:`6a5acd`,slategray:`708090`,slategrey:`708090`,snow:`fffafa`,springgreen:`00ff7f`,steelblue:`4682b4`,tan:`d2b48c`,teal:`008080`,thistle:`d8bfd8`,tomato:`ff6347`,turquoise:`40e0d0`,violet:`ee82ee`,wheat:`f5deb3`,white:`fff`,whitesmoke:`f5f5f5`,yellow:`ff0`,yellowgreen:`9acd32`},Zb={8e5:`maroon`,800080:`purple`,808e3:`olive`,808080:`gray`,"00ffff":`cyan`,f0ffff:`azure`,f5f5dc:`beige`,ffe4c4:`bisque`,"000000":`black`,"0000ff":`blue`,a52a2a:`brown`,ff7f50:`coral`,ffd700:`gold`,"008000":`green`,"4b0082":`indigo`,fffff0:`ivory`,f0e68c:`khaki`,"00ff00":`lime`,faf0e6:`linen`,"000080":`navy`,ffa500:`orange`,da70d6:`orchid`,cd853f:`peru`,ffc0cb:`pink`,dda0dd:`plum`,f00:`red`,ff0000:`red`,fa8072:`salmon`,a0522d:`sienna`,c0c0c0:`silver`,fffafa:`snow`,d2b48c:`tan`,"008080":`teal`,ff6347:`tomato`,ee82ee:`violet`,f5deb3:`wheat`,ffffff:`white`,ffff00:`yellow`};function Qb(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function $b(e,t,n,r){let i,a,o;if(t===0)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Qb(s,r,e+1/3),a=Qb(s,r,e),o=Qb(s,r,e-1/3)}return[Math.round(i*255),Math.round(a*255),Math.round(o*255),r]}function ex(e){return e=e.toString(16),e.length===1?`0`+e:e}function tx(e,t,n){let r=e.head,i=[],a=!1;for(;r!==null;){let{type:e,value:t}=r.data;switch(e){case`Number`:case`Percentage`:if(a)return;a=!0,i.push({type:e,value:Number(t)});break;case`Operator`:if(t===`,`){if(!a)return;a=!1}else if(a||t!==`+`)return;break;default:return}r=r.next}if(i.length===t){if(i.length===4){if(i[3].type!==`Number`)return;i[3].type=`Alpha`}if(n){if(i[0].type!==i[1].type||i[0].type!==i[2].type)return}else{if(i[0].type!==`Number`||i[1].type!==`Percentage`||i[2].type!==`Percentage`)return;i[0].type=`Angle`}return i.map((function(e){let t=Math.max(0,e.value);switch(e.type){case`Number`:t=Math.min(t,255);break;case`Percentage`:if(t=Math.min(t,100)/100,!n)return t;t*=255;break;case`Angle`:return(t%360+360)%360/360;case`Alpha`:return Math.min(t,1)}return Math.round(t)}))}}function nx(e,t){let n=e.name,r;if(n===`rgba`||n===`hsla`){if(r=tx(e.children,4,n===`rgba`),!r)return;if(n===`hsla`&&(r=$b(...r),e.name=`rgba`),r[3]===0){let n=this.function&&this.function.name;if(r[0]===0&&r[1]===0&&r[2]===0||!/^(?:to|from|color-stop)$|gradient$/i.test(n)){t.data={type:`Identifier`,loc:e.loc,name:`transparent`};return}}if(r[3]!==1){e.children.forEach(((e,t,n)=>{e.type===`Operator`?e.value!==`,`&&n.remove(t):t.data={type:`Number`,loc:e.loc,value:Hb(r.shift())}}));return}n=`rgb`}if(n===`hsl`){if(r||=tx(e.children,3,!1),!r)return;r=$b(...r),n=`rgb`}if(n===`rgb`){if(r||=tx(e.children,3,!0),!r)return;t.data={type:`Hash`,loc:e.loc,value:ex(r[0])+ex(r[1])+ex(r[2])},ix(t.data,t)}}function rx(e,t){if(this.declaration===null)return;let n=e.name.toLowerCase();if(Xb.hasOwnProperty(n)&&ib.matchDeclaration(this.declaration).isType(e,`color`)){let r=Xb[n];r.length+1<=n.length?t.data={type:`Hash`,loc:e.loc,value:r}:(n===`grey`&&(n=`gray`),e.name=n)}}function ix(e,t){let n=e.value.toLowerCase();n.length===6&&n[0]===n[1]&&n[2]===n[3]&&n[4]===n[5]&&(n=n[0]+n[2]+n[4]),Zb[n]?t.data={type:`Identifier`,loc:e.loc,name:Zb[n]}:e.value=n}const ax={Atrule:jb,AttributeSelector:Pb,Value:Bb,Dimension:Kb,Percentage:Jb,Number:Ub,Url:Yb,Hash:ix,Identifier:rx,Function:nx};function ox(e){Z(e,{leave(e,t,n){ax.hasOwnProperty(e.type)&&ax[e.type].call(this,e,t,n)}})}var sx=class{constructor(){this.map=/* @__PURE__ */ new Map}resolve(e){let t=this.map.get(e);return t===void 0&&(t=this.map.size+1,this.map.set(e,t)),t}};function cx(){let e=new sx;return function(t){let n=rb(t);return t.id=e.resolve(n),t.length=n.length,t.fingerprint=null,t}}function lx(e){return e.type===`Raw`?nb(e.value,{context:`selectorList`}):e}function ux(e,t){for(let n=0;n<3;n++)if(e[n]!==t[n])return e[n]>t[n]?e:t;return e}function dx(e){return lx(e).children.reduce(((e,t)=>ux(fx(t),e)),[0,0,0])}function fx(e){let t=0,n=0,r=0;return e.children.forEach((e=>{switch(e.type){case`IdSelector`:t++;break;case`ClassSelector`:case`AttributeSelector`:n++;break;case`PseudoClassSelector`:switch(e.name.toLowerCase()){case`not`:case`has`:case`is`:case`matches`:case`-webkit-any`:case`-moz-any`:{let[i,a,o]=dx(e.children.first);t+=i,n+=a,r+=o;break}case`nth-child`:case`nth-last-child`:{let i=e.children.first;if(i.type===`Nth`&&i.selector){let[e,a,o]=dx(i.selector);t+=e,n+=a+1,r+=o}else n++;break}case`where`:break;case`before`:case`after`:case`first-line`:case`first-letter`:r++;break;default:n++}break;case`TypeSelector`:e.name.endsWith(`*`)||r++;break;case`PseudoElementSelector`:r++}})),[t,n,r]}const px=/* @__PURE__ */ new Set([`first-letter`,`first-line`,`after`,`before`]),mx=/* @__PURE__ */ new Set([`link`,`visited`,`hover`,`active`,`first-letter`,`first-line`,`after`,`before`]);function hx(e,t){let n=/* @__PURE__ */ new Set;e.prelude.children.forEach((function(e){let r=`*`,i=0;e.children.forEach((function(a){switch(a.type){case`ClassSelector`:if(t&&t.scopes){let n=t.scopes[a.name]||0;if(i!==0&&n!==i)throw Error(`Selector can't has classes from different scopes: `+rb(e));i=n}break;case`PseudoClassSelector`:{let e=a.name.toLowerCase();mx.has(e)||n.add(`:${e}`);break}case`PseudoElementSelector`:{let e=a.name.toLowerCase();px.has(e)||n.add(`::${e}`);break}case`TypeSelector`:r=a.name.toLowerCase();break;case`AttributeSelector`:a.flags&&n.add(`[${a.flags.toLowerCase()}]`);break;case`Combinator`:r=`*`}})),e.compareMarker=fx(e).toString(),e.id=null,e.id=rb(e),i&&(e.compareMarker+=`:`+i),r!==`*`&&(e.compareMarker+=`,`+r)})),e.pseudoSignature=n.size>0&&[...n].sort().join(`,`)}function gx(e,t){let n=cx();return Z(e,{visit:`Rule`,enter(e){e.block.children.forEach(n),hx(e,t.usage)}}),Z(e,{visit:`Atrule`,enter(e){e.prelude&&(e.prelude.id=null,e.prelude.id=rb(e.prelude)),Pp(e.name).basename===`keyframes`&&(e.block.avoidRulesMerge=!0,e.block.children.forEach((function(e){e.prelude.children.forEach((function(e){e.compareMarker=e.id}))})))}}),{declaration:n}}const{hasOwnProperty:_x}=Object.prototype;function vx(e,t,n,r){let i=t.data,a=Pp(i.name).basename,o=i.name.toLowerCase()+`/`+(i.prelude?i.prelude.id:null);_x.call(e,a)||(e[a]=Object.create(null)),r&&delete e[a][o],_x.call(e[a],o)||(e[a][o]=new G),e[a][o].append(n.remove(t))}function yx(e,t){let n=Object.create(null),r=null;e.children.forEach((function(e,i,a){if(e.type===`Atrule`){let o=Pp(e.name).basename;switch(o){case`keyframes`:vx(n,i,a,!0);return;case`media`:if(t.forceMediaMerge){vx(n,i,a,!1);return}}r===null&&o!==`charset`&&o!==`import`&&(r=i)}else r===null&&(r=i)}));for(let t in n)for(let i in n[t])e.children.insertList(n[t][i],t===`media`?null:r)}function bx(e){return e.type===`Atrule`&&e.name===`media`}function xx(e,t,n){if(!bx(e))return;let r=t.prev&&t.prev.data;r&&bx(r)&&e.prelude&&r.prelude&&e.prelude.id===r.prelude.id&&(r.block.children.appendList(e.block.children),n.remove(t))}function Sx(e,t){yx(e,t),Z(e,{visit:`Atrule`,reverse:!0,enter:xx})}const{hasOwnProperty:Cx}=Object.prototype;function wx(e,t){let n=e.head,r=t.head;for(;n!==null&&r!==null&&n.data.id===r.data.id;)n=n.next,r=r.next;return n===null&&r===null}function Tx(e,t){let n=e.head,r=t.head;for(;n!==null&&r!==null&&n.data.id===r.data.id;)n=n.next,r=r.next;return n===null&&r===null}function Ex(e,t){let n={eq:[],ne1:[],ne2:[],ne2overrided:[]},r=Object.create(null),i=Object.create(null);for(let e=t.head;e;e=e.next)i[e.data.id]=!0;for(let t=e.head;t;t=t.next){let e=t.data;e.fingerprint&&(r[e.fingerprint]=e.important),i[e.id]?(i[e.id]=!1,n.eq.push(e)):n.ne1.push(e)}for(let e=t.head;e;e=e.next){let t=e.data;i[t.id]&&((!Cx.call(r,t.fingerprint)||!r[t.fingerprint]&&t.important)&&n.ne2.push(t),n.ne2overrided.push(t))}return n}function Dx(e,t){return t.forEach((t=>{let n=t.id,r=e.head;for(;r;){let e=r.data.id;if(e===n)return;if(e>n)break;r=r.next}e.insert(e.createItem(t),r)})),e}function Ox(e,t){let n=e.head;for(;n!==null;){let e=t.head;for(;e!==null;){if(n.data.compareMarker===e.data.compareMarker)return!0;e=e.next}n=n.next}return!1}function kx(e){switch(e.type){case`Rule`:return Ox(e.prelude.children,this);case`Atrule`:if(e.block)return e.block.children.some(kx,this);break;case`Declaration`:return!1}return!0}function Ax(e,t,n){let r=e.prelude.children,i=e.block.children;n.prevUntil(t.prev,(function(a){if(a.type!==`Rule`)return kx.call(r,a);let o=a.prelude.children,s=a.block.children;if(e.pseudoSignature===a.pseudoSignature){if(wx(o,r))return s.appendList(i),n.remove(t),!0;if(Tx(i,s))return Dx(o,r),n.remove(t),!0}return Ox(r,o)}))}function jx(e){Z(e,{visit:`Rule`,enter:Ax})}function Mx(e,t,n){let r=e.prelude.children;for(;r.head!==r.tail;){let i=new G;i.insert(r.remove(r.head)),n.insert(n.createItem({type:`Rule`,loc:e.loc,prelude:{type:`SelectorList`,loc:e.prelude.loc,children:i},block:{type:`Block`,loc:e.block.loc,children:e.block.children.copy()},pseudoSignature:e.pseudoSignature}),t)}}function Nx(e){Z(e,{visit:`Rule`,reverse:!0,enter:Mx})}const Px=[`top`,`right`,`bottom`,`left`],Fx={"margin-top":`top`,"margin-right":`right`,"margin-bottom":`bottom`,"margin-left":`left`,"padding-top":`top`,"padding-right":`right`,"padding-bottom":`bottom`,"padding-left":`left`,"border-top-color":`top`,"border-right-color":`right`,"border-bottom-color":`bottom`,"border-left-color":`left`,"border-top-width":`top`,"border-right-width":`right`,"border-bottom-width":`bottom`,"border-left-width":`left`,"border-top-style":`top`,"border-right-style":`right`,"border-bottom-style":`bottom`,"border-left-style":`left`},Ix={margin:`margin`,"margin-top":`margin`,"margin-right":`margin`,"margin-bottom":`margin`,"margin-left":`margin`,padding:`padding`,"padding-top":`padding`,"padding-right":`padding`,"padding-bottom":`padding`,"padding-left":`padding`,"border-color":`border-color`,"border-top-color":`border-color`,"border-right-color":`border-color`,"border-bottom-color":`border-color`,"border-left-color":`border-color`,"border-width":`border-width`,"border-top-width":`border-width`,"border-right-width":`border-width`,"border-bottom-width":`border-width`,"border-left-width":`border-width`,"border-style":`border-style`,"border-top-style":`border-style`,"border-right-style":`border-style`,"border-bottom-style":`border-style`,"border-left-style":`border-style`};var Lx=class{constructor(e){this.name=e,this.loc=null,this.iehack=void 0,this.sides={top:null,right:null,bottom:null,left:null}}getValueSequence(e,t){let n=[],r=``;return e.value.type!==`Value`||e.value.children.some((function(t){let i=!1;switch(t.type){case`Identifier`:switch(t.name){case`\\0`:case`\\9`:r=t.name;return;case`inherit`:case`initial`:case`unset`:case`revert`:i=t.name}break;case`Dimension`:switch(t.unit){case`rem`:case`vw`:case`vh`:case`vmin`:case`vmax`:case`vm`:i=t.unit}break;case`Hash`:case`Number`:case`Percentage`:break;case`Function`:if(t.name===`var`)return!0;i=t.name;break;default:return!0}n.push({node:t,special:i,important:e.important})}))||n.length>t||typeof this.iehack==`string`&&this.iehack!==r?!1:(this.iehack=r,n)}canOverride(e,t){let n=this.sides[e];return!n||t.important&&!n.important}add(e,t){function n(){let n=this.sides,r=Fx[e];if(r){if(!(r in n))return!1;let e=this.getValueSequence(t,1);if(!e||!e.length)return!1;for(let t in n)if(n[t]!==null&&n[t].special!==e[0].special)return!1;return this.canOverride(r,e[0])&&(n[r]=e[0]),!0}if(e===this.name){let e=this.getValueSequence(t,4);if(!e||!e.length)return!1;switch(e.length){case 1:e[1]=e[0],e[2]=e[0],e[3]=e[0];break;case 2:e[2]=e[0],e[3]=e[1];break;case 3:e[3]=e[1]}for(let t=0;t<4;t++)for(let r in n)if(n[r]!==null&&n[r].special!==e[t].special)return!1;for(let t=0;t<4;t++)this.canOverride(Px[t],e[t])&&(n[Px[t]]=e[t]);return!0}}return n.call(this)?(this.loc||=t.loc,!0):!1}isOkToMinimize(){let e=this.sides.top,t=this.sides.right,n=this.sides.bottom,r=this.sides.left;if(e&&t&&n&&r){let i=e.important+t.important+n.important+r.important;return i===0||i===4}return!1}getValue(){let e=new G,t=this.sides,n=[t.top,t.right,t.bottom,t.left],r=[rb(t.top.node),rb(t.right.node),rb(t.bottom.node),rb(t.left.node)];r[3]===r[1]&&(n.pop(),r[2]===r[0]&&(n.pop(),r[1]===r[0]&&n.pop()));for(let t=0;t<n.length;t++)e.appendData(n[t].node);return this.iehack&&e.appendData({type:`Identifier`,loc:null,name:this.iehack}),{type:`Value`,loc:null,children:e}}getDeclaration(){return{type:`Declaration`,loc:this.loc,important:this.sides.top.important,property:this.name,value:this.getValue()}}};function Rx(e,t,n,r){let i=e.block.children,a=e.prelude.children.first.id;return e.block.children.forEachRight((function(e,o){let s=e.property;if(!Ix.hasOwnProperty(s))return;let c=Ix[s],l,u;(!r||a===r)&&c in t&&(u=2,l=t[c]),(!l||!l.add(s,e))&&(u=1,l=new Lx(c),!l.add(s,e))?r=null:(t[c]=l,n.push({operation:u,block:i,item:o,shorthand:l}),r=a)})),r}function zx(e,t){e.forEach((function(e){let n=e.shorthand;n.isOkToMinimize()&&(e.operation===1?e.item.data=t(n.getDeclaration()):e.block.remove(e.item))}))}function Bx(e,t){let n={},r=[];Z(e,{visit:`Rule`,reverse:!0,enter(e){let t=this.block||this.stylesheet,i=(e.pseudoSignature||``)+`|`+e.prelude.children.first.id,a,o;n.hasOwnProperty(t.id)?a=n[t.id]:(a={lastShortSelector:null},n[t.id]=a),a.hasOwnProperty(i)?o=a[i]:(o={},a[i]=o),a.lastShortSelector=Rx.call(this,e,o,r,a.lastShortSelector)}}),zx(r,t.declaration)}let Vx=1;const Hx=/* @__PURE__ */ new Set([`src`]),Ux={display:/table|ruby|flex|-(flex)?box$|grid|contents|run-in/i,"text-align":/^(start|end|match-parent|justify-all)$/i},Wx={cursor:[`auto`,`crosshair`,`default`,`move`,`text`,`wait`,`help`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`pointer`,`progress`,`not-allowed`,`no-drop`,`vertical-text`,`all-scroll`,`col-resize`,`row-resize`],overflow:[`hidden`,`visible`,`scroll`,`auto`],position:[`static`,`relative`,`absolute`,`fixed`]},Gx={"border-width":[`border`],"border-style":[`border`],"border-color":[`border`],"border-top":[`border`],"border-right":[`border`],"border-bottom":[`border`],"border-left":[`border`],"border-top-width":[`border-top`,`border-width`,`border`],"border-right-width":[`border-right`,`border-width`,`border`],"border-bottom-width":[`border-bottom`,`border-width`,`border`],"border-left-width":[`border-left`,`border-width`,`border`],"border-top-style":[`border-top`,`border-style`,`border`],"border-right-style":[`border-right`,`border-style`,`border`],"border-bottom-style":[`border-bottom`,`border-style`,`border`],"border-left-style":[`border-left`,`border-style`,`border`],"border-top-color":[`border-top`,`border-color`,`border`],"border-right-color":[`border-right`,`border-color`,`border`],"border-bottom-color":[`border-bottom`,`border-color`,`border`],"border-left-color":[`border-left`,`border-color`,`border`],"margin-top":[`margin`],"margin-right":[`margin`],"margin-bottom":[`margin`],"margin-left":[`margin`],"padding-top":[`padding`],"padding-right":[`padding`],"padding-bottom":[`padding`],"padding-left":[`padding`],"font-style":[`font`],"font-variant":[`font`],"font-weight":[`font`],"font-size":[`font`],"font-family":[`font`],"list-style-type":[`list-style`],"list-style-position":[`list-style`],"list-style-image":[`list-style`]};function Kx(e,t,n){let r=Fp(e).basename;if(r===`background`)return e+`:`+rb(t.value);let i=t.id,a=n[i];if(!a){switch(t.value.type){case`Value`:let e={},n=``,i=``,o=!1;t.value.children.forEach((function t(a){switch(a.type){case`Value`:case`Brackets`:case`Parentheses`:a.children.forEach(t);break;case`Raw`:o=!0;break;case`Identifier`:{let{name:t}=a;n||=Pp(t).vendor,/\\[09]/.test(t)&&(i=RegExp.lastMatch),Wx.hasOwnProperty(r)?Wx[r].indexOf(t)===-1&&(e[t]=!0):Ux.hasOwnProperty(r)&&Ux[r].test(t)&&(e[t]=!0);break}case`Function`:{let{name:r}=a;n||=Pp(r).vendor,r===`rect`&&(a.children.some((e=>e.type===`Operator`&&e.value===`,`))||(r=`rect-backward`)),e[r+`()`]=!0,a.children.forEach(t);break}case`Dimension`:{let{unit:t}=a;switch(/\\[09]/.test(t)&&(i=RegExp.lastMatch),t){case`rem`:case`vw`:case`vh`:case`vmin`:case`vmax`:case`vm`:e[t]=!0}break}}})),a=o?`!`+Vx++:`!`+Object.keys(e).sort()+`|`+i+n;break;case`Raw`:a=`!`+t.value.value;break;default:a=rb(t.value)}n[i]=a}return e+a}function qx(e,t,n){let r=Fp(t.property);if(Gx.hasOwnProperty(r.basename)){let i=Gx[r.basename];for(let a of i){let i=Kx(r.prefix+a,t,n),o=e.hasOwnProperty(i)?e[i]:null;if(o&&(!t.important||o.item.data.important))return o}}}function Jx(e,t,n,r,i){let a=e.block.children;a.forEachRight((function(e,t){let{property:n}=e,o=Kx(n,e,i),s=r[o];s&&!Hx.has(n)?e.important&&!s.item.data.important?(r[o]={block:a,item:t},s.block.remove(s.item)):a.remove(t):qx(r,e,i)?a.remove(t):(e.fingerprint=o,r[o]={block:a,item:t})})),a.isEmpty&&n.remove(t)}function Yx(e){let t={},n=Object.create(null);Z(e,{visit:`Rule`,reverse:!0,enter(e,r,i){let a=this.block||this.stylesheet,o=(e.pseudoSignature||``)+`|`+e.prelude.children.first.id,s,c;t.hasOwnProperty(a.id)?s=t[a.id]:(s={},t[a.id]=s),s.hasOwnProperty(o)?c=s[o]:(c={},s[o]=c),Jx.call(this,e,r,i,c,n)}})}function Xx(e,t,n){let r=e.prelude.children,i=e.block.children,a=r.first.compareMarker,o={};n.nextUntil(t.next,(function(t,s){if(t.type!==`Rule`)return kx.call(r,t);if(e.pseudoSignature!==t.pseudoSignature)return!0;let c=t.prelude.children.head,l=t.block.children,u=c.data.compareMarker;if(u in o)return!0;if(r.head===r.tail&&r.first.id===c.data.id)i.appendList(l),n.remove(s);else if(Tx(i,l)){let e=c.data.id;r.some(((t,n)=>{let i=t.id;if(e<i)return r.insert(c,n),!0;if(!n.next)return r.insert(c),!0})),n.remove(s)}else{if(u===a)return!0;o[u]=!0}}))}function Zx(e){Z(e,{visit:`Rule`,enter:Xx})}function Qx(e){return e.reduce(((e,t)=>e+t.id.length+1),0)-1}function $x(e){let t=0;for(let n of e)t+=n.length;return t+e.length-1}function eS(e,t,n){let r=this.block!==null&&this.block.avoidRulesMerge,i=e.prelude.children,a=e.block,o=Object.create(null),s=!0,c=!0;n.prevUntil(t.prev,(function(l,u){let d=l.block,f=l.type;if(f!==`Rule`){let e=kx.call(i,l);return!e&&f===`Atrule`&&d&&Z(d,{visit:`Rule`,enter(e){e.prelude.children.forEach((e=>{o[e.compareMarker]=!0}))}}),e}if(e.pseudoSignature!==l.pseudoSignature)return!0;let p=l.prelude.children;if(c=!p.some((e=>e.compareMarker in o)),!c&&!s)return!0;if(s&&wx(p,i))return d.children.appendList(a.children),n.remove(t),!0;let m=Ex(a.children,d.children);if(m.eq.length){if(!m.ne1.length&&!m.ne2.length)return c&&(Dx(i,p),n.remove(u)),!0;if(!r){if(m.ne1.length&&!m.ne2.length){let e=Qx(i),t=$x(m.eq);s&&e<t&&(Dx(p,i),a.children.fromArray(m.ne1))}else if(!m.ne1.length&&m.ne2.length){let e=Qx(p),t=$x(m.eq);c&&e<t&&(Dx(i,p),d.children.fromArray(m.ne2))}else{let r={type:`SelectorList`,loc:null,children:Dx(p.copy(),i)},o=Qx(r.children)+2;if($x(m.eq)>=o){let i=n.createItem({type:`Rule`,loc:null,prelude:r,block:{type:`Block`,loc:null,children:new G().fromArray(m.eq)},pseudoSignature:e.pseudoSignature});return a.children.fromArray(m.ne1),d.children.fromArray(m.ne2overrided),s?n.insert(i,u):n.insert(i,t),!0}}}}s&&=!p.some((e=>i.some((t=>t.compareMarker===e.compareMarker)))),p.forEach((e=>{o[e.compareMarker]=!0}))}))}function tS(e){Z(e,{visit:`Rule`,reverse:!0,enter:eS})}function nS(e,t){let n=gx(e,t);t.logger(`prepare`,e),Sx(e,t),t.logger(`mergeAtrule`,e),jx(e),t.logger(`initialMergeRuleset`,e),Nx(e),t.logger(`disjoinRuleset`,e),Bx(e,n),t.logger(`restructShorthand`,e),Yx(e),t.logger(`restructBlock`,e),Zx(e),t.logger(`mergeRuleset`,e),tS(e),t.logger(`restructRuleset`,e)}function rS(e,t){let n=new G,r=!1,i;return e.nextUntil(e.head,((e,a,o)=>{if(e.type===`Comment`){if(!t||e.value.charAt(0)!==`!`){o.remove(a);return}if(r||i)return!0;o.remove(a),i=e}else e.type!==`WhiteSpace`&&(r=!0),n.insert(o.remove(a))})),{comment:i,stylesheet:{type:`StyleSheet`,loc:null,children:n}}}function iS(e,t,n,r){r.logger(`Compress block #${n}`,null,!0);let i=1;return e.type===`StyleSheet`&&(e.firstAtrulesAllowed=t,e.id=i++),Z(e,{visit:`Atrule`,enter(e){e.block!==null&&(e.block.id=i++)}}),r.logger(`init`,e),kb(e,r),r.logger(`clean`,e),ox(e),r.logger(`replace`,e),r.restructuring&&nS(e,r),e}function aS(e){let t=`comments`in e?e.comments:`exclamation`;return typeof t==`boolean`?t=!!t&&`exclamation`:t!==`exclamation`&&t!==`first-exclamation`&&(t=!1),t}function oS(e){return`restructure`in e?e.restructure:!(`restructuring`in e)||e.restructuring}function sS(e){return new G().appendData({type:`Rule`,loc:null,prelude:{type:`SelectorList`,loc:null,children:new G().appendData({type:`Selector`,loc:null,children:new G().appendData({type:`TypeSelector`,loc:null,name:`x`})})},block:e})}function cS(e,t){e||={type:`StyleSheet`,loc:null,children:new G},t||={};let n={logger:typeof t.logger==`function`?t.logger:function(){},restructuring:oS(t),forceMediaMerge:!!t.forceMediaMerge,usage:!!t.usage&&hb(t.usage)},r=new G,i=aS(t),a=!0,o,s,c=1,l;t.clone&&(e=eb(e)),e.type===`StyleSheet`?(o=e.children,e.children=r):o=sS(e);do{if(s=rS(o,!!i),iS(s.stylesheet,a,c++,n),l=s.stylesheet.children,s.comment&&(r.isEmpty||r.insert(G.createItem({type:`Raw`,value:`
24
+ `})),r.insert(G.createItem(s.comment)),l.isEmpty||r.insert(G.createItem({type:`Raw`,value:`
25
+ `}))),a&&!l.isEmpty){let e=l.last;(e.type!==`Atrule`||e.name!==`import`&&e.name!==`charset`)&&(a=!1)}i!==`exclamation`&&(i=!1),r.appendList(l)}while(!o.isEmpty);return{ast:e}}function lS(e){let t=Wv(e,!0),n=Wv(e);return t.length<n.length?t:n}const{lexer:uS,tokenize:dS,parse:fS,generate:pS,walk:mS,find:hS,findLast:gS,findAll:_S,fromPlainObject:vS,toPlainObject:yS}=db({node:{String:{generate(e){this.token(5,lS(e.value))}},Url:{generate(e){let t=my(e.value),n=lS(e.value);this.token(7,t.length<=n.length+5?t:`url(`+n+`)`)}}}}),{parse:bS,generate:xS,compress:SS}=Object.freeze({__proto__:null,compress:cS,find:hS,findAll:_S,findLast:gS,fromPlainObject:vS,generate:pS,lexer:uS,parse:fS,specificity:fx,toPlainObject:yS,tokenize:dS,walk:mS});function CS(e,t,n,r){return t.debug&&console.error(`## ${e} done in %d ms\n`,Date.now()-n),r}function wS(e){let t;return function(n,r){let i=n;if(r&&(i=`[${((Date.now()-t)/1e3).toFixed(3)}s] ${i}`),e>1&&r){let t=xS(r);e===2&&t.length>256&&(t=t.substr(0,256)+`...`),i+=`\n ${t}\n`}console.error(i),t=Date.now()}}function TS(e){return e={...e},typeof e.logger!=`function`&&e.debug&&(e.logger=wS(e.debug)),e}function ES(e,t,n){Array.isArray(n)||(n=[n]),n.forEach((n=>n(e,t)))}function DS(e,t,n){n||={};let r=n.filename||`<unknown>`,i,a=CS(`parsing`,n,Date.now(),bS(t,{context:e,filename:r,positions:!!n.sourceMap}));n.beforeCompress&&CS(`beforeCompress`,n,Date.now(),ES(a,n,n.beforeCompress));let o=CS(`compress`,n,Date.now(),SS(a,TS(n)));return n.afterCompress&&CS(`afterCompress`,n,Date.now(),ES(o,n,n.afterCompress)),i=n.sourceMap?CS(`generate(sourceMap: true)`,n,Date.now(),(()=>{let e=xS(o.ast,{sourceMap:!0});return e.map._file=r,e.map.setSourceContent(r,t),e})()):CS(`generate`,n,Date.now(),{css:xS(o.ast),map:null}),i}function OS(e,t){return DS(`stylesheet`,e,t)}function kS(e,t){return DS(`declarationList`,e,t)}const AS=H.skip,jS=(e,t)=>{let n=[];e.block.children.forEach((e=>{e.type===`Declaration`&&n.push({name:e.property,value:V(e.value),important:e.important===!0})}));let r=[];return H(e.prelude,(e=>{if(e.type===`Selector`){let i=Yd(e),a=!1;H(i,((e,t,n)=>{e.type===`PseudoClassSelector`&&(a=!0,n.remove(t))})),r.push({specificity:fx(e),dynamic:a||t,selector:V(i),declarations:n})}})),r},MS=(e,t)=>{let n=[],r=Zd(e,{parseValue:!1,parseAtrulePrelude:!1});return H(r,(e=>{if(e.type===`Rule`)return n.push(...jS(e,t||!1)),AS;if(e.type===`Atrule`)return[`keyframes`,`-webkit-keyframes`,`-o-keyframes`,`-moz-keyframes`].includes(e.name)||H(e,(e=>{if(e.type===`Rule`)return n.push(...jS(e,t||!0)),AS})),AS})),n},NS=e=>{let t=[],n=Zd(e,{context:`declarationList`,parseValue:!1});return H(n,(e=>{e.type===`Declaration`&&t.push({name:e.property,value:V(e.value),important:e.important===!0})})),t},PS=(e,t,n)=>{let r={},i=/* @__PURE__ */ new Map;for(let[e,n]of Object.entries(t.attributes))j.presentation.has(e)&&(r[e]={type:`static`,inherited:!1,value:n},i.set(e,!1));for(let{selector:a,declarations:o,dynamic:s}of e.rules)if(Nn(t,a,n))for(let{name:e,value:t,important:n}of o){let a=r[e];a&&a.type===`dynamic`||(s?r[e]={type:`dynamic`,inherited:!1}:(a==null||n===!0||i.get(e)===!1)&&(r[e]={type:`static`,inherited:!1,value:t},i.set(e,n)))}let a=t.attributes.style==null?[]:NS(t.attributes.style);for(let{name:e,value:t,important:n}of a){let a=r[e];a&&a.type===`dynamic`||(a==null||n===!0||i.get(e)===!1)&&(r[e]={type:`static`,inherited:!1,value:t},i.set(e,n))}return r},FS=(e,t)=>{for(let n=0;n<4;n+=1){if(e[n]<t[n])return-1;if(e[n]>t[n])return 1}return 0},IS=e=>{let n=[],r=/* @__PURE__ */ new Map;return t(e,{element:{enter:(e,t)=>{if(r.set(e,t),e.name===`style`&&(e.attributes.type==null||e.attributes.type===``||e.attributes.type===`text/css`)){let t=e.attributes.media!=null&&e.attributes.media!==`all`;for(let r of e.children)r.type!==`text`&&r.type!==`cdata`||n.push(...MS(r.value,t))}}}}),n.sort(((e,t)=>FS(e.specificity,t.specificity))),{rules:n,parents:r}},LS=(e,t)=>{let{parents:n}=e,r=PS(e,t,n),i=n.get(t);for(;i!=null&&i.type!==`root`;){let t=PS(e,i,n);for(let[e,n]of Object.entries(t))r[e]==null&&Kn.has(e)&&!qn.has(e)&&(r[e]={...n,inherited:!0});i=n.get(i)}return r},RS=(e,t,n=null,r=!1)=>{let i=St(typeof e==`string`?e:V(e.data));for(let e of i)if(e.some(((i,a)=>r&&(a===e.length-1||!gt(e[a+1]))||i.type!==`attribute`||i.name!==t?!1:n==null||i.value===n)))return!0;return!1};function zS(e){let t=/* @__PURE__ */ new Set;return e.rules.forEach((e=>{St(e.selector).forEach((e=>{e.forEach((e=>{e.type===`attribute`&&t.add(e.name)}))}))})),t}function BS(e,t,n,r){t&&(t.safe&&t.safe.forEach((t=>{r.has(t)||delete e.attributes[t]})),n.removeUnsafe&&t.unsafe&&t.unsafe.forEach((t=>{r.has(t)||delete e.attributes[t]})))}function VS(e,t){let n=zS(IS(e));return{element:{enter:e=>{let r=Un[e.name];r&&(r.attrsGroups.has(`core`)&&e.attributes[`xml:lang`]&&!n.has(`xml:lang`)&&e.attributes.lang&&delete e.attributes[`xml:lang`],r.attrsGroups.forEach((r=>{BS(e,Hn[r],t,n)})),BS(e,r.deprecated,t,n))}}}}var HS=Object.freeze({__proto__:null,description:`removes deprecated attributes`,fn:VS,name:`removeDeprecatedAttrs`}),US=Object.freeze({__proto__:null,description:`removes <metadata>`,fn:()=>({element:{enter:(e,t)=>{e.name===`metadata`&&A(e,t)}}}),name:`removeMetadata`}),WS=Object.freeze({__proto__:null,description:`removes editors namespaces, elements and attributes`,fn:(e,t)=>{let n=[...Wn];Array.isArray(t.additionalNamespaces)&&(n=[...Wn,...t.additionalNamespaces]);let r=[];return{element:{enter:(e,t)=>{if(e.name===`svg`)for(let[t,i]of Object.entries(e.attributes))t.startsWith(`xmlns:`)&&n.includes(i)&&(r.push(t.slice(6)),delete e.attributes[t]);for(let t of Object.keys(e.attributes))if(t.includes(`:`)){let[n]=t.split(`:`);r.includes(n)&&delete e.attributes[t]}if(e.name.includes(`:`)){let[n]=e.name.split(`:`);r.includes(n)&&A(e,t)}}}}},name:`removeEditorsNSData`});const GS=/(\S)\r?\n(\S)/g,KS=/\r?\n/g,qS=/\s{2,}/g;var JS=Object.freeze({__proto__:null,description:`cleanups attributes from newlines, trailing and repeating spaces`,fn:(e,t)=>{let{newlines:n=!0,trim:r=!0,spaces:i=!0}=t;return{element:{enter:e=>{for(let t of Object.keys(e.attributes))n&&(e.attributes[t]=e.attributes[t].replace(GS,((e,t,n)=>t+` `+n)),e.attributes[t]=e.attributes[t].replace(KS,``)),r&&(e.attributes[t]=e.attributes[t].trim()),i&&(e.attributes[t]=e.attributes[t].replace(qS,` `))}}}},name:`cleanupAttrs`}),YS=Object.freeze({__proto__:null,description:`merge multiple style elements into one`,fn:()=>{let t=null,n=``,r=`text`;return{element:{enter:(i,a)=>{if(i.name===`foreignObject`)return e;if(i.name!==`style`||i.attributes.type!=null&&i.attributes.type!==``&&i.attributes.type!==`text/css`)return;let o=``;for(let e of i.children)e.type===`text`&&(o+=e.value),e.type===`cdata`&&(r=`cdata`,o+=e.value);o.trim().length===0?A(i,a):(i.attributes.media==null?n+=o:(n+=`@media ${i.attributes.media}{${o}}`,delete i.attributes.media),t==null?t=i:(A(i,a),t.children=[{type:r,value:n}]))}}}},name:`mergeStyles`});const XS=[...Zn.functional,...Zn.treeStructural];var ZS=Object.freeze({__proto__:null,description:`inline styles (additional options)`,fn:(t,n)=>{let{onlyMatchedOnce:r=!0,removeMatchedSelectors:i=!0,useMqs:a=[``,`screen`],usePseudos:o=[``]}=n,s=[],c=[];return{element:{enter:(t,n)=>{if(t.name===`foreignObject`)return e;if(t.name!==`style`||t.children.length===0||t.attributes.type!=null&&t.attributes.type!==``&&t.attributes.type!==`text/css`)return;let r=t.children.filter((e=>e.type===`text`||e.type===`cdata`)).map((e=>e.value)).join(``),i=null;try{i=Zd(r,{parseValue:!1,parseCustomProperty:!1})}catch{return}i.type===`StyleSheet`&&s.push({node:t,parentNode:n,cssAst:i}),H(i,{visit:`Rule`,enter(e){let t=this.atrule,n=``;t!=null&&(n=t.name,t.prelude!=null&&(n+=` ${V(t.prelude)}`)),a.includes(n)&&e.prelude.type===`SelectorList`&&e.prelude.children.forEach(((t,n)=>{if(t.type===`Selector`){let r=[];t.children.forEach(((e,t,n)=>{e.type!==`PseudoClassSelector`&&e.type!==`PseudoElementSelector`||XS.includes(e.name)||r.push({item:t,list:n})}));let i=V({type:`Selector`,children:new Pr().fromArray(r.map((e=>e.item.data)))});if(o.includes(i))for(let e of r)e.list.remove(e.item);c.push({node:t,rule:e,item:n})}}))}})}},root:{exit:()=>{if(s.length===0)return;let e=c.slice().sort(((e,t)=>{let n=fx(e.item.data),r=fx(t.item.data);return FS(n,r)})).reverse();for(let n of e){let e=V(n.item.data),a=[];try{for(let n of jn(t,e))n.type===`element`&&a.push(n)}catch{continue}if(a.length!==0&&!(r&&a.length>1)){for(let e of a){let t=Zd(e.attributes.style??``,{context:`declarationList`,parseValue:!1});if(t.type!==`DeclarationList`)continue;let r=/* @__PURE__ */ new Map,i;H(t,{visit:`Declaration`,enter(e,t){i??=t,r.set(e.property.toLowerCase(),t)}}),H(n.rule,{visit:`Declaration`,enter(n){let a=n.property;j.presentation.has(a)&&!c.some((e=>RS(e.item,a)))&&delete e.attributes[a];let o=r.get(a),s=t.children.createItem(n);o==null?t.children.insert(s,i):o.data.important!==!0&&n.important===!0&&(t.children.replace(o,s),r.set(a,s))}});let a=V(t);a.length!==0&&(e.attributes.style=a)}i&&a.length!==0&&n.rule.prelude.type===`SelectorList`&&n.rule.prelude.children.remove(n.item),n.matchedElements=a}}if(i){for(let t of e)if(t.matchedElements!=null&&!(r&&t.matchedElements.length>1))for(let e of t.matchedElements){let n=new Set(e.attributes.class==null?null:e.attributes.class.split(` `));for(let e of t.node.children)e.type!==`ClassSelector`||c.some((t=>RS(t.item,`class`,e.name,!0)))||n.delete(e.name);n.size===0?delete e.attributes.class:e.attributes.class=Array.from(n).join(` `);let r=t.node.children.first;r?.type!==`IdSelector`||e.attributes.id!==r.name||c.some((e=>RS(e.item,`id`,r.name,!0)))||delete e.attributes.id}for(let e of s)if(H(e.cssAst,{visit:`Rule`,enter:function(e,t,n){e.type===`Rule`&&e.prelude.type===`SelectorList`&&e.prelude.children.isEmpty&&n.remove(t)}}),e.cssAst.children.isEmpty)A(e.node,e.parentNode);else{let t=e.node.children[0];t.type!==`text`&&t.type!==`cdata`||(t.value=V(e.cssAst))}}}}}},name:`inlineStyles`});const QS=/\burl\((["'])?#(.+?)\1\)/g,$S=/^#(.+?)$/,eC=/(\w+)\.[a-zA-Z]/,tC=(e,t)=>{let n=`data:image/svg+xml`;return t&&t!==`base64`?t===`enc`?e=n+`,`+encodeURIComponent(e):t===`unenc`&&(e=n+`,`+e):(n+=`;base64,`,e=n+Buffer.from(e).toString(`base64`)),e},nC=(e,t,n)=>{let r=``,i,a;return e.forEach(((e,n)=>{i=` `,n==0&&(i=``),t.noSpaceAfterFlags;let o=t.leadingZero?rC(e):e.toString();t.negativeExtraSpace&&i!=``&&(e<0||o.charAt(0)===`.`&&a%1!=0)&&(i=``),a=e,r+=i+o})),r},rC=e=>{let t=e.toString();return 0<e&&e<1&&t.startsWith(`0`)?t.slice(1):-1<e&&e<0&&t[1]===`0`?t[0]+t.slice(2):t},iC=[...j.animationEvent,...j.documentEvent,...j.documentElementEvent,...j.globalEvent,...j.graphicalEvent],aC=e=>e.name===`script`&&e.children.length!==0||e.name===`a`&&Object.entries(e.attributes).some((([e,t])=>(e===`href`||e.endsWith(`:href`))&&t!=null&&t.trimStart().startsWith(`javascript:`)))?!0:iC.some((t=>e.attributes[t]!=null)),oC=e=>new RegExp(QS).test(e),sC=(e,t)=>{let n=[];if(Gn.has(e)){let e=t.matchAll(QS);for(let t of e)n.push(t[2])}if(e===`href`||e.endsWith(`:href`)){let e=$S.exec(t);e!=null&&n.push(e[1])}if(e===`begin`){let e=eC.exec(t);e!=null&&n.push(e[1])}return n.map((e=>decodeURI(e)))},cC=(e,t)=>{let n=10**t;return Math.round(e*n)/n};var lC=Object.freeze({__proto__:null,description:`minifies styles and removes unused styles`,fn:(e,{usage:t,...n})=>{let r=/* @__PURE__ */ new Map,i=[],a=/* @__PURE__ */ new Set,o=/* @__PURE__ */ new Set,s=/* @__PURE__ */ new Set,c=!0,l=!0,u=!0,d=!1;typeof t==`boolean`?(c=t,l=t,u=t):t&&(c=t.tags==null||t.tags,l=t.ids==null||t.ids,u=t.classes==null||t.classes,d=t.force!=null&&t.force);let f=!1;return{element:{enter:(e,t)=>{if(aC(e)&&(f=!0),a.add(e.name),e.attributes.id!=null&&o.add(e.attributes.id),e.attributes.class!=null)for(let t of e.attributes.class.split(/\s+/))s.add(t);e.name===`style`&&e.children.length!==0?r.set(e,t):e.attributes.style!=null&&i.push(e)}},root:{exit:()=>{let e={};(!f||d)&&(c&&(e.tags=Array.from(a)),l&&(e.ids=Array.from(o)),u&&(e.classes=Array.from(s)));for(let[t,i]of r.entries())if(t.children[0].type===`text`||t.children[0].type===`cdata`){let r=t.children[0].value,a=OS(r,{...n,usage:e}).css;if(a.length===0){A(t,i);continue}r.indexOf(`>`)>=0||r.indexOf(`<`)>=0?(t.children[0].type=`cdata`,t.children[0].value=a):(t.children[0].type=`text`,t.children[0].value=a)}for(let e of i){let t=e.attributes.style;e.attributes.style=kS(t,{...n}).css}}}}},name:`minifyStyles`});const uC=/* @__PURE__ */ `abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`.split(``),dC=uC.length-1,fC=(e,t)=>{for(let n of t)if(e.startsWith(n))return!0;return!1},pC=e=>{if(e==null)return[0];e[e.length-1]+=1;for(let t=e.length-1;t>0;t--)e[t]>dC&&(e[t]=0,e[t-1]!==void 0&&e[t-1]++);return e[0]>dC&&(e[0]=0,e.unshift(0)),e},mC=e=>e.map((e=>uC[e])).join(``);var hC=Object.freeze({__proto__:null,description:`removes unused IDs and minifies used`,fn:(t,n)=>{let{remove:r=!0,minify:i=!0,preserve:a=[],preservePrefixes:o=[],force:s=!1}=n,c=new Set(Array.isArray(a)?a:a?[a]:[]),l=Array.isArray(o)?o:o?[o]:[],u=/* @__PURE__ */ new Map,d=/* @__PURE__ */ new Map,f=!1;return{element:{enter:t=>{if(!s){if(t.name===`style`&&t.children.length!==0||aC(t)){f=!0;return}if(t.name===`svg`){let n=!0;for(let e of t.children)if(e.type!==`element`||e.name!==`defs`){n=!1;break}if(n)return e}}for(let[e,n]of Object.entries(t.attributes))if(e===`id`){let e=n;u.has(e)?delete t.attributes.id:u.set(e,t)}else{let r=sC(e,n);for(let n of r){let r=d.get(n);r??(r=[],d.set(n,r)),r.push({element:t,name:e})}}}},root:{exit:()=>{if(f)return;let e=e=>c.has(e)||fC(e,l),t=null;for(let[n,r]of d){let a=u.get(n);if(a!=null){if(i&&e(n)===!1){let i;do t=pC(t),i=mC(t);while(e(i)||d.has(i)&&u.get(i)==null);a.attributes.id=i;for(let{element:e,name:t}of r){let r=e.attributes[t];r.includes(`#`)?e.attributes[t]=r.replace(`#${encodeURI(n)}`,`#${i}`).replace(`#${n}`,`#${i}`):e.attributes[t]=r.replace(`${n}.`,`${i}.`)}}u.delete(n)}}if(r)for(let[t,n]of u)e(t)===!1&&delete n.attributes.id}}}},name:`cleanupIds`});const gC=()=>({element:{enter:(e,t)=>{if(e.name===`defs`||Rn.nonRendering.has(e.name)&&e.attributes.id==null){let n=[];_C(e,n),n.length===0&&A(e,t),e.children=n}}}}),_C=(e,t)=>{for(let n of e.children)n.type===`element`&&(n.attributes.id!=null||n.name===`style`?t.push(n):_C(n,t))};var vC=Object.freeze({__proto__:null,description:`removes elements in <defs> without id`,fn:gC,name:`removeUselessDefs`});const yC=/^([-+]?\d*\.?\d+([eE][-+]?\d+)?)(px|pt|pc|mm|cm|m|in|ft|em|ex|%)?$/,bC={cm:96/2.54,mm:96/25.4,in:96,pt:4/3,pc:16,px:1};var xC=Object.freeze({__proto__:null,description:`rounds numeric values to the fixed precision, removes default "px" units`,fn:(e,t)=>{let{floatPrecision:n=3,leadingZero:r=!0,defaultPx:i=!0,convertToPx:a=!0}=t;return{element:{enter:e=>{if(e.attributes.viewBox!=null){let t=e.attributes.viewBox.trim().split(/(?:\s,?|,)\s*/g);e.attributes.viewBox=t.map((e=>{let t=Number(e);return Number.isNaN(t)?e:Number(t.toFixed(n))})).join(` `)}for(let[t,o]of Object.entries(e.attributes)){if(t===`version`)continue;let s=yC.exec(o);if(s){let o=Number(Number(s[1]).toFixed(n)),c=s[3]||``;if(a&&c!==``&&c in bC){let e=Number((bC[c]*Number(s[1])).toFixed(n));e.toString().length<s[0].length&&(o=e,c=`px`)}let l;l=r?rC(o):o.toString(),i&&c===`px`&&(c=``),e.attributes[t]=l+c}}}}}},name:`cleanupNumericValues`});const SC=`([+-]?(?:\\d*\\.\\d+|\\d+\\.?)%?)`,CC=`(?:\\s*,\\s*|\\s+)`,wC=RegExp(`^rgb\\(\\s*`+SC+CC+SC+CC+SC+`\\s*\\)$`),TC=/^#(([a-fA-F0-9])\2){3}$/,EC=([e,t,n])=>`#`+((256+e<<8|t)<<8|n).toString(16).slice(1).toUpperCase();var DC=Object.freeze({__proto__:null,description:`converts colors: rgb() to #rrggbb and #rrggbb to #rgb`,fn:(e,t)=>{let{currentColor:n=!1,names2hex:r=!0,rgb2hex:i=!0,convertCase:a=`lower`,shorthex:o=!0,shortname:s=!0}=t,c=0;return{element:{enter:e=>{e.name===`mask`&&c++;for(let[t,l]of Object.entries(e.attributes))if(Xn.has(t)){let u=l;if(n&&c===0){let e;e=typeof n==`string`?u===n:n instanceof RegExp?n.exec(u)!=null:u!==`none`,e&&(u=`currentColor`)}if(r){let e=u.toLowerCase();Jn[e]!=null&&(u=Jn[e])}if(i){let e=u.match(wC);if(e!=null){let t=e.slice(1,4).map((e=>{let t;return t=e.indexOf(`%`)>-1?Math.round(parseFloat(e)*2.55):Number(e),Math.max(0,Math.min(t,255))}));u=EC(t)}}if(a&&!oC(u)&&u!==`currentColor`&&(a===`lower`?u=u.toLowerCase():a===`upper`&&(u=u.toUpperCase())),o){let e=TC.exec(u);e!=null&&(u=`#`+e[0][1]+e[0][3]+e[0][5])}if(s){let e=u.toLowerCase();Yn[e]!=null&&(u=Yn[e])}e.attributes[t]=u}},exit:e=>{e.name===`mask`&&c--}}}},name:`convertColors`});const OC=/* @__PURE__ */ new Map,kC=/* @__PURE__ */ new Map,AC=/* @__PURE__ */ new Map;for(let[e,t]of Object.entries(Un)){let n=/* @__PURE__ */ new Set;if(t.content)for(let e of t.content)n.add(e);if(t.contentGroups)for(let e of t.contentGroups){let t=Rn[e];if(t)for(let e of t)n.add(e)}let r=/* @__PURE__ */ new Set;if(t.attrs)for(let e of t.attrs)r.add(e);let i=/* @__PURE__ */ new Map;if(t.defaults)for(let[e,n]of Object.entries(t.defaults))i.set(e,n);for(let e of t.attrsGroups){let t=j[e];if(t)for(let e of t)r.add(e);let n=Vn[e];if(n)for(let[e,t]of Object.entries(n))i.set(e,t)}OC.set(e,n),kC.set(e,r),AC.set(e,i)}var jC=Object.freeze({__proto__:null,description:`removes unknown elements content and attributes, removes attrs with default values`,fn:(t,n)=>{let{unknownContent:r=!0,unknownAttrs:i=!0,defaultAttrs:a=!0,defaultMarkupDeclarations:o=!0,uselessOverrides:s=!0,keepDataAttrs:c=!0,keepAriaAttrs:l=!0,keepRoleAttr:u=!1}=n,d=IS(t);return{instruction:{enter:e=>{o&&(e.value=e.value.replace(/\s*standalone\s*=\s*(["'])no\1/,``))}},element:{enter:(t,n)=>{if(t.name.includes(`:`))return;if(t.name===`foreignObject`)return e;if(r&&n.type===`element`){let e=OC.get(n.name);if(e==null||e.size===0){if(OC.get(t.name)==null){A(t,n);return}}else if(e.has(t.name)===!1){A(t,n);return}}let o=kC.get(t.name),f=AC.get(t.name),p=n.type===`element`?LS(d,n):null;for(let[e,n]of Object.entries(t.attributes))if(!(c&&e.startsWith(`data-`))&&!(l&&e.startsWith(`aria-`))&&!(u&&e===`role`)&&e!==`xmlns`){if(e.includes(`:`)){let[t]=e.split(`:`);if(t!==`xml`&&t!==`xlink`)continue}if(i&&o&&o.has(e)===!1&&delete t.attributes[e],a&&t.attributes.id==null&&f&&f.get(e)===n&&(p?.[e]!=null||d.rules.some((t=>RS(t.selector,e)))||delete t.attributes[e]),s&&t.attributes.id==null){let r=p?.[e];qn.has(e)===!1&&r!=null&&r.type===`static`&&r.value===n&&delete t.attributes[e]}}}}}},name:`removeUnknownsAndDefaults`}),MC=Object.freeze({__proto__:null,description:`removes non-inheritable group's presentational attributes`,fn:()=>({element:{enter:e=>{if(e.name===`g`)for(let t of Object.keys(e.attributes))!j.presentation.has(t)||Kn.has(t)||qn.has(t)||delete e.attributes[t]}}}),name:`removeNonInheritableGroupAttrs`}),NC=Object.freeze({__proto__:null,description:`removes useless stroke and fill attributes`,fn:(n,r)=>{let{stroke:i=!0,fill:a=!0,removeNone:o=!1}=r,s=!1;if(t(n,{element:{enter:e=>{(e.name===`style`||aC(e))&&(s=!0)}}}),s)return null;let c=IS(n);return{element:{enter:(t,n)=>{if(t.attributes.id!=null)return e;if(!Rn.shape.has(t.name))return;let r=LS(c,t),s=r.stroke,l=r[`stroke-opacity`],u=r[`stroke-width`],d=r[`marker-end`],f=r.fill,p=r[`fill-opacity`],m=n.type===`element`?LS(c,n):null,h=m==null?null:m.stroke;if(i&&(s==null||s.type===`static`&&s.value==`none`||l!=null&&l.type===`static`&&l.value===`0`||u!=null&&u.type===`static`&&u.value===`0`)&&(u!=null&&u.type===`static`&&u.value===`0`||d==null)){for(let e of Object.keys(t.attributes))e.startsWith(`stroke`)&&delete t.attributes[e];h!=null&&h.type===`static`&&h.value!==`none`&&(t.attributes.stroke=`none`)}if(a&&(f!=null&&f.type===`static`&&f.value===`none`||p!=null&&p.type===`static`&&p.value===`0`)){for(let e of Object.keys(t.attributes))e.startsWith(`fill-`)&&delete t.attributes[e];(f==null||f.type===`static`&&f.value!==`none`)&&(t.attributes.fill=`none`)}o&&(s!=null&&t.attributes.stroke!==`none`||(f==null||f.type!==`static`||f.value!==`none`)&&t.attributes.fill!==`none`||A(t,n))}}}},name:`removeUselessStrokeAndFill`});const PC=/^new\s0\s0\s([-+]?\d*\.?\d+([eE][-+]?\d+)?)\s([-+]?\d*\.?\d+([eE][-+]?\d+)?)$/,FC=e=>{let n=!1;return t(e,{element:{enter:e=>{e.name===`filter`&&(n=!0)}}}),{element:{enter:e=>{let t=null,r=null;if(e.attributes.style!=null&&(t=Zd(e.attributes.style,{context:`declarationList`}),t.type===`DeclarationList`)){let e=[];H(t,((t,n)=>{t.type===`Declaration`&&t.property===`enable-background`&&(e.push(n),r=n)}));for(let n=0;n<e.length-1;n++)t.children.remove(e[n])}if(!n){delete e.attributes[`enable-background`],t?.type===`DeclarationList`&&(r&&t.children.remove(r),t.children.isEmpty?delete e.attributes.style:e.attributes.style=V(t));return}let i=e.attributes.width!=null&&e.attributes.height!=null;if((e.name===`svg`||e.name===`mask`||e.name===`pattern`)&&i){let n=e.attributes[`enable-background`],i=IC(n,e.name,e.attributes.width,e.attributes.height);if(i?e.attributes[`enable-background`]=i:delete e.attributes[`enable-background`],t?.type===`DeclarationList`&&r){let n=V(r.data.value),i=IC(n,e.name,e.attributes.width,e.attributes.height);i?r.data.value={type:`Raw`,value:i}:t.children.remove(r)}}t?.type===`DeclarationList`&&(t.children.isEmpty?delete e.attributes.style:e.attributes.style=V(t))}}}},IC=(e,t,n,r)=>{let i=PC.exec(e);return i!=null&&n===i[1]&&r===i[3]?t===`svg`?void 0:`new`:e};var LC=Object.freeze({__proto__:null,description:`remove or cleanup enable-background attribute when possible`,fn:FC,name:`cleanupEnableBackground`});const RC={M:2,m:2,Z:0,z:0,L:2,l:2,H:1,h:1,V:1,v:1,C:6,c:6,S:4,s:4,Q:4,q:4,T:2,t:2,A:7,a:7},zC=e=>e in RC,BC=e=>e===` `||e===` `||e===`\r`||e===`
26
+ `,VC=e=>{let t=e.codePointAt(0);return t!=null&&48<=t&&t<=57},HC=(e,t)=>{let n=t,r=``,i=`none`;for(;n<e.length;n+=1){let t=e[n];if(t===`+`||t===`-`){if(i===`none`){i=`sign`,r+=t;continue}if(i===`e`){i=`exponent_sign`,r+=t;continue}}if(VC(t)){if(i===`none`||i===`sign`||i===`whole`){i=`whole`,r+=t;continue}if(i===`decimal_point`||i===`decimal`){i=`decimal`,r+=t;continue}if(i===`e`||i===`exponent_sign`||i===`exponent`){i=`exponent`,r+=t;continue}}if(t===`.`&&(i===`none`||i===`sign`||i===`whole`))i=`decimal_point`,r+=t;else if((t===`E`||t==`e`)&&(i===`whole`||i===`decimal_point`||i===`decimal`))i=`e`,r+=t;else break}let a=Number.parseFloat(r);return Number.isNaN(a)?[t,null]:[n-1,a]},UC=e=>{let t=[],n=null,r=[],i=0,a=!1,o=!1;for(let s=0;s<e.length;s+=1){let c=e.charAt(s);if(BC(c))continue;if(a&&c===`,`){if(o)break;o=!0;continue}if(zC(c)){if(o)return t;if(n==null){if(c!==`M`&&c!==`m`)return t}else if(r.length!==0)return t;n=c,r=[],i=RC[n],a=!1,i===0&&t.push({command:n,args:r});continue}if(n==null)return t;let l=s,u=null;if(n===`A`||n===`a`){let t=r.length;t!==0&&t!==1||c!==`+`&&c!==`-`&&([l,u]=HC(e,s)),t!==2&&t!==5&&t!==6||([l,u]=HC(e,s)),(t===3||t===4)&&(c===`0`&&(u=0),c===`1`&&(u=1))}else[l,u]=HC(e,s);if(u==null)return t;r.push(u),a=!0,o=!1,s=l,r.length===i&&(t.push({command:n,args:r}),n===`M`&&(n=`L`),n===`m`&&(n=`l`),r=[])}return t},WC=(e,t)=>(t!=null&&(e=cC(e,t)),{roundedStr:rC(e),rounded:e}),GC=(e,t,n,r)=>{let i=``,a;for(let o=0;o<t.length;o++){let{roundedStr:s,rounded:c}=WC(t[o],n);!r||e!==`A`&&e!==`a`||o%7!=4&&o%7!=5?o===0||c<0?i+=s:Number.isInteger(a)||VC(s[0])?i+=` ${s}`:i+=s:i+=s,a=c}return i},KC=({pathData:e,precision:t,disableSpaceAfterFlags:n})=>{if(e.length===1){let{command:r,args:i}=e[0];return r+GC(r,i,t,n)}let r=``,i={...e[0]};e[1].command===`L`?i.command=`M`:e[1].command===`l`&&(i.command=`m`);for(let a=1;a<e.length;a++){let{command:o,args:s}=e[a];i.command===o&&i.command!==`M`&&i.command!==`m`||i.command===`M`&&o===`L`||i.command===`m`&&o===`l`?(i.args=[...i.args,...s],a===e.length-1&&(r+=i.command+GC(i.command,i.args,t,n))):(r+=i.command+GC(i.command,i.args,t,n),a===e.length-1?r+=o+GC(o,s,t,n):i={command:o,args:s})}return r},qC=Rn.nonRendering;var JC=Object.freeze({__proto__:null,description:`removes hidden elements (zero sized, with absent attributes)`,fn:(n,r)=>{let{isHidden:i=!0,displayNone:a=!0,opacity0:o=!0,circleR0:s=!0,ellipseRX0:c=!0,ellipseRY0:l=!0,rectWidth0:u=!0,rectHeight0:d=!0,patternWidth0:f=!0,patternHeight0:p=!0,imageWidth0:m=!0,imageHeight0:h=!0,pathEmptyD:g=!0,polylineEmptyPoints:_=!0,polygonEmptyPoints:v=!0}=r,y=IS(n),b=/* @__PURE__ */ new Map,x=/* @__PURE__ */ new Set,S=/* @__PURE__ */ new Map,C=/* @__PURE__ */ new Set,ee=/* @__PURE__ */ new Map,te=!1;function w(e){if(C.has(e.attributes.id))return!1;for(let t of e.children)if(t.type===`element`&&!w(t))return!1;return!0}function ne(e,t){e.type===`element`&&e.attributes.id!=null&&t.type===`element`&&t.name===`defs`&&x.add(e.attributes.id),A(e,t)}return t(n,{element:{enter:(t,n)=>{if(qC.has(t.name))return b.set(t,n),e;let r=LS(y,t);if(o&&r.opacity&&r.opacity.type===`static`&&r.opacity.value===`0`){if(t.name===`path`)return b.set(t,n),e;ne(t,n)}}}}),{element:{enter:(e,t)=>{if(e.name===`style`&&e.children.length!==0||aC(e)){te=!0;return}if(e.name===`defs`&&S.set(e,t),e.name===`use`)for(let n of Object.keys(e.attributes)){if(n!==`href`&&!n.endsWith(`:href`))continue;let r=e.attributes[n].slice(1),i=ee.get(r);i||(i=[],ee.set(r,i)),i.push({node:e,parentNode:t})}if(s&&e.name===`circle`&&e.children.length===0&&e.attributes.r===`0`||c&&e.name===`ellipse`&&e.children.length===0&&e.attributes.rx===`0`||l&&e.name===`ellipse`&&e.children.length===0&&e.attributes.ry===`0`||u&&e.name===`rect`&&e.children.length===0&&e.attributes.width===`0`||d&&u&&e.name===`rect`&&e.children.length===0&&e.attributes.height===`0`||f&&e.name===`pattern`&&e.attributes.width===`0`||p&&e.name===`pattern`&&e.attributes.height===`0`||m&&e.name===`image`&&e.attributes.width===`0`||h&&e.name===`image`&&e.attributes.height===`0`||_&&e.name===`polyline`&&e.attributes.points==null||v&&e.name===`polygon`&&e.attributes.points==null){ne(e,t);return}let n=LS(y,e);if(i&&n.visibility&&n.visibility.type===`static`&&n.visibility.value===`hidden`&&Mn(e,`[visibility=visible]`)==null)ne(e,t);else if(a&&n.display&&n.display.type===`static`&&n.display.value===`none`&&e.name!==`marker`)ne(e,t);else{if(g&&e.name===`path`){if(e.attributes.d==null){ne(e,t);return}let r=UC(e.attributes.d);if(r.length===0||r.length===1&&n[`marker-start`]==null&&n[`marker-end`]==null){ne(e,t);return}}for(let[t,n]of Object.entries(e.attributes)){let e=sC(t,n);for(let t of e)C.add(t)}}}},root:{exit:()=>{for(let e of x){let t=ee.get(e);if(t)for(let{node:e,parentNode:n}of t)A(e,n)}if(!te)for(let[e,t]of b.entries())w(e)&&A(e,t);for(let[e,t]of S.entries())e.children.length===0&&A(e,t)}}}},name:`removeHiddenElems`}),YC=Object.freeze({__proto__:null,description:`removes empty <text> elements`,fn:(e,t)=>{let{text:n=!0,tspan:r=!0,tref:i=!0}=t;return{element:{enter:(e,t)=>{n&&e.name===`text`&&e.children.length===0&&A(e,t),r&&e.name===`tspan`&&e.children.length===0&&A(e,t),i&&e.name===`tref`&&e.attributes[`xlink:href`]==null&&A(e,t)}}}},name:`removeEmptyText`});const XC=/[-+]?(?:\d*\.\d+|\d+\.?)(?:[eE][-+]?\d+)?/g;var ZC=Object.freeze({__proto__:null,description:`converts basic shapes to more compact path form`,fn:(e,t)=>{let{convertArcs:n=!1,floatPrecision:r}=t;return{element:{enter:(e,t)=>{if(e.name===`rect`&&e.attributes.width!=null&&e.attributes.height!=null&&e.attributes.rx==null&&e.attributes.ry==null){let t=Number(e.attributes.x||`0`),n=Number(e.attributes.y||`0`),i=Number(e.attributes.width),a=Number(e.attributes.height);if(Number.isNaN(t-n+i-a))return;let o=[{command:`M`,args:[t,n]},{command:`H`,args:[t+i]},{command:`V`,args:[n+a]},{command:`H`,args:[t]},{command:`z`,args:[]}];e.name=`path`,e.attributes.d=KC({pathData:o,precision:r}),delete e.attributes.x,delete e.attributes.y,delete e.attributes.width,delete e.attributes.height}if(e.name===`line`){let t=Number(e.attributes.x1||`0`),n=Number(e.attributes.y1||`0`),i=Number(e.attributes.x2||`0`),a=Number(e.attributes.y2||`0`);if(Number.isNaN(t-n+i-a))return;let o=[{command:`M`,args:[t,n]},{command:`L`,args:[i,a]}];e.name=`path`,e.attributes.d=KC({pathData:o,precision:r}),delete e.attributes.x1,delete e.attributes.y1,delete e.attributes.x2,delete e.attributes.y2}if((e.name===`polyline`||e.name===`polygon`)&&e.attributes.points!=null){let n=(e.attributes.points.match(XC)||[]).map(Number);if(n.length<4){A(e,t);return}let i=[];for(let e=0;e<n.length;e+=2)i.push({command:e===0?`M`:`L`,args:n.slice(e,e+2)});e.name===`polygon`&&i.push({command:`z`,args:[]}),e.name=`path`,e.attributes.d=KC({pathData:i,precision:r}),delete e.attributes.points}if(e.name===`circle`&&n){let t=Number(e.attributes.cx||`0`),n=Number(e.attributes.cy||`0`),i=Number(e.attributes.r||`0`);if(Number.isNaN(t-n+i))return;let a=[{command:`M`,args:[t,n-i]},{command:`A`,args:[i,i,0,1,0,t,n+i]},{command:`A`,args:[i,i,0,1,0,t,n-i]},{command:`z`,args:[]}];e.name=`path`,e.attributes.d=KC({pathData:a,precision:r}),delete e.attributes.cx,delete e.attributes.cy,delete e.attributes.r}if(e.name===`ellipse`&&n){let t=Number(e.attributes.cx||`0`),n=Number(e.attributes.cy||`0`),i=Number(e.attributes.rx||`0`),a=Number(e.attributes.ry||`0`);if(Number.isNaN(t-n+i-a))return;let o=[{command:`M`,args:[t,n-a]},{command:`A`,args:[i,a,0,1,0,t,n+a]},{command:`A`,args:[i,a,0,1,0,t,n-a]},{command:`z`,args:[]}];e.name=`path`,e.attributes.d=KC({pathData:o,precision:r}),delete e.attributes.cx,delete e.attributes.cy,delete e.attributes.rx,delete e.attributes.ry}}}}},name:`convertShapeToPath`}),QC=Object.freeze({__proto__:null,description:`converts non-eccentric <ellipse>s to <circle>s`,fn:()=>({element:{enter:e=>{if(e.name===`ellipse`){let t=e.attributes.rx||`0`,n=e.attributes.ry||`0`;if(t===n||t===`auto`||n===`auto`){e.name=`circle`;let r=t===`auto`?n:t;delete e.attributes.rx,delete e.attributes.ry,e.attributes.r=r}}}}}),name:`convertEllipseToCircle`}),$C=Object.freeze({__proto__:null,description:`Move common attributes of group children to the group`,fn:e=>{let n=!1;return t(e,{element:{enter:e=>{e.name===`style`&&(n=!0)}}}),{element:{exit:e=>{if(e.name!==`g`||e.children.length<=1||n)return;let t=/* @__PURE__ */ new Map,r=!0,i=!0;for(let n of e.children)if(n.type===`element`){if(Bn.has(n.name)||(i=!1),r){r=!1;for(let[e,r]of Object.entries(n.attributes))Kn.has(e)&&t.set(e,r)}else for(let[e,r]of t)n.attributes[e]!==r&&t.delete(e)}e.attributes.filter==null&&e.attributes[`clip-path`]==null&&e.attributes.mask==null||t.delete(`transform`),i&&t.delete(`transform`);for(let[n,r]of t)n===`transform`?e.attributes.transform==null?e.attributes.transform=r:e.attributes.transform=`${e.attributes.transform} ${r}`:e.attributes[n]=r;for(let n of e.children)if(n.type===`element`)for(let[e]of t)delete n.attributes[e]}}}},name:`moveElemsAttrsToGroup`});const ew=[...Bn,`g`,`text`];var tw=Object.freeze({__proto__:null,description:`moves some group attributes to the content elements`,fn:()=>({element:{enter:e=>{if(e.name===`g`&&e.children.length!==0&&e.attributes.transform!=null&&Object.entries(e.attributes).some((([e,t])=>Gn.has(e)&&oC(t)))===!1&&e.children.every((e=>e.type===`element`&&ew.includes(e.name)&&e.attributes.id==null))){for(let t of e.children){let n=e.attributes.transform;t.type===`element`&&(t.attributes.transform==null?t.attributes.transform=n:t.attributes.transform=`${n} ${t.attributes.transform}`)}delete e.attributes.transform}}}}),name:`moveGroupAttrsToElems`});const nw=(e,t)=>{if(e.type===`element`){if(Rn.animation.has(e.name)&&e.attributes.attributeName===t)return!0;for(let n of e.children)if(nw(n,t))return!0}return!1};var rw=Object.freeze({__proto__:null,description:`collapses useless groups`,fn:e=>{let t=IS(e);return{element:{exit:(e,n)=>{if(n.type!==`root`&&n.name!==`switch`&&e.name===`g`&&e.children.length!==0){if(Object.keys(e.attributes).length!==0&&e.children.length===1){let n=e.children[0],r=!!(e.attributes.filter||LS(t,e).filter);if(n.type===`element`&&n.attributes.id==null&&!r&&(e.attributes.class==null||n.attributes.class==null)&&(e.attributes[`clip-path`]==null&&e.attributes.mask==null||n.name===`g`&&e.attributes.transform==null&&n.attributes.transform==null)){let t={...n.attributes};for(let[r,i]of Object.entries(e.attributes)){if(nw(n,r))return;if(t[r]==null)t[r]=i;else if(r===`transform`)t[r]=i+` `+t[r];else if(t[r]===`inherit`)t[r]=i;else if(!Kn.has(r)&&t[r]!==i)return}e.attributes={},n.attributes=t}}if(Object.keys(e.attributes).length===0){for(let t of e.children)if(t.type===`element`&&Rn.animation.has(t.name))return;let t=n.children.indexOf(e);n.children.splice(t,1,...e.children)}}}}}},name:`collapseGroups`});let iw;const aw=e=>{if(e.pathJS)return e.pathJS;let t=[],n=UC(e.attributes.d);for(let{command:e,args:r}of n)t.push({command:e,args:r});return t.length&&t[0].command==`m`&&(t[0].command=`M`),e.pathJS=t,t},ow=e=>{let t=[],n=[0,0],r=[0,0];for(let{command:i,args:a}of e)a=a.slice(),i===`m`&&(a[0]+=r[0],a[1]+=r[1],i=`M`),i===`M`&&(r[0]=a[0],r[1]=a[1],n[0]=r[0],n[1]=r[1]),i===`h`&&(a[0]+=r[0],i=`H`),i===`H`&&(r[0]=a[0]),i===`v`&&(a[0]+=r[1],i=`V`),i===`V`&&(r[1]=a[0]),i===`l`&&(a[0]+=r[0],a[1]+=r[1],i=`L`),i===`L`&&(r[0]=a[0],r[1]=a[1]),i===`c`&&(a[0]+=r[0],a[1]+=r[1],a[2]+=r[0],a[3]+=r[1],a[4]+=r[0],a[5]+=r[1],i=`C`),i===`C`&&(r[0]=a[4],r[1]=a[5]),i===`s`&&(a[0]+=r[0],a[1]+=r[1],a[2]+=r[0],a[3]+=r[1],i=`S`),i===`S`&&(r[0]=a[2],r[1]=a[3]),i===`q`&&(a[0]+=r[0],a[1]+=r[1],a[2]+=r[0],a[3]+=r[1],i=`Q`),i===`Q`&&(r[0]=a[2],r[1]=a[3]),i===`t`&&(a[0]+=r[0],a[1]+=r[1],i=`T`),i===`T`&&(r[0]=a[0],r[1]=a[1]),i===`a`&&(a[5]+=r[0],a[6]+=r[1],i=`A`),i===`A`&&(r[0]=a[5],r[1]=a[6]),(i===`z`||i===`Z`)&&(r[0]=n[0],r[1]=n[1],i=`z`),t.push({command:i,args:a});return t},sw=function(e,t,n){e.pathJS=t;let r=[];for(let e of t){if(r.length!==0&&(e.command===`M`||e.command===`m`)){let e=r[r.length-1];e.command!==`M`&&e.command!==`m`||r.pop()}r.push({command:e.command,args:e.args})}e.attributes.d=KC({pathData:r,precision:n.floatPrecision,disableSpaceAfterFlags:n.noSpaceAfterFlags})};function cw(e,t){return e[0]=t[t.length-2],e[1]=t[t.length-1],e}const lw=function(e,t){let n=hw(ow(e)),r=hw(ow(t));if(n.maxX<=r.minX||r.maxX<=n.minX||n.maxY<=r.minY||r.maxY<=n.minY||n.list.every((e=>r.list.every((t=>e.list[e.maxX][0]<=t.list[t.minX][0]||t.list[t.maxX][0]<=e.list[e.minX][0]||e.list[e.maxY][1]<=t.list[t.minY][1]||t.list[t.maxY][1]<=e.list[e.minY][1])))))return!1;let i=n.list.map(gw),a=r.list.map(gw);return i.some((function(e){return e.list.length<3?!1:a.some((function(t){if(t.list.length<3)return!1;let n=[o(e,t,[1,0])],r=dw(n[0]),i=1e4;for(;;){if(i--==0)return console.error(`Error: infinite loop while processing mergePaths plugin.`),!0;if(n.push(o(e,t,r)),pw(r,n[n.length-1])<=0)return!1;if(uw(n,r))return!0}}))}));function o(e,t,n){return fw(s(e,n),s(t,dw(n)))}function s(e,t){let n=t[1]>=0?t[0]<0?e.maxY:e.maxX:t[0]<0?e.minX:e.minY,r=-1/0,i;for(;(i=pw(e.list[n],t))>r;)r=i,n=++n%e.list.length;return e.list[(n||e.list.length)-1]}};function uw(e,t){if(e.length==2){let n=e[1],r=e[0],i=dw(e[1]),a=fw(r,n);pw(i,a)>0?cw(t,mw(a,n)):(cw(t,i),e.shift())}else{let n=e[2],r=e[1],i=e[0],a=fw(r,n),o=fw(i,n),s=dw(n),c=mw(a,o),l=mw(o,a);if(pw(c,s)>0)pw(a,s)>0?(cw(t,c),e.shift()):(cw(t,s),e.splice(0,2));else{if(!(pw(l,s)>0))return!0;pw(o,s)>0?(cw(t,l),e.splice(1,1)):(cw(t,s),e.splice(0,2))}}return!1}function dw(e){return[-e[0],-e[1]]}function fw(e,t){return[e[0]-t[0],e[1]-t[1]]}function pw(e,t){return e[0]*t[0]+e[1]*t[1]}function mw(e,t){let n=[-e[1],e[0]];return pw(n,dw(t))<0?dw(n):n}function hw(e){let t={list:[],minX:0,minY:0,maxX:0,maxY:0},n=(e,n)=>{(!e.list.length||n[1]>e.list[e.maxY][1])&&(e.maxY=e.list.length,t.maxY=t.list.length?Math.max(n[1],t.maxY):n[1]),(!e.list.length||n[0]>e.list[e.maxX][0])&&(e.maxX=e.list.length,t.maxX=t.list.length?Math.max(n[0],t.maxX):n[0]),(!e.list.length||n[1]<e.list[e.minY][1])&&(e.minY=e.list.length,t.minY=t.list.length?Math.min(n[1],t.minY):n[1]),(!e.list.length||n[0]<e.list[e.minX][0])&&(e.minX=e.list.length,t.minX=t.list.length?Math.min(n[0],t.minX):n[0]),e.list.push(n)};for(let i=0;i<e.length;i+=1){let a=e[i],o=t.list.length===0?{list:[],minX:0,minY:0,maxX:0,maxY:0}:t.list[t.list.length-1],s=i===0?null:e[i-1],c=o.list.length===0?null:o.list[o.list.length-1],l=a.args,u=c,d=(e,t)=>e+(c==null?0:c[t%2]);switch(a.command){case`M`:o={list:[],minX:0,minY:0,maxX:0,maxY:0},t.list.push(o);break;case`H`:c!=null&&n(o,[l[0],c[1]]);break;case`V`:c!=null&&n(o,[c[0],l[0]]);break;case`Q`:n(o,l.slice(0,2)),iw=[l[2]-l[0],l[3]-l[1]];break;case`T`:c!=null&&s!=null&&(s.command==`Q`||s.command==`T`)&&(u=[c[0]+iw[0],c[1]+iw[1]],n(o,u),iw=[l[0]-u[0],l[1]-u[1]]);break;case`C`:c!=null&&n(o,[.5*(c[0]+l[0]),.5*(c[1]+l[1])]),n(o,[.5*(l[0]+l[2]),.5*(l[1]+l[3])]),n(o,[.5*(l[2]+l[4]),.5*(l[3]+l[5])]),iw=[l[4]-l[2],l[5]-l[3]];break;case`S`:c!=null&&s!=null&&(s.command==`C`||s.command==`S`)&&(n(o,[c[0]+.5*iw[0],c[1]+.5*iw[1]]),u=[c[0]+iw[0],c[1]+iw[1]]),u!=null&&n(o,[.5*(u[0]+l[0]),.5*(u[1]+l[1])]),n(o,[.5*(l[0]+l[2]),.5*(l[1]+l[3])]),iw=[l[2]-l[0],l[3]-l[1]];break;case`A`:if(c!=null){let e=vw.apply(0,c.concat(l));for(var r;(r=e.splice(0,6).map(d)).length;)c!=null&&n(o,[.5*(c[0]+r[0]),.5*(c[1]+r[1])]),n(o,[.5*(r[0]+r[2]),.5*(r[1]+r[3])]),n(o,[.5*(r[2]+r[4]),.5*(r[3]+r[5])]),e.length&&n(o,c=r.slice(-2))}}l.length>=2&&n(o,l.slice(-2))}return t}function gw(e){e.list.sort((function(e,t){return e[0]==t[0]?e[1]-t[1]:e[0]-t[0]}));let t=[],n=0,r=0;for(let i=0;i<e.list.length;i++){for(;t.length>=2&&_w(t[t.length-2],t[t.length-1],e.list[i])<=0;)t.pop();e.list[i][1]<e.list[n][1]&&(n=i,r=t.length),t.push(e.list[i])}let i=[],a=e.list.length-1,o=0;for(let t=e.list.length;t--;){for(;i.length>=2&&_w(i[i.length-2],i[i.length-1],e.list[t])<=0;)i.pop();e.list[t][1]>e.list[a][1]&&(a=t,o=i.length),i.push(e.list[t])}i.pop(),t.pop();let s=t.concat(i);return{list:s,minX:0,maxX:t.length,minY:r,maxY:(t.length+o)%s.length}}function _w(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}const vw=(e,t,n,r,i,a,o,s,c,l)=>{let u=Math.PI*120/180,d=Math.PI/180*(+i||0),f=[],p=(e,t,n)=>e*Math.cos(n)-t*Math.sin(n),m=(e,t,n)=>e*Math.sin(n)+t*Math.cos(n);if(l)_=l[0],v=l[1],h=l[2],g=l[3];else{e=p(e,t,-d),t=m(e,t,-d),s=p(s,c,-d),c=m(s,c,-d);let i=(e-s)/2,l=(t-c)/2,u=i*i/(n*n)+l*l/(r*r);u>1&&(u=Math.sqrt(u),n*=u,r*=u);let f=n*n,y=r*r,b=(a==o?-1:1)*Math.sqrt(Math.abs((f*y-f*l*l-y*i*i)/(f*l*l+y*i*i)));var h=b*n*l/r+(e+s)/2,g=b*-r*i/n+(t+c)/2,_=Math.asin(Number(((t-g)/r).toFixed(9))),v=Math.asin(Number(((c-g)/r).toFixed(9)));_=e<h?Math.PI-_:_,v=s<h?Math.PI-v:v,_<0&&(_=Math.PI*2+_),v<0&&(v=Math.PI*2+v),o&&_>v&&(_-=Math.PI*2),!o&&v>_&&(v-=Math.PI*2)}let y=v-_;if(Math.abs(y)>u){let e=v,t=s,a=c;v=_+u*(o&&v>_?1:-1),s=h+n*Math.cos(v),c=g+r*Math.sin(v),f=vw(s,c,n,r,i,0,o,t,a,[v,e,h,g])}y=v-_;let b=Math.cos(_),x=Math.sin(_),S=Math.cos(v),C=Math.sin(v),ee=Math.tan(y/4),te=4/3*n*ee,w=4/3*r*ee,ne=[-te*x,w*b,s+te*C-e,c-w*S-t,s-e,c-t];if(l)return ne.concat(f);{f=ne.concat(f);let e=[];for(let t=0,n=f.length;t<n;t++)e[t]=t%2?m(f[t-1],f[t],d):p(f[t],f[t+1],d);return e}},yw=/* @__PURE__ */ new Set([`matrix`,`rotate`,`scale`,`skewX`,`skewY`,`translate`]),bw=/\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,xw=/[-+]?(?:\d*\.\d+|\d+\.?)(?:[eE][-+]?\d+)?/g,Sw=e=>{let t=[],n=null;for(let r of e.split(bw))if(r){if(yw.has(r))n={name:r,data:[]},t.push(n);else{let e;for(;e=xw.exec(r);)e=Number(e),n?.data.push(e)}}return n==null||n.data.length==0?[]:t},Cw=e=>{let t=e.map((e=>e.name===`matrix`?e.data:Mw(e)));return{name:`matrix`,data:t.length>0?t.reduce(Pw):[]}},Q={rad:e=>e*Math.PI/180,deg:e=>e*180/Math.PI,cos:e=>Math.cos(Q.rad(e)),acos:(e,t)=>cC(Q.deg(Math.acos(e)),t),sin:e=>Math.sin(Q.rad(e)),asin:(e,t)=>cC(Q.deg(Math.asin(e)),t),tan:e=>Math.tan(Q.rad(e)),atan:(e,t)=>cC(Q.deg(Math.atan(e)),t)},ww=e=>{let t=[],n=Tw(e),r=Ew(e);return n&&t.push(n),r&&t.push(r),t},Tw=e=>{let[t,n,r,i,a,o]=e.data,s=t*i-n*r;if(s===0)return;let c=Math.hypot(t,n);if(c===0)return;let l=[],u=t/c;if((a||o)&&l.push({name:`translate`,data:[a,o]}),u!==1){let e=Math.acos(u);l.push({name:`rotate`,data:[Q.deg(n<0?-e:e),0,0]})}let d=c,f=s/d;d===1&&f===1||l.push({name:`scale`,data:[d,f]});let p=t*r+n*i;return p&&l.push({name:`skewX`,data:[Q.deg(Math.atan(p/(t*t+n*n)))]}),l},Ew=e=>{let[t,n,r,i,a,o]=e.data,s=t*i-n*r;if(s===0)return;let c=Math.hypot(r,i);if(c===0)return;let l=[];(a||o)&&l.push({name:`translate`,data:[a,o]});let u=Math.PI/2-(i<0?-1:1)*Math.acos(-r/c);l.push({name:`rotate`,data:[Q.deg(u),0,0]});let d=s/c,f=c;d===1&&f===1||l.push({name:`scale`,data:[d,f]});let p=t*r+n*i;return p&&l.push({name:`skewY`,data:[Q.deg(Math.atan(p/(r*r+i*i)))]}),l},Dw=(e,t,n)=>{let r=Q.rad(n),i=1-Math.cos(r),a=Math.sin(r),o=(i*t+a*e)/(i*i+a*a);return{name:`rotate`,data:[n,(e-a*o)/i,o]}},Ow=e=>{switch(e.name){case`rotate`:case`skewX`:case`skewY`:return e.data[0]===0;case`scale`:return e.data[0]===1&&e.data[1]===1;case`translate`:return e.data[0]===0&&e.data[1]===0}return!1},kw=(e,t)=>{let n=[];for(let r=0;r<e.length;r++){let i=e[r];if(Ow(i))continue;let a=i.data;switch(i.name){case`rotate`:switch(a[0]){case 180:case-180:{let t=e[r+1];t&&t.name===`scale`?(n.push(Aw(t.data.map((e=>-e)))),r++):n.push({name:`scale`,data:[-1]})}continue}n.push({name:`rotate`,data:a.slice(0,a[1]||a[2]?3:1)});break;case`scale`:n.push(Aw(a));break;case`skewX`:case`skewY`:n.push({name:i.name,data:[a[0]]});break;case`translate`:{let i=e[r+1];if(i&&i.name===`rotate`&&i.data[0]!==180&&i.data[0]!==-180&&i.data[0]!==0&&i.data[1]===0&&i.data[2]===0){let e=t[r].data;n.push(Dw(e[0],e[1],t[r+1].data[0])),r++;continue}}n.push({name:`translate`,data:a.slice(0,a[1]?2:1)})}}return n.length?n:[{name:`scale`,data:[1]}]},Aw=e=>({name:`scale`,data:e.slice(0,e[0]===e[1]?1:2)}),jw=(e,t)=>{let n=ww(e),r,i=Number.MAX_VALUE;for(let e of n){let n=e.map((e=>{let n={name:e.name,data:[...e.data]};return Fw(n,t)})),a=kw(n,e),o=Vw(a,t).length;o<i&&(r=a,i=o)}return r??[e]},Mw=e=>{if(e.name===`matrix`)return e.data;switch(e.name){case`translate`:return[1,0,0,1,e.data[0],e.data[1]||0];case`scale`:return[e.data[0],0,0,e.data[1]??e.data[0],0,0];case`rotate`:var t=Q.cos(e.data[0]),n=Q.sin(e.data[0]),r=e.data[1]||0,i=e.data[2]||0;return[t,n,-n,t,(1-t)*r+n*i,(1-t)*i-n*r];case`skewX`:return[1,0,Q.tan(e.data[0]),1,0,0];case`skewY`:return[1,Q.tan(e.data[0]),0,1,0,0];default:throw Error(`Unknown transform ${e.name}`)}},Nw=(e,t,n)=>{let r=t[5]-e[0],i=t[6]-e[1],a=t[0],o=t[1],s=t[2]*Math.PI/180,c=Math.cos(s),l=Math.sin(s);if(a>0&&o>0){let e=(r*c+i*l)**2/(4*a*a)+(i*c-r*l)**2/(4*o*o);e>1&&(e=Math.sqrt(e),a*=e,o*=e)}let u=[a*c,a*l,-o*l,o*c,0,0],d=Pw(n,u),f=d[2]*d[2]+d[3]*d[3],p=d[0]*d[0]+d[1]*d[1]+f,m=Math.hypot(d[0]-d[3],d[1]+d[2])*Math.hypot(d[0]+d[3],d[1]-d[2]);if(m){let e=(p+m)/2,n=(p-m)/2,r=Math.abs(e-f)>1e-6,i=(r?e:n)-f,a=d[0]*d[2]+d[1]*d[3],o=d[0]*i+d[2]*a,s=d[1]*i+d[3]*a;t[0]=Math.sqrt(e),t[1]=Math.sqrt(n),t[2]=((r?s<0:o>0)?-1:1)*Math.acos((r?o:s)/Math.hypot(o,s))*180/Math.PI}else t[0]=t[1]=Math.sqrt(p/2),t[2]=0;return n[0]<0!=n[3]<0&&(t[4]=1-t[4]),t},Pw=(e,t)=>[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]],Fw=(e,t)=>{switch(e.name){case`translate`:e.data=Lw(e.data,t);break;case`rotate`:e.data=[...Iw(e.data.slice(0,1),t),...Lw(e.data.slice(1),t)];break;case`skewX`:case`skewY`:e.data=Iw(e.data,t);break;case`scale`:e.data=Rw(e.data,t);break;case`matrix`:e.data=[...Rw(e.data.slice(0,4),t),...Lw(e.data.slice(4),t)]}return e},Iw=(e,t)=>t.degPrecision!=null&&t.degPrecision>=1&&t.floatPrecision<20?Bw(t.degPrecision,e):zw(e),Lw=(e,t)=>t.floatPrecision>=1&&t.floatPrecision<20?Bw(t.floatPrecision,e):zw(e),Rw=(e,t)=>t.transformPrecision>=1&&t.floatPrecision<20?Bw(t.transformPrecision,e):zw(e),zw=e=>e.map(Math.round),Bw=(e,t)=>{for(let n=t.length,r=+(.1**e).toFixed(e);n--;)if(cC(t[n],e)!==t[n]){let i=+t[n].toFixed(e-1);t[n]=+Math.abs(i-t[n]).toFixed(e+1)>=r?+t[n].toFixed(e):i}return t},Vw=(e,t)=>e.map((e=>(Fw(e,t),`${e.name}(${nC(e.data,t)})`))).join(``),Hw=/[-+]?(\d*\.\d+|\d+\.?)(?:[eE][-+]?\d+)?/g,Uw=(e,t)=>{let n=IS(e);return{element:{enter:e=>{if(e.attributes.d==null||e.attributes.id!=null||e.attributes.transform==null||e.attributes.transform===``||e.attributes.style!=null||Object.entries(e.attributes).some((([e,t])=>Gn.has(e)&&oC(t))))return;let r=LS(n,e),i=r.transform;if(i.type===`static`&&i.value!==e.attributes.transform)return;let a=Cw(Sw(e.attributes.transform)),o=r.stroke?.type===`static`?r.stroke.value:null,s=r[`stroke-width`]?.type===`static`?r[`stroke-width`].value:null,c=t.transformPrecision;if(r.stroke?.type===`dynamic`||r[`stroke-width`]?.type===`dynamic`)return;let l=Number(Math.hypot(a.data[0],a.data[1]).toFixed(c));if(o&&o!=`none`){if(!t.applyTransformsStroked||(a.data[0]!==a.data[3]||a.data[1]!==-a.data[2])&&(a.data[0]!==-a.data[3]||a.data[1]!==a.data[2]))return;l!==1&&e.attributes[`vector-effect`]!==`non-scaling-stroke`&&(e.attributes[`stroke-width`]=(s||Vn.presentation[`stroke-width`]).trim().replace(Hw,(e=>rC(Number(e)*l))),e.attributes[`stroke-dashoffset`]!=null&&(e.attributes[`stroke-dashoffset`]=e.attributes[`stroke-dashoffset`].trim().replace(Hw,(e=>rC(Number(e)*l)))),e.attributes[`stroke-dasharray`]!=null&&(e.attributes[`stroke-dasharray`]=e.attributes[`stroke-dasharray`].trim().replace(Hw,(e=>rC(Number(e)*l)))))}let u=aw(e);Kw(u,a.data),delete e.attributes.transform}}}},Ww=(e,t,n)=>[e[0]*t+e[2]*n+e[4],e[1]*t+e[3]*n+e[5]],Gw=(e,t,n)=>[e[0]*t+e[2]*n,e[1]*t+e[3]*n],Kw=(e,t)=>{let n=[0,0],r=[0,0];for(let i of e){let{command:e,args:a}=i;if(e===`M`){r[0]=a[0],r[1]=a[1],n[0]=r[0],n[1]=r[1];let[e,i]=Ww(t,a[0],a[1]);a[0]=e,a[1]=i}if(e===`m`){r[0]+=a[0],r[1]+=a[1],n[0]=r[0],n[1]=r[1];let[e,i]=Gw(t,a[0],a[1]);a[0]=e,a[1]=i}if(e===`H`&&(e=`L`,a=[a[0],r[1]]),e===`h`&&(e=`l`,a=[a[0],0]),e===`V`&&(e=`L`,a=[r[0],a[0]]),e===`v`&&(e=`l`,a=[0,a[0]]),e===`L`){r[0]=a[0],r[1]=a[1];let[e,n]=Ww(t,a[0],a[1]);a[0]=e,a[1]=n}if(e===`l`){r[0]+=a[0],r[1]+=a[1];let[e,n]=Gw(t,a[0],a[1]);a[0]=e,a[1]=n}if(e===`C`){r[0]=a[4],r[1]=a[5];let[e,n]=Ww(t,a[0],a[1]),[i,o]=Ww(t,a[2],a[3]),[s,c]=Ww(t,a[4],a[5]);a[0]=e,a[1]=n,a[2]=i,a[3]=o,a[4]=s,a[5]=c}if(e===`c`){r[0]+=a[4],r[1]+=a[5];let[e,n]=Gw(t,a[0],a[1]),[i,o]=Gw(t,a[2],a[3]),[s,c]=Gw(t,a[4],a[5]);a[0]=e,a[1]=n,a[2]=i,a[3]=o,a[4]=s,a[5]=c}if(e===`S`){r[0]=a[2],r[1]=a[3];let[e,n]=Ww(t,a[0],a[1]),[i,o]=Ww(t,a[2],a[3]);a[0]=e,a[1]=n,a[2]=i,a[3]=o}if(e===`s`){r[0]+=a[2],r[1]+=a[3];let[e,n]=Gw(t,a[0],a[1]),[i,o]=Gw(t,a[2],a[3]);a[0]=e,a[1]=n,a[2]=i,a[3]=o}if(e===`Q`){r[0]=a[2],r[1]=a[3];let[e,n]=Ww(t,a[0],a[1]),[i,o]=Ww(t,a[2],a[3]);a[0]=e,a[1]=n,a[2]=i,a[3]=o}if(e===`q`){r[0]+=a[2],r[1]+=a[3];let[e,n]=Gw(t,a[0],a[1]),[i,o]=Gw(t,a[2],a[3]);a[0]=e,a[1]=n,a[2]=i,a[3]=o}if(e===`T`){r[0]=a[0],r[1]=a[1];let[e,n]=Ww(t,a[0],a[1]);a[0]=e,a[1]=n}if(e===`t`){r[0]+=a[0],r[1]+=a[1];let[e,n]=Gw(t,a[0],a[1]);a[0]=e,a[1]=n}if(e===`A`){if(Nw(r,a,t),r[0]=a[5],r[1]=a[6],Math.abs(a[2])>80){let e=a[0],t=a[2];a[0]=a[1],a[1]=e,a[2]=t+(t>0?-90:90)}let[e,n]=Ww(t,a[5],a[6]);a[5]=e,a[6]=n}if(e===`a`){if(Nw([0,0],a,t),r[0]+=a[5],r[1]+=a[6],Math.abs(a[2])>80){let e=a[0],t=a[2];a[0]=a[1],a[1]=e,a[2]=t+(t>0?-90:90)}let[e,n]=Gw(t,a[5],a[6]);a[5]=e,a[6]=n}(e===`z`||e===`Z`)&&(r[0]=n[0],r[1]=n[1]),i.command=e,i.args=a}};let qw,Jw,$,Yw,Xw;const Zw=(e,n)=>{let{applyTransforms:r=!0,applyTransformsStroked:i=!0,makeArcs:a={threshold:2.5,tolerance:.5},straightCurves:o=!0,convertToQ:s=!0,lineShorthands:c=!0,convertToZ:l=!0,curveSmoothShorthands:u=!0,floatPrecision:d=3,transformPrecision:f=5,smartArcRounding:p=!0,removeUseless:m=!0,collapseRepeated:h=!0,utilizeAbsolute:g=!0,leadingZero:_=!0,negativeExtraSpace:v=!0,noSpaceAfterFlags:y=!1,forceAbsolutePath:b=!1}=n,x={applyTransforms:r,applyTransformsStroked:i,makeArcs:a,straightCurves:o,convertToQ:s,lineShorthands:c,convertToZ:l,curveSmoothShorthands:u,floatPrecision:d,transformPrecision:f,smartArcRounding:p,removeUseless:m,collapseRepeated:h,utilizeAbsolute:g,leadingZero:_,negativeExtraSpace:v,noSpaceAfterFlags:y,forceAbsolutePath:b};r&&t(e,Uw(e,{transformPrecision:f,applyTransformsStroked:i}));let S=IS(e);return{element:{enter:e=>{if(Bn.has(e.name)&&e.attributes.d!=null){let t=LS(S,e);Jw=d,$=Jw===!1?.01:+(.1**Jw).toFixed(Jw),qw=Jw&&Jw>0&&Jw<20?rT:iT,a&&(Yw=a.threshold,Xw=a.tolerance);let n=t[`marker-mid`]!=null,r=t.stroke&&(t.stroke.type===`dynamic`||t.stroke.value!==`none`),i=t[`stroke-linecap`]&&(t[`stroke-linecap`].type===`dynamic`||t[`stroke-linecap`].value!==`butt`),o=r&&i,s=!r||t[`stroke-linecap`]?.type===`static`&&t[`stroke-linecap`].value===`round`&&t[`stroke-linejoin`]?.type===`static`&&t[`stroke-linejoin`].value===`round`,c=aw(e);if(c.length){let t=c.some((e=>e.command!==`m`&&e.command!==`M`));Qw(c),c=$w(c,x,{isSafeToUseZ:s,maybeHasStrokeAndLinecap:o,hasMarkerMid:n}),g&&(c=eT(c,x)),(e.attributes[`marker-start`]!=null||e.attributes[`marker-end`]!=null)&&t&&c.every((e=>e.command===`m`||e.command===`M`))&&c.push({command:`z`,args:[]}),sw(e,c,x)}}}}}},Qw=e=>{let t=[0,0],n=[0,0],r=[0,0];for(let i=0;i<e.length;i+=1){let a=e[i],{command:o,args:s}=a;o===`m`?(n[0]+=s[0],n[1]+=s[1],t[0]=n[0],t[1]=n[1]):o===`M`?(i!==0&&(o=`m`),s[0]-=n[0],s[1]-=n[1],n[0]+=s[0],n[1]+=s[1],t[0]=n[0],t[1]=n[1]):o===`l`?(n[0]+=s[0],n[1]+=s[1]):o===`L`?(o=`l`,s[0]-=n[0],s[1]-=n[1],n[0]+=s[0],n[1]+=s[1]):o===`h`?n[0]+=s[0]:o===`H`?(o=`h`,s[0]-=n[0],n[0]+=s[0]):o===`v`?n[1]+=s[0]:o===`V`?(o=`v`,s[0]-=n[1],n[1]+=s[0]):o===`c`?(n[0]+=s[4],n[1]+=s[5]):o===`C`?(o=`c`,s[0]-=n[0],s[1]-=n[1],s[2]-=n[0],s[3]-=n[1],s[4]-=n[0],s[5]-=n[1],n[0]+=s[4],n[1]+=s[5]):o===`s`?(n[0]+=s[2],n[1]+=s[3]):o===`S`?(o=`s`,s[0]-=n[0],s[1]-=n[1],s[2]-=n[0],s[3]-=n[1],n[0]+=s[2],n[1]+=s[3]):o===`q`?(n[0]+=s[2],n[1]+=s[3]):o===`Q`?(o=`q`,s[0]-=n[0],s[1]-=n[1],s[2]-=n[0],s[3]-=n[1],n[0]+=s[2],n[1]+=s[3]):o===`t`?(n[0]+=s[0],n[1]+=s[1]):o===`T`?(o=`t`,s[0]-=n[0],s[1]-=n[1],n[0]+=s[0],n[1]+=s[1]):o===`a`?(n[0]+=s[5],n[1]+=s[6]):o===`A`?(o=`a`,s[5]-=n[0],s[6]-=n[1],n[0]+=s[5],n[1]+=s[6]):(o===`Z`||o===`z`)&&(n[0]=t[0],n[1]=t[1]),a.command=o,a.args=s,a.base=r,a.coords=[n[0],n[1]],r=a.coords}return e};function $w(e,t,{isSafeToUseZ:n,maybeHasStrokeAndLinecap:r,hasMarkerMid:i}){let a=hT.bind(null,t),o=[0,0],s=[0,0],c={},l;return e=e.filter((function(e,u,d){let f=l,p=e.command,m=e.args,h=d[u+1];if(p!==`Z`&&p!==`z`){let l=m,_;if(p===`s`){l=[0,0].concat(m);let e=c.args,t=e.length;l[0]=e[t-2]-e[t-4],l[1]=e[t-1]-e[t-3]}if(t.makeArcs&&(p==`c`||p==`s`)&&tT(l)&&(_=dT(l))){let t=qw([_.radius])[0],n=mT(l,_),r=+(l[5]*l[0]-l[4]*l[1]>0),i={command:`a`,args:[t,t,0,0,r,l[4],l[5]],coords:e.coords.slice(),base:e.base},s=[i],f=[_.center[0]-l[4],_.center[1]-l[5]],v={center:f,radius:_.radius},y=[e],b=0,x=``,S;if(c.command==`c`&&tT(c.args)&&pT(c.args,_)||c.command==`a`&&c.sdata&&pT(c.sdata,_)){y.unshift(c),i.base=c.base,i.args[5]=i.coords[0]-i.base[0],i.args[6]=i.coords[1]-i.base[1];let e=c.command==`a`?c.sdata:c.args,t=mT(e,{center:[e[4]+_.center[0],e[5]+_.center[1]],radius:_.radius});n+=t,n>Math.PI&&(i.args[3]=1),b=1}for(var g=u;(h=d[++g])&&(h.command===`c`||h.command===`s`);){let e=h.args;if(h.command==`s`&&(S=sT({command:`s`,args:h.args.slice()},d[g-1].args),e=S.args,S.args=e.slice(0,2),x=a([S])),!tT(e)||!fT(e,v)||(n+=mT(e,v),n-2*Math.PI>.001))break;if(n>Math.PI&&(i.args[3]=1),y.push(h),!(2*Math.PI-n>.001)){i.args[5]=2*(v.center[0]-e[4]),i.args[6]=2*(v.center[1]-e[5]),i.coords=[i.base[0]+i.args[5],i.base[1]+i.args[6]],i={command:`a`,args:[t,t,0,0,r,h.coords[0]-i.coords[0],h.coords[1]-i.coords[1]],coords:h.coords,base:i.coords},s.push(i),g++;break}i.coords=h.coords,i.args[5]=i.coords[0]-i.base[0],i.args[6]=i.coords[1]-i.base[1],f[0]-=e[4],f[1]-=e[5]}if((a(s)+x).length<a(y).length){if(d[g]&&d[g].command==`s`&&sT(d[g],d[g-1].args),b){let t=s.shift();qw(t.args),o[0]+=t.args[5]-c.args[c.args.length-2],o[1]+=t.args[6]-c.args[c.args.length-1],c.command=`a`,c.args=t.args,e.base=c.coords=t.coords}if(i=s.shift(),y.length==1?e.sdata=l.slice():y.length-1-b>0&&d.splice(u+1,y.length-1-b,...s),!i)return!1;p=`a`,m=i.args,e.coords=i.coords}}if(Jw!==!1){if(p===`m`||p===`l`||p===`t`||p===`q`||p===`s`||p===`c`)for(let t=m.length;t--;)m[t]+=e.base[t%2]-o[t%2];else p==`h`?m[0]+=e.base[0]-o[0]:p==`v`?m[0]+=e.base[1]-o[1]:p==`a`&&(m[5]+=e.base[0]-o[0],m[6]+=e.base[1]-o[1]);qw(m),p==`h`?o[0]+=m[0]:p==`v`?o[1]+=m[0]:(o[0]+=m[m.length-2],o[1]+=m[m.length-1]),qw(o),(p===`M`||p===`m`)&&(s[0]=o[0],s[1]=o[1])}let v=p===`a`?oT(m):void 0;if(t.smartArcRounding&&v!==void 0&&Jw)for(let e=Jw;e>=0;e--){let t=cC(m[0],e),n=oT([t,t,...m.slice(2)]);if(!(Math.abs(v-n)<$))break;m[0]=t,m[1]=t}if(t.straightCurves&&(p===`c`&&aT(m)||p===`s`&&aT(l)?(h&&h.command==`s`&&sT(h,m),p=`l`,m=m.slice(-2)):p===`q`&&aT(m)?(h&&h.command==`t`&&sT(h,m),p=`l`,m=m.slice(-2)):(p===`t`&&c.command!==`q`&&c.command!==`t`||p===`a`&&(m[0]===0||m[1]===0||v!==void 0&&v<$))&&(p=`l`,m=m.slice(-2))),t.convertToQ&&p==`c`){let n=.75*(e.base[0]+m[0])-.25*e.base[0],r=.75*(e.base[0]+m[2])-.25*(e.base[0]+m[4]);if(Math.abs(n-r)<$*2){let i=.75*(e.base[1]+m[1])-.25*e.base[1],a=.75*(e.base[1]+m[3])-.25*(e.base[1]+m[5]);if(Math.abs(i-a)<$*2){let o=m.slice();o.splice(0,4,n+r-e.base[0],i+a-e.base[1]),qw(o);let s=nC(m,t).length;nC(o,t).length<s&&(p=`q`,m=o,h&&h.command==`s`&&sT(h,m))}}}if(t.lineShorthands&&p===`l`&&(m[1]===0?(p=`h`,m.pop()):m[0]===0&&(p=`v`,m.shift())),t.collapseRepeated&&i===!1&&(p===`m`||p===`h`||p===`v`)&&c.command&&p==c.command.toLowerCase()&&(p!=`h`&&p!=`v`||c.args[0]>=0==m[0]>=0))return c.args[0]+=m[0],p!=`h`&&p!=`v`&&(c.args[1]+=m[1]),c.coords=e.coords,d[u]=c,!1;if(t.curveSmoothShorthands&&c.command){if(p===`c`)(c.command===`c`&&Math.abs(m[0]- -(c.args[2]-c.args[4]))<$&&Math.abs(m[1]- -(c.args[3]-c.args[5]))<$||c.command===`s`&&Math.abs(m[0]- -(c.args[0]-c.args[2]))<$&&Math.abs(m[1]- -(c.args[1]-c.args[3]))<$||c.command!==`c`&&c.command!==`s`&&Math.abs(m[0])<$&&Math.abs(m[1])<$)&&(p=`s`,m=m.slice(2));else if(p===`q`){if(c.command===`q`&&Math.abs(m[0]-(c.args[2]-c.args[0]))<$&&Math.abs(m[1]-(c.args[3]-c.args[1]))<$)p=`t`,m=m.slice(2);else if(c.command===`t`){let t=lT(f,e.base),n=[m[0]+e.base[0],m[1]+e.base[1]];Math.abs(t[0]-n[0])<$&&Math.abs(t[1]-n[1])<$&&(p=`t`,m=m.slice(2))}}}if(t.removeUseless&&!r&&((p===`l`||p===`h`||p===`v`||p===`q`||p===`t`||p===`c`||p===`s`)&&m.every((function(e){return e===0}))||p===`a`&&m[5]===0&&m[6]===0))return d[u]=c,!1;t.convertToZ&&(n||h?.command===`Z`||h?.command===`z`)&&(p===`l`||p===`h`||p===`v`)&&Math.abs(s[0]-e.coords[0])<$&&Math.abs(s[1]-e.coords[1])<$&&(p=`z`,m=[]),e.command=p,e.args=m}else if(o[0]=s[0],o[1]=s[1],c.command===`Z`||c.command===`z`)return!1;return(p===`Z`||p===`z`)&&t.removeUseless&&n&&Math.abs(e.base[0]-e.coords[0])<$/10&&Math.abs(e.base[1]-e.coords[1])<$/10?!1:(l=p===`q`?[m[0]+e.base[0],m[1]+e.base[1]]:p===`t`?f?lT(f,e.base):e.coords:void 0,c=e,!0)})),e}function eT(e,t){let n=e[0];return e=e.filter((function(e,r){if(r==0)return!0;if(e.command===`Z`||e.command===`z`)return n=e,!0;let i=e.command,a=e.args,o=a.slice(),s=a.slice();if(i===`m`||i===`l`||i===`t`||i===`q`||i===`s`||i===`c`)for(let t=o.length;t--;)o[t]+=e.base[t%2];else i==`h`?o[0]+=e.base[0]:i==`v`?o[0]+=e.base[1]:i==`a`&&(o[5]+=e.base[0],o[6]+=e.base[1]);qw(o),qw(s);let c=nC(o,t),l=nC(s,t);return(t.forceAbsolutePath||c.length<l.length&&!(t.negativeExtraSpace&&i==n.command&&n.command.charCodeAt(0)>96&&c.length==l.length-1&&(a[0]<0||Math.floor(a[0])===0&&!Number.isInteger(a[0])&&n.args[n.args.length-1]%1)))&&(e.command=i.toUpperCase(),e.args=o),n=e,!0})),e}function tT(e){let t=nT([0,0,e[2],e[3],e[0],e[1],e[4],e[5]]);return t!=null&&e[2]<t[0]==t[0]<0&&e[3]<t[1]==t[1]<0&&e[4]<t[0]==t[0]<e[0]&&e[5]<t[1]==t[1]<e[1]}function nT(e){let t=e[1]-e[3],n=e[2]-e[0],r=e[0]*e[3]-e[2]*e[1],i=e[5]-e[7],a=e[6]-e[4],o=e[4]*e[7]-e[5]*e[6],s=t*a-i*n;if(!s)return;let c=[(n*o-a*r)/s,(t*o-i*r)/-s];if(!isNaN(c[0])&&!isNaN(c[1])&&isFinite(c[0])&&isFinite(c[1]))return c}function rT(e){let t=Jw||0;for(let n=e.length;n-->0;){let r=cC(e[n],t);if(r!==e[n]){let i=cC(e[n],t-1);e[n]=cC(Math.abs(i-e[n]),t+1)>=$?r:i}}return e}function iT(e){for(let t=e.length;t-->0;)e[t]=Math.round(e[t]);return e}function aT(e){let t=e.length-2,n=-e[t+1],r=e[t],i=1/(n*n+r*r);if(t<=1||!isFinite(i))return!1;for(;(t-=2)>=0;)if(Math.sqrt((n*e[t]+r*e[t+1])**2*i)>$)return!1;return!0}function oT(e){if(e[3]===1)return;let[t,n]=e;if(Math.abs(t-n)>$)return;let r=Math.hypot(e[5],e[6]);if(!(r>t*2))return t-Math.sqrt(t**2-.25*r**2)}function sT(e,t){switch(e.command){case`s`:e.command=`c`;break;case`t`:e.command=`q`}return e.args.unshift(t[t.length-2]-t[t.length-4],t[t.length-1]-t[t.length-3]),e}function cT(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function lT(e,t){return[2*t[0]-e[0],2*t[1]-e[1]]}function uT(e,t){let n=t*t,r=n*t,i=1-t,a=i*i;return[3*a*t*e[0]+3*i*n*e[2]+r*e[4],3*a*t*e[1]+3*i*n*e[3]+r*e[5]]}function dT(e){let t=uT(e,.5),n=[t[0]/2,t[1]/2],r=[(t[0]+e[4])/2,(t[1]+e[5])/2],i=nT([n[0],n[1],n[0]+n[1],n[1]-n[0],r[0],r[1],r[0]+(r[1]-t[1]),r[1]-(r[0]-t[0])]),a=i&&cT([0,0],i),o=Math.min(Yw*$,Xw*a/100);if(i&&a<0x38d7ea4c68000&&[1/4,3/4].every((function(t){return Math.abs(cT(uT(e,t),i)-a)<=o})))return{center:i,radius:a}}function fT(e,t){let n=Math.min(Yw*$,Xw*t.radius/100);return[0,1/4,.5,3/4,1].every((function(r){return Math.abs(cT(uT(e,r),t.center)-t.radius)<=n}))}function pT(e,t){return fT(e,{center:[t.center[0]+e[4],t.center[1]+e[5]],radius:t.radius})}function mT(e,t){let n=-t.center[0],r=-t.center[1],i=e[4]-t.center[0],a=e[5]-t.center[1];return Math.acos((n*i+r*a)/Math.sqrt((n*n+r*r)*(i*i+a*a)))}function hT(e,t){return t.reduce((function(t,n){let r=``;return n.args&&(r=nC(qw(n.args.slice()),e)),t+n.command+r}),``)}var gT=Object.freeze({__proto__:null,description:`optimizes path data: writes in shorter form, applies transformations`,fn:Zw,name:`convertPathData`});const _T=(e,t)=>{let{convertToShorts:n=!0,degPrecision:r,floatPrecision:i=3,transformPrecision:a=5,matrixToTransform:o=!0,shortTranslate:s=!0,shortScale:c=!0,shortRotate:l=!0,removeUseless:u=!0,collapseIntoOne:d=!0,leadingZero:f=!0,negativeExtraSpace:p=!1}=t,m={convertToShorts:n,degPrecision:r,floatPrecision:i,transformPrecision:a,matrixToTransform:o,shortTranslate:s,shortScale:c,shortRotate:l,removeUseless:u,collapseIntoOne:d,leadingZero:f,negativeExtraSpace:p};return{element:{enter:e=>{e.attributes.transform!=null&&vT(e,`transform`,m),e.attributes.gradientTransform!=null&&vT(e,`gradientTransform`,m),e.attributes.patternTransform!=null&&vT(e,`patternTransform`,m)}}}},vT=(e,t,n)=>{let r=Sw(e.attributes[t]);n=yT(r,n),n.collapseIntoOne&&r.length>1&&(r=[Cw(r)]),n.convertToShorts?r=xT(r,n):r.forEach((e=>Fw(e,n))),n.removeUseless&&(r=ST(r)),r.length?e.attributes[t]=Vw(r,n):delete e.attributes[t]},yT=(e,{...t})=>{let n=[];for(let t of e)t.name==`matrix`&&n.push(...t.data.slice(0,4));let r=t.transformPrecision;return n.length&&(t.transformPrecision=Math.min(t.transformPrecision,Math.max.apply(Math,n.map(bT))||t.transformPrecision),r=Math.max.apply(Math,n.map((e=>e.toString().replace(/\D+/g,``).length)))),t.degPrecision??=Math.max(0,Math.min(t.floatPrecision,r-2)),t},bT=e=>{let t=e.toString();return t.slice(t.indexOf(`.`)).length-1},xT=(e,t)=>{for(let n=0;n<e.length;n++){let r=e[n];if(t.matrixToTransform&&r.name===`matrix`){let i=jw(r,t);Vw(i,t).length<=Vw([r],t).length&&e.splice(n,1,...i),r=e[n]}Fw(r,t),t.shortTranslate&&r.name===`translate`&&r.data.length===2&&!r.data[1]&&r.data.pop(),t.shortScale&&r.name===`scale`&&r.data.length===2&&r.data[0]===r.data[1]&&r.data.pop(),t.shortRotate&&e[n-2]?.name===`translate`&&e[n-1].name===`rotate`&&e[n].name===`translate`&&e[n-2].data[0]===-e[n].data[0]&&e[n-2].data[1]===-e[n].data[1]&&(e.splice(n-2,3,{name:`rotate`,data:[e[n-1].data[0],e[n-2].data[0],e[n-2].data[1]]}),n-=2)}return e},ST=e=>e.filter((e=>!([`translate`,`rotate`,`skewX`,`skewY`].indexOf(e.name)>-1&&(e.data.length==1||e.name==`rotate`)&&!e.data[0]||e.name==`translate`&&!e.data[0]&&!e.data[1]||e.name==`scale`&&e.data[0]==1&&(e.data.length<2||e.data[1]==1)||e.name==`matrix`&&e.data[0]==1&&e.data[3]==1&&!(e.data[1]||e.data[2]||e.data[4]||e.data[5]))));var CT=Object.freeze({__proto__:null,description:`collapses multiple transformations and optimizes it`,fn:_T,name:`convertTransform`}),wT=Object.freeze({__proto__:null,description:`removes empty attributes`,fn:()=>({element:{enter:e=>{for(let[t,n]of Object.entries(e.attributes))n!==``||j.conditionalProcessing.has(t)||delete e.attributes[t]}}}),name:`removeEmptyAttrs`}),TT=Object.freeze({__proto__:null,description:`removes empty container elements`,fn:e=>{let t=IS(e),n=/* @__PURE__ */ new Set,r=/* @__PURE__ */ new Map;return{element:{enter:(e,t)=>{if(e.name===`use`)for(let[n,i]of Object.entries(e.attributes)){let a=sC(n,i);for(let n of a){let i=r.get(n);i===void 0&&(i=[],r.set(n,i)),i.push({node:e,parent:t})}}},exit:(e,r)=>{e.name===`svg`||!Rn.container.has(e.name)||e.children.length!==0||e.name===`pattern`&&Object.keys(e.attributes).length!==0||e.name===`mask`&&e.attributes.id!=null||r.type===`element`&&r.name===`switch`||e.name===`g`&&(e.attributes.filter!=null||LS(t,e).filter)||(A(e,r),e.attributes.id&&n.add(e.attributes.id))}},root:{exit:()=>{for(let e of n){let t=r.get(e);if(t)for(let e of t)A(e.node,e.parent)}}}}},name:`removeEmptyContainers`});function ET(e,t){let n=e[t];return n?.type===`static`&&oC(n.value)}var DT=Object.freeze({__proto__:null,description:`merges multiple paths in one if possible`,fn:(e,t)=>{let{force:n=!1,floatPrecision:r=3,noSpaceAfterFlags:i=!1}=t,a=IS(e);return{element:{enter:e=>{if(e.children.length<=1)return;let t=[],o=e.children[0],s=null,c=(e,t)=>{sw(e,t,{floatPrecision:r,noSpaceAfterFlags:i}),s=null};for(let r=1;r<e.children.length;r++){let i=e.children[r];if(o.type!==`element`||o.name!==`path`||o.children.length!==0||o.attributes.d==null){s&&o.type===`element`&&c(o,s),o=i;continue}if(i.type!==`element`||i.name!==`path`||i.children.length!==0||i.attributes.d==null){s&&c(o,s),o=i;continue}let l=LS(a,i);if(l[`marker-start`]||l[`marker-mid`]||l[`marker-end`]||l[`clip-path`]||l.mask||l[`mask-image`]||[`fill`,`filter`,`stroke`].some((e=>ET(l,e)))){s&&c(o,s),o=i;continue}let u=Object.keys(i.attributes);if(u.length!==Object.keys(o.attributes).length||u.some((e=>e!==`d`&&o.type===`element`&&o.attributes[e]!==i.attributes[e]))){s&&c(o,s),o=i;continue}let d=s!=null,f=aw(i);s??=aw(o),n||!lw(s,f)?(s.push(...f),t.push(i)):(d&&c(o,s),o=i,s=null)}s&&o.type===`element`&&c(o,s),e.children=e.children.filter((e=>!t.includes(e)))}}}},name:`mergePaths`}),OT=Object.freeze({__proto__:null,description:`removes unused namespaces declaration`,fn:()=>{let e=/* @__PURE__ */ new Set;return{element:{enter:(t,n)=>{if(t.name===`svg`&&n.type===`root`){for(let n of Object.keys(t.attributes))if(n.startsWith(`xmlns:`)){let t=n.slice(6);e.add(t)}}if(e.size!==0){if(t.name.includes(`:`)){let[n]=t.name.split(`:`);e.has(n)&&e.delete(n)}for(let n of Object.keys(t.attributes))if(n.includes(`:`)){let[t]=n.split(`:`);e.delete(t)}}},exit:(t,n)=>{if(t.name===`svg`&&n.type===`root`)for(let n of e)delete t.attributes[`xmlns:${n}`]}}}},name:`removeUnusedNS`}),kT=Object.freeze({__proto__:null,description:`Sort element attributes for better compression`,fn:(e,t)=>{let{order:n=[`id`,`width`,`height`,`x`,`x1`,`x2`,`y`,`y1`,`y2`,`cx`,`cy`,`r`,`fill`,`stroke`,`marker`,`d`,`points`],xmlnsOrder:r=`front`}=t,i=e=>{if(r===`front`){if(e===`xmlns`)return 3;if(e.startsWith(`xmlns:`))return 2}return+!!e.includes(`:`)},a=([e],[t])=>{let r=i(e),a=i(t)-r;if(a!==0)return a;let[o]=e.split(`-`),[s]=t.split(`-`);if(o!==s){let e=+!!n.includes(o),t=+!!n.includes(s);if(e===1&&t===1)return n.indexOf(o)-n.indexOf(s);let r=t-e;if(r!==0)return r}return e<t?-1:1};return{element:{enter:e=>{let t=Object.entries(e.attributes);t.sort(a);let n={};for(let[e,r]of t)n[e]=r;e.attributes=n}}}},name:`sortAttrs`}),AT=Object.freeze({__proto__:null,description:`Sorts children of <defs> to improve compression`,fn:()=>({element:{enter:e=>{if(e.name===`defs`){let t=/* @__PURE__ */ new Map;for(let n of e.children)if(n.type===`element`){let e=t.get(n.name);e==null?t.set(n.name,1):t.set(n.name,e+1)}e.children.sort(((e,n)=>{if(e.type!==`element`||n.type!==`element`)return 0;let r=t.get(e.name),i=t.get(n.name);if(r!=null&&i!=null){let e=i-r;if(e!==0)return e}let a=n.name.length-e.name.length;return a===0?e.name===n.name?0:e.name>n.name?-1:1:a}))}}}}),name:`sortDefsChildren`});const jT=/^(Created with|Created using)/;var MT=Object.freeze({__proto__:null,description:`removes <desc>`,fn:(e,t)=>{let{removeAny:n=!1}=t;return{element:{enter:(e,t)=>{e.name===`desc`&&(n||e.children.length===0||e.children[0].type===`text`&&jT.test(e.children[0].value))&&A(e,t)}}}},name:`removeDesc`});const NT=r({name:`preset-default`,plugins:[Pn,Fn,Ln,HS,US,WS,JS,YS,ZS,lC,hC,vC,xC,DC,jC,MC,NC,LC,JC,YC,ZC,QC,$C,tw,rw,gT,CT,wT,TT,DT,OT,kT,AT,MT]});var PT=Object.freeze({__proto__:null,description:`adds attributes to an outer <svg> element`,fn:(e,t)=>{if(!Array.isArray(t.attributes)&&!t.attribute)return console.error(`Error in plugin "addAttributesToSVGElement": absent parameters.
27
+ It should have a list of "attributes" or one "attribute".
28
+ Config example:
29
+
30
+ plugins: [
31
+ {
32
+ name: 'addAttributesToSVGElement',
33
+ params: {
34
+ attribute: "mySvg"
35
+ }
36
+ }
37
+ ]
38
+
39
+ plugins: [
40
+ {
41
+ name: 'addAttributesToSVGElement',
42
+ params: {
43
+ attributes: ["mySvg", "size-big"]
44
+ }
45
+ }
46
+ ]
47
+
48
+ plugins: [
49
+ {
50
+ name: 'addAttributesToSVGElement',
51
+ params: {
52
+ attributes: [
53
+ {
54
+ focusable: false
55
+ },
56
+ {
57
+ 'data-image': icon
58
+ }
59
+ ]
60
+ }
61
+ }
62
+ ]
63
+ `),null;let n=t.attributes||[t.attribute];return{element:{enter:(e,t)=>{if(e.name===`svg`&&t.type===`root`){for(let t of n)if(typeof t==`string`&&e.attributes[t]==null&&(e.attributes[t]=void 0),typeof t==`object`)for(let n of Object.keys(t))e.attributes[n]??(e.attributes[n]=t[n])}}}}},name:`addAttributesToSVGElement`}),FT=Object.freeze({__proto__:null,description:`adds classnames to an outer <svg> element`,fn:(e,t,n)=>{if(!(Array.isArray(t.classNames)&&t.classNames.length!==0)&&!t.className)return console.error(`Error in plugin "addClassesToSVGElement": absent parameters.
64
+ It should have a list of classes in "classNames" or one "className".
65
+ Config example:
66
+
67
+ plugins: [
68
+ {
69
+ name: "addClassesToSVGElement",
70
+ params: {
71
+ className: "mySvg"
72
+ }
73
+ }
74
+ ]
75
+
76
+ plugins: [
77
+ {
78
+ name: "addClassesToSVGElement",
79
+ params: {
80
+ classNames: ["mySvg", "size-big"]
81
+ }
82
+ }
83
+ ]
84
+ `),null;let r=t.classNames||[t.className];return{element:{enter:(e,t)=>{if(e.name===`svg`&&t.type===`root`){let t=new Set(e.attributes.class==null?null:e.attributes.class.split(` `));for(let i of r)if(i!=null){let r=typeof i==`string`?i:i(e,n);t.add(r)}e.attributes.class=Array.from(t).join(` `)}}}}},name:`addClassesToSVGElement`});const IT=/^([-+]?\d*\.?\d+([eE][-+]?\d+)?)(px|pt|pc|mm|cm|m|in|ft|em|ex|%)?$/,LT=/\s+,?\s*|,\s*/,RT={cm:96/2.54,mm:96/25.4,in:96,pt:4/3,pc:16,px:1};var zT=Object.freeze({__proto__:null,description:`rounds list of values to the fixed precision`,fn:(e,t)=>{let{floatPrecision:n=3,leadingZero:r=!0,defaultPx:i=!0,convertToPx:a=!0}=t,o=e=>{let t=[];for(let o of e.split(LT)){let e=o.match(IT),s=o.match(/new/);if(e){let o=Number(Number(e[1]).toFixed(n)),s=e[3]||``;if(a&&s&&s in RT){let t=Number((RT[s]*Number(e[1])).toFixed(n));t.toString().length<e[0].length&&(o=t,s=`px`)}let c;c=r?rC(o):o.toString(),i&&s===`px`&&(s=``),t.push(c+s)}else s?t.push(`new`):o&&t.push(o)}return t.join(` `)};return{element:{enter:e=>{e.attributes.points!=null&&(e.attributes.points=o(e.attributes.points)),e.attributes[`enable-background`]!=null&&(e.attributes[`enable-background`]=o(e.attributes[`enable-background`])),e.attributes.viewBox!=null&&(e.attributes.viewBox=o(e.attributes.viewBox)),e.attributes[`stroke-dasharray`]!=null&&(e.attributes[`stroke-dasharray`]=o(e.attributes[`stroke-dasharray`])),e.attributes.dx!=null&&(e.attributes.dx=o(e.attributes.dx)),e.attributes.dy!=null&&(e.attributes.dy=o(e.attributes.dy)),e.attributes.x!=null&&(e.attributes.x=o(e.attributes.x)),e.attributes.y!=null&&(e.attributes.y=o(e.attributes.y))}}}},name:`cleanupListOfValues`}),BT=Object.freeze({__proto__:null,description:`converts one-stop (single color) gradients to a plain color`,fn:e=>{let t=IS(e),n=/* @__PURE__ */ new Set,r=/* @__PURE__ */ new Map,i=/* @__PURE__ */ new Map,a=0;return{element:{enter:(o,s)=>{if(o.attributes[`xlink:href`]!=null&&a++,o.name===`defs`){r.set(o,s);return}if(o.name!==`linearGradient`&&o.name!==`radialGradient`)return;let c=o.children.filter((e=>e.type===`element`&&e.name===`stop`)),l=o.attributes[`xlink:href`]||o.attributes.href,u=c.length===0&&l!=null&&l.startsWith(`#`)?Mn(e,l):o;if(u==null||u.type!==`element`){i.set(o,s);return}let d=u.children.filter((e=>e.type===`element`&&e.name===`stop`));if(d.length!==1||d[0].type!==`element`)return;s.type===`element`&&s.name===`defs`&&n.add(s),i.set(o,s);let f,p=LS(t,d[0])[`stop-color`];p!=null&&p.type===`static`&&(f=p.value);let m=`url(#${o.attributes.id})`,h=[...Xn].map((e=>`[${e}="${m}"]`)).join(`,`),g=jn(e,h);for(let e of g)if(e.type===`element`)for(let t of Xn)e.attributes[t]===m&&(f==null?delete e.attributes[t]:e.attributes[t]=f);let _=jn(e,`[style*=${m}]`);for(let e of _)e.type===`element`&&(e.attributes.style=e.attributes.style.replace(m,f||Vn.presentation[`stop-color`]))},exit:e=>{if(e.name===`svg`){for(let[e,t]of i.entries())e.attributes[`xlink:href`]!=null&&a--,A(e,t);a===0&&delete e.attributes[`xmlns:xlink`];for(let[e,t]of r.entries())n.has(e)&&e.children.length===0&&A(e,t)}}}}},name:`convertOneStopGradients`});const VT=(...e)=>`(?:`+e.join(`|`)+`)`,HT=j.presentation,UT=`\\\\(?:[0-9a-f]{1,6}\\s?|\\r\\n|.)`,WT=`\\s*(`+VT(`[^:;\\\\]`,UT)+`*?)\\s*`,GT=`'(?:[^'\\n\\r\\\\]|`+UT+`)*?(?:'|$)`,KT=`"(?:[^"\\n\\r\\\\]|`+UT+`)*?(?:"|$)`,qT=RegExp(`^`+VT(GT,KT)+`$`),JT=`\\s*(`+VT(`[^!'"();\\\\]+?`,UT,GT,KT,`\\(`+VT(`[^'"()\\\\]+`,UT,GT,KT)+`*?\\)`,`[^;]*?`)+`*?)`,YT=RegExp(WT+`:`+JT+`(\\s*!important(?![-(\\w]))?\\s*(?:;\\s*|$)`,`ig`),XT=new RegExp(VT(UT,GT,KT,`/\\*[^]*?\\*/`),`ig`);var ZT=Object.freeze({__proto__:null,description:`converts style to attributes`,fn:(e,t)=>{let{keepImportant:n=!1}=t;return{element:{enter:e=>{if(e.attributes.style!=null){let r=[],i={},a=e.attributes.style.replace(XT,(e=>e[0]==`/`?``:e[0]==`\\`&&/[-g-z]/i.test(e[1])?e[1]:e));YT.lastIndex=0;for(var t;t=YT.exec(a);)n&&t[3]||r.push([t[1],t[2]]);r.length&&(r=r.filter((function(e){if(e[0]){let t=e[0].toLowerCase(),n=e[1];if(qT.test(n)&&(n=n.slice(1,-1)),HT.has(t))return i[t]=n,!1}return!0})),Object.assign(e.attributes,i),r.length?e.attributes.style=r.map((e=>e.join(`:`))).join(`;`):delete e.attributes.style)}}}}},name:`convertStyleToAttrs`});const QT=e=>{let t=/[/\\]?([^/\\]+)$/.exec(e);return t?t[1]:``},$T=e=>e.replace(/[. ]/g,`_`),eE=e=>e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`)?e.slice(1,-1):e,tE=(e,t)=>{let n=e(t);return t.startsWith(n)?t:n+t},nE=(e,t)=>t.startsWith(`#`)?`#`+tE(e,t.slice(1)):null,rE=(e,t,n,r,i,a)=>{if(typeof r==`function`){let o=a.get(e);return o??(o=r(t,n)+i,a.set(e,o)),o}return typeof r==`string`?r+i:r===!1?``:n.path!=null&&n.path.length>0?$T(QT(n.path))+i:`prefix`+i};var iE=Object.freeze({__proto__:null,description:`prefix IDs`,fn:(e,t,n)=>{let{delim:r=`__`,prefix:i,prefixIds:a=!0,prefixClassNames:o=!0}=t,s=/* @__PURE__ */ new Map;return{element:{enter:e=>{let t=t=>rE(t,e,n,i,r,s);if(e.name===`style`){if(e.children.length===0)return;for(let n of e.children){if(n.type!==`text`&&n.type!==`cdata`)continue;let e=n.value,r;try{r=Zd(e,{parseValue:!0,parseCustomProperty:!1})}catch{return}H(r,(e=>{if(a&&e.type===`IdSelector`||o&&e.type===`ClassSelector`)e.name=tE(t,e.name);else if(e.type===`Url`&&e.value.length>0){let n=nE(t,eE(e.value));n!=null&&(e.value=n)}})),n.value=V(r)}}a&&e.attributes.id!=null&&e.attributes.id.length!==0&&(e.attributes.id=tE(t,e.attributes.id)),o&&e.attributes.class!=null&&e.attributes.class.length!==0&&(e.attributes.class=e.attributes.class.split(/\s+/).map((e=>tE(t,e))).join(` `));for(let n of[`href`,`xlink:href`])if(e.attributes[n]!=null&&e.attributes[n].length!==0){let r=nE(t,e.attributes[n]);r!=null&&(e.attributes[n]=r)}for(let n of Gn)e.attributes[n]!=null&&e.attributes[n].length!==0&&(e.attributes[n]=e.attributes[n].replace(/\burl\((["'])?(#.+?)\1\)/gi,((e,n,r)=>{let i=nE(t,r);return i==null?e:`url(${i})`})));for(let n of[`begin`,`end`])if(e.attributes[n]!=null&&e.attributes[n].length!==0){let r=e.attributes[n].split(/\s*;\s+/).map((e=>{if(e.endsWith(`.end`)||e.endsWith(`.start`)){let[n,r]=e.split(`.`);return`${tE(t,n)}.${r}`}return e}));e.attributes[n]=r.join(`; `)}}}}},name:`prefixIds`}),aE=Object.freeze({__proto__:null,description:`removes attributes of elements that match a css selector`,fn:(e,t)=>{let n=Array.isArray(t.selectors)?t.selectors:[t];for(let{selector:t,attributes:r}of n){let n=jn(e,t);for(let e of n)if(e.type===`element`){if(Array.isArray(r))for(let t of r)delete e.attributes[t];else delete e.attributes[r]}}return{}},name:`removeAttributesBySelector`}),oE=Object.freeze({__proto__:null,description:`removes specified attributes`,fn:(e,t)=>{if(t.attrs===void 0)return console.warn(`Warning: The plugin "removeAttrs" requires the "attrs" parameter.
85
+ It should have a pattern to remove, otherwise the plugin is a noop.
86
+ Config example:
87
+
88
+ plugins: [
89
+ {
90
+ name: "removeAttrs",
91
+ params: {
92
+ attrs: "(fill|stroke)"
93
+ }
94
+ }
95
+ ]
96
+ `),null;let n=typeof t.elemSeparator==`string`?t.elemSeparator:`:`,r=typeof t.preserveCurrentColor==`boolean`&&t.preserveCurrentColor,i=Array.isArray(t.attrs)?t.attrs:[t.attrs];return{element:{enter:e=>{for(let t of i){t.includes(n)?t.split(n).length<3&&(t=[t,`.*`].join(n)):t=[`.*`,t,`.*`].join(n);let i=t.split(n).map((e=>(e===`*`&&(e=`.*`),new RegExp([`^`,e,`$`].join(``),`i`))));if(i[0].test(e.name))for(let[t,n]of Object.entries(e.attributes)){let a=n.toLowerCase()===`currentcolor`;!(r&&t==`fill`&&a)&&!(r&&t==`stroke`&&a)&&i[1].test(t)&&i[2].test(n)&&delete e.attributes[t]}}}}}},name:`removeAttrs`}),sE=Object.freeze({__proto__:null,description:`removes width and height in presence of viewBox (opposite to removeViewBox)`,fn:()=>({element:{enter:e=>{if(e.name===`svg`){if(e.attributes.viewBox!=null)delete e.attributes.width,delete e.attributes.height;else if(e.attributes.width!=null&&e.attributes.height!=null&&Number.isNaN(Number(e.attributes.width))===!1&&Number.isNaN(Number(e.attributes.height))===!1){let t=Number(e.attributes.width),n=Number(e.attributes.height);e.attributes.viewBox=`0 0 ${t} ${n}`,delete e.attributes.width,delete e.attributes.height}}}}}),name:`removeDimensions`}),cE=Object.freeze({__proto__:null,description:`removes arbitrary elements by ID or className`,fn:(e,t)=>{let n=t.id==null?[]:Array.isArray(t.id)?t.id:[t.id],r=t.class==null?[]:Array.isArray(t.class)?t.class:[t.class];return{element:{enter:(e,t)=>{if(e.attributes.id!=null&&n.length!==0&&n.includes(e.attributes.id)&&A(e,t),e.attributes.class&&r.length!==0){let n=e.attributes.class.split(` `);for(let i of r)if(n.includes(i)){A(e,t);break}}}}}},name:`removeElementsByAttr`}),lE=Object.freeze({__proto__:null,description:`removes elements that are drawn outside of the viewBox`,fn:()=>{let t=null;return{element:{enter:(n,r)=>{if(n.name===`svg`&&r.type===`root`){let e=``;n.attributes.viewBox==null?n.attributes.height!=null&&n.attributes.width!=null&&(e=`0 0 ${n.attributes.width} ${n.attributes.height}`):e=n.attributes.viewBox,e=e.replace(/[,+]|px/g,` `).replace(/\s+/g,` `).replace(/^\s*|\s*$/g,``);let r=/^(-?\d*\.?\d+) (-?\d*\.?\d+) (\d*\.?\d+) (\d*\.?\d+)$/.exec(e);if(r==null)return;let i=Number.parseFloat(r[1]),a=Number.parseFloat(r[2]),o=Number.parseFloat(r[3]),s=Number.parseFloat(r[4]);t={left:i,top:a,right:i+o,bottom:a+s,width:o,height:s}}if(n.attributes.transform!=null)return e;if(n.name===`path`&&n.attributes.d!=null&&t!=null){let e=UC(n.attributes.d),i=!1;for(let n of e)if(n.command===`M`){let[e,r]=n.args;e>=t.left&&e<=t.right&&r>=t.top&&r<=t.bottom&&(i=!0)}if(i)return;e.length===2&&e.push({command:`z`,args:[]});let{left:a,top:o,width:s,height:c}=t;lw([{command:`M`,args:[a,o]},{command:`h`,args:[s]},{command:`v`,args:[c]},{command:`H`,args:[a]},{command:`z`,args:[]}],e)===!1&&A(n,r)}}}}},name:`removeOffCanvasPaths`}),uE=Object.freeze({__proto__:null,description:`removes raster images`,fn:()=>({element:{enter:(e,t)=>{e.name===`image`&&e.attributes[`xlink:href`]!=null&&/(\.|image\/)(jpe?g|png|gif)/.test(e.attributes[`xlink:href`])&&A(e,t)}}}),name:`removeRasterImages`});const dE=[...j.animationEvent,...j.documentEvent,...j.documentElementEvent,...j.globalEvent,...j.graphicalEvent];var fE=Object.freeze({__proto__:null,description:`removes scripts`,fn:()=>({element:{enter:(e,t)=>{if(e.name===`script`)A(e,t);else for(let t of dE)e.attributes[t]!=null&&delete e.attributes[t]},exit:(e,t)=>{if(e.name===`a`){for(let n of Object.keys(e.attributes))if(n===`href`||n.endsWith(`:href`)){if(e.attributes[n]==null||!e.attributes[n].trimStart().startsWith(`javascript:`))continue;let r=t.children.indexOf(e),i=e.children.filter((e=>e.type!==`text`));t.children.splice(r,1,...i)}}}}}),name:`removeScripts`}),pE=Object.freeze({__proto__:null,description:`removes <style> element`,fn:()=>({element:{enter:(e,t)=>{e.name===`style`&&A(e,t)}}}),name:`removeStyleElement`}),mE=Object.freeze({__proto__:null,description:`removes <title>`,fn:()=>({element:{enter:(e,t)=>{e.name===`title`&&A(e,t)}}}),name:`removeTitle`});const hE=/* @__PURE__ */ new Set([`pattern`,`svg`,`symbol`]);var gE=Object.freeze({__proto__:null,description:`removes viewBox attribute when possible`,fn:()=>({element:{enter:(e,t)=>{if(hE.has(e.name)&&e.attributes.viewBox!=null&&e.attributes.width!=null&&e.attributes.height!=null){if(e.name===`svg`&&t.type!==`root`)return;let n=e.attributes.viewBox.split(/[ ,]+/g);n[0]===`0`&&n[1]===`0`&&e.attributes.width.replace(/px$/,``)===n[2]&&e.attributes.height.replace(/px$/,``)===n[3]&&delete e.attributes.viewBox}}}}),name:`removeViewBox`});const _E=`http://www.w3.org/1999/xlink`,vE={new:`_blank`,replace:`_self`},yE=/* @__PURE__ */ new Set([`cursor`,`filter`,`font-face-uri`,`glyphRef`,`tref`]),bE=(e,t,n)=>t.map((e=>`${e}:${n}`)).filter((t=>e.attributes[t]!=null));var xE=Object.freeze({__proto__:null,description:`remove xlink namespace and replaces attributes with the SVG 2 equivalent where applicable`,fn:(e,t)=>{let{includeLegacy:n}=t,r=[],i=[],a=[];return{element:{enter:e=>{for(let[t,n]of Object.entries(e.attributes))if(t.startsWith(`xmlns:`)){let e=t.split(`:`,2)[1];if(n===_E){r.push(e);continue}r.includes(e)&&i.push(e)}if(i.some((e=>r.includes(e))))return;let t=bE(e,r,`show`),o=e.attributes.target!=null;for(let n=t.length-1;n>=0;n--){let r=t[n],i=e.attributes[r],a=vE[i];o||a==null?delete e.attributes[r]:(a!==Un[e.name]?.defaults?.target&&(e.attributes.target=a),delete e.attributes[r],o=!0)}let s=bE(e,r,`title`);for(let t=s.length-1;t>=0;t--){let n=s[t],r=e.attributes[n];if(e.children.filter((e=>e.type===`element`&&e.name===`title`)).length>0){delete e.attributes[n];continue}let i={type:`element`,name:`title`,attributes:{},children:[{type:`text`,value:r}]};Object.defineProperty(i,"parentNode",{writable:!0,value:e}),e.children.unshift(i),delete e.attributes[n]}let c=bE(e,r,`href`);if(c.length>0&&yE.has(e.name)&&!n)c.map((e=>e.split(`:`,1)[0])).forEach((e=>a.push(e)));else for(let t=c.length-1;t>=0;t--){let n=c[t],r=e.attributes[n];e.attributes.href??(e.attributes.href=r),delete e.attributes[n]}},exit:e=>{for(let[t,o]of Object.entries(e.attributes)){let[s,c]=t.split(`:`,2);if(r.includes(s)&&!i.includes(s)&&!a.includes(s)&&!n)delete e.attributes[t];else if(t.startsWith(`xmlns:`)&&!a.includes(c)){if(o===_E){let n=r.indexOf(c);r.splice(n,1),delete e.attributes[t];continue}if(i.includes(s)){let e=i.indexOf(c);i.splice(e,1)}}}}}}},name:`removeXlink`}),SE=Object.freeze({__proto__:null,description:`removes xmlns attribute (for inline svg)`,fn:()=>({element:{enter:e=>{e.name===`svg`&&delete e.attributes.xmlns}}}),name:`removeXMLNS`}),CE=Object.freeze({__proto__:null,description:`Finds <path> elements with the same d, fill, and stroke, and converts them to <use> elements referencing a single <path> def.`,fn:e=>{let t=IS(e),n=/* @__PURE__ */ new Map,r,i=/* @__PURE__ */ new Set;return{element:{enter:(e,t)=>{if(e.name===`path`&&e.attributes.d!=null){let t=e.attributes.d,r=e.attributes.fill||``,i=e.attributes.stroke||``,a=t+`;s:`+i+`;f:`+r,o=n.get(a);o??(o=[],n.set(a,o)),o.push(e)}if(r==null&&e.name===`defs`&&t.type===`element`&&t.name===`svg`&&(r=e),e.name===`use`)for(let t of[`href`,`xlink:href`]){let n=e.attributes[t];n!=null&&n.startsWith(`#`)&&n.length>1&&i.add(n.slice(1))}},exit:(e,a)=>{if(e.name===`svg`&&a.type===`root`){let a=r;a??={type:`element`,name:`defs`,attributes:{},children:[]};let o=0;for(let r of n.values())if(r.length>1){let n={type:`element`,name:`path`,attributes:{},children:[]};for(let e of[`fill`,`stroke`,`d`])r[0].attributes[e]!=null&&(n.attributes[e]=r[0].attributes[e]);let s=r[0].attributes.id;s==null||i.has(s)||t.rules.some((e=>e.selector===`#${s}`))?n.attributes.id=`reuse-`+o++:(n.attributes.id=s,delete r[0].attributes.id),a.children.push(n);for(let t of r){if(delete t.attributes.d,delete t.attributes.stroke,delete t.attributes.fill,a.children.includes(t)&&t.children.length===0){if(Object.keys(t.attributes).length===0){A(t,a);continue}if(Object.keys(t.attributes).length===1&&t.attributes.id!=null){A(t,a);let r=`[xlink\\:href=#${t.attributes.id}], [href=#${t.attributes.id}]`;for(let t of jn(e,r))if(t.type===`element`)for(let e of[`href`,`xlink:href`])t.attributes[e]!=null&&(t.attributes[e]=`#`+n.attributes.id);continue}}t.name=`use`,t.attributes[`xlink:href`]=`#`+n.attributes.id}}a.children.length!==0&&(e.attributes[`xmlns:xlink`]??(e.attributes[`xmlns:xlink`]=`http://www.w3.org/1999/xlink`),r??e.children.unshift(a))}}}}},name:`reusePaths`});const wE=Object.freeze([NT,PT,FT,JS,LC,hC,zT,xC,rw,DC,QC,BT,gT,ZC,ZT,CT,ZS,DT,YS,lC,$C,tw,iE,aE,oE,Ln,HS,MT,sE,Pn,WS,cE,wT,TT,YC,JC,US,MC,lE,uE,fE,pE,mE,jC,OT,vC,NC,gE,xE,SE,Fn,CE,kT,AT]);var TE={};(function(e){(function(e){e.parser=function(e,t){return new n(e,t)},e.SAXParser=n,e.MAX_BUFFER_LENGTH=65536;var t=[`comment`,`sgmlDecl`,`textNode`,`tagName`,`doctype`,`procInstName`,`procInstBody`,`entity`,`attribName`,`attribValue`,`cdata`,`script`];e.EVENTS=[`text`,`processinginstruction`,`sgmldeclaration`,`doctype`,`comment`,`opentagstart`,`attribute`,`opentag`,`closetag`,`opencdata`,`cdata`,`closecdata`,`error`,`end`,`ready`,`script`,`opennamespace`,`closenamespace`];function n(t,r){if(!(this instanceof n))return new n(t,r);var a=this;i(a),a.q=a.c=``,a.bufferCheckPosition=e.MAX_BUFFER_LENGTH,a.opt=r||{},a.opt.lowercase=a.opt.lowercase||a.opt.lowercasetags,a.looseCase=a.opt.lowercase?`toLowerCase`:`toUpperCase`,a.opt.maxEntityCount=a.opt.maxEntityCount||512,a.opt.maxEntityDepth=a.opt.maxEntityDepth||4,a.entityCount=a.entityDepth=0,a.tags=[],a.closed=a.closedRoot=a.sawRoot=!1,a.tag=a.error=null,a.strict=!!t,a.noscript=!!(t||a.opt.noscript),a.state=b.BEGIN,a.strictEntities=a.opt.strictEntities,a.ENTITIES=a.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),a.attribList=[],a.opt.xmlns&&(a.ns=Object.create(u)),a.opt.unquotedAttributeValues===void 0&&(a.opt.unquotedAttributeValues=!t),a.trackPosition=a.opt.position!==!1,a.trackPosition&&(a.position=a.line=a.column=0),S(a,`onready`)}Object.create||(Object.create=function(e){function t(){}return t.prototype=e,new t}),Object.keys||(Object.keys=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t});function r(n){for(var r=Math.max(e.MAX_BUFFER_LENGTH,10),i=0,a=0,o=t.length;a<o;a++){var s=n[t[a]].length;if(s>r)switch(t[a]){case`textNode`:ee(n);break;case`cdata`:C(n,`oncdata`,n.cdata),n.cdata=``;break;case`script`:C(n,`onscript`,n.script),n.script=``;break;default:w(n,`Max buffer length exceeded: `+t[a])}i=Math.max(i,s)}n.bufferCheckPosition=e.MAX_BUFFER_LENGTH-i+n.position}function i(e){for(var n=0,r=t.length;n<r;n++)e[t[n]]=``}function a(e){ee(e),e.cdata!==``&&(C(e,`oncdata`,e.cdata),e.cdata=``),e.script!==``&&(C(e,`onscript`,e.script),e.script=``)}n.prototype={end:function(){ne(this)},write:de,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var o=`[CDATA[`,s=`DOCTYPE`,c=`http://www.w3.org/XML/1998/namespace`,l=`http://www.w3.org/2000/xmlns/`,u={xml:c,xmlns:l},d=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,f=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,p=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,m=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function h(e){return e===` `||e===`
97
+ `||e===`\r`||e===` `}function g(e){return e===`"`||e===`'`}function _(e){return e===`>`||h(e)}function v(e,t){return e.test(t)}function y(e,t){return!v(e,t)}var b=0;for(var x in e.STATE={BEGIN:b++,BEGIN_WHITESPACE:b++,TEXT:b++,TEXT_ENTITY:b++,OPEN_WAKA:b++,SGML_DECL:b++,SGML_DECL_QUOTED:b++,DOCTYPE:b++,DOCTYPE_QUOTED:b++,DOCTYPE_DTD:b++,DOCTYPE_DTD_QUOTED:b++,COMMENT_STARTING:b++,COMMENT:b++,COMMENT_ENDING:b++,COMMENT_ENDED:b++,CDATA:b++,CDATA_ENDING:b++,CDATA_ENDING_2:b++,PROC_INST:b++,PROC_INST_BODY:b++,PROC_INST_ENDING:b++,OPEN_TAG:b++,OPEN_TAG_SLASH:b++,ATTRIB:b++,ATTRIB_NAME:b++,ATTRIB_NAME_SAW_WHITE:b++,ATTRIB_VALUE:b++,ATTRIB_VALUE_QUOTED:b++,ATTRIB_VALUE_CLOSED:b++,ATTRIB_VALUE_UNQUOTED:b++,ATTRIB_VALUE_ENTITY_Q:b++,ATTRIB_VALUE_ENTITY_U:b++,CLOSE_TAG:b++,CLOSE_TAG_SAW_WHITE:b++,SCRIPT:b++,SCRIPT_ENDING:b++},e.XML_ENTITIES={amp:`&`,gt:`>`,lt:`<`,quot:`"`,apos:`'`},e.ENTITIES={amp:`&`,gt:`>`,lt:`<`,quot:`"`,apos:`'`,AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach((function(t){var n=e.ENTITIES[t],r=typeof n==`number`?String.fromCharCode(n):n;e.ENTITIES[t]=r})),e.STATE)e.STATE[e.STATE[x]]=x;b=e.STATE;function S(e,t,n){e[t]&&e[t](n)}function C(e,t,n){e.textNode&&ee(e),S(e,t,n)}function ee(e){e.textNode=te(e.opt,e.textNode),e.textNode&&S(e,`ontext`,e.textNode),e.textNode=``}function te(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g,` `)),t}function w(e,t){return ee(e),e.trackPosition&&(t+=`
98
+ Line: `+e.line+`
99
+ Column: `+e.column+`
100
+ Char: `+e.c),t=Error(t),e.error=t,S(e,`onerror`,t),e}function ne(e){return e.sawRoot&&!e.closedRoot&&T(e,`Unclosed root tag`),e.state!==b.BEGIN&&e.state!==b.BEGIN_WHITESPACE&&e.state!==b.TEXT&&w(e,`Unexpected end`),ee(e),e.c=``,e.closed=!0,S(e,`onend`),n.call(e,e.strict,e.opt),e}function T(e,t){if(typeof e!=`object`||!(e instanceof n))throw Error(`bad call to strictFail`);e.strict&&w(e,t)}function re(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,n=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(n.ns=t.ns),e.attribList.length=0,C(e,`onopentagstart`,n)}function ie(e,t){var n=e.indexOf(`:`)<0?[``,e]:e.split(`:`),r=n[0],i=n[1];return t&&e===`xmlns`&&(r=`xmlns`,i=``),{prefix:r,local:i}}function ae(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),e.attribList.indexOf(e.attribName)!==-1||e.tag.attributes.hasOwnProperty(e.attribName))e.attribName=e.attribValue=``;else{if(e.opt.xmlns){var t=ie(e.attribName,!0),n=t.prefix,r=t.local;if(n===`xmlns`){if(r===`xml`&&e.attribValue!==c)T(e,`xml: prefix must be bound to `+c+`
101
+ Actual: `+e.attribValue);else if(r===`xmlns`&&e.attribValue!==l)T(e,`xmlns: prefix must be bound to `+l+`
102
+ Actual: `+e.attribValue);else{var i=e.tag,a=e.tags[e.tags.length-1]||e;i.ns===a.ns&&(i.ns=Object.create(a.ns)),i.ns[r]=e.attribValue}}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,C(e,`onattribute`,{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=``}}function oe(e,t){if(e.opt.xmlns){var n=e.tag,r=ie(e.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||``,n.prefix&&!n.uri&&(T(e,`Unbound namespace prefix: `+JSON.stringify(e.tagName)),n.uri=r.prefix);var i=e.tags[e.tags.length-1]||e;n.ns&&i.ns!==n.ns&&Object.keys(n.ns).forEach((function(t){C(e,`onopennamespace`,{prefix:t,uri:n.ns[t]})}));for(var a=0,o=e.attribList.length;a<o;a++){var s=e.attribList[a],c=s[0],l=s[1],u=ie(c,!0),d=u.prefix,f=u.local,p=d===``?``:n.ns[d]||``,m={name:c,value:l,prefix:d,local:f,uri:p};d&&d!==`xmlns`&&!p&&(T(e,`Unbound namespace prefix: `+JSON.stringify(d)),m.uri=d),e.tag.attributes[c]=m,C(e,`onattribute`,m)}e.attribList.length=0}e.tag.isSelfClosing=!!t,e.sawRoot=!0,e.tags.push(e.tag),C(e,`onopentag`,e.tag),t||(e.state=e.noscript||e.tagName.toLowerCase()!==`script`?b.TEXT:b.SCRIPT,e.tag=null,e.tagName=``),e.attribName=e.attribValue=``,e.attribList.length=0}function se(e){if(!e.tagName)T(e,`Weird empty close tag.`),e.textNode+=`</>`,e.state=b.TEXT;else{if(e.script){if(e.tagName!==`script`){e.script+=`</`+e.tagName+`>`,e.tagName=``,e.state=b.SCRIPT;return}C(e,`onscript`,e.script),e.script=``}var t=e.tags.length,n=e.tagName;e.strict||(n=n[e.looseCase]());for(var r=n;t--&&e.tags[t].name!==r;)T(e,`Unexpected close tag`);if(t<0)T(e,`Unmatched closing tag: `+e.tagName),e.textNode+=`</`+e.tagName+`>`,e.state=b.TEXT;else{e.tagName=n;for(var i=e.tags.length;i-->t;){var a=e.tag=e.tags.pop();e.tagName=e.tag.name,C(e,`onclosetag`,e.tagName);var o={};for(var s in a.ns)o[s]=a.ns[s];var c=e.tags[e.tags.length-1]||e;e.opt.xmlns&&a.ns!==c.ns&&Object.keys(a.ns).forEach((function(t){var n=a.ns[t];C(e,`onclosenamespace`,{prefix:t,uri:n})}))}t===0&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName=``,e.attribList.length=0,e.state=b.TEXT}}}function ce(e){var t=e.entity,n=t.toLowerCase(),r,i=``;return e.ENTITIES[t]?e.ENTITIES[t]:e.ENTITIES[n]?e.ENTITIES[n]:(t=n,t.charAt(0)===`#`&&(t.charAt(1)===`x`?(t=t.slice(2),r=parseInt(t,16),i=r.toString(16)):(t=t.slice(1),r=parseInt(t,10),i=r.toString(10))),t=t.replace(/^0+/,``),isNaN(r)||i.toLowerCase()!==t||r<0||r>1114111?(T(e,`Invalid character entity`),`&`+e.entity+`;`):String.fromCodePoint(r))}function le(e,t){t===`<`?(e.state=b.OPEN_WAKA,e.startTagPosition=e.position):h(t)||(T(e,`Non-whitespace before first tag.`),e.textNode=t,e.state=b.TEXT)}function ue(e,t){var n=``;return t<e.length&&(n=e.charAt(t)),n}function de(t){var n=this;if(this.error)throw this.error;if(n.closed)return w(n,`Cannot write after close. Assign an onready handler.`);if(t===null)return ne(n);typeof t==`object`&&(t=t.toString());for(var i=0,a=``;a=ue(t,i++),n.c=a,a;)switch(n.trackPosition&&(n.position++,a===`
103
+ `?(n.line++,n.column=0):n.column++),n.state){case b.BEGIN:if(n.state=b.BEGIN_WHITESPACE,a===``)continue;le(n,a);continue;case b.BEGIN_WHITESPACE:le(n,a);continue;case b.TEXT:if(n.sawRoot&&!n.closedRoot){for(var c=i-1;a&&a!==`<`&&a!==`&`;)a=ue(t,i++),a&&n.trackPosition&&(n.position++,a===`
104
+ `?(n.line++,n.column=0):n.column++);n.textNode+=t.substring(c,i-1)}a!==`<`||n.sawRoot&&n.closedRoot&&!n.strict?(h(a)||n.sawRoot&&!n.closedRoot||T(n,`Text data outside of root node.`),a===`&`?n.state=b.TEXT_ENTITY:n.textNode+=a):(n.state=b.OPEN_WAKA,n.startTagPosition=n.position);continue;case b.SCRIPT:a===`<`?n.state=b.SCRIPT_ENDING:n.script+=a;continue;case b.SCRIPT_ENDING:a===`/`?n.state=b.CLOSE_TAG:(n.script+=`<`+a,n.state=b.SCRIPT);continue;case b.OPEN_WAKA:if(a===`!`)n.state=b.SGML_DECL,n.sgmlDecl=``;else if(!h(a)){if(v(d,a))n.state=b.OPEN_TAG,n.tagName=a;else if(a===`/`)n.state=b.CLOSE_TAG,n.tagName=``;else if(a===`?`)n.state=b.PROC_INST,n.procInstName=n.procInstBody=``;else{if(T(n,`Unencoded <`),n.startTagPosition+1<n.position){var l=n.position-n.startTagPosition;a=Array(l).join(` `)+a}n.textNode+=`<`+a,n.state=b.TEXT}}continue;case b.SGML_DECL:if(n.sgmlDecl+a===`--`){n.state=b.COMMENT,n.comment=``,n.sgmlDecl=``;continue}n.doctype&&n.doctype!==!0&&n.sgmlDecl?(n.state=b.DOCTYPE_DTD,n.doctype+=`<!`+n.sgmlDecl+a,n.sgmlDecl=``):(n.sgmlDecl+a).toUpperCase()===o?(C(n,`onopencdata`),n.state=b.CDATA,n.sgmlDecl=``,n.cdata=``):(n.sgmlDecl+a).toUpperCase()===s?(n.state=b.DOCTYPE,(n.doctype||n.sawRoot)&&T(n,`Inappropriately located doctype declaration`),n.doctype=``,n.sgmlDecl=``):a===`>`?(C(n,`onsgmldeclaration`,n.sgmlDecl),n.sgmlDecl=``,n.state=b.TEXT):(g(a)&&(n.state=b.SGML_DECL_QUOTED),n.sgmlDecl+=a);continue;case b.SGML_DECL_QUOTED:a===n.q&&(n.state=b.SGML_DECL,n.q=``),n.sgmlDecl+=a;continue;case b.DOCTYPE:a===`>`?(n.state=b.TEXT,C(n,`ondoctype`,n.doctype),n.doctype=!0):(n.doctype+=a,a===`[`?n.state=b.DOCTYPE_DTD:g(a)&&(n.state=b.DOCTYPE_QUOTED,n.q=a));continue;case b.DOCTYPE_QUOTED:n.doctype+=a,a===n.q&&(n.q=``,n.state=b.DOCTYPE);continue;case b.DOCTYPE_DTD:a===`]`?(n.doctype+=a,n.state=b.DOCTYPE):a===`<`?(n.state=b.OPEN_WAKA,n.startTagPosition=n.position):g(a)?(n.doctype+=a,n.state=b.DOCTYPE_DTD_QUOTED,n.q=a):n.doctype+=a;continue;case b.DOCTYPE_DTD_QUOTED:n.doctype+=a,a===n.q&&(n.state=b.DOCTYPE_DTD,n.q=``);continue;case b.COMMENT:a===`-`?n.state=b.COMMENT_ENDING:n.comment+=a;continue;case b.COMMENT_ENDING:a===`-`?(n.state=b.COMMENT_ENDED,n.comment=te(n.opt,n.comment),n.comment&&C(n,`oncomment`,n.comment),n.comment=``):(n.comment+=`-`+a,n.state=b.COMMENT);continue;case b.COMMENT_ENDED:a===`>`?n.state=n.doctype&&n.doctype!==!0?b.DOCTYPE_DTD:b.TEXT:(T(n,`Malformed comment`),n.comment+=`--`+a,n.state=b.COMMENT);continue;case b.CDATA:for(var c=i-1;a&&a!==`]`;)a=ue(t,i++),a&&n.trackPosition&&(n.position++,a===`
105
+ `?(n.line++,n.column=0):n.column++);n.cdata+=t.substring(c,i-1),a===`]`&&(n.state=b.CDATA_ENDING);continue;case b.CDATA_ENDING:a===`]`?n.state=b.CDATA_ENDING_2:(n.cdata+=`]`+a,n.state=b.CDATA);continue;case b.CDATA_ENDING_2:a===`>`?(n.cdata&&C(n,`oncdata`,n.cdata),C(n,`onclosecdata`),n.cdata=``,n.state=b.TEXT):a===`]`?n.cdata+=`]`:(n.cdata+=`]]`+a,n.state=b.CDATA);continue;case b.PROC_INST:a===`?`?n.state=b.PROC_INST_ENDING:h(a)?n.state=b.PROC_INST_BODY:n.procInstName+=a;continue;case b.PROC_INST_BODY:if(!n.procInstBody&&h(a))continue;a===`?`?n.state=b.PROC_INST_ENDING:n.procInstBody+=a;continue;case b.PROC_INST_ENDING:a===`>`?(C(n,`onprocessinginstruction`,{name:n.procInstName,body:n.procInstBody}),n.procInstName=n.procInstBody=``,n.state=b.TEXT):(n.procInstBody+=`?`+a,n.state=b.PROC_INST_BODY);continue;case b.OPEN_TAG:v(f,a)?n.tagName+=a:(re(n),a===`>`?oe(n):a===`/`?n.state=b.OPEN_TAG_SLASH:(h(a)||T(n,`Invalid character in tag name`),n.state=b.ATTRIB));continue;case b.OPEN_TAG_SLASH:a===`>`?(oe(n,!0),se(n)):(T(n,`Forward-slash in opening tag not followed by >`),n.state=b.ATTRIB);continue;case b.ATTRIB:if(h(a))continue;a===`>`?oe(n):a===`/`?n.state=b.OPEN_TAG_SLASH:v(d,a)?(n.attribName=a,n.attribValue=``,n.state=b.ATTRIB_NAME):T(n,`Invalid attribute name`);continue;case b.ATTRIB_NAME:a===`=`?n.state=b.ATTRIB_VALUE:a===`>`?(T(n,`Attribute without value`),n.attribValue=n.attribName,ae(n),oe(n)):h(a)?n.state=b.ATTRIB_NAME_SAW_WHITE:v(f,a)?n.attribName+=a:T(n,`Invalid attribute name`);continue;case b.ATTRIB_NAME_SAW_WHITE:if(a===`=`)n.state=b.ATTRIB_VALUE;else{if(h(a))continue;T(n,`Attribute without value`),n.tag.attributes[n.attribName]=``,n.attribValue=``,C(n,`onattribute`,{name:n.attribName,value:``}),n.attribName=``,a===`>`?oe(n):v(d,a)?(n.attribName=a,n.state=b.ATTRIB_NAME):(T(n,`Invalid attribute name`),n.state=b.ATTRIB)}continue;case b.ATTRIB_VALUE:if(h(a))continue;g(a)?(n.q=a,n.state=b.ATTRIB_VALUE_QUOTED):(n.opt.unquotedAttributeValues||w(n,`Unquoted attribute value`),n.state=b.ATTRIB_VALUE_UNQUOTED,n.attribValue=a);continue;case b.ATTRIB_VALUE_QUOTED:if(a!==n.q){a===`&`?n.state=b.ATTRIB_VALUE_ENTITY_Q:n.attribValue+=a;continue}ae(n),n.q=``,n.state=b.ATTRIB_VALUE_CLOSED;continue;case b.ATTRIB_VALUE_CLOSED:h(a)?n.state=b.ATTRIB:a===`>`?oe(n):a===`/`?n.state=b.OPEN_TAG_SLASH:v(d,a)?(T(n,`No whitespace between attributes`),n.attribName=a,n.attribValue=``,n.state=b.ATTRIB_NAME):T(n,`Invalid attribute name`);continue;case b.ATTRIB_VALUE_UNQUOTED:if(!_(a)){a===`&`?n.state=b.ATTRIB_VALUE_ENTITY_U:n.attribValue+=a;continue}ae(n),a===`>`?oe(n):n.state=b.ATTRIB;continue;case b.CLOSE_TAG:if(n.tagName)a===`>`?se(n):v(f,a)?n.tagName+=a:n.script?(n.script+=`</`+n.tagName+a,n.tagName=``,n.state=b.SCRIPT):(h(a)||T(n,`Invalid tagname in closing tag`),n.state=b.CLOSE_TAG_SAW_WHITE);else{if(h(a))continue;y(d,a)?n.script?(n.script+=`</`+a,n.state=b.SCRIPT):T(n,`Invalid tagname in closing tag.`):n.tagName=a}continue;case b.CLOSE_TAG_SAW_WHITE:if(h(a))continue;a===`>`?se(n):T(n,`Invalid characters in closing tag`);continue;case b.TEXT_ENTITY:case b.ATTRIB_VALUE_ENTITY_Q:case b.ATTRIB_VALUE_ENTITY_U:var u,x;switch(n.state){case b.TEXT_ENTITY:u=b.TEXT,x=`textNode`;break;case b.ATTRIB_VALUE_ENTITY_Q:u=b.ATTRIB_VALUE_QUOTED,x=`attribValue`;break;case b.ATTRIB_VALUE_ENTITY_U:u=b.ATTRIB_VALUE_UNQUOTED,x=`attribValue`}if(a===`;`){var S=ce(n);n.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(S)?((n.entityCount+=1)>n.opt.maxEntityCount&&w(n,`Parsed entity count exceeds max entity count`),(n.entityDepth+=1)>n.opt.maxEntityDepth&&w(n,`Parsed entity depth exceeds max entity depth`),n.entity=``,n.state=u,n.write(S),--n.entityDepth):(n[x]+=S,n.entity=``,n.state=u)}else v(n.entity.length?m:p,a)?n.entity+=a:(T(n,`Invalid character in entity name`),n[x]+=`&`+n.entity+a,n.entity=``,n.state=u);continue;default:throw Error(n,`Unknown state: `+n.state)}return n.position>=n.bufferCheckPosition&&r(n),n}String.fromCodePoint||function(){var e=String.fromCharCode,t=Math.floor,n=function(){var n=16384,r=[],i,a,o=-1,s=arguments.length;if(!s)return``;for(var c=``;++o<s;){var l=Number(arguments[o]);if(!isFinite(l)||l<0||l>1114111||t(l)!==l)throw RangeError(`Invalid code point: `+l);l<=65535?r.push(l):(l-=65536,i=55296+(l>>10),a=l%1024+56320,r.push(i,a)),(o+1===s||r.length>n)&&(c+=e.apply(null,r),r.length=0)}return c};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n}()})(e)})(TE);var EE=dt(TE),DE=class e extends Error{constructor(t,n,r,i,a){super(t),this.name=`SvgoParserError`,this.message=`${a||`<input>`}:${n}:${r}: ${t}`,this.reason=t,this.line=n,this.column=r,this.source=i,Error.captureStackTrace&&Error.captureStackTrace(this,e)}toString(){let e=this.source.split(/\r?\n/),t=Math.max(this.line-3,0),n=Math.min(this.line+2,e.length),r=String(n).length,i=Math.max(this.column-54,0),a=Math.max(this.column+20,80),o=e.slice(t,n).map(((e,n)=>{let o=e.slice(i,a),s=``,c=``;i!==0&&(s=i>e.length-1?` `:`…`),a<e.length-1&&(c=`…`);let l=t+1+n,u=` ${l.toString().padStart(r)} | `;if(l===this.line){let t=u.replace(/[^|]/g,` `)+(s+e.slice(i,this.column-1)).replace(/[^\t]/g,` `);return`>${u}${s}${o}${c}\n ${t}^`}return` ${u}${s}${o}${c}`})).join(`
106
+ `);return`${this.name}: ${this.message}\n\n${o}\n`}};const OE=/<!ENTITY\s+(\S+)\s+(?:'([^']+)'|"([^"]+)")\s*>/g,kE={strict:!0,trim:!1,normalize:!1,lowercase:!0,xmlns:!0,position:!0,unparsedEntities:!0},AE=(e,t)=>{let n=EE.parser(kE.strict,kE),r={type:`root`,children:[]},i=r,a=[r],o=e=>{i.children.push(e)};return n.ondoctype=t=>{o({type:`doctype`,name:`svg`,data:{doctype:t}});let r=t.indexOf(`[`);if(r>=0){OE.lastIndex=r;let t=OE.exec(e);for(;t!=null;)n.ENTITIES[t[1]]=t[2]||t[3],t=OE.exec(e)}},n.onprocessinginstruction=e=>{let t={type:`instruction`,name:e.name,value:e.body};o(t)},n.oncomment=e=>{let t={type:`comment`,value:e.trim()};o(t)},n.oncdata=e=>{o({type:`cdata`,value:e})},n.onopentag=e=>{let t={type:`element`,name:e.name,attributes:{},children:[]};for(let[n,r]of Object.entries(e.attributes))t.attributes[n]=r.value;o(t),i=t,a.push(t)},n.ontext=e=>{if(i.type===`element`){if(zn.has(i.name))o({type:`text`,value:e});else{let t=e.trim();t!==``&&o({type:`text`,value:t})}}},n.onclosetag=()=>{a.pop(),i=a[a.length-1]},n.onerror=r=>{let i=r.message.split(`
107
+ `)[0],a=new DE(i,n.line+1,n.column,e,t);if(r.message.indexOf(`Unexpected end`)===-1)throw a},n.write(e).close(),r},jE={doctypeStart:`<!DOCTYPE`,doctypeEnd:`>`,procInstStart:`<?`,procInstEnd:`?>`,tagOpenStart:`<`,tagOpenEnd:`>`,tagCloseStart:`</`,tagCloseEnd:`>`,tagShortStart:`<`,tagShortEnd:`/>`,attrStart:`="`,attrEnd:`"`,commentStart:`<!--`,commentEnd:`-->`,cdataStart:`<![CDATA[`,cdataEnd:`]]>`,textStart:``,textEnd:``,indent:4,regEntities:/[&'"<>]/g,regValEntities:/[&"<>]/g,encodeEntity:e=>ME[e],pretty:!1,useShortTags:!0,eol:`lf`,finalNewline:!1},ME={"&":`&amp;`,"'":`&apos;`,'"':`&quot;`,">":`&gt;`,"<":`&lt;`},NE=(e,t={})=>{let n={...jE,...t},r=n.indent,i=` `;typeof r==`number`&&Number.isNaN(r)===!1?i=r<0?` `:` `.repeat(r):typeof r==`string`&&(i=r);let a={indent:i,textContext:null,indentLevel:0},o=n.eol===`crlf`?`\r
108
+ `:`
109
+ `;n.pretty&&(n.doctypeEnd+=o,n.procInstEnd+=o,n.commentEnd+=o,n.cdataEnd+=o,n.tagShortEnd+=o,n.tagOpenEnd+=o,n.tagCloseEnd+=o,n.textEnd+=o);let s=PE(e,n,a);return n.finalNewline&&s.length>0&&!s.endsWith(`
110
+ `)&&(s+=o),s},PE=(e,t,n)=>{let r=``;n.indentLevel++;for(let i of e.children)switch(i.type){case`element`:r+=BE(i,t,n);break;case`text`:r+=HE(i,t,n);break;case`doctype`:r+=IE(i,t);break;case`instruction`:r+=LE(i,t);break;case`comment`:r+=RE(i,t);break;case`cdata`:r+=zE(i,t,n)}return n.indentLevel--,r},FE=(e,t)=>{let n=``;return e.pretty&&t.textContext==null&&(n=t.indent.repeat(t.indentLevel-1)),n},IE=(e,t)=>t.doctypeStart+e.data.doctype+t.doctypeEnd,LE=(e,t)=>t.procInstStart+e.name+` `+e.value+t.procInstEnd,RE=(e,t)=>t.commentStart+e.value+t.commentEnd,zE=(e,t,n)=>FE(t,n)+t.cdataStart+e.value+t.cdataEnd,BE=(e,t,n)=>{if(e.children.length===0)return t.useShortTags?FE(t,n)+t.tagShortStart+e.name+VE(e,t)+t.tagShortEnd:FE(t,n)+t.tagShortStart+e.name+VE(e,t)+t.tagOpenEnd+t.tagCloseStart+e.name+t.tagCloseEnd;let r=t.tagOpenStart,i=t.tagOpenEnd,a=t.tagCloseStart,o=t.tagCloseEnd,s=FE(t,n),c=FE(t,n);n.textContext?(r=jE.tagOpenStart,i=jE.tagOpenEnd,a=jE.tagCloseStart,o=jE.tagCloseEnd,s=``):zn.has(e.name)&&(i=jE.tagOpenEnd,a=jE.tagCloseStart,c=``,n.textContext=e);let l=PE(e,t,n);return n.textContext===e&&(n.textContext=null),s+r+e.name+VE(e,t)+i+l+c+a+e.name+o},VE=(e,t)=>{let n=``;for(let[r,i]of Object.entries(e.attributes))if(n+=` `+r,i!==void 0){let e=i.toString().replace(t.regValEntities,t.encodeEntity);n+=t.attrStart+e+t.attrEnd}return n},HE=(e,t,n)=>FE(t,n)+t.textStart+e.value.replace(t.regEntities,t.encodeEntity)+(n.textContext?``:t.textEnd),UE=/* @__PURE__ */ new Map;for(let e of wE)UE.set(e.name,e);function WE(e){return e===`removeScriptElement`?(console.warn(`Warning: removeScriptElement has been renamed to removeScripts, please update your SVGO config`),UE.get(`removeScripts`)):UE.get(e)}const GE=e=>{if(typeof e==`string`){let t=WE(e);if(t==null)throw Error(`Unknown builtin plugin "${e}" specified.`);return{name:e,params:{},fn:t.fn}}if(typeof e==`object`&&e){if(e.name==null)throw Error(`Plugin name must be specified`);let t=e.fn;if(t==null){let n=WE(e.name);if(n==null)throw Error(`Unknown builtin plugin "${e.name}" specified.`);t=n.fn}return{name:e.name,params:e.params,fn:t}}return null},KE=(e,t)=>{if(t??={},typeof t!=`object`)throw Error(`Config should be an object`);let r=t.multipass?10:1,i=1/0,a=``,o={};t.path!=null&&(o.path=t.path);for(let s=0;s<r;s+=1){o.multipassCount=s;let r=AE(e,t.path),c=t.plugins||[`preset-default`];if(!Array.isArray(c))throw Error("malformed config, `plugins` property must be an array.\nSee more info here: https://github.com/svg/svgo#configuration");let l=c.filter((e=>e!=null)).map(GE);l.length<c.length&&console.warn(`Warning: plugins list includes null or undefined elements, these will be ignored.`);let u={};if(t.floatPrecision!=null&&(u.floatPrecision=t.floatPrecision),n(r,o,l,null,u),a=NE(r,t.js2svg),!(a.length<i))break;e=a,i=a.length}return t.datauri&&(a=tC(a,t.datauri)),{data:a}};function qE({arrayBuffer:e,fileName:t,fileType:n},r){return{success:!0,data:r.byteLength<e.byteLength?r:e,fileName:t,fileType:n}}async function JE({arrayBuffer:e,fileName:t,fileType:n,floatPrecision:r,svgoPlugins:i}){let a=new TextDecoder().decode(e),o=KE(a,{floatPrecision:r??8,plugins:i??[`preset-default`,`removeDimensions`]}),s=new TextEncoder().encode(o.data),c=s.buffer.slice(s.byteOffset,s.byteOffset+s.byteLength);return qE({arrayBuffer:e,fileName:t,fileType:n},c)}export{JE as compress};