import{c as H}from"./index-15e3682d.js";function V(E,I){for(var F=0;FP[L]})}}}return Object.freeze(Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}))}var j={};(function(E){if(typeof E.window<"u"&&E.document||E.require&&E.define)return;E.console||(E.console=function(){var L=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:L})},E.console.error=E.console.warn=E.console.log=E.console.trace=E.console),E.window=E,E.ace=E,E.onerror=function(L,y,b,p,k){postMessage({type:"error",data:{message:L,data:k&&k.data,file:y,line:b,col:p,stack:k&&k.stack}})},E.normalizeModule=function(L,y){if(y.indexOf("!")!==-1){var b=y.split("!");return E.normalizeModule(L,b[0])+"!"+E.normalizeModule(L,b[1])}if(y.charAt(0)=="."){var p=L.split("/").slice(0,-1).join("/");for(y=(p?p+"/":"")+y;y.indexOf(".")!==-1&&k!=y;){var k=y;y=y.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return y},E.require=function(y,b){if(b||(b=y,y=null),!b.charAt)throw new Error("worker.js require() accepts only (parentId, id) as arguments");b=E.normalizeModule(y,b);var p=E.require.modules[b];if(p)return p.initialized||(p.initialized=!0,p.exports=p.factory().exports),p.exports;if(!E.require.tlns)return console.log("unable to load "+b);var k=I(b,E.require.tlns);return k.slice(-3)!=".js"&&(k+=".js"),E.require.id=b,E.require.modules[b]={},importScripts(k),E.require(y,b)};function I(L,y){for(var b=L,p="";b;){var k=y[b];if(typeof k=="string")return k+p;if(k)return k.location.replace(/\/*$/,"/")+(p||k.main||k.name);if(k===!1)return"";var i=b.lastIndexOf("/");if(i===-1)break;p=b.substr(i)+p,b=b.slice(0,i)}return L}E.require.modules={},E.require.tlns={},E.define=function(L,y,b){if(arguments.length==2?(b=y,typeof L!="string"&&(y=L,L=E.require.id)):arguments.length==1&&(b=L,y=[],L=E.require.id),typeof b!="function"){E.require.modules[L]={exports:b,initialized:!0};return}y.length||(y=["require","exports","module"]);var p=function(k){return E.require(L,k)};E.require.modules[L]={exports:{},factory:function(){var k=this,i=b.apply(this,y.slice(0,b.length).map(function(e){switch(e){case"require":return p;case"exports":return k.exports;case"module":return k;default:return p(e)}}));return i&&(k.exports=i),k}}},E.define.amd={},E.require.tlns={},E.initBaseUrls=function(y){for(var b in y)this.require.tlns[b]=y[b]},E.initSender=function(){var y=E.require("ace/lib/event_emitter").EventEmitter,b=E.require("ace/lib/oop"),p=function(){};return function(){b.implement(this,y),this.callback=function(k,i){postMessage({type:"call",id:i,data:k})},this.emit=function(k,i){postMessage({type:"event",name:k,data:i})}}.call(p.prototype),new p};var F=E.main=null,P=E.sender=null;E.onmessage=function(L){var y=L.data;if(y.event&&P)P._signal(y.event,y.data);else if(y.command)if(F[y.command])F[y.command].apply(F,y.args);else if(E[y.command])E[y.command].apply(E,y.args);else throw new Error("Unknown command:"+y.command);else if(y.init){E.initBaseUrls(y.tlns),P=E.sender=E.initSender();var b=this.require(y.module)[y.classname];F=E.main=new b(P)}}})(H);ace.define("ace/lib/oop",[],function(E,I,F){I.inherits=function(P,L){P.super_=L,P.prototype=Object.create(L.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}})},I.mixin=function(P,L){for(var y in L)P[y]=L[y];return P},I.implement=function(P,L){I.mixin(P,L)}});ace.define("ace/lib/lang",[],function(E,I,F){I.last=function(y){return y[y.length-1]},I.stringReverse=function(y){return y.split("").reverse().join("")},I.stringRepeat=function(y,b){for(var p="";b>0;)b&1&&(p+=y),(b>>=1)&&(y+=y);return p};var P=/^\s\s*/,L=/\s\s*$/;I.stringTrimLeft=function(y){return y.replace(P,"")},I.stringTrimRight=function(y){return y.replace(L,"")},I.copyObject=function(y){var b={};for(var p in y)b[p]=y[p];return b},I.copyArray=function(y){for(var b=[],p=0,k=y.length;p ["+this.end.row+"/"+this.end.column+"]"},y.prototype.contains=function(b,p){return this.compare(b,p)==0},y.prototype.compareRange=function(b){var p,k=b.end,i=b.start;return p=this.compare(k.row,k.column),p==1?(p=this.compare(i.row,i.column),p==1?2:p==0?1:0):p==-1?-2:(p=this.compare(i.row,i.column),p==-1?-1:p==1?42:0)},y.prototype.comparePoint=function(b){return this.compare(b.row,b.column)},y.prototype.containsRange=function(b){return this.comparePoint(b.start)==0&&this.comparePoint(b.end)==0},y.prototype.intersects=function(b){var p=this.compareRange(b);return p==-1||p==0||p==1},y.prototype.isEnd=function(b,p){return this.end.row==b&&this.end.column==p},y.prototype.isStart=function(b,p){return this.start.row==b&&this.start.column==p},y.prototype.setStart=function(b,p){typeof b=="object"?(this.start.column=b.column,this.start.row=b.row):(this.start.row=b,this.start.column=p)},y.prototype.setEnd=function(b,p){typeof b=="object"?(this.end.column=b.column,this.end.row=b.row):(this.end.row=b,this.end.column=p)},y.prototype.inside=function(b,p){return this.compare(b,p)==0?!(this.isEnd(b,p)||this.isStart(b,p)):!1},y.prototype.insideStart=function(b,p){return this.compare(b,p)==0?!this.isEnd(b,p):!1},y.prototype.insideEnd=function(b,p){return this.compare(b,p)==0?!this.isStart(b,p):!1},y.prototype.compare=function(b,p){return!this.isMultiLine()&&b===this.start.row?pthis.end.column?1:0:bthis.end.row?1:this.start.row===b?p>=this.start.column?0:-1:this.end.row===b?p<=this.end.column?0:1:0},y.prototype.compareStart=function(b,p){return this.start.row==b&&this.start.column==p?-1:this.compare(b,p)},y.prototype.compareEnd=function(b,p){return this.end.row==b&&this.end.column==p?1:this.compare(b,p)},y.prototype.compareInside=function(b,p){return this.end.row==b&&this.end.column==p?1:this.start.row==b&&this.start.column==p?-1:this.compare(b,p)},y.prototype.clipRows=function(b,p){if(this.end.row>p)var k={row:p+1,column:0};else if(this.end.rowp)var i={row:p+1,column:0};else if(this.start.row"u"?this.setPosition(e.row,e.column):this.setPosition(e,s)}return k.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},k.prototype.getDocument=function(){return this.document},k.prototype.onChange=function(i){if(!(i.start.row==i.end.row&&i.start.row!=this.row)&&!(i.start.row>this.row)){var e=p(i,{row:this.row,column:this.column},this.$insertRight);this.setPosition(e.row,e.column,!0)}},k.prototype.setPosition=function(i,e,s){var l;if(s?l={row:i,column:e}:l=this.$clipPositionToDocument(i,e),!(this.row==l.row&&this.column==l.column)){var u={row:this.row,column:this.column};this.row=l.row,this.column=l.column,this._signal("change",{old:u,value:l})}},k.prototype.detach=function(){this.document.off("change",this.$onChange)},k.prototype.attach=function(i){this.document=i||this.document,this.document.on("change",this.$onChange)},k.prototype.$clipPositionToDocument=function(i,e){var s={};return i>=this.document.getLength()?(s.row=Math.max(0,this.document.getLength()-1),s.column=this.document.getLine(s.row).length):i<0?(s.row=0,s.column=0):(s.row=i,s.column=Math.min(this.document.getLine(s.row).length,Math.max(0,e))),e<0&&(s.column=0),s},k}();y.prototype.$insertRight=!1,P.implement(y.prototype,L);function b(k,i,e){var s=e?k.column<=i.column:k.column=l&&(e=l-1,s=void 0);var u=this.getLine(e);return s==null&&(s=u.length),s=Math.min(Math.max(s,0),u.length),{row:e,column:s}},i.prototype.clonePos=function(e){return{row:e.row,column:e.column}},i.prototype.pos=function(e,s){return{row:e,column:s}},i.prototype.$clipPosition=function(e){var s=this.getLength();return e.row>=s?(e.row=Math.max(0,s-1),e.column=this.getLine(s-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},i.prototype.insertFullLines=function(e,s){e=Math.min(Math.max(e,0),this.getLength());var l=0;e0,u=s=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},i.prototype.replace=function(e,s){if(e instanceof b||(e=b.fromPoints(e.start,e.end)),s.length===0&&e.isEmpty())return e.start;if(s==this.getTextRange(e))return e.end;this.remove(e);var l;return s?l=this.insert(e.start,s):l=e.start,l},i.prototype.applyDeltas=function(e){for(var s=0;s=0;s--)this.revertDelta(e[s])},i.prototype.applyDelta=function(e,s){var l=e.action=="insert";(l?e.lines.length<=1&&!e.lines[0]:!b.comparePoints(e.start,e.end))||(l&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(L(this.$lines,e,s),this._signal("change",e)))},i.prototype.$safeApplyDelta=function(e){var s=this.$lines.length;(e.action=="remove"&&e.start.row=p.$lines.length)throw o=new Error("Invalid delta"),o.data={path:i.$path,linesLength:p.$lines.length,start:u.start,end:u.end},o;p.applyDelta(u,!0)}if(i.$timeout)return k.schedule(i.$timeout);i.onUpdate()})};(function(){this.$timeout=500,this.setTimeout=function(b){this.$timeout=b},this.setValue=function(b){this.doc.setValue(b),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(b){this.sender.callback(this.doc.getValue(),b)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(y.prototype)});ace.define("ace/mode/css/csslint",[],function(E,I,F){var P=function(){var L=L||{},y=function(){var i;return i=function(){function e(s,l,u){function o(c,d){if(!l[c]){if(!s[c]){var g=typeof i=="function"&&i;if(!d&&g)return g(c,!0);if(a)return a(c,!0);var w=new Error("Cannot find module '"+c+"'");throw w.code="MODULE_NOT_FOUND",w}var x=l[c]={exports:{}};s[c][0].call(x.exports,function(S){var T=s[c][1][S];return o(T||S)},x,x.exports,e,s,l,u)}return l[c].exports}for(var a=typeof i=="function"&&i,t=0;t"?this.type="child":t==="+"?this.type="adjacent-sibling":t==="~"&&(this.type="sibling")}a.prototype=new u,a.prototype.constructor=a},{"../util/SyntaxUnit":26,"./Parser":6}],3:[function(e,s,l){s.exports=a;var u=e("../util/StringReader"),o=e("../util/SyntaxError");function a(t,c){this.match=function(d){var g;return d.mark(),g=t(d),g?d.drop():d.restore(),g},this.toString=typeof c=="function"?c:function(){return c}}a.prec={MOD:5,SEQ:4,ANDAND:3,OROR:2,ALT:1},a.parse=function(t){var c,d,g,w,x,S,T,A,O;if(c=new u(t),d=function(f){var D=c.readMatch(f);if(D===null)throw new o("Expected "+f,c.getLine(),c.getCol());return D},g=function(){for(var f=[w()];c.readMatch(" | ")!==null;)f.push(w());return f.length===1?f[0]:a.alt.apply(a,f)},w=function(){for(var f=[x()];c.readMatch(" || ")!==null;)f.push(x());return f.length===1?f[0]:a.oror.apply(a,f)},x=function(){for(var f=[S()];c.readMatch(" && ")!==null;)f.push(S());return f.length===1?f[0]:a.andand.apply(a,f)},S=function(){for(var f=[T()];c.readMatch(/^ (?![&|\]])/)!==null;)f.push(T());return f.length===1?f[0]:a.seq.apply(a,f)},T=function(){var f=A();if(c.readMatch("?")!==null)return f.question();if(c.readMatch("*")!==null)return f.star();if(c.readMatch("+")!==null)return f.plus();if(c.readMatch("#")!==null)return f.hash();if(c.readMatch(/^\{\s*/)!==null){var D=d(/^\d+/);d(/^\s*,\s*/);var C=d(/^\d+/);return d(/^\s*\}/),f.braces(Number(D),Number(C))}return f},A=function(){if(c.readMatch("[ ")!==null){var f=g();return d(" ]"),f}return a.fromType(d(/^[^ ?*+#{]+/))},O=g(),!c.eof())throw new o("Expected end of string",c.getLine(),c.getCol());return O},a.cast=function(t){return t instanceof a?t:a.parse(t)},a.fromType=function(t){var c=e("./ValidationTypes");return new a(function(d){return d.hasNext()&&c.isType(d,t)},t)},a.seq=function(){var t=Array.prototype.slice.call(arguments).map(a.cast);return t.length===1?t[0]:new a(function(c){var d,g=!0;for(d=0;g&&dd&&(g="[ "+g+" ]"),g})},a.alt=function(){var t=Array.prototype.slice.call(arguments).map(a.cast);return t.length===1?t[0]:new a(function(c){var d,g=!1;for(d=0;!g&&dd&&(g="[ "+g+" ]"),g})},a.many=function(t){var c=Array.prototype.slice.call(arguments,1).reduce(function(g,w){if(w.expand){var x=e("./ValidationTypes");g.push.apply(g,x.complex[w.expand].options)}else g.push(a.cast(w));return g},[]);t===!0&&(t=c.map(function(){return!0}));var d=new a(function(g){var w=[],x=0,S=0,T=function(f){return S===0?(x=Math.max(f,x),f===c.length):f===x},A=function(f){for(var D=0;D0;for(var O=0;Ow&&(x="[ "+x+" ]"),x});return d.options=c,d},a.andand=function(){var t=Array.prototype.slice.call(arguments);return t.unshift(!0),a.many.apply(a,t)},a.oror=function(){var t=Array.prototype.slice.call(arguments);return t.unshift(!1),a.many.apply(a,t)},a.prototype={constructor:a,match:function(){throw new Error("unimplemented")},toString:function(){throw new Error("unimplemented")},func:function(){return this.match.bind(this)},then:function(t){return a.seq(this,t)},or:function(t){return a.alt(this,t)},andand:function(t){return a.many(!0,this,t)},oror:function(t){return a.many(!1,this,t)},star:function(){return this.braces(0,1/0,"*")},plus:function(){return this.braces(1,1/0,"+")},question:function(){return this.braces(0,1,"?")},hash:function(){return this.braces(1,1/0,"#",a.cast(","))},braces:function(t,c,d,g){var w=this,x=g?g.then(this):this;return d||(d="{"+t+","+c+"}"),new a(function(S){var T=!0,A;for(A=0;A0&&g?T=x.match(S):T=w.match(S),!!T);A++);return A>=t},function(){return w.toString(a.prec.MOD)+d})}}},{"../util/StringReader":24,"../util/SyntaxError":25,"./ValidationTypes":21}],4:[function(e,s,l){s.exports=a;var u=e("../util/SyntaxUnit"),o=e("./Parser");function a(t,c){u.call(this,"("+t+(c!==null?":"+c:"")+")",t.startLine,t.startCol,o.MEDIA_FEATURE_TYPE),this.name=t,this.value=c}a.prototype=new u,a.prototype.constructor=a},{"../util/SyntaxUnit":26,"./Parser":6}],5:[function(e,s,l){s.exports=a;var u=e("../util/SyntaxUnit"),o=e("./Parser");function a(t,c,d,g,w){u.call(this,(t?t+" ":"")+(c||"")+(c&&d.length>0?" and ":"")+d.join(" and "),g,w,o.MEDIA_QUERY_TYPE),this.modifier=t,this.mediaType=c,this.features=d}a.prototype=new u,a.prototype.constructor=a},{"../util/SyntaxUnit":26,"./Parser":6}],6:[function(e,s,l){s.exports=C;var u=e("../util/EventTarget"),o=e("../util/SyntaxError"),a=e("../util/SyntaxUnit"),t=e("./Combinator"),c=e("./MediaFeature"),d=e("./MediaQuery"),g=e("./PropertyName"),w=e("./PropertyValue"),x=e("./PropertyValuePart"),S=e("./Selector"),T=e("./SelectorPart"),A=e("./SelectorSubPart"),O=e("./TokenStream"),f=e("./Tokens"),D=e("./Validation");function C(z){u.call(this),this.options=z||{},this._tokenStream=null}C.DEFAULT_TYPE=0,C.COMBINATOR_TYPE=1,C.MEDIA_FEATURE_TYPE=2,C.MEDIA_QUERY_TYPE=3,C.PROPERTY_NAME_TYPE=4,C.PROPERTY_VALUE_TYPE=5,C.PROPERTY_VALUE_PART_TYPE=6,C.SELECTOR_TYPE=7,C.SELECTOR_PART_TYPE=8,C.SELECTOR_SUB_PART_TYPE=9,C.prototype=function(){var z=new u,N,v={__proto__:null,constructor:C,DEFAULT_TYPE:0,COMBINATOR_TYPE:1,MEDIA_FEATURE_TYPE:2,MEDIA_QUERY_TYPE:3,PROPERTY_NAME_TYPE:4,PROPERTY_VALUE_TYPE:5,PROPERTY_VALUE_PART_TYPE:6,SELECTOR_TYPE:7,SELECTOR_PART_TYPE:8,SELECTOR_SUB_PART_TYPE:9,_stylesheet:function(){var r=this._tokenStream,n,h,m;for(this.fire("startstylesheet"),this._charset(),this._skipCruft();r.peek()===f.IMPORT_SYM;)this._import(),this._skipCruft();for(;r.peek()===f.NAMESPACE_SYM;)this._namespace(),this._skipCruft();for(m=r.peek();m>f.EOF;){try{switch(m){case f.MEDIA_SYM:this._media(),this._skipCruft();break;case f.PAGE_SYM:this._page(),this._skipCruft();break;case f.FONT_FACE_SYM:this._font_face(),this._skipCruft();break;case f.KEYFRAMES_SYM:this._keyframes(),this._skipCruft();break;case f.VIEWPORT_SYM:this._viewport(),this._skipCruft();break;case f.DOCUMENT_SYM:this._document(),this._skipCruft();break;case f.SUPPORTS_SYM:this._supports(),this._skipCruft();break;case f.UNKNOWN_SYM:if(r.get(),this.options.strict)throw new o("Unknown @ rule.",r.LT(0).startLine,r.LT(0).startCol);for(this.fire({type:"error",error:null,message:"Unknown @ rule: "+r.LT(0).value+".",line:r.LT(0).startLine,col:r.LT(0).startCol}),n=0;r.advance([f.LBRACE,f.RBRACE])===f.LBRACE;)n++;for(;n;)r.advance([f.RBRACE]),n--;break;case f.S:this._readWhitespace();break;default:if(!this._ruleset())switch(m){case f.CHARSET_SYM:throw h=r.LT(1),this._charset(!1),new o("@charset not allowed here.",h.startLine,h.startCol);case f.IMPORT_SYM:throw h=r.LT(1),this._import(!1),new o("@import not allowed here.",h.startLine,h.startCol);case f.NAMESPACE_SYM:throw h=r.LT(1),this._namespace(!1),new o("@namespace not allowed here.",h.startLine,h.startCol);default:r.get(),this._unexpectedToken(r.token())}}}catch(_){if(_ instanceof o&&!this.options.strict)this.fire({type:"error",error:_,message:_.message,line:_.line,col:_.col});else throw _}m=r.peek()}m!==f.EOF&&this._unexpectedToken(r.token()),this.fire("endstylesheet")},_charset:function(r){var n=this._tokenStream,h,m,_,R;n.match(f.CHARSET_SYM)&&(_=n.token().startLine,R=n.token().startCol,this._readWhitespace(),n.mustMatch(f.STRING),m=n.token(),h=m.value,this._readWhitespace(),n.mustMatch(f.SEMICOLON),r!==!1&&this.fire({type:"charset",charset:h,line:_,col:R}))},_import:function(r){var n=this._tokenStream,h,m,_=[];n.mustMatch(f.IMPORT_SYM),m=n.token(),this._readWhitespace(),n.mustMatch([f.STRING,f.URI]),h=n.token().value.replace(/^(?:url\()?["']?([^"']+?)["']?\)?$/,"$1"),this._readWhitespace(),_=this._media_query_list(),n.mustMatch(f.SEMICOLON),this._readWhitespace(),r!==!1&&this.fire({type:"import",uri:h,media:_,line:m.startLine,col:m.startCol})},_namespace:function(r){var n=this._tokenStream,h,m,_,R;n.mustMatch(f.NAMESPACE_SYM),h=n.token().startLine,m=n.token().startCol,this._readWhitespace(),n.match(f.IDENT)&&(_=n.token().value,this._readWhitespace()),n.mustMatch([f.STRING,f.URI]),R=n.token().value.replace(/(?:url\()?["']([^"']+)["']\)?/,"$1"),this._readWhitespace(),n.mustMatch(f.SEMICOLON),this._readWhitespace(),r!==!1&&this.fire({type:"namespace",prefix:_,uri:R,line:h,col:m})},_supports:function(r){var n=this._tokenStream,h,m;if(n.match(f.SUPPORTS_SYM)){for(h=n.token().startLine,m=n.token().startCol,this._readWhitespace(),this._supports_condition(),this._readWhitespace(),n.mustMatch(f.LBRACE),this._readWhitespace(),r!==!1&&this.fire({type:"startsupports",line:h,col:m});this._ruleset(););n.mustMatch(f.RBRACE),this._readWhitespace(),this.fire({type:"endsupports",line:h,col:m})}},_supports_condition:function(){var r=this._tokenStream,n;if(r.match(f.IDENT))n=r.token().value.toLowerCase(),n==="not"?(r.mustMatch(f.S),this._supports_condition_in_parens()):r.unget();else for(this._supports_condition_in_parens(),this._readWhitespace();r.peek()===f.IDENT;)n=r.LT(1).value.toLowerCase(),(n==="and"||n==="or")&&(r.mustMatch(f.IDENT),this._readWhitespace(),this._supports_condition_in_parens(),this._readWhitespace())},_supports_condition_in_parens:function(){var r=this._tokenStream,n;r.match(f.LPAREN)?(this._readWhitespace(),r.match(f.IDENT)?(n=r.token().value.toLowerCase(),n==="not"?(this._readWhitespace(),this._supports_condition(),this._readWhitespace(),r.mustMatch(f.RPAREN)):(r.unget(),this._supports_declaration_condition(!1))):(this._supports_condition(),this._readWhitespace(),r.mustMatch(f.RPAREN))):this._supports_declaration_condition()},_supports_declaration_condition:function(r){var n=this._tokenStream;r!==!1&&n.mustMatch(f.LPAREN),this._readWhitespace(),this._declaration(),n.mustMatch(f.RPAREN)},_media:function(){var r=this._tokenStream,n,h,m;for(r.mustMatch(f.MEDIA_SYM),n=r.token().startLine,h=r.token().startCol,this._readWhitespace(),m=this._media_query_list(),r.mustMatch(f.LBRACE),this._readWhitespace(),this.fire({type:"startmedia",media:m,line:n,col:h});;)if(r.peek()===f.PAGE_SYM)this._page();else if(r.peek()===f.FONT_FACE_SYM)this._font_face();else if(r.peek()===f.VIEWPORT_SYM)this._viewport();else if(r.peek()===f.DOCUMENT_SYM)this._document();else if(r.peek()===f.SUPPORTS_SYM)this._supports();else if(r.peek()===f.MEDIA_SYM)this._media();else if(!this._ruleset())break;r.mustMatch(f.RBRACE),this._readWhitespace(),this.fire({type:"endmedia",media:m,line:n,col:h})},_media_query_list:function(){var r=this._tokenStream,n=[];for(this._readWhitespace(),(r.peek()===f.IDENT||r.peek()===f.LPAREN)&&n.push(this._media_query());r.match(f.COMMA);)this._readWhitespace(),n.push(this._media_query());return n},_media_query:function(){var r=this._tokenStream,n=null,h=null,m=null,_=[];if(r.match(f.IDENT)&&(h=r.token().value.toLowerCase(),h!=="only"&&h!=="not"?(r.unget(),h=null):m=r.token()),this._readWhitespace(),r.peek()===f.IDENT?(n=this._media_type(),m===null&&(m=r.token())):r.peek()===f.LPAREN&&(m===null&&(m=r.LT(1)),_.push(this._media_expression())),n===null&&_.length===0)return null;for(this._readWhitespace();r.match(f.IDENT);)r.token().value.toLowerCase()!=="and"&&this._unexpectedToken(r.token()),this._readWhitespace(),_.push(this._media_expression());return new d(h,n,_,m.startLine,m.startCol)},_media_type:function(){return this._media_feature()},_media_expression:function(){var r=this._tokenStream,n=null,h,m=null;return r.mustMatch(f.LPAREN),this._readWhitespace(),n=this._media_feature(),this._readWhitespace(),r.match(f.COLON)&&(this._readWhitespace(),h=r.LT(1),m=this._expression()),r.mustMatch(f.RPAREN),this._readWhitespace(),new c(n,m?new a(m,h.startLine,h.startCol):null)},_media_feature:function(){var r=this._tokenStream;return this._readWhitespace(),r.mustMatch(f.IDENT),a.fromToken(r.token())},_page:function(){var r=this._tokenStream,n,h,m=null,_=null;r.mustMatch(f.PAGE_SYM),n=r.token().startLine,h=r.token().startCol,this._readWhitespace(),r.match(f.IDENT)&&(m=r.token().value,m.toLowerCase()==="auto"&&this._unexpectedToken(r.token())),r.peek()===f.COLON&&(_=this._pseudo_page()),this._readWhitespace(),this.fire({type:"startpage",id:m,pseudo:_,line:n,col:h}),this._readDeclarations(!0,!0),this.fire({type:"endpage",id:m,pseudo:_,line:n,col:h})},_margin:function(){var r=this._tokenStream,n,h,m=this._margin_sym();return m?(n=r.token().startLine,h=r.token().startCol,this.fire({type:"startpagemargin",margin:m,line:n,col:h}),this._readDeclarations(!0),this.fire({type:"endpagemargin",margin:m,line:n,col:h}),!0):!1},_margin_sym:function(){var r=this._tokenStream;return r.match([f.TOPLEFTCORNER_SYM,f.TOPLEFT_SYM,f.TOPCENTER_SYM,f.TOPRIGHT_SYM,f.TOPRIGHTCORNER_SYM,f.BOTTOMLEFTCORNER_SYM,f.BOTTOMLEFT_SYM,f.BOTTOMCENTER_SYM,f.BOTTOMRIGHT_SYM,f.BOTTOMRIGHTCORNER_SYM,f.LEFTTOP_SYM,f.LEFTMIDDLE_SYM,f.LEFTBOTTOM_SYM,f.RIGHTTOP_SYM,f.RIGHTMIDDLE_SYM,f.RIGHTBOTTOM_SYM])?a.fromToken(r.token()):null},_pseudo_page:function(){var r=this._tokenStream;return r.mustMatch(f.COLON),r.mustMatch(f.IDENT),r.token().value},_font_face:function(){var r=this._tokenStream,n,h;r.mustMatch(f.FONT_FACE_SYM),n=r.token().startLine,h=r.token().startCol,this._readWhitespace(),this.fire({type:"startfontface",line:n,col:h}),this._readDeclarations(!0),this.fire({type:"endfontface",line:n,col:h})},_viewport:function(){var r=this._tokenStream,n,h;r.mustMatch(f.VIEWPORT_SYM),n=r.token().startLine,h=r.token().startCol,this._readWhitespace(),this.fire({type:"startviewport",line:n,col:h}),this._readDeclarations(!0),this.fire({type:"endviewport",line:n,col:h})},_document:function(){var r=this._tokenStream,n,h=[],m="";for(r.mustMatch(f.DOCUMENT_SYM),n=r.token(),/^@-([^-]+)-/.test(n.value)&&(m=RegExp.$1),this._readWhitespace(),h.push(this._document_function());r.match(f.COMMA);)this._readWhitespace(),h.push(this._document_function());r.mustMatch(f.LBRACE),this._readWhitespace(),this.fire({type:"startdocument",functions:h,prefix:m,line:n.startLine,col:n.startCol});for(var _=!0;_;)switch(r.peek()){case f.PAGE_SYM:this._page();break;case f.FONT_FACE_SYM:this._font_face();break;case f.VIEWPORT_SYM:this._viewport();break;case f.MEDIA_SYM:this._media();break;case f.KEYFRAMES_SYM:this._keyframes();break;case f.DOCUMENT_SYM:this._document();break;default:_=!!this._ruleset()}r.mustMatch(f.RBRACE),n=r.token(),this._readWhitespace(),this.fire({type:"enddocument",functions:h,prefix:m,line:n.startLine,col:n.startCol})},_document_function:function(){var r=this._tokenStream,n;return r.match(f.URI)?(n=r.token().value,this._readWhitespace()):n=this._function(),n},_operator:function(r){var n=this._tokenStream,h=null;return(n.match([f.SLASH,f.COMMA])||r&&n.match([f.PLUS,f.STAR,f.MINUS]))&&(h=n.token(),this._readWhitespace()),h?x.fromToken(h):null},_combinator:function(){var r=this._tokenStream,n=null,h;return r.match([f.PLUS,f.GREATER,f.TILDE])&&(h=r.token(),n=new t(h.value,h.startLine,h.startCol),this._readWhitespace()),n},_unary_operator:function(){var r=this._tokenStream;return r.match([f.MINUS,f.PLUS])?r.token().value:null},_property:function(){var r=this._tokenStream,n=null,h=null,m="",_,R,M;if(r.peek()===f.STAR&&this.options.starHack&&(r.get(),_=r.token(),h=_.value,R=_.startLine,M=_.startCol),r.peek()===f.MINUS&&(r.get(),_=r.token(),m=_.value,R=_.startLine,M=_.startCol),r.match(f.IDENT))_=r.token(),m+=_.value,m.charAt(0)==="_"&&this.options.underscoreHack&&(h="_",m=m.substring(1)),n=new g(m,h,R||_.startLine,M||_.startCol),this._readWhitespace();else{var U=r.peek();U!==f.EOF&&U!==f.RBRACE&&this._unexpectedToken(r.LT(1))}return n},_ruleset:function(){var r=this._tokenStream,n,h;try{h=this._selectors_group()}catch(m){if(m instanceof o&&!this.options.strict){if(this.fire({type:"error",error:m,message:m.message,line:m.line,col:m.col}),n=r.advance([f.RBRACE]),n!==f.RBRACE)throw m}else throw m;return!0}return h&&(this.fire({type:"startrule",selectors:h,line:h[0].line,col:h[0].col}),this._readDeclarations(!0),this.fire({type:"endrule",selectors:h,line:h[0].line,col:h[0].col})),h},_selectors_group:function(){var r=this._tokenStream,n=[],h;if(h=this._selector(),h!==null)for(n.push(h);r.match(f.COMMA);)this._readWhitespace(),h=this._selector(),h!==null?n.push(h):this._unexpectedToken(r.LT(1));return n.length?n:null},_selector:function(){var r=this._tokenStream,n=[],h=null,m=null,_=null;if(h=this._simple_selector_sequence(),h===null)return null;n.push(h);do if(m=this._combinator(),m!==null)n.push(m),h=this._simple_selector_sequence(),h===null?this._unexpectedToken(r.LT(1)):n.push(h);else if(this._readWhitespace())_=new t(r.token().value,r.token().startLine,r.token().startCol),m=this._combinator(),h=this._simple_selector_sequence(),h===null?m!==null&&this._unexpectedToken(r.LT(1)):(m!==null?n.push(m):n.push(_),n.push(h));else break;while(!0);return new S(n,n[0].line,n[0].col)},_simple_selector_sequence:function(){var r=this._tokenStream,n=null,h=[],m="",_=[function(){return r.match(f.HASH)?new A(r.token().value,"id",r.token().startLine,r.token().startCol):null},this._class,this._attrib,this._pseudo,this._negation],R=0,M=_.length,U=null,$,Y;for($=r.LT(1).startLine,Y=r.LT(1).startCol,n=this._type_selector(),n||(n=this._universal()),n!==null&&(m+=n);r.peek()!==f.S;){for(;R1&&r.unget()),null)},_class:function(){var r=this._tokenStream,n;return r.match(f.DOT)?(r.mustMatch(f.IDENT),n=r.token(),new A("."+n.value,"class",n.startLine,n.startCol-1)):null},_element_name:function(){var r=this._tokenStream,n;return r.match(f.IDENT)?(n=r.token(),new A(n.value,"elementName",n.startLine,n.startCol)):null},_namespace_prefix:function(){var r=this._tokenStream,n="";return(r.LA(1)===f.PIPE||r.LA(2)===f.PIPE)&&(r.match([f.IDENT,f.STAR])&&(n+=r.token().value),r.mustMatch(f.PIPE),n+="|"),n.length?n:null},_universal:function(){var r=this._tokenStream,n="",h;return h=this._namespace_prefix(),h&&(n+=h),r.match(f.STAR)&&(n+="*"),n.length?n:null},_attrib:function(){var r=this._tokenStream,n=null,h,m;return r.match(f.LBRACKET)?(m=r.token(),n=m.value,n+=this._readWhitespace(),h=this._namespace_prefix(),h&&(n+=h),r.mustMatch(f.IDENT),n+=r.token().value,n+=this._readWhitespace(),r.match([f.PREFIXMATCH,f.SUFFIXMATCH,f.SUBSTRINGMATCH,f.EQUALS,f.INCLUDES,f.DASHMATCH])&&(n+=r.token().value,n+=this._readWhitespace(),r.mustMatch([f.IDENT,f.STRING]),n+=r.token().value,n+=this._readWhitespace()),r.mustMatch(f.RBRACKET),new A(n+"]","attribute",m.startLine,m.startCol)):null},_pseudo:function(){var r=this._tokenStream,n=null,h=":",m,_;if(r.match(f.COLON))if(r.match(f.COLON)&&(h+=":"),r.match(f.IDENT)?(n=r.token().value,m=r.token().startLine,_=r.token().startCol-h.length):r.peek()===f.FUNCTION&&(m=r.LT(1).startLine,_=r.LT(1).startCol-h.length,n=this._functional_pseudo()),n)n=new A(h+n,"pseudo",m,_);else{var R=r.LT(1).startLine,M=r.LT(0).startCol;throw new o("Expected a `FUNCTION` or `IDENT` after colon at line "+R+", col "+M+".",R,M)}return n},_functional_pseudo:function(){var r=this._tokenStream,n=null;return r.match(f.FUNCTION)&&(n=r.token().value,n+=this._readWhitespace(),n+=this._expression(),r.mustMatch(f.RPAREN),n+=")"),n},_expression:function(){for(var r=this._tokenStream,n="";r.match([f.PLUS,f.MINUS,f.DIMENSION,f.NUMBER,f.STRING,f.IDENT,f.LENGTH,f.FREQ,f.ANGLE,f.TIME,f.RESOLUTION,f.SLASH]);)n+=r.token().value,n+=this._readWhitespace();return n.length?n:null},_negation:function(){var r=this._tokenStream,n,h,m="",_,R=null;return r.match(f.NOT)&&(m=r.token().value,n=r.token().startLine,h=r.token().startCol,m+=this._readWhitespace(),_=this._negation_arg(),m+=_,m+=this._readWhitespace(),r.match(f.RPAREN),m+=r.token().value,R=new A(m,"not",n,h),R.args.push(_)),R},_negation_arg:function(){var r=this._tokenStream,n=[this._type_selector,this._universal,function(){return r.match(f.HASH)?new A(r.token().value,"id",r.token().startLine,r.token().startCol):null},this._class,this._attrib,this._pseudo],h=null,m=0,_=n.length,R,M,U;for(R=r.LT(1).startLine,M=r.LT(1).startCol;m<_&&h===null;)h=n[m].call(this),m++;return h===null&&this._unexpectedToken(r.LT(1)),h.type==="elementName"?U=new T(h,[],h.toString(),R,M):U=new T(null,[h],h.toString(),R,M),U},_declaration:function(){var r=this._tokenStream,n=null,h=null,m=null,_=null,R="";if(n=this._property(),n!==null){r.mustMatch(f.COLON),this._readWhitespace(),h=this._expr(),(!h||h.length===0)&&this._unexpectedToken(r.LT(1)),m=this._prio(),R=n.toString(),(this.options.starHack&&n.hack==="*"||this.options.underscoreHack&&n.hack==="_")&&(R=n.text);try{this._validateProperty(R,h)}catch(M){_=M}return this.fire({type:"property",property:n,value:h,important:m,line:n.line,col:n.col,invalid:_}),!0}else return!1},_prio:function(){var r=this._tokenStream,n=r.match(f.IMPORTANT_SYM);return this._readWhitespace(),n},_expr:function(r){var n=[],h=null,m=null;if(h=this._term(r),h!==null){n.push(h);do{if(m=this._operator(r),m&&n.push(m),h=this._term(r),h===null)break;n.push(h)}while(!0)}return n.length>0?new w(n,n[0].line,n[0].col):null},_term:function(r){var n=this._tokenStream,h=null,m=null,_=null,R=null,M,U,$;return h=this._unary_operator(),h!==null&&(U=n.token().startLine,$=n.token().startCol),n.peek()===f.IE_FUNCTION&&this.options.ieFilters?(m=this._ie_function(),h===null&&(U=n.token().startLine,$=n.token().startCol)):r&&n.match([f.LPAREN,f.LBRACE,f.LBRACKET])?(M=n.token(),_=M.endChar,m=M.value+this._expr(r).text,h===null&&(U=n.token().startLine,$=n.token().startCol),n.mustMatch(f.type(_)),m+=_,this._readWhitespace()):n.match([f.NUMBER,f.PERCENTAGE,f.LENGTH,f.ANGLE,f.TIME,f.FREQ,f.STRING,f.IDENT,f.URI,f.UNICODE_RANGE])?(m=n.token().value,h===null&&(U=n.token().startLine,$=n.token().startCol,R=x.fromToken(n.token())),this._readWhitespace()):(M=this._hexcolor(),M===null?(h===null&&(U=n.LT(1).startLine,$=n.LT(1).startCol),m===null&&(n.LA(3)===f.EQUALS&&this.options.ieFilters?m=this._ie_function():m=this._function())):(m=M.value,h===null&&(U=M.startLine,$=M.startCol))),R!==null?R:m!==null?new x(h!==null?h+m:m,U,$):null},_function:function(){var r=this._tokenStream,n=null,h=null,m;if(r.match(f.FUNCTION)){if(n=r.token().value,this._readWhitespace(),h=this._expr(!0),n+=h,this.options.ieFilters&&r.peek()===f.EQUALS)do for(this._readWhitespace()&&(n+=r.token().value),r.LA(0)===f.COMMA&&(n+=r.token().value),r.match(f.IDENT),n+=r.token().value,r.match(f.EQUALS),n+=r.token().value,m=r.peek();m!==f.COMMA&&m!==f.S&&m!==f.RPAREN;)r.get(),n+=r.token().value,m=r.peek();while(r.match([f.COMMA,f.S]));r.match(f.RPAREN),n+=")",this._readWhitespace()}return n},_ie_function:function(){var r=this._tokenStream,n=null,h;if(r.match([f.IE_FUNCTION,f.FUNCTION])){n=r.token().value;do for(this._readWhitespace()&&(n+=r.token().value),r.LA(0)===f.COMMA&&(n+=r.token().value),r.match(f.IDENT),n+=r.token().value,r.match(f.EQUALS),n+=r.token().value,h=r.peek();h!==f.COMMA&&h!==f.S&&h!==f.RPAREN;)r.get(),n+=r.token().value,h=r.peek();while(r.match([f.COMMA,f.S]));r.match(f.RPAREN),n+=")",this._readWhitespace()}return n},_hexcolor:function(){var r=this._tokenStream,n=null,h;if(r.match(f.HASH)){if(n=r.token(),h=n.value,!/#[a-f0-9]{3,6}/i.test(h))throw new o("Expected a hex color but found '"+h+"' at line "+n.startLine+", col "+n.startCol+".",n.startLine,n.startCol);this._readWhitespace()}return n},_keyframes:function(){var r=this._tokenStream,n,h,m,_="";for(r.mustMatch(f.KEYFRAMES_SYM),n=r.token(),/^@-([^-]+)-/.test(n.value)&&(_=RegExp.$1),this._readWhitespace(),m=this._keyframe_name(),this._readWhitespace(),r.mustMatch(f.LBRACE),this.fire({type:"startkeyframes",name:m,prefix:_,line:n.startLine,col:n.startCol}),this._readWhitespace(),h=r.peek();h===f.IDENT||h===f.PERCENTAGE;)this._keyframe_rule(),this._readWhitespace(),h=r.peek();this.fire({type:"endkeyframes",name:m,prefix:_,line:n.startLine,col:n.startCol}),this._readWhitespace(),r.mustMatch(f.RBRACE),this._readWhitespace()},_keyframe_name:function(){var r=this._tokenStream;return r.mustMatch([f.IDENT,f.STRING]),a.fromToken(r.token())},_keyframe_rule:function(){var r=this._key_list();this.fire({type:"startkeyframerule",keys:r,line:r[0].line,col:r[0].col}),this._readDeclarations(!0),this.fire({type:"endkeyframerule",keys:r,line:r[0].line,col:r[0].col})},_key_list:function(){var r=this._tokenStream,n=[];for(n.push(this._key()),this._readWhitespace();r.match(f.COMMA);)this._readWhitespace(),n.push(this._key()),this._readWhitespace();return n},_key:function(){var r=this._tokenStream,n;if(r.match(f.PERCENTAGE))return a.fromToken(r.token());if(r.match(f.IDENT)){if(n=r.token(),/from|to/i.test(n.value))return a.fromToken(n);r.unget()}this._unexpectedToken(r.LT(1))},_skipCruft:function(){for(;this._tokenStream.match([f.S,f.CDO,f.CDC]););},_readDeclarations:function(r,n){var h=this._tokenStream,m;this._readWhitespace(),r&&h.mustMatch(f.LBRACE),this._readWhitespace();try{for(;;){if(!(h.match(f.SEMICOLON)||n&&this._margin()))if(this._declaration()){if(!h.match(f.SEMICOLON))break}else break;this._readWhitespace()}h.mustMatch(f.RBRACE),this._readWhitespace()}catch(_){if(_ instanceof o&&!this.options.strict){if(this.fire({type:"error",error:_,message:_.message,line:_.line,col:_.col}),m=h.advance([f.SEMICOLON,f.RBRACE]),m===f.SEMICOLON)this._readDeclarations(!1,n);else if(m!==f.EOF&&m!==f.RBRACE)throw _}else throw _}},_readWhitespace:function(){for(var r=this._tokenStream,n="";r.match(f.S);)n+=r.token().value;return n},_unexpectedToken:function(r){throw new o("Unexpected token '"+r.value+"' at line "+r.startLine+", col "+r.startCol+".",r.startLine,r.startCol)},_verifyEnd:function(){this._tokenStream.LA(1)!==f.EOF&&this._unexpectedToken(this._tokenStream.LT(1))},_validateProperty:function(r,n){D.validate(r,n)},parse:function(r){this._tokenStream=new O(r,f),this._stylesheet()},parseStyleSheet:function(r){return this.parse(r)},parseMediaQuery:function(r){this._tokenStream=new O(r,f);var n=this._media_query();return this._verifyEnd(),n},parsePropertyValue:function(r){this._tokenStream=new O(r,f),this._readWhitespace();var n=this._expr();return this._readWhitespace(),this._verifyEnd(),n},parseRule:function(r){this._tokenStream=new O(r,f),this._readWhitespace();var n=this._ruleset();return this._readWhitespace(),this._verifyEnd(),n},parseSelector:function(r){this._tokenStream=new O(r,f),this._readWhitespace();var n=this._selector();return this._readWhitespace(),this._verifyEnd(),n},parseStyleAttribute:function(r){r+="}",this._tokenStream=new O(r,f),this._readDeclarations()}};for(N in v)Object.prototype.hasOwnProperty.call(v,N)&&(z[N]=v[N]);return z}()},{"../util/EventTarget":23,"../util/SyntaxError":25,"../util/SyntaxUnit":26,"./Combinator":2,"./MediaFeature":4,"./MediaQuery":5,"./PropertyName":8,"./PropertyValue":9,"./PropertyValuePart":11,"./Selector":13,"./SelectorPart":14,"./SelectorSubPart":15,"./TokenStream":17,"./Tokens":18,"./Validation":19}],7:[function(e,s,l){s.exports={__proto__:null,"align-items":"flex-start | flex-end | center | baseline | stretch","align-content":"flex-start | flex-end | center | space-between | space-around | stretch","align-self":"auto | flex-start | flex-end | center | baseline | stretch",all:"initial | inherit | unset","-webkit-align-items":"flex-start | flex-end | center | baseline | stretch","-webkit-align-content":"flex-start | flex-end | center | space-between | space-around | stretch","-webkit-align-self":"auto | flex-start | flex-end | center | baseline | stretch","alignment-adjust":"auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical | | ","alignment-baseline":"auto | baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical",animation:1,"animation-delay":"