forked from zhurui/management
7 lines
189 KiB
JavaScript
7 lines
189 KiB
JavaScript
|
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.csstree=e()}}(function(){return function(){function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[a]={exports:{}};t[a][0].call(u.exports,function(e){return o(t[a][1][e]||e)},u,u.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}return e}()({1:[function(e,t,n){t.exports={generic:!0,types:{"absolute-size":"xx-small | x-small | small | medium | large | x-large | xx-large","alpha-value":"<number> | <percentage>","angle-percentage":"<angle> | <percentage>","angular-color-hint":"<angle-percentage>","angular-color-stop":"<color> && <color-stop-angle>?","angular-color-stop-list":"[ <angular-color-stop> [, <angular-color-hint> ]? ]# , <angular-color-stop>","animateable-feature":"scroll-position | contents | <custom-ident>",attachment:"scroll | fixed | local","attr()":"attr( <attr-name> <type-or-unit>? [, <attr-fallback> ]? )","attr-matcher":"[ '~' | '|' | '^' | '$' | '*' ]? '='","attr-modifier":"i | s","attribute-selector":"'[' <wq-name> ']' | '[' <wq-name> <attr-matcher> [ <string-token> | <ident-token> ] <attr-modifier>? ']'","auto-repeat":"repeat( [ auto-fill | auto-fit ] , [ <line-names>? <fixed-size> ]+ <line-names>? )","auto-track-list":"[ <line-names>? [ <fixed-size> | <fixed-repeat> ] ]* <line-names>? <auto-repeat> [ <line-names>? [ <fixed-size> | <fixed-repeat> ] ]* <line-names>?","baseline-position":"[ first | last ]? baseline","basic-shape":"<inset()> | <circle()> | <ellipse()> | <polygon()>","bg-image":"none | <image>","bg-layer":"<bg-image> || <bg-position> [ / <bg-size> ]? || <repeat-style> || <attachment> || <box> || <box>","bg-position":"[ [ left | center | right | top | bottom | <length-percentage> ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ] | [ center | [ left | right ] <length-percentage>? ] && [ center | [ top | bottom ] <length-percentage>? ] ]","bg-size":"[ <length-percentage> | auto ]{1,2} | cover | contain","blur()":"blur( <length> )","blend-mode":"normal | multiply | screen | overlay | darken | lighten | color-dodge | color-burn | hard-light | soft-light | difference | exclusion | hue | saturation | color | luminosity",box:"border-box | padding-box | content-box","brightness()":"brightness( <number-percentage> )","calc()":"calc( <calc-sum> )","calc-sum":"<calc-product> [ [ '+' | '-' ] <calc-product> ]*","calc-product":"<calc-value> [ '*' <calc-value> | '/' <number> ]*","calc-value":"<number> | <dimension> | <percentage> | ( <calc-sum> )","cf-final-image":"<image> | <color>","cf-mixing-image":"<percentage>? && <image>","circle()":"circle( [ <shape-radius> ]? [ at <position> ]? )","clamp()":"clamp( <calc-sum>#{3} )","class-selector":"'.' <ident-token>","clip-source":"<url>",color:"<rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>","color-stop":"<color-stop-length> | <color-stop-angle>","color-stop-angle":"<angle-percentage>{1,2}","color-stop-length":"<length-percentage>{1,2}","color-stop-list":"[ <linear-color-stop> [, <linear-color-hint> ]? ]# , <linear-color-stop>",combinator:"'>' | '+' | '~' | [ '||' ]","common-lig-values":"[ common-ligatures | no-common-ligatures ]",compat:"searchfield | textarea | push-button | button-bevel | slider-horizontal | checkbox | radio | square-button | menulist | menulist-button | listbox | meter | progress-bar","composite-style":"clear | copy | source-over | source-in | source-out | source-atop | destination-over | destination-in | destination-out | destination-atop | xor","compositing-operator":"add | subtract | intersect | exclude","compound-selector":"[ <t
|
||
|
"-moz-outline-radius-bottomright":"<outline-radius>","-moz-outline-radius-topleft":"<outline-radius>","-moz-outline-radius-topright":"<outline-radius>","-moz-stack-sizing":"ignore | stretch-to-fit","-moz-text-blink":"none | blink","-moz-user-focus":"ignore | normal | select-after | select-before | select-menu | select-same | select-all | none","-moz-user-input":"auto | none | enabled | disabled","-moz-user-modify":"read-only | read-write | write-only","-moz-window-dragging":"drag | no-drag","-moz-window-shadow":"default | menu | tooltip | sheet | none","-webkit-appearance":"none | button | button-bevel | caps-lock-indicator | caret | checkbox | default-button | listbox | listitem | media-fullscreen-button | media-mute-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | push-button | radio | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbargripper-horizontal | scrollbargripper-vertical | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield","-webkit-border-before":"<'border-width'> || <'border-style'> || <'color'>","-webkit-border-before-color":"<'color'>","-webkit-border-before-style":"<'border-style'>","-webkit-border-before-width":"<'border-width'>","-webkit-box-reflect":"[ above | below | right | left ]? <length>? <image>?","-webkit-line-clamp":"none | <integer>","-webkit-mask":"[ <mask-reference> || <position> [ / <bg-size> ]? || <repeat-style> || [ <box> | border | padding | content | text ] || [ <box> | border | padding | content ] ]#","-webkit-mask-attachment":"<attachment>#","-webkit-mask-clip":"[ <box> | border | padding | content | text ]#","-webkit-mask-composite":"<composite-style>#","-webkit-mask-image":"<mask-reference>#","-webkit-mask-origin":"[ <box> | border | padding | content ]#","-webkit-mask-position":"<position>#","-webkit-mask-position-x":"[ <length-percentage> | left | center | right ]#","-webkit-mask-position-y":"[ <length-percentage> | top | center | bottom ]#","-webkit-mask-repeat":"<repeat-style>#","-webkit-mask-repeat-x":"repeat | no-repeat | space | round","-webkit-mask-repeat-y":"repeat | no-repeat | space | round","-webkit-mask-size":"<bg-size>#","-webkit-overflow-scrolling":"auto | touch","-webkit-tap-highlight-color":"<color>","-webkit-text-fill-color":"<color>","-webkit-text-stroke":"<length> || <color>","-webkit-text-stroke-color":"<color>","-webkit-text-stroke-width":"<length>","-webkit-touch-callout":"default | none","-webkit-user-modify":"read-only | read-write | read-write-plaintext-only","align-content":"normal | <baseline-position> | <content-distribution> | <overflow-position>? <content-position>","align-items":"normal | stretch | <baseline-position> | [ <overflow-position>? <self-position> ]","align-self":"auto | normal | stretch | <baseline-position> | <overflow-position>? <self-position>",all:"initial | inherit | unset | revert",animation:"<single-animation>#","animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"<time>#","animation-fill-mode":"<single-animation-fill-mode>#","animation-iteration-count":"<single-animation-iteration-count>#","animation-name":"[ none | <keyframes-name> ]#","animation-play-state":"<single-animation-play-state>#","animation-timing-function":"<timing-function>#",appearance:"none | auto | button | textfield | <compat>",azimuth:"<angle> | [ [ left-side | far-left | left | center-left | center | center-right | right | far-right | right-side ] || behind ] | leftwards | rightwards","backdrop-filter":"none | <filter-function-list>","backface-visibility":"visible | hidden",background:"[ <bg-layer> , ]* <final-bg-layer>","back
|
||
|
;for(var r=o(this,this.tail,null);null!==r.prev;)n=r.prev,r.prev=n.prev,e.call(t,n.data,n,this);i(this)},s.prototype.forEachRight=s.prototype.eachRight,s.prototype.nextUntil=function(e,t,n){if(null!==e){var r;void 0===n&&(n=this);for(var a=o(this,null,e);null!==a.next&&(r=a.next,a.next=r.next,!t.call(n,r.data,r,this)););i(this)}},s.prototype.prevUntil=function(e,t,n){if(null!==e){var r;void 0===n&&(n=this);for(var a=o(this,e,null);null!==a.prev&&(r=a.prev,a.prev=r.prev,!t.call(n,r.data,r,this)););i(this)}},s.prototype.some=function(e,t){var n=this.head;for(void 0===t&&(t=this);null!==n;){if(e.call(t,n.data,n,this))return!0;n=n.next}return!1},s.prototype.map=function(e,t){var n=new s,r=this.head;for(void 0===t&&(t=this);null!==r;)n.appendData(e.call(t,r.data,r,this)),r=r.next;return n},s.prototype.filter=function(e,t){var n=new s,r=this.head;for(void 0===t&&(t=this);null!==r;)e.call(t,r.data,r,this)&&n.appendData(r.data),r=r.next;return n},s.prototype.clear=function(){this.head=null,this.tail=null},s.prototype.copy=function(){for(var e=new s,t=this.head;null!==t;)e.insert(r(t.data)),t=t.next;return e},s.prototype.prepend=function(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},s.prototype.prependData=function(e){return this.prepend(r(e))},s.prototype.append=function(e){return this.insert(e)},s.prototype.appendData=function(e){return this.insert(r(e))},s.prototype.insert=function(e,t){if(void 0!==t&&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},s.prototype.insertData=function(e,t){return this.insert(r(e),t)},s.prototype.remove=function(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},s.prototype.push=function(e){this.insert(r(e))},s.prototype.pop=function(){if(null!==this.tail)return this.remove(this.tail)},s.prototype.unshift=function(e){this.prepend(r(e))},s.prototype.shift=function(){if(null!==this.head)return this.remove(this.head)},s.prototype.prependList=function(e){return this.insertList(e,this.head)},s.prototype.appendList=function(e){return this.insertList(e)},s.prototype.insertList=function(e,t){return null===e.head?this:(void 0!==t&&null!==t?(this.updateCursors(t.prev,e.tail,t,e.head),null!==t.prev?(t.prev.next=e.head,e.head.prev=t.prev):this.head=e.head,t.prev=e.tail,e.tail.next=t):(this.updateCursors(this.tail,e.tail,null,e.head),null!==this.tail?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail),e.head=null,e.tail=null,this)},s.prototype.replace=function(e,t){"head"in t?this.insertList(t,e):this.insert(t,e),this.remove(e)},t.exports=s},{}],3:[function(e,t,n){function r(e,t,n){for(var r=n.length,i=o(e.lines,r),c=e.startLine,u=o(e.columns,r),h=e.startColumn,p=t;p<r;p++){var d=n.charCodeAt(p);i[p]=c,u[p]=h++,d!==a&&d!==l&&d!==s||(d===l&&p+1<r&&n.charCodeAt(p+1)===a&&(p++,i[p]=c,u[p]=h),c++,h=1)}i[p]=c,u[p]=h,e.lines=i,e.columns=u}var o=e("./adopt-buffer"),i=e("../tokenizer/utils").firstCharOffset,a=10,s=12,l=13,c=function(){this.lines=null,this.columns=null,this.linesAndColumnsComputed=!1};c.prototype={setSource:function(e,t,n,r){this.source=e,this.startOffset=void 0===t?0:t,this.startLine=void 0===n?1:n,this.startColumn=void 0===r?1:r,this.linesAndColumnsComputed=!1},ensureLinesAndColumnsComputed:function(){this.linesAndColumnsComputed||(r(this,i(this.source),this.source),this.linesAndColumnsComputed=!0)},getLocation:function(e,t){return this.ensureLinesAndColumnsComputed(),{source:t,offset:this.startOffset+e,line:thi
|
||
|
},t,h));else for(var o=e.min||1;o<=e.max;o++)e.comma&&t!==u&&(t=r({type:"Comma",syntax:e},t,h)),t=r(n,r(u,u,t),h);if(0===e.min)t=r(u,u,t);else for(var o=0;o<e.min-1;o++)e.comma&&t!==u&&(t=r({type:"Comma",syntax:e},t,h)),t=r(n,t,h);return t}function l(e){if("function"==typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":var t=a(e.combinator,e.terms.map(l),!1);return e.disallowEmpty&&(t=r(t,p,h)),t;case"Multiplier":return s(e);case"Type":case"Property":return{type:e.type,name:e.name,syntax:e};case"Keyword":return{type:e.type,name:e.name.toLowerCase(),syntax:e};case"AtKeyword":return{type:e.type,name:"@"+e.name.toLowerCase(),syntax:e};case"Function":return{type:e.type,name:e.name.toLowerCase()+"(",syntax:e};case"String":return 3===e.value.length?{type:"Token",value:e.value.charAt(1),syntax:e}:{type:e.type,value:e.value.substr(1,e.value.length-2).replace(/\\'/g,"'"),syntax:e};case"Token":return{type:e.type,value:e.value,syntax:e};case"Comma":return{type:e.type,syntax:e};default:throw new Error("Unknown node type:",e.type)}}var c=e("./grammar/parse"),u={type:"Match"},h={type:"Mismatch"},p={type:"DisallowEmpty"},d=40,m=41;t.exports={MATCH:u,MISMATCH:h,DISALLOW_EMPTY:p,buildMatchGraph:function(e,t){return"string"==typeof e&&(e=c(e)),{type:"MatchGraph",match:l(e),syntax:t||null,source:e}}}},{"./grammar/parse":19}],23:[function(e,t,n){function r(e,t){for(var n=[];e;)n.unshift(t(e)),e=e.prev;return n}function o(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e.charCodeAt(n),o=t.charCodeAt(n);if(r>=65&&r<=90&&(r|=32),r!==o)return!1}return!0}function i(e){if(null===e)return!0;var t=e.value.charAt(e.value.length-1);return","===t||"("===t||"["===t||"/"===t}function a(e){if(null===e)return!0;var t=e.value.charAt(0);return")"===t||"]"===t||"/"===t}function s(e,t,n){function r(){do{M++,R=M<e.length?e[M]:null}while(null!==R&&!/\S/.test(R.value))}function s(t){var n=M+t;return n<e.length?e[n]:null}function l(e,t){return{nextState:e,matchStack:N,syntaxStack:L,thenStack:P,tokenIndex:M,token:R,prev:t}}function c(e){P={nextState:e,matchStack:N,syntaxStack:L,prev:P}}function h(e){T=l(e,T)}function z(){N={type:b,syntax:t.syntax,token:R,prev:N},r(),E=null,M>D&&(D=M)}function A(){N=N.type===k?N.prev:{type:y,syntax:L.syntax,token:N.token,prev:N},L=L.prev}var L=null,P=null,T=null,E=null,_=0,O=null,R=null,M=-1,D=0,N={type:f,syntax:null,token:null,prev:null};for(r();null===O&&++_<S;)switch(t.type){case"Match":if(null===P){if(null!==R&&(M!==e.length-1||"\\0"!==R.value&&"\\9"!==R.value)){t=d;break}O=v;break}if((t=P.nextState)===m){if(P.matchStack.token===N.token){t=d;break}t=p}for(;null!==L&&P.syntaxStack!==L;)A();P=P.prev;break;case"Mismatch":if(null!==E&&!1!==E)(null===T||M>T.tokenIndex)&&(T=E,E=!1);else if(null===T){O=x;break}t=T.nextState,P=T.thenStack,L=T.syntaxStack,N=T.matchStack,M=T.tokenIndex,R=T.token,T=T.prev;break;case"MatchGraph":t=t.match;break;case"If":t.else!==d&&h(t.else),t.then!==p&&c(t.then),t=t.match;break;case"MatchOnce":t={type:"MatchOnceBuffer",syntax:t,index:0,mask:0};break;case"MatchOnceBuffer":var B=t.syntax.terms;if(t.index===B.length){if(0===t.mask||t.syntax.all){t=d;break}t=p;break}if(t.mask===(1<<B.length)-1){t=p;break}for(;t.index<B.length;t.index++){var I=1<<t.index;if(0==(t.mask&I)){h(t),c({type:"AddMatchOnce",syntax:t.syntax,mask:t.mask|I}),t=B[t.index++];break}}break;case"AddMatchOnce":t={type:"MatchOnceBuffer",syntax:t.syntax,index:0,mask:t.mask};break;case"Enum":if(null!==R){var F=R.value.toLowerCase();if(-1!==F.indexOf("\\")&&(F=F.replace(/\\[09].*$/,"")),u.call(t.map,F)){t=t.map[F];break}}t=d;break;case"Generic":var j=null!==L?L.opts:null,U=Math.floor(t.fn(R,s,j));if(!isNaN(U)&&U>0){for(var W=M+U;M<W;)z();t=p}else t=d;break;case"Type":case"Property":var q="Type"===t.type?"types":"properties",H=u.call(n,q)?n[q][t.name]:null;if(!H||!H.match)throw new Error("Bad syntax reference: "+("Type"===t.type?"<"+t.name+">":"<'"+t.name+"'>"));if(!1!==E&&null!==R&&"Type"===t.type){if("custom-ident"===t.name&&R.type===g.Ident||"length"===t.name&&"0"===R.value){null===E&&(E=l(t,T)),t=d;break}}!fu
|
||
|
this.scanner.tokenType===i&&!1!==this.scanner.lookupValue(0,"deep")||this.error("Identifier `deep` is expected"),this.scanner.next(),this.scanner.isDelim(s)||this.error("Solidus is expected"),this.scanner.next();break;default:this.error("Combinator is expected")}return{type:"Combinator",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e)}},generate:function(e){this.chunk(e.name)}}},{"../../tokenizer":107}],55:[function(e,t,n){var r=e("../../tokenizer").TYPE,o=e("../../tokenizer").CHARCODE,i=o.Asterisk,a=o.Solidus,s=r.Comment;t.exports={name:"Comment",structure:{value:String},parse:function(){var e=this.scanner.tokenStart,t=this.scanner.tokenEnd;return this.eat(s),t-e+2>=2&&this.scanner.source.charCodeAt(t-2)===i&&this.scanner.source.charCodeAt(t-1)===a&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.source.substring(e+2,t)}},generate:function(e){this.chunk("/*"),this.chunk(e.value),this.chunk("*/")}}},{"../../tokenizer":107}],56:[function(e,t,n){function r(e){return this.Raw(e,h.exclamationMarkOrSemicolon,!0)}function o(e){return this.Raw(e,h.exclamationMarkOrSemicolon,!1)}function i(){var e=this.scanner.tokenIndex,t=this.Value();return"Raw"!==t.type&&!1===this.scanner.eof&&this.scanner.tokenType!==g&&!1===this.scanner.isDelim(b)&&!1===this.scanner.isBalanceEdge(e)&&this.error(),t}function a(){var e=this.scanner.tokenStart;if(this.scanner.tokenType===f)switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case y:case x:case w:case S:case v:this.scanner.next();break;case k:this.scanner.next(),this.scanner.isDelim(k)&&this.scanner.next()}return this.scanner.tokenType===d?this.eat(d):this.eat(p),this.scanner.substrToCursor(e)}function s(){this.eat(f),this.scanner.skipSC();var e=this.consume(p);return"important"===e||e}var l=e("../../utils/names").isCustomProperty,c=e("../../tokenizer").TYPE,u=e("../../tokenizer").CHARCODE,h=e("./Raw").mode,p=c.Ident,d=c.Hash,m=c.Colon,g=c.Semicolon,f=c.Delim,b=u.ExclamationMark,k=u.Solidus,y=u.Asterisk,v=u.Ampersand,x=u.DollarSign,w=u.PlusSign,S=u.NumberSign;t.exports={name:"Declaration",structure:{important:[Boolean,String],property:String,value:["Value","Raw"]},parse:function(){var e,t=this.scanner.tokenStart,n=this.scanner.tokenIndex,c=a.call(this),u=l(c),h=u?this.parseCustomProperty:this.parseValue,p=u?o:r,d=!1;return this.scanner.skipSC(),this.eat(m),u||this.scanner.skipSC(),e=h?this.parseWithFallback(i,p):p.call(this,this.scanner.tokenIndex),this.scanner.isDelim(b)&&(d=s.call(this),this.scanner.skipSC()),!1===this.scanner.eof&&this.scanner.tokenType!==g&&!1===this.scanner.isBalanceEdge(n)&&this.error(),{type:"Declaration",loc:this.getLocation(t,this.scanner.tokenStart),important:d,property:c,value:e}},generate:function(e){this.chunk(e.property),this.chunk(":"),this.node(e.value),e.important&&this.chunk(!0===e.important?"!important":"!"+e.important)},walkContext:"declaration"}},{"../../tokenizer":107,"../../utils/names":111,"./Raw":74}],57:[function(e,t,n){function r(e){return this.Raw(e,i.semicolonIncluded,!0)}var o=e("../../tokenizer").TYPE,i=e("./Raw").mode,a=o.WhiteSpace,s=o.Comment,l=o.Semicolon;t.exports={name:"DeclarationList",structure:{children:[["Declaration"]]},parse:function(){for(var e=this.createList();!this.scanner.eof;)switch(this.scanner.tokenType){case a:case s:case l:this.scanner.next();break;default:e.push(this.parseWithFallback(this.Declaration,r))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}},generate:function(e){this.children(e,function(e){"Declaration"===e.type&&this.chunk(";")})}}},{"../../tokenizer":107,"./Raw":74}],58:[function(e,t,n){var r=e("../../tokenizer/utils").consumeNumber,o=e("../../tokenizer").TYPE,i=o.Dimension;t.exports={name:"Dimension",structure:{value:String,unit:String},parse:function(){var e=this.scanner.tokenStart,t=r(this.scanner.source,e);return this.eat(i),{type:"Dimension",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.source.substring(e,t),unit:this.scanner.source.substring(t,this.scanner.tokenStart)}},g
|
||
|
;case 93:H=s.RightSquareBracket,F++;break;case 123:H=s.LeftCurlyBracket,F++;break;case 125:H=s.RightCurlyBracket,F++;break;case p.Digit:r();break;case p.NameStart:a();break;case p.Eof:break;default:H=s.Delim,F++}switch(H){case j:for(W=U&O,U=B[W],j=U>>R,B[I]=W,B[W++]=I;W<I;W++)B[W]===D&&(B[W]=I);break;case s.LeftParenthesis:case s.Function:B[I]=U,j=s.RightParenthesis,U=j<<R|I;break;case s.LeftSquareBracket:B[I]=U,j=s.RightSquareBracket,U=j<<R|I;break;case s.LeftCurlyBracket:B[I]=U,j=s.RightCurlyBracket,U=j<<R|I}N[I++]=H<<R|F}for(N[I]=F,B[I]=D,B[D]=D;0!==U;)W=U&O,U=B[W],B[W]=D;return t.source=e,t.firstCharOffset=M,t.offsetAndType=N,t.tokenCount=I,t.balance=B,t.reset(),t.next(),t}var o=e("../common/TokenStream"),i=e("../common/adopt-buffer"),a=e("./const"),s=a.TYPE,l=a.CHARCODE,c=a.INPUT_STREAM_CODE,u=a.INPUT_STREAM_CODE_STRING,h=a.INPUT_STREAM_CODE_URL,p=a.INPUT_STREAM_CODE_TYPE,d=e("./utils"),m=d.firstCharOffset,g=d.cmpStr,f=d.getNewlineLength,b=d.isNewline,k=d.isName,y=d.isValidEscape,v=d.isNumberStart,x=d.isIdentifierStart,w=d.findWhiteSpaceEnd,S=d.consumeEscaped,C=d.consumeName,z=d.consumeNumber,A=d.consumeBadUrlRemnants,L=l.Asterisk,P=l.HyphenMinus,T=l.GreaterThanSign,E=l.ExclamationMark,_=l.PercentSign,O=16777215,R=24;Object.keys(a).forEach(function(e){r[e]=a[e]}),Object.keys(d).forEach(function(e){r[e]=d[e]}),t.exports=r},{"../common/TokenStream":5,"../common/adopt-buffer":6,"./const":106,"./utils":108}],108:[function(e,t,n){function r(e){return e.length>0&&(65279===e.charCodeAt(0)||65534===e.charCodeAt(0))?1:0}function o(e,t){return t<e.length?e.charCodeAt(t):0}function i(e,t,n){return 13===n&&10===o(e,t+1)?2:1}function a(e,t,n){var r=e.charCodeAt(t);return k(r)&&(r|=32),r===n}function s(e,t,n,r){if(n-t!==r.length)return!1;if(t<0||n>e.length)return!1;for(var o=t;o<n;o++){var i=e.charCodeAt(o),a=r.charCodeAt(o-t);if(k(i)&&(i|=32),i!==a)return!1}return!0}function l(e,t){for(;t>=0&&A(e.charCodeAt(t));t--);return t+1}function c(e,t){for(;t<e.length&&A(e.charCodeAt(t));t++);return t}function u(e,t){for(;t<e.length&&f(e.charCodeAt(t));t++);return t}function h(e,t){if(t+=2,b(o(e,t-1))){for(var n=Math.min(e.length,t+5);t<n&&b(o(e,t));t++);var r=o(e,t);A(r)&&(t+=i(e,t,r))}return t}function p(e,t){for(;t<e.length;t++){var n=e.charCodeAt(t);if(!S(n)){if(!L(n,o(e,t+1)))break;t=h(e,t)-1}}return t}function d(e,t){var n=e.charCodeAt(t);if(43!==n&&45!==n||(n=e.charCodeAt(t+=1)),f(n)&&(t=u(e,t+1),n=e.charCodeAt(t)),46===n&&f(e.charCodeAt(t+1))&&(n=e.charCodeAt(t+=2),t=u(e,t)),a(e,t,101)){var r=0;n=e.charCodeAt(t+1),45!==n&&43!==n||(r=1,n=e.charCodeAt(t+2)),f(n)&&(t=u(e,t+1+r+1))}return t}function m(e,t){for(;t<e.length;t++){var n=e.charCodeAt(t);if(41===n){t++;break}L(n,o(e,t+1))&&(t=h(e,t))}return t}var g=e("./char-code-definitions"),f=g.isDigit,b=g.isHexDigit,k=g.isUppercaseLetter,y=g.isLowercaseLetter,v=g.isLetter,x=g.isNonAscii,w=g.isNameStart,S=g.isName,C=g.isNonPrintable,z=g.isNewline,A=g.isWhiteSpace,L=g.isValidEscape,P=g.isIdentifierStart,T=g.isNumberStart;t.exports={firstCharOffset:r,isDigit:f,isHexDigit:b,isUppercaseLetter:k,isLowercaseLetter:y,isLetter:v,isNonAscii:x,isNameStart:w,isName:S,isNonPrintable:C,isNewline:z,isWhiteSpace:A,isValidEscape:L,isIdentifierStart:P,isNumberStart:T,consumeEscaped:h,consumeName:p,consumeNumber:d,consumeBadUrlRemnants:m,cmpChar:a,cmpStr:s,getNewlineLength:i,findWhiteSpaceStart:l,findWhiteSpaceEnd:c}},{"./char-code-definitions":105}],109:[function(e,t,n){var r=e("../common/List");t.exports=function e(t){var n={};for(var o in t){var i=t[o];i&&(Array.isArray(i)||i instanceof r?i=i.map(e):i.constructor===Object&&(i=e(i))),n[o]=i}return n}},{"../common/List":2}],110:[function(e,t,n){t.exports=function(e,t){var n=Object.create(SyntaxError.prototype),r=new Error;return n.name=e,n.message=t,Object.defineProperty(n,"stack",{get:function(){return(r.stack||"").replace(/^(.+\n){1,3}/,e+": "+t+"\n")}}),n}},{}],111:[function(e,t,n){function r(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===u&&e.charCodeAt(t+1)===u}function o(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===u&&e.charCodeAt(t+1)!==u
|
||
|
;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function d(e,t,n){var r=e.source-t.source;return 0!==r?r:0!==(r=e.originalLine-t.originalLine)?r:0!==(r=e.originalColumn-t.originalColumn)||n?r:0!==(r=e.generatedColumn-t.generatedColumn)?r:(r=e.generatedLine-t.generatedLine,0!==r?r:e.name-t.name)}function m(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r?r:0!==(r=e.generatedColumn-t.generatedColumn)||n?r:0!==(r=e.source-t.source)?r:0!==(r=e.originalLine-t.originalLine)?r:(r=e.originalColumn-t.originalColumn,0!==r?r:e.name-t.name)}function g(e,t){return e===t?0:e>t?1:-1}function f(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!==(n=e.generatedColumn-t.generatedColumn)?n:0!==(n=g(e.source,t.source))?n:0!==(n=e.originalLine-t.originalLine)?n:(n=e.originalColumn-t.originalColumn,0!==n?n:g(e.name,t.name))}n.getArg=r;var b=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,k=/^data:.+\,.+$/;n.urlParse=o,n.urlGenerate=i,n.normalize=a,n.join=s,n.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(b)},n.relative=l;var y=function(){return!("__proto__"in Object.create(null))}();n.toSetString=y?c:u,n.fromSetString=y?c:h,n.compareByOriginalPositions=d,n.compareByGeneratedPositionsDeflated=m,n.compareByGeneratedPositionsInflated=f},{}],123:[function(e,t,n){n.SourceMapGenerator=e("./lib/source-map-generator").SourceMapGenerator,n.SourceMapConsumer=e("./lib/source-map-consumer").SourceMapConsumer,n.SourceNode=e("./lib/source-node").SourceNode},{"./lib/source-map-consumer":119,"./lib/source-map-generator":120,"./lib/source-node":121}]},{},[10])(10)});
|