All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web-interface.assets.5455bc3c74e053ffe3a7730e257d56a9.js Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy