Ubuntu
(()=>{var e={53:(e,t,n)=>{"use strict";const r=n(313),i=n(4040),o=n(6723);function a(e){const t=r.string.encode(e,!0),n=r.string.encode(e);return t.length{"use strict";const r=n(1164);t.clone=function e(t){const n={};for(const i in t){let o=t[i];o&&(Array.isArray(o)||o instanceof r.List?o=o.map(e):o.constructor===Object&&(o=e(o))),n[i]=o}return n}},126:(e,t,n)=>{"use strict";const r=n(8783);function i(){this.tokenType!==r.Ident&&!1===this.isDelim(42)&&this.error("Identifier or asterisk is expected"),this.next()}const o={name:String};t.generate=function(e){this.tokenize(e.name)},t.name="TypeSelector",t.parse=function(){const e=this.tokenStart;return this.isDelim(124)?(this.next(),i.call(this)):(i.call(this),this.isDelim(124)&&(this.next(),i.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}},t.structure=o},154:(e,t,n)=>{"use strict";const r=n(8843),i=n(2599),o=n(6087),a=n(7465);t.SyntaxError=r.SyntaxError,t.generate=i.generate,t.parse=o.parse,t.walk=a.walk},173:(e,t,n)=>{"use strict";const r=n(6199),i=n(7955);t.decode=function(e){const t=e.length-1;let n="";for(let o=0;o=48&&i<=57&&(0===n||1===n&&45===e.charCodeAt(0))?t+="\\"+i.toString(16)+" ":r.isName(i)?t+=e.charAt(n):t+="\\"+e.charAt(n):t+="�"}return t}},226:(e,t,n)=>{"use strict";const r=n(9439);t.name="convertColors",t.description="converts colors: rgb() to #rrggbb and #rrggbb to #rgb";const i="([+-]?(?:\\d*\\.\\d+|\\d+\\.?)%?)",o="\\s*,\\s*",a=new RegExp("^rgb\\(\\s*"+i+o+i+o+i+"\\s*\\)$"),s=/^#(([a-fA-F0-9])\2){3}$/,l=([e,t,n])=>"#"+((256+e<<8|t)<<8|n).toString(16).slice(1).toUpperCase();t.fn=(e,t)=>{const{currentColor:n=!1,names2hex:i=!0,rgb2hex:o=!0,shorthex:c=!0,shortname:u=!0}=t;return{element:{enter:e=>{for(const[t,d]of Object.entries(e.attributes))if(r.colorsProps.has(t)){let h=d;if(n){let e;e="string"==typeof n?h===n:n instanceof RegExp?null!=n.exec(h):"none"!==h,e&&(h="currentColor")}if(i){const e=h.toLowerCase();null!=r.colorsNames[e]&&(h=r.colorsNames[e])}if(o){let e=h.match(a);if(null!=e){let t=e.slice(1,4).map((e=>{let t;return t=e.indexOf("%")>-1?Math.round(2.55*parseFloat(e)):Number(e),Math.max(0,Math.min(t,255))}));h=l(t)}}if(c){let e=h.match(s);null!=e&&(h="#"+e[0][1]+e[0][3]+e[0][5])}if(u){const e=h.toLowerCase();null!=r.colorsShortNames[e]&&(h=r.colorsShortNames[e])}e.attributes[t]=h}}}}}},257:e=>{"use strict";e.exports=function(e){e.children.forEach(((e,t,n)=>{"Identifier"===e.type&&"none"===e.name.toLowerCase()&&(n.head===n.tail?t.data={type:"Number",loc:e.loc,value:"0"}:n.remove(t))}))}},260:(e,t,n)=>{"use strict";const r=n(8783),i={name:String};t.generate=function(e){this.token(r.Delim,"."),this.token(r.Ident,e.name)},t.name="ClassSelector",t.parse=function(){return this.eatDelim(46),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(r.Ident)}},t.structure=i},276:(e,t)=>{"use strict";const n=/^(?:\+|(-))?0*(\d*)(?:\.0*|(\.\d*?)0*)?$/,r=/^([\+\-])?0*(\d*)(?:\.0*|(\.\d*?)0*)?$/,i=new Set(["Dimension","Hash","Identifier","Number","Raw","UnicodeRange"]);function o(e,t){const o=t&&null!==t.prev&&i.has(t.prev.data.type)?r:n;return""!==(e=String(e).replace(o,"$1$2$3"))&&"-"!==e||(e="0"),e}t.Number=function(e){e.value=o(e.value)},t.packNumber=o},299:(e,t,n)=>{"use strict";const r=n(2787),i=n(5248),o=n(2984),a=n(9691),s=n(3409),l=n(9445),c=n(5119),u=n(3834);e.exports=function(e,t){const n=r(e,t);t.logger("prepare",e),i(e,t),t.logger("mergeAtrule",e),o(e),t.logger("initialMergeRuleset",e),a(e),t.logger("disjoinRuleset",e),s(e,n),t.logger("restructShorthand",e),l(e),t.logger("restructBlock",e),c(e),t.logger("mergeRuleset",e),u(e),t.logger("restructRuleset",e)}},313:(e,t,n)=>{"use strict";const r=n(4058),i=n(1606),o=n(5962),a=n(8572),s=n(3627),l=n(154),c=n(5363),u=n(356),d=n(4922),h=n(1119),p=n(4135),m=n(8783),f=n(9404),g=n(8411),{tokenize:b,parse:y,generate:k,lexer:v,createLexer:w,walk:x,find:S,findLast:C,findAll:A,toPlainObject:T,fromPlainObject:E,fork:P}=r;t.version=i.version,t.createSyntax=o,t.List=a.List,t.Lexer=s.Lexer,t.definitionSyntax=l,t.clone=c.clone,t.isCustomProperty=u.isCustomProperty,t.keyword=u.keyword,t.property=u.property,t.vendorPrefix=u.vendorPrefix,t.ident=d,t.string=h,t.url=p,t.tokenTypes=m,t.tokenNames=f,t.TokenStream=g.TokenStream,t.createLexer=w,t.find=S,t.findAll=A,t.findLast=C,t.fork=P,t.fromPlainObject=E,t.generate=k,t.lexer=v,t.parse=y,t.toPlainObject=T,t.tokenize=b,t.walk=x},356:(e,t)=>{"use strict";const n=new Map,r=new Map,i=a;function o(e,t){return t=t||0,e.length-t>=2&&45===e.charCodeAt(t)&&45===e.charCodeAt(t+1)}function a(e,t){if(t=t||0,e.length-t>=3&&45===e.charCodeAt(t)&&45!==e.charCodeAt(t+1)){const n=e.indexOf("-",t+2);if(-1!==n)return e.substring(t,n+1)}return""}t.isCustomProperty=o,t.keyword=function(e){if(n.has(e))return n.get(e);const t=e.toLowerCase();let r=n.get(t);if(void 0===r){const e=o(t,0),n=e?"":a(t,0);r=Object.freeze({basename:t.substr(n.length),name:t,prefix:n,vendor:n,custom:e})}return n.set(e,r),r},t.property=function(e){if(r.has(e))return r.get(e);let t=e,n=e[0];"/"===n?n="/"===e[1]?"//":"/":"_"!==n&&"*"!==n&&"$"!==n&&"#"!==n&&"+"!==n&&"&"!==n&&(n="");const i=o(t,n.length);if(!i&&(t=t.toLowerCase(),r.has(t))){const n=r.get(t);return r.set(e,n),n}const s=i?"":a(t,n.length),l=t.substr(0,n.length+s.length),c=Object.freeze({basename:t.substr(l.length),name:t.substr(n.length),hack:n,vendor:s,prefix:l,custom:i});return r.set(e,c),c},t.vendorPrefix=i},377:(e,t,n)=>{"use strict";const r=n(8783),i={value:String};t.generate=function(e){this.token(r.Percentage,e.value+"%")},t.name="Percentage",t.parse=function(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(r.Percentage)}},t.structure=i},394:(e,t,n)=>{"use strict";const r={"font-face":n(2401),import:n(941),media:n(4214),page:n(4635),supports:n(970)};e.exports=r},397:(e,t)=>{"use strict";t.adoptBuffer=function(e=null,t){return null===e||e.length{"use strict";const r=n(9161);function i({source:e,line:t,column:n},r){function i(e,t){return o.slice(e,t).map(((t,n)=>String(e+n+1).padStart(l)+" |"+t)).join("\n")}const o=e.split(/\r\n?|\n|\f/),a=Math.max(1,t-r)-1,s=Math.min(t+r,o.length+1),l=Math.max(4,String(s).length)+1;let c=0;(n+=3*(o[t-1].substr(0,n-1).match(/\t/g)||[]).length)>100&&(c=n-60+3,n=58);for(let e=a;e<=s;e++)e>=0&&e0&&o[e].length>c?"…":"")+o[e].substr(c,98)+(o[e].length>c+100-1?"…":""));return[i(a,t),new Array(n+l+2).join("-")+"^",i(t,s)].filter(Boolean).join("\n")}t.SyntaxError=function(e,t,n,o,a){return Object.assign(r.createCustomError("SyntaxError",e),{source:t,offset:n,line:o,column:a,sourceFragment:e=>i({source:t,line:o,column:a},isNaN(e)?0:e),get formattedMessage(){return`Parse error: ${e}\n`+i({source:t,line:o,column:a},2)}})}},473:(e,t,n)=>{"use strict";const r=n(6087),i={type:"Match"},o={type:"Mismatch"},a={type:"DisallowEmpty"};function s(e,t,n){return t===i&&n===o||e===i&&t===i&&n===i?e:("If"===e.type&&e.else===o&&t===i&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function l(e){return e.length>2&&40===e.charCodeAt(e.length-2)&&41===e.charCodeAt(e.length-1)}function c(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&&l(e.name)}function u(e,t,n){switch(e){case" ":{let e=i;for(let n=t.length-1;n>=0;n--)e=s(t[n],e,o);return e}case"|":{let e=o,n=null;for(let r=t.length-1;r>=0;r--){let o=t[r];if(c(o)&&(null===n&&r>0&&c(t[r-1])&&(n=Object.create(null),e=s({type:"Enum",map:n},i,e)),null!==n)){const e=(l(o.name)?o.name.slice(0,-1):o.name).toLowerCase();if(e in n==0){n[e]=o;continue}}n=null,e=s(o,i,e)}return e}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let n=o;for(let r=t.length-1;r>=0;r--){const o=t[r];let a;a=t.length>1?u(e,t.filter((function(e){return e!==o})),!1):i,n=s(o,a,n)}return n}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?i:o;for(let n=t.length-1;n>=0;n--){const o=t[n];let a;a=t.length>1?u(e,t.filter((function(e){return e!==o})),!0):i,r=s(o,a,r)}return r}}}function d(e){if("function"==typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=u(e.combinator,e.terms.map(d),!1);return e.disallowEmpty&&(t=s(t,a,o)),t}case"Multiplier":return function(e){let t=i,n=d(e.term);if(0===e.max)n=s(n,a,o),t=s(n,null,o),t.then=s(i,i,t),e.comma&&(t.then.else=s({type:"Comma",syntax:e},t,o));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==i&&(t=s({type:"Comma",syntax:e},t,o)),t=s(n,s(i,i,t),o);if(0===e.min)t=s(i,i,t);else for(let r=0;r{"use strict";const r=n(6591),i={parse:{prelude(){const e=this.createList();switch(this.skipSC(),this.tokenType){case r.String:e.push(this.String());break;case r.Url:case r.Function:e.push(this.Url());break;default:this.error("String or url() is expected")}return this.lookupNonWSType(0)!==r.Ident&&this.lookupNonWSType(0)!==r.LeftParenthesis||e.push(this.MediaQueryList()),e},block:null}};e.exports=i},482:(e,t,n)=>{"use strict";const r=n(1164),{hasOwnProperty:i}=Object.prototype;function o(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}function a(e){return Boolean(e)&&o(e.offset)&&o(e.line)&&o(e.column)}function s(e,t){return function(n,o){if(!n||n.constructor!==Object)return o(n,"Type of node should be an Object");for(let s in n){let l=!0;if(!1!==i.call(n,s)){if("type"===s)n.type!==e&&o(n,"Wrong node type `"+n.type+"`, expected `"+e+"`");else if("loc"===s){if(null===n.loc)continue;if(n.loc&&n.loc.constructor===Object)if("string"!=typeof n.loc.source)s+=".source";else if(a(n.loc.start)){if(a(n.loc.end))continue;s+=".end"}else s+=".start";l=!1}else if(t.hasOwnProperty(s)){l=!1;for(let e=0;!l&&e");else{if(!Array.isArray(r))throw new Error("Wrong value `"+r+"` in `"+e+"."+t+"` structure definition");a.push("List")}}o[t]=a.join(" | ")}return{docs:o,check:s(e,r)}}t.getStructureFromConfig=function(e){const t={};if(e.node)for(const n in e.node)if(i.call(e.node,n)){const r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=l(n,r)}return t}},498:(e,t,n)=>{"use strict";const r=n(6591),i=n(6199),o=43,a=45,s=110,l=!0;function c(e,t){let n=this.tokenStart+e;const r=this.charCodeAt(n);for(r!==o&&r!==a||(t&&this.error("Number sign is not allowed"),n++);n0&&this.skip(e),0===t&&(n=this.charCodeAt(this.tokenStart),n!==o&&n!==a&&this.error("Number sign is expected")),u.call(this,0!==t),t===a?"-"+this.consume(r.Number):this.consume(r.Number)}const p={a:[String,null],b:[String,null]};t.generate=function(e){if(e.a){const t=("+1"===e.a||"1"===e.a?"n":"-1"===e.a&&"-n")||e.a+"n";if(e.b){const n="-"===e.b[0]||"+"===e.b[0]?e.b:"+"+e.b;this.tokenize(t+n)}else this.tokenize(t)}else this.tokenize(e.b)},t.name="AnPlusB",t.parse=function(){const e=this.tokenStart;let t=null,n=null;if(this.tokenType===r.Number)u.call(this,!1),n=this.consume(r.Number);else if(this.tokenType===r.Ident&&this.cmpChar(this.tokenStart,a))switch(t="-1",d.call(this,1,s),this.tokenEnd-this.tokenStart){case 2:this.next(),n=h.call(this);break;case 3:d.call(this,2,a),this.next(),this.skipSC(),u.call(this,l),n="-"+this.consume(r.Number);break;default:d.call(this,2,a),c.call(this,3,l),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===r.Ident||this.isDelim(o)&&this.lookupType(1)===r.Ident){let i=0;switch(t="1",this.isDelim(o)&&(i=1,this.next()),d.call(this,0,s),this.tokenEnd-this.tokenStart){case 1:this.next(),n=h.call(this);break;case 2:d.call(this,1,a),this.next(),this.skipSC(),u.call(this,l),n="-"+this.consume(r.Number);break;default:d.call(this,1,a),c.call(this,2,l),this.next(),n=this.substrToCursor(e+i+1)}}else if(this.tokenType===r.Dimension){const p=this.charCodeAt(this.tokenStart),m=p===o||p===a;let f=this.tokenStart+m;for(;f{"use strict";const r=n(8783);t.generate=function(e){this.token(r.LeftParenthesis,"("),this.children(e),this.token(r.RightParenthesis,")")},t.name="Parentheses",t.parse=function(e,t){const n=this.tokenStart;let i=null;return this.eat(r.LeftParenthesis),i=e.call(this,t),this.eof||this.eat(r.RightParenthesis),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:i}},t.structure={children:[[]]}},565:(e,t,n)=>{"use strict";const r=n(4795);t.Tokenizer=class{constructor(e){this.str=e,this.pos=0}charCodeAt(e){return e{var r=n(1642);t.encode=function(e){var t,n="",i=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&i,(i>>>=5)>0&&(t|=32),n+=r.encode(t)}while(i>0);return n},t.decode=function(e,t,n){var i,o,a,s,l=e.length,c=0,u=0;do{if(t>=l)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(o=r.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));i=!!(32&o),c+=(o&=31)<>1,1&~a?s:-s),n.rest=t}},612:(e,t)=>{"use strict";t.cssWideKeywords=["initial","inherit","unset","revert","revert-layer"]},646:(e,t,n)=>{"use strict";const r=n(8783),i={value:String};t.generate=function(e){this.token(r.Number,e.value)},t.name="Number",t.parse=function(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(r.Number)}},t.structure=i},648:(e,t)=>{"use strict";t.generate=function(e){this.children(e)},t.name="Value",t.parse=function(){const e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}},t.structure={children:[[]]}},675:(e,t,n)=>{"use strict";const r=n(8742),{referencesProps:i}=n(9439);t.name="prefixIds",t.description="prefix IDs";const o=(e,t)=>{const n=e(t);return t.startsWith(n)?t:n+t},a=(e,t)=>t.startsWith("#")?"#"+o(e,t.slice(1)):null;t.fn=(e,t,n)=>{const{delim:s="__",prefix:l,prefixIds:c=!0,prefixClassNames:u=!0}=t,d=new Map;return{element:{enter:e=>{const t=t=>((e,t,n,r,i,o)=>{if("function"==typeof r){let a=o.get(e);return null!=a||(a=r(t,n)+i,o.set(e,a)),a}return"string"==typeof r?r+i:!1===r?"":null!=n.path&&n.path.length>0?(e=>{const t=/[/\\]?([^/\\]+)$/.exec(e);return t?t[1]:""})(n.path).replace(/[. ]/g,"_")+i:"prefix"+i})(t,e,n,l,s,d);if("style"===e.name){if(0===e.children.length)return;for(const n of e.children){if("text"!==n.type&&"cdata"!==n.type)continue;const e=n.value;let i=null;try{i=r.parse(e,{parseValue:!0,parseCustomProperty:!1})}catch{return}return r.walk(i,(e=>{var n;if(c&&"IdSelector"===e.type||u&&"ClassSelector"===e.type)e.name=o(t,e.name);else if("Url"===e.type&&e.value.length>0){const r=a(t,(n=e.value).startsWith('"')&&n.endsWith('"')||n.startsWith("'")&&n.endsWith("'")?n.slice(1,-1):n);null!=r&&(e.value=r)}})),void(n.value=r.generate(i))}}c&&null!=e.attributes.id&&0!==e.attributes.id.length&&(e.attributes.id=o(t,e.attributes.id)),u&&null!=e.attributes.class&&0!==e.attributes.class.length&&(e.attributes.class=e.attributes.class.split(/\s+/).map((e=>o(t,e))).join(" "));for(const n of["href","xlink:href"])if(null!=e.attributes[n]&&0!==e.attributes[n].length){const r=a(t,e.attributes[n]);null!=r&&(e.attributes[n]=r)}for(const n of i)null!=e.attributes[n]&&0!==e.attributes[n].length&&(e.attributes[n]=e.attributes[n].replace(/\burl\((["'])?(#.+?)\1\)/gi,((e,n,r)=>{const i=a(t,r);return null==i?e:`url(${i})`})));for(const n of["begin","end"])if(null!=e.attributes[n]&&0!==e.attributes[n].length){const r=e.attributes[n].split(/\s*;\s+/).map((e=>{if(e.endsWith(".end")||e.endsWith(".start")){const[n,r]=e.split(".");return`${o(t,n)}.${r}`}return e}));e.attributes[n]=r.join("; ")}}}}}},682:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyPseudoArgs=t.pseudos=void 0,t.pseudos={empty:function(e,t){var n=t.adapter;return!n.getChildren(e).some((function(e){return n.isTag(e)||""!==n.getText(e)}))},"first-child":function(e,t){var n=t.adapter,r=t.equals;if(n.prevElementSibling)return null==n.prevElementSibling(e);var i=n.getSiblings(e).find((function(e){return n.isTag(e)}));return null!=i&&r(e,i)},"last-child":function(e,t){for(var n=t.adapter,r=t.equals,i=n.getSiblings(e),o=i.length-1;o>=0;o--){if(r(e,i[o]))return!0;if(n.isTag(i[o]))break}return!1},"first-of-type":function(e,t){for(var n=t.adapter,r=t.equals,i=n.getSiblings(e),o=n.getName(e),a=0;a=0;a--){var s=i[a];if(r(e,s))return!0;if(n.isTag(s)&&n.getName(s)===o)break}return!1},"only-of-type":function(e,t){var n=t.adapter,r=t.equals,i=n.getName(e);return n.getSiblings(e).every((function(t){return r(e,t)||!n.isTag(t)||n.getName(t)!==i}))},"only-child":function(e,t){var n=t.adapter,r=t.equals;return n.getSiblings(e).every((function(t){return r(e,t)||!n.isTag(t)}))}},t.verifyPseudoArgs=function(e,t,n,r){if(null===n){if(e.length>r)throw new Error("Pseudo-class :".concat(t," requires an argument"))}else if(e.length===r)throw new Error("Pseudo-class :".concat(t," doesn't have any arguments"))}},689:e=>{"use strict";const t={parse:{prelude:null,block(){return this.Block(!0)}}};e.exports=t},700:(e,t,n)=>{"use strict";const{removeLeadingZero:r}=n(6675);t.name="cleanupNumericValues",t.description="rounds numeric values to the fixed precision, removes default ‘px’ units";const i=/^([-+]?\d*\.?\d+([eE][-+]?\d+)?)(px|pt|pc|mm|cm|m|in|ft|em|ex|%)?$/,o={cm:96/2.54,mm:96/25.4,in:96,pt:4/3,pc:16,px:1};t.fn=(e,t)=>{const{floatPrecision:n=3,leadingZero:a=!0,defaultPx:s=!0,convertToPx:l=!0}=t;return{element:{enter:e=>{if(null!=e.attributes.viewBox){const t=e.attributes.viewBox.split(/\s,?\s*|,\s*/g);e.attributes.viewBox=t.map((e=>{const t=Number(e);return Number.isNaN(t)?e:Number(t.toFixed(n))})).join(" ")}for(const[t,c]of Object.entries(e.attributes)){if("version"===t)continue;const u=c.match(i);if(u){let i,c=Number(Number(u[1]).toFixed(n)),d=u[3]||"";if(l&&""!==d&&d in o){const e=Number((o[d]*Number(u[1])).toFixed(n));e.toString().length{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=t.existsOne=t.findOne=t.findOneChild=t.find=t.filter=void 0;var r=n(1141);function i(e,t,n,i){for(var o=[],a=[t],s=[0];;)if(s[0]>=a[0].length){if(1===s.length)return o;a.shift(),s.shift()}else{var l=a[0][s[0]++];if(e(l)&&(o.push(l),--i<=0))return o;n&&(0,r.hasChildren)(l)&&l.children.length>0&&(s.unshift(0),a.unshift(l.children))}}t.filter=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),i(e,Array.isArray(t)?t:[t],n,r)},t.find=i,t.findOneChild=function(e,t){return t.find(e)},t.findOne=function e(t,n,i){void 0===i&&(i=!0);for(var o=null,a=0;a0&&(o=e(t,s.children,!0)))}return o},t.existsOne=function e(t,n){return n.some((function(n){return(0,r.isTag)(n)&&(t(n)||e(t,n.children))}))},t.findAll=function(e,t){for(var n=[],i=[t],o=[0];;)if(o[0]>=i[0].length){if(1===i.length)return n;i.shift(),o.shift()}else{var a=i[0][o[0]++];(0,r.isTag)(a)&&(e(a)&&n.push(a),a.children.length>0&&(o.unshift(0),i.unshift(a.children)))}}},743:(e,t,n)=>{"use strict";const r=n(6199),i=n(7955);t.decode=function(e){const t=e.length;let n=4,o=41===e.charCodeAt(t-1)?t-2:t-1,a="";for(;n{"use strict";t.createCustomError=function(e,t){const n=Object.create(SyntaxError.prototype),r=new Error;return Object.assign(n,{name:e,message:t,get stack(){return(r.stack||"").replace(/^(.+\n){1,3}/,`${e}: ${t}\n`)}})}},801:(e,t,n)=>{"use strict";const r=n(8783),i={name:String,children:[[]]};t.generate=function(e){this.token(r.Function,e.name+"("),this.children(e),this.token(r.RightParenthesis,")")},t.name="Function",t.parse=function(e,t){const n=this.tokenStart,i=this.consumeFunctionName(),o=i.toLowerCase();let a;return a=t.hasOwnProperty(o)?t[o].call(this,t):e.call(this,t),this.eof||this.eat(r.RightParenthesis),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:i,children:a}},t.structure=i,t.walkContext="function"},819:(e,t)=>{"use strict";t.name="removeViewBox",t.description="removes viewBox attribute when possible";const n=new Set(["pattern","svg","symbol"]);t.fn=()=>({element:{enter:(e,t)=>{if(n.has(e.name)&&null!=e.attributes.viewBox&&null!=e.attributes.width&&null!=e.attributes.height){if("svg"===e.name&&"root"!==t.type)return;const n=e.attributes.viewBox.split(/[ ,]+/g);"0"===n[0]&&"0"===n[1]&&e.attributes.width.replace(/px$/,"")===n[2]&&e.attributes.height.replace(/px$/,"")===n[3]&&delete e.attributes.viewBox}}}})},881:e=>{"use strict";const t={parse(){return this.createSingleNodeList(this.SelectorList())}},n={parse(){return this.createSingleNodeList(this.Selector())}},r={parse(){return this.createSingleNodeList(this.Identifier())}},i={parse(){return this.createSingleNodeList(this.Nth())}},o={dir:r,has:t,lang:r,matches:t,is:t,"-moz-any":t,"-webkit-any":t,where:t,not:t,"nth-child":i,"nth-last-child":i,"nth-last-of-type":i,"nth-of-type":i,slotted:n,host:n,"host-context":n};e.exports=o},883:(e,t,n)=>{"use strict";const r=n(8742),i=n(4090),{syntax:{specificity:o}}=n(5360),{visit:a,matches:s}=n(5620),{attrsGroups:l,inheritableAttrs:c,presentationNonInheritableGroupAttrs:u}=n(9439),d=r.walk.skip,h=(e,t)=>{const n=[];e.block.children.forEach((e=>{"Declaration"===e.type&&n.push({name:e.property,value:r.generate(e.value),important:!0===e.important})}));const i=[];return r.walk(e.prelude,(e=>{if("Selector"===e.type){const a=r.clone(e);let s=!1;r.walk(a,((e,t,n)=>{"PseudoClassSelector"===e.type&&(s=!0,n.remove(t))})),i.push({specificity:o(e),dynamic:s||t,selector:r.generate(a),declarations:n})}})),i},p=(e,t)=>{const n=[],i=r.parse(e,{parseValue:!1,parseAtrulePrelude:!1});return r.walk(i,(e=>"Rule"===e.type?(n.push(...h(e,t||!1)),d):"Atrule"===e.type?("keyframes"===e.name||"-webkit-keyframes"===e.name||r.walk(e,(e=>{if("Rule"===e.type)return n.push(...h(e,t||!0)),d})),d):void 0)),n},m=(e,t)=>{const n={},i=new Map;for(const[e,r]of Object.entries(t.attributes))l.presentation.has(e)&&(n[e]={type:"static",inherited:!1,value:r},i.set(e,!1));for(const{selector:r,declarations:o,dynamic:a}of e.rules)if(s(t,r))for(const{name:e,value:t,important:r}of o){const o=n[e];o&&"dynamic"===o.type||(a?n[e]={type:"dynamic",inherited:!1}:null!=o&&!0!==r&&!1!==i.get(e)||(n[e]={type:"static",inherited:!1,value:t},i.set(e,r)))}const o=null==t.attributes.style?[]:(e=>{const t=[],n=r.parse(e,{context:"declarationList",parseValue:!1});return r.walk(n,(e=>{"Declaration"===e.type&&t.push({name:e.property,value:r.generate(e.value),important:!0===e.important})})),t})(t.attributes.style);for(const{name:e,value:t,important:r}of o){const o=n[e];o&&"dynamic"===o.type||null!=o&&!0!==r&&!1!==i.get(e)||(n[e]={type:"static",inherited:!1,value:t},i.set(e,r))}return n},f=(e,t)=>{for(let n=0;n<4;n+=1){if(e[n]t[n])return 1}return 0};t.compareSpecificity=f,t.collectStylesheet=e=>{const t=[],n=new Map;return a(e,{element:{enter:(e,r)=>{if(n.set(e,r),"style"===e.name&&(null==e.attributes.type||""===e.attributes.type||"text/css"===e.attributes.type)){const n=null!=e.attributes.media&&"all"!==e.attributes.media;for(const r of e.children)"text"!==r.type&&"cdata"!==r.type||t.push(...p(r.value,n))}}}}),t.sort(((e,t)=>f(e.specificity,t.specificity))),{rules:t,parents:n}},t.computeStyle=(e,t)=>{const{parents:n}=e,r=m(e,t);let i=n.get(t);for(;null!=i&&"root"!==i.type;){const t=m(e,i);for(const[e,n]of Object.entries(t))null==r[e]&&c.has(e)&&!u.has(e)&&(r[e]={...n,inherited:!0});i=n.get(i)}return r},t.includesAttrSelector=(e,t,n=null,o=!1)=>{const a="string"==typeof e?i.parse(e):i.parse(r.generate(e.data));for(const e of a)if(e.some(((r,a)=>{if(o){if(a===e.length-1)return!1;if(!i.isTraversal(e[a+1]))return!1}return"attribute"===r.type&&r.name===t&&(null==n||r.value===n)})))return!0;return!1}},931:(e,t,n)=>{"use strict";const r=n(8783);t.generate=function(e){this.children(e)},t.name="AtrulePrelude",t.parse=function(e){let t=null;return null!==e&&(e=e.toLowerCase()),this.skipSC(),t=hasOwnProperty.call(this.atrule,e)&&"function"==typeof this.atrule[e].prelude?this.atrule[e].prelude.call(this):this.readSequence(this.scope.AtrulePrelude),this.skipSC(),!0!==this.eof&&this.tokenType!==r.LeftCurlyBracket&&this.tokenType!==r.Semicolon&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}},t.structure={children:[[]]},t.walkContext="atrulePrelude"},932:e=>{"use strict";const t={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}};e.exports=t},941:(e,t,n)=>{"use strict";const r=n(8783),i={parse:{prelude(){const e=this.createList();switch(this.skipSC(),this.tokenType){case r.String:e.push(this.String());break;case r.Url:case r.Function:e.push(this.Url());break;default:this.error("String or url() is expected")}return this.lookupNonWSType(0)!==r.Ident&&this.lookupNonWSType(0)!==r.LeftParenthesis||e.push(this.MediaQueryList()),e},block:null}};e.exports=i},943:(e,t,n)=>{"use strict";const r=n(6199),i=n(6591),o=n(7955);function a(e,t){return null!==e&&e.type===i.Delim&&e.value.charCodeAt(0)===t}function s(e,t,n){let i=0;for(let o=t;o6)return 0}return i}function l(e,t,n){if(!e)return 0;for(;a(n(t),63);){if(++e>6)return 0;t++}return t}e.exports=function(e,t){let n=0;if(null===e||e.type!==i.Ident||!o.cmpChar(e.value,0,117))return 0;if(null===(e=t(++n)))return 0;if(a(e,43))return null===(e=t(++n))?0:e.type===i.Ident?l(s(e,0,!0),++n,t):a(e,63)?l(1,++n,t):0;if(e.type===i.Number){const r=s(e,1,!0);return 0===r?0:null===(e=t(++n))?n:e.type===i.Dimension||e.type===i.Number?function(e){return 45===e.value.charCodeAt(0)}(e)&&s(e,1,!1)?n+1:0:l(r,n,t)}return e.type===i.Dimension?l(s(e,1,!0),++n,t):0}},970:(e,t,n)=>{"use strict";const r=n(8783);function i(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function o(){return this.skipSC(),this.tokenType===r.Ident&&this.lookupNonWSType(1)===r.Colon?this.createSingleNodeList(this.Declaration()):a.call(this)}function a(){const e=this.createList();let t;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case r.Comment:case r.WhiteSpace:this.next();continue;case r.Function:t=this.Function(i,this.scope.AtrulePrelude);break;case r.Ident:t=this.Identifier();break;case r.LeftParenthesis:t=this.Parentheses(o,this.scope.AtrulePrelude);break;default:break e}e.push(t)}return e}const s={parse:{prelude(){const e=a.call(this);return null===this.getFirstListNode(e)&&this.error("Condition is expected"),e},block(){return this.Block(!1)}}};e.exports=s},971:(e,t,n)=>{"use strict";const{parsePathData:r,stringifyPathData:i}=n(7947);var o;t.path2js=e=>{if(e.pathJS)return e.pathJS;const t=[],n=r(e.attributes.d);for(const{command:e,args:r}of n)t.push({command:e,args:r});return t.length&&"m"==t[0].command&&(t[0].command="M"),e.pathJS=t,t};const a=e=>{const t=[];let n=[0,0],r=[0,0];for(let{command:i,args:o}of e)o=o.slice(),"m"===i&&(o[0]+=r[0],o[1]+=r[1],i="M"),"M"===i&&(r[0]=o[0],r[1]=o[1],n[0]=r[0],n[1]=r[1]),"h"===i&&(o[0]+=r[0],i="H"),"H"===i&&(r[0]=o[0]),"v"===i&&(o[0]+=r[1],i="V"),"V"===i&&(r[1]=o[0]),"l"===i&&(o[0]+=r[0],o[1]+=r[1],i="L"),"L"===i&&(r[0]=o[0],r[1]=o[1]),"c"===i&&(o[0]+=r[0],o[1]+=r[1],o[2]+=r[0],o[3]+=r[1],o[4]+=r[0],o[5]+=r[1],i="C"),"C"===i&&(r[0]=o[4],r[1]=o[5]),"s"===i&&(o[0]+=r[0],o[1]+=r[1],o[2]+=r[0],o[3]+=r[1],i="S"),"S"===i&&(r[0]=o[2],r[1]=o[3]),"q"===i&&(o[0]+=r[0],o[1]+=r[1],o[2]+=r[0],o[3]+=r[1],i="Q"),"Q"===i&&(r[0]=o[2],r[1]=o[3]),"t"===i&&(o[0]+=r[0],o[1]+=r[1],i="T"),"T"===i&&(r[0]=o[0],r[1]=o[1]),"a"===i&&(o[5]+=r[0],o[6]+=r[1],i="A"),"A"===i&&(r[0]=o[5],r[1]=o[6]),"z"!==i&&"Z"!==i||(r[0]=n[0],r[1]=n[1],i="z"),t.push({command:i,args:o});return t};function s(e,t){return e[0]=t[t.length-2],e[1]=t[t.length-1],e}function l(e,t){if(2==e.length){let n=e[1],r=e[0],i=c(e[1]),o=u(r,n);d(i,o)>0?s(t,h(o,n)):(s(t,i),e.shift())}else{let n=e[2],r=e[1],i=e[0],o=u(r,n),a=u(i,n),l=c(n),p=h(o,a),m=h(a,o);if(d(p,l)>0)d(o,l)>0?(s(t,p),e.shift()):(s(t,l),e.splice(0,2));else{if(!(d(m,l)>0))return!0;d(a,l)>0?(s(t,m),e.splice(1,1)):(s(t,l),e.splice(0,2))}}return!1}function c(e){return[-e[0],-e[1]]}function u(e,t){return[e[0]-t[0],e[1]-t[1]]}function d(e,t){return e[0]*t[0]+e[1]*t[1]}function h(e,t){var n=[-e[1],e[0]];return d(n,c(t))<0?c(n):n}function p(e){const 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+(null==u?0:u[t%2]);switch(s.command){case"M":l={list:[],minX:0,minY:0,maxX:0,maxY:0},t.list.push(l);break;case"H":null!=u&&n(l,[d[0],u[1]]);break;case"V":null!=u&&n(l,[u[0],d[0]]);break;case"Q":n(l,d.slice(0,2)),o=[d[2]-d[0],d[3]-d[1]];break;case"T":null==u||null==c||"Q"!=c.command&&"T"!=c.command||(h=[u[0]+o[0],u[1]+o[1]],n(l,h),o=[d[0]-h[0],d[1]-h[1]]);break;case"C":null!=u&&n(l,[.5*(u[0]+d[0]),.5*(u[1]+d[1])]),n(l,[.5*(d[0]+d[2]),.5*(d[1]+d[3])]),n(l,[.5*(d[2]+d[4]),.5*(d[3]+d[5])]),o=[d[4]-d[2],d[5]-d[3]];break;case"S":null==u||null==c||"C"!=c.command&&"S"!=c.command||(n(l,[u[0]+.5*o[0],u[1]+.5*o[1]]),h=[u[0]+o[0],u[1]+o[1]]),null!=h&&n(l,[.5*(h[0]+d[0]),.5*(h[1]+d[1])]),n(l,[.5*(d[0]+d[2]),.5*(d[1]+d[3])]),o=[d[2]-d[0],d[3]-d[1]];break;case"A":if(null!=u)for(var r,i=g.apply(0,u.concat(d));(r=i.splice(0,6).map(p)).length;)null!=u&&n(l,[.5*(u[0]+r[0]),.5*(u[1]+r[1])]),n(l,[.5*(r[0]+r[2]),.5*(r[1]+r[3])]),n(l,[.5*(r[2]+r[4]),.5*(r[3]+r[5])]),i.length&&n(l,u=r.slice(-2))}d.length>=2&&n(l,d.slice(-2))}return t}function m(e){e.list.sort((function(e,t){return e[0]==t[0]?e[1]-t[1]:e[0]-t[0]}));var t=[],n=0,r=0;for(let i=0;i=2&&f(t[t.length-2],t[t.length-1],e.list[i])<=0;)t.pop();e.list[i][1]=2&&f(i[i.length-2],i[i.length-1],e.list[t])<=0;)i.pop();e.list[t][1]>e.list[o][1]&&(o=t,a=i.length),i.push(e.list[t])}i.pop(),t.pop();const s=t.concat(i);return{list:s,minX:0,maxX:t.length,minY:r,maxY:(t.length+a)%s.length}}function f(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}t.js2path=function(e,t,n){e.pathJS=t;const r=[];for(const e of t){if(0!==r.length&&("M"===e.command||"m"===e.command)){const e=r[r.length-1];"M"!==e.command&&"m"!==e.command||r.pop()}r.push({command:e.command,args:e.args})}e.attributes.d=i({pathData:r,precision:n.floatPrecision,disableSpaceAfterFlags:n.noSpaceAfterFlags})},t.intersects=function(e,t){const n=p(a(e)),r=p(a(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;const i=n.list.map(m),o=r.list.map(m);return i.some((function(e){return!(e.list.length<3)&&o.some((function(t){if(t.list.length<3)return!1;for(var n=[s(e,t,[1,0])],r=c(n[0]),i=1e4;;){if(0==i--)return console.error("Error: infinite loop while processing mergePaths plugin."),!0;if(n.push(s(e,t,r)),d(r,n[n.length-1])<=0)return!1;if(l(n,r))return!0}}))}));function s(e,t,n){return u(h(e,n),h(t,c(n)))}function h(e,t){for(var n,r=t[1]>=0?t[0]<0?e.maxY:e.maxX:t[0]<0?e.minX:e.minY,i=-1/0;(n=d(e.list[r],t))>i;)i=n,r=++r%e.list.length;return e.list[(r||e.list.length)-1]}};const g=(e,t,n,r,i,o,a,s,l,c)=>{const u=120*Math.PI/180,d=Math.PI/180*(+i||0);let h=[];const 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(c)C=c[0],A=c[1],x=c[2],S=c[3];else{t=m(e=p(e,t,-d),t,-d);var f=(e-(s=p(s,l,-d)))/2,b=(t-(l=m(s,l,-d)))/2,y=f*f/(n*n)+b*b/(r*r);y>1&&(n*=y=Math.sqrt(y),r*=y);var k=n*n,v=r*r,w=(o==a?-1:1)*Math.sqrt(Math.abs((k*v-k*b*b-v*f*f)/(k*b*b+v*f*f))),x=w*n*b/r+(e+s)/2,S=w*-r*f/n+(t+l)/2,C=Math.asin(Number(((t-S)/r).toFixed(9))),A=Math.asin(Number(((l-S)/r).toFixed(9)));C=eA&&(C-=2*Math.PI),!a&&A>C&&(A-=2*Math.PI)}var T=A-C;if(Math.abs(T)>u){var E=A,P=s,N=l;A=C+u*(a&&A>C?1:-1),s=x+n*Math.cos(A),l=S+r*Math.sin(A),h=g(s,l,n,r,i,0,a,P,N,[A,E,x,S])}T=A-C;var L=Math.cos(C),D=Math.sin(C),O=Math.cos(A),M=Math.sin(A),I=Math.tan(T/4),z=4/3*n*I,R=4/3*r*I,B=[-z*D,R*L,s+z*M-e,l-R*O-t,s-e,l-t];if(c)return B.concat(h);h=B.concat(h);for(var q=[],j=0,_=h.length;j<_;j++)q[j]=j%2?m(h[j-1],h[j],d):p(h[j],h[j+1],d);return q}},981:(e,t,n)=>{"use strict";const{detachNodeFromParent:r}=n(5620);t.name="removeRasterImages",t.description="removes raster images (disabled by default)",t.fn=()=>({element:{enter:(e,t)=>{"image"===e.name&&null!=e.attributes["xlink:href"]&&/(\.|image\/)(jpe?g|png|gif)/.test(e.attributes["xlink:href"])&&r(e,t)}}})},1006:(e,t,n)=>{"use strict";const r=n(6591);t.generate=function(e){this.token(r.Delim,"["),this.children(e),this.token(r.Delim,"]")},t.name="Brackets",t.parse=function(e,t){const n=this.tokenStart;let i=null;return this.eat(r.LeftSquareBracket),i=e.call(this,t),this.eof||this.eat(r.RightSquareBracket),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:i}},t.structure={children:[[]]}},1009:(e,t,n)=>{"use strict";const r={node:n(8603)};e.exports=r},1042:(e,t,n)=>{"use strict";const{pathElems:r,referencesProps:i}=n(9439),{includesUrlReference:o}=n(6675);t.name="moveGroupAttrsToElems",t.description="moves some group attributes to the content elements";const a=[...r,"g","text"];t.fn=()=>({element:{enter:e=>{if("g"===e.name&&0!==e.children.length&&null!=e.attributes.transform&&!1===Object.entries(e.attributes).some((([e,t])=>i.has(e)&&o(t)))&&e.children.every((e=>"element"===e.type&&a.includes(e.name)&&null==e.attributes.id))){for(const t of e.children){const n=e.attributes.transform;"element"===t.type&&(null!=t.attributes.transform?t.attributes.transform=`${n} ${t.attributes.transform}`:t.attributes.transform=n)}delete e.attributes.transform}}}})},1071:(e,t,n)=>{"use strict";const r=n(6591);function i(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function o(){const e=this.SelectorList();return"Raw"!==e.type&&!1===this.eof&&this.tokenType!==r.LeftCurlyBracket&&this.error(),e}t.generate=function(e){this.node(e.prelude),this.node(e.block)},t.name="Rule",t.parse=function(){const e=this.tokenIndex,t=this.tokenStart;let n,r;return n=this.parseRulePrelude?this.parseWithFallback(o,i):i.call(this,e),r=this.Block(!0),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}},t.structure={prelude:["SelectorList","Raw"],block:["Block"]},t.walkContext="rule"},1075:(e,t,n)=>{"use strict";const r=n(4075),i=n(5966),o=n(3123);t.AtrulePrelude=r,t.Selector=i,t.Value=o},1119:(e,t,n)=>{"use strict";const r=n(7351),i=n(9955);t.decode=function(e){const t=e.length,n=e.charCodeAt(0),o=34===n||39===n?1:0,a=1===o&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1;let s="";for(let n=o;n<=a;n++){let o=e.charCodeAt(n);if(92===o){if(n===a){n!==t-1&&(s=e.substr(n+1));break}if(o=e.charCodeAt(++n),r.isValidEscape(92,o)){const t=n-1,r=i.consumeEscaped(e,t);n=r-1,s+=i.decodeEscaped(e.substring(t+1,r))}else 13===o&&10===e.charCodeAt(n+1)&&n++}else s+=e[n]}return s},t.encode=function(e,t){const n=t?"'":'"',i=t?39:34;let o="",a=!1;for(let t=0;t{"use strict";const r=n(313);class i{constructor(){this.map=new Map}resolve(e){let t=this.map.get(e);return void 0===t&&(t=this.map.size+1,this.map.set(e,t)),t}}e.exports=function(){const e=new i;return function(t){const n=r.generate(t);return t.id=e.resolve(n),t.length=n.length,t.fingerprint=null,t}}},1164:(e,t)=>{"use strict";let n=null;class r{static createItem(e){return{prev:null,next:null,data:e}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(e){return r.createItem(e)}allocateCursor(e,t){let r;return null!==n?(r=n,n=n.cursor,r.prev=e,r.next=t,r.cursor=this.cursor):r={prev:e,next:t,cursor:this.cursor},this.cursor=r,r}releaseCursor(){const{cursor:e}=this;this.cursor=e.cursor,e.prev=null,e.next=null,e.cursor=n,n=e}updateCursors(e,t,n,r){let{cursor:i}=this;for(;null!==i;)i.prev===e&&(i.prev=t),i.next===n&&(i.next=r),i=i.cursor}*[Symbol.iterator](){for(let e=this.head;null!==e;e=e.next)yield e.data}get size(){let e=0;for(let t=this.head;null!==t;t=t.next)e++;return e}get isEmpty(){return null===this.head}get first(){return this.head&&this.head.data}get last(){return this.tail&&this.tail.data}fromArray(e){let t=null;this.head=null;for(let n of e){const e=r.createItem(n);null!==t?t.next=e:this.head=e,e.prev=t,t=e}return this.tail=t,this}toArray(){return[...this]}toJSON(){return[...this]}forEach(e,t=this){const n=this.allocateCursor(null,this.head);for(;null!==n.next;){const r=n.next;n.next=r.next,e.call(t,r.data,r,this)}this.releaseCursor()}forEachRight(e,t=this){const n=this.allocateCursor(this.tail,null);for(;null!==n.prev;){const r=n.prev;n.prev=r.prev,e.call(t,r.data,r,this)}this.releaseCursor()}reduce(e,t,n=this){let r,i=this.allocateCursor(null,this.head),o=t;for(;null!==i.next;)r=i.next,i.next=r.next,o=e.call(n,o,r.data,r,this);return this.releaseCursor(),o}reduceRight(e,t,n=this){let r,i=this.allocateCursor(this.tail,null),o=t;for(;null!==i.prev;)r=i.prev,i.prev=r.prev,o=e.call(n,o,r.data,r,this);return this.releaseCursor(),o}some(e,t=this){for(let n=this.head;null!==n;n=n.next)if(e.call(t,n.data,n,this))return!0;return!1}map(e,t=this){const n=new r;for(let r=this.head;null!==r;r=r.next)n.appendData(e.call(t,r.data,r,this));return n}filter(e,t=this){const n=new r;for(let r=this.head;null!==r;r=r.next)e.call(t,r.data,r,this)&&n.appendData(r.data);return n}nextUntil(e,t,n=this){if(null===e)return;const r=this.allocateCursor(null,e);for(;null!==r.next;){const e=r.next;if(r.next=e.next,t.call(n,e.data,e,this))break}this.releaseCursor()}prevUntil(e,t,n=this){if(null===e)return;const r=this.allocateCursor(e,null);for(;null!==r.prev;){const e=r.prev;if(r.prev=e.prev,t.call(n,e.data,e,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){const e=new r;for(let t of this)e.appendData(t);return e}prepend(e){return this.updateCursors(null,e,this.head,e),null!==this.head?(this.head.prev=e,e.next=this.head):this.tail=e,this.head=e,this}prependData(e){return this.prepend(r.createItem(e))}append(e){return this.insert(e)}appendData(e){return this.insert(r.createItem(e))}insert(e,t=null){if(null!==t)if(this.updateCursors(t.prev,e,t,e),null===t.prev){if(this.head!==t)throw new Error("before doesn't belong to list");this.head=e,t.prev=e,e.next=t,this.updateCursors(null,e)}else t.prev.next=e,e.prev=t.prev,t.prev=e,e.next=t;else this.updateCursors(this.tail,e,null,e),null!==this.tail?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e;return this}insertData(e,t){return this.insert(r.createItem(e),t)}remove(e){if(this.updateCursors(e,e.prev,e,e.next),null!==e.prev)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't belong to list");this.head=e.next}if(null!==e.next)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't belong to list");this.tail=e.prev}return e.prev=null,e.next=null,e}push(e){this.insert(r.createItem(e))}pop(){return null!==this.tail?this.remove(this.tail):null}unshift(e){this.prepend(r.createItem(e))}shift(){return null!==this.head?this.remove(this.head):null}prependList(e){return this.insertList(e,this.head)}appendList(e){return this.insertList(e)}insertList(e,t){return null===e.head||(null!=t?(this.updateCursors(t.prev,e.tail,t,e.head),null!==t.prev?(t.prev.next=e.head,e.head.prev=t.prev):this.head=e.head,t.prev=e.tail,e.tail.next=t):(this.updateCursors(this.tail,e.tail,null,e.head),null!==this.tail?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail),e.head=null,e.tail=null),this}replace(e,t){"head"in t?this.insertList(t,e):this.insert(t,e),this.remove(e)}}t.List=r},1178:(e,t,n)=>{"use strict";const r=n(6591),i={name:String,children:[["Raw"],null]};t.generate=function(e){this.token(r.Colon,":"),null===e.children?this.token(r.Ident,e.name):(this.token(r.Function,e.name+"("),this.children(e),this.token(r.RightParenthesis,")"))},t.name="PseudoClassSelector",t.parse=function(){const e=this.tokenStart;let t,n,i=null;return this.eat(r.Colon),this.tokenType===r.Function?(t=this.consumeFunctionName(),n=t.toLowerCase(),hasOwnProperty.call(this.pseudo,n)?(this.skipSC(),i=this.pseudo[n].call(this),this.skipSC()):(i=this.createList(),i.push(this.Raw(this.tokenIndex,null,!1))),this.eat(r.RightParenthesis)):t=this.consume(r.Ident),{type:"PseudoClassSelector",loc:this.getLocation(e,this.tokenStart),name:t,children:i}},t.structure=i,t.walkContext="function"},1187:(e,t,n)=>{"use strict";const r=n(8572);function i(e){return"node"in e?e.node:i(e.match[0])}function o(e){return"node"in e?e.node:o(e.match[e.match.length-1])}t.matchFragments=function(e,t,n,a,s){const l=[];return null!==n.matched&&function n(c){if(null!==c.syntax&&c.syntax.type===a&&c.syntax.name===s){const n=i(c),a=o(c);e.syntax.walk(t,(function(e,t,i){if(e===n){const e=new r.List;do{if(e.appendData(t.data),t.data===a)break;t=t.next}while(null!==t);l.push({parent:i,nodes:e})}}))}Array.isArray(c.match)&&c.match.forEach(n)}(n.matched),l}},1215:(e,t,n)=>{"use strict";const r=n(1527),i=new Set(["Atrule","Selector","Declaration"]);t.generateSourceMap=function(e){const t=new r.SourceMapGenerator,n={line:1,column:0},o={line:0,column:0},a={line:1,column:0},s={generated:a};let l=1,c=0,u=!1;const d=e.node;e.node=function(e){if(e.loc&&e.loc.start&&i.has(e.type)){const r=e.loc.start.line,i=e.loc.start.column-1;o.line===r&&o.column===i||(o.line=r,o.column=i,n.line=l,n.column=c,u&&(u=!1,n.line===a.line&&n.column===a.column||t.addMapping(s)),u=!0,t.addMapping({source:e.loc.source,original:o,generated:n}))}d.call(this,e),u&&i.has(e.type)&&(a.line=l,a.column=c)};const h=e.emit;e.emit=function(e,t,n){for(let t=0;t{e.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}},1271:e=>{"use strict";const{hasOwnProperty:t}=Object.prototype,n={generic:!0,types:a,atrules:{prelude:s,descriptors:s},properties:a,parseContext:function(e,t){return Object.assign(e,t)},scope:function e(n,o){for(const a in o)t.call(o,a)&&(r(n[a])?e(n[a],o[a]):n[a]=i(o[a]));return n},atrule:["parse"],pseudo:["parse"],node:["name","structure","parse","generate","walkContext"]};function r(e){return e&&e.constructor===Object}function i(e){return r(e)?{...e}:e}function o(e,t){return"string"==typeof t&&/^\s*\|/.test(t)?"string"==typeof e?e+t:t.replace(/^\s*\|\s*/,""):t||null}function a(e,n){if("string"==typeof n)return o(e,n);const r={...e};for(let i in n)t.call(n,i)&&(r[i]=o(t.call(e,i)?e[i]:void 0,n[i]));return r}function s(e,t){const n=a(e,t);return!r(n)||Object.keys(n).length?n:null}function l(e,n,o){for(const a in o)if(!1!==t.call(o,a))if(!0===o[a])t.call(n,a)&&(e[a]=i(n[a]));else if(o[a])if("function"==typeof o[a]){const t=o[a];e[a]=t({},e[a]),e[a]=t(e[a]||{},n[a])}else if(r(o[a])){const t={};for(let n in e[a])t[n]=l({},e[a][n],o[a]);for(let e in n[a])t[e]=l(t[e]||{},n[a][e],o[a]);e[a]=t}else if(Array.isArray(o[a])){const r={},i=o[a].reduce((function(e,t){return e[t]=!0,e}),{});for(const[t,n]of Object.entries(e[a]||{}))r[t]={},n&&l(r[t],n,i);for(const e in n[a])t.call(n[a],e)&&(r[e]||(r[e]={}),n[a]&&n[a][e]&&l(r[e],n[a][e],i));e[a]=r}return e}e.exports=(e,t)=>l(e,t,n)},1281:(e,t)=>{"use strict";const n={value:String};t.generate=function(e){this.tokenize(e.value)},t.name="Operator",t.parse=function(){const e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}},t.structure=n},1334:(e,t,n)=>{"use strict";const{detachNodeFromParent:r}=n(5620);t.name="removeElementsByAttr",t.description="removes arbitrary elements by ID or className (disabled by default)",t.fn=(e,t)=>{const n=null==t.id?[]:Array.isArray(t.id)?t.id:[t.id],i=null==t.class?[]:Array.isArray(t.class)?t.class:[t.class];return{element:{enter:(e,t)=>{if(null!=e.attributes.id&&0!==n.length&&n.includes(e.attributes.id)&&r(e,t),e.attributes.class&&0!==i.length){const n=e.attributes.class.split(" ");for(const o of i)if(n.includes(o)){r(e,t);break}}}}}}},1338:(e,t,n)=>{"use strict";const r=n(1119),i=n(8783),o={value:String};t.generate=function(e){this.token(i.String,r.encode(e.value))},t.name="String",t.parse=function(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:r.decode(this.consume(i.String))}},t.structure=o},1342:(e,t,n)=>{"use strict";const{inheritableAttrs:r,attrsGroups:i,presentationNonInheritableGroupAttrs:o}=n(9439);t.name="removeNonInheritableGroupAttrs",t.description="removes non-inheritable group’s presentational attributes",t.fn=()=>({element:{enter:e=>{if("g"===e.name)for(const t of Object.keys(e.attributes))!i.presentation.has(t)||r.has(t)||o.has(t)||delete e.attributes[t]}}})},1390:(e,t,n)=>{"use strict";const{visit:r}=n(5620),{inheritableAttrs:i,pathElems:o}=n(9439);t.name="moveElemsAttrsToGroup",t.description="Move common attributes of group children to the group",t.fn=e=>{let t=!1;return r(e,{element:{enter:e=>{"style"===e.name&&(t=!0)}}}),{element:{exit:e=>{if("g"!==e.name||e.children.length<=1)return;if(t)return;const n=new Map;let r=!0,a=!0;for(const t of e.children)if("element"===t.type)if(o.has(t.name)||(a=!1),r){r=!1;for(const[e,r]of Object.entries(t.attributes))i.has(e)&&n.set(e,r)}else for(const[e,r]of n)t.attributes[e]!==r&&n.delete(e);null==e.attributes["clip-path"]&&null==e.attributes.mask||n.delete("transform"),a&&n.delete("transform");for(const[t,r]of n)"transform"===t?null!=e.attributes.transform?e.attributes.transform=`${e.attributes.transform} ${r}`:e.attributes.transform=r:e.attributes[t]=r;for(const t of e.children)if("element"===t.type)for(const[e]of n)delete t.attributes[e]}}}}},1401:(e,t,n)=>{"use strict";const r=n(8783),i={name:String};t.generate=function(e){this.token(r.Delim,"#"+e.name)},t.name="IdSelector",t.parse=function(){const e=this.tokenStart;return this.eat(r.Hash),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}},t.structure=i},1447:(e,t,n)=>{"use strict";const{attrsGroupsDefaults:r,colorsProps:i}=n(9439),{detachNodeFromParent:o,querySelectorAll:a,querySelector:s}=n(5620),{computeStyle:l,collectStylesheet:c}=n(883);t.name="convertOneStopGradients",t.description="converts one-stop (single color) gradients to a plain color",t.fn=e=>{const t=c(e),n=new Set,u=new Map,d=new Map;let h=0;return{element:{enter:(o,c)=>{if(null!=o.attributes["xlink:href"]&&h++,"defs"===o.name)return void u.set(o,c);if("linearGradient"!==o.name&&"radialGradient"!==o.name)return;const p=o.children.filter((e=>"element"===e.type&&"stop"===e.name)),m=o.attributes["xlink:href"]||o.attributes.href;let f=0===p.length&&null!=m&&m.startsWith("#")?s(e,m):o;if(null==f||"element"!==f.type)return void d.set(o,c);const g=f.children.filter((e=>"element"===e.type&&"stop"===e.name));if(1!==g.length||"element"!==g[0].type)return;let b;"element"===c.type&&"defs"===c.name&&n.add(c),d.set(o,c);const y=l(t,g[0])["stop-color"];null!=y&&"static"===y.type&&(b=y.value);const k=`url(#${o.attributes.id})`,v=[...i].map((e=>`[${e}="${k}"]`)).join(","),w=a(e,v);for(const e of w)if("element"===e.type)for(const t of i)e.attributes[t]===k&&(null!=b?e.attributes[t]=b:delete e.attributes[t]);const x=a(e,`[style*=${k}]`);for(const e of x)"element"===e.type&&(e.attributes.style=e.attributes.style.replace(k,b||r.presentation["stop-color"]))},exit:e=>{if("svg"===e.name){for(const[e,t]of d.entries())null!=e.attributes["xlink:href"]&&h--,o(e,t);0===h&&delete e.attributes["xmlns:xlink"];for(const[e,t]of u.entries())n.has(e)&&0===e.children.length&&o(e,t)}}}}}},1527:(e,t,n)=>{var r=n(582),i=n(8829),o=n(4361).C,a=n(6260).P;function s(e){e||(e={}),this._file=i.getArg(e,"file",null),this._sourceRoot=i.getArg(e,"sourceRoot",null),this._skipValidation=i.getArg(e,"skipValidation",!1),this._ignoreInvalidMapping=i.getArg(e,"ignoreInvalidMapping",!1),this._sources=new o,this._names=new o,this._mappings=new a,this._sourcesContents=null}s.prototype._version=3,s.fromSourceMap=function(e,t){var n=e.sourceRoot,r=new s(Object.assign(t||{},{file:e.file,sourceRoot:n}));return e.eachMapping((function(e){var t={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(t.source=e.source,null!=n&&(t.source=i.relative(n,t.source)),t.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(t.name=e.name)),r.addMapping(t)})),e.sources.forEach((function(t){var o=t;null!==n&&(o=i.relative(n,t)),r._sources.has(o)||r._sources.add(o);var a=e.sourceContentFor(t);null!=a&&r.setSourceContent(t,a)})),r},s.prototype.addMapping=function(e){var t=i.getArg(e,"generated"),n=i.getArg(e,"original",null),r=i.getArg(e,"source",null),o=i.getArg(e,"name",null);(this._skipValidation||!1!==this._validateMapping(t,n,r,o))&&(null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=o&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:o}))},s.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=i.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[i.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[i.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var a=this._sourceRoot;null!=a&&(r=i.relative(a,r));var s=new o,l=new o;this._mappings.unsortedForEach((function(t){if(t.source===r&&null!=t.originalLine){var o=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=o.source&&(t.source=o.source,null!=n&&(t.source=i.join(n,t.source)),null!=a&&(t.source=i.relative(a,t.source)),t.originalLine=o.line,t.originalColumn=o.column,null!=o.name&&(t.name=o.name))}var c=t.source;null==c||s.has(c)||s.add(c);var u=t.name;null==u||l.has(u)||l.add(u)}),this),this._sources=s,this._names=l,e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=i.join(n,t)),null!=a&&(t=i.relative(a,t)),this.setSourceContent(t,r))}),this)},s.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column){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"undefined"!=typeof console&&console.warn&&console.warn(i),!1;throw new 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)){if(i="Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}),this._ignoreInvalidMapping)return"undefined"!=typeof console&&console.warn&&console.warn(i),!1;throw new Error(i)}},s.prototype._serializeMappings=function(){for(var e,t,n,o,a=0,s=1,l=0,c=0,u=0,d=0,h="",p=this._mappings.toArray(),m=0,f=p.length;m0){if(!i.compareByGeneratedPositionsInflated(t,p[m-1]))continue;e+=","}e+=r.encode(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(o=this._sources.indexOf(t.source),e+=r.encode(o-d),d=o,e+=r.encode(t.originalLine-1-c),c=t.originalLine-1,e+=r.encode(t.originalColumn-l),l=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=r.encode(n-u),u=n)),h+=e}return h},s.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));var n=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},s.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=s},1565:(e,t,n)=>{"use strict";const r=n(6591),i=(e,t)=>{if(e===r.Delim&&(e=t),"string"==typeof e){const t=e.charCodeAt(0);return t>127?32768:t<<8}return e},o=[[r.Ident,r.Ident],[r.Ident,r.Function],[r.Ident,r.Url],[r.Ident,r.BadUrl],[r.Ident,"-"],[r.Ident,r.Number],[r.Ident,r.Percentage],[r.Ident,r.Dimension],[r.Ident,r.CDC],[r.Ident,r.LeftParenthesis],[r.AtKeyword,r.Ident],[r.AtKeyword,r.Function],[r.AtKeyword,r.Url],[r.AtKeyword,r.BadUrl],[r.AtKeyword,"-"],[r.AtKeyword,r.Number],[r.AtKeyword,r.Percentage],[r.AtKeyword,r.Dimension],[r.AtKeyword,r.CDC],[r.Hash,r.Ident],[r.Hash,r.Function],[r.Hash,r.Url],[r.Hash,r.BadUrl],[r.Hash,"-"],[r.Hash,r.Number],[r.Hash,r.Percentage],[r.Hash,r.Dimension],[r.Hash,r.CDC],[r.Dimension,r.Ident],[r.Dimension,r.Function],[r.Dimension,r.Url],[r.Dimension,r.BadUrl],[r.Dimension,"-"],[r.Dimension,r.Number],[r.Dimension,r.Percentage],[r.Dimension,r.Dimension],[r.Dimension,r.CDC],["#",r.Ident],["#",r.Function],["#",r.Url],["#",r.BadUrl],["#","-"],["#",r.Number],["#",r.Percentage],["#",r.Dimension],["#",r.CDC],["-",r.Ident],["-",r.Function],["-",r.Url],["-",r.BadUrl],["-","-"],["-",r.Number],["-",r.Percentage],["-",r.Dimension],["-",r.CDC],[r.Number,r.Ident],[r.Number,r.Function],[r.Number,r.Url],[r.Number,r.BadUrl],[r.Number,r.Number],[r.Number,r.Percentage],[r.Number,r.Dimension],[r.Number,"%"],[r.Number,r.CDC],["@",r.Ident],["@",r.Function],["@",r.Url],["@",r.BadUrl],["@","-"],["@",r.CDC],[".",r.Number],[".",r.Percentage],[".",r.Dimension],["+",r.Number],["+",r.Percentage],["+",r.Dimension],["/","*"]],a=o.concat([[r.Ident,r.Hash],[r.Dimension,r.Hash],[r.Hash,r.Hash],[r.AtKeyword,r.LeftParenthesis],[r.AtKeyword,r.String],[r.AtKeyword,r.Colon],[r.Percentage,r.Percentage],[r.Percentage,r.Dimension],[r.Percentage,r.Function],[r.Percentage,"-"],[r.RightParenthesis,r.Ident],[r.RightParenthesis,r.Function],[r.RightParenthesis,r.Percentage],[r.RightParenthesis,r.Dimension],[r.RightParenthesis,r.Hash],[r.RightParenthesis,"-"]]);function s(e){const t=new Set(e.map((([e,t])=>i(e)<<16|i(t))));return function(e,n,o){const a=i(n,o),s=o.charCodeAt(0);return(45===s&&n!==r.Ident&&n!==r.Function&&n!==r.CDC||43===s?t.has(e<<16|s<<8):t.has(e<<16|a))&&this.emit(" ",r.WhiteSpace,!0),a}}const l=s(o),c=s(a);t.safe=c,t.spec=l},1597:(e,t)=>{"use strict";t.name="sortAttrs",t.description="Sort element attributes for better compression",t.fn=(e,t)=>{const{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("front"===r){if("xmlns"===e)return 3;if(e.startsWith("xmlns:"))return 2}return e.includes(":")?1:0},o=([e],[t])=>{const r=i(e),o=i(t)-r;if(0!==o)return o;const[a]=e.split("-"),[s]=t.split("-");if(a!==s){const e=n.includes(a)?1:0,t=n.includes(s)?1:0;if(1===e&&1===t)return n.indexOf(a)-n.indexOf(s);const r=t-e;if(0!==r)return r}return e{const t=Object.entries(e.attributes);t.sort(o);const n={};for(const[e,r]of t)n[e]=r;e.attributes=n}}}}},1606:e=>{e.exports="2.2.1"},1642:(e,t)=>{var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e{"use strict";const r=n(6591);function i(e){return this.Raw(e,null,!1)}t.generate=function(e){this.children(e)},t.name="StyleSheet",t.parse=function(){const e=this.tokenStart,t=this.createList();let n;for(;!this.eof;){switch(this.tokenType){case r.WhiteSpace:this.next();continue;case r.Comment:if(33!==this.charCodeAt(this.tokenStart+2)){this.next();continue}n=this.Comment();break;case r.CDO:n=this.CDO();break;case r.CDC:n=this.CDC();break;case r.AtKeyword:n=this.parseWithFallback(this.Atrule,i);break;default:n=this.parseWithFallback(this.Rule,i)}t.push(n)}return{type:"StyleSheet",loc:this.getLocation(e,this.tokenStart),children:t}},t.structure={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]},t.walkContext="stylesheet"},1686:(e,t)=>{"use strict";t.generate=function(e){this.children(e)},t.name="Selector",t.parse=function(){const e=this.readSequence(this.scope.Selector);return null===this.getFirstListNode(e)&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(e),children:e}},t.structure={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]}},1698:(e,t,n)=>{"use strict";const r=n(8572),{hasOwnProperty:i}=Object.prototype;function o(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}function a(e){return Boolean(e)&&o(e.offset)&&o(e.line)&&o(e.column)}function s(e,t){return function(n,o){if(!n||n.constructor!==Object)return o(n,"Type of node should be an Object");for(let s in n){let l=!0;if(!1!==i.call(n,s)){if("type"===s)n.type!==e&&o(n,"Wrong node type `"+n.type+"`, expected `"+e+"`");else if("loc"===s){if(null===n.loc)continue;if(n.loc&&n.loc.constructor===Object)if("string"!=typeof n.loc.source)s+=".source";else if(a(n.loc.start)){if(a(n.loc.end))continue;s+=".end"}else s+=".start";l=!1}else if(t.hasOwnProperty(s)){l=!1;for(let e=0;!l&&e");else{if(!Array.isArray(r))throw new Error("Wrong value `"+r+"` in `"+e+"."+t+"` structure definition");a.push("List")}}o[t]=a.join(" | ")}return{docs:o,check:s(e,r)}}t.getStructureFromConfig=function(e){const t={};if(e.node)for(const n in e.node)if(i.call(e.node,n)){const r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=l(n,r)}return t}},1699:(e,t)=>{"use strict";t.name="convertEllipseToCircle",t.description="converts non-eccentric s to s",t.fn=()=>({element:{enter:e=>{if("ellipse"===e.name){const t=e.attributes.rx||"0",n=e.attributes.ry||"0";if(t===n||"auto"===t||"auto"===n){e.name="circle";const r="auto"===t?n:t;delete e.attributes.rx,delete e.attributes.ry,e.attributes.r=r}}}}})},1700:(e,t,n)=>{"use strict";const{textElems:r}=n(9439),i={doctypeStart:"",procInstStart:"",procInstEnd:"?>",tagOpenStart:"<",tagOpenEnd:">",tagCloseStart:"",tagCloseEnd:">",tagShortStart:"<",tagShortEnd:"/>",attrStart:'="',attrEnd:'"',commentStart:"\x3c!--",commentEnd:"--\x3e",cdataStart:"",textStart:"",textEnd:"",indent:4,regEntities:/[&'"<>]/g,regValEntities:/[&"<>]/g,encodeEntity:e=>o[e],pretty:!1,useShortTags:!0,eol:"lf",finalNewline:!1},o={"&":"&","'":"'",'"':""",">":">","<":"<"};t.stringifySvg=(e,t={})=>{const n={...i,...t},r=n.indent;let o=" ";"number"==typeof r&&!1===Number.isNaN(r)?o=r<0?"\t":" ".repeat(r):"string"==typeof r&&(o=r);const s={indent:o,textContext:null,indentLevel:0},l="crlf"===n.eol?"\r\n":"\n";n.pretty&&(n.doctypeEnd+=l,n.procInstEnd+=l,n.commentEnd+=l,n.cdataEnd+=l,n.tagShortEnd+=l,n.tagOpenEnd+=l,n.tagCloseEnd+=l,n.textEnd+=l);let c=a(e,n,s);return n.finalNewline&&c.length>0&&!c.endsWith("\n")&&(c+=l),c};const a=(e,t,n)=>{let r="";n.indentLevel+=1;for(const i of e.children)"element"===i.type&&(r+=h(i,t,n)),"text"===i.type&&(r+=m(i,t,n)),"doctype"===i.type&&(r+=l(i,t)),"instruction"===i.type&&(r+=c(i,t)),"comment"===i.type&&(r+=u(i,t)),"cdata"===i.type&&(r+=d(i,t,n));return n.indentLevel-=1,r},s=(e,t)=>{let n="";return e.pretty&&null==t.textContext&&(n=t.indent.repeat(t.indentLevel-1)),n},l=(e,t)=>t.doctypeStart+e.data.doctype+t.doctypeEnd,c=(e,t)=>t.procInstStart+e.name+" "+e.value+t.procInstEnd,u=(e,t)=>t.commentStart+e.value+t.commentEnd,d=(e,t,n)=>s(t,n)+t.cdataStart+e.value+t.cdataEnd,h=(e,t,n)=>{if(0===e.children.length)return t.useShortTags?s(t,n)+t.tagShortStart+e.name+p(e,t)+t.tagShortEnd:s(t,n)+t.tagShortStart+e.name+p(e,t)+t.tagOpenEnd+t.tagCloseStart+e.name+t.tagCloseEnd;{let o=t.tagOpenStart,l=t.tagOpenEnd,c=t.tagCloseStart,u=t.tagCloseEnd,d=s(t,n),h=s(t,n);n.textContext?(o=i.tagOpenStart,l=i.tagOpenEnd,c=i.tagCloseStart,u=i.tagCloseEnd,d=""):r.has(e.name)&&(l=i.tagOpenEnd,c=i.tagCloseStart,h="",n.textContext=e);const m=a(e,t,n);return n.textContext===e&&(n.textContext=null),d+o+e.name+p(e,t)+l+m+h+c+e.name+u}},p=(e,t)=>{let n="";for(const[r,i]of Object.entries(e.attributes))if(void 0!==i){const e=i.toString().replace(t.regValEntities,t.encodeEntity);n+=" "+r+t.attrStart+e+t.attrEnd}else n+=" "+r;return n},m=(e,t,n)=>s(t,n)+t.textStart+e.value.replace(t.regEntities,t.encodeEntity)+(n.textContext?"":t.textEnd)},1818:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.encodeNonAsciiHTML=t.encodeHTML=void 0;var i=r(n(5504)),o=n(5987),a=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function s(e,t){for(var n,r="",a=0;null!==(n=e.exec(t));){var s=n.index;r+=t.substring(a,s);var l=t.charCodeAt(s),c=i.default.get(l);if("object"==typeof c){if(s+1{"use strict";const r=n(8783),i=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),o={value:String};t.generate=function(e){this.token(r.WhiteSpace,e.value)},t.name="WhiteSpace",t.parse=function(){return this.eat(r.WhiteSpace),i},t.structure=o},1861:(e,t,n)=>{"use strict";const{collectStylesheet:r,computeStyle:i}=n(883),{path2js:o,js2path:a,intersects:s}=n(971);t.name="mergePaths",t.description="merges multiple paths in one if possible",t.fn=(e,t)=>{const{force:n=!1,floatPrecision:l,noSpaceAfterFlags:c=!1}=t,u=r(e);return{element:{enter:e=>{if(e.children.length<=1)return;const t=[];let r=e.children[0],d=null;const h=(e,t)=>{a(e,t,{floatPrecision:l,noSpaceAfterFlags:c}),d=null};for(let a=1;a"d"!==e&&"element"===r.type&&r.attributes[e]!==l.attributes[e]))){d&&h(r,d),r=l;continue}const m=null!=d,f=o(l);d=d??o(r),!n&&s(d,f)?(m&&h(r,d),r=l,d=null):(d.push(...f),t.push(l))}d&&"element"===r.type&&h(r,d),e.children=e.children.filter((e=>!t.includes(e)))}}}}},1880:(e,t,n)=>{"use strict";const{detachNodeFromParent:r}=n(5620),{elemsGroups:i}=n(9439);t.name="removeEmptyContainers",t.description="removes empty container elements",t.fn=()=>({element:{exit:(e,t)=>{"svg"!==e.name&&i.container.has(e.name)&&0===e.children.length&&("pattern"===e.name&&0!==Object.keys(e.attributes).length||"g"===e.name&&null!=e.attributes.filter||"mask"===e.name&&null!=e.attributes.id||"element"===t.type&&"switch"===t.name||r(e,t))}}})},1988:(e,t,n)=>{"use strict";const{detachNodeFromParent:r}=n(5620);t.name="removeMetadata",t.description="removes ",t.fn=()=>({element:{enter:(e,t)=>{"metadata"===e.name&&r(e,t)}}})},2040:(e,t,n)=>{"use strict";const r=n(8783);e.exports=function(){const e=this.createList();if(this.skipSC(),e.push(this.Identifier()),this.skipSC(),this.tokenType===r.Comma){e.push(this.Operator());const t=this.tokenIndex,n=this.parseCustomProperty?this.Value(null):this.Raw(this.tokenIndex,this.consumeUntilExclamationMarkOrSemicolon,!1);if("Value"===n.type&&n.children.isEmpty)for(let e=t-this.tokenIndex;e<=0;e++)if(this.lookupType(e)===r.WhiteSpace){n.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}e.push(n)}return e}},2042:(e,t,n)=>{"use strict";const r=n(8783),i=n(7351);function o(){this.skipSC();const e=this.consume(r.Number);for(let t=0;t{"use strict";const{removeLeadingZero:r}=n(6675);t.name="cleanupListOfValues",t.description="rounds list of values to the fixed precision";const i=/^([-+]?\d*\.?\d+([eE][-+]?\d+)?)(px|pt|pc|mm|cm|m|in|ft|em|ex|%)?$/,o=/\s+,?\s*|,\s*/,a={cm:96/2.54,mm:96/25.4,in:96,pt:4/3,pc:16,px:1};t.fn=(e,t)=>{const{floatPrecision:n=3,leadingZero:s=!0,defaultPx:l=!0,convertToPx:c=!0}=t,u=e=>{const t=[];for(const u of e.split(o)){const e=u.match(i),o=u.match(/new/);if(e){let i,o=Number(Number(e[1]).toFixed(n)),u=e[3]||"";if(c&&u&&u in a){const t=Number((a[u]*Number(e[1])).toFixed(n));t.toString().length{null!=e.attributes.points&&(e.attributes.points=u(e.attributes.points)),null!=e.attributes["enable-background"]&&(e.attributes["enable-background"]=u(e.attributes["enable-background"])),null!=e.attributes.viewBox&&(e.attributes.viewBox=u(e.attributes.viewBox)),null!=e.attributes["stroke-dasharray"]&&(e.attributes["stroke-dasharray"]=u(e.attributes["stroke-dasharray"])),null!=e.attributes.dx&&(e.attributes.dx=u(e.attributes.dx)),null!=e.attributes.dy&&(e.attributes.dy=u(e.attributes.dy)),null!=e.attributes.x&&(e.attributes.x=u(e.attributes.x)),null!=e.attributes.y&&(e.attributes.y=u(e.attributes.y))}}}}},2146:(e,t,n)=>{"use strict";const r=n(6329),i=n(6591),{hasOwnProperty:o}=Object.prototype,a="Match";function s(e){let t=null,n=null,r=e;for(;null!==r;)n=r.prev,r.prev=t,t=r,r=n;return t}function l(e,t){if(e.length!==t.length)return!1;for(let n=0;n=65&&i<=90&&(i|=32),i!==r)return!1}return!0}function c(e){return null===e||e.type===i.Comma||e.type===i.Function||e.type===i.LeftParenthesis||e.type===i.LeftSquareBracket||e.type===i.LeftCurlyBracket||function(e){return e.type===i.Delim&&"?"!==e.value}(e)}function u(e){return null===e||e.type===i.RightParenthesis||e.type===i.RightSquareBracket||e.type===i.RightCurlyBracket||e.type===i.Delim&&"/"===e.value}function d(e,t,n){function s(){do{C++,S=CA&&(A=C)}function g(){T=2===T.type?T.prev:{type:3,syntax:b.syntax,token:T.token,prev:T},b=b.prev}let b=null,y=null,k=null,v=null,w=0,x=null,S=null,C=-1,A=0,T={type:0,syntax:null,token:null,prev:null};for(s();null===x&&++w<15e3;)switch(t.type){case"Match":if(null===y){if(null!==S&&(C!==e.length-1||"\\0"!==S.value&&"\\9"!==S.value)){t=r.MISMATCH;break}x=a;break}if((t=y.nextState)===r.DISALLOW_EMPTY){if(y.matchStack===T){t=r.MISMATCH;break}t=r.MATCH}for(;y.syntaxStack!==b;)g();y=y.prev;break;case"Mismatch":if(null!==v&&!1!==v)(null===k||C>k.tokenIndex)&&(k=v,v=!1);else if(null===k){x="Mismatch";break}t=k.nextState,y=k.thenStack,b=k.syntaxStack,T=k.matchStack,C=k.tokenIndex,S=CC){for(;C":"<'"+t.name+"'>"));if(!1!==v&&null!==S&&"Type"===t.type&&("custom-ident"===t.name&&S.type===i.Ident||"length"===t.name&&"0"===S.value)){null===v&&(v=h(t,k)),t=r.MISMATCH;break}b={syntax:t.syntax,opts:t.syntax.opts||null!==b&&b.opts||null,prev:b},T={type:2,syntax:t.syntax,token:T.token,prev:T},t=a.match;break}case"Keyword":{const e=t.name;if(null!==S){let n=S.value;if(-1!==n.indexOf("\\")&&(n=n.replace(/\\[09].*$/,"")),l(n,e)){f(),t=r.MATCH;break}}t=r.MISMATCH;break}case"AtKeyword":case"Function":if(null!==S&&l(S.value,t.name)){f(),t=r.MATCH;break}t=r.MISMATCH;break;case"Token":if(null!==S&&S.value===t.value){f(),t=r.MATCH;break}t=r.MISMATCH;break;case"Comma":null!==S&&S.type===i.Comma?c(T.token)?t=r.MISMATCH:(f(),t=u(S)?r.MISMATCH:r.MATCH):t=c(T.token)||u(S)?r.MATCH:r.MISMATCH;break;case"String":let s="",w=C;for(;w{"use strict";const r=n(6591);t.generate=function(e){this.children(e)},t.name="AtrulePrelude",t.parse=function(e){let t=null;return null!==e&&(e=e.toLowerCase()),this.skipSC(),t=hasOwnProperty.call(this.atrule,e)&&"function"==typeof this.atrule[e].prelude?this.atrule[e].prelude.call(this):this.readSequence(this.scope.AtrulePrelude),this.skipSC(),!0!==this.eof&&this.tokenType!==r.LeftCurlyBracket&&this.tokenType!==r.Semicolon&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}},t.structure={children:[[]]},t.walkContext="atrulePrelude"},2281:(e,t)=>{"use strict";const n=function(){};function r(e){return"function"==typeof e?e:n}t.walk=function(e,t,i){let o=n,a=n;if("function"==typeof t?o=t:t&&(o=r(t.enter),a=r(t.leave)),o===n&&a===n)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");!function e(t){switch(o.call(i,t),t.type){case"Group":t.terms.forEach(e);break;case"Multiplier":e(t.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+t.type)}a.call(i,t)}(e)}},2344:(e,t,n)=>{"use strict";const r=n(8783);function i(e){return this.Raw(e,this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function o(){for(let e,t=1;e=this.lookupType(t);t++){if(e===r.RightCurlyBracket)return!0;if(e===r.LeftCurlyBracket||e===r.AtKeyword)return!1}return!1}const a={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};t.generate=function(e){this.token(r.AtKeyword,"@"+e.name),null!==e.prelude&&this.node(e.prelude),e.block?this.node(e.block):this.token(r.Semicolon,";")},t.name="Atrule",t.parse=function(){const e=this.tokenStart;let t,n,a=null,s=null;switch(this.eat(r.AtKeyword),t=this.substrToCursor(e+1),n=t.toLowerCase(),this.skipSC(),!1===this.eof&&this.tokenType!==r.LeftCurlyBracket&&this.tokenType!==r.Semicolon&&(a=this.parseAtrulePrelude?this.parseWithFallback(this.AtrulePrelude.bind(this,t),i):i.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case r.Semicolon:this.next();break;case r.LeftCurlyBracket:s=hasOwnProperty.call(this.atrule,n)&&"function"==typeof this.atrule[n].block?this.atrule[n].block.call(this):this.Block(o.call(this))}return{type:"Atrule",loc:this.getLocation(e,this.tokenStart),name:t,prelude:a,block:s}},t.structure=a,t.walkContext="atrule"},2346:(e,t)=>{"use strict";function n(e){function t(e){return null!==e&&("Type"===e.type||"Property"===e.type||"Keyword"===e.type)}let n=null;return null!==this.matched&&function r(i){if(Array.isArray(i.match)){for(let e=0;e"Keyword"===e.type))},t.isProperty=function(e,t){return r(this,e,(e=>"Property"===e.type&&e.name===t))},t.isType=function(e,t){return r(this,e,(e=>"Type"===e.type&&e.name===t))}},2368:(e,t,n)=>{"use strict";const r=n(6591);function i(){this.eof&&this.error("Unexpected end of input");const e=this.tokenStart;let t=!1;return this.isDelim(42)?(t=!0,this.next()):this.isDelim(124)||this.eat(r.Ident),this.isDelim(124)?61!==this.charCodeAt(this.tokenStart+1)?(this.next(),this.eat(r.Ident)):t&&this.error("Identifier is expected",this.tokenEnd):t&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function o(){const e=this.tokenStart,t=this.charCodeAt(e);return 61!==t&&126!==t&&94!==t&&36!==t&&42!==t&&124!==t&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),61!==t&&(this.isDelim(61)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}const a={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};t.generate=function(e){this.token(r.Delim,"["),this.node(e.name),null!==e.matcher&&(this.tokenize(e.matcher),this.node(e.value)),null!==e.flags&&this.token(r.Ident,e.flags),this.token(r.Delim,"]")},t.name="AttributeSelector",t.parse=function(){const e=this.tokenStart;let t,n=null,a=null,s=null;return this.eat(r.LeftSquareBracket),this.skipSC(),t=i.call(this),this.skipSC(),this.tokenType!==r.RightSquareBracket&&(this.tokenType!==r.Ident&&(n=o.call(this),this.skipSC(),a=this.tokenType===r.String?this.String():this.Identifier(),this.skipSC()),this.tokenType===r.Ident&&(s=this.consume(r.Ident),this.skipSC())),this.eat(r.RightSquareBracket),{type:"AttributeSelector",loc:this.getLocation(e,this.tokenStart),name:t,matcher:n,value:a,flags:s}},t.structure=a},2383:(e,t,n)=>{"use strict";const r=n(6199),i=n(7955);t.decode=function(e){const t=e.length,n=e.charCodeAt(0),o=34===n||39===n?1:0,a=1===o&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1;let s="";for(let n=o;n<=a;n++){let o=e.charCodeAt(n);if(92===o){if(n===a){n!==t-1&&(s=e.substr(n+1));break}if(o=e.charCodeAt(++n),r.isValidEscape(92,o)){const t=n-1,r=i.consumeEscaped(e,t);n=r-1,s+=i.decodeEscaped(e.substring(t+1,r))}else 13===o&&10===e.charCodeAt(n+1)&&n++}else s+=e[n]}return s},t.encode=function(e,t){const n=t?"'":'"',i=t?39:34;let o="",a=!1;for(let t=0;t{"use strict";const t={parse:{prelude:null,block(){return this.Block(!0)}}};e.exports=t},2413:(e,t,n)=>{"use strict";const r=n(8783),i=(e,t)=>{if(e===r.Delim&&(e=t),"string"==typeof e){const t=e.charCodeAt(0);return t>127?32768:t<<8}return e},o=[[r.Ident,r.Ident],[r.Ident,r.Function],[r.Ident,r.Url],[r.Ident,r.BadUrl],[r.Ident,"-"],[r.Ident,r.Number],[r.Ident,r.Percentage],[r.Ident,r.Dimension],[r.Ident,r.CDC],[r.Ident,r.LeftParenthesis],[r.AtKeyword,r.Ident],[r.AtKeyword,r.Function],[r.AtKeyword,r.Url],[r.AtKeyword,r.BadUrl],[r.AtKeyword,"-"],[r.AtKeyword,r.Number],[r.AtKeyword,r.Percentage],[r.AtKeyword,r.Dimension],[r.AtKeyword,r.CDC],[r.Hash,r.Ident],[r.Hash,r.Function],[r.Hash,r.Url],[r.Hash,r.BadUrl],[r.Hash,"-"],[r.Hash,r.Number],[r.Hash,r.Percentage],[r.Hash,r.Dimension],[r.Hash,r.CDC],[r.Dimension,r.Ident],[r.Dimension,r.Function],[r.Dimension,r.Url],[r.Dimension,r.BadUrl],[r.Dimension,"-"],[r.Dimension,r.Number],[r.Dimension,r.Percentage],[r.Dimension,r.Dimension],[r.Dimension,r.CDC],["#",r.Ident],["#",r.Function],["#",r.Url],["#",r.BadUrl],["#","-"],["#",r.Number],["#",r.Percentage],["#",r.Dimension],["#",r.CDC],["-",r.Ident],["-",r.Function],["-",r.Url],["-",r.BadUrl],["-","-"],["-",r.Number],["-",r.Percentage],["-",r.Dimension],["-",r.CDC],[r.Number,r.Ident],[r.Number,r.Function],[r.Number,r.Url],[r.Number,r.BadUrl],[r.Number,r.Number],[r.Number,r.Percentage],[r.Number,r.Dimension],[r.Number,"%"],[r.Number,r.CDC],["@",r.Ident],["@",r.Function],["@",r.Url],["@",r.BadUrl],["@","-"],["@",r.CDC],[".",r.Number],[".",r.Percentage],[".",r.Dimension],["+",r.Number],["+",r.Percentage],["+",r.Dimension],["/","*"]],a=o.concat([[r.Ident,r.Hash],[r.Dimension,r.Hash],[r.Hash,r.Hash],[r.AtKeyword,r.LeftParenthesis],[r.AtKeyword,r.String],[r.AtKeyword,r.Colon],[r.Percentage,r.Percentage],[r.Percentage,r.Dimension],[r.Percentage,r.Function],[r.Percentage,"-"],[r.RightParenthesis,r.Ident],[r.RightParenthesis,r.Function],[r.RightParenthesis,r.Percentage],[r.RightParenthesis,r.Dimension],[r.RightParenthesis,r.Hash],[r.RightParenthesis,"-"]]);function s(e){const t=new Set(e.map((([e,t])=>i(e)<<16|i(t))));return function(e,n,o){const a=i(n,o),s=o.charCodeAt(0);return(45===s&&n!==r.Ident&&n!==r.Function&&n!==r.CDC||43===s?t.has(e<<16|s<<8):t.has(e<<16|a))&&this.emit(" ",r.WhiteSpace,!0),a}}const l=s(o),c=s(a);t.safe=c,t.spec=l},2443:(e,t)=>{"use strict";const{hasOwnProperty:n}=Object.prototype,r=function(){};function i(e){return"function"==typeof e?e:r}function o(e,t){return function(n,r,i){n.type===t&&e.call(this,n,r,i)}}function a(e,t){const r=t.structure,i=[];for(const e in r){if(!1===n.call(r,e))continue;let t=r[e];const o={name:e,type:!1,nullable:!1};Array.isArray(t)||(t=[t]);for(const e of t)null===e?o.nullable=!0:"string"==typeof e?o.type="node":Array.isArray(e)&&(o.type="list");o.type&&i.push(o)}return i.length?{context:t.walkContext,fields:i}:null}function s(e,t){const n=e.fields.slice(),r=e.context,i="string"==typeof r;return t&&n.reverse(),function(e,o,a,s){let l;i&&(l=o[r],o[r]=e);for(const r of n){const n=e[r.name];if(!r.nullable||n)if("list"===r.type){if(t?n.reduceRight(s,!1):n.reduce(s,!1))return!0}else if(a(n))return!0}i&&(o[r]=l)}}function l({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}}}t.createWalker=function(e){const t=function(e){const t={};for(const r in e.node)if(n.call(e.node,r)){const n=e.node[r];if(!n.structure)throw new Error("Missed `structure` field in `"+r+"` node type definition");t[r]=a(0,n)}return t}(e),c={},u={},d=Symbol("break-walk"),h=Symbol("skip-node");for(const e in t)n.call(t,e)&&null!==t[e]&&(c[e]=s(t[e],!1),u[e]=s(t[e],!0));const p=l(c),m=l(u),f=function(e,n){function a(e,t,n){const r=s.call(b,e,t,n);return r===d||r!==h&&(!(!f.hasOwnProperty(e.type)||!f[e.type](e,b,a,g))||l.call(b,e,t,n)===d)}let s=r,l=r,f=c,g=(e,t,n,r)=>e||a(t,n,r);const b={break:d,skip:h,root:e,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if("function"==typeof n)s=n;else if(n&&(s=i(n.enter),l=i(n.leave),n.reverse&&(f=u),n.visit)){if(p.hasOwnProperty(n.visit))f=n.reverse?m[n.visit]:p[n.visit];else if(!t.hasOwnProperty(n.visit))throw new Error("Bad value `"+n.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(", ")+")");s=o(s,n.visit),l=o(l,n.visit)}if(s===r&&l===r)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");a(e)};return f.break=d,f.skip=h,f.find=function(e,t){let n=null;return f(e,(function(e,r,i){if(t.call(this,e,r,i))return n=e,d})),n},f.findLast=function(e,t){let n=null;return f(e,{reverse:!0,enter(e,r,i){if(t.call(this,e,r,i))return n=e,d}}),n},f.findAll=function(e,t){const n=[];return f(e,(function(e,r,i){t.call(this,e,r,i)&&n.push(e)})),n},f}},2517:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((function(e){return e.charCodeAt(0)})))},2535:(e,t)=>{"use strict";function n(e){return e}function r(e,t,n,i){let o;switch(e.type){case"Group":o=function(e,t,n,i){const o=" "===e.combinator||i?e.combinator:" "+e.combinator+" ",a=e.terms.map((e=>r(e,t,n,i))).join(o);return e.explicit||n?(i||","===a[0]?"[":"[ ")+a+(i?"]":" ]"):a}(e,t,n,i)+(e.disallowEmpty?"!":"");break;case"Multiplier":return r(e.term,t,n,i)+t(function(e){const{min:t,max:n,comma:r}=e;return 0===t&&0===n?r?"#?":"*":0===t&&1===n?"?":1===t&&0===n?r?"#":"+":1===t&&1===n?"":(r?"#":"")+(t===n?"{"+t+"}":"{"+t+","+(0!==n?n:"")+"}")}(e),e);case"Type":o="<"+e.name+(e.opts?t(function(e){if("Range"===e.type)return" ["+(null===e.min?"-∞":e.min)+","+(null===e.max?"∞":e.max)+"]";throw new Error("Unknown node type `"+e.type+"`")}(e.opts),e.opts):"")+">";break;case"Property":o="<'"+e.name+"'>";break;case"Keyword":o=e.name;break;case"AtKeyword":o="@"+e.name;break;case"Function":o=e.name+"(";break;case"String":case"Token":o=e.value;break;case"Comma":o=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(o,e)}t.generate=function(e,t){let i=n,o=!1,a=!1;return"function"==typeof t?i=t:t&&(o=Boolean(t.forceBraces),a=Boolean(t.compact),"function"==typeof t.decorate&&(i=t.decorate)),r(e,i,o,a)}},2537:(e,t,n)=>{"use strict";const r=n(6591),i={value:String};t.generate=function(e){this.token(r.Percentage,e.value+"%")},t.name="Percentage",t.parse=function(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(r.Percentage)}},t.structure=i},2554:(e,t,n)=>{"use strict";const r=n(8298)({...n(5991),...n(5530),...n(9601)});e.exports=r},2599:(e,t)=>{"use strict";function n(e){return e}function r(e,t,n,i){let o;switch(e.type){case"Group":o=function(e,t,n,i){const o=" "===e.combinator||i?e.combinator:" "+e.combinator+" ",a=e.terms.map((e=>r(e,t,n,i))).join(o);return e.explicit||n?(i||","===a[0]?"[":"[ ")+a+(i?"]":" ]"):a}(e,t,n,i)+(e.disallowEmpty?"!":"");break;case"Multiplier":return r(e.term,t,n,i)+t(function(e){const{min:t,max:n,comma:r}=e;return 0===t&&0===n?r?"#?":"*":0===t&&1===n?"?":1===t&&0===n?r?"#":"+":1===t&&1===n?"":(r?"#":"")+(t===n?"{"+t+"}":"{"+t+","+(0!==n?n:"")+"}")}(e),e);case"Type":o="<"+e.name+(e.opts?t(function(e){if("Range"===e.type)return" ["+(null===e.min?"-∞":e.min)+","+(null===e.max?"∞":e.max)+"]";throw new Error("Unknown node type `"+e.type+"`")}(e.opts),e.opts):"")+">";break;case"Property":o="<'"+e.name+"'>";break;case"Keyword":o=e.name;break;case"AtKeyword":o="@"+e.name;break;case"Function":o=e.name+"(";break;case"String":case"Token":o=e.value;break;case"Comma":o=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(o,e)}t.generate=function(e,t){let i=n,o=!1,a=!1;return"function"==typeof t?i=t:t&&(o=Boolean(t.forceBraces),a=Boolean(t.compact),"function"==typeof t.decorate&&(i=t.decorate)),r(e,i,o,a)}},2603:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.aliases=t.pseudos=t.filters=t.is=t.selectOne=t.selectAll=t.prepareContext=t._compileToken=t._compileUnsafe=t.compile=void 0;var s=o(n(8888)),l=a(n(1264)),c=n(8118),u=n(5234),d=function(e,t){return e===t},h={adapter:s,equals:d};function p(e){var t,n,r,i,o=null!=e?e:h;return null!==(t=o.adapter)&&void 0!==t||(o.adapter=s),null!==(n=o.equals)&&void 0!==n||(o.equals=null!==(i=null===(r=o.adapter)||void 0===r?void 0:r.equals)&&void 0!==i?i:d),o}function m(e){return function(t,n,r){var i=p(n);return e(t,i,r)}}function f(e){return function(t,n,r){var i=p(r);"function"!=typeof t&&(t=(0,c.compileUnsafe)(t,i,n));var o=g(n,i.adapter,t.shouldTestNextSiblings);return e(t,o,i)}}function g(e,t,n){return void 0===n&&(n=!1),n&&(e=function(e,t){for(var n=Array.isArray(e)?e.slice(0):[e],r=n.length,i=0;i{"use strict";const r=n(8783),i={name:String,children:[["Raw"],null]};t.generate=function(e){this.token(r.Colon,":"),null===e.children?this.token(r.Ident,e.name):(this.token(r.Function,e.name+"("),this.children(e),this.token(r.RightParenthesis,")"))},t.name="PseudoClassSelector",t.parse=function(){const e=this.tokenStart;let t,n,i=null;return this.eat(r.Colon),this.tokenType===r.Function?(t=this.consumeFunctionName(),n=t.toLowerCase(),hasOwnProperty.call(this.pseudo,n)?(this.skipSC(),i=this.pseudo[n].call(this),this.skipSC()):(i=this.createList(),i.push(this.Raw(this.tokenIndex,null,!1))),this.eat(r.RightParenthesis)):t=this.consume(r.Ident),{type:"PseudoClassSelector",loc:this.getLocation(e,this.tokenStart),name:t,children:i}},t.structure=i,t.walkContext="function"},2648:(e,t,n)=>{"use strict";const r=n(6591),i=n(6199),o=n(7955),a=n(8732),s=n(5019),l=n(6747);t.AtKeyword=r.AtKeyword,t.BadString=r.BadString,t.BadUrl=r.BadUrl,t.CDC=r.CDC,t.CDO=r.CDO,t.Colon=r.Colon,t.Comma=r.Comma,t.Comment=r.Comment,t.Delim=r.Delim,t.Dimension=r.Dimension,t.EOF=r.EOF,t.Function=r.Function,t.Hash=r.Hash,t.Ident=r.Ident,t.LeftCurlyBracket=r.LeftCurlyBracket,t.LeftParenthesis=r.LeftParenthesis,t.LeftSquareBracket=r.LeftSquareBracket,t.Number=r.Number,t.Percentage=r.Percentage,t.RightCurlyBracket=r.RightCurlyBracket,t.RightParenthesis=r.RightParenthesis,t.RightSquareBracket=r.RightSquareBracket,t.Semicolon=r.Semicolon,t.String=r.String,t.Url=r.Url,t.WhiteSpace=r.WhiteSpace,t.tokenTypes=r,t.DigitCategory=i.DigitCategory,t.EofCategory=i.EofCategory,t.NameStartCategory=i.NameStartCategory,t.NonPrintableCategory=i.NonPrintableCategory,t.WhiteSpaceCategory=i.WhiteSpaceCategory,t.charCodeCategory=i.charCodeCategory,t.isBOM=i.isBOM,t.isDigit=i.isDigit,t.isHexDigit=i.isHexDigit,t.isIdentifierStart=i.isIdentifierStart,t.isLetter=i.isLetter,t.isLowercaseLetter=i.isLowercaseLetter,t.isName=i.isName,t.isNameStart=i.isNameStart,t.isNewline=i.isNewline,t.isNonAscii=i.isNonAscii,t.isNonPrintable=i.isNonPrintable,t.isNumberStart=i.isNumberStart,t.isUppercaseLetter=i.isUppercaseLetter,t.isValidEscape=i.isValidEscape,t.isWhiteSpace=i.isWhiteSpace,t.cmpChar=o.cmpChar,t.cmpStr=o.cmpStr,t.consumeBadUrlRemnants=o.consumeBadUrlRemnants,t.consumeEscaped=o.consumeEscaped,t.consumeName=o.consumeName,t.consumeNumber=o.consumeNumber,t.decodeEscaped=o.decodeEscaped,t.findDecimalNumberEnd=o.findDecimalNumberEnd,t.findWhiteSpaceEnd=o.findWhiteSpaceEnd,t.findWhiteSpaceStart=o.findWhiteSpaceStart,t.getNewlineLength=o.getNewlineLength,t.tokenNames=a,t.OffsetToLocation=s.OffsetToLocation,t.TokenStream=l.TokenStream,t.tokenize=function(e,t){function n(t){return t=e.length?void(h{"use strict";const r=n(8783),i=n(7351);function o(e,t){let n=0;for(let r=this.tokenStart+e;r6&&this.error("Too many hex digits",r)}return this.next(),n}function a(e){let t=0;for(;this.isDelim(63);)++t>e&&this.error("Too many question marks"),this.next()}function s(e){this.charCodeAt(this.tokenStart)!==e&&this.error((43===e?"Plus sign":"Hyphen minus")+" is expected")}function l(){let e=0;switch(this.tokenType){case r.Number:if(e=o.call(this,1,!0),this.isDelim(63)){a.call(this,6-e);break}if(this.tokenType===r.Dimension||this.tokenType===r.Number){s.call(this,45),o.call(this,1,!1);break}break;case r.Dimension:e=o.call(this,1,!0),e>0&&a.call(this,6-e);break;default:if(this.eatDelim(43),this.tokenType===r.Ident){e=o.call(this,0,!0),e>0&&a.call(this,6-e);break}if(this.isDelim(63)){this.next(),a.call(this,5);break}this.error("Hex digit or question mark is expected")}}const c={value:String};t.generate=function(e){this.tokenize(e.value)},t.name="UnicodeRange",t.parse=function(){const e=this.tokenStart;return this.eatIdent("u"),l.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}},t.structure=c},2730:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLAttribute=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.DecodingMode=t.EntityDecoder=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.EntityLevel=void 0;var r,i,o=n(9878),a=n(1818),s=n(5987);function l(e,t){if(void 0===t&&(t=r.XML),("number"==typeof t?t:t.level)===r.HTML){var n="object"==typeof t?t.mode:void 0;return(0,o.decodeHTML)(e,n)}return(0,o.decodeXML)(e)}!function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(r=t.EntityLevel||(t.EntityLevel={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(i=t.EncodingMode||(t.EncodingMode={})),t.decode=l,t.decodeStrict=function(e,t){var n;void 0===t&&(t=r.XML);var i="number"==typeof t?{level:t}:t;return null!==(n=i.mode)&&void 0!==n||(i.mode=o.DecodingMode.Strict),l(e,i)},t.encode=function(e,t){void 0===t&&(t=r.XML);var n="number"==typeof t?{level:t}:t;return n.mode===i.UTF8?(0,s.escapeUTF8)(e):n.mode===i.Attribute?(0,s.escapeAttribute)(e):n.mode===i.Text?(0,s.escapeText)(e):n.level===r.HTML?n.mode===i.ASCII?(0,a.encodeNonAsciiHTML)(e):(0,a.encodeHTML)(e):(0,s.encodeXML)(e)};var c=n(5987);Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return c.encodeXML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return c.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return c.escapeUTF8}}),Object.defineProperty(t,"escapeAttribute",{enumerable:!0,get:function(){return c.escapeAttribute}}),Object.defineProperty(t,"escapeText",{enumerable:!0,get:function(){return c.escapeText}});var u=n(1818);Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return u.encodeNonAsciiHTML}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return u.encodeHTML}});var d=n(9878);Object.defineProperty(t,"EntityDecoder",{enumerable:!0,get:function(){return d.EntityDecoder}}),Object.defineProperty(t,"DecodingMode",{enumerable:!0,get:function(){return d.DecodingMode}}),Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return d.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTMLAttribute",{enumerable:!0,get:function(){return d.decodeHTMLAttribute}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return d.decodeXML}})},2734:(e,t)=>{"use strict";t.name="sortDefsChildren",t.description="Sorts children of to improve compression",t.fn=()=>({element:{enter:e=>{if("defs"===e.name){const t=new Map;for(const n of e.children)if("element"===n.type){const e=t.get(n.name);null==e?t.set(n.name,1):t.set(n.name,e+1)}e.children.sort(((e,n)=>{if("element"!==e.type||"element"!==n.type)return 0;const r=t.get(e.name),i=t.get(n.name);if(null!=r&&null!=i){const e=i-r;if(0!==e)return e}const o=n.name.length-e.name.length;return 0!==o?o:e.name!==n.name?e.name>n.name?-1:1:0}))}}}})},2756:(e,t,n)=>{"use strict";const r=n(8783);e.exports=function(e){switch(this.tokenType){case r.Hash:return this.Hash();case r.Comma:return this.Operator();case r.LeftParenthesis:return this.Parentheses(this.readSequence,e.recognizer);case r.LeftSquareBracket:return this.Brackets(this.readSequence,e.recognizer);case r.String:return this.String();case r.Dimension:return this.Dimension();case r.Percentage:return this.Percentage();case r.Number:return this.Number();case r.Function:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case r.Url:return this.Url();case r.Ident:return this.cmpChar(this.tokenStart,117)&&this.cmpChar(this.tokenStart+1,43)?this.UnicodeRange():this.Identifier();case r.Delim:{const e=this.charCodeAt(this.tokenStart);if(47===e||42===e||43===e||45===e)return this.Operator();35===e&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}},2763:(e,t,n)=>{"use strict";const r=n(9161),i=n(2599),o={offset:0,line:1,column:1};function a(e,t){const n=e&&e.loc&&e.loc[t];return n?"line"in n?s(n):n:null}function s({offset:e,line:t,column:n},r){const i={offset:e,line:t,column:n};if(r){const e=r.split(/\n|\r\n?|\f/);i.offset+=r.length,i.line+=e.length-1,i.column=1===e.length?i.column+r.length:e.pop().length+1}return i}t.SyntaxMatchError=function(e,t,n,l){const c=r.createCustomError("SyntaxMatchError",e),{css:u,mismatchOffset:d,mismatchLength:h,start:p,end:m}=function(e,t){const n=e.tokens,r=e.longestMatch,i=r1?(c=a(l||t,"end")||s(o,m),u=s(c)):(c=a(l,"start")||s(a(t,"start")||o,m.slice(0,d)),u=a(l,"end")||s(c,m.substr(d,h))),{css:m,mismatchOffset:d,mismatchLength:h,start:c,end:u}}(l,n);return c.rawMessage=e,c.syntax=t?i.generate(t):"",c.css=u,c.mismatchOffset=d,c.mismatchLength=h,c.message=e+"\n syntax: "+c.syntax+"\n value: "+(u||"")+"\n --------"+new Array(c.mismatchOffset+1).join("-")+"^",Object.assign(c,p),c.loc={source:n&&n.loc&&n.loc.source||"",start:p,end:m},c},t.SyntaxReferenceError=function(e,t){const n=r.createCustomError("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n}},2787:(e,t,n)=>{"use strict";const r=n(313),i=n(1160),o=n(9111);e.exports=function(e,t){const n=i();return r.walk(e,{visit:"Rule",enter(e){e.block.children.forEach(n),o(e,t.usage)}}),r.walk(e,{visit:"Atrule",enter(e){e.prelude&&(e.prelude.id=null,e.prelude.id=r.generate(e.prelude)),"keyframes"===r.keyword(e.name).basename&&(e.block.avoidRulesMerge=!0,e.block.children.forEach((function(e){e.prelude.children.forEach((function(e){e.compareMarker=e.id}))})))}}),{declaration:n}}},2866:(e,t,n)=>{"use strict";const r=n(313),i=n(2924),o=n(6085),a=n(9147),s=n(257),l={font:i,"font-weight":o,background:a,border:s,outline:s};e.exports=function(e){if(!this.declaration)return;const t=r.property(this.declaration.property);l.hasOwnProperty(t.basename)&&l[t.basename](e)}},2870:e=>{e.exports="2.3.1"},2924:e=>{"use strict";e.exports=function(e){const t=e.children;t.forEachRight((function(e,t){if("Identifier"===e.type)if("bold"===e.name)t.data={type:"Number",loc:e.loc,value:"700"};else if("normal"===e.name){const e=t.prev;e&&"Operator"===e.data.type&&"/"===e.data.value&&this.remove(e),this.remove(t)}})),t.isEmpty&&t.insert(t.createItem({type:"Identifier",name:"normal"}))}},2941:(e,t,n)=>{"use strict";const{detachNodeFromParent:r}=n(5620);t.name="removeStyleElement",t.description="removes